* xfont.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 * data.c (Fstring_to_number): Likewise.
13 * print.c (float_to_string, PRINTFINISH, printchar, strout):
14 (print_object): Likewise.
15 * editfns.c (init_editfns, Fchar_to_string, Fbyte_to_string):
16 (Fuser_full_name, Fsubst_char_in_region, Ftranslate_region_internal):
17 (Fformat): Likewise.
18 * callint.c (Fcall_interactively): Likewise.
19 * fns.c (string_make_multibyte, string_to_multibyte):
20 (string_make_unibyte, Fstring_as_unibyte, Fstring_to_unibyte):
21 (Fbase64_encode_region, base64_encode_1, Fbase64_decode_region, Fmd5):
22 Likewise.
23 * lread.c (read1, hash_string): Likewise.
24 * process.c (read_process_output, send_process, Fprocess_send_region):
25 Likewise.
26 * callproc.c (Fcall_process): Likewise.
27 * doprnt.c (doprnt): Likewise.
28 * indent.c (compute_motion): Likewise.
29 * xfont.c (xfont_decode_coding_xlfd): Likewise.
30 * character.c (strwidth): Make its argument const char *, not const
31 unsigned char *, since more callers prefer it that way. All callers
32 changed.
33
34 2011-02-06 Paul Eggert <eggert@cs.ucla.edu>
35
36 * xterm.c (x_alloc_nearest_color_1): Avoid unportable int assumption.
37 Emacs assumes two's complement elsewhere, but the assumption is
38 easy to remove here, and this suppresses a warning with Sun C 5.8.
39
40 conform to C89 pointer rules
41
42 * xterm.c (x_draw_fringe_bitmap, handle_one_xevent, x_bitmap_icon):
43 (same_x_server, x_term_init):
44 Change types between char * and unsigned char *, to satisfy C89
45 rules about pointer type compatibility.
46 * doc.c (get_doc_string, Fsnarf_documentation):
47 (Fsubstitute_command_keys): Likewise.
48 * xfns.c (Fx_open_connection, Fx_window_property): Likewise.
49 * bitmaps/gray.xbm (gray_bits): Likewise.
50 * image.c (xbm_read_bitmap_data, xbm_load_image, xbm_load): Likewise.
51 * keyboard.c (echo_char, MULTI_LETTER_MOD, tty_read_avail_input):
52 Likewise.
53 * keymap.c (Ftext_char_description): Likewise.
54 * minibuf.c (Fread_buffer): Likewise.
55 * fileio.c (IS_DRIVE) [defined WINDOWSNT]:
56 (DRIVE_LETTER) [defined DOS_NT]:
57 (report_file_error, Ffile_name_directory, Ffile_name_nondirectory):
58 (make_temp_name, Fexpand_file_name, file_name_absolute_p):
59 (search_embedded_absfilename, Fsubstitute_in_file_name):
60 (barf_or_query_if_file_exists, Fmake_directory_internal):
61 (Fdelete_directory_internal, Ffile_name_absolute_p, read_non_regular):
62 (Finsert_file_contents, Fwrite_region):
63 Likewise.
64 * insdel.c (insert, insert_and_inherit, insert_before_markers):
65 (insert_before_markers_and_inherit, insert_1, insert_1_both):
66 Likewise. This changes these functions' signatures, which is
67 more convenient since most callers use char *. All remaining
68 callers changed.
69 * editfns.c (general_insert_function): Change signature to
70 match changes to insert functions' signatures.
71 * keymap.c (map_keymap_char_table_item, map_keymap_internal): Use
72 explicit cast when converting between void * and function pointer
73 types, as C89 requires this.
74
75 2011-02-05 Paul Eggert <eggert@cs.ucla.edu>
76
77 don't ignore chdir failure
78 * sysdep.c (sys_subshell) [!defined DOS_NT]: Diagnose chdir
79 failure and exit.
80 (sys_subshell) [defined DOS_NT]: Mark with a FIXME the two
81 remaining unchecked chdir calls in this function; some DOS/NT
82 expert needs to fix them.
83 * emacs.c (main): Mark with a FIXME the unchecked chdir calls
84 in this function; some NextStep expert needs to fix them.
85
86 2011-02-05 Glenn Morris <rgm@gnu.org>
87
88 * xfaces.c (Finternal_set_lisp_face_attribute):
89 Try to clarify some error messages. (Bug#2659)
90
91 2011-02-05 Stefan Monnier <monnier@iro.umontreal.ca>
92
93 * editfns.c (save_restriction_restore): Don't forget to invalidate the
94 current_column cache (bug#7946).
95
96 2011-02-05 Kenichi Handa <handa@m17n.org>
97
98 * ftfont.c (ftfont_open): Use FC_DUAL only when it is defined.
99
100 * xftfont.c (xftfont_open): Likewise.
101
102 2011-02-05 Andreas Schwab <schwab@linux-m68k.org>
103
104 * window.c (Fselect_window): Add missing return value.
105
106 2011-02-05 Paul Eggert <eggert@cs.ucla.edu>
107
108 xstrcasecmp: conform to C89 pointer rules
109 * xfaces.c (xstrcasecmp): Change args from const unsigned char *
110 to const char *, since they're usually low-level C strings, and
111 this stays compatible with C89 pointer rules. All callers changed.
112
113 * charset.c: conform to C89 pointer rules
114 (define_charset_internal): Switch between char * and unsigned char *.
115
116 * xmenu.c: conform to C89 const rules
117 (xmenu_show, xdialog_show): Declare local var as char *, not
118 const char *, to stay compatible with C89 const rules.
119
120 * xdisp.c: conform to C89 pointer rules
121 (store_mode_line_noprop, display_string, reseat_to_string):
122 (c_string_pos, number_of_chars, message_dolog):
123 (message_log_check_duplicate, set_message_1, store_mode_line_noprop):
124 (display_mode_element, display_string):
125 Switch between char * and unsigned char * to stay compatible wth
126 C89 pointer rules.
127
128 * regex.c: conform to C89 pointer rules
129 (re_wctype): Add cast, as C89 does not allow assigning between
130 char * and unsigned char *.
131 (regex_compile): Likewise.
132
133 sync from gnulib to remove HAVE_STDBOOL_H
134 * config.in: Regenerate.
135
136 2011-02-04 Eli Zaretskii <eliz@gnu.org>
137
138 * makefile.w32-in (LISP_H, PROCESS_H): New variables.
139 Replace all uses of lisp.h with $(LISP_H), and all uses of
140 process.h with $(PROCESS_H).
141 ($(BLD)/editfns.$(O)): Depend on ../lib/strftime.h.
142 ($(BLD)/print.$(O)): Depend on ../lib/ftoastr.h and ../lib/intprops.h.
143
144 * deps.mk: Update for recent changes: gnutls support, gnulib
145 imports, addition of globals.h.
146
147 * makefile.w32-in ($(BLD)/sysdep.$(O)): Depend on
148 ../lib/ignore-value.h.
149
150 2011-02-03 Paul Eggert <eggert@cs.ucla.edu>
151
152 allow C code to suppress warnings about ignored return values
153
154 We need to go through the code and for each such warning, either
155 fix the code to pay attention to the returned value, or tell GCC
156 that we really do want to ignore the returned value. Here is one
157 example of how to do the latter.
158 * sysdep.c: Include <ignore-value.h>.
159 (sys_subshell): Suppress an undesirable warning about not checking
160 the returned value of 'write', as there's nothing useful one can
161 do with that returned value.
162
163 2011-02-03 Jan Djärv <jan.h.d@swipnet.se>
164
165 * xterm.c (x_connection_closed): Remove all calls that calls
166 XSync (Bug#7949).
167
168 2011-02-01 Eli Zaretskii <eliz@gnu.org>
169
170 * image.c (tiff_load): Avoid compiler warning in 2nd arg to
171 TIFFClientOpen.
172
173 2011-02-01 Jan Djärv <jan.h.d@swipnet.se>
174
175 * xsmfns.c (ice_connection_closed): Call delete_read_fd.
176 (x_session_check_input): Change args and return type so it can be used
177 as argument to add_read_fd. Make static. Remove call to select.
178 Call kbd_buffer_store_event for emacs_event.
179 (smc_save_yourself_CB): Also store initial argv to SmRestartCommand.
180 (ice_conn_watch_CB): Call add_read_fd.
181
182 * xterm.c (XTread_socket): Remove HAVE_X_SM block with call to
183 x_session_check_input.
184 (x_session_initialized): Remove definition.
185 (x_initialize): Remove setting of x_session_initialized.
186
187 * xterm.h (x_session_check_input): Remove declaration.
188
189 2011-02-01 Paul Eggert <eggert@cs.ucla.edu>
190
191 format-time-string now supports subsecond time stamp resolution
192 * editfns.c (emacs_nmemftime): Renamed from emacs_memftimeu,
193 for consistency with its new argument and with gnulib nstrftime.
194 All callers changed. New argument NS.
195 (Fformat_time_string): Check that the time argument's microseconds
196 component, if any, is in range; this avoids integer overflow and
197 also nstrftime needs this. Document %N.
198
199 2011-01-31 Andreas Schwab <schwab@linux-m68k.org>
200
201 * image.c (DEF_IMGLIB_FN): Add parameter rettype, use it instead
202 of int. All uses adjusted.
203 (PNG_JMPBUF, png_load, jpeg_load, tiff_load, gif_load)
204 (svg_load_image): Remove casts.
205
206 2011-01-31 Chong Yidong <cyd@stupidchicken.com>
207
208 * image.c (fn_png_longjmp, fn_png_set_longjmp_fn): New png
209 function definitions for compiling with libpng-1.5.
210 (PNG_LONGJMP, PNG_JMPBUF): New macros for libpng-1.5.
211 (my_png_error, png_load): Use them. Suggested by Thomas Klausner
212 (Bug#7908).
213
214 2011-01-31 Eli Zaretskii <eliz@gnu.org>
215
216 * s/ms-w32.h (HAVE_STRFTIME): Don't define.
217
218 * makefile.w32-in (OBJ2): Remove strftime.$(O).
219 ($(BLD)/strftime.$(O)): Remove prerequisites.
220
221 2011-01-31 Paul Eggert <eggert@cs.ucla.edu>
222
223 src/emacs.c now gets version number from configure.in
224 * emacs.c (emacs_version): Set to VERSION so that it
225 is determined automatically from ../configure.in.
226
227 2011-01-31 Jim Meyering <meyering@redhat.com>
228
229 * charset.c (load_charset_map): Don't deref NULL on failed malloc.
230 Use xmalloc rather than malloc.
231
232 2011-01-30 Paul Eggert <eggert@cs.ucla.edu>
233
234 strftime: import from gnulib
235 * Makefile.in (obj): Remove strftime.o, as gnulib now does this for us.
236 * deps.mk (strftime.o): Remove.
237 * editfns.c: Include <strftime.h>, supplied by gnulib.
238 (emacs_strftimeu): Remove decl.
239 (emacs_memftimeu): Use nstrftime (the gnulib name) rather than
240 emacs_strftimeu.
241 * config.in: Regenerate.
242 * strftime.c: Remove; we now use strftime from gnulib.
243
244 Use SSDATA when the context wants char *.
245 * alloc.c, buffer.c, bytecode.c, callproc.c, dired.c:
246 * dispnew.c, doc.c, editfns.c, emacs.c, fileio.c, filelock.c:
247 * fns.c, font.c, frame.c, image.c, indent.c, keyboard.c:
248 * lread.c, minibuf.c, print.c, process.c, search.c, widget.c:
249 * xdisp.c, xfaces.c, xfns.c, xml.c, xselect.c, xterm.c:
250 Use SSDATA (not SDATA) when the context of the expression wants
251 char * (not unsigned char *).
252
253 2011-01-30 Jan Djärv <jan.h.d@swipnet.se>
254
255 * .gdbinit: Read global lisp variables as globals.f_V*.
256
257 2011-01-30 Andreas Schwab <schwab@linux-m68k.org>
258
259 * font.c (PROP_MATCH): Remove parameter N and use strlen instead.
260 All uses changed.
261 (PROP_SAVE): Likewise.
262
263 2011-01-29 Chong Yidong <cyd@stupidchicken.com>
264
265 * keyboard.c (make_lispy_position): Fix typo in last change
266 (Bug#7935).
267
268 2011-01-29 Eli Zaretskii <eliz@gnu.org>
269
270 * s/ms-w32.h (HAVE_MKTIME): Remove.
271
272 * makefile.w32-in (LOCAL_FLAGS): Add -I../lib.
273 (GNULIB): New variable.
274 (LIBS): Add $(GNULIB).
275 $(TEMACS): Depend on $(GNULIB).
276 <top-level>: Fix font-lock disrupted by a lone `"'.
277
278 2011-01-29 Jan Djärv <jan.h.d@swipnet.se>
279
280 * nsselect.m (ns_string_from_pasteboard): Get length of string
281 and use make_string instead of build_string (Bug#7934).
282 (ns_string_to_pasteboard_internal): Use initWithBytesNoCopy
283 instead of stringWithUTF8String (Bug#7934).
284
285 2011-01-29 Anders Lindgren <andlind@gmail.com> (tiny change)
286
287 * nsfont.m (nsfont_open): Ensure that fonts with inexact
288 descenders would not become one pixel too tall (Bug#7887).
289
290 2011-01-28 Chong Yidong <cyd@stupidchicken.com>
291
292 * keyboard.c (make_lispy_position): For clicks on right fringe or
293 margin, compute text position using the X coordinate relative to
294 the left of the text area (Bug#7839).
295
296 2011-01-28 Kenichi Handa <handa@m17n.org>
297
298 * ftfont.c (ftfont_spec_pattern): Check each extra property
299 value.
300
301 2011-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
302
303 * xdisp.c (safe_eval_handler): Distinguish symbols and strings.
304
305 2011-01-27 Chong Yidong <cyd@stupidchicken.com>
306
307 * font.c (font_parse_fcname): Undefine a temporary macro.
308
309 2011-01-26 Stefan Monnier <monnier@iro.umontreal.ca>
310
311 Let the debugger continue to the normal handler (bug#7825).
312 * eval.c (maybe_call_debugger): Declare before new use.
313 (find_handler_clause): Don't call debugger any more.
314 Ignore Vstack_trace_on_error.
315 Use XCAR/XCDR.
316 (syms_of_eval): Remove Vstack_trace_on_error.
317 (Fsignal): Only modify handlerlist when we know we need to do it.
318 Call the debugger when necessary.
319 * globals.h (Vstack_trace_on_error): Remove.
320
321 2011-01-26 Chong Yidong <cyd@stupidchicken.com>
322
323 * font.c (font_parse_fcname): Rewrite GTK font name parser.
324
325 2011-01-25 Stefan Monnier <monnier@iro.umontreal.ca>
326
327 * xdisp.c (handle_fontified_prop): Be careful with font-lock changing
328 the buffer's point-max (bug#7876).
329
330 2011-01-25 Chong Yidong <cyd@stupidchicken.com>
331
332 * lisp.h (XPNTR): Obey DATA_SEG_BITS in all non-USE_LSB_TAG cases.
333 Remove unused case (Bug#6811).
334
335 2011-01-23 Jan Djärv <jan.h.d@swipnet.se>
336
337 * nsterm.m (x_set_offset): Set dont_constrain to 0 so the call to
338 setFrameTopLeftPoint is constrained.
339
340 2011-01-23 Paul Eggert <eggert@cs.ucla.edu>
341
342 Check return values of some library calls.
343 * emacs.c (main): Check dup result.
344 * frame.c: Include <limits.h>, for INT_MIN and INT_MAX.
345 (frame_name_fnn_p): Check strtol result.
346
347 * image.c (x_create_bitmap_from_xpm_data): Add cast to fix type clash
348 when calling XpmCreatePixmapFromData.
349
350 Promote SSDATA macro from gtkutil.c and xsmfns.c to lisp.h.
351 * lisp.h (SSDATA): New macro.
352 All uses of (char *) SDATA (x) replaced with SSDATA (x),
353 and all uses of (unsigned char *) SDATA (x) replaced with SDATA (x).
354 * gtkutil.c (SSDATA): Remove, as lisp.h now defines this.
355 * xsmfns.c (SSDATA): Likewise.
356
357 2011-01-22 Martin Rudalics <rudalics@gmx.at>
358
359 * window.c (select_window): New function.
360 (Fselect_window): Call it.
361 (inhibit_point_swap): Variable deleted.
362 (Fset_window_configuration): Call select_window directly.
363
364 2011-01-22 Jan Djärv <jan.h.d@swipnet.se>
365
366 * nsterm.m (constrainFrameRect): Only constrain the first time called.
367
368 2011-01-21 Jan Djärv <jan.h.d@swipnet.se>
369
370 * nsterm.m (x_set_offset, windowDidMove): When calculating y, use first
371 screen, not the window screen.
372 (x_set_window_size): Remove constraints.
373 Calculate origin.y only if zooming is 0 and without referring to a
374 screen.
375 (windowWillResize): Don't modify frameSize.
376 (windowDidBecomeKey, mouseDown): Set dont_constrain to 1.
377 (initFrameFromEmacs): Initialize ns_userRect.
378 (windowShouldZoom): Set zooming to one. Remove all other code.
379 (windowWillUseStandardFrame): Move static ns_userRect to EmacsView.
380 Zero it after restore.
381 (constrainFrameRect): New method for EmacsWindow.
382 (mouseDragged): Always post NSWindowDidResizeNotification after call to
383 windowWillResize.
384
385 * nsterm.h (ns_output): Add dont_constrain and zooming.
386 (EmacsView): Add ns_userRect.
387
388 * nsterm.m (keyDown): If ns_right_alternate_modifier is Qleft, check
389 if ns_alternate_modifier is none.
390
391 2011-01-20 Jan Djärv <jan.h.d@swipnet.se>
392
393 * unexmacosx.c: Add comment about include order.
394
395 2011-01-20 Glenn Morris <rgm@gnu.org>
396
397 * minibuf.c (syms_of_minibuf) <read-expression-history>:
398 Give it a doc string.
399 * globals.h: Add Vread_expression_history.
400
401 * macros.c (syms_of_macros) <kbd-macro-termination-hook>:
402 Give it a doc string.
403 * globals.h: Add Vkbd_macro_termination_hook.
404
405 2011-01-20 Chong Yidong <cyd@stupidchicken.com>
406
407 * fns.c (Fyes_or_no_p): Revert 2011-01-07 change, removing ARGS.
408
409 2011-01-19 Paul Eggert <eggert@cs.ucla.edu>
410
411 Fix X11 compilation failure.
412 * globals.h (struct emacs_globals): Document f_Vselection_alist.
413 * xselect.c (Vselection_alist): Remove declaration, moving its
414 documentation to globals.h. This fixes a compilation failure
415 induced by the earlier change to globals.h today.
416
417 2011-01-19 Jan Djärv <jan.h.d@swipnet.se>
418
419 * unexmacosx.c: Include config.h before unistd.h (Bug#7859).
420
421 * nsterm.m (ns_input_file, ns_input_font, ns_input_fontsize)
422 (ns_input_line, ns_input_color, ns_input_text, ns_working_text)
423 (ns_input_spi_name, ns_input_spi_arg)
424 (ns_alternate_modifier, ns_right_alternate_modifier)
425 (ns_command_modifier, ns_right_command_modifier, ns_control_modifier)
426 (ns_right_control_modifier, ns_function_modifier)
427 (ns_antialias_text, ns_confirm_quit): Move to globals.h.
428 (Vx_toolkit_scroll_bars, x_use_underline_position_properties)
429 (x_underline_at_descent_line): Remove declaration.
430 (syms_of_nsterm): Remove & from DEFVAR_LISP and DEFVAR_BOOL.
431
432 * nsselect.m (Vns_sent_selection_hooks, Vns_lost_selection_hooks
433 (Vselection_alist, Vselection_converter_alist): Move to globals.h.
434 (syms_of_nsselect): Remove & from DEFVAR_LISP.
435
436 * nsmenu.m (Voverriding_local_map, Voverriding_local_map_menu_flag):
437 Remove declaration.
438
439 * nsfont.m (Vns_reg_to_script, ns_antialias_text): Move to
440 globals.h.
441 (syms_of_nsfont): Remove & from DEFVAR_LISP.
442
443 * nsfns.m (Vmenu_bar_mode, Vtool_bar_mode): Remove declaration.
444 (Vns_icon_type_alist, Vns_version_string): Move to globals.h.
445 (syms_of_nsfns): Remove & from DEFVAR_LISP calls.
446
447 * globals.h (struct emacs_globals): Add f_ns_input_file,
448 f_ns_input_font, f_ns_input_fontsize, f_ns_input_line,
449 f_ns_input_color, f_ns_input_text, f_ns_working_text,
450 f_ns_input_spi_name, f_ns_input_spi_arg, f_ns_alternate_modifier,
451 f_ns_right_alternate_modifier, f_ns_command_modifier,
452 f_ns_right_command_modifier, f_ns_control_modifier,
453 f_ns_right_control_modifier, f_ns_function_modifier,
454 f_ns_antialias_text, f_ns_confirm_quit, f_Vns_icon_type_alist,
455 f_Vns_version_string, f_Vns_sent_selection_hooks,
456 f_Vns_lost_selection_hooks, f_Vselection_alist, f_Vns_reg_to_script
457 and corresponding defines.
458
459
460 2011-01-19 Sam Steingold <sds@gnu.org>
461
462 * w32.c (check_windows_init_file): Remove declarations of
463 Vwindow_system, Vload_path, Qfile_exists_p to fix compilation.
464 * w32fns.c: Fix an error introduced by the previous patch.
465
466 2011-01-19 Tom Tromey <tromey@redhat.com>
467
468 * window.c: Fix error introduced by previous patch.
469
470 2011-01-18 Tom Tromey <tromey@parfait>
471
472 * globals.h: New file.
473 * xterm.h (Vx_pixel_size_width_font_regexp): Remove declaration.
474 * window.h (Vinitial_window_system, Vminibuf_scroll_window)
475 (Vwindow_system_version): Remove declaration.
476 * w32term.h (Vw32_enable_palette)
477 (Vx_pixel_size_width_font_regexp): Remove declaration.
478 * w32menu.c (Voverriding_local_map)
479 (Voverriding_local_map_menu_flag): Remove declaration.
480 * w32inevt.c (Vw32_alt_is_meta, Vw32_apps_modifier)
481 (Vw32_capslock_is_shiftlock, Vw32_enable_caps_lock)
482 (Vw32_enable_num_lock, Vw32_lwindow_modifier)
483 (Vw32_pass_lwindow_to_system, Vw32_pass_rwindow_to_system)
484 (Vw32_phantom_key_code, Vw32_recognize_altgr)
485 (Vw32_rwindow_modifier, Vw32_scroll_lock_modifier)
486 (w32_use_full_screen_buffer): Remove declaration.
487 * w32.c (Vsystem_configuration, Vw32_downcase_file_names)
488 (Vw32_generate_fake_inodes, Vw32_get_true_file_attributes)
489 (w32_num_mouse_buttons, w32_pipe_read_delay): Remove declaration.
490 * termopts.h (Vtruncate_partial_width_windows, inverse_video)
491 (no_redraw_on_reenter, visible_bell): Remove declaration.
492 * sysdep.c (Vsystem_name): Remove declaration.
493 * syntax.h (parse_sexp_lookup_properties): Remove declaration.
494 * menu.h (Vmenu_updating_frame): Remove declaration.
495 * macros.h (Vexecuting_kbd_macro, executing_kbd_macro_index):
496 Remove declaration.
497 * lisp.h (Vafter_init_time, Vafter_load_alist)
498 (Vauto_save_list_file_name, Vbefore_init_time, Vcommand_history)
499 (Vcompletion_regexp_list, Vcurrent_load_list)
500 (Vcurrent_prefix_arg, Vdata_directory, Vdebug_on_error)
501 (Vdoc_directory, Vdoc_file_name, Vdynamic_library_alist)
502 (Vexec_directory, Vexec_path, Vexec_suffixes)
503 (Vface_font_rescale_alist, Vface_ignored_fonts, Vfeatures)
504 (Vhelp_form, Vhistory_length, Vinhibit_field_text_motion)
505 (Vinhibit_quit, Vinhibit_read_only, Vinhibit_redisplay)
506 (Vinstallation_directory, Vinvocation_directory)
507 (Vinvocation_name, Vload_file_rep_suffixes, Vload_history)
508 (Vload_suffixes, Vmark_even_if_inactive, Vmemory_full)
509 (Vmessage_log_max, Vobarray, Vprint_length, Vprint_level)
510 (Vpurify_flag, Vquit_flag, Vsaved_region_selection)
511 (Vscalable_fonts_allowed, Vselect_active_regions)
512 (Vshell_file_name, Vstandard_input, Vstandard_output)
513 (Vsystem_name, Vtemporary_file_directory, Vthrow_on_input)
514 (Vtop_level, Vtty_erase_char, Vundo_outer_limit)
515 (Vuser_login_name, Vwindow_scroll_functions)
516 (Vwindow_system_version, Vx_no_window_manager)
517 (Vx_resource_class, Vx_resource_name, baud_rate)
518 (completion_ignore_case, debug_on_next_call, gc_cons_threshold)
519 (history_delete_duplicates, inhibit_x_resources)
520 (last_nonmenu_event, load_in_progress, max_specpdl_size)
521 (minibuffer_auto_raise, print_escape_newlines, scroll_margin)
522 (use_dialog_box, use_file_dialog): Remove declaration. Include
523 globals.h.
524 * keymap.h (Voverriding_local_map)
525 (Voverriding_local_map_menu_flag, meta_prefix_char): Remove
526 declaration.
527 * keyboard.h (Vdouble_click_time, Vfunction_key_map)
528 (Vinput_method_function, Vkey_translation_map)
529 (Vlucid_menu_bar_dirty_flag, Vthis_original_command)
530 (do_mouse_tracking, extra_keyboard_modifiers)
531 (num_nonmacro_input_events): Remove declaration.
532 * intervals.h (Vchar_property_alias_alist)
533 (Vdefault_text_properties, Vinhibit_point_motion_hooks)
534 (Vtext_property_default_nonsticky): Remove declaration.
535 * gtkutil.h (x_gtk_file_dialog_help_text)
536 (x_gtk_show_hidden_files, x_gtk_use_old_file_dialog)
537 (x_gtk_whole_detached_tool_bar): Remove declaration.
538 * frame.h (Vdefault_frame_alist, Vframe_alpha_lower_limit)
539 (Vmenu_bar_mode, Vmouse_highlight, Vterminal_frame)
540 (Vtool_bar_mode, Vx_resource_class, Vx_resource_name)
541 (focus_follows_mouse): Remove declaration.
542 * fontset.h (Valternate_fontname_alist, Vfontset_alias_alist)
543 (Vignore_relative_composition, Votf_script_alist)
544 (Vuse_default_ascent, Vvertical_centering_font_regexp): Remove
545 declaration.
546 * font.h (Vfont_log): Remove declaration.
547 * dosfns.h (Vdos_display_scancodes, Vdos_version)
548 (Vdos_windows_version, dos_codepage, dos_country_code)
549 (dos_decimal_point, dos_hyper_key, dos_keyboard_layout)
550 (dos_keypad_mode, dos_super_key, dos_timezone_offset): Remove
551 declaration.
552 * disptab.h (Vglyph_table, Vstandard_display_table): Remove
553 declaration.
554 * dispextern.h (Vface_remapping_alist, Vglyphless_char_display)
555 (Vmouse_autoselect_window, Voverflow_newline_into_fringe)
556 (Vshow_trailing_whitespace, Vtool_bar_button_margin)
557 (Vtool_bar_style, cursor_in_echo_area, display_hourglass_p)
558 (inverse_video, mode_line_in_non_selected_windows)
559 (tool_bar_button_relief, tool_bar_max_label_size)
560 (underline_minimum_offset)
561 (unibyte_display_via_language_environment, x_stretch_cursor_p):
562 Remove declaration.
563 * composite.h (Vauto_composition_function)
564 (Vcomposition_function_table): Remove declaration.
565 * commands.h (Vexecuting_kbd_macro)
566 (Vminibuffer_local_completion_map)
567 (Vminibuffer_local_filename_completion_map)
568 (Vminibuffer_local_filename_must_match_map)
569 (Vminibuffer_local_map, Vminibuffer_local_must_match_map)
570 (Vminibuffer_local_ns_map, Vthis_command)
571 (Vunread_command_events, cursor_in_echo_area)
572 (last_command_event, last_nonmenu_event, unread_command_char):
573 Remove declaration.
574 * coding.h (Vcoding_system_for_read, Vcoding_system_for_write)
575 (Vdefault_file_name_coding_system)
576 (Vdefault_process_coding_system, Vfile_name_coding_system)
577 (Vlast_coding_system_used, Vlocale_coding_system)
578 (Vselect_safe_coding_system_function)
579 (Vtranslation_table_for_input, coding_system_require_warning)
580 (eol_mnemonic_dos, eol_mnemonic_mac, eol_mnemonic_undecided)
581 (eol_mnemonic_unix, inherit_process_coding_system): Remove
582 declaration.
583 * charset.h (Vcharset_list, Vcurrent_iso639_language): Remove
584 declaration.
585 * character.h (Vauto_fill_chars, Vchar_direction_table)
586 (Vchar_script_table, Vchar_width_table, Vprintable_chars)
587 (Vscript_representative_chars, Vtranslation_table_vector)
588 (Vunicode_category_table): Remove declaration.
589 * ccl.h (Vfont_ccl_encoder_alist): Remove declaration.
590 * buffer.h (Vafter_change_functions, Vbefore_change_functions)
591 (Vdeactivate_mark, Vfirst_change_hook, Vtransient_mark_mode)
592 (inhibit_modification_hooks): Remove declaration.
593 * xterm.c (syms_of_xterm): Update.
594 (Vx_alt_keysym, Vx_hyper_keysym, Vx_keysym_table)
595 (Vx_meta_keysym, Vx_super_keysym, Vx_toolkit_scroll_bars)
596 (x_mouse_click_focus_ignore_position)
597 (x_underline_at_descent_line)
598 (x_use_underline_position_properties): Remove.
599 * xsmfns.c (syms_of_xsmfns): Update.
600 (Vx_session_id, Vx_session_previous_id): Remove.
601 * xsettings.c (syms_of_xsettings): Update.
602 (Vxft_settings, use_system_font): Remove.
603 * xselect.c (syms_of_xselect): Update.
604 (Vselection_converter_alist, Vx_lost_selection_functions)
605 (Vx_sent_selection_functions, x_selection_timeout): Remove.
606 * xfns.c (syms_of_xfns): Update.
607 (Vgtk_version_string, Vmotif_version_string)
608 (Vx_cursor_fore_pixel, Vx_hourglass_pointer_shape)
609 (Vx_max_tooltip_size, Vx_mode_pointer_shape)
610 (Vx_no_window_manager, Vx_nontext_pointer_shape)
611 (Vx_pixel_size_width_font_regexp, Vx_pointer_shape)
612 (Vx_sensitive_text_pointer_shape)
613 (Vx_window_horizontal_drag_shape, x_gtk_file_dialog_help_text)
614 (x_gtk_show_hidden_files, x_gtk_use_old_file_dialog)
615 (x_gtk_use_system_tooltips, x_gtk_whole_detached_tool_bar):
616 Remove.
617 * xfaces.c (syms_of_xfaces): Update.
618 (Vface_default_stipple, Vface_font_rescale_alist)
619 (Vface_ignored_fonts, Vface_new_frame_defaults)
620 (Vface_remapping_alist, Vfont_list_limit)
621 (Vscalable_fonts_allowed, Vtty_defined_color_alist): Remove.
622 * xdisp.c (syms_of_xdisp): Update.
623 (Vauto_resize_tool_bars, Vblink_cursor_alist)
624 (Vdisplay_pixels_per_inch, Vfontification_functions)
625 (Vframe_title_format, Vglobal_mode_string)
626 (Vglyphless_char_display, Vhourglass_delay, Vhscroll_step)
627 (Vicon_title_format, Vinhibit_redisplay)
628 (Vline_number_display_limit, Vline_prefix)
629 (Vmax_mini_window_height, Vmenu_bar_update_hook)
630 (Vmenu_updating_frame, Vmessage_log_max)
631 (Vmouse_autoselect_window, Vnobreak_char_display)
632 (Voverlay_arrow_position, Voverlay_arrow_string)
633 (Voverlay_arrow_variable_list, Vredisplay_end_trigger_functions)
634 (Vresize_mini_windows, Vshow_trailing_whitespace)
635 (Vtool_bar_border, Vtool_bar_button_margin, Vtool_bar_style)
636 (Vtruncate_partial_width_windows, Vvoid_text_area_pointer)
637 (Vwindow_scroll_functions, Vwindow_size_change_functions)
638 (Vwindow_text_change_functions, Vwrap_prefix)
639 (auto_raise_tool_bar_buttons_p, automatic_hscrolling_p)
640 (debug_end_pos, display_hourglass_p, emacs_scroll_step)
641 (highlight_nonselected_windows, hscroll_margin)
642 (inhibit_eval_during_redisplay, inhibit_free_realized_faces)
643 (inhibit_menubar_update, inhibit_try_cursor_movement)
644 (inhibit_try_window_id, inhibit_try_window_reusing)
645 (line_number_display_limit_width)
646 (make_cursor_line_fully_visible_p, message_truncate_lines)
647 (mode_line_inverse_video, multiple_frames, overline_margin)
648 (scroll_conservatively, scroll_margin, tool_bar_button_relief)
649 (tool_bar_max_label_size, underline_minimum_offset)
650 (unibyte_display_via_language_environment, x_stretch_cursor_p):
651 Remove.
652 * window.c (syms_of_window): Update.
653 (Vminibuf_scroll_window, Vother_window_scroll_buffer)
654 (Vrecenter_redisplay, Vscroll_preserve_screen_position)
655 (Vtemp_buffer_show_function, Vwindow_configuration_change_hook)
656 (Vwindow_point_insertion_type, auto_window_vscroll_p)
657 (mode_line_in_non_selected_windows, next_screen_context_lines)
658 (window_min_height, window_min_width): Remove.
659 (scroll_margin): Remove declaration.
660 * w32term.c (syms_of_w32term): Update.
661 (Vw32_capslock_is_shiftlock, Vw32_grab_focus_on_raise)
662 (Vw32_recognize_altgr, Vw32_swap_mouse_buttons)
663 (Vx_toolkit_scroll_bars, w32_num_mouse_buttons)
664 (w32_use_visible_system_caret, x_underline_at_descent_line)
665 (x_use_underline_position_properties): Remove.
666 (Vcommand_line_args, Vsystem_name, extra_keyboard_modifiers):
667 Remove declaration.
668 * w32select.c (syms_of_w32select): Update.
669 (Vnext_selection_coding_system, Vselection_coding_system): Remove.
670 * w32proc.c (syms_of_ntproc): Update.
671 (Vw32_downcase_file_names, Vw32_generate_fake_inodes)
672 (Vw32_get_true_file_attributes, Vw32_quote_process_args)
673 (Vw32_start_process_inherit_error_mode)
674 (Vw32_start_process_share_console)
675 (Vw32_start_process_show_window, w32_pipe_read_delay): Remove.
676 (Vsystem_name): Remove declaration.
677 * w32font.c (syms_of_w32font): Update.
678 (Vw32_charset_info_alist): Remove.
679 * w32fns.c (globals_of_w32fns, syms_of_w32fns): Update.
680 (Vw32_alt_is_meta, Vw32_apps_modifier, Vw32_bdf_filename_alist)
681 (Vw32_color_map, Vw32_enable_caps_lock, Vw32_enable_num_lock)
682 (Vw32_enable_palette, Vw32_lwindow_modifier)
683 (Vw32_pass_alt_to_system, Vw32_pass_lwindow_to_system)
684 (Vw32_pass_rwindow_to_system, Vw32_phantom_key_code)
685 (Vw32_rwindow_modifier, Vw32_scroll_lock_modifier)
686 (Vx_cursor_fore_pixel, Vx_hourglass_pointer_shape)
687 (Vx_max_tooltip_size, Vx_mode_pointer_shape)
688 (Vx_no_window_manager, Vx_nontext_pointer_shape)
689 (Vx_pixel_size_width_font_regexp, Vx_pointer_shape)
690 (Vx_sensitive_text_pointer_shape)
691 (Vx_window_horizontal_drag_shape, w32_ansi_code_page)
692 (w32_enable_synthesized_fonts, w32_mouse_button_tolerance)
693 (w32_mouse_move_interval)
694 (w32_pass_extra_mouse_buttons_to_system)
695 (w32_pass_multimedia_buttons_to_system, w32_quit_key)
696 (w32_strict_fontnames, w32_strict_painting): Remove.
697 (Vhourglass_delay, Vmenu_bar_mode, Vtool_bar_mode)
698 (Vw32_recognize_altgr, Vwindow_system_version)
699 (w32_num_mouse_buttons, w32_use_visible_system_caret): Remove
700 declaration.
701 * w32console.c (syms_of_ntterm): Update.
702 (w32_use_full_screen_buffer): Remove.
703 (Vtty_defined_color_alist): Remove declaration.
704 * w16select.c (syms_of_win16select): Update.
705 (Vnext_selection_coding_system, Vselection_coding_system): Remove.
706 * undo.c (syms_of_undo): Update.
707 (Vundo_outer_limit, Vundo_outer_limit_function)
708 (undo_inhibit_record_point, undo_limit, undo_strong_limit):
709 Remove.
710 * textprop.c (syms_of_textprop): Update.
711 (Vchar_property_alias_alist, Vdefault_text_properties)
712 (Vinhibit_point_motion_hooks, Vtext_property_default_nonsticky):
713 Remove.
714 * terminal.c (syms_of_terminal): Update.
715 (Vdelete_terminal_functions, Vring_bell_function): Remove.
716 * term.c (syms_of_term): Update.
717 (Vresume_tty_functions, Vsuspend_tty_functions)
718 (no_redraw_on_reenter, system_uses_terminfo, visible_cursor):
719 Remove.
720 * syntax.c (syms_of_syntax): Update.
721 (Vfind_word_boundary_function_table, multibyte_syntax_as_symbol)
722 (open_paren_in_column_0_is_defun_start)
723 (parse_sexp_ignore_comments, parse_sexp_lookup_properties)
724 (words_include_escapes): Remove.
725 * search.c (syms_of_search): Update.
726 (Vinhibit_changing_match_data, Vsearch_spaces_regexp): Remove.
727 * process.c (syms_of_process): Update.
728 (Vprocess_adaptive_read_buffering, Vprocess_connection_type)
729 (delete_exited_processes): Remove.
730 * print.c (syms_of_print): Update.
731 (Vfloat_output_format, Vprint_charset_text_property)
732 (Vprint_circle, Vprint_continuous_numbering, Vprint_gensym)
733 (Vprint_length, Vprint_level, Vprint_number_table)
734 (Vstandard_output, print_escape_multibyte)
735 (print_escape_newlines, print_escape_nonascii, print_quoted):
736 Remove.
737 * msdos.c (syms_of_msdos): Update.
738 (Vdos_unsupported_char_glyph): Remove.
739 (unibyte_display_via_language_environment): Remove declaration.
740 * minibuf.c (syms_of_minibuf): Update.
741 (Vcompletion_regexp_list, Vhistory_add_new_input)
742 (Vhistory_length, Vminibuffer_completing_file_name)
743 (Vminibuffer_completion_confirm)
744 (Vminibuffer_completion_predicate, Vminibuffer_completion_table)
745 (Vminibuffer_exit_hook, Vminibuffer_help_form)
746 (Vminibuffer_history_position, Vminibuffer_history_variable)
747 (Vminibuffer_prompt_properties, Vminibuffer_setup_hook)
748 (Vread_buffer_function, Vread_expression_map)
749 (completion_ignore_case, enable_recursive_minibuffers)
750 (history_delete_duplicates, minibuffer_allow_text_properties)
751 (minibuffer_auto_raise, read_buffer_completion_ignore_case):
752 Remove.
753 * marker.c (syms_of_marker): Update.
754 (byte_debug_flag): Remove.
755 * macros.c (syms_of_macros): Update.
756 (Vexecuting_kbd_macro, executing_kbd_macro_index): Remove.
757 * lread.c (syms_of_lread): Update.
758 (Vafter_load_alist, Vbyte_boolean_vars)
759 (Vbytecomp_version_regexp, Vcurrent_load_list)
760 (Veval_buffer_list, Vload_file_name, Vload_file_rep_suffixes)
761 (Vload_history, Vload_path, Vload_read_function)
762 (Vload_source_file_function, Vload_suffixes, Vobarray)
763 (Vold_style_backquotes, Vpreloaded_file_list, Vread_circle)
764 (Vread_symbol_positions_list, Vread_with_symbol_positions)
765 (Vsource_directory, Vstandard_input, Vuser_init_file, Vvalues)
766 (force_load_messages, load_convert_to_unibyte)
767 (load_dangerous_libraries, load_force_doc_strings)
768 (load_in_progress): Remove.
769 * keymap.c (syms_of_keymap): Update.
770 (Vdefine_key_rebound_commands, Vemulation_mode_map_alists)
771 (Vminibuffer_local_completion_map)
772 (Vminibuffer_local_filename_completion_map)
773 (Vminibuffer_local_filename_must_match_map)
774 (Vminibuffer_local_map, Vminibuffer_local_must_match_map)
775 (Vminibuffer_local_ns_map, Vminor_mode_map_alist)
776 (Vminor_mode_overriding_map_alist, Vwhere_is_preferred_modifier):
777 Remove.
778 * keyboard.c (syms_of_keyboard): Update.
779 (Vauto_save_timeout, Vcommand_error_function)
780 (Vcommand_hook_internal, Vdeactivate_mark)
781 (Vdeferred_action_function, Vdeferred_action_list)
782 (Vdisable_point_adjustment, Vdouble_click_time)
783 (Vecho_keystrokes, Venable_disabled_menus_and_buttons)
784 (Vfunction_key_map, Vglobal_disable_point_adjustment)
785 (Vhelp_char, Vhelp_event_list, Vhelp_form)
786 (Vinput_method_function, Vinput_method_previous_message)
787 (Vkey_translation_map, Vlast_event_frame)
788 (Vlucid_menu_bar_dirty_flag, Vmenu_bar_final_items)
789 (Vminibuffer_message_timeout, Voverriding_local_map)
790 (Voverriding_local_map_menu_flag, Vpost_command_hook)
791 (Vpre_command_hook, Vprefix_help_command)
792 (Vsaved_region_selection, Vselect_active_regions)
793 (Vshow_help_function, Vspecial_event_map, Vsuggest_key_bindings)
794 (Vthis_command, Vthis_command_keys_shift_translated)
795 (Vthis_original_command, Vthrow_on_input, Vtimer_idle_list)
796 (Vtimer_list, Vtool_bar_separator_image_expression, Vtop_level)
797 (Vtty_erase_char, Vunread_command_events)
798 (Vunread_input_method_events, Vunread_post_input_method_events)
799 (auto_save_interval, cannot_suspend, do_mouse_tracking)
800 (double_click_fuzz, extra_keyboard_modifiers)
801 (inhibit_local_menu_bar_menus, last_command_event)
802 (last_input_event, last_nonmenu_event, menu_prompt_more_char)
803 (menu_prompting, meta_prefix_char, num_input_keys)
804 (num_nonmacro_input_events, polling_period, unread_command_char):
805 Remove.
806 * insdel.c (syms_of_insdel): Update.
807 (Vcombine_after_change_calls, check_markers_debug_flag): Remove.
808 * indent.c (syms_of_indent): Update.
809 (indent_tabs_mode): Remove.
810 * image.c (syms_of_image): Update.
811 (Vimage_cache_eviction_delay, Vimage_types)
812 (Vimagemagick_render_type, Vmax_image_size, Vx_bitmap_file_path)
813 (cross_disabled_images): Remove.
814 * fringe.c (syms_of_fringe): Update.
815 (Vfringe_bitmaps, Voverflow_newline_into_fringe): Remove.
816 * frame.c (syms_of_frame): Update.
817 (Vdefault_frame_alist, Vdefault_frame_scroll_bars)
818 (Vdelete_frame_functions, Vframe_alpha_lower_limit)
819 (Vmake_pointer_invisible, Vmenu_bar_mode, Vmouse_highlight)
820 (Vmouse_position_function, Vterminal_frame, Vtool_bar_mode)
821 (Vx_resource_class, Vx_resource_name, focus_follows_mouse):
822 Remove.
823 * fontset.c (syms_of_fontset): Update.
824 (Valternate_fontname_alist, Vfont_encoding_charset_alist)
825 (Vfontset_alias_alist, Vignore_relative_composition)
826 (Votf_script_alist, Vuse_default_ascent)
827 (Vvertical_centering_font_regexp): Remove.
828 * font.c (syms_of_font): Update.
829 (Vfont_encoding_alist, Vfont_log, Vfont_slant_table)
830 (Vfont_weight_table, Vfont_width_table): Remove.
831 * fns.c (syms_of_fns): Update.
832 (Vfeatures, use_dialog_box, use_file_dialog): Remove.
833 * filelock.c (syms_of_filelock): Update.
834 (Vtemporary_file_directory): Remove.
835 * fileio.c (syms_of_fileio): Update.
836 (Vafter_insert_file_functions, Vauto_save_include_big_deletions)
837 (Vauto_save_list_file_name, Vauto_save_visited_file_name)
838 (Vdefault_file_name_coding_system, Vfile_name_coding_system)
839 (Vfile_name_handler_alist, Vinhibit_file_name_handlers)
840 (Vinhibit_file_name_operation, Vset_auto_coding_function)
841 (Vwrite_region_annotate_functions)
842 (Vwrite_region_annotations_so_far)
843 (Vwrite_region_post_annotation_function)
844 (delete_by_moving_to_trash, write_region_inhibit_fsync): Remove.
845 (Vw32_get_true_file_attributes): Remove declaration.
846 * eval.c (syms_of_eval): Update.
847 (Vdebug_ignored_errors, Vdebug_on_error, Vdebug_on_signal)
848 (Vdebugger, Vinhibit_quit, Vmacro_declaration_function)
849 (Vquit_flag, Vsignal_hook_function, Vstack_trace_on_error)
850 (debug_on_next_call, debug_on_quit, debugger_may_continue)
851 (max_lisp_eval_depth, max_specpdl_size): Remove.
852 * emacs.c (syms_of_emacs): Update.
853 (Vafter_init_time, Vbefore_init_time, Vcommand_line_args)
854 (Vdynamic_library_alist, Vemacs_copyright, Vemacs_version)
855 (Vinstallation_directory, Vinvocation_directory)
856 (Vinvocation_name, Vkill_emacs_hook, Vpath_separator)
857 (Vprevious_system_messages_locale, Vprevious_system_time_locale)
858 (Vsystem_configuration, Vsystem_configuration_options)
859 (Vsystem_messages_locale, Vsystem_time_locale, Vsystem_type)
860 (inhibit_x_resources, noninteractive1): Remove.
861 * editfns.c (syms_of_editfns): Update.
862 (Vbuffer_access_fontified_property)
863 (Vbuffer_access_fontify_functions, Vinhibit_field_text_motion)
864 (Voperating_system_release, Vsystem_name, Vuser_full_name)
865 (Vuser_login_name, Vuser_real_login_name): Remove.
866 * dosfns.c (syms_of_dosfns): Update.
867 (Vdos_display_scancodes, Vdos_version, Vdos_windows_version)
868 (dos_codepage, dos_country_code, dos_decimal_point)
869 (dos_hyper_key, dos_keyboard_layout, dos_keypad_mode)
870 (dos_super_key, dos_timezone_offset): Remove.
871 * doc.c (syms_of_doc): Update.
872 (Vbuild_files, Vdoc_file_name): Remove.
873 * dispnew.c (syms_of_display): Update.
874 (Vglyph_table, Vinitial_window_system)
875 (Vredisplay_preemption_period, Vstandard_display_table)
876 (Vwindow_system_version, baud_rate, cursor_in_echo_area)
877 (inverse_video, redisplay_dont_pause, visible_bell): Remove.
878 * dired.c (syms_of_dired): Update.
879 (Vcompletion_ignored_extensions): Remove.
880 (Vw32_get_true_file_attributes): Remove declaration.
881 * dbusbind.c (syms_of_dbusbind): Update.
882 (Vdbus_debug, Vdbus_registered_buses)
883 (Vdbus_registered_objects_table): Remove.
884 * data.c (syms_of_data): Update.
885 (Vmost_negative_fixnum, Vmost_positive_fixnum): Remove.
886 * composite.c (syms_of_composite): Update.
887 (Vauto_composition_function, Vauto_composition_mode)
888 (Vcompose_chars_after_function, Vcomposition_function_table):
889 Remove.
890 * coding.c (syms_of_coding): Update.
891 (Vcharset_revision_table, Vcoding_category_list)
892 (Vcoding_system_alist, Vcoding_system_for_read)
893 (Vcoding_system_for_write, Vcoding_system_list)
894 (Vdefault_process_coding_system, Venable_character_translation)
895 (Vfile_coding_system_alist, Vlast_code_conversion_error)
896 (Vlast_coding_system_used, Vlatin_extra_code_table)
897 (Vlocale_coding_system, Vnetwork_coding_system_alist)
898 (Vprocess_coding_system_alist)
899 (Vselect_safe_coding_system_function)
900 (Vstandard_translation_table_for_decode)
901 (Vstandard_translation_table_for_encode)
902 (Vtranslation_table_for_input, coding_system_require_warning)
903 (eol_mnemonic_dos, eol_mnemonic_mac, eol_mnemonic_undecided)
904 (eol_mnemonic_unix, inherit_process_coding_system)
905 (inhibit_eol_conversion, inhibit_iso_escape_detection)
906 (inhibit_null_byte_detection): Remove.
907 * cmds.c (syms_of_cmds): Update.
908 (Vpost_self_insert_hook): Remove.
909 * charset.c (syms_of_charset): Update.
910 (Vcharset_list, Vcharset_map_path, Vcurrent_iso639_language)
911 (inhibit_load_charset_map): Remove.
912 * character.c (syms_of_character): Update.
913 (Vauto_fill_chars, Vchar_direction_table, Vchar_script_table)
914 (Vchar_width_table, Vprintable_chars)
915 (Vscript_representative_chars, Vtranslation_table_vector)
916 (Vunicode_category_table): Remove.
917 * ccl.c (syms_of_ccl): Update.
918 (Vcode_conversion_map_vector, Vfont_ccl_encoder_alist)
919 (Vtranslation_hash_table_vector): Remove.
920 * category.c (syms_of_category): Update.
921 (Vword_combining_categories, Vword_separating_categories): Remove.
922 * callproc.c (syms_of_callproc): Update.
923 (Vconfigure_info_directory, Vdata_directory, Vdoc_directory)
924 (Vexec_directory, Vexec_path, Vexec_suffixes)
925 (Vinitial_environment, Vprocess_environment)
926 (Vshared_game_score_directory, Vshell_file_name): Remove.
927 * callint.c (syms_of_callint): Update.
928 (Vcommand_debug_status, Vcommand_history, Vcurrent_prefix_arg)
929 (Vmark_even_if_inactive, Vmouse_leave_buffer_hook): Remove.
930 * bytecode.c (syms_of_bytecode): Update.
931 (Vbyte_code_meter, byte_metering_on): Remove.
932 * buffer.c (syms_of_buffer): Update.
933 (Vafter_change_functions, Vbefore_change_functions)
934 (Vchange_major_mode_hook, Vfirst_change_hook)
935 (Vinhibit_read_only, Vkill_buffer_query_functions)
936 (Vtransient_mark_mode, inhibit_modification_hooks): Remove.
937 * alloc.c (syms_of_alloc): Update.
938 (Vgc_cons_percentage, Vgc_elapsed, Vmemory_full)
939 (Vmemory_signal_data, Vpost_gc_hook, Vpurify_flag)
940 (cons_cells_consed, floats_consed, garbage_collection_messages)
941 (gc_cons_threshold, gcs_done, intervals_consed)
942 (misc_objects_consed, pure_bytes_used, string_chars_consed)
943 (strings_consed, symbols_consed, vector_cells_consed): Remove.
944
945 * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
946 (DEFVAR_INT): Assume global is in `globals'.
947 * alloc.c (globals): Define.
948
949 2011-01-18 Tom Tromey <tromey@redhat.com>
950
951 * image.c (Vimagemagick_render_type): Remove redundant
952 definition.
953
954 2011-01-18 Tom Tromey <tromey@redhat.com>
955
956 * xdisp.c (emacs_scroll_step): Rename from scroll_step.
957 (try_scrolling): Rename argument to 'arg_scroll_conservatively'.
958 (redisplay_window): Update.
959 (syms_of_xdisp): Update.
960
961 2011-01-18 Tom Tromey <tromey@redhat.com>
962
963 * gtkutil.h (x_gtk_use_old_file_dialog, x_gtk_show_hidden_files)
964 (x_gtk_file_dialog_help_text, x_gtk_whole_detached_tool_bar):
965 Declare.
966 * gtkutil.c (xg_uses_old_file_dialog):
967 (xg_get_file_with_chooser):
968 (xg_tool_bar_detach_callback): Don't redeclare globals.
969
970 2011-01-18 Tom Tromey <tromey@redhat.com>
971
972 * lisp.h (DEFVAR_BUFFER_DEFAULTS): New macro.
973 * buffer.c (syms_of_buffer): Use DEFVAR_BUFFER_DEFAULTS.
974
975 2011-01-18 Paul Eggert <eggert@cs.ucla.edu>
976
977 * lisp.h (DECL_ALIGN): Define if HAVE_ATTRIBUTE_ALIGNED, not if
978 defined __GNUC__. ../configure now checks for this GCC feature,
979 which is now also supported by IBM and Oracle compilers.
980 (USE_LSB_TAG) [defined DECL_ALIGN]: Also define if defined __sun,
981 since Solaris malloc returns mult-of-8.
982
983 2011-01-18 Stefan Monnier <monnier@iro.umontreal.ca>
984
985 * image.c (syms_of_image): Don't access XSYMBOL's internals directly.
986
987 2011-01-17 Paul Eggert <eggert@cs.ucla.edu>
988
989 Give a name FLOAT_TO_STRING_BUFSIZE to the constant 350.
990 * lisp.h (FLOAT_TO_STRING_BUFSIZE): New macro.
991 * data.c (Fnumber_to_string): Use it.
992 * print.c (float_to_string, print_object): Likewise.
993
994 Include <unistd.h> unilaterally.
995 * alloc.c, atimer.c, buffer.c, callproc.c, dired.c, dispnew.c, doc.c:
996 * doprnt.c, editfns.c, emacs.c, fileio.c, filelock.c, fns.c:
997 * getloadavg.c, getpagesize.h, gmalloc.c, image.c, keyboard.c:
998 * lread.c, process.c, process.h, ralloc.c, regex.c, sysdep.c:
999 * systty.h, term.c, termcap.c, xfns.c, xrdb.c, xselect.c, xsmfns.c:
1000 * xterm.c:
1001 Include <unistd.h> without worrying about HAVE_UNISTD_H, since
1002 unistd.h is always present now, possibly supplied by gnulib.
1003
1004 * mktime.c: Remove; moving to ../lib.
1005
1006 Use gnulib's mktime module.
1007 * deps.mk (mktime.o): Remove rule.
1008
1009 Use gnulib's ftoastr module.
1010 * print.c: Include ftoastr.h.
1011 (FLT_RADIX, DBL_MANT_DIG, DBL_DIG, DBL_MIN, DOUBLE_DIGITS_BOUND):
1012 Remove; no longer needed.
1013 (float_to_string): Use dtoastr rather than rolling our own code,
1014 which had an off-by-one bug on non-IEEE hosts.
1015
1016 Automate syncing from gnulib.
1017 * Makefile.in (lib): New macro.
1018 (ALL_CFLAGS): Add -I$(lib) -I$(srcdir)/../lib.
1019 ($(lib)/libgnu.a): New rule.
1020 (temacs$(EXEEXT)): Also link $(lib)/libgnu.a.
1021
1022 * xfns.c (x_real_positions): Fix signedness of local var 'ign'.
1023 XGetGeometry wants unsigned int *, not int *, for its last 4 args,
1024 so change the type of 'ign' to unsigned int from int.
1025
1026 * regex.c (analyse_first): Remove unreachable 'continue' statement.
1027
1028 * xterm.h (struct x_display_info): Remove stray semicolon.
1029 The extra semicolon didn't conform to the C standard.
1030 Problem reported by Sun cc.
1031
1032 * lisp.h: Redo flags and XSET slightly to avoid overflow diagnostics.
1033 These changes make compilation easier to follow with Sun cc.
1034 (ARRAY_MARK_FLAG): Make it signed, so that it can be assigned to
1035 EMACS_INT values without provoking overflow diagnostics.
1036 (PSEUDOVECTOR_FLAG): Likewise, for consistency.
1037 (XSET) [! USE_LSB_TAG]: Use unsigned left shift to avoid overflow
1038 diagnostic with signed left shift.
1039
1040 * fileio.c (make_temp_name): Remove unreachable code.
1041
1042 * fontset.c (free_realized_fontset): Mark unreachable code with if (0).
1043 Previously it was marked by preceding it with "return;", but
1044 Sun cc complains about this.
1045
1046 * coding.c (decode_coding_emacs_mule): Remove unreachable code.
1047 This is a typo left over from 2009-03-06T07:51:52Z!handa@m17n.org,
1048 which fixed Bug#2370. Caught by Sun cc.
1049
1050 2011-01-15 Martin Rudalics <rudalics@gmx.at>
1051
1052 * window.c (inhibit_point_swap): New variable.
1053 (Fselect_window): If inhibit_point_swap is nonzero, avoid swapping
1054 point this time.
1055 (Fset_window_configuration): Set inhibit_point_swap to 1 instead
1056 of setting selected_window to nil (Bug#7728).
1057
1058 2011-01-11 Tassilo Horn <tassilo@member.fsf.org>
1059
1060 * image.c (imagemagick_load_image, Finit_image_library):
1061 Free intermediate image after creating a MagickWand from it.
1062 Terminate MagickWand environment after image loading.
1063
1064 2011-01-10 Michael Albinus <michael.albinus@gmx.de>
1065
1066 * dbusbind.c (Fdbus_register_service): Raise an error in case of
1067 unexpected return values.
1068 (Fdbus_register_method): Remove connection initialization.
1069
1070 2011-01-10 Jan Moringen <jan.moringen@uni-bielefeld.de>
1071
1072 * dbusbind.c (QCdbus_request_name_allow_replacement): New symbol;
1073 used by Fdbus_register_service.
1074 (QCdbus_request_name_replace_existing): Likewise.
1075 (QCdbus_request_name_do_not_queue): Likewise.
1076 (QCdbus_request_name_reply_primary_owner): Likewise.
1077 (QCdbus_request_name_reply_in_queue): Likewise.
1078 (QCdbus_request_name_reply_exists): Likewise.
1079 (QCdbus_request_name_reply_already_owner): Likewise.
1080 (Fdbus_register_service): New function.
1081 (Fdbus_register_method): Use Fdbus_register_service to do the name
1082 registration.
1083 (syms_of_dbusbind): Add symbols dbus-register-service,
1084 :allow-replacement, :replace-existing, :do-not-queue,
1085 :primary-owner, :existing, :in-queue and :already-owner.
1086
1087 2011-01-09 Chong Yidong <cyd@stupidchicken.com>
1088
1089 * gtkutil.c (update_frame_tool_bar): Don't advance tool-bar index
1090 when removing extra buttons.
1091
1092 2011-01-08 Chong Yidong <cyd@stupidchicken.com>
1093
1094 * fns.c (Fyes_or_no_p): Doc fix.
1095
1096 2011-01-08 Andreas Schwab <schwab@linux-m68k.org>
1097
1098 * fns.c (Fyes_or_no_p): Add usage.
1099
1100 2011-01-08 Glenn Morris <rgm@gnu.org>
1101
1102 * makefile.w32-in ($(EMACS)):
1103 * Makefile.in (emacs$(EXEEXT)): -batch implies -q.
1104
1105 * xdisp.c (syms_of_xdisp) <Qrisky_local_variable>: Move from here...
1106 * emacs.c (syms_of_emacs) <Qrisky_local_variable>: ...to here.
1107
1108 2011-01-07 Andreas Schwab <schwab@linux-m68k.org>
1109
1110 * image.c (imagemagick_load_image): Fix some resource leaks and
1111 error handling.
1112
1113 2011-01-07 Chong Yidong <cyd@stupidchicken.com>
1114
1115 * fns.c (Fyes_or_no_p): Accept format string args.
1116
1117 2011-01-07 Glenn Morris <rgm@gnu.org>
1118
1119 * emacs.c (no_site_lisp): New int.
1120 (USAGE1): Add --no-site-lisp, mention -Q uses it.
1121 (main): Set no_site_lisp.
1122 (standard_args): Add --no-site-lisp.
1123 * lisp.h (no_site_lisp): New int.
1124 * lread.c (init_lread): If no_site_lisp, don't re-add site-lisp
1125 directories to Vload_path.
1126
1127 2011-01-05 Andreas Schwab <schwab@linux-m68k.org>
1128
1129 * alloc.c (mark_stack): Use __builtin_unwind_init if available.
1130
1131 2011-01-04 Jan Moringen <jan.moringen@uni-bielefeld.de>
1132
1133 * dbusbind.c (Fdbus_register_method): Add optional parameter
1134 dont_register_service. Updated docstring accordingly.
1135
1136 2011-01-04 Glenn Morris <rgm@gnu.org>
1137
1138 * emacs.c (emacs_copyright): Update short copyright year to 2011.
1139
1140 2011-01-03 Eli Zaretskii <eliz@gnu.org>
1141
1142 * image.c (png_jmpbuf): Remove definition.
1143 (my_png_error, png_load): Don't use png_jmpbuf.
1144
1145 2011-01-02 Eli Zaretskii <eliz@gnu.org>
1146
1147 * keyboard.c (Vselect_active_regions): Doc fix. (Bug#7702)
1148
1149 2011-01-02 Eli Zaretskii <eliz@gnu.org>
1150
1151 * image.c <Qlibpng_version>: New variable.
1152 (syms_of_image): Intern and staticpro it. Set its value to the
1153 version of PNG library we were compiled with.
1154 (my_png_error, png_load): Avoid GCC warnings about direct access
1155 to png_ptr->jmpbuf. (Bug#7716)
1156 (png_jmpbuf): New macro.
1157 (my_png_error, png_load): Use it instead of #ifdef'ing according
1158 to PNG_LIBPNG_VER_MAJOR and PNG_LIBPNG_VER_MINOR.
1159
1160 2011-01-02 Stefan Monnier <monnier@iro.umontreal.ca>
1161
1162 * .gdbinit (xgetptr): Fix the union+lsb case.
1163 (xbacktrace): Fix the union case.
1164
1165 2011-01-02 Stefan Monnier <monnier@iro.umontreal.ca>
1166
1167 * window.c (Fmove_to_window_line): Avoid abort when called in a buffer
1168 different from selected-window's.
1169
1170 2011-01-02 Eli Zaretskii <eliz@gnu.org>
1171
1172 * keyboard.c (parse_menu_item): Prepend " " to the key sequence
1173 equivalent of a menu item when the key sequence is given by the
1174 `:keys' attribute. (Bug#7662)
1175
1176 * xdisp.c (Fformat_mode_line): Doc fix: no need to state that only
1177 the basic faces are supported.
1178
1179 2011-01-02 Jan Djärv <jan.h.d@swipnet.se>
1180
1181 * xterm.c (x_check_fullscreen): Fix pixel/character mixup.
1182
1183 2011-01-02 Eli Zaretskii <eliz@gnu.org>
1184
1185 * xdisp.c (Fformat_mode_line): Fix last change.
1186
1187 2011-01-02 Chong Yidong <cyd@stupidchicken.com>
1188
1189 * xdisp.c (Fformat_mode_line): Restrict the FACE argument to basic
1190 faces (Bug#7587).
1191
1192 2011-01-02 Eli Zaretskii <eliz@gnu.org>
1193
1194 * fileio.c (Fexpand_file_name): One more doc fix.
1195
1196 2011-01-01 Chong Yidong <cyd@stupidchicken.com>
1197
1198 * gtkutil.c (xg_get_tool_bar_widgets): Use NULL for a missing
1199 image or label in the container.
1200 (xg_make_tool_item): Replace VERT_ONLY arg with HORIZ, TEXT_IMAGE.
1201 (xg_show_toolbar_item): Function deleted.
1202 (xg_tool_item_stale_p): New function.
1203 (update_frame_tool_bar): Calculate tool-bar style once per call.
1204 Instead of hiding text labels, omit them. Don't use
1205 xg_show_toolbar_item; create new GtkToolItems from scratch if
1206 necessary, instead of trying to re-use them. This avoids an
1207 annoying animation when changing tool-bars.
1208
1209 2010-12-31 Jan Djärv <jan.h.d@swipnet.se>
1210
1211 * nsfns.m (ns_set_name_as_filename): Always use buffer name for
1212 title and buffer filename only for RepresentedFilename.
1213 Handle bad UTF-8 in buffer name (Bug#7517).
1214
1215 2010-12-30 Jan Djärv <jan.h.d@swipnet.se>
1216
1217 * coding.h (ENCODE_UTF_8): Remove "Used by ..." comment.
1218
1219 * nsfns.m (ns_set_name_iconic): Remove.
1220 (ns_set_name_internal): New function (Bug#7517).
1221 (Vicon_title_format): Extern declare.
1222 (ns_set_name): Call ns_set_name_internal.
1223 (x_explicitly_set_name): Remove call to ns_set_name_iconic.
1224 (x_implicitly_set_name): Ditto.
1225 (x_set_title): Remove commet about EXPLICIT. Call ns_set_name_internal.
1226 (ns_set_name_as_filename): Encode name with ENCODE_UTF_8 (Bug#7517).
1227
1228 2010-12-29 Štěpán Němec <stepnem@gmail.com> (tiny change)
1229
1230 * window.c (syms_of_window): Add missing defsubr for
1231 window-use-time.
1232
1233 2010-12-28 Andreas Schwab <schwab@linux-m68k.org>
1234
1235 * xterm.h (x_alloc_lighter_color_for_widget): Restore declaration.
1236 * xterm.c (x_alloc_lighter_color_for_widget): Restore.
1237
1238 2010-12-27 Andreas Schwab <schwab@linux-m68k.org>
1239
1240 * buffer.c: Remove unused declarations.
1241 * buffer.h: Likewise.
1242 * charset.h: Likewise.
1243 * composite.h: Likewise.
1244 * dispextern.h: Likewise.
1245 * dispnew.c: Likewise.
1246 * font.h: Likewise.
1247 * fontset.c: Likewise.
1248 * fontset.h: Likewise.
1249 * intervals.h: Likewise.
1250 * keymap.h: Likewise.
1251 * lisp.h: Likewise.
1252 * syntax.c: Likewise.
1253 * syntax.h: Likewise.
1254 * termhooks.h: Likewise.
1255 * window.h: Likewise.
1256 * xsettings.h: Likewise.
1257 * xterm.c: Likewise.
1258 * xterm.h: Likewise.
1259
1260 * chartab.c (sub_char_table_ref): Make static.
1261 * dispnew.c (line_hash_code, required_matrix_height)
1262 (required_matrix_width): Likewise.
1263 * eval.c (interactive_p, apply_lambda): Likewise.
1264 * fns.c (string_make_multibyte, copy_hash_table, hash_clear):
1265 Likewise.
1266 * font.c (QCadstyle, QCregistry, font_make_spec)
1267 (font_parse_fcname, font_encode_char, font_at): Likewise.
1268 * frame.c (x_frame_get_arg): Likewise.
1269 * keymap.c (get_keyelt): Likewise.
1270 * lread.c (read_filtered_event): Likewise.
1271 * print.c (write_string_1): Likewise.
1272 * window.c (delete_window, window_height, window_width)
1273 (foreach_window): Likewise.
1274 * xrdb.c (x_get_customization_string, x_get_resource): Likewise.
1275 * xterm.c (x_scroll_bar_clear, xembed_set_info)
1276 (xembed_send_message): Likewise.
1277
1278 * eval.c (run_hook_list_with_args): Delete.
1279 * font.c (font_unparse_gtkname, font_update_lface): Likewise.
1280 * terminal.c (get_terminal_param): Likewise.
1281 * xterm.c (x_alloc_lighter_color_for_widget): Likewise.
1282
1283 * scroll.c: Fix comment.
1284
1285 * dispnew.c (add_window_display_history)
1286 (add_frame_display_history, glyph_row_slice_p)
1287 (find_glyph_row_slice, flush_stdout)
1288 (check_matrix_pointer_lossage, matrix_row)
1289 (check_matrix_invariants, check_window_matrix_pointers)
1290 (check_matrix_pointers, window_to_frame_vpos)
1291 (window_to_frame_hpos): Prototize.
1292 * textprop.c (erase_properties): Likewise.
1293
1294 2010-12-22 Stefan Monnier <monnier@iro.umontreal.ca>
1295
1296 * print.c (PRINT_NUMBER_OBJECT, PRINT_NUMBER_STATUS): Remove.
1297 (print_preprocess): Fix handling of uninterned symbols in last change.
1298
1299 * print.c (print, print_preprocess, print_object): Use a hash table
1300 rather than a linear table for Vprint_number_table.
1301
1302 2010-12-20 Chong Yidong <cyd@stupidchicken.com>
1303
1304 * frame.c (focus_follows_mouse): Default to 0 (Bug#7269).
1305
1306 2010-12-20 Chong Yidong <cyd@stupidchicken.com>
1307
1308 * keyboard.c (Vtool_bar_separator_image_expression): New variable.
1309 (parse_tool_bar_item): Use it to obtain image separators for
1310 displays not using native tool-bar separators.
1311
1312 * xdisp.c (build_desired_tool_bar_string): Don't handle separators
1313 specially, since this is now done in parse_tool_bar_item.
1314
1315 2010-12-19 Stefan Monnier <monnier@iro.umontreal.ca>
1316
1317 Minor clean up to silence some gcc warnings.
1318 * window.c (Fset_window_buffer):
1319 * xterm.c (x_set_frame_alpha): Restructure code to silence
1320 compiler warning.
1321 (handle_one_xevent): Remove unused var `p'.
1322 (do_ewmh_fullscreen): Remove unused var `lval'.
1323 (xembed_set_info): Remove unused var `atom'.
1324 * textprop.c (Fremove_list_of_text_properties): Add braces to silence
1325 compiler warning.
1326 * fontset.c (fontset_id_valid_p, dump_fontset):
1327 * ftfont.c (ftfont_drive_otf): Modernize k&r declaration.
1328 * eval.c (Feval, Ffuncall): Avoid unneeded gotos.
1329 * dispnew.c (update_frame, update_frame_1): Compile the `do_pause'
1330 label only when it's used.
1331 * image.c (x_create_bitmap_from_xpm_data):
1332 * dispextern.h (x_create_bitmap_from_xpm_data): Use const char** like
1333 its callers.
1334 * coding.c (detect_coding_utf_16): Remove unused vars `src_base' and
1335 `consumed_chars'.
1336 (DECODE_EMACS_MULE_21_COMPOSITION): Remove unused var `charbuf_base'.
1337 (decode_coding_emacs_mule): Remove unused label `retry'.
1338 (detect_eol): Add parens to silence compiler warning.
1339 * alloc.c (bytes_used_when_reconsidered): Move to the #ifdef where
1340 it's used to silence the compiler.
1341 (make_number): Modernize k&r declaration.
1342 (mark_char_table): Add parens to silence compiler warning.
1343
1344 2010-12-17 Chong Yidong <cyd@stupidchicken.com>
1345
1346 * keyboard.c (parse_tool_bar_item): Allow menu separators in
1347 tool-bar maps.
1348 (menu_separator_name_p): New function, from gtkutil.c.
1349 (separator_names): Move from gtkutil.c.
1350
1351 * keyboard.h (menu_separator_name_p): Add prototype.
1352
1353 * gtkutil.c (XG_BIN_CHILD): New macro.
1354 (xg_get_menu_item_label, xg_update_menubar)
1355 (xg_update_menu_item, xg_tool_bar_menu_proxy)
1356 (xg_show_toolbar_item, update_frame_tool_bar): Use it.
1357 (separator_names, xg_separator_p): Move to keyboard.c.
1358 (create_menus, xg_update_submenu, update_frame_tool_bar):
1359 Use menu_separator_name_p.
1360
1361 * nsmenu.m (name_is_separator): Function deleted.
1362 (addItemWithWidgetValue): Use menu_separator_name_p.
1363
1364 * w32menu.c (name_is_separator): Function deleted.
1365 (add_menu_item): Use menu_separator_name_p.
1366
1367 2010-12-16 Jan Djärv <jan.h.d@swipnet.se>
1368
1369 * nsterm.m (ns_draw_window_cursor): If the cursor color is the
1370 same as the background, use the face forground as cursor.
1371
1372 2010-12-13 Eli Zaretskii <eliz@gnu.org>
1373
1374 * fileio.c (Fexpand_file_name): Doc fix. (Bug#7617)
1375
1376 2010-12-13 Eli Zaretskii <eliz@gnu.org>
1377
1378 * xdisp.c (string_pos_nchars_ahead, c_string_pos)
1379 (face_before_or_after_it_pos, next_element_from_string)
1380 (next_element_from_c_string, produce_stretch_glyph): Remove unused
1381 calculations of maximum string length before calling
1382 string_char_and_length and STRING_CHAR_AND_LENGTH.
1383 (string_char_and_length): Update commentary: MAXLEN is no longer
1384 needed.
1385
1386 2010-12-13 Jan Djärv <jan.h.d@swipnet.se>
1387
1388 * keyboard.c (kbd_buffer_get_event): Construct SAVE_SESSION_EVENT
1389 as (Qsave_session arg).
1390
1391 * xsmfns.c (smc_interact_CB): Set arg to Qnil.
1392 (smc_die_CB): Make an event with arg Qt.
1393 (Fhandle_save_session): If event has Qt as argument,
1394 call Fkill_emacs (Bug#7552).
1395
1396 2010-12-13 Chong Yidong <cyd@stupidchicken.com>
1397
1398 * buffer.c (transient-mark-mode): Doc fix (Bug#7465).
1399
1400 2010-12-13 Jan Djärv <jan.h.d@swipnet.se>
1401
1402 * xsmfns.c (smc_die_CB): Call Fkill_emacs (Bug#7552).
1403
1404 2010-12-13 Chong Yidong <cyd@stupidchicken.com>
1405
1406 * dispextern.h (struct it): New member overlay_strings_charpos.
1407
1408 * xdisp.c (next_overlay_string, load_overlay_strings): Record the
1409 charpos where we computed n_overlay_strings.
1410 (next_overlay_string): Load overlay strings at recorded position,
1411 which may not be the same as the iterator's charpos (Bug#7016).
1412
1413 2010-12-13 Chong Yidong <cyd@stupidchicken.com>
1414
1415 * xdisp.c (try_scrolling): Avoid infloop if the first line is
1416 obscured due to a vscroll (Bug#7537).
1417
1418 2010-12-13 Jan Djärv <jhd@zeplinf.localdomain>
1419
1420 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
1421
1422 * nsterm.m (x_set_window_size, windowWillResize, initFrameFromEmacs):
1423 Use FRAME_TOOLBAR_HEIGHT.
1424 (x_set_offset): Handle XNegative and YNegative in
1425 f->size_hint_flags (Bug#7510).
1426
1427 2010-12-11 Eli Zaretskii <eliz@gnu.org>
1428
1429 * w32fns.c (Fx_show_tip): Call try_window with last argument
1430 TRY_WINDOW_IGNORE_FONTS_CHANGE. Delete the TODO ifdef: problem
1431 solved. Round up the tip height to an integral multiple of the
1432 frame's line height. Add FRAME_COLUMN_WIDTH to the tip width.
1433 (Bug#7398)
1434
1435 2010-12-08 Glenn Morris <rgm@gnu.org>
1436
1437 * fileio.c (Fverify_visited_file_modtime): Default to current buffer.
1438
1439 2010-12-06 Lars Magne Ingebrigtsen <larsi@gnus.org>
1440
1441 * xml.c (parse_region): Ignore blank HTML nodes.
1442 (make_dom): Return CDATA sections (like <style>foo</style>) as
1443 text nodes.
1444
1445 2010-12-06 Stefan Monnier <monnier@iro.umontreal.ca>
1446
1447 * lread.c (read1): Allow newstyle unquote outside of backquote.
1448 Disallow old-style backquotes inside new-style backquotes.
1449 Don't count unquotes to figure out when we're "syntactically inside
1450 but semantically outside of a backquote" any more.
1451 Extend the restriction no-unescaped-commas-and-backquotes-in-symbols
1452 to all contexts.
1453
1454 2010-12-05 Chong Yidong <cyd@stupidchicken.com>
1455
1456 * process.c: Remove checks for HAVE_SYS_IOCTL_H (Bug#7484).
1457
1458 2010-12-04 Andreas Schwab <schwab@linux-m68k.org>
1459
1460 * Makefile.in (M_FILE): Substitute @M_FILE@ instead of @machfile@.
1461 (S_FILE): Substitute @S_FILE@ instead of @opsysfile@.
1462 * m/arm.h, m/sh3.h, m/xtensa.h: Remove files.
1463
1464 2010-12-03 Andreas Schwab <schwab@linux-m68k.org>
1465
1466 * lisp.h (union Lisp_Object): Explicitly declare signedness of
1467 bit-field.
1468 (XINT): Remove variant for EXPLICIT_SIGN_EXTEND.
1469 * m/alpha.h (EXPLICIT_SIGN_EXTEND): Don't define.
1470 * m/amdx86-64.h (EXPLICIT_SIGN_EXTEND): Likewise.
1471 * m/ia64.h (EXPLICIT_SIGN_EXTEND): Likewise.
1472 * m/ibms390.h (EXPLICIT_SIGN_EXTEND): Likewise.
1473 * m/ibms390x.h (EXPLICIT_SIGN_EXTEND): Likewise.
1474 * m/iris4d.h (EXPLICIT_SIGN_EXTEND): Likewise.
1475 * m/m68k.h (EXPLICIT_SIGN_EXTEND): Likewise.
1476 * m/sparc.h (EXPLICIT_SIGN_EXTEND): Likewise.
1477 * m/template.h (EXPLICIT_SIGN_EXTEND): Likewise.
1478 * m/hp800.h: Remove file.
1479 * m/mips.h: Remove file.
1480
1481 2010-12-03 Jan Djärv <jan.h.d@swipnet.se>
1482
1483 * nsterm.m (ns_dumpglyphs_image): If drawing cursor, fill background
1484 with cursor color and draw a rectangle around the image (Bug#7412).
1485
1486 2010-12-03 Andreas Schwab <schwab@linux-m68k.org>
1487
1488 * frame.c (x_set_font): Remove unused variable.
1489
1490 2010-12-02 Jan Djärv <jan.h.d@swipnet.se>
1491
1492 * nsmenu.m (update_frame_tool_bar): Remove NSLog on invalid image.
1493
1494 * nsterm.m (ns_draw_glyph_string): Switch fore- and background if
1495 drawing text under filled box cursor (Bug#7479).
1496
1497 2010-11-27 Kenichi Handa <handa@m17n.org>
1498
1499 * charset.c (emacs_mule_charset): Make it an array of charset ID;
1500 i.e. integer.
1501 (Fdefine_charset_internal): Adjust for the above change.
1502 (init_charset_once): Likewise.
1503
1504 * charset.h (emacs_mule_charset): Adjust the prototype.
1505 Delete duplicated extern.
1506
1507 * coding.c (emacs_mule_char): Adjust for the change of
1508 emacs_mule_charset.
1509
1510 * lread.c (read_emacs_mule_char): Adjust for the change of
1511 emacs_mule_charset.
1512
1513 2010-11-27 Eli Zaretskii <eliz@gnu.org>
1514
1515 * w32.c (_PROCESS_MEMORY_COUNTERS_EX): Don't define with versions
1516 of w32api >= 3.15. (Bug#6989) (Bug#7452)
1517
1518 2010-11-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1519
1520 * alloc.c (mark_terminals): Ensure that the image cache is marked
1521 even if the terminal object was marked earlier (Bug#6301).
1522
1523 2010-11-21 Chong Yidong <cyd@stupidchicken.com>
1524
1525 * editfns.c (Fbyte_to_string): Signal an error arg is not a byte.
1526
1527 2010-11-27 Jan Djärv <jan.h.d@swipnet.se>
1528
1529 * gtkutil.c (menubar_map_cb): New function (Bug#7425).
1530 (xg_update_frame_menubar): Connect signal map to menubar_map_cb.
1531 Use 23 as menubar height if 0. (Bug#7425).
1532
1533 2010-11-26 Eli Zaretskii <eliz@gnu.org>
1534
1535 * xdisp.c (set_message_1): Force paragraph direction in echo area
1536 be left-to-right.
1537
1538 * keyboard.c (make_lispy_position): Put a meaningful value in yret
1539 when the click is on the header or mode line.
1540
1541 2010-11-25 Eli Zaretskii <eliz@gnu.org>
1542
1543 * xdisp.c (set_cursor_from_row): Don't forget to consider the
1544 `cursor' property of the first character in overlay strings.
1545 (Bug#7474) (Bug#7481)
1546
1547 2010-11-24 Jan Djärv <jan.h.d@swipnet.se>
1548
1549 * nsterm.m (NSLeftControlKeyMask, NSLeftCommandKeyMask)
1550 (NSLeftAlternateKeyMask): New defines.
1551 (keyDown): Parse left and right keys separately (Bug#7458).
1552 Compare Left key masks exactly (Bug#7458).
1553
1554 2010-11-23 Eli Zaretskii <eliz@gnu.org>
1555
1556 * intervals.c (temp_set_point_both): Define before calling, to
1557 avoid GCC warnings.
1558
1559 2010-11-23 Dan Nicolaescu <dann@ics.uci.edu>
1560
1561 * nsmenu.m: Use #include <config.h> instead of "config.h".
1562
1563 * term.c (Qglyphless_char,last_glyphless_glyph_frame)
1564 (last_glyphless_glyph_face_id. last_glyphless_glyph_merged_face_id):
1565 Move declarations ...
1566 * lisp.h (Qglyphless_char,last_glyphless_glyph_frame)
1567 (last_glyphless_glyph_face_id. last_glyphless_glyph_merged_face_id):
1568 ... here.
1569
1570 * emacs.c (gdb_use_union, gdb_valbits,gdb_gctypebits)
1571 (gdb_data_seg_bits, gdb_array_mark_flag, PVEC_FLAG)
1572 (gdb_pvec_type):
1573 * print.c (print_output_debug_flag):
1574 * lisp.h (debug_print): Mark as EXTERNALLY_VISIBLE.
1575 (safe_debug_print): New declaration.
1576
1577 * xterm.c:
1578 * systty.h:
1579 * sound.c: Include <sys/ioctl.h> unconditionally.
1580
1581 2010-11-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1582
1583 * alloc.c (mark_maybe_object): Return early if given a Lisp
1584 integer (Bug#6301).
1585
1586 2010-11-21 Ken Brown <kbrown@cornell.edu>
1587
1588 * sheap.c (STATIC_HEAP_SIZE): Revert previous change.
1589
1590 2010-11-21 Jan Djärv <jan.h.d@swipnet.se>
1591
1592 * nsterm.m (ns_right_command_modifier, ns_right_control_modifier):
1593 Define (Bug#7458).
1594 (NSRightCommandKeyMask, NSRightControlKeyMask): Define (Bug#7458).
1595 (EV_MODIFIERS): Check for NSRightCommandKeyMask and
1596 NSRightControlKeyMask also (Bug#7458).
1597 (keyDown): Ditto (Bug#7458).
1598 (syms_of_nsterm): Defvar ns-right-command-modifier and
1599 ns-right-control-modifier (Bug#7458).
1600
1601 2010-11-21 Dan Nicolaescu <dann@ics.uci.edu>
1602
1603 * sysdep.c (sys_subshell): Remove SET_EMACS_PRIORITY.
1604 * emacs.c (emacs_priority, syms_of_emacs): Remove emacs_priority.
1605
1606 * intervals.h (temp_set_point, temp_set_point_both):
1607 * buffer.h (offset_intervals, copy_intervals): Remove INLINE.
1608
1609 2010-11-20 Ken Brown <kbrown@cornell.edu>
1610
1611 * sheap.c (STATIC_HEAP_SIZE): Increase to 13MB.
1612
1613 2010-11-20 Eli Zaretskii <eliz@gnu.org>
1614
1615 * term.c (produce_glyphless_glyph): Use \uNNNN, \UNNNNNN, or
1616 \xNNNNNN for hex-code display of glyphless characters.
1617
1618 2010-11-20 Jan Djärv <jan.h.d@swipnet.se>
1619
1620 * gtkutil.c (xg_make_tool_item): Take vert_only as argument.
1621 Set important to ! vert_only.
1622 (xg_show_toolbar_item): Don't show label horizontally if
1623 tool item isn't important.
1624 (update_frame_tool_bar): Get TOOL_BAR_ITEM_VERT_ONLY and pass it to
1625 xg_make_tool_item, or update important on existing tool item.
1626
1627 * keyboard.c (QCvert_only): New variable.
1628 (parse_tool_bar_item): Check for QCvert_only.
1629 (syms_of_keyboard): Initialize QCvert_only.
1630
1631 * dispextern.h (tool_bar_item_idx): Add TOOL_BAR_ITEM_VERT_ONLY.
1632
1633 2010-11-20 Eli Zaretskii <eliz@gnu.org>
1634
1635 * msdos.c (dos_rawgetc): Use gen_help_event, instead of doing the
1636 same in-line.
1637
1638 2010-11-20 Andreas Schwab <schwab@linux-m68k.org>
1639
1640 * xfaces.c (lookup_face): Make static.
1641 * dispnew.c (copy_row_except_pointers): Likewise.
1642 * syntax.c (dec_bytepos): Likewise.
1643 (inc_bytepos): Remove.
1644 * dispextern.h (lookup_face): Remove declaration.
1645
1646 2010-11-19 Eli Zaretskii <eliz@gnu.org>
1647
1648 * xdisp.c (set_cursor_from_row): Display cursor after all the
1649 glyphs that come from an overlay. Don't overstep the last glyph
1650 when skipping glyphs from an overlay. (Bug#6687)
1651
1652 2010-11-18 Dan Nicolaescu <dann@ics.uci.edu>
1653
1654 * alloc.c (refill_memory_reserve): Move declaration ...
1655 * lisp.h (refill_memory_reserve): ... here.
1656
1657 * strftime.c (_strftime_copytm): Add declaration.
1658
1659 * callproc.c (syms_of_callproc): Use intern_c_string.
1660
1661 Move declarations from .c files to .h files.
1662 * process.c (timers_run):
1663 * minibuf.c (quit_char):
1664 * lread.c (read_emacs_mule_char):
1665 * keyboard.c (minibuf_level, message_enable_multibyte)
1666 (pending_malloc_warning):
1667 * insdel.c (Vselect_active_regions, Vsaved_region_selection)
1668 (Qonly): Remove declarations.
1669 * lisp.h (pending_malloc_warning, Vsaved_region_selection)
1670 (Vselect_active_regions):
1671 * keyboard.h (timers_run): Add declarations.
1672
1673 * strftime.c (my_strftime_gmtime_r, my_strftime_localtime_r)
1674 (tm_diff): Convert definitions to standard C.
1675 (extra_args_spec_iso): Remove, unused.
1676
1677 2010-11-18 Jan Djärv <jan.h.d@swipnet.se>
1678
1679 * xsettings.c (init_gconf): Check HAVE_G_TYPE_INIT.
1680
1681 * config.in (HAVE_G_TYPE_INIT): New symbol.
1682
1683 2010-11-18 Eli Zaretskii <eliz@gnu.org>
1684
1685 * lread.c (Fload): Mention `load-in-progress' and
1686 `load-file-name'. (Bug#7346)
1687
1688 * keyboard.c (kbd_buffer_nr_stored): Define only ifdef subprocesses.
1689 (kbd_buffer_store_event_hold, kbd_buffer_get_event)
1690 (tty_read_avail_input): Call kbd_buffer_nr_stored only ifdef
1691 subprocesses. Use buffer_free only ifdef subprocesses.
1692
1693 * process.c (init_process) [subprocesses]: Init kbd_is_on_hold in
1694 the subprocesses version, not in the non-subprocesses one.
1695
1696 * Makefile.in: Don't use ## comment, it breaks the MSDOS build.
1697
1698 2010-11-17 Eli Zaretskii <eliz@gnu.org>
1699
1700 * xdisp.c (set_cursor_from_row): Fix cursor positioning in empty
1701 lines on text-mode terminals. (bug#7417)
1702
1703 2010-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
1704
1705 * xterm.c (get_current_wm_state): Rename from get_current_vm_state.
1706 (do_ewmh_fullscreen, x_handle_net_wm_state): Update callers.
1707
1708 2010-11-17 Kenichi Handa <handa@m17n.org>
1709
1710 * coding.c (Fset_terminal_coding_system_internal): Fix previous
1711 change (set charset-ID list instead of charset-symbol list).
1712
1713 2010-11-16 Chong Yidong <cyd@stupidchicken.com>
1714
1715 * keyboard.c (make_lispy_position): For text area clicks, record Y
1716 pixel position relative to the text area, excluding header line.
1717 Also change X and Y to Lisp_Objects, not pointers; don't return
1718 coordinate values via pointers. Pass ON_TEXT_AREA coordinate to
1719 buffer_posn_from_coords counting from the start of the text area.
1720 (Fposn_at_x_y, make_lispy_event): Callers changed.
1721
1722 * window.c (coordinates_in_window): Change X and Y to ints rather
1723 than pointers; don't return coordinates via pointers.
1724 (struct check_window_data): Change X and Y from pointers to ints.
1725 (window_from_coordinates): Remove args WX and WY; don't return
1726 coordinates via pointers.
1727 (Fcoordinates_in_window_p, window_from_coordinates):
1728 (check_window_containing, Fwindow_at): Callers changed.
1729 (window_relative_x_coord): New function.
1730
1731 * window.h (window_from_coordinates, window_relative_x_coord):
1732 Update prototypes.
1733
1734 * dispnew.c (buffer_posn_from_coords): Assume that X counts from
1735 the start of the text area.
1736
1737 * xdisp.c (remember_mouse_glyph): Change window_from_coordinates
1738 call. Use window_relative_x_coord.
1739 (note_mouse_highlight): Change window_from_coordinates call.
1740
1741 * w32term.c (w32_read_socket):
1742 * msdos.c (dos_rawgetc):
1743 * xterm.c (handle_one_xevent): Likewise.
1744
1745 2010-11-16 Dan Nicolaescu <dann@ics.uci.edu>
1746
1747 * strftime.c (LOCALE_PARAM_DECL): Update for standard C.
1748 (LOCALE_PARAM, LOCALE_PARAM_PROTO): Remove, unused.
1749 (memcpy_lowcase, so_week_days, extra_args_spec, emacs_strftimeu):
1750 Convert definitions to standard C.
1751 * regex.c: Do not include <stdlib.h>, config.h does it.
1752 Include unistd.h.
1753 (xrealloc, init_syntax_once, re_match, regcomp, regexec)
1754 (regerror, regfree): Convert definitions to standard C.
1755 * mktime.c (my_mktime_localtime_r, ydhms_tm_diff, ranged_convert)
1756 (__mktime_internal): Convert definitions to standard C.
1757
1758 2010-11-15 Dan Nicolaescu <dann@ics.uci.edu>
1759
1760 * w32proc.c:
1761 * w32inevt.c:
1762 * w32heap.c:
1763 * w32.c: Remove config.h include guards.
1764
1765 * callproc.c (child_setup): Reorder code to simplify #ifdefs.
1766 No code changes.
1767
1768 * process.c: Include <sys/ioctl.h> unconditionally,
1769 keyboard.c already does it.
1770
1771 * keyboard.c (pending_malloc_warning): Add const to match
1772 definition in alloc.c.
1773 (Fset_input_interrupt_mode): Simplify #ifdefs.
1774
1775 2010-11-15 Dan Nicolaescu <dann@ics.uci.edu>
1776
1777 Clean up systty.h macros.
1778 * systty.h (EMACS_GET_TTY_PGRP, EMACS_SET_TTY_PGRP, EMACS_GET_TTY)
1779 (EMACS_SET_TTY): Remove unneeded abstraction, instead inline the
1780 definition in all uses.
1781 (EMACS_TTY_TABS_OK): Remove, it has a single user.
1782 * sysdep.c (discard_tty_input, child_setup_tty)
1783 (init_sys_modes, tabs_safe_p, reset_sys_modes):
1784 * emacs.c (shut_down_emacs):
1785 * callproc.c (child_setup):
1786 * term.c (dissociate_if_controlling_tty): Inline removed macros.
1787
1788 * data.c (sign_extend_temp, sign_extend_lisp_int): Remove, unused.
1789
1790 2010-11-14 Chong Yidong <cyd@stupidchicken.com>
1791
1792 * w32fns.c (Fx_create_frame):
1793 * nsfns.m (Fx_create_frame): Don't check for the cursorColor
1794 resource here; it's now done at startup.
1795
1796 2010-11-14 Jan Djärv <jan.h.d@swipnet.se>
1797
1798 * xterm.c (set_wm_state): Add Qnil to final cons.
1799
1800 * xselect.c (x_send_client_event): Remove unused variables cons and
1801 size.
1802
1803 2010-11-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1804
1805 * keyboard.c (modify_event_symbol) : Add const to array elements of
1806 arg NAME_TABLE.
1807 (lispy_accent_keys, lispy_function_keys, lispy_multimedia_keys)
1808 (lispy_kana_keys, iso_lispy_function_keys, lispy_wheel_names)
1809 (lispy_wheel_names, lispy_drag_n_drop_names, modifier_names):
1810 Add const to array elements.
1811 (scroll_bar_parts): Make static. Fix position of const.
1812
1813 * w32fns.c (lispy_function_keys): Add const to extern.
1814
1815 * w32inevt.c (lispy_function_keys): Likewise.
1816
1817 2010-11-14 Chong Yidong <cyd@stupidchicken.com>
1818
1819 * xfns.c (Fx_create_frame): Don't check for the cursorColor
1820 resource here; it's now done at startup.
1821
1822 2010-11-13 Dan Nicolaescu <dann@ics.uci.edu>
1823
1824 * xmenu.c: Make it clear that ../lwlib/lwlib.h is only needed for Motif.
1825
1826 Fix compilation on Solaris.
1827 * sysdep.c: Do not #include <term.h>.
1828 (tputs): Add declaration, similar to what cm.c does. (Bug#7178)
1829
1830 * s/ms-w32.h (HAVE_TERMIOS_H): Do not undef, not used anymore.
1831
1832 2010-11-13 Jan Djärv <jan.h.d@swipnet.se>
1833
1834 * xterm.c (set_wm_state): Don't put Atom in cons, call
1835 make_fixnum_or_float on them first.
1836 (x_term_init): Initialize Xatom_net_supporting_wm_check and
1837 Xatom_net_supported correctly.
1838
1839 * xselect.c (x_send_client_event): Move CHECK_STRING ...
1840 (Fx_send_client_event): to here.
1841
1842 2010-11-13 Martin Rudalics <rudalics@gmx.at>
1843
1844 * window.c (Fwindow_use_time): New function.
1845
1846 2010-11-13 Eli Zaretskii <eliz@gnu.org>
1847
1848 * xdisp.c (set_cursor_from_row): Fix cursor positioning on
1849 zero-width characters.
1850
1851 * .gdbinit (pgx): Adapt to latest changes in `struct glyph'.
1852
1853 * w32term.c (x_draw_glyphless_glyph_string_foreground): Draw the
1854 box before drawing the glyphs inside it.
1855
1856 * xdisp.c (syms_of_xdisp) <glyphless-char-display>: Doc fix.
1857
1858 * dispextern.h (enum glyphless_display_method):
1859 Rename GLYPHLESS_DISPLAY_HEXA_CODE to GLYPHLESS_DISPLAY_HEX_CODE.
1860 All users changed.
1861
1862 * term.c (append_glyphless_glyph, produce_glyphless_glyph):
1863 Fix comments.
1864 (produce_glyphless_glyph): Enclose "U+nnnn" and "empty box"
1865 whitespace in "[]", to simulate a box. Don't use uninitialized
1866 variable `width'.
1867
1868 2010-11-11 Julien Danjou <julien@danjou.info>
1869
1870 * xsettings.c (init_xsettings): Use already fetch atoms.
1871
1872 * xsmfns.c (create_client_leader_window): Use SM_CLIENT_ID atom
1873 from dpyinfo.
1874
1875 * xselect.c (Fx_send_client_event): Split and create
1876 x_send_client_event.
1877
1878 * lisp.h: Do not EXFUN Fx_send_client_event.
1879
1880 * xterm.c (x_set_frame_alpha): Use _NET_WM_WINDOW_OPACITY atom
1881 from dpyinfo.
1882 (wm_supports): Use atoms from dpyinfo.
1883 (do_ewmh_fullscreen): Use atoms from dpyinfo.
1884 (x_ewmh_activate_frame): Use atoms from dpyinfo.
1885 (xembed_set_info): Use atoms from dpyinfo.
1886 (x_term_init): Fetch _XEMBED_INFO, _NET_SUPPORTED,
1887 _NET_SUPPORTING_WM_CHECK, _NET_WM_WINDOW_OPACITY and
1888 _NET_ACTIVE_WINDOW, XSETTINGS atoms.
1889 Get all atoms in one round-trip.
1890 (set_wm_state): Use x_send_client_event rather than
1891 Fx_send_client_event, using Atom directly.
1892 (x_ewmh_activate_frame): Ditto.
1893 (x_set_sticky): Pass atoms to set_wm_state.
1894 (do_ewmh_fullscreen): Ditto.
1895
1896
1897 * xterm.h (x_display_info): Add Xatom_net_supported,
1898 Xatom_net_supporting_wm_check, Xatom_net_active_window,
1899 Xatom_net_wm_window_opacity, Xatom_XEMBED_INFO, SM_CLIENT_ID.
1900
1901 * xfns.c (Fx_show_tip): Fix typo in docstring.
1902
1903 2010-11-11 Stefan Monnier <monnier@iro.umontreal.ca>
1904
1905 * cmds.c (Fself_insert_command): Don't call XFASTINT without checking
1906 it's not negative.
1907
1908 2010-11-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1909
1910 * font.c (font_filter_properties): Add const to array elements of
1911 properties args.
1912
1913 * font.h (font_filter_properties): Likewise.
1914
1915 * ftfont.c (ftfont_booleans, ftfont_non_booleans): Add const to array
1916 elements.
1917
1918 * w32font.c (w32font_booleans, w32font_non_booleans): Likewise.
1919
1920 2010-11-10 Michael Albinus <michael.albinus@gmx.de>
1921
1922 * dbusbind.c (QCdbus_type_unix_fd): New Lisp object.
1923 (XD_BASIC_DBUS_TYPE, xd_symbol_to_dbus_type, xd_signature)
1924 (xd_append_arg, xd_retrieve_arg): Support DBUS_TYPE_UNIX_FD.
1925 (Fdbus_call_method): Add DBUS_TYPE_UNIX_FD type mapping to doc string.
1926 (syms_of_dbusbind): Initialize QCdbus_type_unix_fd).
1927
1928 2010-11-10 Glenn Morris <rgm@gnu.org>
1929
1930 * emacs.c (syms_of_emacs) <system-type>: Doc fix.
1931
1932 2010-11-09 Eli Zaretskii <eliz@gnu.org>
1933
1934 * xfns.c (x_real_positions): Fix declaration-after-statement problem.
1935
1936 2010-11-09 Chong Yidong <cyd@stupidchicken.com>
1937
1938 * image.c (free_image): Don't garbage the frame here, since this
1939 function can be called while redisplaying (Bug#7210).
1940 (uncache_image): Garbage the frame here (Bug#6426).
1941
1942 2010-11-09 Jan Djärv <jan.h.d@swipnet.se>
1943
1944 * xfns.c (x_real_positions): Only use _NET_FRAME_EXTENTS if our
1945 parent is the root window. Check this after traversing window tree.
1946
1947 * xterm.c (x_term_init): Initialize Xatom_net_frame_extents.
1948
1949 * xterm.h (struct x_display_info): Xatom_net_frame_extents is new.
1950
1951 * xfns.c (x_real_positions): Try to get _NET_FRAME_EXTENTS first
1952 before traversing window tree (Bug#5721).
1953
1954 2010-11-07 Jan Djärv <jan.h.d@swipnet.se>
1955
1956 * xfns.c (set_machine_and_pid_properties): Let X set WM_CLIENT_MACHINE.
1957
1958 * xdisp.c (note_mode_line_or_margin_highlight):
1959 Initialize Cursor to No_Cursor for HAVE_WINDOW_SYSTEM also.
1960
1961 2010-11-06 Eli Zaretskii <eliz@gnu.org>
1962
1963 * xfns.c (Fx_show_tip): If any of the tool-tip text lines is R2L,
1964 adjust width of tool-tip frame to the width of text, excluding the
1965 stretch glyph at the beginning of R2L glyph rows.
1966
1967 * w32fns.c (Fx_show_tip): Likewise.
1968
1969 2010-11-06 Jan Djärv <jan.h.d@swipnet.se>
1970
1971 * nsfont.m: Include termchar for new mouse-highlight.
1972 (nsfont_draw): Use MOUSE_HL_INFO.
1973
1974 2010-11-05 Eli Zaretskii <eliz@gnu.org>
1975
1976 Unify mouse-highlight code for all GUI and TTY sessions.
1977
1978 * term.c: Remove static mouse_face_* variables. All users
1979 changed.
1980 (term_show_mouse_face, term_clear_mouse_face)
1981 (fast_find_position, term_mouse_highlight): Functions deleted.
1982 (tty_draw_row_with_mouse_face): New function.
1983 (term_mouse_movement): Call note_mouse_highlight instead of
1984 term_mouse_highlight.
1985
1986 * nsterm.m (ns_update_window_begin, ns_update_window_end)
1987 (ns_update_end, x_destroy_window, ns_frame_up_to_date)
1988 (ns_dumpglyphs_box_or_relief, ns_maybe_dumpglyphs_background)
1989 (ns_dumpglyphs_image, ns_dumpglyphs_stretch)
1990 (ns_initialize_display_info, keyDown, mouseMoved, mouseExited):
1991 Replace Display_Info with Mouse_HLInfo everywhere where
1992 mouse_face_* members were accessed for mouse highlight purposes.
1993
1994 * xterm.c (x_update_window_begin, x_update_window_end)
1995 (x_update_end, XTframe_up_to_date, x_set_mouse_face_gc)
1996 (handle_one_xevent, x_free_frame_resources, x_term_init):
1997 Replace Display_Info with Mouse_HLInfo everywhere where mouse_face_*
1998 members were accessed for mouse highlight purposes.
1999
2000 * w32term.c (x_update_window_begin, x_update_window_end)
2001 (x_update_end, w32_read_socket, x_free_frame_resources)
2002 (w32_initialize_display_info): Replace Display_Info with
2003 Mouse_HLInfo everywhere where mouse_face_* members were accessed
2004 for mouse highlight purposes.
2005
2006 * xdisp.c (show_mouse_face, note_mode_line_or_margin_highlight)
2007 (note_mouse_highlight) [HAVE_WINDOW_SYSTEM]: Don't run GUI code
2008 unless the frame is on a window-system.
2009 (get_tool_bar_item, handle_tool_bar_click)
2010 (note_tool_bar_highlight, draw_glyphs, erase_phys_cursor)
2011 (show_mouse_face, clear_mouse_face, coords_in_mouse_face_p)
2012 (note_mode_line_or_margin_highlight, note_mouse_highlight)
2013 (x_clear_window_mouse_face, cancel_mouse_face, expose_frame):
2014 Replace Display_Info with Mouse_HLInfo everywhere where
2015 mouse_face_* members were accessed for mouse highlight purposes.
2016 (coords_in_mouse_face_p): Move prototype out of the
2017 HAVE_WINDOW_SYSTEM conditional.
2018 (x_y_to_hpos_vpos, frame_to_window_pixel_xy): Move out of the
2019 HAVE_WINDOW_SYSTEM block.
2020 (try_window_id) [HAVE_GPM || MSDOS]:
2021 Call x_clear_window_mouse_face.
2022 (draw_row_with_mouse_face): Implementation for HAVE_WINDOW_SYSTEM
2023 systems. Call tty_draw_row_with_mouse_face for TTY systems.
2024 (show_mouse_face): Call draw_row_with_mouse_face, instead of
2025 calling draw_glyphs directly.
2026 (show_mouse_face, clear_mouse_face, coords_in_mouse_face_p)
2027 (cursor_in_mouse_face_p, rows_from_pos_range)
2028 (mouse_face_from_buffer_pos, mouse_face_from_string_pos)
2029 (note_mode_line_or_margin_highlight, note_mouse_highlight)
2030 (x_clear_window_mouse_face, cancel_mouse_face): Move out of the
2031 HAVE_WINDOW_SYSTEM block. Ifdef away window-system specific
2032 fragments.
2033 (note_mouse_highlight): Call popup_activated for MSDOS as well.
2034 Clear mouse highlight if pointer is over glyphs whose OBJECT is an
2035 integer.
2036 (mouse_face_from_buffer_pos): Add parentheses around && within ||.
2037 (x_consider_frame_title, tool_bar_lines_needed):
2038 Move prototypes to HAVE_WINDOW_SYSTEM-only part.
2039 (get_window_cursor_type): Move inside a HAVE_WINDOW_SYSTEM-only
2040 part. Remove "#ifdef HAVE_WINDOW_SYSTEM" from body of function.
2041 (null_glyph_slice): Move declaration into HAVE_WINDOW_SYSTEM-only
2042 part.
2043
2044 * dispnew.c (mirror_make_current): Set Y coordinate of the
2045 mode-line and header-line rows.
2046 (init_display): Setup initial frame's output_data for text
2047 terminal frames.
2048
2049 * xmenu.c (popup_activated): Don't define on MSDOS, which now has
2050 its own definition on msdos.c.
2051
2052 * msdos.c (show_mouse_face, clear_mouse_face)
2053 (fast_find_position, IT_note_mode_line_highlight)
2054 (IT_note_mouse_highlight): Functions deleted.
2055 (IT_frame_up_to_date, dos_rawgetc): Call note_mouse_highlight
2056 instead of IT_note_mouse_highlight.
2057 (draw_row_with_mouse_face, popup_activated): New functions.
2058 (dos_set_window_size, draw_row_with_mouse_face, IT_update_begin)
2059 (IT_update_end, IT_frame_up_to_date, internal_terminal_init)
2060 (dos_rawgetc): Replace Display_Info with Mouse_HLInfo everywhere
2061 where mouse_face_* members were accessed for mouse highlight
2062 purposes.
2063
2064 * msdos.h (initialize_msdos_display): Add prototype.
2065
2066 * frame.h (MOUSE_HL_INFO): New macro.
2067
2068 * lisp.h (Mouse_HLInfo): New data type.
2069
2070 * xterm.h (struct x_display_info):
2071 * w32term.h (struct w32_display_info):
2072 * nsterm.h (struct ns_display_info):
2073 * termchar.h (struct tty_display_info): Use it instead of
2074 mouse_face_* members.
2075
2076 * dispextern.h (show_mouse_face, clear_mouse_face): Update type of
2077 1st argument.
2078 (frame_to_window_pixel_xy, note_mouse_highlight)
2079 (x_clear_window_mouse_face, cancel_mouse_face, clear_mouse_face)
2080 (show_mouse_face, cursor_in_mouse_face_p): Move prototypes out of
2081 HAVE_WINDOW_SYSTEM conditional.
2082 (draw_row_with_mouse_face): Declare prototype.
2083 (tty_draw_row_with_mouse_face): Declare prototype.
2084
2085 2010-11-05 Eli Zaretskii <eliz@gnu.org>
2086
2087 * term.c (append_glyphless_glyph, produce_glyphless_glyph):
2088 Remove unused variables.
2089
2090 2010-11-05 Adrian Robert <Adrian.B.Robert@gmail.com>
2091
2092 * nsterm.m (EmacsView-mouseExited:): Correct error in conditional
2093 logic pointed out by Eli Zaretskii.
2094
2095 2010-11-04 Lars Magne Ingebrigtsen <larsi@gnus.org>
2096
2097 * coding.c (coding-category-list): Refer to set-coding-system-priority
2098 instead of the obsolete set-coding-priority in the doc string.
2099
2100
2101 2010-11-04 Adrian Robert <Adrian.B.Robert@gmail.com>
2102
2103 * nsfont.m (nsfont_draw): Correct previous patch to return
2104 correct value.
2105 * nsimage.m (EmacsImage-setXBMColor:): Correct previous patch:
2106 don't change the method signature, change the return.
2107
2108 2010-11-04 Ismail Donmez <ismail@namtrac.org> (tiny change)
2109
2110 * nsfont.m (nsfont_draw)
2111 * nsimage.m (EmacsImage-setXBMColor:)
2112 * nsterm.m (EmacsView-performDragOperation:): Correct empty return.
2113
2114 2010-11-03 Julien Danjou <julien@danjou.info>
2115
2116 * image.c (gif_load): Add support for transparency and specified
2117 :background.
2118
2119 2010-11-01 Kenichi Handa <handa@m17n.org>
2120
2121 * dispextern.h (lookup_glyphless_char_display): Extern it.
2122
2123 * termhooks.h (struct terminal): New member charset_list.
2124
2125 * coding.c (Fset_terminal_coding_system_internal): Set the
2126 `charset_list' member of struct terminal.
2127
2128 * term.c (produce_glyphs): Handle the case it->what == IT_GLYPHLESS.
2129 (append_glyphless_glyph, produce_glyphless_glyph): New functions.
2130
2131 * xdisp.c (lookup_glyphless_char_display): Make it non-static.
2132 (lookup_glyphless_char_display): Set it->what at the end.
2133 (last_glyphless_glyph_frame, last_glyphless_glyph_face_id)
2134 (last_glyphless_glyph_merged_face_id): Make them non-static.
2135
2136 * w32term.c (x_draw_glyphless_glyph_string_foreground):
2137 Fix the arg with_background for font->driver->draw.
2138
2139 2010-11-01 Kenichi Handa <handa@m17n.org>
2140
2141 * w32gui.h (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2):
2142 Surround chp by parentheses.
2143
2144 2010-11-01 Kenichi Handa <handa@m17n.org>
2145
2146 Implement various display methods for glyphless characters.
2147
2148 * xdisp.c (Qglyphless_char, Vglyphless_char_display)
2149 (Qglyphless_char_display, Qhexa_code, Qempty_box, Qthin_space)
2150 (Qzero_width): New variables.
2151 (THIN_SPACE_WIDTH): New macro.
2152 (lookup_glyphless_char_display): New funciton.
2153 (last_glyphless_glyph_frame, last_glyphless_glyph_face_id)
2154 (last_glyphless_glyph_merged_face_id): New variables.
2155 (get_next_display_element): Check glyphless characters.
2156 (redisplay_internal): Initialize last_glyphless_glyph_frame and
2157 last_glyphless_glyph_face_id.
2158 (fill_glyphless_glyph_string): New function.
2159 (BUILD_GLYPHLESS_GLYPH_STRING): New macro.
2160 (BUILD_GLYPH_STRINGS): Handle the case GLYPHLESS_GLYPH.
2161 (append_glyphless_glyph, produce_glyphless_glyph): New functions.
2162 (x_produce_glyphs): If a suitable font is not found, produce a
2163 glyphless glyph. Handle the case it->what == IT_GLYPHLESS.
2164 (syms_of_xdisp): Intern and staticpro Qglyphless_char,
2165 Qglyphless_char_display, Qhexa_code, Qempty_box, Qthin_space, and
2166 Qzero_width.
2167 (Vglyphless_char_display): Declare it as a Lisp variable.
2168
2169 * dispextern.h (enum glyph_type): Add GLYPHLESS_GLYPH.
2170 (struct glyph): Change the size of the member "type" to 3.
2171 Add glyphless to the union slice and u.
2172 (enum display_element_type): Add IT_GLYPHLESS.
2173 (enum glyphless_display_method): New enum.
2174 (struct it): New member glyphless_method.
2175 (Vglyphless_char_display): Extern it.
2176
2177 * xterm.c (x_draw_glyphless_glyph_string_foreground): New function.
2178 (x_draw_glyph_string): Handle the case GLYPHLESS_GLYPH.
2179
2180 * w32term.c (x_draw_glyphless_glyph_string_foreground): New function.
2181 (x_draw_glyph_string): Handle the case GLYPHLESS_GLYPH.
2182
2183 * nsterm.m (ns_draw_glyph_string): Handle the case
2184 GLYPHLESS_GLYPH (the detail is not yet implemented).
2185
2186 2010-10-31 Glenn Morris <rgm@gnu.org>
2187
2188 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]: Fix merge, maybe.
2189
2190 * frame.c (syms_of_frame) <tool-bar-mode>:
2191 Default to nil if !HAVE_WINDOW_SYSTEM. (Bug#7299)
2192
2193 2010-10-31 Chong Yidong <cyd@stupidchicken.com>
2194
2195 * xterm.c (x_connection_closed): Print informative error message
2196 when aborting on GTK. This requires using shut_down_emacs
2197 directly instead of Fkill_emacs.
2198
2199 2010-10-29 Eli Zaretskii <eliz@gnu.org>
2200
2201 * emacs.c (main): Call syms_of_filelock unconditionally.
2202
2203 * filelock.c (syms_of_filelock): Move out of #ifdef CLASH_DETECTION
2204 clause, but keep part of it conditioned on CLASH_DETECTION.
2205
2206 2010-10-29 Glenn Morris <rgm@gnu.org>
2207
2208 * nsfns.m (Fx-display-save-under, Fx-open-connection)
2209 (Fxw-color-defined-p, Fxw-display-color-p, Fx-show-tip):
2210 * w32fns.c (Fxw_color_defined_p, Fx_open_connection):
2211 * xfns.c (Fxw_color_defined_p, Fx_open_connection):
2212 Sync docs between X, W32, NS.
2213
2214 * buffer.c (syms_of_buffer) <abbrev-mode, transient-mark-mode>:
2215 * frame.c (syms_of_frame) <tool-bar-mode>: Move doc here from Lisp.
2216
2217 2010-10-26 Juanma Barranquero <lekktu@gmail.com>
2218
2219 * eval.c (init_eval_once): Set max_lisp_eval_depth to 600;
2220 otherwise, bootstrapping on Windows fails to compile macroexp.el.
2221
2222 2010-10-26 Eli Zaretskii <eliz@gnu.org>
2223
2224 * cmds.c (internal_self_insert): Don't insert if argument N is
2225 zero or negative. (Bug#7281)
2226
2227 2010-10-26 Jan Djärv <jan.h.d@swipnet.se>
2228
2229 * gtkutil.c (qttip_cb): Set title to empty for ATK (Bug#7278).
2230
2231 2010-10-25 Glenn Morris <rgm@gnu.org>
2232
2233 * Makefile.in (SOME_MACHINE_LISP): Remove easymenu.elc.
2234
2235 2010-10-24 Glenn Morris <rgm@gnu.org>
2236
2237 * w32fns.c (Fx_synchronize, Fx_change_window_property)
2238 (Fx_window_property, Fx_file_dialog):
2239 * xfns.c (Fx_synchronize, Fx_change_window_property)
2240 (Fx_window_property, Fx_file_dialog): Sync docs between w32 and X.
2241
2242 2010-10-24 Chong Yidong <cyd@stupidchicken.com>
2243
2244 * xterm.c (x_connection_closed): Kill Emacs unconditionally.
2245
2246 2010-10-24 Eli Zaretskii <eliz@gnu.org>
2247
2248 * frame.c (Fframep, Fwindow_system): Deprecate use as a predicate.
2249
2250 * dispnew.c (syms_of_display) <initial-window-system, window-system>:
2251 Deprecate use as a boolean flag.
2252
2253 2010-10-24 Jim Meyering <jim@meyering.net>
2254
2255 * emacs.c (argmatch): Don't treat "--" as "--chdir".
2256
2257 2010-10-24 Glenn Morris <rgm@gnu.org>
2258
2259 * w16select.c (syms_of_win16select) <selection-coding-system>:
2260 <next-selection-coding-system>:
2261 * w32select.c (syms_of_w32select) <selection-coding-system>:
2262 <next-selection-coding-system>:
2263 Sync docs with select.el.
2264
2265 * xfaces.c (syms_of_xfaces) <tty-defined-color-alist>: Sync doc with
2266 Lisp version.
2267
2268 * w32term.c (syms_of_w32term) <x-use-underline-position-properties>:
2269 Sync doc with the xterm.c version.
2270
2271 * w32term.c (syms_of_w32term) <x-toolkit-scroll-bars>:
2272 * xterm.c (syms_of_xterm) <x-toolkit-scroll-bars>: Sync docs.
2273
2274 2010-10-23 Glenn Morris <rgm@gnu.org>
2275
2276 * buffer.c (syms_of_buffer) <cursor-in-non-selected-windows>:
2277 * frame.c (syms_of_frame) <menu-bar-mode>:
2278 * xdisp.c (syms_of_xdisp) <auto-hscroll-mode, display-hourglass>:
2279 <hourglass-delay>: Sync docs with Lisp.
2280
2281 2010-10-23 Eli Zaretskii <eliz@gnu.org>
2282
2283 Implement mouse highlight for bidi-reordered lines.
2284
2285 * xdisp.c (fast_find_string_pos): #ifdef away, not used anymore.
2286 (mouse_face_from_string_pos): New function, replaces
2287 fast_find_string_pos.
2288 (note_mouse_highlight): Call it instead of fast_find_string_pos.
2289 (note_mode_line_or_margin_highlight): Support bidi-reordered
2290 strings and R2L glyph rows. Fix comments.
2291 (note_mouse_highlight): When bidi reordering is turned on in a
2292 buffer, call next-single-property-change and
2293 previous-single-property-change with last argument nil.
2294 Clear mouse highlight when mouse pointer is in a R2L row on the stretch
2295 glyph that stands for no text beyond the line end.
2296 (row_containing_pos): Don't return too early when CHARPOS is in a
2297 bidi-reordered continued line. Return immediately when the first
2298 hit is found in a line that is not continued, or when an exact
2299 match for CHARPOS is found.
2300 (rows_from_pos_range): New function.
2301 (mouse_face_from_buffer_pos): Use it instead of calling
2302 row_containing_pos for START_CHARPOS and END_CHARPOS. Rewrite the
2303 function to support mouse highlight in bidi-reordered lines and
2304 not to assume that START_CHARPOS is always in mouse_face_beg_row.
2305 If necessary, swap mouse_face_beg_row and mouse_face_end_row so
2306 that the former is always above the latter or identical to it.
2307 (show_mouse_face): Support drawing highlighted R2L lines.
2308 (coords_in_mouse_face_p): New function, bidi-aware.
2309 (cursor_in_mouse_face_p, note_mouse_highlight, erase_phys_cursor):
2310 Call it instead of comparing with mouse-face members of dpyinfo.
2311 (note_mode_line_or_margin_highlight): Fix confusingly swapped
2312 usage of hpos and vpos.
2313
2314 2010-10-22 Jan Djärv <jan.h.d@swipnet.se>
2315
2316 * xrdb.c: Include keyboard.h for MOTIF.
2317
2318 * xmenu.c: Revert 2010-07-27 change: lwlib.h is needed for
2319 MOTIF (Bug#7263).
2320
2321 * xfns.c: Include Xm/TextF and Xm/List.
2322 (file_dialog_cb, file_dialog_unmap_cb, clean_up_file_dialog):
2323 Make ANSI prototypes.
2324
2325 2010-10-22 Glenn Morris <rgm@gnu.org>
2326
2327 * Makefile.in (SOME_MACHINE_LISP): Add w32-vars.
2328 Remove ccl and duplicate mouse.
2329
2330 2010-10-21 Chong Yidong <cyd@stupidchicken.com>
2331
2332 * insdel.c (prepare_to_modify_buffer): Don't set
2333 saved-region-selection if modification hooks are disabled.
2334
2335 2010-10-19 Chong Yidong <cyd@stupidchicken.com>
2336
2337 * cmds.c (Fdelete_char): Doc fix.
2338
2339 2010-10-19 Ken Brown <kbrown@cornell.edu>
2340
2341 * s/cygwin.h (SIGNALS_VIA_CHARACTERS): New define (bug#7225).
2342
2343 2010-10-19 Kenichi Handa <handa@m17n.org>
2344
2345 Fix incorrect font metrics when the same font is opened with
2346 different pixelsizes.
2347
2348 * xftfont.c: Include composite.h.
2349 (xftfont_shape): New function.
2350 (syms_of_xftfont): Set xftfont_driver.shape.
2351
2352 2010-10-18 Julien Danjou <julien@danjou.info>
2353
2354 * frame.c (Fframe_pointer_visible_p):
2355 Add `frame-pointer-visible-p' to get the pointer visibility.
2356
2357 2010-10-18 Lars Magne Ingebrigtsen <larsi@gnus.org>
2358
2359 * gnutls.c (emacs_gnutls_read): Return 0 if we get a
2360 non-"EAGAIN"-like error to signal to Emacs that the socket should
2361 be closed.
2362
2363 2010-10-15 Eli Zaretskii <eliz@gnu.org>
2364
2365 * unexcoff.c (make_hdr): Fix prototype according to changes in
2366 2010-10-03T13:59:56Z!dann@ics.uci.edu.
2367
2368 * image.c (tiff_load): Cast 3rd argument to avoid compiler warning.
2369
2370 2010-10-15 Tassilo Horn <tassilo@member.fsf.org>
2371
2372 * Makefile.in (really-oldXMenu): Fix typo in variable name that
2373 made building the X menu fail.
2374 (really-oldXMenu): Fix my previous fix.
2375
2376 2010-10-14 Damyan Pepper <damyanp@gmail.com>
2377
2378 Fix handling of font properties on Windows (bug#6303).
2379 * font.c (font_filter_properties): New function, refactored from
2380 ftfont_filter_properties.
2381 * font.h (font_filter_properties): Declare.
2382 * ftfont.c (ftfont_filter_properties): Use font_filter_properties.
2383 * w32font.c (w32font_booleans, w32font_non_booleans): New variables.
2384 (w32font_filter_properties): New function.
2385 (w32font_driver): Add w32font_filter_properties.
2386
2387 2010-10-14 Juanma Barranquero <lekktu@gmail.com>
2388
2389 * font.c (Ffont_variation_glyphs):
2390 * ccl.c (Fccl_execute_on_string): Fix typo in docstring.
2391
2392 2010-10-14 Juanma Barranquero <lekktu@gmail.com>
2393
2394 * w32fns.c (w32_wnd_proc, file_dialog_callback):
2395 * w32font.c (w32_generic_family):
2396 * w32inevt.c (key_event):
2397 * w32menu.c (fill_in_menu):
2398 * w32proc.c (reader_thread, w32_executable_type, compare_env)
2399 (merge_and_sort_env, int_from_hex, enum_locale_fn, enum_codepage_fn):
2400 * w32term.c (w32_read_socket): Make static.
2401
2402 2010-10-13 Juanma Barranquero <lekktu@gmail.com>
2403
2404 * image.c (DEF_IMGLIB_FN): Add argument to adapt to strict
2405 prototypes; all callers changed.
2406
2407 2010-10-13 Juanma Barranquero <lekktu@gmail.com>
2408
2409 * makefile.w32-in (TLIB2): Rename from TLIBW32.
2410 (OBJ2): New macro.
2411 (WIN32OBJ, FONTOBJ): Remove.
2412 (OBJ1): Redistribute object files with OBJ2.
2413 (LIBS, $(TEMACS)): Use TLIB2.
2414 (make-buildobj-CMD, make-buildobj-SH): Use OBJ2.
2415 ($(TLIB2), TAGS, TAGS-LISP, TAGS-gmake): Depend on OBJ2.
2416
2417 2010-10-13 Juanma Barranquero <lekktu@gmail.com>
2418
2419 * emacs.c (Vdynamic_library_alist)
2420 (syms_of_emacs) <dynamic-library-alist>: Move from image.c and rename.
2421 Doc fix.
2422
2423 * lisp.h (Vdynamic_library_alist): Declare extern.
2424
2425 * image.c (Vimage_library_alist)
2426 (syms_of_image) <image-library-alist>: Move to emacs.c and rename.
2427 (lookup_image_type): Use Vdynamic_library_alist.
2428 (Finit_image_library): Doc fix.
2429
2430 2010-10-12 Dan Nicolaescu <dann@ics.uci.edu>
2431
2432 * Makefile.in (lispsource, libsrc, etc, oldxmenudir, lwlibdir)
2433 (lispdir): Remove trailing /, update all uses.
2434
2435 2010-10-12 Jan Djärv <jan.h.d@swipnet.se>
2436
2437 * nsterm.m (Qleft): Declare.
2438 (ns_right_alternate_modifier): New variable
2439 (NSRightAlternateKeyMask): New define.
2440 (EV_MODIFIERS): Parse NSRightAlternateKeyMask if
2441 ns_right_alternate_modifier isn't Qleft.
2442 (keyDown): If ns_right_alternate_modifier isn't Qleft, use it
2443 as emacs modifier for NSRightAlternateKeyMask.
2444 (syms_of_nsterm): DEFVAR_LISP ns-right-alternate-modifier.
2445
2446 2010-10-10 Lars Magne Ingebrigtsen <larsi@gnus.org>
2447
2448 * gnutls.c (emacs_gnutls_write): If we're trying to write before
2449 gnutls is ready, return EAGAIN as the errno.
2450
2451 2010-10-10 Dan Nicolaescu <dann@ics.uci.edu>
2452
2453 * vm-limit.c:
2454 * unexhp9k800.c:
2455 * unexelf.c:
2456 * unexaix.c:
2457 * termcap.c: Remove #ifdef emacs / #ifndef emacs code, unused.
2458
2459 * Makefile.in (temacs): Use $(ALL_CFLAGS) on the link line.
2460 (PROFILING_LDFLAGS): Remove, not needed anymore.
2461
2462 * Makefile.in: Use $(...) everywhere instead of ${...}
2463 (CRT_DIR): Move near potential user.
2464 (START_FILE): Move near CRT_DIR, it might use it.
2465
2466 * sysdep.c (LPASS8): Remove, unused.
2467 (emacs_ospeed): Change from being a global to a local in the only
2468 user: init_baud_rate.
2469
2470 2010-10-09 Lars Magne Ingebrigtsen <larsi@gnus.org>
2471
2472 * gnutls.c (syms_of_gnutls): All the bootprops are keywords.
2473 (emacs_gnutls_write): Remove the debuggin fsync call.
2474 (emacs_gnutls_read): Return -1 if we got an error from
2475 gnutls_read. This allows us to actually read lots of data from
2476 the GnuTLS stream.
2477 (emacs_gnutls_write): Check for GNUTLS_E_AGAIN and not EINTR.
2478 According to the documentation, this is correct, and it seems to
2479 make things work.
2480
2481 2010-10-09 Chong Yidong <cyd@stupidchicken.com>
2482
2483 * xterm.c (x_draw_relief_rect): Clear corner pixels.
2484
2485 2010-10-08 Michael Albinus <michael.albinus@gmx.de>
2486
2487 * keyboard.c: Revert last change; it was not intended to be
2488 synchronized with the trunk.
2489
2490 2010-10-08 Kenichi Handa <handa@m17n.org>
2491
2492 * coding.c (complement_process_encoding_system): Fix previous change.
2493
2494 2010-10-08 Michael Albinus <michael.albinus@gmx.de>
2495
2496 * dbusbind.c (syms_of_dbusbind): Move putenv call ...
2497 (Fdbus_init_bus): ... here. (Bug#7113)
2498
2499 2010-10-08 Glenn Morris <rgm@gnu.org>
2500
2501 * buffer.c (before-change-functions, after-change-functions):
2502 Three-year overdue doc fix following 2007-08-13 change.
2503
2504 2010-10-08 Kenichi Handa <handa@m17n.org>
2505
2506 * coding.c (coding_inherit_eol_type): If parent doesn't specify
2507 eol-format, inherit from the system's default.
2508 (complement_process_encoding_system): Make a new coding system
2509 inherit the original eol-format.
2510
2511 2010-10-08 Kenichi Handa <handa@m17n.org>
2512
2513 * coding.c (complement_process_encoding_system): New function.
2514
2515 * coding.h (complement_process_encoding_system): Extern it.
2516
2517 * callproc.c (Fcall_process): Complement the coding system for
2518 encoding arguments.
2519 (Fcall_process_region): Complement the coding system for encoding
2520 the input to the process.
2521
2522 * process.c (Fstart_process): Complement the coding system for
2523 encoding arguments.
2524 (send_process): Complement the coding system for encoding what
2525 sent to the process.
2526
2527 2010-10-08 Kenichi Handa <handa@m17n.org>
2528
2529 * xfont.c (xfont_open): Fix setting of font->average_width from
2530 :avgwidth property (Bug#7123).
2531
2532 2010-10-08 Michael Albinus <michael.albinus@gmx.de>
2533
2534 * dbusbind.c (syms_of_dbusbind): Use putenv instead of setenv, it
2535 is more portable.
2536
2537 * keyboard.c (gobble_input): Move call of xd_read_queued_messages ...
2538 (kbd_buffer_get_event): ... here. This is needed for cygwin, which
2539 has not defined SIGIO.
2540
2541 2010-10-08 Chong Yidong <cyd@stupidchicken.com>
2542
2543 * xterm.c (x_draw_relief_rect): If box width is larger than 1,
2544 draw the outermost line using the black relief, for legibility.
2545 Omit drawing the four corner pixels.
2546
2547 2010-10-04 Chong Yidong <cyd@stupidchicken.com>
2548
2549 * keyboard.c (echo_prompt): Function moved into read_key_sequence.
2550 (read_key_sequence): Inline echo_prompt.
2551 (echo_dash): Add a dash only if key is continued (Bug#7137).
2552
2553 2010-10-04 Dan Nicolaescu <dann@ics.uci.edu>
2554
2555 Remove O_RDONLY, O_WRONLY definitions, not needed.
2556 * unexcoff.c:
2557 * lread.c:
2558 * fileio.c:
2559 * doc.c:
2560 * callproc.c:
2561 * alloc.c:
2562 * termcap.c: Remove O_RDONLY O_WRONLY definitions.
2563
2564 2010-10-03 Teodor Zlatanov <tzz@lifelogs.com>
2565
2566 * gnutls.h (GNUTLS_LOG2): Convenience macro.
2567
2568 * gnutls.c: Add property list symbol holders.
2569 (emacs_gnutls_handshake): Clarify how sockets are passed to
2570 GnuTLS.
2571 (gnutls_log_function2): Convenience function using GNUTLS_LOG2.
2572 (Fgnutls_boot): Get all parameters from a plist. Require trustfiles
2573 and keyfiles to be a list of file names. Default to "NORMAL" for
2574 the priority string. Improve logging.
2575
2576 2010-10-03 Glenn Morris <rgm@gnu.org>
2577
2578 * fileio.c (Vdirectory_sep_char): Remove.
2579
2580 2010-10-03 Dan Nicolaescu <dann@ics.uci.edu>
2581
2582 * termhooks.h: Remove #ifdef CONSP.
2583
2584 * xterm.c (NO_INLINE, noinline): Move definitions to ../configure.in.
2585
2586 Include <fcntl.h> unconditionally.
2587 * termcap.c:
2588 * sysdep.c:
2589 * lread.c:
2590 * keyboard.c:
2591 * filelock.c:
2592 * fileio.c:
2593 * doc.c:
2594 * callproc.c:
2595 * alloc.c: Remove include guards for <fcntl.h>, process.c already
2596 does it.
2597
2598 * process.c: Do not include <sys/wait.h>, syswait.h does it.
2599
2600 * sysdep.c (flush_pending_output): Remove code, does not do
2601 anything on any platform.
2602
2603 Remove unused code.
2604 * sysdep.c (select_alarm, sys_select, read_input_waiting):
2605 Remove select emulation, all systems support select.
2606 (set_exclusive_use): Remove, the only user is in an #if 0 block.
2607 * process.c (create_process): Remove #if 0 code.
2608
2609 Remove unused arguments for unexec.
2610 The third one is never used, and the last two are always passed as zero.
2611 * emacs.c (unexec): Add declaration.
2612 (Fdump_emacs): Only pass the first two arguments to unexec.
2613 Simplify #ifdef.
2614 * unexw32.c (unexec):
2615 * unexsol.c (unexec):
2616 * unexhp9k800.c (unexec):
2617 * unexcw.c (unexec): Remove the last 3 arguments, unused.
2618 * unexelf.c (unexec): Remove the last 3 arguments, unused.
2619 (find_section): Use const.
2620 * unexmacosx.c (unexec): Remove the last 3 arguments, unused.
2621 (unexec_error): Declare it NO_RETURN.
2622 * unexcoff.c (make_hdr): Assume bss_start is always zero, remove
2623 it as an argument, remove data_start and entry_address arguments, unused.
2624 (unexec): Remove bss_start, data_start and
2625 entry_address arguments.
2626 * unexaix.c (make_hdr): Assume bss_start is always zero, remove
2627 it as an argument, remove data_start and entry_address arguments, unused.
2628 (unexec): Remove bss_start, data_start and
2629 entry_address arguments.
2630
2631 2010-10-03 Juanma Barranquero <lekktu@gmail.com>
2632
2633 * makefile.w32-in (TAGS, TAGS-LISP, TAGS-gmake): Add $(FONTOBJ).
2634
2635 * gnutls.c (emacs_gnutls_handshake, gnutls_make_error)
2636 (gnutls_emacs_global_init, gnutls_emacs_global_deinit): Make static.
2637 (Fgnutls_get_initstage, Fgnutls_deinit, Fgnutls_boot, Fgnutls_bye):
2638 Fix typos in docstrings.
2639 (Fgnutls_error_fatalp, Fgnutls_error_string): Doc fixes.
2640 (Fgnutls_errorp): Doc fix; use ERR for the argument name.
2641
2642 2010-10-03 Chong Yidong <cyd@stupidchicken.com>
2643
2644 * keyboard.c (command_loop_1): Make sure the mark is really alive
2645 before using it (Bug#7044).
2646
2647 2010-10-02 Juanma Barranquero <lekktu@gmail.com>
2648
2649 * makefile.w32-in (tags): Rename target to full-tags.
2650
2651 2010-10-02 Eli Zaretskii <eliz@gnu.org>
2652
2653 * emacs.c (main): Remove !WINDOWSNT conditional.
2654 (Fkill_emacs): Don't mention exemption on MS-Windows.
2655
2656 2010-10-02 Glenn Morris <rgm@gnu.org>
2657
2658 * character.c (Fchar_bytes): Remove obsolete function.
2659 (syms_of_character): Remove Schar_bytes.
2660
2661 * emacs.c (fatal_error_signal): Also run Fkill_emacs on SIGINT.
2662 (main) [!WINDOWSNT]: Handle SIGINT with fatal_error_signal
2663 in batch-mode.
2664 (Fkill_emacs): Doc fix. Also run the hook in batch mode.
2665 (kill-emacs-hook): Doc fix.
2666
2667 2010-10-02 Lars Magne Ingebrigtsen <larsi@gnus.org>
2668
2669 * xml.c (Flibxml_parse_xml_region, Flibxml_parse_html_region)
2670 (parse_region): Rework to take regions instead of strings, and
2671 renamed to reflect that these are the libxml functions.
2672
2673 2010-10-01 Eli Zaretskii <eliz@gnu.org>
2674
2675 * term.c (init_tty) [DOS_NT]: Don't call Wcm_clear after setting
2676 screen dimensions in tty->Wcm.
2677
2678 * xdisp.c (set_cursor_from_row): When the row is truncated and
2679 point is outside the range of displayed characters, position the
2680 cursor inside the scroll margin. (Bug#6349)
2681
2682 2010-10-01 Dan Nicolaescu <dann@ics.uci.edu>
2683
2684 Do not include stdlib.h and string.h, config.h does it.
2685 * xfont.c:
2686 * w32term.c:
2687 * w32reg.c:
2688 * w32inevt.c:
2689 * w32heap.c:
2690 * w32console.c:
2691 * w16select.c:
2692 * unexsol.c:
2693 * term.c:
2694 * sound.c:
2695 * scroll.c (m):
2696 * gtkutil.c:
2697 * font.c:
2698 * filelock.c:
2699 * fileio.c:
2700 * dosfns.c:
2701 * dbusbind.c:
2702 * bidi.c:
2703 * callproc.c:
2704 * process.c:
2705 * msdos.c:
2706 * charset.c: Do not include stdlib.h and string.h, config.h does it.
2707
2708 * callproc.c (SIGCHLD): Remove conditional definition, syssignal.h
2709 defines it.
2710
2711 * process.c: Move #include <pty.h> earlier.
2712 (SIGCHLD): Remove conditional definition, syssignal.h defines it.
2713 (pty_name): Move definition later.
2714
2715 * nsselect.m (syms_of_nsselect):
2716 * nsmenu.m (syms_of_nsmenu):
2717 * nsfns.m (syms_of_nsfns):
2718 * msdos.c (syms_of_msdos):
2719
2720 * image.c (syms_of_image):
2721 * charset.c (syms_of_charset): Use intern_c_string instead of intern.
2722
2723 * point.h: Remove, unused.
2724
2725 2010-10-01 Eli Zaretskii <eliz@gnu.org>
2726
2727 * makefile.w32-in (TAGS, frc, TAGS-LISP, ../nt/TAGS, tags)
2728 (TAGS-gmake, TAGS-nmake, TAGS-LISP-gmake, TAGS-LISP-nmake)
2729 (nt-TAGS-gmake, nt-TAGS-nmake): New targets.
2730
2731 2010-09-30 Dan Nicolaescu <dann@ics.uci.edu>
2732
2733 * xml.c (parse_string): Use const.
2734
2735 2010-09-30 Lars Magne Ingebrigtsen <larsi@gnus.org>
2736
2737 * eval.c (Fbacktrace): Don't overwrite print-level on exit.
2738 Also only override Vprint_level if it isn't already bound, and increase
2739 the level to 8 to produce more useful backtraces for bug reports.
2740
2741 2010-09-30 Dan Nicolaescu <dann@ics.uci.edu>
2742
2743 * Makefile.in: ecrt0.c does not exist anymore, do not mention it.
2744
2745 2010-09-30 Juanma Barranquero <lekktu@gmail.com>
2746
2747 * w32console.c (vga_stdcolor_name): Remove unused function;
2748 presumed dead after 2007-11-30T13:57:21Z!jasonr@gnu.org.
2749
2750 2010-09-29 Lars Magne Ingebrigtsen <larsi@gnus.org>
2751
2752 * gnutls.c (emacs_gnutls_handshake): Made into internal function.
2753 (Fgnutls_boot): Start the handshake.
2754 (emacs_gnutls_read): Perform the handshake from the reader loop.
2755 (Fgnutls_boot): Remove some debugging messages.
2756 Change indentation throughout to use the Emacs style.
2757 (emacs_gnutls_handshake): Cast the fds to something that's
2758 possibly the expected length.
2759 (emacs_gnutls_write): Return -1 if we try to write before handshake.
2760
2761 * process.h (Lisp_Process): Add a gnutls_p field to Lisp_Process.
2762
2763 * process.c (make_process): Set the gnutls_p field to zero by
2764 default.
2765 (read_process_output): Always call the gnutls_read function if the
2766 stream is a gnutls stream.
2767 (send_process): Ditto for writes.
2768
2769 * gnutls.c (emacs_gnutls_write, emacs_gnutls_read): Refuse to read
2770 or write anything until the state is GNUTLS_STAGE_READY.
2771 (Fgnutls_boot): Mark the stream as being a gnutls stream.
2772
2773 2010-09-29 Eli Zaretskii <eliz@gnu.org>
2774
2775 * xdisp.c (reseat_1): Initialize bidi_it.paragraph_dir to
2776 NEUTRAL_DIR.
2777 (handle_invisible_prop, iterate_out_of_display_property)
2778 (next_element_from_buffer): If bidi_it.first_elt is set, call
2779 bidi_paragraph_init with NO_DEFAULT_P argument non-zero.
2780 (Bug#7128)
2781
2782 * print.c (print_object): Fix format string and argument types for
2783 printing a Lisp_Misc_Marker.
2784
2785 * xdisp.c (pos_visible_p, c_string_pos, number_of_chars)
2786 (load_overlay_strings, get_overlay_strings_1)
2787 (get_overlay_strings, forward_to_next_line_start)
2788 (back_to_previous_visible_line_start, reseat, reseat_to_string)
2789 (get_next_display_element, next_element_from_string)
2790 (next_element_from_c_string, next_element_from_buffer)
2791 (move_it_vertically_backward, move_it_by_lines, add_to_log)
2792 (message_dolog, message_log_check_duplicate, message2_nolog)
2793 (message3, message3_nolog, vmessage, set_message, set_message_1)
2794 (hscroll_window_tree, text_outside_line_unchanged_p)
2795 (set_cursor_from_row, set_vertical_scroll_bar, redisplay_window)
2796 (find_last_unchanged_at_beg_row)
2797 (find_first_unchanged_at_end_row, row_containing_pos)
2798 (trailing_whitespace_p, display_mode_element, decode_mode_spec)
2799 (display_count_lines, x_produce_glyphs, note_mouse_highlight):
2800 Use EMACS_INT for buffer and string positions.
2801
2802 * dispextern.h (struct it) <string_nchars>: Declare EMACS_INT.
2803 (row_containing_pos): Adjust prototype.
2804
2805 * lisp.h (pos_visible_p, message2, message2_nolog, message3)
2806 (message2_nolog, set_message): Adjust prototypes.
2807
2808 2010-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
2809
2810 * gnutls.c (Fgnutls_boot): Remove unused vars `data' and `srp_cred'.
2811 (Fgnutls_boot): Use SDATA.
2812 (Fgnutls_handshake): Remove unused var `max_log_level'.
2813
2814 2010-09-27 Michael Albinus <michael.albinus@gmx.de>
2815
2816 * dbusbind.c (syms_of_dbusbind): Set $DBUS_FATAL_WARNINGS to "0".
2817 (Bug#7113)
2818
2819 2010-09-27 Jan Djärv <jan.h.d@swipnet.se>
2820
2821 * xgselect.c (xg_select): Clear file descriptors not set from
2822 rfds and wfds.
2823
2824 * process.c (wait_reading_process_output): Add missing FD_CLR
2825 for write_mask (must mirror connect_wait_mask).
2826
2827 2010-09-27 Teodor Zlatanov <tzz@lifelogs.com>
2828
2829 * gnutls.c (gnutls_log_function): Show level and "gnutls.c"
2830 prefix.
2831 (Fgnutls_boot): Use changed process members. Use log level with a
2832 function parameter to set it. Bring back Emacs-level debugging
2833 messages at log level 1 and 2.
2834
2835 * process.c (make_process): Initialize gnutls_log_level.
2836
2837 * process.h: Add gnutls_log_level and rename x509_cred and
2838 anon_cred to have the gnutls_ prefix for consistency.
2839
2840 * gnutls.h (GNUTLS_LOG): Add convenience macro.
2841
2842 2010-09-27 Juanma Barranquero <lekktu@gmail.com>
2843
2844 * w32.c (g_b_init_get_sid_identifier_authority)
2845 (GetSidIdentifierAuthority_Proc, get_sid_identifier_authority):
2846 Remove, not used.
2847 (globals_of_w32): Don't set g_b_init_get_sid_identifier_authority.
2848 (init_winsock): Remove useless assignment.
2849 (open_process_token, get_token_information, lookup_account_sid)
2850 (get_sid_sub_authority, get_sid_sub_authority_count, get_file_security)
2851 (get_security_descriptor_owner, get_security_descriptor_group)
2852 (is_valid_sid, equal_sid, get_length_sid, copy_sid)
2853 (get_native_system_info, get_system_times, init_user_info, crlf_to_lf)
2854 (is_unc_volume, GetCachedVolumeInformation, get_volume_info)
2855 (is_fat_volume, open_unc_volume, read_unc_volume, close_unc_volume)
2856 (unc_volume_file_attributes, convert_from_time_t)
2857 (create_toolhelp32_snapshot, process32_first, process32_next)
2858 (open_thread_token, impersonate_self, revert_to_self)
2859 (get_process_memory_info, get_process_working_set_size)
2860 (global_memory_status, global_memory_status_ex, socket_to_fd)
2861 (shutdown_handler): Make static.
2862
2863 2010-09-27 Michael Albinus <michael.albinus@gmx.de>
2864
2865 * dbusbind.c (dbus_fd_cb, xd_get_dispatch_status)
2866 (xd_pending_messages): Functions removed.
2867 (xd_read_queued_messages): Add parameters fd, *data, for_read in
2868 order to be compatible with add_read_fd. Determine bus from data,
2869 and call xd_read_message just for this bus.
2870 (xd_add_watch): Use xd_read_queued_messages as callback function.
2871 Add data.
2872
2873 * lisp.h (xd_pending_messages, xd_read_queued_messages): Remove.
2874
2875 2010-09-27 Lars Magne Ingebrigtsen <larsi@gnus.org>
2876
2877 * gnutls.c (gnutls_log_function): Add more debugging.
2878 (emacs_gnutls_read): Don't infloop while reading.
2879
2880 2010-09-27 Kenichi Handa <handa@m17n.org>
2881
2882 These changes are to remove restriction on the number of glyphs in
2883 one composition.
2884
2885 * dispextern.h (struct glyph): Change the member "slice" to union.
2886 Remove u.cmp.from and u.cmp.to. Give more bits to u.cmp.id.
2887 (GLYPH_SLICE_EQUAL_P): Adjust for the above change.
2888
2889 * dispnew.c (buffer_posn_from_coords): Use glyph->slice.img
2890 instead of glyph->slice.
2891 (marginal_area_string): Likewise.
2892
2893 * term.c (encode_terminal_code): Use glyph->slice.cmp instead of
2894 glyph->u.cmp.
2895 (append_composite_glyph): Likewise.
2896
2897 * xdisp.c (dump_glyph): Use glyph->slice.cmp instead of
2898 glyph->u.cmp.
2899 (fill_gstring_glyph_string, x_get_glyph_overhangs)
2900 (append_composite_glyph): Likewise.
2901 (fill_image_glyph_string): Use glyph->slice.img instead of
2902 glyph->slice.
2903 (append_glyph, produce_image_glyph, append_stretch_glyph)
2904 (note_mouse_highlight): Likewise.
2905
2906 2010-09-26 Jan Djärv <jan.h.d@swipnet.se>
2907
2908 * process.c (add_keyboard_wait_descriptor)
2909 (delete_keyboard_wait_descriptor): Reinstate ifdef subprocesses.
2910 (wait_reading_process_output): Don't pass write_mask to select
2911 if SELECT_CANT_DO_WRITE_MASK is defined.
2912 (SELECT_CANT_DO_WRITE_MASK): Define if SELECT_CANT_DO_WRITE_MASK.
2913
2914 * process.h (add_read_fd, delete_read_fd, add_write_fd)
2915 (delete_write_fd): Declare.
2916
2917 * process.c (gpm_wait_mask, max_gpm_desc): Remove.
2918 (write_mask): New variable.
2919 (max_input_desc): Rename from max_keyboard_desc.
2920 (fd_callback_info): New variable.
2921 (add_read_fd, delete_read_fd, add_write_fd, delete_write_fd):
2922 New functions.
2923 (Fmake_network_process): FD_SET write_mask.
2924 (deactivate_process): FD_CLR write_mask.
2925 (wait_reading_process_output): Connecting renamed to Writeok.
2926 check_connect removed. check_write is new. Remove references to gpm.
2927 Use Writeok/check_write unconditionally (i.e. no #ifdef
2928 NON_BLOCKING_CONNECT) instead of Connecting.
2929 Loop over file descriptors and call callbacks in fd_callback_info
2930 if file descriptor is ready for I/O.
2931 (add_gpm_wait_descriptor): Just call add_keyboard_wait_descriptor.
2932 (delete_gpm_wait_descriptor): Just call delete_keyboard_wait_descriptor.
2933 (keyboard_bit_set): Use max_input_desc.
2934 (add_keyboard_wait_descriptor, delete_keyboard_wait_descriptor):
2935 Remove #ifdef subprocesses. Use max_input_desc.
2936 (init_process): Initialize write_mask and fd_callback_info.
2937
2938 * keyboard.c (readable_events, gobble_input): Remove DBUS code.
2939
2940 * dbusbind.c: Include process.h.
2941 (dbus_fd_cb, xd_find_watch_fd, xd_toggle_watch)
2942 (xd_read_message_1): New functions.
2943 (xd_add_watch, xd_remove_watch): Call xd_find_watch_fd.
2944 Handle watch for both read and write.
2945 (Fdbus_init_bus): Also register xd_toggle_watch.
2946 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
2947 (Fdbus_method_error_internal, Fdbus_send_signal): Remove call
2948 to dbus_connection_flush.
2949 (xd_read_message): Move most of the code to xd_read_message_1.
2950 Call xd_read_message_1 until status is COMPLETE.
2951
2952 2010-09-26 Dan Nicolaescu <dann@ics.uci.edu>
2953
2954 * term.c: Do not include sys/ioctl.h, not needed.
2955 (init_tty): Reorder code to reduce the number of #ifdefs.
2956 No code changes.
2957
2958 2010-09-26 Teodor Zlatanov <tzz@lifelogs.com>
2959
2960 * process.h: Set up GnuTLS support.
2961
2962 * process.c (make_process, Fstart_process)
2963 (read_process_output, send_process): Set up GnuTLS support for
2964 process input/output file descriptors.
2965
2966 * gnutls.h: The GnuTLS glue for Emacs, macros and enums.
2967
2968 * gnutls.c: The source code for GnuTLS support in Emacs.
2969
2970 * emacs.c: Set up GnuTLS support and call syms_of_gnutls.
2971
2972 * config.in: Set up GnuTLS support.
2973
2974 * Makefile.in (LIBGNUTLS_LIBS, LIBGNUTLS_CFLAGS, ALL_CFLAGS)
2975 (obj, LIBES): Set up GnuTLS support.
2976
2977 2010-09-26 Juanma Barranquero <lekktu@gmail.com>
2978
2979 * w32.c (get_emacs_configuration_options): Fix previous change.
2980
2981 2010-09-25 Chong Yidong <cyd@stupidchicken.com>
2982
2983 * insdel.c (prepare_to_modify_buffer): Ensure the mark marker is
2984 alive before using it (Bug#6977).
2985
2986 2010-09-25 Lars Magne Ingebrigtsen <larsi@gnus.org>
2987
2988 * xdisp.c (face_before_or_after_it_pos): EMACS_INT/int fixup.
2989
2990 * dispextern.h: EMACS_INT/int fixup.
2991
2992 * xdisp.c (string_pos_nchars_ahead, init_iterator): EMACS_INT/int
2993 fixup.
2994
2995 * xrdb.c (magic_file_p): EMACS_INT/int fixup.
2996
2997 2010-09-25 Eli Zaretskii <eliz@gnu.org>
2998
2999 * window.c (Fpos_visible_in_window_p, Fdelete_other_windows)
3000 (Fselect_window, window_scroll_pixel_based)
3001 (window_scroll_line_based, Frecenter, Fset_window_configuration):
3002 Use EMACS_INT for buffer positions.
3003
3004 * textprop.c (validate_interval_range, interval_of)
3005 (property_change_between_p, Fadd_text_properties)
3006 (set_text_properties_1, Fremove_text_properties)
3007 (Fremove_list_of_text_properties, Ftext_property_any)
3008 (Ftext_property_not_all, copy_text_properties)
3009 (text_property_list, extend_property_ranges)
3010 (verify_interval_modification): Use EMACS_INT for buffer
3011 positions.
3012
3013 * term.c (fast_find_position, term_mouse_highlight): Use EMACS_INT
3014 for buffer positions.
3015
3016 * process.c (read_process_output, send_process)
3017 (Fprocess_send_region, status_notify): Use EMACS_INT for buffer
3018 and string positions and size.
3019
3020 * print.c (print_object, print_string, strout): Use EMACS_INT for
3021 string indices.
3022
3023 * minibuf.c (string_to_object): Use EMACS_INT for string position
3024 and size.
3025
3026 * marker.c (verify_bytepos): Use EMACS_INT for buffer positions.
3027
3028 * lread.c <read_from_string_index, read_from_string_index_byte>
3029 <read_from_string_limit, readchar_count>: Define EMACS_INT.
3030 (readchar, unreadchar, read_internal_start): Use EMACS_INT for
3031 buffer positions and string length.
3032
3033 * keyboard.c <last_point_position, last_non_minibuf_size>: Declare
3034 EMACS_INT.
3035 (echo_truncate, adjust_point_for_property, read_char)
3036 (gen_help_event, make_lispy_event, modify_event_symbol)
3037 (Fexecute_extended_command, stuff_buffered_input): Use EMACS_INT
3038 for buffer positions and string length.
3039
3040 * keyboard.h (gen_help_event): Adjust prototype.
3041
3042 * termhooks.h <struct input_event>: Make `code' member EMACS_INT.
3043
3044 * commands.h <last_point_position>: Declare EMACS_INT.
3045
3046 * xdisp.c <help_echo_pos>: Define as EMACS_INT.
3047 (truncate_echo_area): Accept EMACS_INT argument.
3048
3049 * dispextern.h <help_echo_pos>: Declare EMACS_INT.
3050
3051 * lisp.h (truncate_echo_area): Adjust prototype.
3052
3053 * composite.c (composition_adjust_point): Return EMACS_INT.
3054
3055 * composite.h (composition_adjust_point): Adjust prototype.
3056
3057 2010-09-25 Juanma Barranquero <lekktu@gmail.com>
3058
3059 * process.c (Fmake_network_process): When arg :host is 'local,
3060 use address 127.0.0.1, not name "localhost". (Bug#6781)
3061
3062 2010-09-24 Eli Zaretskii <eliz@gnu.org>
3063
3064 * indent.c (Fcurrent_indentation, indented_beyond_p)
3065 (compute_motion): Use EMACS_INT for buffer position variables.
3066
3067 * lisp.h (indented_beyond_p): Adjust prototype.
3068
3069 * buffer.c (overlay_strings): Return EMACS_INT.
3070
3071 * buffer.h (overlay_strings): Adjust prototype.
3072
3073 * region-cache.c (pp_cache): Adjust format to arguments.
3074
3075 * eval.c <specpdl_size, lisp_eval_depth>: Declare EMACS_INT.
3076 (call_debugger): Use EMACS_INT for specpdl_size related variables.
3077 (verror): Use EMACS_INT for size of allocated buffer.
3078
3079 * keyboard.c (make_lispy_position): Use EMACS_INT for buffer
3080 positions.
3081
3082 * xdisp.c (redisplay_internal, try_window_id)
3083 (set_cursor_from_row, find_first_unchanged_at_end_row):
3084 Use EMACS_INT for buffer positions.
3085
3086 * dispextern.h (set_cursor_from_row): Adjust prototype.
3087
3088 * dispnew.c (increment_matrix_positions)
3089 (increment_row_positions, copy_glyph_row_contents)
3090 (mode_line_string, marginal_area_string): Use EMACS_INT for buffer
3091 positions.
3092
3093 * dispextern.h (mode_line_string, marginal_area_string)
3094 (increment_matrix_positions, increment_row_positions):
3095 Adjust prototypes.
3096
3097 * data.c (Faref, Faset): Use EMACS_INT for string length and
3098 positions.
3099
3100 * cmds.c (internal_self_insert): Use EMACS_INT for the count of
3101 characters to insert.
3102
3103 * ccl.c (Fccl_execute_on_string): Use EMACS_INT for string
3104 position and size.
3105
3106 * syntax.c (scan_words, update_syntax_table)
3107 (prev_char_comend_first, back_comment, skip_chars)
3108 (skip_syntaxes, Fforward_comment, Fbackward_prefix_chars):
3109 Use EMACS_INT for buffer and string positions.
3110
3111 * syntax.h (scan_words, update_syntax_table): Adjust prototypes.
3112
3113 * casefiddle.c (operate_on_word): Use EMACS_INT for buffer
3114 positions.
3115
3116 2010-09-24 Lars Magne Ingebrigtsen <larsi@gnus.org>
3117
3118 * scroll.c (calculate_scrolling, line_ins_del)
3119 (calculate_direct_scrolling, scroll_cost): Fix EMACS_INT/int
3120 conversion.
3121
3122 * region-cache.c (move_cache_gap, set_cache_region, pp_cache)
3123 (region_cache_backward, region_cache_forward)
3124 (revalidate_region_cache, set_cache_region): FIX EMACS_INT/int
3125 conversion.
3126
3127 * xdisp.c (message_dolog): Fix EMACS_INT/int conversion.
3128
3129 * eval.c (verror): Fix EMACS_INT/int conversion.
3130
3131 * print.c (PRINTDECLARE, PRINTPREPARE, strout, print_string)
3132 (print_preprocess, print_check_string_charset_prop)
3133 (print_object): Fix EMACS_INT/int conversion.
3134
3135 * xdisp.c (message_dolog): Fix EMACS_INT/int conversion.
3136
3137 2010-09-24 Eli Zaretskii <eliz@gnu.org>
3138
3139 * callproc.c (Fcall_process): Use EMACS_INT for count of
3140 characters read from the subprocess.
3141
3142 * bidi.c (struct bidi_paragraph_info): Use EMACS_INT for buffer
3143 positions.
3144 (bidi_cache_search, bidi_cache_find): Use EMACS_INT for buffer
3145 positions.
3146
3147 * buffer.c (struct sortvec): Use EMACS_INT for buffer positions.
3148 (struct sortstrlist, overlay_str_len): Use EMACS_INT for string
3149 length.
3150 (advance_to_char_boundary, Fset_buffer_multibyte)
3151 (overlays_at, overlays_in, mouse_face_overlay_overlaps)
3152 (overlay_touches_p, record_overlay_string, overlay_strings)
3153 (recenter_overlay_lists, fix_start_end_in_overlays)
3154 (modify_overlay, Fmove_overlay, report_overlay_modification)
3155 (evaporate_overlays): Use EMACS_INT for buffer positions.
3156
3157 * lisp.h (fix_start_end_in_overlays, overlay_touches_p):
3158 Adjust prototypes.
3159
3160 * dispextern.h (struct bidi_saved_info): Use EMACS_INT for buffer
3161 positions.
3162
3163 * fns.c (Fcompare_strings, Fstring_lessp, concat)
3164 (string_make_unibyte, Fstring_as_unibyte, Fsubstring)
3165 (Fsubstring_no_properties, substring_both, Ffillarray)
3166 (Fclear_string, mapcar1, Fmapconcat, Fmapcar, Fmapc)
3167 (Fbase64_encode_region, Fbase64_encode_string, base64_encode_1)
3168 (Fbase64_decode_region, Fbase64_decode_string, base64_decode_1)
3169 (Fmd5): Use EMACS_INT for buffer and string positions and length
3170 variables and arguments.
3171
3172 * lisp.h (substring_both): Adjust prototype.
3173
3174 2010-09-24 Juanma Barranquero <lekktu@gmail.com>
3175
3176 Remove W32 API function pointer unused since 2005-02-15 (revno 2005-02-15T23:19:26Z!jasonr@gnu.org).
3177 * w32fns.c (clipboard_sequence_fn): Don't declare.
3178 (globals_of_w32fns): Don't initialize it.
3179
3180 2010-09-23 Stefan Monnier <monnier@iro.umontreal.ca>
3181
3182 * syntax.c (back_comment): Detect the case where a 1-char comment
3183 starter is also the 2nd char of a 2-char comment ender.
3184
3185 2010-09-23 Jan Djärv <jan.h.d@swipnet.se>
3186
3187 * gtkutil.c (xg_tool_bar_menu_proxy): Set gtk-menu-items to TRUE.
3188
3189 2010-09-23 Lars Magne Ingebrigtsen <larsi@gnus.org>
3190
3191 * eval.c (verror): EMACS_INT/int cleanup.
3192
3193 * lisp.h (SPECPDL_INDEX): Cast to int, since we're not going to
3194 unwind_protect more than 2GB worth of functions.
3195
3196 * editfns.c (Finsert_char): EMACS_INT/int cleanup.
3197
3198 * lisp.h: Have oblookup take EMACS_INT to allow interning big
3199 string and avoid compiler warnings.
3200 (USE_SAFE_ALLOCA): Cast to int to avoid compilation warnings in
3201 all users.
3202
3203 * lread.c (oblookup): EMACS_INT/int cleanup.
3204
3205 * cmds.c (Fforward_line, Fdelete_char): EMACS_INT/int cleanup.
3206
3207 2010-09-23 Eli Zaretskii <eliz@gnu.org>
3208
3209 * editfns.c (clip_to_bounds): Return an EMACS_INT value.
3210
3211 * lisp.h (clip_to_bounds): Adjust prototype.
3212
3213 * intervals.c (adjust_for_invis_intang): Return EMACS_INT value.
3214
3215 2010-09-23 Lars Magne Ingebrigtsen <larsi@gnus.org>
3216
3217 * lisp.h: doprnt.c EMACS_INT/int cleanup.
3218
3219 * doprnt.c (doprnt): EMACS_INT/int cleanup.
3220
3221 * doc.c (Fsnarf_documentation, get_doc_string): EMACS_INT/int
3222 cleanup.
3223
3224 * lisp.h: Change the definition of all marker.c functions that
3225 take and return buffer stuff to be EMACS_INT instead of int.
3226
3227 * marker.c (buf_charpos_to_bytepos, CONSIDER, set_marker_both)
3228 (buf_charpos_to_bytepos, bytepos_to_charpos)
3229 (buf_bytepos_to_charpos, Fbuffer_has_markers_at)
3230 (set_marker_restricted, set_marker_both): Convert int to EMACS_INT
3231 for all buffer positions.
3232
3233 2010-09-23 Chong Yidong <cyd@stupidchicken.com>
3234
3235 * intervals.c (traverse_intervals, rotate_right, rotate_left)
3236 (split_interval_right, find_interval, next_interval)
3237 (delete_node, delete_interval, interval_deletion_adjustment)
3238 (adjust_intervals_for_deletion, merge_interval_right)
3239 (merge_interval_left, graft_intervals_into_buffer)
3240 (copy_intervals): Convert EMACS_UINTs to EMACS_INT.
3241
3242 * intervals.h (traverse_intervals): Update prototype.
3243
3244 2010-09-23 Eli Zaretskii <eliz@gnu.org>
3245
3246 * indent.c (compute_motion): Use EMACS_INT for arguments to
3247 region_cache_forward.
3248
3249 * region-cache.c (struct boundary, struct region_cache):
3250 Use EMACS_INT for positions.
3251 (find_cache_boundary, move_cache_gap, insert_cache_boundary)
3252 (delete_cache_boundaries, set_cache_region)
3253 (invalidate_region_cache, know_region_cache)
3254 (region_cache_forward, region_cache_backward, pp_cache):
3255 Use EMACS_INT for buffer positions.
3256
3257 * region-cache.h (know_region_cache, invalidate_region_cache)
3258 (region_cache_forward, region_cache_backward): Adjust prototypes.
3259
3260 * search.c (string_match_1, fast_c_string_match_ignore_case)
3261 (looking_at_1, scan_buffer, scan_newline)
3262 (find_next_newline_no_quit, find_before_next_newline)
3263 (search_command, trivial_regexp_p, search_buffer, simple_search)
3264 (boyer_moore, wordify, Freplace_match): Use EMACS_INT for buffer
3265 and string positions and length.
3266
3267 * lisp.h (scan_buffer, scan_newline, find_next_newline_no_quit)
3268 (find_before_next_newline): Adjust prototypes.
3269
3270 * editfns.c (transpose_markers, update_buffer_properties)
3271 (buildmark, clip_to_bounds, Fgoto_char, overlays_around)
3272 (get_pos_property, Fconstrain_to_field)
3273 (Fline_beginning_position, Fline_end_position, Fprevious_char)
3274 (Fchar_after, Fchar_before, Finsert_char)
3275 (Finsert_buffer_substring, Fcompare_buffer_substrings)
3276 (Fsubst_char_in_region, Fformat, Ftranspose_regions):
3277 Use EMACS_INT for buffer and string position variables.
3278 (Finsert_char): Protect against too large insertions.
3279
3280 * lisp.h (clip_to_bounds): Adjust prototype.
3281
3282 * intervals.c (traverse_intervals, rotate_right, rotate_left)
3283 (balance_an_interval, split_interval_right, split_interval_left)
3284 (find_interval, next_interval, update_interval)
3285 (adjust_intervals_for_insertion, delete_node, delete_interval)
3286 (interval_deletion_adjustment, adjust_intervals_for_deletion)
3287 (offset_intervals, merge_interval_right, merge_interval_left)
3288 (graft_intervals_into_buffer, adjust_for_invis_intang)
3289 (move_if_not_intangible, get_local_map, copy_intervals)
3290 (copy_intervals_to_string, compare_string_intervals)
3291 (set_intervals_multibyte_1): Use EMACS_INT for buffer positions
3292 and for interval tree size.
3293
3294 * intervals.h (traverse_intervals, split_interval_right)
3295 (split_interval_left, find_interval, offset_intervals)
3296 (graft_intervals_into_buffer, copy_intervals)
3297 (copy_intervals_to_string, move_if_not_intangible, get_local_map)
3298 (update_interval): Adjust prototypes.
3299
3300 * xdisp.c (check_point_in_composition, reconsider_clip_changes):
3301 Use EMACS_INT for buffer position variables and arguments.
3302
3303 * composite.c (get_composition_id, find_composition)
3304 (run_composition_function, compose_text)
3305 (composition_gstring_width, autocmp_chars)
3306 (composition_update_it, Ffind_composition_internal): Use EMACS_INT
3307 for buffer positions and string length variables and arguments.
3308
3309 * composite.h (get_composition_id, find_composition, compose_text)
3310 (composition_gstring_width): Adjust prototypes.
3311
3312 * editfns.c (Fformat): Use EMACS_INT for string size variables.
3313
3314 * xdisp.c (store_mode_line_noprop, display_mode_element):
3315 Use EMACS_INT for string positions.
3316
3317 * intervals.c (get_property_and_range): Use EMACS_INT for buffer
3318 position arguments.
3319
3320 * intervals.h (get_property_and_range): Adjust prototype.
3321
3322 * character.c (parse_str_as_multibyte, str_as_multibyte)
3323 (parse_str_to_multibyte, str_to_multibyte, str_as_unibyte)
3324 (string_count_byte8, string_escape_byte8, c_string_width)
3325 (strwidth, lisp_string_width, multibyte_chars_in_text):
3326 Use EMACS_INT for string length variables and arguments.
3327
3328 * character.h (parse_str_as_multibyte, str_as_multibyte)
3329 (parse_str_to_multibyte, str_to_multibyte, str_as_unibyte)
3330 (c_string_width, strwidth, lisp_string_width):
3331 Adjust prototypes.
3332
3333 * font.c (font_intern_prop): Use EMACS_INT for string length
3334 variables.
3335
3336 * font.c (font_intern_prop): Use EMACS_INT for string length
3337 variables.
3338
3339 * fns.c (Fstring_as_multibyte): Use EMACS_INT for string length
3340 variables.
3341
3342 * alloc.c <total_string_size>: Declare as EMACS_INT, not int.
3343 (Fmake_string): Protect against too large strings.
3344 (live_string_p, live_cons_p, live_symbol_p, live_float_p)
3345 (live_misc_p): Use ptrdiff_t instead of int for pointer
3346 differences.
3347 (string_bytes, check_sblock, check_string_free_list)
3348 (allocate_string_data, compact_small_strings, Fmake_string)
3349 (Fmake_bool_vector, make_string, make_unibyte_string)
3350 (make_multibyte_string, make_string_from_bytes)
3351 (make_specified_string_string, Fmake_list, Fmake_vector):
3352 Use EMACS_INT for string length variables and arguments.
3353 (find_string_data_in_pure, make_pure_string, make_pure_c_string)
3354 (Fpurecopy): Use EMACS_INT for string size.
3355 (mark_vectorlike, mark_char_table, mark_object): Use EMACS_UINT
3356 for vector size.
3357
3358 * lisp.h (make_string, make_unibyte_string, make_multibyte_string)
3359 (make_string_from_bytes, make_specified_string_string)
3360 (make_pure_string, string_bytes, check_point_in_composition):
3361 Adjust prototypes.
3362
3363 2010-09-22 Eli Zaretskii <eliz@gnu.org>
3364
3365 * editfns.c (Fsubst_char_in_region, Ftranslate_region_internal)
3366 (check_translation): Use EMACS_INT for buffer positions and
3367 length.
3368
3369 * undo.c (record_marker_adjustment, record_delete)
3370 (record_change, record_point, record_insert)
3371 (record_property_change, Fprimitive_undo): Use EMACS_INT for
3372 buffer positions.
3373
3374 * lisp.h (record_marker_adjustment, record_delete)
3375 (record_change, record_point, record_insert)
3376 (record_property_change, Fprimitive_undo): Adjust prototypes.
3377
3378 2010-09-22 Juanma Barranquero <lekktu@gmail.com>
3379 Eli Zaretskii <eliz@gnu.org>
3380
3381 * w32.c (get_emacs_configuration_options): Fix buffer overrun.
3382
3383 2010-09-22 Eli Zaretskii <eliz@gnu.org>
3384
3385 * minibuf.c (Fminibuffer_contents)
3386 (Fminibuffer_contents_no_properties)
3387 (Fminibuffer_completion_contents): Use EMACS_INT for minibuffer
3388 positions.
3389
3390 * keyboard.c (command_loop_1): Use EMACS_INT to compare point with
3391 mark.
3392
3393 * alloc.c (make_uninit_string, make_uninit_multibyte_string)
3394 (allocate_string_data): Accept EMACS_INT for string length.
3395
3396 * editfns.c (Ffield_string, Ffield_string_no_properties)
3397 (make_buffer_string, make_buffer_string_both, Fbuffer_substring)
3398 (Fbuffer_substring_no_properties, find_field, Fdelete_field)
3399 (Ffield_string, Ffield_string_no_properties, Ffield_beginning)
3400 (Ffield_end): Use EMACS_INT for buffer positions.
3401
3402 * insdel.c (prepare_to_modify_buffer): Use EMACS_INT to compare
3403 point with mark.
3404
3405 * lisp.h (allocate_string_data, make_uninit_string)
3406 (make_uninit_multibyte_string, make_buffer_string)
3407 (make_buffer_string_both): Adjust prototypes.
3408
3409 2010-09-22 Chong Yidong <cyd@stupidchicken.com>
3410
3411 * xml.c: Switch to GNU indentation.
3412 (make_dom): Change parse tree format to match xml.el.
3413 (Fxml_parse_html_string_internal): Rename from html-parse-string.
3414 (Fxml_parse_string_internal): Rename from xml-parse-string.
3415
3416 2010-09-22 Kenichi Handa <handa@m17n.org>
3417
3418 * xdisp.c (compute_stop_pos): Call composition_compute_stop_pos
3419 only if we are not at a composition.
3420 (set_iterator_to_next): Give it->end_charpos to
3421 composition_compute_stop_pos.
3422 (set_iterator_to_next, next_element_from_buffer): Likewise.
3423
3424 * dispnew.c (buffer_posn_from_coords): Fix position when the
3425 current display element is a grapheme cluster in bidi-reordered
3426 region.
3427
3428 2010-09-21 Ari Roponen <ari.roponen@gmail.com> (tiny change)
3429
3430 * doc.c (Fsnarf_documentation): Use memmove instead of memcpy as
3431 the regions may overlap.
3432
3433 2010-09-21 Juanma Barranquero <lekktu@gmail.com>
3434
3435 * makefile.w32-in ($(BLD)/sysdep.$(O)): Update dependencies.
3436
3437 2010-09-21 Dan Nicolaescu <dann@ics.uci.edu>
3438
3439 * emacs.c: Do not include sys/ioctl.h, not needed.
3440
3441 * doprnt.c: Do not include stdlib.h, config.h does it.
3442 Move #include before macro definition.
3443
3444 2010-09-20 Dan Nicolaescu <dann@ics.uci.edu>
3445
3446 * Makefile.in (temacs): Link using $(CC) not $(LD).
3447 (LD_FIRSTFLAG): Define using autoconf.
3448 (LD): Remove.
3449
3450 Remove HAVE_TERMIOS definitions.
3451 * s/usg5-4-common.h (HAVE_TERMIOS):
3452 * s/template.h (HAVE_TERMIOS):
3453 * s/gnu-linux.h (HAVE_TERMIOS):
3454 * s/darwin.h (HAVE_TERMIOS):
3455 * s/cygwin.h (HAVE_TERMIOS):
3456 * s/bsd-common.h (HAVE_TERMIOS):
3457 * s/aix4-2.h (HAVE_TERMIOS):
3458 * s/hpux10-20.h (HAVE_TERMIOS): Do not define, it is assumed
3459 defined on all non-MS platforms.
3460 (HAVE_PSTAT_GETDYNAMIC): Do not define, autoconf does it.
3461
3462 * xterm.c (xt_action_hook): Use const.
3463
3464 2010-09-20 Juanma Barranquero <lekktu@gmail.com>
3465
3466 Don't make W32 code conditional on HAVE_SOCKETS, it's always defined.
3467 * w32.c: Remove top-level uses of #ifdef HAVE_SOCKETS.
3468 (gethostname) [!HAVE_SOCKETS]: Remove.
3469 (SOCK_REPLACE_HANDLE): Remove macro.
3470 (socket_to_fd, sys_close, _sys_read_ahead, sys_read, sys_write)
3471 (term_ntproc, init_ntproc): Don't conditionalize on HAVE_SOCKETS.
3472 * w32proc.c: Remove top-level uses of #ifdef HAVE_SOCKETS.
3473 (syms_of_ntproc): Don't conditionalize on HAVE_SOCKETS.
3474
3475 2010-09-18 Eli Zaretskii <eliz@gnu.org>
3476
3477 * deps.mk (xml.o): Add dependencies.
3478
3479 * xdisp.c (Fcurrent_bidi_paragraph_direction):
3480 Call bidi_paragraph_init with NO_DEFAULT_P non-zero. (Bug#7038)
3481
3482 * bidi.c (bidi_paragraph_init): Accept an additional argument
3483 NO_DEFAULT_P; all callers changed. If NO_DEFAULT_P is non-zero,
3484 search back until a paragraph with a strong directional character
3485 is found, and use that to determine paragraph's base direction.
3486
3487 * dispextern.h (bidi_paragraph_init): Update prototype.
3488
3489 2010-09-17 Eli Zaretskii <eliz@gnu.org>
3490
3491 * w32.c (_PROCESS_MEMORY_COUNTERS_EX): Don't define with versions
3492 of w32api >= 3.15. (Bug#6989)
3493
3494 2010-09-17 Lars Magne Ingebrigtsen <larsi@gnus.org>
3495
3496 * process.c (wait_reading_process_output): Don't message about
3497 accept-process-output unless the time limit really is zero.
3498
3499 2010-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
3500
3501 * frame.c (Ftool_bar_pixel_width): YAILOM (Yet another
3502 int/Lisp_Object mixup).
3503
3504 2010-09-17 Jan Djärv <jan.h.d@swipnet.se>
3505
3506 * keyboard.c (parse_tool_bar_item): For QClabel, set TOOL_BAR_ITEM_LABEL
3507 not HELP.
3508
3509 2010-09-17 Stephen Berman <stephen.berman@gmx.net>
3510
3511 * frame.c (Ftool_bar_pixel_width): New function to expose tool
3512 bar's pixel width to Lisp (Bug#7048).
3513
3514 2010-09-14 Juanma Barranquero <lekktu@gmail.com>
3515
3516 * cmds.c (syms_of_cmds) <post-self-insert-hook>: Fix typos in docstring.
3517
3518 2010-09-17 Jan Djärv <jan.h.d@swipnet.se>
3519
3520 * gtkutil.c (xg_pack_tool_bar): Call gtk_handle_box_set_handle_position
3521 with argument top/left if tool bar is vertical/horizontal (Bug#7051).
3522
3523 2010-09-17 Kenichi Handa <handa@m17n.org>
3524
3525 * ftfont.c (ftfont_check_otf): Fix previous change.
3526
3527 2010-09-14 Kenichi Handa <handa@m17n.org>
3528
3529 * ftfont.c (ftfont_check_otf): Fix the case of checking just
3530 existence of GSUB or GPOS.
3531
3532 2010-09-14 Juanma Barranquero <lekktu@gmail.com>
3533
3534 * cmds.c (syms_of_cmds) <post-self-insert-hook>: Fix typos in docstring.
3535
3536 2010-09-14 Lars Magne Ingebrigtsen <larsi@gnus.org>
3537
3538 * xml.c (parse_buffer): Rename to parse_string(), since that's
3539 what it does.
3540 (parse_string): Return nil when the document can't be parsed.
3541
3542 2010-09-14 Jan Djärv <jan.h.d@swipnet.se>
3543
3544 * xterm.c (get_current_vm_state): New function.
3545 (do_ewmh_fullscreen): Call get_current_vm_state and compare with
3546 want_fullscreen so set_wm_state calls are few (Bug#7013).
3547 (x_handle_net_wm_state): Move code to get_current_vm_state and
3548 call that function.
3549
3550 2010-09-14 Courtney Bane <emacs-bugs-7626@cbane.org> (tiny change)
3551
3552 * term.c (tty_set_terminal_modes): Don't initialize twice (bug#7002).
3553
3554 2010-09-14 Kenichi Handa <handa@m17n.org>
3555
3556 * coding.c (encode_coding_iso_2022): Don't optimize for ASCII if
3557 we may use designation or locking-shift.
3558
3559 2010-09-14 Kenichi Handa <handa@m17n.org>
3560
3561 * coding.c (detect_coding_emacs_mule): Fix checking of multibyte
3562 sequence when the source is multibyte.
3563
3564 2010-09-14 Andreas Schwab <schwab@linux-m68k.org>
3565
3566 * xml.c (Fxml_parse_string, Fxml_parse_string): Revert last change.
3567 Don't make first argument optional. Doc fix.
3568
3569 2010-09-14 Leo <sdl.web@gmail.com> (tiny change)
3570
3571 * xml.c (Fxml_parse_string, Fhtml_parse_string): Fix up the
3572 parameters for the doc string.
3573
3574 2010-09-12 Lars Magne Ingebrigtsen <larsi@gnus.org>
3575
3576 * xml.c (Fhtml_parse_string, Fxml_parse_string): Mention BASE-URL.
3577
3578 2010-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
3579
3580 * fns.c (Fy_or_n_p): Move to lisp/subr.el.
3581 (syms_of_fns): Don't defsubr Sy_or_n_p.
3582 * lisp.h: Don't declare Fy_or_n_p.
3583 * fileio.c (barf_or_query_if_file_exists): Fy_or_n_p -> y-or-n-p.
3584
3585 2010-09-09 Lars Magne Ingebrigtsen <larsi@gnus.org>
3586
3587 * xml.c (Fxml_parse_buffer): New function to parse XML files.
3588
3589 2010-09-08 Lars Magne Ingebrigtsen <larsi@gnus.org>
3590
3591 * xml.c: New file.
3592 (Fhtml_parse_buffer): New function to interface to the libxml2
3593 html parsing function.
3594
3595 2010-09-05 Juanma Barranquero <lekktu@gmail.com>
3596
3597 * biditype.h: Regenerate.
3598
3599 2010-09-04 Andreas Schwab <schwab@linux-m68k.org>
3600
3601 * nsimage.m (ns_load_image): Check argument types.
3602
3603 * image.c: Remove all uses of gcpro.
3604 (xpm_load): Check all lisp types.
3605 (pbm_load): Likewise.
3606 (png_load): Likewise.
3607 (jpeg_load): Likewise.
3608 (tiff_load): Likewise.
3609 (gif_load): Likewise.
3610 (imagemagick_load_image): Likewise.
3611 (imagemagick_load): Likewise.
3612 (svg_load): Likewise.
3613 (gs_load): Likewise.
3614
3615 2010-09-04 Eli Zaretskii <eliz@gnu.org>
3616
3617 * w32uniscribe.c (uniscribe_shape): Update commentary.
3618 Don't try to reorder grapheme clusters, since LGSTRING should always
3619 hold them in the logical order.
3620 (uniscribe_encode_char, uniscribe_shape): Force ScriptShape to
3621 return glyph codes in the logical order.
3622
3623 2010-09-04 Andreas Schwab <schwab@linux-m68k.org>
3624
3625 * image.c (imagemagick_image_p): Replace bcopy by memcpy.
3626 (imagemagick_load_image): Fix type mismatch.
3627 (Fimagemagick_types): Likewise. Doc fix.
3628
3629 2010-09-02 Jan Djärv <jan.h.d@swipnet.se>
3630
3631 * xterm.h (struct dpyinfo): Remove cut_buffers_initialized.
3632
3633 * xterm.c (x_term_init): Don't set dpyinfo->cut_buffers_initialized.
3634
3635 * xselect.c: Remove declaration of cut-buffer objects and functions.
3636 (symbol_to_x_atom): Remove mapping to XA_CUT_BUFFERn.
3637 (x_atom_to_symbol): Remove mapping to QCUT_BUFFERn.
3638 (Fx_get_cut_buffer_internal, Fx_store_cut_buffer_internal)
3639 (Fx_rotate_cut_buffers_internal): Remove.
3640 (syms_of_xselect): Remove defsubr of above.
3641 Remove intern of QCUT_BUFFERn.
3642
3643 2010-09-01 Stefan Monnier <monnier@iro.umontreal.ca>
3644
3645 * cmds.c (Vblink_paren_function): Remove.
3646 (internal_self_insert): Make it insert N chars at a time.
3647 Don't call blink-paren-function.
3648 (Fself_insert_command): Adjust accordingly.
3649 (syms_of_cmds): Don't declare blink-paren-function.
3650
3651 2010-08-31 Kenichi Handa <handa@m17n.org>
3652
3653 * dispextern.h (FACE_FOR_CHAR): Use an ASCII face for 8-bit
3654 characters.
3655
3656 * term.c (encode_terminal_code): Fix the previous change.
3657 (produce_glyphs): Don't set it->char_to_display here.
3658 Don't handle unibyte-display-via-language-environment here.
3659 (produce_special_glyphs): Set temp_it.char_to_display before
3660 calling produce_glyphs.
3661
3662 * xdisp.c (get_next_display_element): Set it->char_to_display
3663 here. Convert all 8-bit bytes from unibyte buffer/string to 8-bit
3664 characters.
3665 (get_overlay_arrow_glyph_row): Set it.char_to_display too before
3666 calling PRODUCE_GLYPHS.
3667 (append_space_for_newline): Save and store it->char_to_display.
3668 Set it->char_to_display before calling PRODUCE_GLYPHS.
3669 (extend_face_to_end_of_line): Set it->char_to_display before
3670 calling PRODUCE_GLYPHS.
3671 (get_glyph_face_and_encoding): Set the glyph code an 8-bit
3672 character to its byte value.
3673 (get_char_glyph_code): New function.
3674 (produce_stretch_glyph): Set it2.char_to_display too before
3675 calling x_produce_glyphs.
3676 (x_produce_glyphs): Simplify by using the same code for ASCII and
3677 non-ASCII characters. Don't set it->char_to_display here.
3678 Don't handle unibyte-display-via-language-environment here. For a
3679 character of no glyph, use font->space_width instead of FONT_WIDTH.
3680
3681 2010-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
3682
3683 * keyboard.c (Fwindow_system): Fix compilation for USE_LISP_UNION_TYPE.
3684
3685 2010-08-31 Chong Yidong <cyd@stupidchicken.com>
3686
3687 * keyboard.c (command_loop_1): Don't call x-set-selection on tty.
3688
3689 2010-08-30 Stefan Monnier <monnier@iro.umontreal.ca>
3690
3691 * marker.c (Fcopy_marker): Make the first arg optional.
3692
3693 2010-08-30 Kenichi Handa <handa@m17n.org>
3694
3695 * composite.c (composition_update_it): Fix computing of
3696 cmp_it->width.
3697
3698 2010-08-29 Kenichi Handa <handa@m17n.org>
3699
3700 * term.c (encode_terminal_code): Encode byte chars to the
3701 corresponding bytes.
3702
3703 2010-08-29 Jan Djärv <jan.h.d@swipnet.se>
3704
3705 * nsterm.m (ns_draw_window_cursor): Draw BAR_CURSOR correct for R2L.
3706
3707 2010-08-26 Kenichi Handa <handa@m17n.org>
3708
3709 * xdisp.c (compute_stop_pos): Pay attention to bidi scan direction
3710 on calling composition_compute_stop_pos.
3711
3712 2010-08-25 Kenichi Handa <handa@m17n.org>
3713
3714 * fontset.c (reorder_font_vector): Prefer a font-spec specifying
3715 :otf.
3716
3717 * composite.c (composition_compute_stop_pos): Don't break
3718 composition at PT.
3719 (composition_reseat_it): Likewise. Fix calculation of character
3720 position starting a composition.
3721 (Fcomposition_get_gstring): Don't limit the number of components
3722 for automatic composition.
3723
3724 2010-08-25 Kenichi Handa <handa@m17n.org>
3725
3726 * composite.c (composition_compute_stop_pos): In forward search,
3727 pay attention to the possibility that some character after ENDPOS
3728 will be composed with charactrs before ENDPOS.
3729
3730 2010-08-24 Chong Yidong <cyd@stupidchicken.com>
3731
3732 * keyboard.c (command_loop_1): Don't clobber primary selection
3733 during handle-switch-frame (Bug#6872).
3734
3735 2010-08-23 Michael Albinus <michael.albinus@gmx.de>
3736
3737 * dbusbind.c: Accept UNIX domain sockets as bus address.
3738 (Fdbus_close_bus): New function.
3739 (Vdbus_registered_buses): New variable.
3740 (xd_initialize): Implement string as bus address.
3741 (Fdbus_init_bus): Add bus to Vdbus_registered_buses).
3742 (Fdbus_get_unique_name, Fdbus_call_method)
3743 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
3744 (Fdbus_method_error_internal, Fdbus_send_signal)
3745 (Fdbus_register_signal, Fdbus_register_method): Remove bus type
3746 check. This is done in xd_initialize_bus. Adapt doc string, if
3747 necessary.
3748 (xd_pending_messages, xd_read_queued_messages): Loop over buses in
3749 Vdbus_registered_buses.
3750 (Vdbus_registered_objects_table): Create hash.
3751
3752 2010-08-22 Juri Linkov <juri@jurta.org>
3753
3754 * keyboard.c (Fexecute_extended_command): Move reading a command name
3755 with `completing-read' to a new Elisp function `read-extended-command'.
3756 Call it to read a command to `function' (bug#5364, bug#5214).
3757
3758 2010-08-22 Chong Yidong <cyd@stupidchicken.com>
3759
3760 * emacs.c (main): Remove handling of --unibyte arg (Bug#6886).
3761
3762 2010-08-22 Andreas Schwab <schwab@linux-m68k.org>
3763
3764 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA_LISP
3765 instead of SAFE_ALLOCA.
3766
3767 2010-08-22 Chong Yidong <cyd@stupidchicken.com>
3768
3769 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA
3770 (Bug#6214).
3771
3772 2010-08-22 Jan Djärv <jan.h.d@swipnet.se>
3773
3774 * doc.c (Fsnarf_documentation): Set skip_file only if p[1] is S.
3775
3776 2010-08-22 Jan Djärv <jan.h.d@swipnet.se>
3777
3778 * doc.c (Fsnarf_documentation): Initialize skip_file before
3779 build-files test.
3780
3781 2010-08-22 Peter O'Gorman <pogma@thewrittenword.com> (tiny change)
3782
3783 * s/hpux10-20.h (HAVE_TERMIOS, NO_TERMIO, ORDINARY_LINK):
3784 New definitions.
3785 (HAVE_TERMIO): Remove.
3786
3787 2010-08-22 Eli Zaretskii <eliz@gnu.org>
3788
3789 * deps.mk (sysdep.o, msdos.o): Depend on sysselect.h.
3790
3791 * sysselect.h [WINDOWSNT]: Don't define the FD_* and select stuff
3792 for w32.
3793
3794 * s/ms-w32.h (HAVE_SYS_TIMEB_H): Don't #undef HAVE_SYS_SELECT_H,
3795 it's done in nt/config.nt.
3796
3797 * makefile.w32-in ($(BLD)/sysdep.$(O)): Depend on sysselect.h.
3798
3799 * unexcoff.c (report_error, make_hdr, write_segment)
3800 (copy_text_and_data, copy_sym, mark_x, adjust_lnnoptrs, unexec):
3801 Convert argument lists and prototypes to ANSI C.
3802 (make_hdr, write_segment): Remove unused variables.
3803 (unexec): Remove commented-out line. Initialize `new' to shut up
3804 compiler warnings.
3805
3806 2010-08-22 Dan Nicolaescu <dann@ics.uci.edu>
3807
3808 Simplify termio code.
3809 All non-MSDOS non-WINDOWSNT platforms define HAVE_TERMIOS, so
3810 HAVE_TERMIO code is obsolete.
3811 Replace HAVE_TERMIOS conditionals with !DOS_NT.
3812 * systty.h: Do not define HAVE_TCATTR.
3813 Remove HAVE_TERMIO, HAVE_LTCHARS and HAVE_TCHARS code.
3814 Do not define EMACS_HAVE_TTY_PGRP. Only define
3815 EMACS_GET_TTY_PGRP for !DOS_NT.
3816 * sysdep.c: Include sysselect.h unconditionally. Do not include
3817 sys/ioctl.h and termios.h, systty.h does it.
3818 Use HAVE_SYS_UTSNAME_H instead of USG as an include guard.
3819 (init_baud_rate): Remove HAVE_TERMIO code.
3820 (child_setup_tty): Remove HAVE_TERMIO code.
3821 (emacs_get_tty, emacs_set_tty): Remove HAVE_TERMIO, HAVE_TCHARS
3822 and HAVE_LTCHARS code. Use !DOS_NT instead of HAVE_TCATTR.
3823 (new_ltchars, new_tchars): Remove, unused.
3824 (init_sys_modes): Remove HAVE_TERMIO, HAVE_TCHARS and HAVE_LTCHARS
3825 code. Remove special casing for __mips__, it was a no-op.
3826 Remove HAVE_TCATTR conditional, it is implied by HAVE_TERMIOS.
3827 (init_sys_modes): Remove HPUX special case.
3828 * process.c: Include stdlib.h unconditionally. Do not include
3829 fcntl.h, systty.h does it. Remove conditional code for
3830 HAVE_SERIAL, it is always true.
3831 (process_send_signal): Remove HAVE_TERMIOS conditional, it's
3832 always true when SIGNALS_VIA_CHARACTERS is true.
3833 (Fcontinue_process, Fprocess_send_eof): Simplify conditionals:
3834 !WINDOWSNT means HAVE_TERMIOS.
3835 (create_process): Remove HAVE_TERMIOS, it's inside a HAVE_PTYS
3836 conditional, which is true for all HAVE_TERMIOS systems.
3837 * keyboard.c (init_keyboard): Do not use HAVE_TERMIO, use !DOS_NT
3838 instead of HAVE_TERMIOS.
3839 * emacs.c (shut_down_emacs): Use !defined DOS_NT instead of
3840 EMACS_HAVE_TTY_PGRP.
3841 * callproc.c (child_setup): Move EMACS_SET_TTY_PGRP use to the
3842 non-MSDOS, non-WINDOWSNT code, it's only defined for such systems
3843 anyway.
3844
3845 2010-08-21 Eli Zaretskii <eliz@gnu.org>
3846
3847 * dispnew.c (buffer_posn_from_coords): Fix off-by-one error in
3848 mirroring pixel positions.
3849
3850 2010-08-20 Dan Nicolaescu <dann@ics.uci.edu>
3851
3852 * alloc.c (malloc_sbrk_used, malloc_sbrk_unused): Remove,
3853 write only.
3854 (init_alloc_once): Remove writes to malloc_sbrk_unused, and
3855 malloc_sbrk_used, nothing uses them.
3856
3857 * puresize.h: Remove code assuming PNTR_COMPARISON_TYPE is not
3858 defined, unconditionally defined in lisp.h.
3859
3860 * term.c: Do not include <termios.h>, systty.h does it.
3861
3862 * s/unixware.h (HAVE_TCATTR):
3863 * s/aix4-2.h (HAVE_TCATTR): Remove definitions, not needed.
3864 systty.h defines it when HAVE_TERMIOS is defined.
3865
3866 2010-08-20 Eli Zaretskii <eliz@gnu.org>
3867
3868 * dispnew.c (buffer_posn_from_coords): Fix last change for text
3869 terminals: add one-character offset for R2L lines.
3870
3871 * emacs.c <emacs_version>: Add a comment regarding
3872 msdos/mainmake.v2's dependency on the syntax of this declaration.
3873
3874 2010-08-20 Eli Zaretskii <eliz@gnu.org>
3875
3876 * dispnew.c (buffer_posn_from_coords): Fix calculation of buffer
3877 position for R2L lines by mirroring the pixel position wrt the
3878 text are box. Improve commentary.
3879
3880 2010-08-20 Andreas Schwab <schwab@linux-m68k.org>
3881
3882 * image.c (imagemagick_clear_image): Remove debugging output.
3883
3884 2010-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
3885
3886 * cmds.c (Vself_insert_face, Vself_insert_face_command): Remove.
3887 (Qpost_self_insert_hook, Vpost_self_insert_hook): New vars.
3888 (internal_self_insert): Run Qpost_self_insert_hook rather than handle
3889 self-insert-face.
3890 (syms_of_cmds): Initialize the new vars.
3891
3892 2010-08-19 Jason Rumney <jasonr@gnu.org>
3893
3894 * w32menu.c (set_frame_menubar): Remove call to undefined function.
3895
3896 * w32fns.c (w32_wnd_proc): Don't check context before initializing.
3897
3898 2010-08-19 Jan Djärv <jan.h.d@swipnet.se>
3899
3900 * nsselect.m (nxatoms_of_nsselect): Use "Selection" and "Secondary".
3901
3902 2010-08-18 Eli Zaretskii <eliz@gnu.org>
3903
3904 * xterm.c (x_draw_bar_cursor):
3905 * w32term.c (x_draw_bar_cursor): If the character under cursor is
3906 R2L, draw the bar cursor on its right rather than on its left.
3907
3908 2010-08-18 Stefan Monnier <monnier@iro.umontreal.ca>
3909
3910 * eval.c (Fdefmacro): Only obey one declaration.
3911
3912 * casefiddle.c (casify_region): Setup gl_state.
3913
3914 2010-08-18 Jan Djärv <jan.h.d@swipnet.se>
3915
3916 * nsterm.m (ns_define_frame_cursor): Call x_update_cursor (Bug#6868).
3917
3918 2010-08-18 Jan Djärv <jan.h.d@swipnet.se>
3919
3920 * gtkutil.c (update_frame_tool_bar): Literal strings are const char*.
3921
3922 2010-08-18 David De La Harpe Golden <david@harpegolden.net>
3923
3924 * nsselect.m (QCLIPBOARD, NXPrimaryPboard): Define.
3925 (symbol_to_nsstring): Map QCLIPBOARD => NSGeneralPboard,
3926 QPRIMARY => NXPrimaryPboard.
3927 (ns_string_to_symbol): NSGeneralPboard => QCLIPBOARD,
3928 NXPrimaryPboard => QPRIMARY.
3929 (nxatoms_of_nsselect): NXPrimaryPboard = PrimarySelection,
3930 NXSecondaryPboard = SecondarySelection.
3931 (syms_of_nsselect): Intern QCLIPBOARD (Bug#6677).
3932
3933 2010-08-18 Joakim Verona <joakim@verona.se>
3934
3935 * image.c: Add support for ImageMagick. When HAVE_IMAGEMAGICK is
3936 defined:
3937 (imagemagick_image_p): New function to test for ImageMagic image.
3938 (imagemagick_load): New function to load ImageMagick image.
3939 (imagemagick_load_image): New function, helper for imagemagick_load.
3940 (imagemagick-types): New function.
3941 (Qimagemagick): New Lisp_object.
3942 (imagemagick-render-type): New variable, decides which renderer to use.
3943
3944 2010-08-17 Stefan Monnier <monnier@iro.umontreal.ca>
3945
3946 * gtkutil.c (update_frame_tool_bar): Don't assume TOOL_BAR_ITEM_LABEL
3947 is a string.
3948
3949 2010-08-17 Jan Djärv <jan.h.d@swipnet.se>
3950
3951 * nsfns.m (ns_frame_parm_handlers): Add a slot for the
3952 x_set_tool_bar_position handler.
3953
3954 2010-08-17 Eli Zaretskii <eliz@gnu.org>
3955
3956 * w32fns.c <w32_frame_parm_handlers>: Add a slot for the
3957 x_set_tool_bar_position handler, needed to support changes from
3958 2010-07-29T16:49:59Z!jan.h.d@swipnet.se for positioning the tool bar. (Bug#6796)
3959
3960 2010-08-16 Jan Djärv <jan.h.d@swipnet.se>
3961
3962 * nsselect.m: include keyboard.h for QPRIMARY, remove its
3963 declaration (Bug#6863).
3964 (syms_of_nsselect): Don't intern QPRIMARY.
3965
3966 * xselect.c: Remove declaration of QPRIMARY (Bug#6864).
3967
3968 * keyboard.h (QPRIMARY): Declare (Bug#6864).
3969
3970 2010-08-16 Chong Yidong <cyd@stupidchicken.com>
3971
3972 * keyboard.c (command_loop_1): Avoid setting selection twice,
3973 since it's done in deactivate-mark as well.
3974 (Vselect_active_regions): Change default to t. Replace `lazy'
3975 with non-default value `only', meaning only set PRIMARY for
3976 temporarily active regions.
3977
3978 * insdel.c (prepare_to_modify_buffer): Handle `only' value of
3979 select-active-regions.
3980
3981 2010-08-15 Jan Djärv <jan.h.d@swipnet.se>
3982
3983 * keyboard.c (parse_tool_bar_item): Put in a bad label if :label
3984 isn't a string.
3985
3986 2010-08-15 Andreas Schwab <schwab@linux-m68k.org>
3987
3988 * keyboard.c (parse_tool_bar_item): Avoid excessive use of strlen.
3989
3990 2010-08-15 Jan Djärv <jan.h.d@swipnet.se>
3991
3992 * keyboard.c (parse_tool_bar_item): malloc buf.
3993 Set TOOL_BAR_ITEM_LABEL to empty string if not set to
3994 new_lbl (Bug#6855).
3995
3996 2010-08-14 Eli Zaretskii <eliz@gnu.org>
3997
3998 * xterm.c (x_draw_stretch_glyph_string):
3999 * w32term.c (x_draw_stretch_glyph_string): In R2L rows, display
4000 the cursor on the right edge of the stretch glyph.
4001
4002 * xdisp.c (window_box_right_offset, window_box_right):
4003 Fix commentary.
4004
4005 * xdisp.c (Fcurrent_bidi_paragraph_direction): Fix paragraph
4006 direction when point is inside a run of whitespace characters.
4007
4008 * bidi.c (bidi_at_paragraph_end): Remove obsolete comment.
4009
4010 2010-08-14 Jason Rumney <jasonr@gnu.org>
4011
4012 * keyboard.c (lispy_function_keys): Do not define VK_PACKET (bug#4836)
4013
4014 2010-08-14 Chong Yidong <cyd@stupidchicken.com>
4015
4016 * fns.c (Fmake_hash_table): Doc fix (Bug#6851).
4017
4018 2010-08-13 Jason Rumney <jasonr@gnu.org>
4019
4020 * w32menu.c (simple_dialog_show): Use unicode message box if available.
4021 (MessageBoxW_Proc): New function typedef.
4022 (unicode-message-box): New function pointer.
4023 (globals_of_w32menu): Import it from user32.dll. (Bug#5629)
4024
4025 2010-08-13 Jan Djärv <jan.h.d@swipnet.se>
4026
4027 * frame.h (Qtool_bar_position): Declare.
4028
4029 * xfns.c (Fx_create_frame): Call x_default_parameter for
4030 Qtool_bar_position.
4031
4032 2010-08-13 Eli Zaretskii <eliz@gnu.org>
4033
4034 * unexcoff.c: Remove the parts used when "emacs" is not defined.
4035 (report_error, report_error_1): Ditto.
4036 (write_segment): Remove "#if 0" unused code.
4037 (make_hdr): Remove code that was "#ifndef NO_REMAP" before
4038 NO_REMAP was removed (in 2010-07-29T03:25:08Z!dann@ics.uci.edu).
4039 (start_of_text): Remove unused function (was used only if NO_REMAP
4040 was NOT defined).
4041
4042 * msdos.c (IT_set_face): Fix format string to match argument
4043 types.
4044 (IT_write_glyphs, IT_note_mode_line_highlight)
4045 (IT_set_frame_parameters): Remove unused variables.
4046 (x_set_menu_bar_lines): Declare set_menu_bar_lines.
4047 (IT_set_terminal_modes): Disambiguate expression in if clause.
4048 (Fmsdos_remember_default_colors): Return Qnil.
4049 (IT_set_frame_parameters): Add parens to disambiguate boolean
4050 expression for logging the cursor type to termscript.
4051 (keyboard_layout_list, keypad_translate_map)
4052 (grey_key_translate_map): Add braces in inner initializers.
4053 (dos_rawgetc): Add parens in condition for mouse-3 button-press.
4054 (dos_rawgetc): Remove unused label.
4055 (XMenuActivate): Add braces to remove ambiguous `else'.
4056 (dos_ttraw): Always return a value.
4057 (spawnve): Declare.
4058 (run_msdos_command): Cast 3rd arg of spawnve to "char **".
4059
4060 * dosfns.h (x_set_title): Declare.
4061
4062 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
4063 Remove unused variables.
4064
4065 * dosfns.c (Fint86, Fdos_memget, Fdos_memput): Remove unused
4066 variables.
4067 (init_dosfns): Declare get_lim_data.
4068 (system_process_attributes): Declare Fget_internal_run_time.
4069
4070 * xmenu.c (xmenu_show) [!USE_X_TOOLKIT && !USE_GTK]: Fix argument
4071 list to be consistent with menu.h.
4072
4073 * w32menu.c (add_menu_item, name_is_separator): Shut up compiler
4074 warnings due to mixing of "char *" and "const char *".
4075
4076 2010-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
4077
4078 Introduce a new comment style "c" flag.
4079 * syntax.c (SYNTAX_FLAGS_COMMENT_STYLEB)
4080 (SYNTAX_FLAGS_COMMENT_STYLEC): New macros.
4081 (SYNTAX_FLAGS_COMMENT_STYLE): Use them, add an argument.
4082 (syntax_prefix_flag_p): New function.
4083 (Fstring_to_syntax): Understand new "c" flag.
4084 (Finternal_describe_syntax_value): Recognize new flag; use the
4085 SYNTAX_FLAGS_* macros.
4086 (scan_sexps_forward, Fparse_partial_sexp): Change representation of
4087 comment style to accomodate the new styles.
4088 (back_comment, forw_comment, Fforward_comment, scan_lists)
4089 (scan_sexps_forward): Update code to obey the new comment style flag.
4090
4091 * syntax.h: Move SYNTAX_FLAGS_FOO() macros to syntax.c.
4092
4093 * casefiddle.c (casify_region): Use the new syntax_prefix_flag_p.
4094
4095 2010-08-11 Jan Djärv <jan.h.d@swipnet.se>
4096
4097 * xfns.c (x_defined_color): If USE_GTK, call xg_check_special_colors
4098 first.
4099 (Fx_hide_tip): Check FRAME_LIVE_P (f) before calling xg_hide_tooltip.
4100
4101 * gtkutil.h (xg_check_special_colors): Declare.
4102
4103 * gtkutil.c (xg_check_special_colors, style_changed_cb): New functions.
4104 (xg_create_frame_widgets): Connect theme name changes to
4105 style_changed_cb.
4106
4107 * xterm.c (emacs_class): New char[] for EMACS_CLASS.
4108 (xim_open_dpy, xim_initialize, xim_close_dpy): Use emacs_class.
4109 (x_term_init): Use char[] display_opt and name_opt instead of
4110 string literal. file is const char*.
4111
4112 * xsmfns.c (NOSPLASH_OPT): Change to char[].
4113 (smc_save_yourself_CB): Do xstrdup on all ->type and ->name for
4114 props. Free them at the end.
4115
4116 * xselect.c (Fx_get_atom_name): Use char empty[] instead of literal "".
4117
4118 * xrdb.c (get_system_app): Make path const and use char *p for
4119 non-const char.
4120
4121 * xmenu.c (Fx_popup_dialog): error_name is const char*.
4122 (xmenu_show): error parameter is const char **. pane_string is const
4123 char *.
4124 (button_names): Is const char *.
4125 (xdialog_show): error_name and pane_string is const.
4126
4127 * process.h (synch_process_death): Is const char*.
4128
4129 * w32menu.c (w32_menu_show):
4130 * nsmenu.m (ns_menu_show): error parameter is const char **.
4131
4132 * menu.h (w32_menu_show, ns_menu_show, xmenu_show): error parameter
4133 is const char **.
4134
4135 * menu.c (Fx_popup_menu): error_name is const.
4136
4137 * keyboard.h (_widget_value): Add defined USE_GTK. Replace Boolean
4138 with unsigned char and XtPointer with void *.
4139
4140 * gtkutil.h: Replace widget_value with struct _widget_value.
4141 (enum button_type, struct _widget_value): Remove and use the one from
4142 keyboard.h.
4143
4144 * gtkutil.c (get_utf8_string): Always return an allocated string.
4145 Parameter is const.
4146 (create_dialog, xg_create_one_menuitem, create_menus)
4147 (xg_item_label_same_p, xg_update_menu_item): Free result from
4148 get_utf8_string.
4149 (xg_separator_p, xg_item_label_same_p): label is const.
4150
4151 * font.h (font_open_by_name): Make name const.
4152
4153 * font.c (font_open_by_name): Make name const.
4154
4155 * floatfns.c (matherr): Use a const char* variable for x->name.
4156
4157 * emacs.c (main): Pass char[] to putenv instead of literal.
4158
4159 * callproc.c (synch_process_death): Make const.
4160 (Fcall_process): Make signame const.
4161
4162 * nsterm.h (parseKeyEquiv, addSubmenuWithTitle)
4163 (addDisplayItemWithImage): Use const char*.
4164
4165 * nsmenu.m (parseKeyEquiv, addSubmenuWithTitle)
4166 (addDisplayItemWithImage, update_frame_tool_bar): Use const char*.
4167
4168 * nsfont.m (ns_descriptor_to_entity): Use const char*.
4169
4170 * keyboard.h (_widget_value): name, value and key are const char*.
4171
4172 * unexmacosx.c (unexec_error): Use const char *.
4173
4174 2010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
4175
4176 * font.h (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
4177 (font_parse_name, font_open_by_name):
4178 * font.c (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
4179 (font_parse_name, font_open_by_name): Remove const.
4180
4181 2010-08-09 Andreas Schwab <schwab@linux-m68k.org>
4182
4183 Use autoconf determined WORDS_BIGENDIAN instead of hardcoded
4184 definition.
4185
4186 * m/alpha.h: Don't define/undef WORDS_BIG_ENDIAN.
4187 * m/amdx86-64.h: Likewise.
4188 * m/arm.h: Likewise.
4189 * m/hp800.h: Likewise.
4190 * m/ia64.h: Likewise.
4191 * m/ibmrs6000.h: Likewise.
4192 * m/ibms390.h: Likewise.
4193 * m/intel386.h: Likewise.
4194 * m/iris4d.h: Likewise.
4195 * m/m68k.h: Likewise.
4196 * m/macppc.h: Likewise.
4197 * m/mips.h: Likewise.
4198 * m/sh3.h: Likewise.
4199 * m/sparc.h: Likewise.
4200 * m/template.h: Likewise.
4201 * m/vax.h: Likewise.
4202 * m/xtensa.h: Likewise.
4203 * fringe.c (init_fringe_bitmap): Test WORDS_BIGENDIAN instead of
4204 WORDS_BIG_ENDIAN.
4205 * lisp.h: Likewise.
4206 * md5.c: Likewise.
4207 * sound.c (le2hl, le2hs, be2hl, be2hs): Likewise.
4208
4209 2010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
4210
4211 Use const char* instead of char*.
4212 Reduce the number of warnings with -Wwrite-strings.
4213 * xrdb.c (get_environ_db, get_system_name):
4214 * unexelf.c (find_section):
4215 * term.c (string_cost, string_cost_one_line, per_line_cost)
4216 (get_named_tty, init_tty):
4217 * sysdep.c (sys_subshell):
4218 * sound.c (sound_perror, sound_warning, vox_open, vox_init)
4219 (alsa_sound_perror, alsa_open, alsa_configure, alsa_init):
4220 * search.c (Freplace_match):
4221 * process.c (Fmake_network_process, send_process, init_process):
4222 * lread.c (Fload, init_lread):
4223 * keymap.c (Fdescribe_buffer_bindings, describe_map_tree):
4224 * keyboard.c (parse_tool_bar_item, struct event_head):
4225 * gtkutil.h (xg_get_font_name):
4226 * gtkutil.c (get_dialog_title, create_dialog, xg_get_font_name)
4227 (make_widget_for_menu_item, make_menu_item, create_menus)
4228 (xg_make_tool_item):
4229 * font.c (parse_matrix, font_parse_name):
4230 * floatfns.c (rounding_driver, float_error_fn_name):
4231 * filelock.c (get_boot_time_1, lock_file_1):
4232 * fileio.c (barf_or_query_if_file_exists, check_writable):
4233 * editfns.c (get_system_name, get_operating_system_release)
4234 (Fencode_time, Fset_time_zone_rule):
4235 * dispextern.h (string_cost, per_line_cost, get_named_tty, init_tty):
4236 * buffer.c (defvar_per_buffer): Use const.
4237
4238 2010-08-08 Kenichi Handa <handa@m17n.org>
4239
4240 * charset.c: Include <stdlib.h>.
4241 (struct charset_sort_data): New struct.
4242 (charset_compare): New function.
4243 (Fsort_charsets): New function.
4244 (syms_of_charset): Declare Fsort_charsets as a Lisp function.
4245
4246 * coding.c (decode_coding_iso_2022): Fix checking of dimension
4247 number in CTEXT extended segment.
4248
4249 2010-08-08 Juanma Barranquero <lekktu@gmail.com>
4250
4251 * w32fns.c (syms_of_w32fns) <x-max-tooltip-size>: Fix typo in docstring.
4252 * xfns.c (syms_of_xfns) <x-max-tooltip-size>: Reflow docstring.
4253
4254 2010-08-08 Juanma Barranquero <lekktu@gmail.com>
4255
4256 * fns.c (Fsubstring_no_properties, Fnthcdr, Ffeaturep)
4257 (Fhash_table_size): Fix typos in docstrings.
4258 (Fmake_hash_table): Doc fix.
4259
4260 2010-08-08 Juanma Barranquero <lekktu@gmail.com>
4261
4262 * minibuf.c (syms_of_minibuf) <read-buffer-function>:
4263 Doc fix (bug#5625).
4264
4265 2010-08-08 Ken Brown <kbrown@cornell.edu>
4266
4267 * dired.c (DIRENTRY_NONEMPTY) [cygwin]: Use d_ino instead of
4268 the MSDOS definition.
4269
4270 2010-08-08 Dan Nicolaescu <dann@ics.uci.edu>
4271
4272 Use const char* instead of char*.
4273 * xterm.c (x_create_toolkit_scroll_bar):
4274 * xfont.c (xfont_list_pattern):
4275 * xfns.c (x_default_scroll_bar_color_parameter)
4276 (xic_create_fontsetname, x_default_font_parameter)
4277 (x_screen_planes):
4278 * xdisp.c (c_string_pos, number_of_chars, reseat_to_string)
4279 (store_mode_line_string, decode_mode_spec, display_string):
4280 * menu.c (digest_single_submenu):
4281 * keymap.h (initial_define_key, initial_define_lispy_key):
4282 * keymap.c (initial_define_key, initial_define_lispy_key):
4283 * image.c (image_error, image_keyword):
4284 * gtkutil.h (xg_create_widget, xg_create_scroll_bar):
4285 * gtkutil.c (xg_create_widget, xg_create_scroll_bar):
4286 * ftfont.c (struct fc_charset_table, ftfont_spec_pattern)
4287 (ftfont_list, ftfont_match):
4288 * frame.c (frame_parm_table):
4289 * font.h (font_intern_prop, font_parse_xlfd, font_parse_fcname)
4290 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
4291 (font_add_log, font_deferred_log):
4292 * font.c (font_intern_prop, font_parse_xlfd, font_parse_fcname)
4293 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
4294 (font_add_log, font_deferred_log):
4295 * emacs.c (argmatch):
4296 * dispextern.h (struct it):
4297 * coding.c (ENCODE_DESIGNATION):
4298 * charset.c (define_charset_internal): Use const.
4299
4300 * s/freebsd.h (DECLARE_GETPWUID_WITH_UID_T): Remove, unused.
4301
4302 * xrdb.c: Remove include guard.
4303 Remove DECLARE_GETPWUID_WITH_UID_T conditional it had no effect.
4304 Remove #if 0 code. Replace malloc->xmalloc, free->xfree,
4305 realloc->xrealloc instead of using #defines.
4306
4307 2010-08-08 Eli Zaretskii <eliz@gnu.org>
4308
4309 * cmds.c (Fforward_line, Fbeginning_of_line, Fend_of_line):
4310 * editfns.c (Fline_beginning_position, Fline_end_position):
4311 State in the doc strings that start and end of line are in the
4312 logical order.
4313
4314 * xdisp.c (display_line): Move the handling of overlay arrow after
4315 the call to find_row_edges. (Bug#6699)
4316
4317 2010-08-07 Chong Yidong <cyd@stupidchicken.com>
4318
4319 * keyboard.c (command_loop_1):
4320 * insdel.c (prepare_to_modify_buffer): Don't call validate_region.
4321
4322 2010-08-07 Chong Yidong <cyd@stupidchicken.com>
4323
4324 * insdel.c (prepare_to_modify_buffer): Save active region text to
4325 Vsaved_region_selection.
4326
4327 * xselect.c (QPRIMARY): Move to keyboard.c.
4328
4329 * keyboard.c (Vselect_active_regions): Move from simple.el.
4330 (Vsaved_region_selection, Qx_set_selection, QPRIMARY, Qlazy): New vars.
4331 (command_loop_1): Set window selection prior to deactivating the mark.
4332
4333 2010-08-07 Juanma Barranquero <lekktu@gmail.com>
4334
4335 * alloc.c (lisp_malloc):
4336 * buffer.c (set_buffer_internal, set_buffer_internal_1):
4337 * charset.h (emacs_mule_charset):
4338 * dispextern.h (inhibit_free_realized_faces, redraw_frame)
4339 (redraw_garbaged_frames, scroll_cost, update_frame, scrolling)
4340 (bitch_at_user):
4341 * lisp.h (Fcheck_coding_system, Fget_text_property)
4342 (Qfunction, Qcompletion_ignore_case, QCwidth, QCsize):
4343 Remove duplicate declarations.
4344
4345 2010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
4346
4347 * process.c: Simplify include logic.
4348
4349 * keyboard.h (quit_char): Add declaration.
4350 * process.h (QCport, QCspeed, QCprocess, QCbytesize, QCstopbits)
4351 (QCparity, Qodd, Qeven, QCflowcontrol, Qhw, Qsw, QCsummary):
4352 Add declarations.
4353 * sysdep.c:
4354 * w32.c: Remove the above declarations.
4355
4356 Remove extern declarations in .c files, .h files have them.
4357 * xterm.c:
4358 * xdisp.c:
4359 * msdos.c:
4360 * image.c:
4361 * gtkutil.c:
4362 * fileio.c:
4363 * eval.c: Remove declarations.
4364
4365 * frame.c (frame_params): Make const.
4366
4367 * lisp.h (fatal_error_signal, emacs_root_dir): Add declaration.
4368
4369 * emacs.c (emacs_copyright, emacs_version): Make static.
4370 (Vinitial_window_system, Vauto_save_list_file_name)
4371 (Vinhibit_redisplay): Remove declarations.
4372 (main): Remove HAVE_SHM code, unused. Remove _I386 conditional
4373 for AIX.
4374
4375 Use const for some arrays and functions.
4376 * xterm.h (xg_set_icon_from_xpm_data):
4377 * xfns.c (xg_set_icon_from_xpm_data):
4378 * term.c (fkeys):
4379 * keyboard.c (lispy_accent_keys, lispy_function_keys)
4380 (lispy_multimedia_keys, lispy_kana_keys, iso_lispy_function_keys)
4381 (lispy_drag_n_drop_names, scroll_bar_parts, modify_event_symbol)
4382 (frame.c frame_parms):
4383 * emacs-icon.h (gnu_xpm_bits):
4384 * callint.c (callint_argfuns): Use const.
4385
4386 2010-08-06 Jan Djärv <jan.h.d@swipnet.se>
4387
4388 * sysdep.c: Move include term.h last of includes (Bug#6812).
4389
4390 2010-08-06 Eli Zaretskii <eliz@gnu.org>
4391
4392 * dispnew.c (realloc_glyph_pool): Zero out newly allocated glyphs.
4393
4394 * msdos.c (IT_display_cursor): Log cursor position on termscript.
4395
4396 * .gdbinit (pgx): Display the avoid_cursor_p flag.
4397
4398 2010-08-06 Juanma Barranquero <lekktu@gmail.com>
4399
4400 * makefile.w32-in ($(BLD)/xdisp.$(O)): Update dependencies.
4401
4402 2010-08-06 Jan Djärv <jan.h.d@swipnet.se>
4403
4404 * xterm.h (x_get_focus_frame): Declare.
4405
4406 * keyboard.h (poll_for_input_1): Unconditionally declare.
4407
4408 * nsterm.h (x_set_menu_bar_lines): Declare.
4409
4410 * window.c: Don't include menu.h, it depends on lots of other .h-files.
4411
4412 * xfaces.c (x_create_gc, x_free_gc): Convert to ANSI C prototypes.
4413
4414 * window.c: Include menu.h.
4415
4416 * unexmacosx.c (print_region_list, print_regions)
4417 (build_region_list, find_emacs_zone_regions)
4418 (unexec_regions_merge, read_load_commands, dump_it)
4419 (unexec_init_emacs_zone): Convert to ANSI C prototypes.
4420
4421 * term.c: Check HAVE_SYS_IOCTL_H.
4422
4423 * sysdep.c: Check HAVE_TERM_H.
4424
4425 * process.c: Check HAVE_UTIL_H. Include nsterm.h if HAVE_NS.
4426
4427 * nsterm.m (ns_init_paths, ns_alloc_autorelease_pool)
4428 (ns_ring_bell, ns_defined_color, hide_hourglass)
4429 (x_display_pixel_height, x_display_pixel_width, syms_of_nsterm):
4430 Convert to ANSI C prototypes.
4431 (x_set_window_size, ns_draw_fringe_bitmap, judge): Move declarations
4432 before code.
4433
4434 * nsterm.h : Include sysselect.h.
4435 (x_sync, x_get_focus_frame, x_set_mouse_position)
4436 (x_set_mouse_pixel_position, x_make_frame_visible)
4437 (x_make_frame_invisible, x_iconify_frame, x_char_width, x_char_height)
4438 (x_pixel_width, x_pixel_height, x_set_frame_alpha, x_set_tool_bar_lines)
4439 (x_activate_menubar, free_frame_menubar, ns_init_paths, ns_select)
4440 (syms_of_nsterm, syms_of_nsfns, syms_of_nsmenu, syms_of_nsselect):
4441 Declare.
4442
4443 * nsmenu.m (popup_activated, name_is_separator)
4444 (syms_of_nsmenu): Convert to ANSI C prototypes.
4445 (runMenuAt): Prototypes and move declarations before code.
4446
4447 * nsimage.m (ns_load_image): Move NSTRACE after declarations.
4448
4449 * nsfont.m (ns_fallback_entity, syms_of_nsfont): Convert to ANSI C
4450 prototypes.
4451
4452 * nsfns.m (have_menus_p, ns_display_info_for_name)
4453 (x_set_cursor_type, ns_appkit_version_str)
4454 (ns_appkit_version_int, ns_do_applescript)
4455 (x_set_scroll_bar_default_width, x_sync, compute_tip_xy)
4456 (syms_of_nsfns): Convert to ANSI C prototypes.
4457
4458 * menu.h (x_set_menu_bar_line): Declare.
4459 (free_menubar_widget_value_tree et.al): Add HAVE_NS for these functions.
4460
4461 * lisp.h (fmod_float): Declare.
4462
4463 * image.c (xpm_scan, xpm_make_color_table_v)
4464 (xpm_put_color_table_v, xpm_get_color_table_v)
4465 (xpm_make_color_table_h, xpm_put_color_table_h)
4466 (xpm_get_color_table_h, xpm_str_to_color_key, xpm_load_image)
4467 (xpm_load): Convert to ANSI C prototypes.
4468
4469 * emacs.c: Include nsterm.h if HAVE_NS.
4470
4471 * bidi.c (bidi_dump_cached_states): Fix fprintf warning.
4472
4473 2010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
4474
4475 * process.c: Remove HAVE_SOCKETS #ifdefs inside #ifdef
4476 subprocesses, only MSDOS does not define HAVE_SOCKETS.
4477 (socket_options): Use const char* for name.
4478
4479 2010-08-06 Juanma Barranquero <lekktu@gmail.com>
4480
4481 Fix changes in 2010-08-05T23:15:24Z!dann@ics.uci.edu..2010-08-05T23:34:12Z!dann@ics.uci.edu for Windows build.
4482
4483 * xmenu.c [USE_X_TOOLKIT || USE_GTK]:
4484 Don't declare xmalloc_widget_value and digest_single_submenu.
4485
4486 * w32font.c (Qlatin): Remove declaration.
4487
4488 * menu.h (xmalloc_widget_value, digest_single_submenu): Declare.
4489
4490 * dired.c (compile_pattern): Restore declaration.
4491
4492 2010-08-05 Dan Nicolaescu <dann@ics.uci.edu>
4493
4494 Remove extern declarations in .c files, .h files have them.
4495 * data.c:
4496 * dired.c:
4497 * editfns.c:
4498 * filelock.c:
4499 * fns.c:
4500 * font.c:
4501 * fontset.c:
4502 * frame.c:
4503 * fringe.c:
4504 * ftfont.c:
4505 * gtkutil.c:
4506 * indent.c:
4507 * keyboard.c:
4508 * keymap.c:
4509 * lread.c:
4510 * menu.c:
4511 * print.c:
4512 * search.c:
4513 * sound.c:
4514 * window.c:
4515 * xdisp.c:
4516 * xfaces.c:
4517 * xfns.c:
4518 * xfont.c:
4519 * xftfont.c:
4520 * xmenu.c:
4521 * xterm.c: Remove declarations.
4522
4523 Cleanup syssignal.h.
4524 * syssignal.h (sighold, sigrelse, RETSIGTYPE): Remove, unused.
4525 (main_thread): Move down to remove #ifdef.
4526 (SIGMASKTYPE, SIGEMPTYMASK, SIGFULLMASK, sigmask, sigunblock):
4527 Remove conditional definition following unconditional ones.
4528
4529 * lisp.h: Remove HAVE_SHM code, unused.
4530 (QCmap, QCrehash_size, QCrehash_threshold, QCsize, QCtest)
4531 (QCweakness, Qabove_handle, Qbackquote, Qbar, Qbelow_handle)
4532 (Qborder, Qbottom, Qbox, Qcircular_list, Qcomma, Qcomma_at)
4533 (Qcomma_dot, Qcursor, Qdefault, Qdown, Qend_scroll, Qeq, Qeql)
4534 (Qequal, Qfile_exists_p, Qfont_param, Qfringe, Qfunction)
4535 (Qfunction_documentation, Qhandle, Qhbar, Qheader_line, Qhollow)
4536 (Qidentity, Qleft_margin, Qmenu, Qmenu_bar_update_hook)
4537 (Qmode_line_inactive, Qmouse, Qoverriding_local_map)
4538 (Qoverriding_terminal_local_map, Qratio, Qregion, Qright_margin)
4539 (Qscroll_bar, Qtool_bar, Qtop, Qup, Qvertical_border, Qwhen)
4540 (Qwindow_scroll_functions, Vafter_load_alist)
4541 (Vauto_save_list_file_name, Vface_alternative_font_family_alist)
4542 (Vface_alternative_font_registry_alist, Vface_font_rescale_alist)
4543 (Vface_ignored_fonts, Vinhibit_redisplay, Vminibuffer_list)
4544 (Vprint_length, Vprint_level, Vscalable_fonts_allowed)
4545 (Vshell_file_name, Vsystem_name, Vwindow_scroll_functions)
4546 (Vwindow_system_version, Vx_no_window_manager, initial_argc)
4547 (initial_argv, last_nonmenu_event, load_in_progress)
4548 (noninteractive_need_newline, scroll_margin): Add declarations.
4549
4550 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
4551 Remove declarations, menu.h has them.
4552 (QCbutton, QCtoggle, QCradio, QClabel, extra_keyboard_modifiers)
4553 (Vinput_method_function, Qinput_method_function)
4554 (Qevent_symbol_element_mask, last_event_timestamp):
4555 * dispextern.h (Voverflow_newline_into_fringe):
4556 * font.h (QCantialias, Qp, syms_of_ftfont, syms_of_xfns)
4557 (syms_of_ftxfont, syms_of_xftfont, syms_of_bdffont)
4558 (syms_of_w32font, syms_of_nsfont):
4559 * fontset.h (find_font_encoding, Qlatin):
4560 * frame.h (Qtooltip, Qrun_hook_with_args, Vmenu_bar_mode)
4561 (Vtool_bar_mode, set_frame_menubar):
4562 * ftfont.h (ftfont_font_format, ftfont_get_fc_charset):
4563 * xterm.h (Qx_gtk_map_stock):
4564 * keymap.h (meta_prefix_char): Add declarations.
4565
4566 * term.c: Remove dead code.
4567
4568 Fix emacs -Q -f server-start & emacsclient -t on GNU/Linux.
4569 * term.c (dissociate_if_controlling_tty): Use USG5 instead of
4570 USG. This is equivalent to defined (USG) && !defined (BSD_PGRPS),
4571 which is what was there before BSD_PGRPS was removed.
4572
4573 2010-08-05 Eli Zaretskii <eliz@gnu.org>
4574
4575 * deps.mk (unexcoff.o): Rename unexec.[co] => unexcoff.[co].
4576
4577 * unexcoff.c: Renamed from unexec.c.
4578
4579 2010-08-04 Stefan Monnier <monnier@iro.umontreal.ca>
4580
4581 * sysdep.c (child_setup_tty): Comment-out left-over non-ICANON code.
4582
4583 2010-08-03 Johan Bockgård <bojohan@gnu.org>
4584
4585 * data.c (Flocal_variable_p): Handle variable aliases correctly.
4586 (Bug#6744)
4587
4588 2010-08-02 Jan Djärv <jan.h.d@swipnet.se>
4589
4590 * xterm.c (x_create_toolkit_scroll_bar): Only set XtNbeNiceToColormap
4591 to TRUE if depth of screen is < 16.
4592
4593 * gtkutil.c (hierarchy_ch_cb, qttip_cb): Do not define unless
4594 USE_GTK_TOOLTIP.
4595 (xg_prepare_tooltip): Return 0 unless USE_GTK_TOOLTIP.
4596 (xg_show_tooltip, xg_hide_tooltip): Do nothing unless USE_GTK_TOOLTIP.
4597 (xg_create_frame_widgets): Surround tooltip-related code with ifdef
4598 USE_GTK_TOOLTIP.
4599 (xg_free_frame_widgets): Don't delete ttip_* unless USE_GTK_TOOLTIP.
4600
4601 * xterm.h (USE_GTK_TOOLTIP): New define.
4602 (struct x_output): Put ttip_* inside ifdef USE_GTK_TOOLTIP.
4603
4604 * sysdep.c (child_setup_tty): Enable ICANON in lflags and set VEOF
4605 to Control-D (Bug#6771).
4606
4607 2010-08-02 Juanma Barranquero <lekktu@gmail.com>
4608
4609 * editfns.c (Fregion_beginning, Fregion_end): Doc fixes (bug#6493).
4610 Wording by Drew Adams <drew.adams@oracle.com>.
4611
4612 2010-08-01 Jan Djärv <jan.h.d@swipnet.se>
4613
4614 * xterm.h (struct x_output): Add ttip_widget, ttip_window and
4615 ttip_lbl.
4616
4617 * xterm.c (x_clear_frame): Check FRAME_GTK_WIDGET (f) before
4618 calling gtk_widget_queue_draw.
4619 (x_free_frame_resources): Call xg_free_frame_widgets.
4620
4621 * xfns.c (x_gtk_use_system_tooltips): New variable.
4622 (Fx_show_tip): If USE_GTK and x_gtk_use_system_tooltips, call
4623 new gtkutil tooltip functions to show the tooltip.
4624 (Fx_hide_tip): Call xg_hide_tooltip.
4625 (syms_of_xfns): Defvar x-gtk-use-system-tooltips.
4626
4627 * gtkutil.h (xg_free_frame_widgets, xg_prepare_tooltip)
4628 (xg_show_tooltip, xg_hide_tooltip): Declare.
4629
4630 * gtkutil.c (hierarchy_ch_cb, qttip_cb, xg_prepare_tooltip)
4631 (xg_show_tooltip, xg_hide_tooltip, xg_free_frame_widgets):
4632 New functions.
4633 (xg_create_frame_widgets): Set ttip_* to 0. Set a dummy tooltip
4634 text so qttip_cb is called. Connect query-tooltip to qttip_cb.
4635 Remove code that is commented out.
4636
4637 2010-08-01 Stefan Monnier <monnier@iro.umontreal.ca>
4638
4639 * keymap.c (Fdefine_key, Flookup_key): Say what event is invalid.
4640
4641 2010-07-31 Chong Yidong <cyd@stupidchicken.com>
4642
4643 * xselect.c (x_own_selection): Use list4.
4644
4645 2010-07-30 Dan Nicolaescu <dann@ics.uci.edu>
4646
4647 * buffer.c (Qwindow): Do not define, already defined in data.c.
4648 (syms_of_buffer): Do not intern and staticpro Qwindow. (Bug#6760)
4649
4650 2010-07-29 Chad Brown <yandros@mit.edu>
4651
4652 Replace tests for SYSV_SYSTEM_DIR with HAVE_DIRENT_H, set via autoconf.
4653 * dired.c, sysdep.c: Test HAVE_DIRENT_H instead of SYSV_SYSTEM_DIR.
4654 * config.in: Undef HAVE_DIRENT_H.
4655 * s/aix4-2.h, s/bsd-common.h, s/cygwin.h, s/gnu-linux.h,
4656 * s/msdos.h, s/usg5-4.h: Don't define SYSV_SYSTEM_DIR.
4657
4658 2010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
4659
4660 Rename s/usg5-4.h -> s/usg5-4-common.h.
4661 * s/usg5-4.h: Rename file to ...
4662 * s/usg5-4-common.h: ... this for consistency with what we do for BSD.
4663 * s/unixware.h:
4664 * s/sol2-6.h:
4665 * s/irix6-5.h: Update includes accordingly.
4666
4667 2010-07-29 Jan Djärv <jan.h.d@swipnet.se>
4668
4669 * xfns.c (x_set_tool_bar_position): Remove debug fprintf.
4670
4671 * xterm.h (struct x_output): Add toolbar_top_height,
4672 toolbar_bottom_height, toolbar_left_width, toolbar_right_width.
4673 Remove toolbar_height.
4674 If USE_GTK: Add hbox_widget and toolbar_in_hbox.
4675 (FRAME_TOOLBAR_TOP_HEIGHT, FRAME_TOOLBAR_BOTTOM_HEIGHT)
4676 (FRAME_TOOLBAR_LEFT_WIDTH, FRAME_TOOLBAR_RIGHT_WIDTH): New macros.
4677 (FRAME_TOOLBAR_HEIGHT): Is now TOP_HEIGHT + BOTTOM_HEIGHT.
4678
4679 * xterm.c (x_set_window_size_1): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
4680
4681 * xfns.c (x_set_tool_bar_position): New function.
4682 (xic_set_statusarea): Use FRAME_TOOLBAR_TOP_HEIGHT.
4683 (x_frame_parm_handlers): Add x_set_tool_bar_position.
4684 (syms_of_xfns): If USE_GTK, provide move-toolbar.
4685
4686 * window.c (calc_absolute_offset): Check for FRAME_TOOLBAR_TOP_HEIGHT
4687 and FRAME_TOOLBAR_LEFT_WIDTH.
4688
4689 * gtkutil.h (xg_change_toolbar_position): Declare.
4690
4691 * gtkutil.c (FRAME_TOTAL_PIXEL_WIDTH): New macro.
4692 (xg_frame_set_char_size): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
4693 (xg_height_or_width_changed): Use FRAME_TOTAL_PIXEL_WIDTH.
4694 (xg_create_frame_widgets): Create a hobox for placing widgets
4695 vertically. Use gtk_box_pack_start.
4696 (xg_height_or_width_changed): Rename from xg_height_changed.
4697 (x_wm_set_size_hint): Add FRAME_TOOLBAR_WIDTH to base_width.
4698 (xg_update_frame_menubar, free_frame_menubar): Change to
4699 xg_height_or_width_changed.
4700 (xg_tool_bar_detach_callback): Update left/right/top/bottom tool bar
4701 size correctly. Remove hardcoded 4, instead use handlebox size -
4702 toolbar size.
4703 (xg_tool_bar_attach_callback): Update left/right/top/bottom tool bar
4704 size correctly. Use handlebox size + toolbar size as additional size.
4705 (xg_pack_tool_bar): POS is a new parameter.
4706 Set orientation of tool bar based on pos.
4707 Only make handlebox_widget if NULL.
4708 Check if tool bar goes to vbox or hbox depending on pos.
4709 (xg_update_tool_bar_sizes): New function.
4710 (update_frame_tool_bar): Remove old_req, new_req. Do not get tool bar
4711 height, call xg_update_tool_bar_sizes instead.
4712 (free_frame_tool_bar): Remove from hbox or vbox depending on
4713 toolbar_in_hbox, Set all FRAME_TOOLBAR_*_(WIDTH|HEIGHT) to zero.
4714 (xg_change_toolbar_position): New function.
4715
4716 * frame.h (struct frame): Add tool_bar_position.
4717 (Qbottom): Declare.
4718
4719 * frame.c (Qtool_bar_position): New variable.
4720 (make_frame): Set tool_bar_position to Qtop.
4721 (frame_parms): Add tool-bar-position.
4722 (x_report_frame_params): Store tool_bar_position.
4723 (x_set_fringe_width): Reset wm size hint after fringe changes.
4724
4725 2010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
4726
4727 Make lisp_time_argument declaration work on all systems.
4728 * lisp.h (lisp_time_argument): Move declaration ...
4729 * systime.h (lisp_time_argument): ... here
4730 * editfns.c (lisp_time_argument): Remove declaration. (Bug#6751)
4731
4732 2010-07-29 Jan Djärv <jan.h.d@swipnet.se>
4733
4734 * vm-limit.c (POINTER): Add typedef for it.
4735 (start_of_data): Change return type from POINTER to char *.
4736
4737 * frame.h (Qtty_color_mode): Move declaration out of ifdef
4738 HAVE_WINDOW_SYSTEM.
4739
4740 2010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
4741
4742 * vm-limit.c: Do not include sys/resource.h, mem-limits.h does it.
4743 Remove reference to __osf__, unused.
4744
4745 * mem-limits.h: Remove duplicated includes.
4746 (NULL): Remove definition, unused.
4747 (POINTER): Remove definition.
4748 (start_of_data): Use char* in prototype, as the function
4749 definition does.
4750
4751 Remove extern declarations from .c files, and them to .h files.
4752 * keyboard.h (Qhelp_echo, waiting_for_input)
4753 (input_available_clear_time, ignore_mouse_drag_p)
4754 (Vdouble_click_time, real_this_command, Vthis_original_command):
4755 * keymap.h (Qremap, Qmenu_item, Voverriding_local_map)
4756 (Voverriding_local_map_menu_flag):
4757 * lisp.h (Qinteractive_form, use_file_dialog)
4758 (Qcursor_in_echo_area, QCascent, QCmargin, QCrelief, Qcount)
4759 (Qextension_data, QCconversion, QCcolor_symbols, QCheuristic_mask)
4760 (QCindex, QCmatrix, QCcolor_adjustment, QCmask)
4761 (Qrisky_local_variable, map_char_table_for_charset, Vprint_level)
4762 (Qfunction, debug_on_next_call, Qfield)
4763 (Vinhibit_field_text_motion, Vuser_login_name, lisp_time_argument)
4764 (Qpriority, Qwindow, Qevaporate, Qbefore_string, Qafter_string)
4765 (Qfile_directory_p, Qinsert_file_contents)
4766 (Qcompletion_ignore_case, Qcompletion_ignore_case)
4767 (Vcompletion_regexp_list, Vhistory_length, completion_ignore_case)
4768 (history_delete_duplicates, minibuffer_auto_raise, Qonly)
4769 (Qfile_name_handler_alist, Qfront_sticky, Qrear_nonsticky)
4770 (Qminibuffer_prompt)
4771 (Vtemporary_file_directory,char_ins_del_vector, Qface):
4772 * xterm.h (gray_bitmap_width, gray_bitmap_height)
4773 (gray_bitmap_bits, xic_create_fontsetname):
4774 * coding.h (Vtranslation_table_for_input): Add extern declarations.
4775
4776 * xsmfns.c (Vuser_login_name):
4777 * xrdb.c (Vdouble_click_time):
4778 * xfaces.c (xic_create_fontsetname):
4779 * w32select.c (waiting_for_input):
4780 * print.c (minibuffer_auto_raise):
4781 * msdos.c (Qhelp_echo):
4782 * macros.c (real_this_command):
4783 * keymap.c (Voverriding_local_map):
4784 * xterm.c (poll_for_input_1, gray_bitmap_width)
4785 (gray_bitmap_height, gray_bitmap_bits;
4786 * xmenu.c ( Voverriding_local_map)
4787 (Voverriding_local_map_menu_flag; Qmenu_item; use_dialog_box)
4788 (use_file_dialog, Xt_app_con):
4789 * xdisp.c (minibuffer_auto_raise, Voverriding_local_map)
4790 (Voverriding_local_map_menu_flag, Qmenu_item, Qface, Qinvisible)
4791 (Qwidth, Qinvisible, Qwindow, Qpriority, Qtool_bar_lines)
4792 (Qtool_bar_lines, ignore_mouse_drag_p):
4793 * minibuf.c (Voverriding_local_map, Qfield, Qfront_sticky)
4794 (Qrear_nonsticky, nconc2):
4795 * keyboard.c (current_global_map, minibuf_level, Qmenu_item)
4796 (Vhistory_length, Vtranslation_table_for_input, Qcomposition)
4797 (Qdisplay, Qafter_string, Qbefore_string, Qundefined):
4798 * fileio.c (use_dialog_box, use_file_dialog, Vuser_login_name)
4799 (minibuf_level, minibuffer_auto_raise, lisp_time_argument):
4800 * eval.c (Qinteractive_form, Qrisky_local_variable, Qfunction)
4801 (gc_in_progress):
4802 * doc.c (Voverriding_local_map, Qremap):
4803 * dired.c (completion_ignore_case, Qcompletion_ignore_case)
4804 (Vcompletion_regexp_list):
4805 * coding.c (Qmac, Qinsert_file_contents, Qwrite_region)
4806 (Qcompletion_ignore_case):
4807 * callint.c (Qcursor_in_echo_area, Qfile_directory_p, Qonly)
4808 (Vhistory_length, Vthis_original_command, real_this_command)
4809 (Qface, Qminibuffer_prompt, history_delete_duplicates):
4810 * image.c (Qrisky_local_variable):
4811 * fontset.c (QCname):
4812 * fns.c (minibuffer_auto_raise, QCname):
4813 * dispnew.c (char_ins_del_cost):
4814 * composite.c (font_fill_lglyph_metrics):
4815 * cmds.c (Qface, Vtranslation_table_for_input):
4816 * charset.c (map_char_table_for_charset, Qfile_name_handler_alist):
4817 * ccl.c (charset_unicode):
4818 * callproc.c (Vtemporary_file_directory):
4819 * buffer.c (emacs_strerror): Remove extern declarations.
4820
4821 * data.c (Qwindow): Make non-static, used from other files too.
4822 * frame.c (validate_x_resource_name): Remove shadow definition for i.
4823
4824 * unexec.c (make_hdr): Remove references to NO_REMAP, COFF,
4825 SEGMENT_MASK, SECTION_ALIGNMENT, ADJUST_EXEC_HEADER.
4826 * s/usg5-4.h (COFF):
4827 * s/template.h:
4828 * s/msdos.h (COFF, NO_REMAP):
4829 * s/ms-w32.h (NO_REMAP):
4830 * s/hpux10-20.h (NO_REMAP):
4831 * m/sparc.h (SEGMENT_MASK):
4832 * m/m68k.h (NO_REMAP):
4833 * m/intel386.h (SEGMENT_MASK):
4834 * m/arm.h (NO_REMAP):
4835 * m/alpha.h (COFF):
4836 * m/template.h: Remove references to unused defines.
4837
4838 2010-07-28 Jan Djärv <jan.h.d@swipnet.se>
4839
4840 * xsettings.c (Ftool_bar_get_system_style): Also check for
4841 Qtext_image_horiz.
4842
4843 * xdisp.c (Qtext_image_horiz): Define.
4844 (syms_of_xdisp): Initialize Qtext_image_horiz. Add text-image-horiz
4845 to documentation of tool-bar-style.
4846
4847 * lisp.h (Qtext_image_horiz): Declare.
4848
4849 * gtkutil.c (xg_make_tool_item, xg_show_toolbar_item): Handle tool bar
4850 style text_image_horiz.
4851
4852 2010-07-27 Dan Nicolaescu <dann@ics.uci.edu>
4853
4854 * emacs.c (Fkill_emacs): Remove return statement.
4855
4856 * term.c (Qspace, QCalign_to, QCwidth): Remove declarations.
4857 (encode_terminal_code, produce_composite_glyph): Remove unused variables.
4858 (set_tty_color_mode, term_mouse_highlight, term_get_fkeys):
4859 Remove local extern declarations.
4860
4861 * xmenu.c: Do not included lwlib.h, not needed.
4862
4863 * m/iris4d.h (XUINT, XSET): Remove, not needed.
4864
4865 * process.c: Move definitions earlier to minimize #ifdefs.
4866
4867 * xterm.h (x_get_customization_string, x_load_resources)
4868 (x_get_resource, x_text_icon, x_text_icon, x_check_errors)
4869 (x_check_errors, x_property_data_to_lisp, defined_color)
4870 (xic_set_xfontset, x_defined_color): Use const.
4871
4872 * xterm.c (xlwmenu_window_p, xlwmenu_redisplay): Remove declarations.
4873 (x_text_icon, x_check_errors, x_connection_closed): Use const.
4874
4875 * xselect.c (selection_data_to_lisp_data)
4876 (x_property_data_to_lisp):
4877 * xrdb.c (x_get_string_resource, file_p)
4878 (x_get_customization_string, magic_file_p, search_magic_path)
4879 (get_system_app, get_user_app, x_load_resources, x_get_resource)
4880 (x_get_string_resource): Use const.
4881
4882 * xfns.c: Include xlwmenu.h when USE_LUCID.
4883 (x_defined_color, xic_set_xfontset): Use const.
4884 (Fx_hide_tip): Remove local extern declaration.
4885
4886 * xfaces.c (Qmouse_face): Remove declaration.
4887 (face_color_gray_p, tty_defined_color, defined_color)
4888 (face_color_gray_p, face_color_supported_p): Add const.
4889
4890 * xdisp.c (do_mouse_tracking): Remove declaration.
4891 (add_to_log): Use const.
4892
4893 * minibuf.c (Qmouse_face): Remove declaration.
4894
4895 * msdos.c (IT_note_mouse_highlight): Remove local extern declaration.
4896
4897 * keyboard.h (do_mouse_tracking): Add declaration.
4898
4899 * image.c (QCwidth, QCheight, QCforeground, QCbackground, QCfile)
4900 (QCdata, QCtype, Qcenter): Remove declarations.
4901
4902 * frame.c (x_get_resource_string, x_get_string_resource)
4903 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
4904 (x_default_parameter): Use const.
4905
4906 * font.c (Qnormal, QCtype, QCfamily, QCweight, QCslant, QCwidth)
4907 (QCheight, QCsize, QCname): Remove declarations.
4908
4909 * emacs.c (main): Remove local extern declaration.
4910
4911 * editfns.c (region_limit, syms_of_editfns): Remove local extern
4912 declarations.
4913
4914 * dispnew.c: Remove duplicate #include <unistd.h>.
4915 (update_window, update_frame_1, init_display): Remove local extern
4916 declarations.
4917
4918 * dispextern.h (add_to_log): Remove declaration.
4919 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
4920 (x_frame_get_and_record_arg, x_default_parameter): Add const.
4921
4922 * dired.c (scmp): Add const.
4923 (directory_files_internal): Remove local extern declaration.
4924
4925 * data.c (Finteractive_form): Use const.
4926
4927 * composite.c (syms_of_composite): Remove local extern declarations.
4928
4929 * charset.c (add_to_log): Remove declaration.
4930
4931 * character.c (strwidth, parse_str_to_multibyte): Add const.
4932
4933 * character.h (strwidth, parse_str_to_multibyte): Likewise.
4934
4935 * buffer.c (Fset_buffer_multibyte): Remove local extern declaration.
4936
4937 * lisp.h (Fkill_emacs): Mark as NO_RETURN.
4938 (Lisp_Subr): Make doc and intspec constant.
4939 (QCsize, Qspace, Qcenter, QCalign_to, QCdata, QCfile, QCtype)
4940 (Qlocal, Qapply, Qnormal, QCfamily, QCweight, QCslant, QCwidth)
4941 (QCheight, QCsize, QCname, QCwidth, QCforeground)
4942 (QCbackground, add_to_log, stack_base, Vmark_even_if_inactive)
4943 (display_arg): Add declarations.
4944
4945 2010-07-27 Christoph Scholtes <cschol2112@gmail.com>
4946
4947 * minibuf.c (Fread_buffer): Doc fix (bug#6528).
4948
4949 * window.c (Fwindow_height): Doc fix (bug#6518).
4950
4951 2010-07-27 Juanma Barranquero <lekktu@gmail.com>
4952
4953 * buffer.c (syms_of_buffer) <fringe-indicator-alist>: Doc fix.
4954
4955 2010-07-26 Dan Nicolaescu <dann@ics.uci.edu>
4956
4957 * keyboard.c (Ftop_level, Fexit_recursive_edit)
4958 (Fabort_recursive_edit): Remove return statements in NO_RETURN
4959 functions.
4960
4961 * frame.h (Qtty_color_mode): Add declaration.
4962
4963 * lisp.h (Ftop_level, Fexit_recursive_edit)
4964 (Fabort_recursive_edit): Mark as NO_RETURN.
4965
4966 2010-07-26 Kenichi Handa <handa@m17n.org>
4967
4968 * font.c (Ffont_shape_gstring): Terminate GSTRING by nil if the
4969 number of glyphs gets smaller than the original length. (Bug#6621)
4970
4971 2010-07-26 Juanma Barranquero <lekktu@gmail.com>
4972
4973 * lread.c (unreadpure, mapatoms_1): Make static.
4974
4975 2010-07-25 Juanma Barranquero <lekktu@gmail.com>
4976
4977 * terminfo.c (tparam): Fix prototype of tparm.
4978
4979 2010-07-25 Andreas Schwab <schwab@linux-m68k.org>
4980
4981 * emacs.c (main) [PROFILING]: Use __executable_start if defined to
4982 find start of text segment.
4983 * dispnew.c (safe_bcopy): Don't define if HAVE___EXECUTABLE_START
4984 is defined.
4985
4986 * callproc.c (set_initial_environment): Avoid unbalanced braces.
4987
4988 2010-07-25 Ken Brown <kbrown@cornell.edu>
4989
4990 * vm-limit.c (check_memory_limits): Fix previous change;
4991 accidentally reverted an earlier change.
4992
4993 2010-07-25 Ken Brown <kbrown@cornell.edu>
4994
4995 * mem-limits.h (BSD4_2) [cygwin]: Don't define here; instead...
4996 * vm-limit.c: ...add 'defined (CYGWIN)' here (Bug#6715).
4997
4998 2010-07-25 Juanma Barranquero <lekktu@gmail.com>
4999
5000 * callproc.c (relocate_fd): Set inside #ifndef WINDOWSNT.
5001 * dired.c (opendir, readdir): Fix prototypes.
5002 * editfns.c (w32_get_internal_run_time): Fix prototypes.
5003 * keyboard.c (input_available_signal): Declare inside #ifdef SIGIO.
5004 * ndir.h (opendir, readdir, seekdir, closedir): Fix prototypes.
5005 (telldir): Remove declaration.
5006 * ralloc.c (real_morecore, __morecore): Fix prototypes.
5007 * sound.c (alsa_sound_perror): Declare inside #ifdef HAVE_ALSA.
5008 * syssignal.h (strsignal): Fix prototype.
5009 * term.c (tparam): Fix prototype.
5010 (term_get_fkeys_address, term_get_fkeys_kboard, term_get_fkeys_1)
5011 (term_get_fkeys): Set inside "#ifndef DOS_NT".
5012 * vm-limit.c (check_memory_limits): Fix prototypes of real_morecore
5013 and __morecore.
5014 * w32gui.h (XParseGeometry): Fix prototype.
5015 * w32heap.h (get_data_start, get_data_end, init_heap): Fix prototypes.
5016 * w32term.c (my_set_focus): Declare inside #if 0.
5017 * w32term.h (x_window_to_frame, x_display_info_for_name, w32_term_init)
5018 (w32_fill_rect, w32_clear_window, init_crit, delete_crit, signal_quit)
5019 (drain_message_queue, get_next_msg, post_msg, parse_button)
5020 (ClipboardSequence_Proc): Fix prototypes.
5021 (wait_for_sync): Remove declaration.
5022
5023 2010-07-24 Juanma Barranquero <lekktu@gmail.com>
5024
5025 * w32fns.c (w32_to_x_color): Remove, unused.
5026
5027 2010-07-24 Andreas Schwab <schwab@linux-m68k.org>
5028
5029 * lisp.h: Remove leftover P_.
5030
5031 2010-07-24 Dan Nicolaescu <dann@ics.uci.edu>
5032
5033 * ecrt0.c, unexalpha.c: Remove files, unused.
5034
5035 2010-07-24 Andreas Schwab <schwab@linux-m68k.org>
5036
5037 * cmds.c (internal_self_insert): Make static.
5038 * lisp.h (internal_self_insert): Remove declaration.
5039
5040 2010-07-23 Juanma Barranquero <lekktu@gmail.com>
5041
5042 * alloc.c (free_float):
5043 * font.c [ENABLE_CHECKING] (font_match_xlfd, font_check_xlfd_parse):
5044 * frame.c (delete_frame_handler):
5045 * ralloc.c (reorder_bloc):
5046 * w32menu.c (menubar_id_to_frame, add_left_right_boundary):
5047 Remove unused static functions.
5048
5049 * menu.c (cleanup_popup_menu): Set inside "#ifdef HAVE_NS";
5050 it is called only from NS code.
5051
5052 * w32term.c (my_set_focus): #ifdef away; it is called only from
5053 "#ifdef 0" code.
5054
5055 * w32fns.c (x_edge_detection):
5056 * xfaces.c (may_use_scalable_font_p):
5057 Remove obsolete static declarations.
5058
5059 2010-07-20 Juanma Barranquero <lekktu@gmail.com>
5060
5061 * alloc.c (emacs_blocked_free, emacs_blocked_malloc)
5062 (emacs_blocked_realloc, uninterrupt_malloc):
5063 * fringe.c (w32_reset_fringes):
5064 * image.c (convert_mono_to_color_image, lookup_rgb_color)
5065 (init_color_table, XPutPixel, jpeg_resync_to_restart_wrapper):
5066 * sound.c (be2hs, do_play_sound):
5067 * vm-limit.c (get_lim_data, ret_lim_data):
5068 * w32term.c (x_free_frame_resources):
5069 * xfaces.c (x_create_gc, x_free_gc):
5070 Convert definitions to standard C.
5071
5072 2010-07-20 Stefan Monnier <monnier@iro.umontreal.ca>
5073
5074 * eval.c (Feval, Ffuncall): Use the new names.
5075
5076 * lisp.h (struct Lisp_Subr): Rename `am' to aMANY and add aUNEVALLED.
5077 (DEFUN): Add braces around the union initialisation and use ## to
5078 specify the right union alternative and avoid a cast.
5079
5080 2010-07-18 Juanma Barranquero <lekktu@gmail.com>
5081
5082 * makefile.w32-in ($(BLD)/keyboard.$(O)): Update dependencies.
5083
5084 2010-07-17 Chong Yidong <cyd@stupidchicken.com>
5085
5086 * frame.c (make_initial_frame): Use set_menu_bar_lines (Bug#6660).
5087
5088 2010-07-17 Jan Djärv <jan.h.d@swipnet.se>
5089
5090 * gtkutil.c (xg_event_is_for_menubar): Also check that event window
5091 is related to the menu bar (Bug#6499).
5092 (xg_frame_resized): GTK_IS_MAPPED => gtk_widget_get_mapped, for Gtk 3.0.
5093
5094 2010-07-16 Jan Djärv <jan.h.d@swipnet.se>
5095
5096 * xterm.h (x_menubar_window_to_frame): Second parameter is XEvent*.
5097
5098 * xterm.c (handle_one_xevent): Pass event to x_menubar_window_to_frame.
5099
5100 * xmenu.c (x_activate_menubar): Revert previous fix for Bug#6499,
5101 i.e. don't put back ButtonRelease (Bug#6608).
5102
5103 * xfns.c (x_menubar_window_to_frame): Take XEvent as second parameter
5104 instead of Window. Call xg_event_is_for_menubar when
5105 USE_GTK (Bug#6499).
5106
5107 * gtkutil.h (xg_event_is_for_menubar): Declare.
5108
5109 * gtkutil.c (xg_event_is_for_menubar): New function (Bug#6499).
5110
5111 2010-07-16 Eli Zaretskii <eliz@gnu.org>
5112
5113 * w32fns.c (x_set_foreground_color): Fix setting the cursor color
5114 when it's the same as the old foreground. (Bug#6609)
5115
5116 2010-07-16 Jan Djärv <jan.h.d@swipnet.se>
5117
5118 * xmenu.c (free_frame_menubar): Only call x_set_window_size if
5119 widget is non-null (Bug#6645).
5120
5121 2010-07-15 Andreas Schwab <schwab@linux-m68k.org>
5122
5123 * xterm.c (x_fully_uncatch_errors, x_trace_wire, x_check_font):
5124 Convert old-style definition.
5125
5126 * xmenu.c (create_and_show_popup_menu, xmenu_show): Fix type of
5127 timestamp argument.
5128
5129 2010-07-15 Eli Zaretskii <eliz@gnu.org>
5130
5131 * fringe.c (update_window_fringes): Restore mistakenly reverted
5132 code from 2010-04-17T12:33:05Z!eliz@gnu.org merged in 2010-04-20T13:31:28Z!eliz@gnu.org.
5133
5134 2010-07-14 Jan Djärv <jan.h.d@swipnet.se>
5135
5136 * xterm.c (xm_scroll_callback, x_process_timeouts): K&R => prototype.
5137 (SET_SAVED_KEY_EVENT): Remove (not used).
5138 (SET_SAVED_MENU_EVENT): Rename to SET_SAVED_BUTTON_EVENT and
5139 remove size parameter.
5140 (handle_one_xevent): Check popup_activated () for menu for Xt also.
5141 Remove #ifdef USE_GTK around finish = X_EVENT_DROP.
5142 Remove #ifdef USE_MOTIF code that did SET_SAVED_BUTTON_EVENT for
5143 ButtonRelease.
5144 (x_set_window_size_1): scroll_bar_actual_width is always
5145 SCROLL_BAR_COLS * COLUMN_WIDTH for the purpose of frame sizing.
5146
5147 * xdisp.c (pending_menu_activation): Remove extern declaration.
5148 (prepare_menu_bars): Remove setting of pending_menu_activation.
5149
5150 * xmenu.c (pending_menu_activation): Remove.
5151 (x_activate_menubar): Set popup_activated_flag for Xt also.
5152 Remove setting of pending_menu_activation.
5153 (set_frame_menubar): Remove check of pending_menu_activation.
5154 Declare menubar_size before code. Correct spelling in comment.
5155
5156 2010-07-14 Kenichi Handa <handa@m17n.org>
5157
5158 * font.c (font_open_entity): Cancel previous change.
5159 (Ffont_get): Don't check FONT_ENTITY_INDEX of a font-object.
5160
5161 2010-07-13 Eli Zaretskii <eliz@gnu.org>
5162
5163 Remove subprocesses #ifdefs.
5164 * process.c <inhibit_sentinels>: Move to the common part.
5165 (Fwaiting_for_user_input_p): Move to the common part; return nil
5166 if async subprocesses aren't supported.
5167 * sysdep.c (wait_for_termination) [!MSDOS]: Don't compile on
5168 MS-DOS. Remove "#ifdef subprocesses".
5169 (sys_subshell, sys_select): Remove "#ifdef subprocesses".
5170 (gettimeofday): Remove "#ifdef subprocesses".
5171 (wait_without_blocking): Remove function.
5172 (flush_pending_output, child_setup_tty): Don't compile on MS-DOS.
5173 Remove "#ifdef subprocesses".
5174 (child_setup_tty): Use WINDOWSNT instead of DOS_NT, since not
5175 compiled on MS-DOS.
5176 * callproc.c (Fcall_process) [!MSDOS]: Don't call
5177 wait_for_termination on MS-DOS.
5178 * emacs.c (shut_down_emacs): Remove "#ifndef subprocesses" from
5179 initialization of inhibit_sentinels.
5180 * keyboard.c (record_asynch_buffer_change): Remove "#ifdef
5181 subprocesses" conditional.
5182 * callproc.c (Fcall_process) [!subprocesses]: Don't call
5183 wait_for_termination, since `buffer' cannot be an integer when
5184 async subprocesses are not supported
5185 * xdisp.c (decode_mode_spec): Use `MSDOS' instead of `subprocesses'
5186 for ifdefing away the call to Fprocess_status.
5187
5188 * process.c (add_keyboard_wait_descriptor) [!subprocesses]: Ifdef
5189 away the entire body of the function.
5190
5191 2010-07-13 Dan Nicolaescu <dann@ics.uci.edu>
5192
5193 Remove subprocesses #ifdefs from term.c.
5194 * process.c (add_keyboard_wait_descriptor)
5195 (delete_keyboard_wait_descriptor): Move to common section, do
5196 nothing when subprocesses is not defined.
5197 * term.c (Fsuspend_tty, Fresume_tty, init_tty):
5198 Remove subprocesses #ifdefs.
5199
5200 Convert maybe_fatal to standard C.
5201 * lisp.h (verror): Declare.
5202 * eval.c (verror): New function containing the code from ...
5203 (error): ... this. Call verror.
5204 * term.c (vfatal): New function containing the code from ...
5205 (fatal): ... this. Call vfatal.
5206 (maybe_fatal): Convert to standard C, use variable number of
5207 arguments. Declare as non-return.
5208 (init_tty): Fix maybe_fatal call.
5209
5210 2010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
5211
5212 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_expose)
5213 (_scroll_bar_note_movement): Convert definitions to standard C.
5214 * xmenu.c (menu_help_callback, pop_down_menu, xmenu_show):
5215 * xfns.c (hack_wm_protocols, x_window, x_window): Likewise.
5216
5217 2010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
5218
5219 * xterm.c (x_frame_of_widget, x_alloc_nearest_color_for_widget)
5220 (x_alloc_lighter_color_for_widget, cvt_string_to_pixel)
5221 (cvt_pixel_dtor, x_window_to_menu_bar, xt_action_hook)
5222 (xaw_jump_callback, xaw_scroll_callback)
5223 (x_create_toolkit_scroll_bar, x_set_toolkit_scroll_bar_thumb)
5224 (x_wm_set_size_hint, x_activate_timeout_atimer):
5225 Convert definitions to standard C.
5226 * xmenu.c (menubar_id_to_frame, popup_get_selection)
5227 (popup_activate_callback, popup_deactivate_callback)
5228 (menu_highlight_callback, menubar_selection_callback)
5229 (apply_systemfont_to_dialog, apply_systemfont_to_menu)
5230 (free_frame_menubar, popup_selection_callback, as)
5231 (create_and_show_popup_menu, dialog_selection_callback)
5232 (create_and_show_dialog):
5233 * xfns.c (hack_wm_protocols, x_window):
5234 * xfaces.c (x_update_menu_appearance):
5235 * widget.c (get_default_char_pixel_size, pixel_to_char_size)
5236 (char_to_pixel_size, round_size_to_char, get_wm_shell)
5237 (set_frame_size, update_wm_hints, setup_frame_gcs)
5238 (update_various_frame_slots, update_from_various_frame_slots)
5239 (EmacsFrameInitialize, EmacsFrameRealize, EmacsFrameResize)
5240 (EmacsFrameSetValues, EmacsFrameQueryGeometry)
5241 (EmacsFrameSetCharSize, widget_store_internal_border): Likewise.
5242
5243 2010-07-12 Andreas Schwab <schwab@linux-m68k.org>
5244
5245 * dbusbind.c (xd_initialize): Don't compare boolean with a constant.
5246
5247 2010-07-12 Eli Zaretskii <eliz@gnu.org>
5248
5249 * process.c (setup_process_coding_systems): Move to the part
5250 shared by non-subprocesses systems, and make its body empty when
5251 subprocesses is not defined.
5252 (close_process_descs): Move to the part shared by non-subprocesses
5253 systems.
5254 (wait_reading_process_output) [!subprocesses]: Convert arg list to
5255 ANSI C.
5256
5257 2010-07-12 Andreas Schwab <schwab@linux-m68k.org>
5258
5259 * editfns.c (transpose_markers): Convert old-style definition.
5260 * emacs.c (abort, shut_down_emacs, fixup_locale)
5261 (synchronize_system_time_locale)
5262 (synchronize_system_messages_locale, syms_of_emacs): Likewise.
5263 * floatfns.c (extract_float, matherr, init_floatfns)
5264 (syms_of_floatfns): Likewise.
5265 * fns.c (make_hash_table): Likewise.
5266 * ftfont.c (ftfont_get_otf, ftfont_otf_features)
5267 (ftfont_otf_capability, ftfont_get_glyph_id, ftfont_get_metrics)
5268 (ftfont_drive_otf, ftfont_shape_by_flt, ftfont_shape)
5269 (ftfont_variation_glyphs): Likewise.
5270 * gtkutil.c (xg_create_widget, xg_modify_menubar_widgets): Likewise.
5271 * keymap.c (describe_map_tree, describe_map, describe_vector): Likewise.
5272 * lread.c (read_filtered_event): Likewise.
5273 * minibuf.c (read_minibuf_noninteractive, read_minibuf): Likewise.
5274 * process.c (wait_reading_process_output): Likewise.
5275 * scroll.c (do_line_insertion_deletion_costs): Likewise.
5276 * search.c (search_buffer, boyer_moore): Likewise.
5277 * syntax.c (scan_sexps_forward): Likewise.
5278 * xdisp.c (try_scrolling): Likewise.
5279 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
5280 (face_at_string_position): Likewise.
5281 * xfns.c (x_default_scroll_bar_color_parameter): Likewise.
5282 * xselect.c (x_get_window_property, receive_incremental_selection)
5283 (x_get_window_property_as_lisp_data, lisp_data_to_selection_data):
5284 Likewise.
5285 * xterm.c (x_draw_relief_rect, x_draw_box_rect): Likewise.
5286
5287 2010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
5288
5289 * callproc.c (child_setup): Remove subprocesses conditional.
5290 Remove code dealing with SET_EMACS_PRIORITY, unused.
5291
5292 * buffer.c (Fset_buffer_multibyte): Remove subprocesses conditional.
5293 * process.c (close_process_descs): Use DOS_NT instead of WINDOWSNT.
5294
5295 * emacs.c (__do_global_ctors, __do_global_ctors_aux)
5296 (__do_global_dtors, __main): Use void in definition.
5297 (main): Remove code dealing with SET_EMACS_PRIORITY, unused.
5298 Remove SYMS_MACHINE code, unused. Remove SYMS_SYSTEM, inline
5299 the only users from ...
5300 * s/ms-w32.h (SYMS_SYSTEM): ... here and ...
5301 * s/msdos.h (SYMS_SYSTEM): ... here. Remove.
5302 (HAVE_VOLATILE): Remove, unused.
5303
5304 Convert more function definitions to standard C.
5305 * xdisp.c (window_box_edges, handle_single_display_spec)
5306 (display_string): Convert definition to standard C.
5307 * scroll.c (do_direct_scrolling, scrolling_1):
5308 * dispnew.c (allocate_matrices_for_frame_redisplay)
5309 (mirrored_line_dance):
5310 * coding.c (code_convert_string):
5311 * charset.c (map_charset_chars):
5312 * ccl.c (Fccl_program_p, Fccl_execute, Fccl_execute_on_string)
5313 (Fregister_ccl_program, Fregister_code_conversion_map):
5314 * keyboard.c (kbd_buffer_nr_stored): Likewise.
5315 (head_table): Make static and const.
5316
5317 2010-07-12 Andreas Schwab <schwab@linux-m68k.org>
5318
5319 * Makefile.in (C_WARNINGS_SWITCH, PROFILING_CFLAGS)
5320 (PROFILING_LDFLAGS): Set from substitution.
5321 (ALL_CFLAGS): Add C_WARNINGS_SWITCH and PROFILING_CFLAGS, put
5322 CFLAGS last.
5323
5324 2010-07-12 Kenichi Handa <handa@m17n.org>
5325
5326 * Makefile.in (lisp): Change hebrew.el to hebrew.elc.
5327 (shortlisp): Likewise.
5328
5329 * font.h (enum font_property_index): New member FONT_ENTITY_INDEX.
5330
5331 * font.c (font_open_entity): Record ENTITY in FONT_OBJECT's slot
5332 of FONT_ENTITY_INDEX.
5333 (Ffont_get): If KEY is :otf and the font-object doesn't have the
5334 property, get the property value dynamically.
5335 (Ffont_put): Accept font-entity and font-object too.
5336 (Ffont_get_glyhphs): Rename from Fget_font_glyphs. Arguments and
5337 return value changed.
5338 (syms_of_font): Adjust for the above change.
5339
5340 2010-07-11 Andreas Schwab <schwab@linux-m68k.org>
5341
5342 * blockinput.h: Remove obsolete comment.
5343
5344 * lisp.h: Include <stddef.h>.
5345 (OFFSETOF): Don't define.
5346 (VECSIZE): Use offsetof instead of OFFSETOF.
5347 (PSEUDOVECSIZE): Likewise.
5348 * process.c (conv_sockaddr_to_lisp): Likewise.
5349 * alloc.c: Don't include <stddef.h>.
5350 * buffer.h (PER_BUFFER_VAR_OFFSET): Use offsetof.
5351
5352 * process.c: Remove obsolete comment.
5353
5354 2010-07-11 Chong Yidong <cyd@stupidchicken.com>
5355
5356 * xfaces.c (Vface_remapping_alist): Doc fix (Bug#6091).
5357
5358 2010-07-11 Andreas Schwab <schwab@linux-m68k.org>
5359
5360 * callint.c (Fcall_interactively): Use strchr, strrchr instead of
5361 index, rindex.
5362 * doc.c (get_doc_string, Fsnarf_documentation): Likewise.
5363 * editfns.c (Fuser_full_name, Fformat): Likewise.
5364 * emacs.c (argmatch, sort_args, decode_env_path): Likewise.
5365 * fileio.c (Ffile_symlink_p): Likewise.
5366 * filelock.c (current_lock_owner): Likewise.
5367 * font.c (font_parse_name, font_parse_family_registry): Likewise.
5368 * fontset.c (fontset_pattern_regexp): Likewise.
5369 * lread.c (read1): Likewise.
5370 * sysdep.c (init_system_name): Likewise.
5371 * xfns.c (select_visual): Likewise.
5372 * s/hpux10-20.h (index, rindex): Don't define.
5373 * s/ms-w32.h (index): Likewise.
5374 * s/usg5-4.h: Likewise.
5375
5376 * callproc.c (relocate_fd): Use F_DUPFD if defined.
5377
5378 * alloc.c (pending_malloc_warning, malloc_warning): Add const.
5379 * callproc.c (relocate_fd, getenv_internal_1, getenv_internal)
5380 (egetenv): Likewise.
5381 * doprnt.c (doprnt): Likewise.
5382 * editfns.c (set_time_zone_rule, format2): Likewise.
5383 * emacs.c (decode_env_path): Likewise.
5384 * eval.c (signal_error, error): Likewise.
5385 * insdel.c (replace_range_2): Likewise.
5386 * keyboard.c (cmd_error_internal): Likewise.
5387 * lread.c (isfloat_string, make_symbol, dir_warning): Likewise.
5388 * print.c (write_string, write_string_1, print_error_message):
5389 Likewise.
5390 * vm-limit.c (warn_function, memory_warnings): Likewise.
5391 * xdisp.c (message1, message1_nolog, message_with_string)
5392 (vmessage, message, message_nolog): Likewise.
5393 * emacs.c: Remove duplicate declaration.
5394 * keyboard.h: Likewise.
5395 * lisp.h: Update prototypes.
5396
5397 * eval.c: Fix indentation problem.
5398
5399 * keyboard.c: Include "process.h"
5400
5401 * eval.c: Remove obsolete noinline declaration.
5402 * fns.c: Likewise.
5403
5404 2010-07-11 Ken Raeburn <raeburn@raeburn.org>
5405
5406 * doprnt.c (doprnt): Take a va_list argument instead of count and
5407 pointer.
5408 * eval.c (error): Change to a standard-C variadic function.
5409 * xdisp.c (vmessage): Rename from message, made static, and
5410 changed to take a va_list argument.
5411 (message): New variadic wrapper.
5412 (message_nolog): Now a variadic function, calling vmessage.
5413 * lisp.h: Include stdarg.h for va_list.
5414 (doprnt, error, message, message_nolog): Decls updated.
5415
5416 2010-07-11 Eli Zaretskii <eliz@gnu.org>
5417
5418 * process.c (syms_of_process) <delete-exited-processes>: Define
5419 even if !subprocesses.
5420 (delete_exited_processes): Ditto.
5421
5422 * msdos.c (syms_of_msdos) <delete-exited-processes>: Remove DEFVAR.
5423 (delete_exited_processes): Don't define.
5424
5425 2010-07-10 Chong Yidong <cyd@stupidchicken.com>
5426
5427 * frame.c (make_frame): Initialize menu_bar_lines and
5428 tool_bar_lines members.
5429 (make_initial_frame, make_terminal_frame):
5430 Initialize menu_bar_lines using value of menu-bar-mode.
5431
5432 * msdos.c (IT_set_frame_parameters): Don't set menu-bar-lines.
5433
5434 2010-07-10 Eli Zaretskii <eliz@gnu.org>
5435
5436 * process.c: Reshuffle #include's. Condition some of the global
5437 and static variables on `subprocesses'.
5438 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
5439 Leave only one implementation.
5440 (Fget_buffer_process, Fprocess_inherit_coding_system_flag)
5441 (kill_buffer_processes, Flist_system_processes)
5442 (Fprocess_attributes, init_process, syms_of_process): Unify the
5443 implementations for with subprocesses and without them.
5444
5445 2010-07-09 Jan Djärv <jan.h.d@swipnet.se>
5446
5447 * xmenu.c (set_frame_menubar): Must realize menubar_widget to get the
5448 correct size for Motif.
5449 (free_frame_menubar): Call x_set_window_size to update frame size.
5450
5451 * xfns.c (x_window): Set borderWidth to 0 for pane and
5452 EmacsFrame. Frame size calculation is wrong otherwise.
5453
5454 2010-07-09 Michael Albinus <michael.albinus@gmx.de>
5455
5456 * dbusbind.c (xd_initialize): Add new argument RAISE_ERROR, which
5457 allows to suppress errors when polling in Emacs' main loop.
5458 (Fdbus_init_bus, Fdbus_get_unique_name, Fdbus_call_method)
5459 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
5460 (Fdbus_method_error_internal, Fdbus_send_signal)
5461 (xd_get_dispatch_status, xd_read_message, Fdbus_register_signal)
5462 (Fdbus_register_method): Use it. (Bug#6579)
5463
5464 2010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
5465
5466 * alloc.c: Convert DEFUNs to standard C.
5467 * buffer.c:
5468 * bytecode.c:
5469 * callint.c:
5470 * callproc.c:
5471 * casefiddle.c:
5472 * casetab.c:
5473 * category.c:
5474 * character.c:
5475 * charset.c:
5476 * chartab.c:
5477 * cmds.c:
5478 * coding.c:
5479 * composite.c:
5480 * data.c:
5481 * dbusbind.c:
5482 * dired.c:
5483 * dispnew.c:
5484 * doc.c:
5485 * dosfns.c:
5486 * editfns.c:
5487 * emacs.c:
5488 * eval.c:
5489 * fileio.c:
5490 * filelock.c:
5491 * floatfns.c:
5492 * fns.c:
5493 * font.c:
5494 * fontset.c:
5495 * frame.c:
5496 * fringe.c:
5497 * image.c:
5498 * indent.c:
5499 * insdel.c:
5500 * keyboard.c:
5501 * keymap.c:
5502 * lread.c:
5503 * macros.c:
5504 * marker.c:
5505 * menu.c:
5506 * minibuf.c:
5507 * msdos.c:
5508 * nsfns.m:
5509 * nsmenu.m:
5510 * nsselect.m:
5511 * print.c:
5512 * process.c:
5513 * search.c:
5514 * sound.c:
5515 * syntax.c:
5516 * term.c:
5517 * terminal.c:
5518 * textprop.c:
5519 * undo.c:
5520 * w16select.c:
5521 * w32console.c:
5522 * w32fns.c:
5523 * w32font.c:
5524 * w32menu.c:
5525 * w32proc.c:
5526 * w32select.c:
5527 * window.c:
5528 * xdisp.c:
5529 * xfaces.c:
5530 * xfns.c:
5531 * xmenu.c:
5532 * xselect.c:
5533 * xsettings.c:
5534 * xsmfns.c: Likewise.
5535
5536 2010-07-08 Eli Zaretskii <eliz@gnu.org>
5537
5538 * process.c (kbd_is_on_hold, hold_keyboard_input)
5539 (unhold_keyboard_input, kbd_on_hold_p) [!subprocesses]: Define.
5540
5541 2010-07-08 Jan Djärv <jan.h.d@swipnet.se>
5542
5543 * xmenu.c (set_frame_menubar, create_and_show_popup_menu)
5544 (create_and_show_dialog): Don't call apply_systemfont_to_(menu|dialog)
5545 unless USE_LUCID.
5546
5547 2010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
5548
5549 * xdisp.c (store_mode_line_noprop_char): Remove K&R alternative
5550 declaration.
5551
5552 Clean up include guards.
5553 * tparam.c: Remove include guards for config.h, string.h and code
5554 that assumes #ifndef emacs.
5555 * termcap.c:
5556 * unexalpha.c:
5557 * sysdep.c:
5558 * filemode.c:
5559 * filelock.c:
5560 * bidi.c: Likewise.
5561
5562 Remove prefix-args.c
5563 * prefix-args.c: Remove file.
5564 * autodeps.mk (ALLOBJS): Remove reference to prefix-args.
5565 * Makefile.in (temacs${EXEEXT}): Remove references to
5566 PRE_EDIT_LDFLAGS and POST_EDIT_LDFLAGS.
5567 (mostlyclean): Remove reference to prefix-args.
5568 (prefix-args): Remove.
5569
5570 Simplify cstart_of_data, start_of_code and related code.
5571 * mem-limits.h: Remove !emacs and _LIBC conditional code.
5572 (start_of_data): Merge into start_of_data function.
5573 * sysdep.c (start_of_text): Remove. Move simplified versions of
5574 it in the only users: unexaix.c and unexec.c.
5575 (read_input_waiting): Remove local declaration of quit_char.
5576 (start, etext): Remove declarations.
5577 (start_of_data): Merge with the version in mem-limits.h and move
5578 to vm-limits.c.
5579 * vm-limit.c (start_of_data): Merged and simplified version of the
5580 code formerly in mem-limits.h and sysdep.c.
5581 * unexec.c (start): New declaration, moved from sysdep.c.
5582 (start_of_text): Simplified version of the code formerly in sysdep.c.
5583 * unexaix.c (start_of_text): Simplified version of the code
5584 formerly in sysdep.c.
5585 * m/alpha.h (HAVE_TEXT_START): Remove.
5586 (TEXT_START): Move ...
5587 * unexalpha.c (TEXT_START): ... here.
5588 * s/hpux10-20.h (TEXT_START): Remove.
5589 * s/darwin.h (TEXT_START):
5590 * m/mips.h (TEXT_START):
5591 * m/macppc.h (HAVE_TEXT_START):
5592 * m/m68k.h (TEXT_START):
5593 * m/iris4d.h (TEXT_START):
5594 * m/intel386.h (TEXT_START):
5595 * m/ibmrs6000.h (TEXT_START):
5596 * m/ia64.h (HAVE_TEXT_START):
5597 * s/msdos.h (TEXT_START): Likewise.
5598
5599 2010-07-07 Andreas Schwab <schwab@linux-m68k.org>
5600
5601 * alloc.c (overrun_check_malloc, overrun_check_realloc)
5602 (overrun_check_free, xstrdup, allocate_string)
5603 (allocate_string_data, compact_small_strings, Fmake_string)
5604 (make_unibyte_string, make_multibyte_string)
5605 (make_string_from_bytes, make_specified_string, make_float)
5606 (Fcons, allocate_terminal, allocate_frame, make_pure_string)
5607 (Fgarbage_collect): Replace bcopy, safe_bcopy, bzero, bcmp by
5608 memcpy, memmove, memset, memcmp.
5609 * atimer.c (start_atimer, set_alarm): Likewise.
5610 * buffer.c (clone_per_buffer_values, report_overlay_modification)
5611 (mmap_realloc, init_buffer_once): Likewise.
5612 * callint.c (Fcall_interactively): Likewise.
5613 * callproc.c (Fcall_process, Fcall_process_region, child_setup)
5614 (getenv_internal_1): Likewise.
5615 * casefiddle.c (casify_object): Likewise.
5616 * ccl.c (ccl_driver): Likewise.
5617 * character.c (str_as_multibyte, str_to_multibyte): Likewise.
5618 * charset.c (load_charset_map_from_file)
5619 (load_charset_map_from_file, load_charset_map_from_vector)
5620 (Fdefine_charset_internal): Likewise.
5621 * cm.c (Wcm_clear): Likewise.
5622 * coding.c (decode_eol, decode_coding_object)
5623 (Fset_coding_system_priority, make_subsidiaries): Likewise.
5624 * data.c (Faset): Likewise.
5625 * dired.c (directory_files_internal, file_name_completion_stat):
5626 Likewise.
5627 * dispnew.c (new_glyph_matrix, adjust_glyph_matrix)
5628 (clear_glyph_row, copy_row_except_pointers)
5629 (copy_glyph_row_contents, new_glyph_pool, realloc_glyph_pool)
5630 (save_current_matrix, restore_current_matrix)
5631 (build_frame_matrix_from_leaf_window, mirrored_line_dance)
5632 (mirror_line_dance, scrolling_window): Likewise.
5633 * doc.c (Fsnarf_documentation, Fsubstitute_command_keys):
5634 Likewise.
5635 * doprnt.c (doprnt): Likewise.
5636 * editfns.c (Fuser_full_name, make_buffer_string_both)
5637 (Fmessage_box, Fformat, Ftranspose_regions): Likewise.
5638 * emacs.c (sort_args): Likewise.
5639 * eval.c (Fapply, Ffuncall): Likewise.
5640 * fileio.c (Ffile_name_directory, make_temp_name)
5641 (Fexpand_file_name, search_embedded_absfilename)
5642 (Fsubstitute_in_file_name, Ffile_symlink_p, Finsert_file_contents)
5643 (auto_save_error): Likewise.
5644 * fns.c (Fstring_equal, Fcopy_sequence, concat)
5645 (string_to_multibyte, Fstring_as_unibyte, Fstring_as_multibyte)
5646 (internal_equal, Fclear_string, larger_vector, copy_hash_table)
5647 (Fmake_hash_table): Likewise.
5648 * fringe.c (Fdefine_fringe_bitmap): Likewise.
5649 * ftfont.c (ftfont_text_extents): Likewise.
5650 * getloadavg.c (getloadavg): Likewise.
5651 * image.c (define_image_type, make_image, make_image_cache)
5652 (x_create_x_image_and_pixmap, xbm_image_p)
5653 (w32_create_pixmap_from_bitmap_data, xbm_load, xpm_lookup_color)
5654 (xpm_image_p, x_create_bitmap_from_xpm_data, xpm_load)
5655 (init_color_table, x_build_heuristic_mask, pbm_image_p, pbm_load)
5656 (png_image_p, png_read_from_memory, png_load, jpeg_image_p)
5657 (tiff_image_p, tiff_read_from_memory, gif_image_p)
5658 (gif_read_from_memory, gif_load, svg_image_p, gs_image_p):
5659 Likewise.
5660 * indent.c (scan_for_column, compute_motion): Likewise.
5661 * insdel.c (gap_left, gap_right, make_gap_smaller, copy_text)
5662 (insert_1_both, insert_from_gap, replace_range_2): Likewise.
5663 * intervals.c (reproduce_tree, reproduce_tree_obj): Likewise.
5664 * keyboard.c (echo_char, save_getcjmp, restore_getcjmp)
5665 (kbd_buffer_store_event_hold, apply_modifiers_uncached)
5666 (store_user_signal_events, menu_bar_items, tool_bar_items)
5667 (process_tool_bar_item, append_tool_bar_item)
5668 (read_char_minibuf_menu_prompt, read_key_sequence)
5669 (Fread_key_sequence, Fread_key_sequence_vector, Frecent_keys):
5670 Likewise.
5671 * keymap.c (current_minor_maps, Fdescribe_buffer_bindings):
5672 Likewise.
5673 * lisp.h (STRING_COPYIN): Likewise.
5674 * lread.c (Fload, read1, oblookup): Likewise.
5675 * msdos.c (Frecent_doskeys): Likewise.
5676 * nsfns.m (Fx_create_frame): Likewise.
5677 * nsfont.m (nsfont_open, nsfont_text_extents, ns_glyph_metrics):
5678 Likewise.
5679 * nsimage.m (EmacsImage-initFromSkipXBM:width:height:)
5680 (EmacsImage-initForXPMWithDepth:width:height:flip:length:):
5681 Likewise.
5682 * nsmenu.m (ns_update_menubar): Likewise.
5683 * nsterm.m (ns_draw_fringe_bitmap, ns_term_init): Likewise.
5684 * print.c (print_unwind, printchar, strout, print_string)
5685 (print_error_message): Likewise.
5686 * process.c (conv_lisp_to_sockaddr, set_socket_option)
5687 (Fmake_network_process, Fnetwork_interface_list)
5688 (Fnetwork_interface_info, read_process_output, Fprocess_send_eof)
5689 (init_process): Likewise.
5690 * ralloc.c (resize_bloc, r_alloc_sbrk, r_alloc_init): Likewise.
5691 * regex.c (init_syntax_once, regex_compile, re_compile_fastmap):
5692 Likewise.
5693 * scroll.c (do_scrolling, do_direct_scrolling)
5694 (scrolling_max_lines_saved): Likewise.
5695 * search.c (search_buffer, wordify, Freplace_match): Likewise.
5696 * sound.c (wav_init, au_init, Fplay_sound_internal): Likewise.
5697 * syntax.c (skip_chars, skip_syntaxes): Likewise.
5698 * sysdep.c (child_setup_tty, sys_subshell, emacs_get_tty)
5699 (emacs_set_tty): Likewise.
5700 * term.c (encode_terminal_code, calculate_costs)
5701 (produce_special_glyphs, create_tty_output, init_tty, delete_tty):
5702 Likewise.
5703 * termcap.c (tgetst1, gobble_line): Likewise.
5704 * termhooks.h (EVENT_INIT): Likewise.
5705 * tparam.c (tparam1): Likewise.
5706 * unexalpha.c (unexec): Likewise.
5707 * unexec.c (write_segment): Likewise.
5708 * unexmacosx.c (unexec_write_zero): Likewise.
5709 * w32fns.c (w32_wnd_proc, Fx_create_frame, x_create_tip_frame)
5710 (Fx_file_dialog, Fsystem_move_file_to_trash): Likewise.
5711 * w32font.c (w32font_list_family, w32font_text_extents)
5712 (w32font_list_internal, w32font_match_internal)
5713 (w32font_open_internal, compute_metrics, Fx_select_font):
5714 Likewise.
5715 * w32menu.c (set_frame_menubar, add_menu_item)
5716 (w32_menu_display_help, w32_free_submenu_strings): Likewise.
5717 * w32term.c (XCreateGC, w32_initialize_display_info): Likewise.
5718 * w32uniscribe.c (uniscribe_list_family): Likewise.
5719 * w32xfns.c (get_next_msg, post_msg, prepend_msg): Likewise.
5720 * window.c (make_window, replace_window, set_window_buffer)
5721 (Fsplit_window): Likewise.
5722 * xdisp.c (init_iterator, RECORD_OVERLAY_STRING, reseat_to_string)
5723 (add_to_log, message3, x_consider_frame_title)
5724 (append_space_for_newline, extend_face_to_end_of_line)
5725 (decode_mode_spec_coding, init_glyph_string): Likewise.
5726 * xfaces.c (x_create_gc, get_lface_attributes_no_remap)
5727 (Finternal_copy_lisp_face, Finternal_merge_in_global_face)
5728 (face_attr_equal_p, make_realized_face, make_face_cache)
5729 (free_realized_faces, lookup_named_face, smaller_face)
5730 (face_with_height, lookup_derived_face)
5731 (x_supports_face_attributes_p, Finternal_set_font_selection_order)
5732 (Finternal_set_font_selection_order, realize_default_face)
5733 (compute_char_face, face_at_buffer_position)
5734 (face_for_overlay_string, face_at_string_position, merge_faces):
5735 Likewise.
5736 * xfns.c (xic_create_fontsetname, Fx_create_frame)
5737 (Fx_window_property, x_create_tip_frame)
5738 (Fx_backspace_delete_keys_p): Likewise.
5739 * xfont.c (xfont_list, xfont_match, xfont_list_family)
5740 (xfont_text_extents): Likewise.
5741 * xmenu.c (set_frame_menubar, xmenu_show): Likewise.
5742 * xrdb.c (magic_file_p, x_get_resource): Likewise.
5743 * xselect.c (x_queue_event, x_get_window_property)
5744 (receive_incremental_selection): Likewise.
5745 * xsmfns.c (x_session_check_input): Likewise.
5746 * xterm.c (x_send_scroll_bar_event, SET_SAVED_MENU_EVENT)
5747 (handle_one_xevent, x_check_errors, xim_initialize, x_term_init):
5748 Likewise.
5749 * character.h (BCOPY_SHORT): Removed.
5750 * config.in: Regenerate.
5751 * dispnew.c (safe_bcopy): Only define as dummy if PROFILING.
5752 * emacs.c (main) [PROFILING]: Don't declare
5753 dump_opcode_frequencies.
5754 * lisp.h (safe_bcopy): Remove declaration.
5755 (memset) [!HAVE_MEMSET]: Declare.
5756 (memcpy) [!HAVE_MEMCPY]: Likewise.
5757 (memmove) [!HAVE_MEMMOVE]: Likewise.
5758 (memcmp) [!HAVE_MEMCMP]: Likewise.
5759 * s/ms-w32.h (bzero, bcopy, bcmp, GAP_USE_BCOPY)
5760 (BCOPY_UPWARD_SAFE, BCOPY_DOWNWARD_SAFE, HAVE_BCOPY, HAVE_BCMP):
5761 Don't define.
5762 (HAVE_MEMCMP, HAVE_MEMCPY, HAVE_MEMMOVE, HAVE_MEMSET): Define.
5763 * s/msdos.h (GAP_USE_BCOPY, BCOPY_UPWARD_SAFE)
5764 (BCOPY_DOWNWARD_SAFE): Don't define.
5765 * sysdep.c (memset) [!HAVE_MEMSET]: Define.
5766 (memcpy) [!HAVE_MEMCPY]: Define.
5767 (memmove) [!HAVE_MEMMOVE]: Define.
5768 (memcmp) [!HAVE_MEMCMP]: Define.
5769
5770 2010-07-07 Jan Djärv <jan.h.d@swipnet.se>
5771
5772 * process.c (kbd_is_on_hold): New variable.
5773 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
5774 New functions.
5775 (wait_reading_process_output): If kbd_on_hold_p returns non-zero,
5776 select on empty input mask.
5777 (init_process): Initialize kbd_is_on_hold to 0.
5778
5779 * process.h (hold_keyboard_input, unhold_keyboard_input)
5780 (kbd_on_hold_p): Declare.
5781
5782 * keyboard.c (input_available_signal): Declare.
5783 (kbd_buffer_nr_stored): New function.
5784 (kbd_buffer_store_event_hold): If kbd_buffer_nr_stored returns
5785 more than KBD_BUFFER_SIZE/2, stop reding input (Bug#6571).
5786 (kbd_buffer_get_event): If input is suspended and kbd_buffer_nr_stored
5787 returns less than KBD_BUFFER_SIZE/4, resume reding input (Bug#6571).
5788 (tty_read_avail_input): If input is on hold, return.
5789 Don't read more that free slots in kbd_buffer (Bug#6571).
5790
5791 2010-07-07 Eli Zaretskii <eliz@gnu.org>
5792
5793 * msdos.h:
5794 * msdos.c:
5795 * dosfns.c:
5796 * w16select.c: Convert function definitions to ANSI C.
5797
5798 * msdos.h (ctrl_break_func, install_ctrl_break_check):
5799 Remove unused prototypes.
5800
5801 2010-07-07 Juanma Barranquero <lekktu@gmail.com>
5802
5803 * coding.c, sysdep.c: Convert some more functions to standard C.
5804
5805 2010-07-07 Juanma Barranquero <lekktu@gmail.com>
5806
5807 * coding.c (decode_coding_gap, encode_coding_gap, decode_coding_object)
5808 (encode_coding_object): Use SPECPDL_INDEX.
5809 (syms_of_coding): Use DOS_NT.
5810
5811 2010-07-07 Dan Nicolaescu <dann@ics.uci.edu>
5812
5813 * intervals.h (interval): Use EMACS_UINT instead of unsigned EMACS_INT.
5814
5815 Make the function member of Lisp_Subr use standard C prototypes.
5816 * lisp.h (struct Lisp_Subr): Use a union for the function member.
5817 (DECL_ALIGN): Add a cast for the function.
5818 * eval.c (Feval, Ffuncall): Use the proper type for each type
5819 function call.
5820
5821 2010-07-06 Chong Yidong <cyd@stupidchicken.com>
5822
5823 * fringe.c (draw_fringe_bitmap_1): Use lookup_named_face to get
5824 fringe face id, so face-remapping-alist works (Bug#6091).
5825
5826 2010-07-06 Juanma Barranquero <lekktu@gmail.com>
5827
5828 * w32.c, w32console.c, w32fns.c, w32font.c, w32heap.c, w32inevt.c
5829 * w32menu.c, w32proc.c, w32reg.c, w32select.c, w32term.c
5830 * w32uniscribe.c, w32xfns.c: Convert function definitions to standard C.
5831
5832 2010-07-06 Andreas Schwab <schwab@linux-m68k.org>
5833
5834 * xterm.c (x_get_keysym_name): Change type of parameter to int.
5835 * lisp.h: Declare x_get_keysym_name.
5836 * keyboard.c (modify_event_symbol): Don't declare
5837 x_get_keysym_name here.
5838
5839 2010-07-06 Dan Nicolaescu <dann@ics.uci.edu>
5840
5841 * ecrt0.c: Revert conversion to standard C.
5842
5843 2010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
5844
5845 * vm-limit.c (memory_warnings):
5846 * keyboard.c (modify_event_symbol):
5847 * floatfns.c (rounding_driver, ceiling2, floor2, truncate2)
5848 (round2, emacs_rint):
5849 * process.c (send_process, old_sigpipe): Convert function
5850 definitions and declarations to standard C.
5851
5852 2010-07-05 Juanma Barranquero <lekktu@gmail.com>
5853
5854 * buffer.c, cm.c, eval.c, keyboard.c, process.c, term.c, vm-limit.c,
5855 * xdisp.c: Convert function definitions to standard C.
5856
5857 * cm.c (cmputc): Arg C is now int, not char.
5858 * process.c (Fmake_network_process): Cast sockaddr_in* to sockaddr*.
5859
5860 2010-07-05 James Cloos <cloos@jhcloos.com>
5861
5862 * xterm.h (Xatom_net_wm_name, Xatom_net_wm_icon_name): New.
5863
5864 * xterm.c (x_term_init): Intern the _NET_WM_NAME and
5865 _NET_WM_ICON_NAME atoms.
5866
5867 * xfns.c (x_set_name_internal): Set the EWMH _NET_WM_NAME
5868 and _NET_WM_ICON_NAME properties, too, matching what is
5869 done in the Gtk+ case.
5870
5871 2010-07-05 Jan Djärv <jan.h.d@swipnet.se>
5872
5873 * xterm.c (XTring_bell, XTset_terminal_window): Fix wrong prototype.
5874
5875 * xsmfns.c (SSDATA): New macro.
5876 (smc_save_yourself_CB, x_session_initialize): Use SSDATA for strings
5877 passed to strlen/strcpy/strcat.
5878 (create_client_leader_window): Surround with #ifndef USE_GTK.
5879 Cast 7:th arg to XChangeProperty to (unsigned char *).
5880
5881 * xsettings.c (something_changedCB, parse_settings)
5882 (apply_xft_settings): Reformat prototype.
5883 (something_changedCB, init_gconf): Remove unused variable i.
5884 (read_settings): Remove unused variable long_len.
5885
5886 * gtkutil.c (xg_get_pixbuf_from_pix_and_mask)
5887 (xg_get_image_for_pixmap, create_dialog)
5888 (xg_get_file_with_selection, xg_get_file_name, update_cl_data)
5889 (menuitem_highlight_callback, make_menu_item)
5890 (xg_create_one_menuitem, create_menus, xg_update_menu_item)
5891 (xg_create_scroll_bar, xg_update_scrollbar_pos)
5892 (xg_set_toolkit_scroll_bar_thumb, xg_tool_bar_button_cb)
5893 (xg_tool_bar_proxy_help_callback, xg_tool_bar_detach_callback)
5894 (xg_tool_bar_attach_callback, xg_tool_bar_help_callback)
5895 (xg_tool_bar_item_expose_callback): Reformat prototype.
5896 (xg_update_menubar): GList *group => GSList *group.
5897 (xg_modify_menubar_widgets): Initialize witem to 0, check witem != 0
5898 before use.
5899 (update_frame_tool_bar): 4:th param to xg_get_image_for_pixmap changed
5900 to GTK_IMAGE (wimage).
5901
5902 2010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
5903
5904 * atimer.c: Use "" instead of <> for local includes for
5905 consistency with the rest of the code.
5906
5907 * xsmfns.c (smc_save_yourself_CB, smc_error_handler):
5908 * xrdb.c (get_system_name):
5909 * window.c (shrink_windows):
5910 * syntax.c (forw_comment):
5911 * scroll.c (calculate_scrolling, calculate_direct_scrolling)
5912 (ins_del_costs):
5913 * mem-limits.h (start_of_data):
5914 * lread.c (readevalloop):
5915 * gtkutil.c (xg_dialog_response_cb, xg_get_file_with_chooser)
5916 (xg_get_file_with_selection, xg_update_menubar, xg_update_submenu):
5917 * frame.c (x_get_focus_frame):
5918 * floatfns.c (fmod_float):
5919 * fileio.c (choose_write_coding_system):
5920 * emacs.c (fatal_error_signal, init_cmdargs, argmatch)
5921 (malloc_initialize_hook, sort_args, synchronize_locale):
5922 * doprnt.c (doprnt):
5923 * dired.c (compile_pattern):
5924 * data.c (fmod_float):
5925 * chartab.c (map_sub_char_table, map_sub_char_table_for_charset)
5926 (map_char_table_for_charset):
5927 * charset.c (define_charset_internal):
5928 * alloc.c (Fgarbage_collect): Convert declarations or definitions
5929 to standard C.
5930
5931 2010-07-04 Tetsurou Okazaki <okazaki@be.to> (tiny change)
5932 Stefan Monnier <monnier@iro.umontreal.ca>
5933
5934 * lread.c (read1): Fix up last change to not mess up `c'.
5935
5936 2010-07-04 Juanma Barranquero <lekktu@gmail.com>
5937
5938 * strftime.c: Revert conversion to standard C (2010-07-04T07:50:25Z!dann@ics.uci.edu).
5939
5940 2010-07-04 Juanma Barranquero <lekktu@gmail.com>
5941
5942 Fix prototypes.
5943
5944 * atimer.c (start_atimer): Use EMACS_TIME, not struct timeval.
5945 * dired.c (file_name_completion_stat): Use DIRENTRY, not struct dirent.
5946 * fileio.c (read_non_regular, read_non_regular_quit): Add Lisp_Object
5947 arg, as required by internal_condition_case_1.
5948 * print.c (strout): Use const char* for arg PTR.
5949 * regex.c (bcmp_translate): Use RE_TRANSLATE_TYPE, not Lisp_Object.
5950 (analyse_first): Fix "const const".
5951 * sysdep.c (set_file_times): Use EMACS_TIME, not struct timeval.
5952 * unexelf.c (round_up, find_section): Use ElfW macro for arguments.
5953 * xgselect.c (xg_select): Use SELECT_TYPE, EMACS_TIME.
5954
5955 2010-07-04 Dan Nicolaescu <dann@ics.uci.edu>
5956
5957 * alloc.c: Convert function definitions to standard C.
5958 * atimer.c:
5959 * bidi.c:
5960 * bytecode.c:
5961 * callint.c:
5962 * callproc.c:
5963 * casefiddle.c:
5964 * casetab.c:
5965 * category.c:
5966 * ccl.c:
5967 * character.c:
5968 * charset.c:
5969 * chartab.c:
5970 * cmds.c:
5971 * coding.c:
5972 * composite.c:
5973 * data.c:
5974 * dbusbind.c:
5975 * dired.c:
5976 * dispnew.c:
5977 * doc.c:
5978 * doprnt.c:
5979 * ecrt0.c:
5980 * editfns.c:
5981 * fileio.c:
5982 * filelock.c:
5983 * filemode.c:
5984 * fns.c:
5985 * font.c:
5986 * fontset.c:
5987 * frame.c:
5988 * fringe.c:
5989 * ftfont.c:
5990 * ftxfont.c:
5991 * gtkutil.c:
5992 * indent.c:
5993 * insdel.c:
5994 * intervals.c:
5995 * keymap.c:
5996 * lread.c:
5997 * macros.c:
5998 * marker.c:
5999 * md5.c:
6000 * menu.c:
6001 * minibuf.c:
6002 * prefix-args.c:
6003 * print.c:
6004 * ralloc.c:
6005 * regex.c:
6006 * region-cache.c:
6007 * scroll.c:
6008 * search.c:
6009 * sound.c:
6010 * strftime.c:
6011 * syntax.c:
6012 * sysdep.c:
6013 * termcap.c:
6014 * terminal.c:
6015 * terminfo.c:
6016 * textprop.c:
6017 * tparam.c:
6018 * undo.c:
6019 * unexelf.c:
6020 * window.c:
6021 * xfaces.c:
6022 * xfns.c:
6023 * xfont.c:
6024 * xftfont.c:
6025 * xgselect.c:
6026 * xmenu.c:
6027 * xrdb.c:
6028 * xselect.c:
6029 * xsettings.c:
6030 * xsmfns.c:
6031 * xterm.c: Likewise.
6032
6033 2010-07-03 Eli Zaretskii <eliz@gnu.org>
6034
6035 * msdos.c (IT_set_frame_parameters): Fix setting of colors in
6036 frames other than the initial one. Fix reversal of colors when
6037 `reverse' is specified in the frame parameters.
6038 Call update_face_from_frame_parameter instead of
6039 internal-set-lisp-face-attribute. Initialize screen colors from
6040 initial_screen_colors[] when f->default_face_done_p is zero,
6041 instead of depending on being called with default-frame-alist as
6042 the alist argument.
6043
6044 * xfaces.c (update_face_from_frame_parameter): Move out of
6045 HAVE_WINDOW_SYSTEM portion. Condition window-system only parts
6046 with HAVE_WINDOW_SYSTEM.
6047
6048 * msdos.c (IT_set_frame_parameters): Set menu-bar-lines according
6049 to menu-bar-mode, if not set in the frame parameters or in
6050 default-frame-alist.
6051
6052 * w32console.c (sys_tputs): Adjust argument list to prototype in
6053 term.c.
6054
6055 2010-07-03 Juanma Barranquero <lekktu@gmail.com>
6056
6057 * lisp.h (memory_warnings): Fix prototype.
6058
6059 * cm.h (evalcost): Fix prototype.
6060
6061 * cm.c (evalcost): Fix arg type.
6062
6063 2010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
6064
6065 * term.c (term_clear_mouse_face, Fidentity):
6066 * syssignal.h (signal_handler_t):
6067 * lisp.h (memory_warnings):
6068 * coding.h (preferred_coding_system):
6069 * cm.h (evalcost):
6070 * blockinput.h (reinvoke_input_signal): Convert to standard C prototypes.
6071
6072 2010-07-02 Eli Zaretskii <eliz@gnu.org>
6073
6074 * dosfns.h (msdos_stdcolor_idx, msdos_stdcolor_name): Remove P_
6075 from prototypes.
6076
6077 * msdos.h (load_pixmap): Don't define away.
6078
6079 2010-07-02 Jan Djärv <jan.h.d@swipnet.se>
6080
6081 * lisp.h:
6082 * atimer.h: Remove define for P_.
6083
6084 * alloc.c: Remove __P and P_ from .c and .m files.
6085 * atimer.c:
6086 * buffer.c:
6087 * callint.c:
6088 * category.c:
6089 * charset.c:
6090 * chartab.c:
6091 * cm.c:
6092 * coding.c:
6093 * composite.c:
6094 * data.c:
6095 * dired.c:
6096 * dispnew.c:
6097 * doc.c:
6098 * editfns.c:
6099 * emacs.c:
6100 * eval.c:
6101 * fileio.c:
6102 * filelock.c:
6103 * fns.c:
6104 * font.c:
6105 * fontset.c:
6106 * frame.c:
6107 * ftfont.c:
6108 * ftxfont.c:
6109 * gmalloc.c:
6110 * gtkutil.c:
6111 * image.c:
6112 * indent.c:
6113 * intervals.c:
6114 * keyboard.c:
6115 * keymap.c:
6116 * lread.c:
6117 * marker.c:
6118 * menu.c:
6119 * minibuf.c:
6120 * print.c:
6121 * process.c:
6122 * scroll.c:
6123 * search.c:
6124 * sound.c:
6125 * strftime.c:
6126 * syntax.c:
6127 * sysdep.c:
6128 * term.c:
6129 * terminal.c:
6130 * textprop.c:
6131 * unexalpha.c:
6132 * w32console.c:
6133 * w32fns.c:
6134 * w32font.c:
6135 * w32menu.c:
6136 * w32term.c:
6137 * w32uniscribe.c:
6138 * window.c:
6139 * xdisp.c:
6140 * xfaces.c:
6141 * xfns.c:
6142 * xfont.c:
6143 * xftfont.c:
6144 * xmenu.c:
6145 * xselect.c:
6146 * xterm.c: Likewise.
6147
6148 Remove P_ and __P macros.
6149 * atimer.h: Remove P_ and __P macros.
6150 * buffer.h:
6151 * category.h:
6152 * ccl.h:
6153 * character.h:
6154 * charset.h:
6155 * cm.h:
6156 * coding.h:
6157 * composite.h:
6158 * dispextern.h:
6159 * disptab.h:
6160 * dosfns.h:
6161 * font.h:
6162 * fontset.h:
6163 * frame.h:
6164 * gtkutil.h:
6165 * indent.h:
6166 * intervals.h:
6167 * keyboard.h:
6168 * keymap.h:
6169 * lisp.h:
6170 * macros.h:
6171 * md5.h:
6172 * menu.h:
6173 * msdos.h:
6174 * nsterm.h:
6175 * puresize.h:
6176 * region-cache.h:
6177 * syntax.h:
6178 * syssignal.h:
6179 * systime.h:
6180 * termhooks.h:
6181 * w32font.h:
6182 * w32term.h:
6183 * widget.h:
6184 * window.h:
6185 * xgselect.h:
6186 * xsettings.h:
6187 * xterm.h: Likewise.
6188
6189 2010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
6190
6191 * lisp.h: Document that USE_LISP_UNION_TYPE is now enabled using autoconf.
6192
6193 Cleanup old code.
6194 * dired.c (BSD4_3): Remove all uses, redundant with BSD4_2.
6195 * syssignal.h: Remove code for Lynx, not supported anymore.
6196 * vm-limit.c: Remove unused code the depends on emacs not being
6197 defined and NO_LIM_DATA being defined.
6198 * mem-limits.h: Remove dead code.
6199
6200 2010-07-01 Jan Djärv <jan.h.d@swipnet.se>
6201
6202 * window.c (Fwindow_absolute_pixel_edges): Doc fix.
6203
6204 * window.c (calc_absolute_offset, Fwindow_absolute_pixel_edges)
6205 (Fwindow_inside_absolute_pixel_edges): New functions (bug#5721).
6206
6207 * nsfns.m (compute_tip_xy): Do not convert coordinates from frame
6208 parameters, they are already absolute.
6209
6210 * nsterm.m (x_set_window_size, initFrameFromEmacs):
6211 Rename FRAME_NS_TOOLBAR_HEIGHT to FRAME_TOOLBAR_HEIGHT.
6212
6213 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
6214
6215 * nsmenu.m (update_frame_tool_bar, free_frame_tool_bar):
6216 Update FRAME_TOOLBAR_HEIGHT.
6217
6218 * nsmenu.m (free_frame_tool_bar, update_frame_tool_bar):
6219 Add BLOCK/UNBLOCK_INPUT so asserts don't trigger.
6220
6221 2010-06-30 Chong Yidong <cyd@stupidchicken.com>
6222
6223 * frame.c (get_future_frame_param, Fmake_terminal_frame):
6224 Don't check default-frame-alist.
6225
6226 2010-06-30 Andreas Schwab <schwab@linux-m68k.org>
6227
6228 * process.c (create_process): Avoid using invalid file descriptors.
6229
6230 * callproc.c (child_setup): Avoid closing a file descriptor twice.
6231
6232 2010-06-30 Jan Djärv <jan.h.d@swipnet.se>
6233
6234 * xsettings.c (Ffont_get_system_normal_font, Ffont_get_system_font):
6235 Improve documentation. Return font regardless of use_system_font.
6236 (syms_of_xsettings): Improve documentation for font-use-system-font.
6237
6238 2010-07-10 Chong Yidong <cyd@stupidchicken.com>
6239
6240 * xfaces.c (realize_face): Garbage the frame if a face is removed
6241 (Bug#6593).
6242
6243 2010-07-05 Andreas Schwab <schwab@linux-m68k.org>
6244
6245 * keyboard.c: Remove duplicate <setjmp.h>.
6246 (read_key_sequence): Remove volatile qualifiers.
6247
6248 2010-07-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6249
6250 * dispextern.h (FRINGE_HEIGHT_BITS): New define.
6251 (struct glyph_row): New members left_fringe_offset and
6252 right_fringe_offset.
6253
6254 * xterm.c (x_draw_fringe_bitmap): Don't clip bottom aligned bitmap
6255 specially.
6256 * w32term.c (w32_draw_fringe_bitmap): Likewise.
6257 * nsterm.m (ns_draw_fringe_bitmap): Likewise.
6258
6259 * fringe.c (draw_fringe_bitmap_1): Don't clip bitmap here.
6260 Take account of bitmap offset.
6261 (draw_window_fringes): Take account of window vscroll.
6262 (update_window_fringes): Likewise. Extend top-aligned top indicator
6263 or bottom-aligned bottom indicator to adjacent rows if it doesn't fit
6264 in one row. Don't set redraw_fringe_bitmaps_p outside row comparison.
6265 Set left_fringe_offset and right_fringe_offset (Bug#5634, Bug#6325).
6266
6267 2010-07-04 Juanma Barranquero <lekktu@gmail.com>
6268
6269 * w32fns.c (Qtooltip): Declare.
6270 Suggested by Andy Moreton <andrewjmoreton@gmail.com>.
6271
6272 2010-07-03 Jan Djärv <jan.h.d@swipnet.se>
6273
6274 * xmenu.c (x_activate_menubar): Send Press/Release for Gtk+ to avoid
6275 grab on just Press (Bug#6499).
6276
6277 2010-07-02 Chong Yidong <cyd@stupidchicken.com>
6278
6279 * frame.c (Qtooltip): New var.
6280 (delete_frame): Use it. Fix faulty if statement. Don't update
6281 mode line for tooltip frames. Suggested by Martin Rudalics.
6282
6283 * xfns.c (x_create_tip_frame):
6284 * w32fns.c (x_create_tip_frame): Use it.
6285
6286 2010-06-17 Naohiro Aota <naota@elisp.net> (tiny change)
6287
6288 * xftfont.c (xftfont_open): Check font width one by one also when
6289 spacing is dual.
6290
6291 * ftfont.c (ftfont_open): Ditto.
6292
6293 2010-06-30 Glenn Morris <rgm@gnu.org>
6294
6295 * s/sol2-6.h (INHIBIT_X11R6_XIM): Remove, handled by configure now.
6296
6297 * Makefile.in (CANNOT_DUMP): Update for configure name change.
6298
6299 * s/freebsd.h (USE_MMAP_FOR_BUFFERS):
6300 * s/irix6-5.h (USE_MMAP_FOR_BUFFERS):
6301 * s/darwin.h (SYSTEM_MALLOC):
6302 * s/sol2-10.h (SYSTEM_MALLOC): Move to configure.
6303
6304 2010-06-29 Jan Djärv <jan.h.d@swipnet.se>
6305
6306 * nsfns.m: extern declare Vmenu_bar_mode, Vtool_bar_mode.
6307 (ns_get_screen): Don't assign integer to f.
6308 (Fx_display_color_cells): Declarations before statements.
6309
6310 2010-06-28 Jan Djärv <jan.h.d@swipnet.se>
6311
6312 * xfns.c (x_default_font_parameter): Remove got_from_system
6313 (Bug#6526).
6314
6315 * xterm.h (gtk_widget_get_window, gtk_widget_get_mapped)
6316 (gtk_adjustment_get_page_size, gtk_adjustment_get_upper):
6317 New defines based on what configure finds.
6318
6319 * xterm.c (XTflash): Use gtk_widget_get_window.
6320 (xg_scroll_callback): Use gtk_adjustment_get_upper and
6321 gtk_adjustment_get_page_size.
6322 (handle_one_xevent): Use gtk_widget_get_mapped.
6323 (x_term_init): Remove HAVE_GTK_MULTIDISPLAY and associated error
6324 messages.
6325
6326 * xmenu.c (create_and_show_popup_menu): Call gtk_widget_get_mapped.
6327
6328 * gtkutil.h: Replace HAVE_GTK_FILE_BOTH with
6329 HAVE_GTK_FILE_SELECTION_NEW.
6330
6331 * gtkutil.c (xg_display_open, xg_display_close):
6332 Remove HAVE_GTK_MULTIDISPLAY, it is always defined.
6333 (xg_display_open): Return type is void.
6334 (gtk_widget_set_has_window)
6335 (gtk_dialog_get_action_area, gtk_dialog_get_content_area)
6336 (gtk_widget_get_sensitive, gtk_adjustment_set_page_size)
6337 (gtk_adjustment_set_page_increment)
6338 (gtk_adjustment_get_step_increment): #define these if not found
6339 by configure.
6340 (remove_submenu): New define based on Gtk+ version.
6341 (xg_set_cursor, xg_frame_resized, xg_event_is_for_scrollbar):
6342 Use gtk_widget_get_window.
6343 (xg_frame_resized, xg_update_frame_menubar): Use gtk_widget_get_mapped.
6344 (xg_create_frame_widgets): Use gtk_widget_set_has_window.
6345 (create_dialog): Use gtk_dialog_get_action_area and
6346 gtk_dialog_get_content_area.
6347 (xg_uses_old_file_dialog, xg_get_file_name): Remove HAVE_GTK_FILE_BOTH
6348 and HAVE_GTK_FILE_CHOOSER_DIALOG_NEW. File chooser is always
6349 available, so checking for HAVE_GTK_FILE_SELECTION_NEW is enough.
6350 (xg_update_menubar, xg_update_submenu, xg_show_toolbar_item):
6351 Use g_object_ref and g_object_unref.
6352 (xg_update_menu_item, xg_tool_bar_menu_proxy):
6353 Use gtk_widget_get_sensitive.
6354 (xg_update_submenu): Use remove_submenu.
6355 (xg_update_scrollbar_pos): Don't use GtkFixedChild, use child
6356 properties instead to get old x and y position.
6357 (xg_set_toolkit_scroll_bar_thumb): Use gtk_adjustment_get_page_size,
6358 gtk_adjustment_get_step_increment, gtk_adjustment_set_page_size,
6359 gtk_adjustment_set_step_increment and gtk_adjustment_set_page_increment.
6360 (xg_get_tool_bar_widgets): New function.
6361 (xg_tool_bar_menu_proxy, xg_show_toolbar_item)
6362 (update_frame_tool_bar): Call xg_get_tool_bar_widgets.
6363 (toolbar_set_orientation): New #define based on if configure
6364 finds gtk_orientable_set_orientation.
6365 (xg_create_tool_bar): Call toolbar_set_orientation.
6366 (xg_make_tool_item, xg_show_toolbar_item): Call gtk_box_pack_start
6367 instead of gtk_box_pack_start_defaults.
6368
6369 2010-06-28 Chong Yidong <cyd@stupidchicken.com>
6370
6371 * cmds.c (Fdelete_backward_char): Move into Lisp.
6372
6373 2010-06-27 Dan Nicolaescu <dann@ics.uci.edu>
6374
6375 * s/freebsd.h (BSD4_2): Remove redundant definition.
6376 bsd-common.h defines it already.
6377
6378 2010-06-27 Chong Yidong <cyd@stupidchicken.com>
6379
6380 * xfns.c (Fx_create_frame): Don't consult X resouces when setting
6381 menu-bar-lines and tool-bar-lines. Use menu-bar-mode and
6382 tool-bar-mode, which are now set using these X resources at
6383 startup, to determine the defaults (Bug#2249).
6384
6385 * w32fns.c (Fx_create_frame):
6386 * nsfns.m (Fx_create_frame): Likewise.
6387
6388 * frame.c (Vmenu_bar_mode, Vtool_bar_mode): New vars.
6389
6390 2010-06-24 Juanma Barranquero <lekktu@gmail.com>
6391
6392 * gtkutil.c (xg_update_scrollbar_pos):
6393 Avoid C99 mid-block variable declaration.
6394
6395 2010-06-22 Jan Djärv <jan.h.d@swipnet.se>
6396
6397 * xterm.c (x_scroll_bar_create): Remove call to xg_show_scroll_bar.
6398
6399 * gtkutil.h (xg_show_scroll_bar): Remove.
6400
6401 * gtkutil.c (xg_update_scrollbar_pos): Show/hide scroll bar as needed
6402 if height is less than scroll bar min size.
6403 (xg_show_scroll_bar): Remove, show moved to xg_update_scrollbar_pos.
6404
6405 * xfns.c (x_default_font_parameter): Try to open font from system
6406 before using it (bug#6478). Rename got_from_gconf to got_from_system.
6407
6408 2010-06-22 Keith Packard <keithp@keithp.com> (tiny change)
6409
6410 * font.c (font_parse_fcname): Allow . for sizes like 7.5 (bug#6437).
6411
6412 2010-06-20 Eli Zaretskii <eliz@gnu.org>
6413
6414 * xdisp.c (try_scrolling): When scroll-conservatively is set to
6415 most-positive-fixnum, be extra accurate when scrolling window
6416 start, to avoid missing the cursor line.
6417
6418 2010-06-19 Eli Zaretskii <eliz@gnu.org>
6419
6420 * xdisp.c (try_scrolling): Compute the limit for searching point
6421 in forward scroll from scroll_max, instead of an arbitrary limit
6422 of 10 screen lines.
6423 See http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00766.html
6424 and
6425 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00773.html
6426 for details.
6427
6428 2010-06-16 Glenn Morris <rgm@gnu.org>
6429
6430 * editfns.c (Fbyte_to_string): Pacify compiler.
6431
6432 2010-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
6433
6434 * lread.c (read1): Phase out old-style backquotes a bit more.
6435
6436 2010-06-12 Eli Zaretskii <eliz@gnu.org>
6437
6438 * makefile.w32-in ($(BLD)/bidi.$(O)): Depend on biditype.h and
6439 bidimirror.h.
6440
6441 * deps.mk (bidi.o): Depend on biditype.h and bidimirror.h.
6442
6443 * bidi.c (bidi_initialize): Remove explicit initialization of
6444 bidi_type_table; include biditype.h instead. Don't support
6445 entries whose second codepoint is zero. Initialize bidi_mirror_table.
6446 (bidi_mirror_char): Use bidi_mirror_table.
6447
6448 * biditype.h: New file.
6449
6450 * bidimirror.h: New file.
6451
6452 * window.c (syms_of_window): Doc fix (bug#6409).
6453
6454 2010-06-12 Romain Francoise <romain@orebokech.com>
6455
6456 * Makefile.in (lisp, shortlisp): Use new location of vc-hooks and
6457 ediff-hook.
6458
6459 2010-06-10 Glenn Morris <rgm@gnu.org>
6460
6461 * editfns.c (Fbyte_to_string): Pacify compiler.
6462
6463 * m/ibms390x.h: Rather than duplicating ibms390.h, just include it.
6464
6465 2010-06-26 Andreas Schwab <schwab@linux-m68k.org>
6466
6467 * alloc.c (Fmake_byte_code): Don't access undefined argument
6468 (Bug#6517).
6469
6470 2010-06-25 Chong Yidong <cyd@stupidchicken.com>
6471
6472 * xdisp.c (next_element_from_image): Ensure that after-strings are
6473 read the next time we hit handle_stop (Bug#1336).
6474
6475 2010-06-23 Andreas Schwab <schwab@linux-m68k.org>
6476
6477 * lread.c (read1): Signal error if #s is not followed by paren.
6478
6479 2010-06-19 Chong Yidong <cyd@stupidchicken.com>
6480
6481 * image.c (free_image): Mark frame as garbaged (Bug#6426).
6482
6483 * keymap.c (Fdefine_key): Doc fix (Bug#6460).
6484
6485 2010-06-15 Glenn Morris <rgm@gnu.org>
6486
6487 * editfns.c (Fbyte_to_string): Pacify compiler.
6488
6489 2010-06-09 Stefan Monnier <monnier@iro.umontreal.ca>
6490
6491 * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
6492 Check `object's type before accessing its guts.
6493
6494 2010-06-09 Dan Nicolaescu <dann@ics.uci.edu>
6495
6496 * s/usg5-4.h: Fix previous change.
6497 Suggested by Lawrence Mitchell <wence@gmx.li>
6498
6499 2010-06-08 Andreas Schwab <schwab@linux-m68k.org>
6500
6501 * minibuf.c (Fall_completions): Add more checks.
6502
6503 2010-06-08 Juanma Barranquero <lekktu@gmail.com>
6504
6505 * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
6506
6507 2010-06-08 Dan Nicolaescu <dann@ics.uci.edu>
6508
6509 * lread.c (X_OK): Remove, unused.
6510
6511 * dispnew.c: Remove obsolete comment.
6512
6513 Remove INCLUDED_FCNTL.
6514 * xterm.c (INCLUDED_FCNTL):
6515 * callproc.c (INCLUDED_FCNTL):
6516 * alloc.c (INCLUDED_FCNTL):
6517 * systty.h (INCLUDED_FCNTL): Remove all uses, not needed anymore.
6518 (emacs_get_tty, emacs_set_tty): Declare unconditionally.
6519
6520 2010-06-07 Martin Rudalics <rudalics@gmx.at>
6521
6522 * window.c (Fselect_window): Move `record_buffer' up to the
6523 beginning of this function, so the buffer gets recorded
6524 even if the selected window does not change.
6525 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00137.html
6526
6527 2010-06-07 Juanma Barranquero <lekktu@gmail.com>
6528
6529 * cmds.c (Fforward_char, Fbackward_char): Fix typos in docstrings.
6530 (Fforward_line, Fbeginning_of_line): Reflow docstrings.
6531
6532 2010-06-06 Dan Nicolaescu <dann@ics.uci.edu>
6533
6534 Remove BSTRING related code, all platforms define it.
6535 * s/usg5-4.h (BSTRING): Remove definition.
6536 * s/template.h (BSTRING):
6537 * s/msdos.h (BSTRING):
6538 * s/ms-w32.h (BSTRING):
6539 * s/hpux10-20.h (BSTRING):
6540 * s/gnu-linux.h (BSTRING):
6541 * s/darwin.h (BSTRING):
6542 * s/cygwin.h (BSTRING):
6543 * s/bsd-common.h (BSTRING):
6544 * s/aix4-2.h (BSTRING): Likewise.
6545 * sysdep.c: Remove code depending on BSTRING not being defined.
6546
6547 2010-06-05 Juanma Barranquero <lekktu@gmail.com>
6548
6549 Remove obsolete macro BASE_LEADING_CODE_P.
6550 * character.h (BASE_LEADING_CODE_P): Remove.
6551 * regex.c [!emacs] (BASE_LEADING_CODE_P): Remove.
6552 * buffer.c (Fset_buffer_multibyte):
6553 * indent.c (scan_for_column, compute_motion):
6554 * insdel.c (count_combining_before, count_combining_after):
6555 Use LEADING_CODE_P instead of BASE_LEADING_CODE_P.
6556
6557 2010-06-04 Juanma Barranquero <lekktu@gmail.com>
6558
6559 Turn `directory-sep-char' into a noop.
6560
6561 * lisp.h [WINDOWSNT] (Vdirectory_sep_char): Don't declare.
6562 (DIRECTORY_SEP): Define unconditionally.
6563
6564 * s/ms-w32.h (DIRECTORY_SEP): Remove.
6565
6566 * emacs.c (decode_env_path): Don't check DIRECTORY_SEP,
6567 call dostounix_filename directly.
6568
6569 * fileio.c (CORRECT_DIR_SEPS): Remove.
6570 (Ffile_name_directory, directory_file_name, Fexpand_file_name)
6571 (Fsubstitute_in_file_name): Use dostounix_filename instead.
6572 (file_name_as_directory): Use dostounix_filename, DIRECTORY_SEP.
6573 (syms_of_fileio) <directory-sep-char>: Move to subr.el.
6574
6575 * w32proc.c (CORRECT_DIR_SEPS): Remove.
6576 (Fw32_short_file_name, Fw32_long_file_name): Use dostounix_filename.
6577
6578 2010-06-03 Andreas Schwab <schwab@linux-m68k.org>
6579
6580 * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4 address.
6581 (Bug#6346)
6582
6583 2010-06-03 Juanma Barranquero <lekktu@gmail.com>
6584
6585 * ccl.c (Fccl_program_p): Fix typo in docstring.
6586
6587 2010-06-03 Dan Nicolaescu <dann@ics.uci.edu>
6588
6589 Move UNEXEC definition to autoconf.
6590 * s/usg5-4.h (UNEXEC): Remove, move to configure.in.
6591 * s/sol2-10.h (UNEXEC):
6592 * s/irix6-5.h (UNEXEC):
6593 * s/hpux10-20.h (UNEXEC):
6594 * s/gnu-linux.h (UNEXEC):
6595 * s/darwin.h (UNEXEC):
6596 * s/cygwin.h (UNEXEC):
6597 * s/bsd-common.h (UNEXEC):
6598 * s/aix4-2.h (UNEXEC):
6599 * m/alpha.h (UNEXEC): Likewise.
6600 * Makefile.in (UNEXEC_OBJ): Define using @UNEXEC_OBJ@.
6601
6602 2010-06-03 Juanma Barranquero <lekktu@gmail.com>
6603
6604 Remove obsolete pre-unicode2 macros.
6605 * character.h (MULTIBYTE_FORM_LENGTH, PARSE_MULTIBYTE_SEQ): Remove.
6606 * composite.c (composition_reseat_it):
6607 * data.c (Faset):
6608 * fns.c (Ffillarray):
6609 * regex.c (re_search_2): Use BYTES_BY_CHAR_HEAD.
6610 [!emacs] (BYTES_BY_CHAR_HEAD): Define instead of MULTIBYTE_FORM_LENGTH.
6611
6612 2010-06-03 Juri Linkov <juri@jurta.org>
6613
6614 * buffer.c (Fother_buffer): Add CHECK_FRAME.
6615 (Fswitch_to_buffer): Remove unused variable `err'.
6616
6617 2010-06-03 Glenn Morris <rgm@gnu.org>
6618
6619 * m/template.h (NO_SOCK_SIGIO): Remove, no longer used.
6620
6621 * m/hp800.h (alloca) [__NetBSD__ && __GNUC__]: No need to define it,
6622 now that AH_BOTTOM does it.
6623
6624 * m/hp800.h (HAVE_ALLOCA):
6625 * m/ibms390x.h (HAVE_ALLOCA): Do not define, no longer needed.
6626
6627 * m/ia64.h, s/gnu-linux.h, s/gnu.h, s/netbsd.h, s/usg5-4.h:
6628 Remove NOT_C_CODE tests, it is always true now.
6629
6630 2010-06-02 Dan Nicolaescu <dann@ics.uci.edu>
6631
6632 Fix config.h includes.
6633 * xsettings.c:
6634 * xgselect.c:
6635 * nsterm.m:
6636 * nsselect.m:
6637 * nsimage.m:
6638 * nsfont.m:
6639 * nsfns.m:
6640 * dbusbind.c: Use #include <config.h> instead of "config.h" as all
6641 other files do.
6642
6643 * gmalloc.c: Remove BROKEN_PROTOTYPES reference, unused.
6644
6645 * s/sol2-6.h: Remove obsolete comments.
6646
6647 Remove unnecessary alloca.h includes.
6648 * keymap.c: Do not include alloca.h, config.h does that.
6649 * sysdep.c: Likewise. Do not define fwrite, not used.
6650
6651 2010-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
6652
6653 * sysdep.c (child_setup_tty): Move the non-canonical initialization to
6654 the HAVE_TERMIO where it belongs (bug#6149).
6655
6656 2010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
6657
6658 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
6659 of bug#6305).
6660
6661 2010-05-30 Eli Zaretskii <eliz@gnu.org>
6662
6663 * bidi.c (bidi_move_to_visually_next): Make sure the sentinel
6664 state is always cached (bug#6306).
6665
6666 2010-05-29 Eli Zaretskii <eliz@gnu.org>
6667
6668 Fix cursor motion in bidi-reordered continued lines.
6669 * xdisp.c (try_cursor_movement): Backup to non-continuation line
6670 only after finding point's row. Fix the logic. Rewrite the loop
6671 over continuation lines in bidi-reordered buffers.
6672 Return CURSOR_MOVEMENT_MUST_SCROLL upon failure to find a suitable row,
6673 rather than CURSOR_MOVEMENT_CANNOT_BE_USED.
6674
6675 2010-05-28 Michael Albinus <michael.albinus@gmx.de>
6676
6677 * fileio.c (Fdelete_file): Pass TRASH arg to handler call.
6678
6679 2010-05-28 Kenichi Handa <handa@m17n.org>
6680
6681 * font.c (font_delete_unmatched): Check Vface_ignored_fonts.
6682 Don't sheck SPEC if it is nil.
6683 (font_list_entities): Call font_delete_unmatched if
6684 Vface_ignored_fonts is non-nil. (Bug#6287)
6685
6686 2010-05-28 Glenn Morris <rgm@gnu.org>
6687
6688 * Makefile.in (LIBES): Remove $LOADLIBES, it is never set.
6689
6690 2010-05-27 Chong Yidong <cyd@stupidchicken.com>
6691
6692 * fileio.c (Fdelete_file): Change meaning of optional arg to mean
6693 whether to trash.
6694 (internal_delete_file, Frename_file): Callers changed.
6695 (delete_by_moving_to_trash): Doc fix.
6696 (Fdelete_directory_internal): Don't move to trash.
6697
6698 * callproc.c (delete_temp_file):
6699 * buffer.c (Fkill_buffer): Callers changed.
6700
6701 * lisp.h: Update prototype.
6702
6703 2010-05-27 Chong Yidong <cyd@stupidchicken.com>
6704
6705 * xdisp.c (redisplay_window): After redisplay, check if point is
6706 still valid before setting it (Bug#6177).
6707
6708 2010-05-27 Glenn Morris <rgm@gnu.org>
6709
6710 * Makefile.in, autodeps.mk, deps.mk, ns.mk:
6711 Convert comments to Makefile format.
6712
6713 * Makefile.in (bootstrap-clean): No more Makefile.c.
6714
6715 2010-05-26 Glenn Morris <rgm@gnu.org>
6716
6717 * Makefile.in (YMF_PASS_LDFLAGS): Remove.
6718 (temacs${EXEEXT}): Use PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS.
6719
6720 * Makefile.in (NS_IMPL_GNUSTEP_INC, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
6721 Remove.
6722 (TEMACS_LDFLAGS): Do not use NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
6723
6724 2010-05-26 Kenichi Handa <handa@m17n.org>
6725
6726 * composite.c (composition_compute_stop_pos): Fix condition for
6727 backward scanning.
6728
6729 2010-05-25 Glenn Morris <rgm@gnu.org>
6730
6731 * Makefile.in (@NS_IMPL_GNUSTEP_INC@, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
6732 Move before TEMACS_LDFLAGS.
6733 (TEMACS_LDFLAGS): Use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
6734 (temacs${EXEEXT}): Do not use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
6735
6736 * Makefile.in (NOT_C_CODE): No longer define.
6737 (config.h): No longer include.
6738
6739 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): Move definition after some
6740 variables it may reference.
6741
6742 * Makefile.in (LD_SWITCH_SYSTEM_EXTRA): Remove.
6743 (TEMACS_LDFLAGS): Remove LD_SWITCH_SYSTEM_EXTRA.
6744
6745 2010-05-25 Kenichi Handa <handa@m17n.org>
6746
6747 * dispextern.h (struct composition_it): New members rule_idx and
6748 charpos.
6749
6750 * xdisp.c (set_iterator_to_next): While scanning backward, assume
6751 that the character positions of IT point the last character of the
6752 current grapheme cluster.
6753 (next_element_from_composition): Don't change character positions
6754 of IT.
6755 (append_composite_glyph): Set glyph->charpos to
6756 it->cmp_it.charpos.
6757
6758 * composite.c (autocmp_chars): Change the first argument to RULE,
6759 and try composition with RULE only.
6760 (composition_compute_stop_pos): Record the index number of the
6761 composition rule in CMP_IT->rule_idx.
6762 (composition_reseat_it): Call autocmp_chars repeatedly until the
6763 correct rule of the composition is found.
6764 (composition_update_it): Set CMP_IT->charpos. Assume the CHARPOS
6765 is at the last character of the current grapheme cluster when
6766 CMP_IT->reversed_p is nonzero.
6767
6768 2010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
6769
6770 * editfns.c (Fbyte_to_string): New function.
6771
6772 2010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
6773
6774 * process.c (Fmake_network_process): Set :host to nil if it's not used.
6775 Suggested by Masatake YAMATO <yamato@redhat.com>.
6776
6777 2010-05-23 Eli Zaretskii <eliz@gnu.org>
6778
6779 * dispextern.h (init_iterator): Sync prototype with changed definition.
6780
6781 2010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
6782
6783 * s/netbsd.h: If terminfo is found, use it in preference to
6784 termcap. (Bug#6190) [Backport from trunk]
6785
6786 2010-05-19 Eli Zaretskii <eliz@gnu.org>
6787
6788 Redesign and reimplement bidi-aware edge positions of glyph rows.
6789
6790 * dispextern.h (struct glyph_row): New members minpos and maxpos.
6791 (MATRIX_ROW_START_CHARPOS, MATRIX_ROW_START_BYTEPOS)
6792 (MATRIX_ROW_END_CHARPOS, MATRIX_ROW_END_BYTEPOS): Reference minpos
6793 and maxpos members instead of start.pos and end.pos, respectively.
6794
6795 * xdisp.c (display_line): Compare IT_CHARPOS with the position in
6796 row->start.pos, rather than with MATRIX_ROW_START_CHARPOS.
6797 (cursor_row_p): Use row->end.pos rather than MATRIX_ROW_END_CHARPOS.
6798 (try_window_reusing_current_matrix, try_window_id):
6799 Use ROW->minpos rather than ROW->start.pos.
6800 (init_from_display_pos, init_iterator): Use EMACS_INT for
6801 character and byte positions.
6802 (find_row_edges): Rename from find_row_end. Accept additional
6803 arguments for minimum and maximum buffer positions seen by
6804 display_line for this row. Don't use iterator to find the
6805 position following the maximum one; instead, increment the
6806 position found by display_line directly. Fix logic; eol_pos
6807 should be tested before the rest. Handle the case of characters
6808 delivered from display vector (bug#6036). Fix tests related to
6809 it->method. Handle the truncated_on_right_p rows.
6810 (RECORD_MAX_MIN_POS): New macro.
6811 (display_line): Use it to record the minimum and maximum buffer
6812 positions for glyphs in the row being assembled. Record the
6813 position of the newline that terminates the line. If word wrap is
6814 in effect, restore minimum and maximum positions seen up to the
6815 wrap point, when iterator returns to it.
6816 (try_window_reusing_current_matrix): Give up if in bidi-reordered
6817 row and cursor not already at point. Restore original pre-bidi
6818 code for unidirectional buffers.
6819
6820 * dispnew.c (increment_row_positions, check_matrix_invariants):
6821 Increment and check row->start.pos and row->end.pos, in addition
6822 to MATRIX_ROW_START_CHARPOS and MATRIX_ROW_END_CHARPOS.
6823
6824 * .gdbinit (prowlims): Display row->minpos and row->maxpos.
6825 Display truncated_on_left_p and truncated_on_right_p flags.
6826 Formatting fixes.
6827 (pmtxrows): Display the ordinal number of each row. Don't display
6828 rows beyond the last one.
6829
6830 * bidi.c (bidi_cache_iterator_state): Don't zero out new_paragraph:
6831 it is not copied by bidi_copy_it.
6832
6833 2010-05-22 Eli Zaretskii <eliz@gnu.org>
6834
6835 * w32.c (sys_write): Break writes into chunks smaller than 32MB.
6836 (Bug#6237)
6837
6838 2010-05-22 Chong Yidong <cyd@stupidchicken.com>
6839
6840 * image.c (Fimage_flush): Rename from image-refresh.
6841
6842 2010-05-21 Chong Yidong <cyd@stupidchicken.com>
6843
6844 * xdisp.c (redisplay_internal): Clear caches even if redisplaying
6845 just one window.
6846
6847 * image.c (Vimage_cache_eviction_delay): Decrease to 300.
6848 (clear_image_cache): If the number of cached images is unusually
6849 large, decrease the cache eviction delay (Bug#6230).
6850
6851 2010-05-21 Glenn Morris <rgm@gnu.org>
6852
6853 * Makefile.in (${ns_appdir}, ${ns_appbindir}Emacs, ns-app):
6854 Move these rules to ns.mk.
6855 * ns.mk: New file.
6856
6857 * Makefile.in (../src/$(OLDXMENU), $(OLDXMENU)): Always define rules.
6858
6859 * Makefile.in (CANNOT_DUMP): New, set by configure.
6860 (emacs${EXEEXT}, bootstrap-emacs${EXEEXT}): Use $CANNOT_DUMP.
6861
6862 2010-05-20 Juri Linkov <juri@jurta.org>
6863
6864 * fileio.c (Fdelete_file): Change interative spec to use
6865 `read-file-name' like in `find-file-read-args' where the default
6866 value is `default-directory' instead of `buffer-file-name'.
6867 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00533.html
6868
6869 2010-05-20 Kevin Ryde <user42@zip.com.au>
6870
6871 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
6872 (Voverriding_terminal_local_map, Vsystem_key_alist)
6873 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
6874
6875 2010-05-20 Glenn Morris <rgm@gnu.org>
6876
6877 * Makefile.in (DEPDIR): New constant.
6878 (DEPFLAGS): Set with configure, not cpp.
6879 (MKDEPDIR): New, set by configure.
6880 (.c.o, .m.o, ecrt0.o): Use $MKDEPDIR.
6881 (clean): Use $DEPDIR.
6882 (deps_frag): Include from configure.
6883 Move static/dynamic dependency stuff to deps.mk/autodeps.mk.
6884 * deps.mk, autodeps.mk: New files, extracted from Makefile.in.
6885
6886 * bidi.c (bidi_cache_shrink, bidi_cache_iterator_state):
6887 Fix reallocation of the cache. (Bug#6210)
6888
6889 2010-05-19 Glenn Morris <rgm@gnu.org>
6890
6891 * s/msdos.h (ORDINARY_LINK): Move to sed2v2.inp.
6892
6893 * Makefile.in (LD, YMF_PASS_LDFLAGS): Set with configure, not cpp.
6894 (GNULIB_VAR): Remove.
6895 (LIBES): Use LIB_GCC instead of GNULIB_VAR.
6896
6897 * m/ibms390x.h (LINKER):
6898 * m/macppc.h (LINKER) [GNU_LINUX]:
6899 * s/aix4-2.h (ORDINARY_LINK):
6900 * s/cygwin.h (LINKER):
6901 * s/darwin.h (ORDINARY_LINK):
6902 * s/gnu.h (ORDINARY_LINK):
6903 * s/netbsd.h (LINKER):
6904 * s/usg5-4.h (ORDINARY_LINK):
6905 Move to configure.
6906
6907 * s/aix4-2.h (LINKER): Remove; this file sets ORDINARY_LINK.
6908
6909 2010-05-18 Chong Yidong <cyd@stupidchicken.com>
6910
6911 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
6912 prevent stack overflow if number of arguments is too large
6913 (Bug#6214).
6914
6915 2010-05-18 Juanma Barranquero <lekktu@gmail.com>
6916
6917 * charset.c (load_charset_map_from_file): Don't call close after fclose.
6918
6919 2010-05-18 Glenn Morris <rgm@gnu.org>
6920
6921 * s/gnu-linux.h: Combine two conditionals.
6922
6923 * Makefile.in (otherobj): Include $(VMLIMIT_OBJ) separately from
6924 $(POST_ALLOC_OBJ).
6925
6926 * Makefile.in (RALLOC_OBJ): New, set by configure.
6927 (rallocobj): Replace with the previous variable.
6928 (otherobj): Use $RALLOC_OBJ.
6929
6930 * s/gnu.h (REL_ALLOC) [DOUG_LEA_MALLOC]:
6931 * s/gnu-linux.h (REL_ALLOC) [DOUG_LEA_MALLOC]: Move undef to configure.
6932
6933 * Makefile.in (GMALLOC_OBJ, VMLIMIT_OBJ): New, set by configure.
6934 (gmallocobj, vmlimitobj): Replace with previous two variables.
6935 (otherobj): Use $GMALLOC_OBJ, $VMLIMIT_OBJ.
6936
6937 2010-05-17 Glenn Morris <rgm@gnu.org>
6938
6939 * Makefile.in (OLDXMENU_DEPS): New, set by configure.
6940 (stamp-oldxmenu): Use $OLDXMENU_DEPS.
6941
6942 2010-05-16 Glenn Morris <rgm@gnu.org>
6943
6944 * Makefile.in (${ns_appbindir}Emacs, ns-app): Always define these rules.
6945
6946 * Makefile.in (clean): Get rid of HAVE_NS conditional.
6947
6948 * Makefile.in (ns_appdir, ns_appbindir): Now configure adds the
6949 trailing "/".
6950
6951 * Makefile.in (TEMACS_LDFLAGS2): New, set by configure.
6952 (temacs${EXEEXT}): Combine the NS_IMPL_GNUSTEP case with the default.
6953
6954 * Makefile.in (GNUSTEP_SYSTEM_LIBRARIES): Remove, unused.
6955 (NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): New, set by configure.
6956 (LD) [NS_IMPL_GNUSTEP]: Set to $(CC) -rdynamic.
6957 (temacs${EXEEXT}): Remove $LOCALCPP, never defined or referenced.
6958 Make most of the NS_IMPL_GNUSTEP case the same as the default case.
6959
6960 * Makefile.in (temacs${EXEEXT}) [!NS_IMPL_GNUSTEP]:
6961 Remove ${STARTFLAGS}, nothing ever sets it.
6962
6963 2010-05-16 Dan Nicolaescu <dann@ics.uci.edu>
6964
6965 * m/ia64.h (UNEXEC): Remove, set in s/*.h.
6966
6967 2010-05-16 Glenn Morris <rgm@gnu.org>
6968
6969 * Makefile.in (LIBX_BASE): Always define.
6970
6971 * Makefile.in (LIBX_OTHER): Move out of cpp section.
6972
6973 * Makefile.in (LIBXT): Always define.
6974
6975 2010-05-15 Glenn Morris <rgm@gnu.org>
6976
6977 * Makefile.in (OLDXMENU, LIBXMENU, LIBX_OTHER): Always define.
6978
6979 * Makefile.in (FONT_DRIVERS): Remove, replace with $FONT_OBJ.
6980 (obj, SOME_MACHINE_OBJECTS): Use $FONT_OBJ.
6981
6982 2010-05-15 Ken Raeburn <raeburn@raeburn.org>
6983
6984 * lisp.h (XFLOAT_DATA): Use "0?x:x" to generate an rvalue. (Bug#5916)
6985 (LISP_MAKE_RVALUE) [!USE_LISP_UNION_TYPE && !__GNUC__]: Likewise.
6986
6987 * emacs.c (main): Initialize initial-environment and
6988 process-environment before generating from env, not after.
6989
6990 Handle --version reasonably in CANNOT_DUMP configuration.
6991 * emacs.c (emacs_version, emacs_copyright): New string variables.
6992 (Vemacs_version, Vemacs_copyright): New Lisp_Object variables.
6993 (syms_of_emacs): Defvar them, and initialize them from the C
6994 string variables.
6995 (main): If initialization hasn't been done, print initial version
6996 info from the C strings, instead of starting an interactive session.
6997
6998 2010-05-15 Eli Zaretskii <eliz@gnu.org>
6999
7000 * bidi.c (bidi_paragraph_init): Don't leave alone garbage values
7001 of bidi_it->paragraph_dir. Call bidi_initialize if needed.
7002 (bidi_paragraph_init): Remove redundant assertion that we are at
7003 the beginning of a line after call to bidi_find_paragraph_start.
7004
7005 * xdisp.c (Fcurrent_bidi_paragraph_direction): New function.
7006 (syms_of_xdisp): Defsubr it.
7007
7008 * cmds.c (Fforward_char, Fbackward_char): Doc fix.
7009
7010 * Makefile.in: Fix MSDOS-related comments.
7011
7012 2010-05-15 Glenn Morris <rgm@gnu.org>
7013
7014 * Makefile.in (OLDXMENU_TARGET): New, set by configure.
7015 (really-lwlib, really-oldXMenu): Always define.
7016 ($OLDXMENU): Depend on $OLDXMENU_TARGET.
7017
7018 * Makefile.in: Simplify cpp conditional.
7019
7020 * Makefile.in (${ns_appdir}): Simplify using umask.
7021
7022 * Makefile.in (${ns_appdir}): Remove references to CVS-related files.
7023
7024 2010-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
7025
7026 * eval.c (specbind): Remove left-over duplicate test.
7027 Disallow let-binding frame-local vars. Add comment.
7028
7029 2010-05-14 Eli Zaretskii <eliz@gnu.org>
7030
7031 Make the cache of bidi iterator states dynamically allocated.
7032 * bidi.c (bidi_cache_shrink): New function.
7033 (bidi_init_it): Call it.
7034 (bidi_cache_iterator_state): Enlarge the cache if needed.
7035
7036 * bidi.c (bidi_move_to_visually_next): Rename from
7037 bidi_get_next_char_visually. All callers changed.
7038
7039 2010-05-14 Kenichi Handa <handa@m17n.org>
7040
7041 * dispextern.h (struct composition_it): New member reversed_p.
7042
7043 * composite.c (composition_compute_stop_pos): Search backward if
7044 ENDPOS < CHARPOS.
7045 (composition_reseat_it): Handle the case that ENDPOS < CHARPOS.
7046 Set CMP_IT->reversed_p.
7047 (composition_update_it): Pay attention to CMP_IT->reversed_p.
7048
7049 * xdisp.c (set_iterator_to_next):
7050 Call composition_compute_stop_pos with negative ENDPOS if we are
7051 scanning backward. Call composition_compute_stop_pos if scan
7052 direction is changed.
7053 (next_element_from_buffer): Call composition_compute_stop_pos with
7054 negative ENDPOS if we are scanning backward.
7055 (next_element_from_composition): Pay attention to
7056 IT->cmp_it.reversed_p.
7057
7058 2010-05-14 Kenichi Handa <handa@m17n.org>
7059
7060 * font.c (font_range): Return the range for the font found at first.
7061
7062 2010-05-14 Glenn Morris <rgm@gnu.org>
7063
7064 * Makefile.in (ns_appdir, ns_appbindir, ns_appsrc): Always define.
7065
7066 * Makefile.in (mktime, X11, register): Move undefs to configure.
7067
7068 * Makefile.in (MSDOS_OBJ): Default to empty, let msdos scripts set it.
7069 (MSDOS_X_OBJ): New variable.
7070 (MSDOS_SUPPORT_REAL): New constant.
7071 (MSDOS_SUPPORT): Set as a variable, not with cpp.
7072 (obj): Use MSDOS_X_OBJ.
7073 (lisp): Use MSDOS_SUPPORT as a variable.
7074
7075 * Makefile.in (REAL_MOUSE_SUPPORT): New constant.
7076 (GPM_MOUSE_SUPPORT): Now it's a constant.
7077 (MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): Set with configure,
7078 not cpp.
7079
7080 * Makefile.in (@NS_IMPL_GNUSTEP_INC@): Use in place of #ifdef.
7081 (ns_appresdir): Remove, unused.
7082
7083 * Makefile.in (SHELL): Move outside cpp section.
7084
7085 * s/netbsd.h (AMPERSAND_FULL_NAME): Remove (defined in AH_BOTTOM).
7086
7087 2010-05-13 Glenn Morris <rgm@gnu.org>
7088
7089 * Makefile.in (FONT_DRIVERS): Place with other HAVE_X_WINDOWS stuff.
7090 (TOOLTIP_SUPPORT): Place with other HAVE_WINDOW_SYSTEM stuff.
7091
7092 * Makefile.in (FONT_DRIVERS): If HAVE_X_WINDOWS is defined,
7093 HAVE_WINDOW_SYSTEM must be too.
7094
7095 * Makefile.in (WINNT_SUPPORT): Remove, nt build does not use this file.
7096 (lisp): Remove WINNT_SUPPORT.
7097
7098 * Makefile.in (OLDXMENU, LIBXMENU) [!HAVE_MENUS]:
7099 Let configure set these variables (to empty) in this case as well.
7100
7101 * Makefile.in (LD_SWITCH_X_SITE): Define as a variable, not via cpp.
7102 (LIBX_BASE): Use $LD_SWITCH_X_SITE.
7103
7104 * Makefile.in (C_SWITCH_X_SYSTEM, C_SWITCH_X_SITE, LIB_STANDARD)
7105 (LIB_MATH, FONTCONFIG_CFLAGS, FONTCONFIG_LIBS, FREETYPE_CFLAGS)
7106 (FREETYPE_LIBS, LIBOTF_CFLAGS, LIBOTF_LIBS, M17N_FLT_CFLAGS)
7107 (M17N_FLT_LIBS, GNU_OBJC_CFLAGS, GNUSTEP_SYSTEM_LIBRARIES, LIBGPM)
7108 (LIBRESOLV, UNEXEC_OBJ): For clarity, define variables to hold
7109 the values output by configure.
7110 (ALL_CFLAGS, obj, LIBES, temacs${EXEEXT}): Use the above variables.
7111
7112 2010-05-12 Glenn Morris <rgm@gnu.org>
7113
7114 * Makefile.in (YMF_PASS_LDFLAGS, LD, LINKER): Simplify the logic.
7115 (LINKER_WAS_SPECIFIED): Remove.
7116
7117 * Makefile.in (LIB_GCC): Set using configure, not cpp.
7118 (GNULIB_VAR) [!ORDINARY_LINK]: Always set to $LIB_GCC.
7119 * m/arm.h (LIB_GCC) [GNU_LINUX]:
7120 * s/cygwin.h (LIB_GCC):
7121 * s/freebsd.h (LIB_GCC):
7122 * s/gnu-linux.h (LIB_GCC):
7123 * s/msdos.h (LIB_GCC):
7124 * s/netbsd.h (LIB_GCC):
7125 Move to configure.
7126
7127 2010-05-11 Karel Klíč <kklic@redhat.com>
7128
7129 * ftfont.c: Fix incorrect parentheses of #if condition for
7130 definining M17N_FLT_USE_NEW_FEATURE.
7131
7132 2010-05-11 Glenn Morris <rgm@gnu.org>
7133
7134 * Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset.
7135 * s/msdos.h (MSDOS_LIBS_SYSTEM): Remove.
7136
7137 2010-05-10 Eli Zaretskii <eliz@gnu.org>
7138
7139 * xdisp.c (init_iterator): Don't turn on bidi reordering in
7140 unibyte buffers. See
7141 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00263.html.
7142
7143 2010-05-10 Glenn Morris <rgm@gnu.org>
7144
7145 * Makefile.in (LIBS_SYSTEM): Set using configure, not cpp.
7146 (LIBS_SYSTEM) [MSDOS]: Reset with MSDOS_LIBS_SYSTEM.
7147 (LIBES): Use LIBS_SYSTEM as a variable.
7148 * s/msdos.h (LIBS_SYSTEM): Rename to MSDOS_LIBS_SYSTEM. Always define.
7149 * s/aix4-2.h (LIBS_SYSTEM):
7150 * s/freebsd.h (LIBS_SYSTEM):
7151 * s/hpux10-20.h (LIBS_SYSTEM):
7152 * s/sol2-6.h (LIBS_SYSTEM):
7153 * s/unixware.h (LIBS_SYSTEM):
7154 Move to configure.
7155
7156 * s/aix4-2.h (MAIL_USE_LOCKF):
7157 * s/bsd-common.h (MAIL_USE_FLOCK):
7158 * s/darwin.h (MAIL_USE_FLOCK):
7159 * s/gnu-linux.h (MAIL_USE_FLOCK):
7160 * s/irix6-5.h (MAIL_USE_FLOCK):
7161 * s/template.h (MAIL_USE_FLOCK):
7162 Move to configure.
7163
7164 2010-05-08 Chong Yidong <cyd@stupidchicken.com>
7165
7166 * Version 23.2 released.
7167
7168 2010-05-08 Andreas Schwab <schwab@linux-m68k.org>
7169
7170 * composite.c (autocmp_chars): Save point as marker before calling
7171 auto-composition-function (Bug#5984).
7172
7173 * lisp.h (restore_point_unwind): Add prototype.
7174
7175 * fileio.c (restore_point_unwind): Remove static attribute.
7176
7177 2010-05-08 Kenichi Handa <handa@m17n.org>
7178
7179 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
7180 new feature of libotf and m17n-flt.
7181 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
7182 Call OTF_check_features even if no specific feature is given.
7183 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
7184 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
7185 that OUT is NULL. Use OTF_drive_gsub_with_log and
7186 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
7187 OTF_drive_gpos.
7188 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
7189 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
7190 Setup mflt_enable_new_feature and mflt_try_otf.
7191
7192 2010-05-08 Jan Djärv <jan.h.d@swipnet.se>
7193
7194 * xsettings.c (Ftool_bar_get_system_style): Correct comment.
7195
7196 * gtkutil.c (xg_pack_tool_bar): Change show_all to show for handle
7197 box and toolbar (Bug #6139).
7198 (xg_create_tool_bar): Remove comment (Bug #6139).
7199 (xg_make_tool_item): Remove gtk_widget_show_all (Bug #6139).
7200 (xg_show_toolbar_item): Add gtk_widget_show for weventbox (Bug #6139).
7201
7202 2010-05-08 Juanma Barranquero <lekktu@gmail.com>
7203
7204 * makefile.w32-in ($(BLD)/eval.$(O), $(BLD)/w32fns.$(O)):
7205 Update dependencies.
7206
7207 2010-05-08 Eli Zaretskii <eliz@gnu.org>
7208
7209 * fringe.c (update_window_fringes): Set up truncation bitmaps for
7210 R2L lines.
7211
7212 2010-05-08 Glenn Morris <rgm@gnu.org>
7213
7214 * Makefile.in (THIS_IS_MAKEFILE): Remove, unused.
7215
7216 * Makefile.in (LIBS_TERMCAP): Set with configure, not cpp.
7217 (TERMCAP_OBJ): New, set by configure, replacing termcapobj.
7218 (termcapobj): Replace with TERMCAP_OBJ.
7219 (otherobj): Use $TERMCAP_OBJ instead of $termcapobj.
7220 (LIBES): Use LIBS_TERMCAP as a variable.
7221
7222 * s/freebsd.h (osreldate.h): No longer include, since this file
7223 does not use __FreeBSD_version any more.
7224
7225 * s/aix4-2.h (TERMINFO):
7226 * s/cygwin.h (TERMINFO):
7227 * s/darwin.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
7228 * s/freebsd.h (TERMINFO, LIBS_TERMCAP):
7229 * s/gnu-linux.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
7230 * s/gnu.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
7231 * s/hpux10-20.h (TERMINFO, LIBS_TERMCAP):
7232 * s/irix6-5.h (TERMINFO):
7233 * s/netbsd.h (LIBS_TERMCAP):
7234 * s/openbsd.h (TERMINFO, LIBS_TERMCAP):
7235 * s/sol2-6.h (LIBS_TERMCAP) [!TERMINFO]:
7236 * s/usg5-4.h (TERMINFO):
7237 Move to configure.
7238
7239 2010-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
7240
7241 * eval.c (unbind_to): Don't unbind a local binding into the global
7242 binding when the local binding disappeared. Inversely, don't unbind
7243 a global binding into a newly created local binding.
7244 * data.c (set_internal): Make its `buf' arg into a `where' arg so we
7245 can specify the frame to use, when applicable. Adjust callers.
7246
7247 2010-05-07 Vincent Belaïche <vincent.belaiche@gmail.com>
7248 Stefan Monnier <monnier@iro.umontreal.ca>
7249
7250 * floatfns.c (Fisnan, Fcopysign, Ffrexp, Fldexp): New functions.
7251
7252 2010-05-07 Eli Zaretskii <eliz@gnu.org>
7253
7254 * w32fns.c: Include w32.h.
7255 (Fw32_shell_execute): Decode the error message before passing it
7256 to `error'. (Bug#6126)
7257
7258 * msdos.c (dos_set_window_size):
7259 * w16select.c (Fx_selection_exists_p): Use `Fsymbol_value (foo)'
7260 instead of `XSYMBOL (foo)->value'.
7261
7262 2010-05-07 Eli Zaretskii <eliz@gnu.org>
7263
7264 Fix the MS-DOS build, broken by autoconfiscation.
7265
7266 * Makefile.in: Don't use Make-style comments past the "start of
7267 cpp stuff" line.
7268 (MSDOS_OBJ): Remove xmenu.o (it is now defined by XMENU_OBJ).
7269
7270 * s/msdos.h (UNEXEC): Don't define (@unexec@ in Makefile.in is
7271 edited directly by msdos/sed1v2.inp).
7272
7273 2010-05-07 Glenn Morris <rgm@gnu.org>
7274
7275 * Makefile.in (LD_SWITCH_SYSTEM): Set with configure, not cpp.
7276 (LD_SWITCH_SYSTEM_EXTRA): New variable, set by configure.
7277 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM and $LD_SWITCH_SYSTEM_EXTRA,
7278 move out of cpp section.
7279 * s/freebsd.h (LD_SWITCH_SYSTEM):
7280 * s/gnu-linux.h (LD_SWITCH_SYSTEM):
7281 * s/netbsd.h (LD_SWITCH_SYSTEM):
7282 * s/openbsd.h (LD_SWITCH_SYSTEM): Move to configure.in.
7283
7284 2010-05-07 Dan Nicolaescu <dann@ics.uci.edu>
7285
7286 Define LIB_STANDARD and START_FILES using autoconf.
7287 * s/usg5-4.h (LIB_STANDARD):
7288 * s/netbsd.h (START_FILES):
7289 * s/irix6-5.h (LIB_STANDARD):
7290 * s/hpux10-20.h (LIB_STANDARD, START_FILES):
7291 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
7292 * s/freebsd.h (START_FILES):
7293 * s/darwin.h (START_FILES):
7294 * s/cygwin.h (START_FILES):
7295 * s/aix4-2.h (LIB_STANDARD):
7296 * m/ibmrs6000.h (START_FILES): Remove, move logic to configure.in.
7297 * Makefile.in (STARTFILES): Rename to START_FILES, define using
7298 autoconf, not cpp.
7299
7300 2010-05-06 Dan Nicolaescu <dann@ics.uci.edu>
7301
7302 Remove NEED_BSDTTY and NEED_UNISTD_H.
7303 * s/hpux10-20.h (NEED_BSDTTY): Remove.
7304 * s/aix4-2.h (NEED_UNISTD_H): Remove.
7305 * systty.h: Simplify conditionals for including <sys/bsdtty.h>,
7306 <sys/ptyio.h> and <unistd.h>.
7307
7308 * emacs.c (main): Remove NO_DIR_LIBRARY conditional, unused.
7309
7310 * Makefile.in (STARTFILES): Conditionally define to make the usage clear.
7311 * s/gnu.h (START_FILES): Remove empty definition.
7312
7313 2010-05-06 Jan Djärv <jan.h.d@swipnet.se>
7314
7315 * xterm.c (x_draw_image_relief): Move declaration of extra to beginning.
7316
7317 2010-05-06 Glenn Morris <rgm@gnu.org>
7318
7319 * Makefile.in (CPP, LN_S): Remove unused variables.
7320
7321 2010-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
7322
7323 * syntax.c (Fchar_syntax): Check the arg is a character (bug#6080).
7324
7325 2010-05-05 Lawrence Mitchell <wence@gmx.li>
7326
7327 * m/sparc.h: Fix typo in earlier change.
7328
7329 2010-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
7330
7331 Misc tweaks.
7332 * eval.c (Fdefvaralias): Remove unintended nested if.
7333 (internal_condition_case_2, internal_condition_case_n): Use ANSI type.
7334
7335 2010-05-04 Bernhard Herzog <bh@intevation.de> (tiny change)
7336
7337 * xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
7338
7339 2010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
7340
7341 Remove BSD_PGRPS.
7342 * s/bsd-common.h (BSD_PGRPS): Remove undef.
7343 * s/gnu-linux.h (BSD_PGRPS): Remove.
7344 * term.c (dissociate_if_controlling_tty):
7345 * sysdep.c (narrow_foreground_group, widen_foreground_group)
7346 (init_sys_modes, reset_sys_modes):
7347 * emacs.c (main):
7348 * callproc.c (Fcall_process, child_setup): Remove code depending
7349 on BSD_PGRPS.
7350
7351 Remove POSIX_SIGNALS.
7352 * s/usg5-4.h (POSIX_SIGNALS):
7353 * s/netbsd.h (POSIX_SIGNALS):
7354 * s/msdos.h (POSIX_SIGNALS):
7355 * s/ms-w32.h (POSIX_SIGNALS):
7356 * s/hpux11.h (POSIX_SIGNALS):
7357 * s/gnu.h (POSIX_SIGNALS):
7358 * s/gnu-linux.h (POSIX_SIGNALS):
7359 * s/freebsd.h (POSIX_SIGNALS):
7360 * s/darwin.h (POSIX_SIGNALS):
7361 * s/cygwin.h (POSIX_SIGNALS):
7362 * s/aix4-2.h (POSIX_SIGNALS): Remove definition.
7363 * s/unixware.h:
7364 * s/sol2-6.h: Remove comments on POSIX_SIGNALS.
7365 * process.c (create_process):
7366 * syssignal.h:
7367 * sysdep.c (wait_for_termination, init_signals):
7368 * process.c (create_process):
7369 * msdos.c: POSIX_SIGNALS is always defined on all platforms,
7370 remove all code that assumes the contrary.
7371
7372 2010-05-04 Glenn Morris <rgm@gnu.org>
7373
7374 * s/gnu-linux.h (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX as a shell
7375 variable.
7376 * s/netbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
7377 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH.
7378 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
7379 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH instead of
7380 LD_SWITCH_SYSTEM_tmp.
7381 * Makefile.in (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH):
7382 New variables, set by configure.
7383
7384 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
7385 * s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
7386 (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
7387 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
7388 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.
7389
7390 * s/aix4-2.h (C_SWITCH_SYSTEM):
7391 * m/alpha.h (C_SWITCH_MACHINE):
7392 Move to configure.in.
7393 * Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
7394 New variables, set by configure.
7395 (ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
7396 $c_switch_machine and $c_switch_system.
7397
7398 2010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
7399
7400 * s/hpux10-20.h (LIB_STANDARD): New definition.
7401 * Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
7402 on it, not used anymore.
7403
7404 2010-05-03 Chong Yidong <cyd@stupidchicken.com>
7405
7406 * eval.c (internal_condition_case_n): Rename from
7407 internal_condition_case_2.
7408 (internal_condition_case_2): New function.
7409
7410 * xdisp.c (safe_call): Use internal_condition_case_n.
7411
7412 * fileio.c (Fdelete_file, internal_delete_file): New arg FORCE.
7413 (internal_delete_file, Frename_file): Callers changed.
7414
7415 * buffer.c (Fkill_buffer):
7416 * callproc.c (delete_temp_file): Callers changed (Bug#6070).
7417
7418 * lisp.h: Update prototypes.
7419
7420 2010-05-03 Glenn Morris <rgm@gnu.org>
7421
7422 * Makefile.in (LIBX_EXTRA, LIBX_BASE): New variables.
7423 (LIBXT_OTHER, LIBX_OTHER): New, set by configure.
7424 (LIBXT): Set with configure, not cpp.
7425 (LIBX): Remove.
7426 (LIBES): Replace $LIBX with $LIBX_BASE and $LIBX_OTHER.
7427
7428 2010-05-02 Dan Nicolaescu <dann@ics.uci.edu>
7429
7430 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove.
7431 The FreeBSD is not needed, the default works, Solaris version is
7432 not needed, and the remaining case is not supported by configure.
7433
7434 2010-05-02 Jan Djärv <jan.h.d@swipnet.se>
7435
7436 * xsmfns.c (CHDIR_OPT): New define.
7437 (smc_save_yourself_CB): Add CHDIR_OPT to options to use when
7438 restarting emacs.
7439
7440 * xterm.c (x_connection_closed): Call Fkill_emacs instead of
7441 shut_down_emacs.
7442
7443 * emacs.c (USAGE1): Mention --chdir.
7444 (main): Handle --chdir.
7445 (standard_args): Add --chdir.
7446 (fatal_error_signal): Call Fkill_emacs for SIGTERM and SIGHUP (Bug
7447 #5552).
7448
7449 2010-05-01 Dan Nicolaescu <dann@ics.uci.edu>
7450
7451 Remove LD_SWITCH_MACHINE.
7452 * Makefile.in (LD_SWITCH_MACHINE): Remove definition, unused.
7453 (TEMACS_LDFLAGS): Do not use LD_SWITCH_MACHINE.
7454
7455 Clean up IRIX code.
7456 * m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
7457 * s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.
7458
7459 Clean up AIX code.
7460 * m/ibmrs6000.inp: Remove file, unused.
7461 * m/ibmrs6000.h (IBMR2AIX): Remove, unused.
7462 (LD_SWITCH_MACHINE): Rename to LD_SWITCH_SYSTEM_TEMACS, and move
7463 definition ...
7464 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): ... here.
7465
7466 * sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code,
7467 unused.
7468
7469 2010-05-01 Eli Zaretskii <eliz@gnu.org>
7470
7471 Emulate POSIX_SIGNALS on MS-Windows.
7472
7473 * s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
7474 (SIG_SETMASK, SIG_UNBLOCK): Define.
7475
7476 * sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
7477 (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
7478 from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
7479
7480 * w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask):
7481 New stubs.
7482
7483 Miscellaneous fixes of bidi display.
7484
7485 * xdisp.c (find_row_end): New function, refactored from display_line.
7486 (display_line): Use it.
7487 (extend_face_to_end_of_line): In almost-filled rows, extend only
7488 if the row is R2L and not continued.
7489 (display_line): Fix prepending of truncation glyphs to R2L rows.
7490 Preserve overlay and string info in row->end.
7491 (insert_left_trunc_glyphs): Support addition of left truncation
7492 glyphs to R2L rows.
7493 (set_cursor_from_row): Don't place cursor on the vertical border
7494 glyph between adjacent windows. Fix a crash when a display string
7495 is continued to the next line. Don't return zero if cursor was
7496 found by `cursor' property of a display string.
7497 (try_cursor_movement): Don't assume that row->end == (row+1)->start,
7498 test for that explicitly.
7499
7500 2010-05-01 Glenn Morris <rgm@gnu.org>
7501
7502 * Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null,
7503 for clarity.
7504 (OTHER_OBJ): Remove.
7505 (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure.
7506 (otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ.
7507
7508 2010-05-01 Karel Klíč <kklic@redhat.com>
7509
7510 * fileio.c (Ffile_selinux_context): Context functions may return null.
7511
7512 2010-04-30 Dan Nicolaescu <dann@ics.uci.edu>
7513
7514 * s/gnu.h (POSIX_SIGNALS, START_FILES): New definitions.
7515
7516 2010-04-30 Glenn Morris <rgm@gnu.org>
7517
7518 * Makefile.in (vmlimitobj) [!SYSTEM_MALLOC]: New variable. (Bug#6065)
7519 (OTHER_OBJ): Define as a separate variable, for clarity.
7520
7521 2010-04-30 Jan Djärv <jan.h.d@swipnet.se>
7522
7523 * xsettings.c: include limits.h and update file comment.
7524
7525 2010-04-30 Glenn Morris <rgm@gnu.org>
7526
7527 * Makefile.in (OLDXMENU, LIBXMENU) [HAVE_MENUS]:
7528 Set with configure, not cpp.
7529 (LIBW): Remove, replace with $TOOLKIT_LIBW.
7530
7531 * Makefile.in (mallocobj): Remove.
7532 (otherobj): Simplify using @OTHER_OBJ@.
7533
7534 * Makefile.in (dispnew.o, frame.o, fringe.o, font.o, fontset.o)
7535 (keyboard.o, window.o, xdisp.o, xfaces.o, menu.o):
7536 Don't bother making nsgui.h dependency platform-specific.
7537
7538 * Makefile.in (nsfns.o): Remove duplicate nsgui.h dependency.
7539
7540 2010-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
7541
7542 * process.c (read_process_output, exec_sentinel): Don't burp if the
7543 sentinel/filter kills the current buffer (bug#6060).
7544
7545 Fix wrong-docstring problem introduced with hash-consing. (Bug#6008)
7546 * eval.c (Fautoload): Set doc to a unique number rather than to 0.
7547 Remove unused var `args'.
7548 * lisp.h (XSETCARFASTINT, XSETCDRFASTINT): Remove.
7549 (LOADHIST_ATTACH): Wrap with do...while to avoid surprises for callers.
7550 * doc.c (store_function_docstring): Use XSETCAR.
7551
7552 2010-04-28 Glenn Morris <rgm@gnu.org>
7553
7554 * Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
7555 (WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.
7556
7557 * Makefile.in (CYGWIN_OBJ): Set with configure, not cpp.
7558
7559 * Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure.
7560 (MOUSE_SUPPORT) [!HAVE_MOUSE]: Use $GPM_MOUSE_SUPPORT.
7561
7562 * Makefile.in (FONT_OBJ): New, set by configure.
7563 (FONT_DRIVERS): Use $FONT_OBJ.
7564
7565 * Makefile.in (LIBXMU): Set with configure, not cpp.
7566 * s/aix4-2.h (LIBXMU):
7567 * s/hpux10-20.h (LIBXMU):
7568 Remove definition, now set in configure.
7569
7570 * Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.
7571
7572 * m/amdx86-64.h [i386]: Move this test to configure.in.
7573
7574 2010-04-27 Glenn Morris <rgm@gnu.org>
7575
7576 * Makefile.in (LIBXTR6): Set with configure, not cpp.
7577 * s/unixware.h (NEED_LIBW): Remove definition.
7578
7579 * Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
7580 (TOOLKIT_LIBW): New, set by configure.
7581 (@X_TOOLKIT_TYPE@): No longer define it.
7582
7583 * Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
7584 (MOTIF_LIBW): Set with configure, not cpp.
7585 * s/aix4-2.h (LIB_MOTIF):
7586 * s/gnu-linux.h (LIB_MOTIF):
7587 * s/unixware.h (LIB_MOTIF): Move to configure.in.
7588
7589 2010-04-27 Dan Nicolaescu <dann@ics.uci.edu>
7590
7591 Reduce CPP usage.
7592 * Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
7593 (obj): Use autoconf for unexec instead of cpp.
7594 (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE):
7595 Remove definitions and undefs. Inline definitions in the only user.
7596 (ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.
7597
7598 2010-04-27 Glenn Morris <rgm@gnu.org>
7599
7600 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
7601 since the defaults (set by the system file) are fine in most cases.
7602 [GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
7603 * m/ibms390x.h (START_FILES, LIB_STANDARD):
7604 * m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
7605 * m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
7606 Remove definitions, since they are set correctly in s/gnu-linux.h.
7607 * s/freebsd.h (START_FILES, LIB_STANDARD):
7608 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
7609 * s/hpux10-20.h (START_FILES):
7610 * s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
7611 Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
7612
7613 * Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
7614 (MOTIF_LIBW): Use $LIBXP.
7615 (otherobj): Use $WIDGET_OBJ.
7616
7617 2010-04-26 Dan Nicolaescu <dann@ics.uci.edu>
7618
7619 * Makefile.in (LIBS_MACHINE): Remove, unused.
7620
7621 Use autoconf instead of cpp for LIB_MATH.
7622 * s/darwin.h (LIB_MATH): Do not define here, move to configure.
7623 * s/cygwin.h (LIB_MATH): Likewise.
7624 * Makefile.in (LIB_MATH): Do not define with cpp.
7625 (LIBES): Use autoconf for LIB_MATH.
7626
7627 2010-04-26 Kenichi Handa <handa@m17n.org>
7628
7629 * composite.c (Ffind_composition_internal): Fix the return value
7630 for an automatic composition.
7631
7632 2010-04-25 Dan Nicolaescu <dann@ics.uci.edu>
7633
7634 Remove all NO_ARG_ARRAY uses.
7635 * fns.c (concat2, concat3, nconc2):
7636 * eval.c (apply1, call1, call2, call3, call4, call5, call6)
7637 (call7): Remove NO_ARG_ARRAY usage, assume it's always true.
7638 * m/xtensa.h (NO_ARG_ARRAY):
7639 * m/template.h (NO_ARG_ARRAY):
7640 * m/sparc.h (NO_ARG_ARRAY):
7641 * m/sh3.h (NO_ARG_ARRAY):
7642 * m/mips.h (NO_ARG_ARRAY):
7643 * m/macppc.h (NO_ARG_ARRAY):
7644 * m/iris4d.h (NO_ARG_ARRAY):
7645 * m/intel386.h (NO_ARG_ARRAY):
7646 * m/ibms390x.h (NO_ARG_ARRAY):
7647 * m/ibms390.h (NO_ARG_ARRAY):
7648 * m/ibmrs6000.h (NO_ARG_ARRAY):
7649 * m/ia64.h (NO_ARG_ARRAY):
7650 * m/hp800.h (NO_ARG_ARRAY):
7651 * m/arm.h (NO_ARG_ARRAY):
7652 * m/amdx86-64.h (NO_ARG_ARRAY):
7653 * m/alpha.h (NO_ARG_ARRAY): Remove definition.
7654
7655 2010-04-25 Eli Zaretskii <eliz@gnu.org>
7656
7657 * xdisp.c (display_line): Don't assume 2nd call to
7658 get_next_display_element cannot return zero. (Bug#6030)
7659 (iterate_out_of_display_property): New function, body from pop_it.
7660 (pop_it): Use it.
7661
7662 2010-04-24 Glenn Morris <rgm@gnu.org>
7663
7664 * m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]:
7665 For clarity, revert to using fixed /usr/lib rather than $CRT_DIR.
7666 (START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case,
7667 since CRT_DIR defaults to /usr/lib. Suggested by Dan Nicolaescu.
7668
7669 2010-04-24 Eli Zaretskii <eliz@gnu.org>
7670
7671 * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
7672 use `get_next_display_element' and `set_iterator_to_next' to
7673 advance to the next character, when looking for the character that
7674 begins the next row.
7675
7676 * .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
7677 definition of "struct Lisp_Symbol".
7678
7679 2010-04-24 Glenn Morris <rgm@gnu.org>
7680
7681 * Makefile.in (CRT_DIR): New variable, set by configure.
7682 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
7683 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
7684
7685 2010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
7686
7687 * Makefile.in: Remove C_SWITCH_X_MACHINE, unused.
7688
7689 * s/cygwin.h (LIBS_DEBUG): Remove, unused.
7690
7691 Remove redundant flags.
7692 * s/freebsd.h (C_SWITCH_SYSTEM):
7693 * s/hpux10-20.h (C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
7694 * s/netbsd.h (C_SWITCH_SYSTEM):
7695 * s/openbsd.h (LD_SWITCH_X_DEFAULT): Remove, configure takes care
7696 of these.
7697
7698 Simplify m/intel386.h.
7699 * m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
7700 user: ecrt0.c.
7701 (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
7702 (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
7703 the only user: s/unixware.h.
7704 * ecrt0.c: Remove #ifndef static. Inline CRT0_DUMMIES definition
7705 from m/intel386.h.
7706 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE):
7707 Definitions moved here from m/intel386.h.
7708
7709 * m/mips.h: Remove #if 0 code.
7710
7711 2010-04-23 Eli Zaretskii <eliz@gnu.org>
7712
7713 Fix display of composed characters from L2R scripts in bidi buffers.
7714 * xdisp.c (set_iterator_to_next, next_element_from_composition):
7715 After advancing IT past the composition, resync the bidi iterator
7716 with IT's position. (Bug#5977)
7717
7718 2010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
7719
7720 * Makefile.in (LD_SWITCH_MACHINE_TEMACS): Remove, unused.
7721 (TEMACS_LDFLAGS): Don't use LD_SWITCH_SYSTEM_TEMACS.
7722
7723 2010-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
7724
7725 * gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.
7726
7727 2010-04-23 Eli Zaretskii <eliz@gnu.org>
7728
7729 Support `display' text properties and overlay strings in bidi buffers.
7730 * xdisp.c (pop_it): When the stack is popped after displaying
7731 from a string, bidi-iterate to exit from the text portion covered
7732 by the `display' property or overlay. (Bug#5988, bug#5920)
7733
7734 2010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
7735
7736 * m/macppc.h (LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
7737 (LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.
7738
7739 * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
7740 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
7741
7742 Simplify STARTFILES definition.
7743 * s/hpux10-20.h (START_FILES): Explicitly define here instead of
7744 relying on Makefile.in to define it.
7745 * s/cygwin.h (START_FILES): Likewise.
7746 * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
7747
7748 Clean up Solaris code.
7749 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
7750 (LIB_MOTIF): Remove, configure takes care of this.
7751 (NOT_USING_MOTIF): Remove, unused.
7752 * xrdb.c: Remove #if 0-ed #include.
7753 (SYSV): Remove conditional for old SysV.
7754 * sysdep.c (closedir): Remove conditional code for Solaris,
7755 Solaris has closedir.
7756
7757 2010-04-22 Jan Djärv <jan.h.d@swipnet.se>
7758
7759 * xsettings.c (read_and_apply_settings): Check if current_font is
7760 NULL before strcmp (Bug#6001).
7761
7762 2010-04-21 Dan Nicolaescu <dann@ics.uci.edu>
7763
7764 Clean up HP-UX files.
7765 * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
7766 (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
7767 (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
7768 * s/hpux10-20.h: ... to the only user, here.
7769
7770 2010-04-21 Eli Zaretskii <eliz@gnu.org>
7771
7772 * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
7773 use buffer-local values of paragraph-start and paragraph-separate.
7774 <paragraph_start_re, paragraph_separate_re>: Rename from
7775 fallback_paragraph_start_re and fallback_paragraph_separate_re.
7776 (Bug#5992)
7777
7778 2010-04-21 Jan Djärv <jan.h.d@swipnet.se>
7779
7780 * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
7781 current_tool_bar_style are new.
7782 (store_config_changed_event): Rename from store_font_changed_event.
7783 (XSETTINGS_TOOL_BAR_STYLE): New define.
7784 (SEEN_FONT, SEEN_TB_STYLE): New enum values.
7785 (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
7786 HAVE_XFT.
7787 (something_changedCB): store_font_changed_event is now
7788 store_config_changed_event.
7789 (parse_settings): Rename from parse_xft_settings.
7790 Read non-xft xsettings outside #ifdef HAVE_XFT.
7791 (read_settings): Rename from read_xft_settings.
7792 (apply_xft_settings): Take current settings as parameter. Do not
7793 call read_(xft)_settings.
7794 (read_and_apply_settings): New function.
7795 (xft_settings_event): Do non-xft stuff out of HAVE_XFT.
7796 Call read_and_apply_settings if there are settings to be read.
7797 (init_xsettings): Rename from init_xfd_settings.
7798 Call read_and_apply_settings unconditionally.
7799 (xsettings_initialize): Call init_xsettings.
7800 (Ftool_bar_get_system_style): New function.
7801 (syms_of_xsettings): Define Qmonospace_font_name and
7802 Qtool_bar_style. Initialize current_tool_bar_style to nil.
7803 defsubr Stool_bar_get_system_style. Fprovide on
7804 dynamic-setting.
7805 Move misplaced HAVE_GCONF
7806
7807 * xsettings.h (Ftool_bar_get_system_style): Declare.
7808
7809 * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
7810 Qtext, Qboth, Qboth_horiz are new.
7811 (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
7812 Vtool_bar_style, tool_bar_max_label_size.
7813
7814 * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
7815
7816 * keyboard.c: QClabel is new.
7817 (parse_tool_bar_item): Take out QClabel from tool bar items.
7818 Try to construct a label if ther is no QClabel.
7819 (syms_of_keyboard): Intern :label as QClabel.
7820
7821 * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
7822 (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
7823 New.
7824
7825 * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
7826 dynamic-setting.el.
7827
7828 * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
7829 (xg_make_tool_item, xg_show_toolbar_item): New function.
7830 (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
7831 Call xg_make_tool_item to make a tool bar item.
7832 Call xg_show_toolbar_item. Use wtoolbar instead of x->toolbar_widget.
7833
7834 * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
7835 into account for toolbars.
7836
7837 2010-04-21 Jan Djärv <jan.h.d@swipnet.se>
7838
7839 * data.c (make_blv): Declarations before code (Bug#5993).
7840
7841 2010-04-21 Glenn Morris <rgm@gnu.org>
7842
7843 * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
7844 Define using autoconf, not cpp.
7845 (LIBXSM): New variable, set by autoconf.
7846 (LIBXT): Use $LIBXSM.
7847
7848 2010-04-21 Dan Nicolaescu <local_user@dannlt>
7849
7850 Remove NOMULTIPLEJOBS, unused.
7851 * s/template.h (NOMULTIPLEJOBS):
7852 * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
7853
7854 Simplify LD_SWITCH_SYSTEM_TEMACS usage.
7855 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
7856 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
7857 detects -znocombreloc and passes it to the linker
7858 * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
7859
7860 2010-04-21 Glenn Morris <rgm@gnu.org>
7861
7862 * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
7863
7864 2010-04-21 Karel Klíč <kklic@redhat.com>
7865
7866 * Makefile.in (LIBSELINUX_LIBS): New.
7867 (LIBES): Add $LIBSELINUX_LIBS.
7868 * eval.c, lisp.h (call7): New function.
7869 * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
7870 (Ffile_selinux_context, Fset_file_selinux_context):
7871 New functions.
7872 (Fcopy_file): New parameter preserve-selinux-context.
7873 (Frename_file): Preserve selinux context when renaming by copy-file.
7874
7875 2010-04-21 Juanma Barranquero <lekktu@gmail.com>
7876 Eli Zaretskii <eliz@gnu.org>
7877
7878 Don't depend on cm.c or termcap.c on Windows, use stubs.
7879 * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
7880 ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
7881 * w32console.c (current_tty, cost): New vars; lifted from cm.c.
7882 (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
7883 (sys_tputs, sys_tgetstr): New stubs.
7884 * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
7885 (tputs, tgetstr): New; define to sys_*.
7886
7887 2010-04-20 Juanma Barranquero <lekktu@gmail.com>
7888
7889 * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
7890
7891 2010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
7892
7893 * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
7894 Just signal a warning rather than an error when inside a let.
7895 (Fmake_variable_frame_local): Add the same test.
7896
7897 * font.c (syms_of_font): Make the style table vars read-only.
7898
7899 * buffer.h (struct buffer): Remove unused var `direction_reversed'.
7900 * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
7901
7902 * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
7903
7904 2010-04-20 Eli Zaretskii <eliz@gnu.org>
7905
7906 Fix R2L paragraph display on TTY.
7907
7908 * xdisp.c (unproduce_glyphs): New function.
7909 (display_line): Use it when produced glyphs are discarded from R2L
7910 glyph rows.
7911 (append_composite_glyph): In R2L rows, prepend the glyph rather
7912 than appending it.
7913
7914 * term.c (append_composite_glyph): In R2L rows, prepend the glyph
7915 rather than append it. Set up the resolved_level and bidi_type
7916 attributes of the appended glyph.
7917 (produce_special_glyphs): Mirror the backslash continuation
7918 character in R2L lines.
7919
7920 Implement display of R2L paragraphs in GUI sessions.
7921
7922 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
7923 append_stretch_glyph.
7924 (set_cursor_from_row) <cursor_x>: Remove unused variable.
7925 Fix off-by-one error in computing x at end of text in the row.
7926 (append_stretch_glyph): In reversed row, prepend the glyph rather
7927 than append it. Set resolved_level and bidi_type of the glyph.
7928 (extend_face_to_end_of_line): If the row is reversed, prepend a
7929 stretch glyph whose width is such that the rightmost glyph will be
7930 drawn at the right margin of the window. Fix off-by-one error on
7931 TTY frames in testing whether a line needs face extension.
7932 Fix face extension at ZV. If this is the last glyph row, use
7933 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
7934 region face.
7935 (set_cursor_from_row, display_line):
7936 Use MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
7937 row->continuation_lines_width.
7938 (next_element_from_buffer): Don't call bidi_paragraph_init if we
7939 are at ZV. Fixes a crash when reseated to ZV by
7940 try_window_reusing_current_matrix.
7941 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
7942 which happens with R2L glyph rows. Fixes a crash when inserting a
7943 character at end of an R2L line.
7944 (set_cursor_from_row): Don't be fooled by truncated rows: don't
7945 treat them as having zero-width characters. Improve comments.
7946 Don't reverse pos_before and pos_after for reversed glyph rows.
7947 Set cursor.x to negative value when the cursor might be on the
7948 left fringe.
7949 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
7950 left fringe, not the right one.
7951 (notice_overwritten_cursor, draw_phys_cursor_glyph)
7952 (erase_phys_cursor): For reversed cursor_row, support cursor on
7953 the left fringe.
7954
7955 * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
7956 of continuation indicators on the fringes.
7957 (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
7958 left fringe.
7959
7960 * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
7961 draw cursor on the left fringe.
7962
7963 * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
7964 cursor on the left fringe.
7965
7966 * dispnew.c (update_text_area): Handle reversed desired rows when
7967 the cursor is on the left fringe.
7968 (set_window_cursor_after_update): Limit cursor's hpos by -1 from
7969 below, not by 0, for when the cursor is on the left fringe.
7970
7971 2010-04-20 Jan Djärv <jan.h.d@swipnet.se>
7972
7973 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
7974 widget is a scrollbar.
7975
7976 2010-04-20 Kenichi Handa <handa@m17n.org>
7977
7978 * charset.c (char_charset): Consider Vcharset_non_preferred_head
7979 only when the arg CHARSET_LIST is nil.
7980
7981 2010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
7982
7983 Make variable forwarding explicit rather the using special values.
7984 Basically, this makes the structure of buffer-local values and object
7985 forwarding explicit in the type of Lisp_Symbols rather than use
7986 special Lisp_Objects for that. This tends to lead to slightly more
7987 verbose code, but is more C-like, simpler, and makes it easier to make
7988 sure we handled all cases, among other things by letting the compiler
7989 help us check it.
7990 * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
7991 Removing forwarding objects.
7992 (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
7993 (struct Lisp_Symbol): Make the various forms of variable-forwarding
7994 explicit rather than hiding them inside Lisp_Object "values".
7995 (XFWDTYPE): New macro.
7996 (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
7997 (XBUFFER_LOCAL_VALUE): Remove.
7998 (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
7999 (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
8000 (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
8001 (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
8002 (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
8003 Remove the Lisp_Misc_* header.
8004 (struct Lisp_Buffer_Local_Value): Redefine.
8005 (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
8006 (struct Lisp_Misc_Any): Add filler to get the right size.
8007 (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
8008 Lisp_Intfwd.
8009 (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
8010 (DEFVAR_KBOARD): Allocate a forwarding object.
8011 * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
8012 (let_shadows_global_binding_p): New function.
8013 (union Lisp_Val_Fwd): New type.
8014 (make_blv): New function.
8015 (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
8016 (store_symval_forwarding, swap_in_global_binding, Fboundp)
8017 (swap_in_symval_forwarding, find_symbol_value, Fset)
8018 (let_shadows_buffer_binding_p, set_internal, default_value)
8019 (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
8020 (Fkill_local_variable, Fmake_variable_frame_local)
8021 (Flocal_variable_p, Flocal_variable_if_set_p)
8022 (Fvariable_binding_locus):
8023 * xdisp.c (select_frame_for_redisplay):
8024 * lread.c (Fintern, Funintern, init_obarray, defvar_int)
8025 (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
8026 * frame.c (store_frame_param):
8027 * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
8028 * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
8029 value structure.
8030 * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
8031 (clone_per_buffer_values): Only adjust markers into the current buffer.
8032 (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
8033 (Fbuffer_local_value, set_buffer_internal_1)
8034 (swap_out_buffer_local_variables):
8035 Adapt to the new symbol value structure.
8036 (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
8037 (defvar_per_buffer): Take a new arg for the fwd object.
8038 (buffer_lisp_local_variables): Return a proper alist (different fix
8039 for bug#4138).
8040 * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
8041 (Fgarbage_collect): Don't handle buffer_defaults specially.
8042 (mark_object): Handle new symbol value structure rather than the old
8043 special Lisp_Misc_* objects.
8044 (gc_sweep) <symbols>: Free also the buffer-local-value objects.
8045 * term.c (set_tty_color_mode):
8046 * bidi.c (bidi_initialize): Don't access the ->value field directly.
8047 * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
8048 a buffer_local_flags.
8049 * print.c (print_object): Get rid of impossible forwarding objects.
8050
8051 2010-04-19 Eli Zaretskii <eliz@gnu.org>
8052
8053 * bidi.c (bidi_get_type, bidi_get_category)
8054 (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
8055 (bidi_type_of_next_char, bidi_level_of_next_char):
8056 Declare static. Use `INLINE' rather than `inline'.
8057
8058 2010-04-19 Juanma Barranquero <lekktu@gmail.com>
8059
8060 * dired.c (Ffile_attributes): Fix typo in docstring.
8061
8062 2010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
8063
8064 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
8065 NSInteger (Bug#5811).
8066
8067 2010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8068
8069 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
8070 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
8071
8072 2010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8073
8074 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
8075
8076 2010-04-19 Chong Yidong <cyd@stupidchicken.com>
8077
8078 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
8079 terminal frames (Bug#5837).
8080
8081 2010-04-19 Eli Zaretskii <eliz@gnu.org>
8082
8083 * .gdbinit (xsubchartable): New command.
8084
8085 2010-04-19 Eli Zaretskii <eliz@gnu.org>
8086
8087 * xdisp.c (display_line): Don't write beyond the last glyph row in
8088 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
8089 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
8090 and
8091 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
8092
8093 2010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
8094
8095 * alloc.c (Fpurecopy): Hash-cons if requested.
8096 (syms_of_alloc): Update purify-flag docstring.
8097
8098 2010-04-18 Jan Djärv <jan.h.d@swipnet.se>
8099
8100 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
8101 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
8102
8103 2010-04-17 Eli Zaretskii <eliz@gnu.org>
8104
8105 Fix a crash when an NSM character is inserted at BEGV.
8106
8107 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
8108 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
8109 NEUTRAL_B or UNKNOWN_BT.
8110
8111 2010-04-16 Eli Zaretskii <eliz@gnu.org>
8112
8113 * xdisp.c (set_cursor_from_row): Don't consider possibility of
8114 other rows with cursor unless they are different from this row and
8115 this row is part of a continued line. (Bug#5943)
8116
8117 2010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
8118
8119 * s/freebsd.h: Restore osreldate.h include.
8120 Suggested by Naohiro Aota.
8121
8122 2010-04-16 Jan Djärv <jan.h.d@swipnet.se>
8123
8124 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
8125
8126 2010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
8127
8128 * s/cygwin.h: Avoid linking against static libgcc.
8129
8130 2010-04-15 Juri Linkov <juri@jurta.org>
8131
8132 * window.c: Add Qscroll_command.
8133 Remove Vscroll_preserve_screen_position_commands.
8134 (window_scroll_pixel_based, window_scroll_line_based): Check the
8135 `scroll-command' property on the last command instead of searching
8136 the last command in Vscroll_preserve_screen_position_commands.
8137 (syms_of_window): Initialize and staticpro `Qscroll_command'.
8138 Put Qscroll_command property on Qscroll_up and Qscroll_down.
8139 (scroll-preserve-screen-position): Doc fix.
8140 (Vscroll_preserve_screen_position_commands): Remove variable.
8141
8142 2010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
8143
8144 * xdisp.c (message): Do not use NO_ARG_ARRAY.
8145
8146 2010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
8147
8148 Reduce cpp use in Makefile.in.
8149 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
8150 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
8151 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
8152 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
8153 (CRT0_COMPILE): Remove, inline it in the only user.
8154
8155 2010-04-14 Juri Linkov <juri@jurta.org>
8156
8157 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
8158 `scroll-up-command' and `M-v' from `scroll-down' to
8159 `scroll-down-command'.
8160
8161 2010-04-14 Juri Linkov <juri@jurta.org>
8162
8163 * window.c (Vscroll_preserve_screen_position_commands): New variable
8164 with the default value as the list of Qscroll_down and Qscroll_up.
8165 (window_scroll_pixel_based, window_scroll_line_based): Search the
8166 last command in the list Vscroll_preserve_screen_position_commands
8167 instead of comparing with Qscroll_up and Qscroll_down.
8168
8169 2010-04-13 Jan Djärv <jan.h.d@swipnet.se>
8170
8171 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
8172 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
8173 does that.
8174
8175 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
8176 to zero.
8177
8178 2010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
8179
8180 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
8181
8182 Try to solve the problem of spurious EOF chars in long lines of text
8183 sent to interactive subprocesses.
8184 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
8185 (system_process_attributes): Remove unused var `ttotal'.
8186 * process.c (send_process): Don't bother breaking long line with EOF
8187 chars when talking to ttys any more.
8188 (wait_reading_process_output): Output a warning when called in such
8189 a way that it could block without being interruptible.
8190
8191 Try to detect file modification within the same second.
8192 * buffer.h (struct buffer): New field modtime_size.
8193 * buffer.c (reset_buffer): Initialize it.
8194 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
8195 (Fverify_visited_file_modtime): Check it.
8196 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
8197 (Fset_visited_file_modtime): Set (or clear) it.
8198
8199 2010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
8200
8201 * process.c (status_notify): Remove unused var `ro'.
8202
8203 2010-04-12 Jan Djärv <jan.h.d@swipnet.se>
8204
8205 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
8206 more than one visual (Bug#5938).
8207
8208 2010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
8209
8210 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
8211 Undefine.
8212
8213 2010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
8214
8215 Remove C_SWITCH_SYSTEM_TEMACS.
8216 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
8217 (malloc, realloc, free): Use emacs, not temacs for conditional
8218 definition.
8219
8220 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
8221 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
8222
8223 Use autoconf, not cpp for some variables.
8224 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
8225 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
8226 (ALL_CFLAGS): Use them as make variables.
8227 (really-lwlib, really-oldXMenu): Do not pass them.
8228
8229 2010-04-11 Jan Djärv <jan.h.d@swipnet.se>
8230
8231 * xmenu.c (apply_systemfont_to_dialog): New.
8232 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
8233
8234 2010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
8235
8236 * process.c (exec_sentinel): Preserve current-buffer.
8237
8238 * process.c (read_process_output): Move the save-current-buffer to
8239 apply to both the filter and the non-filter branches.
8240
8241 2010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
8242
8243 * s/msdos.h (UNEXEC): New definition.
8244
8245 2010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8246
8247 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
8248 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
8249
8250 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
8251 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
8252 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
8253 TRY_WINDOW_CHECK_MARGINS.
8254
8255 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
8256 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
8257 width only when it is for padding.
8258
8259 2010-04-09 Jan Djärv <jan.h.d@swipnet.se>
8260
8261 * xfns.c (Fx_show_tip): Call try_window in a loop until
8262 fonts_changed_p is zero (Bug#2423).
8263
8264 2010-04-08 Eli Zaretskii <eliz@gnu.org>
8265
8266 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
8267 the end of TEXT_AREA. (Bug#5856)
8268
8269 2010-04-08 Jan Djärv <jan.h.d@swipnet.se>
8270
8271 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
8272 HAVE_GCONF.
8273
8274 2010-04-08 Eli Zaretskii <eliz@gnu.org>
8275
8276 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
8277 prev.orig_type, for resolving type of NSM. (Bug#5858)
8278
8279 2010-04-08 Jan Djärv <jan.h.d@swipnet.se>
8280
8281 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
8282 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
8283 in current_font.
8284 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
8285 (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
8286 New functions.
8287 (syms_of_xsettings): Initialize current_font.
8288 defsubr Sfont_get_system_normal_font.
8289
8290 * xsettings.h (Ffont_get_system_normal_font)
8291 (xsettings_get_system_normal_font): Declare.
8292
8293 * xfns.c (extern xlwmenu_default_font): Remove.
8294 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
8295 to xlwmenu.c.
8296
8297 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
8298 menu items in UTF-8.
8299
8300 * xmenu.c: include xsettings.h and xlwmenu.h if USE_LUCID.
8301 (apply_systemfont_to_menu): New function.
8302 (set_frame_menubar, create_and_show_popup_menu):
8303 Call apply_systemfont_to_menu.
8304
8305 2010-04-07 Jan Djärv <jan.h.d@swipnet.se>
8306
8307 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
8308 FRAME_LINE_TO_PIXEL_Y.
8309
8310 * xterm.c (x_set_window_size_1): Don't add border_width/height to
8311 pixelwidth/height.
8312
8313 2010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
8314
8315 Simplify code for HP machines.
8316 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
8317 for GNU_LINUX, not needed.
8318 (UNEXEC, NEED_BSDTTY): Move definitions...
8319 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
8320
8321 * m/iris4d.h (UNEXEC): Move definition ...
8322 * s/irix6-5.h (UNEXEC): ... here.
8323
8324 2010-04-04 Jan Djärv <jan.h.d@swipnet.se>
8325
8326 * xfns.c (set_machine_and_pid_properties): New function.
8327 (Fx_create_frame): Call set_machine_and_pid_properties.
8328
8329 2010-04-03 Eli Zaretskii <eliz@gnu.org>
8330
8331 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char):
8332 Check bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
8333 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
8334
8335 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
8336 in this function. (Bug#5703)
8337
8338 2010-04-03 Chong Yidong <cyd@stupidchicken.com>
8339
8340 * nsterm.h: Fix last change.
8341
8342 2010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
8343
8344 * m/intel386.h (NO_REMAP): Move definition ...
8345 * s/msdos.h (NO_REMAP): ... here.
8346
8347 * m/vax.h (CRT0_DUMMIES): Remove, unused.
8348
8349 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
8350 used on those platforms.
8351
8352 2010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
8353
8354 Remove extern errno declarations.
8355 * xterm.c:
8356 * xrdb.c:
8357 * w32term.c:
8358 * unexec.c:
8359 * unexaix.c:
8360 * sysdep.c:
8361 * process.c:
8362 * lread.c:
8363 * keyboard.c:
8364 * floatfns.c:
8365 * filelock.c:
8366 * fileio.c:
8367 * emacs.c (main):
8368 * ecrt0.c:
8369 * dispnew.c:
8370 * callproc.c:
8371 * buffer.c: Remove errno extern declarations.
8372 * s/netbsd.h (NEED_ERRNO): Remove.
8373
8374 2010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
8375
8376 Remove all uses of LIBX11_SYSTEM.
8377 * Makefile.in (LIBX11_SYSTEM): Remove.
8378 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
8379 instead.
8380
8381 2010-04-01 Eli Zaretskii <eliz@gnu.org>
8382
8383 Remove support for DJGPP v1.x (bug#5813).
8384
8385 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
8386 * s/msdos.h:
8387 * unexec.c (make_hdr, copy_text_and_data):
8388 * sysdep.c (wait_for_termination, sys_subshell):
8389 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
8390 (IT_set_terminal_modes, __write, _rename, gethostname)
8391 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
8392 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
8393 the value of __DJGPP__.
8394 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
8395 compatibility code.
8396 * lread.c:
8397 * gmalloc.c (memalign):
8398 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
8399 * emacs.c (main):
8400 * dosfns.c (init_dosfns):
8401 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
8402
8403 2010-04-01 Eli Zaretskii <eliz@gnu.org>
8404
8405 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
8406 string with `cursor' property comes from an `after-string'
8407 overlay. (Bug#5816)
8408
8409 2010-04-01 Glenn Morris <rgm@gnu.org>
8410
8411 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
8412 Define as Makefile variables.
8413 (LIBX): Use above variables rather than directly using autoconf.
8414
8415 2010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
8416
8417 Clean up BSD_SYSTEM use.
8418 * xterm.c:
8419 * process.c:
8420 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
8421 for including <sys/ioctl.h>.
8422 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
8423 code is only used for MSDOS.
8424
8425 2010-03-31 Juri Linkov <juri@jurta.org>
8426
8427 * image.c: Add `Qextension_data'.
8428 (syms_of_image): Initialize and staticpro `Qextension_data'.
8429 (Fimage_metadata): Rename from `Fimage_extension_data'.
8430 (gif_load): Put GIF extension data to the property
8431 `Qextension_data'.
8432
8433 2010-03-31 Chong Yidong <cyd@stupidchicken.com>
8434
8435 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
8436 * nsterm.h: Fix prototype.
8437
8438 2010-03-31 Eli Zaretskii <eliz@gnu.org>
8439
8440 * xdisp.c (highlight_trailing_whitespace): Support highlight of
8441 trailing whitespace in right-to-left rows.
8442
8443 2010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
8444
8445 Get rid of the direct_output optimizations.
8446 * keyboard.c (nonundocount): Remove extern declaration.
8447 (command_loop_1): Remove brittle optimisation for cheap and
8448 common operations.
8449 * xdisp.c (redisplay_internal): Don't bother checking
8450 redisplay_performed_directly_p any more.
8451 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
8452 any more.
8453 * dispnew.c (redisplay_performed_directly_p)
8454 (direct_output_for_insert, direct_output_forward_char):
8455 * dispextern.h (redisplay_performed_directly_p)
8456 (direct_output_for_insert, direct_output_forward_char): Remove.
8457 * cmds.c (nonundocount): Make it static.
8458
8459 2010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
8460
8461 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
8462
8463 2010-03-31 Jan Djärv <jan.h.d@swipnet.se>
8464
8465 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
8466 invisible (Bug#5766).
8467
8468 2010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
8469
8470 * xdisp.c (x_consider_frame_title, update_window_cursor):
8471 Remove HAVE_NS conditionals.
8472 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
8473
8474 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
8475 filename for the title.
8476 (ns_set_doc_edited): Do nothing if the selected window is a
8477 minibuffer window.
8478
8479 * nsterm.h: Add prototypes for ns_set_name_as_filename and
8480 ns_set_doc_edited.
8481
8482 * nsterm.m: Remove unneeded prototype.
8483
8484 2010-03-31 Glenn Morris <rgm@gnu.org>
8485
8486 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
8487 in the DOC file. (Bug#5336)
8488
8489 2010-03-31 Chong Yidong <cyd@stupidchicken.com>
8490
8491 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
8492
8493 2010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
8494
8495 * window.c (keys_of_window): Remove redundant/overridden bindings.
8496
8497 2010-03-30 Eli Zaretskii <eliz@gnu.org>
8498
8499 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
8500 Restore original behavior when the iterator is not bidi_p.
8501
8502 2010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
8503
8504 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
8505
8506 2010-03-30 Eli Zaretskii <eliz@gnu.org>
8507
8508 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
8509 are outside the range of cached character positions.
8510
8511 2010-03-30 Juanma Barranquero <lekktu@gmail.com>
8512
8513 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
8514
8515 2010-03-30 Eli Zaretskii <eliz@gnu.org>
8516
8517 Initial support for bidirectional editing.
8518
8519 * Makefile.in (obj): Include bidi.o.
8520 (bidi.o): New target.
8521
8522 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
8523 ($(BLD)/bidi.$(O)): New target.
8524
8525 * bidi.c: New file.
8526
8527 * buffer.h (struct buffer): New members bidi_display_reordering
8528 and bidi_paragraph_direction.
8529
8530 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
8531 and bidi_paragraph_direction.
8532 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
8533 and bidi-paragraph-direction.
8534 (Fbuffer_swap_text): Swap the values of
8535 bidi_display_reordering and bidi_paragraph_direction.
8536
8537 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
8538 (bidi_type_t, bidi_dir_t): New types.
8539 (bidi_saved_info, bidi_stack, bidi_it): New structures.
8540 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
8541 prev_stop, base_level_stop, and eol_pos.
8542 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
8543 (IT_STACK_SIZE): Enlarge to 5.
8544 (struct glyph_row): New member reversed_p.
8545 <string_buffer_position>: Update prototype.
8546 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
8547 glyph_row if bidi_it.paragraph_dir == R2L.
8548 (struct glyph): New members resolved_level and bidi_type.
8549
8550 * dispnew.c (direct_output_forward_char): Give up if we need bidi
8551 processing or buffer's direction is right-to-left.
8552 (prepare_desired_row): Preserve the reversed_p flag.
8553 (row_equal_p): Compare the reversed_p attributes as well.
8554
8555 * xdisp.c (init_iterator): Initialize it->bidi_p.
8556 Call bidi_init_it and set it->paragraph_embedding from the current
8557 buffer's value of bidi_paragraph_direction.
8558 (reseat_1): Initialize bidi_it.first_elt.
8559 (set_iterator_to_next, next_element_from_buffer): Use the value of
8560 paragraph_embedding to determine the paragraph direction.
8561 (set_iterator_to_next): Under bidi reordering, call
8562 bidi_get_next_char_visually. Call bidi_paragraph_init if the
8563 new_paragraph flag is set in the bidi iterator.
8564 (next_element_from_buffer): If bidi_it.first_elt is set,
8565 initialize paragraph direction and find the first character to
8566 display in the visual order. If reseated to a middle of a line,
8567 prime the bidi iterator starting at the line's beginning.
8568 Handle the situation where we overstepped stop_charpos due to
8569 non-linearity of the bidi iteration. Likewise for when we back up
8570 beyond the previous stop_charpos. When moving across stop_charpos,
8571 record it in prev_stop.
8572 (display_line): Set row->end and it->start for the next row to the
8573 next character in logical order. Always extend reversed_p rows to
8574 the end of line, even if they end at ZV. Copy the reversed_p flag
8575 to the next glyph row. Keep calling set_cursor_from_row for
8576 bidi-reordered rows even if we already have a possible candidate
8577 for cursor position. Set row_end after all the row's glyphs have
8578 been produced, by looping over the glyphs. Record the position
8579 after EOL in it->eol_pos, and use it to set end_pos of the last
8580 row produced for a continued line.
8581 <Qright_to_left, Qleft_to_right>: New variables.
8582 (syms_of_xdisp): Initialize and staticpro them.
8583 (string_buffer_position_lim): New function.
8584 (string_buffer_position): Most of code moved to
8585 string_buffer_position_lim. Last argument and return value are
8586 now EMACS_INT; all callers changed.
8587 (set_cursor_from_row): Rewritten to support bidirectional text and
8588 reversed glyph rows.
8589 (text_outside_line_unchanged_p, try_window_id):
8590 Disable optimizations if we are reordering bidirectional text and the
8591 paragraph direction can be affected by the change.
8592 (append_glyph, append_composite_glyph)
8593 (produce_image_glyph, append_stretch_glyph): Set the
8594 resolved_level and bidi_type members of each glyph.
8595 (append_glyph): If the glyph row is reversed, prepend the glyph
8596 rather than appending it.
8597 (handle_stop_backwards): New function.
8598 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
8599 (reseat): call handle_stop_backwards to recompute prev_stop and
8600 base_level_stop for the new position.
8601 (handle_invisible_prop): Under bidi iteration, skip invisible text
8602 using bidi_get_next_char_visually. If we are `reseat'ed, init the
8603 paragraph direction. Update IT->prev_stop after skipping
8604 invisible text.
8605 (move_it_in_display_line_to): New variables prev_method
8606 and prev_pos. Compare for strict equality in
8607 BUFFER_POS_REACHED_P.
8608 (try_cursor_movement): Examine all the candidate rows that occlude
8609 point, to return the best match. If rows are bidi-reordered
8610 and point moved backwards, back up to the row that is not a
8611 continuation line, and start looking for a suitable row from
8612 there.
8613
8614 * term.c (append_glyph): Reverse glyphs by pre-pending them,
8615 rather than appending, if the glyph_row's reversed_p flag is set.
8616 Set the resolved_level and bidi_type members of each glyph.
8617
8618 * .gdbinit (pbiditype): New command.
8619 (pgx): Use it to display bidi level and type of the glyph.
8620 (pitx): Display some bidi information about the iterator.
8621 (prowlims, pmtxrows): New commands.
8622
8623 2010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
8624
8625 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
8626 * s/usg5-4.h (LIBS_DEBUG):
8627 * s/irix6-5.h (C_DEBUG_SWITCH):
8628 * s/gnu-linux.h (LIBS_DEBUG):
8629 * s/darwin.h (LIBS_DEBUG):
8630 * s/bsd-common.h (LIBS_DEBUG):
8631 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
8632 * m/iris4d.h (LIBS_DEBUG):
8633 * m/hp800.h (LIBS_DEBUG): Remove definitions.
8634
8635 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
8636 (LIBS_DEBUG): Remove definition.
8637
8638 2010-03-27 Chong Yidong <cyd@stupidchicken.com>
8639
8640 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
8641 Windows.
8642
8643 2010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8644
8645 * process.c (Fmake_network_process): Don't call turn_on_atimers around
8646 `connect' (Bug#5723).
8647
8648 2010-03-25 Helmut Eller <eller.helmut@gmail.com>
8649
8650 * process.c (Fmake_network_process): Call `select' for interrupted
8651 `connect' rather than creating new socket (Bug#5173).
8652
8653 2010-03-24 Jan Djärv <jan.h.d@swipnet.se>
8654
8655 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
8656
8657 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
8658
8659 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
8660
8661 2010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8662
8663 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
8664 XLoadQueryFont.
8665
8666 2010-03-24 Kenichi Handa <handa@m17n.org>
8667
8668 * coding.c (decode_coding_ccl): Fix previous change for the
8669 multibyte case.
8670 (encode_coding_ccl): Don't setup ccl program here. Fix for the
8671 case that the output buffer is fullfilled.
8672 (encode_coding): Setup ccl program here.
8673
8674 2010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
8675
8676 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
8677
8678 Simplify LIBS_MACHINE definitions.
8679 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
8680 * m/iris4d.h (LIBS_MACHINE): Likewise.
8681 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
8682 * s/aix4-2.h (LIBS_SYSTEM): ... here.
8683 * s/netbsd.h: Remove commented out code.
8684
8685 2010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
8686
8687 Remove dead code dealing with POSIX_SIGNALS.
8688 * atimer.c (set_alarm): Remove dead code, all USG systems define
8689 POSIX_SIGNALS.
8690 * data.c (arith_error): Likewise.
8691 * keyboard.c (input_available_signal, handle_user_signal)
8692 (interrupt_signal): Likewise.
8693 * process.c (sigchld_handler): Likewise.
8694 (create_process): Remove if 0 code. Remove HPUX conditional when
8695 !defined (POSIX_SIGNALS), it cannot be true.
8696 * syssignal.h: Remove USG5_4 and USG conditionals when
8697 !POSIX_SIGNALS, they cannot be true.
8698
8699 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
8700 NO_SOCK_SIGIO, not used anymore.
8701
8702 2010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
8703
8704 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
8705 support vax on BSDs.
8706
8707 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
8708 * s/aix4-2.h (ORDINARY_LINK): ... here.
8709
8710 2010-03-21 Andreas Schwab <schwab@linux-m68k.org>
8711
8712 * Makefile.in (abs_builddir): Define.
8713 (bootstrap_exe): Use it.
8714 (VPATH): Use $(srcdir) instead of @srcdir@.
8715
8716 2010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
8717
8718 * Makefile.in (bootstrap_exe): Use an absolute name.
8719
8720 2010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
8721
8722 Remove support for old GNU/Linux using libc version 5.
8723 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
8724 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
8725
8726 Consolidate redundant definitions in s/bsd-common.h.
8727 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
8728 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
8729 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
8730 doing it in all files that include this one.
8731 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
8732 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
8733 (LDAV_SYMBOL, KERNEL_FILE): Remove.
8734 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
8735 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
8736 (LDAV_SYMBOL, KERNEL_FILE): Remove.
8737 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
8738 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
8739 (LDAV_SYMBOL, KERNEL_FILE): Remove.
8740
8741 Consolidate redundant definitions.
8742 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
8743 it's undefined in all files that include this one.
8744 (POSIX_SIGNALS): Define here instead of doing it in all files that
8745 include this one.
8746 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
8747 (POSIX_SIGNALS): Do not define.
8748 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
8749 (POSIX_SIGNALS): Do not define.
8750 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
8751 (POSIX_SIGNALS): Do not define.
8752
8753 Remove support for old UNIX System V systems.
8754 * s/unixware.h: Add the contents of s/usg-5-4-2.h.
8755 * s/usg-5-4-2.h: Remove.
8756
8757 Remove support for Solaris on PPC and for old versions.
8758 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
8759 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
8760 that cancel each other.
8761 * s/sol2-3.h:
8762 * s/sol2-4.h:
8763 * s/sol2-5.h: Remove.
8764 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
8765 (NO_REMAP): Remove, unused.
8766 (UNEXEC): Move definition ...
8767 * s/aix4-2.h (UNEXEC): ... here.
8768
8769 * s/openbsd.h: Remove support for non-ELF and for systems that do
8770 not support shared libraries.
8771 * s/netbsd.h:
8772 * s/freebsd.h: Likewise.
8773
8774 2010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
8775
8776 Remove non-working support for lynxos 3.0.
8777 * s/lynxos.h: Remove file.
8778
8779 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
8780 COFF_BSD_SYMBOLS, nothing defines it anymore.
8781
8782 2010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
8783
8784 Remove obsolete uses of HAVE_SHM.
8785 * emacs.c (standard_args):
8786 (Fdump_emacs):
8787 (syms_of_emacs): Remove code depending on HAVE_SHM.
8788
8789 * alloc.c: Remove HAVE_SHM dependent definition.
8790
8791 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
8792
8793 2010-03-18 Glenn Morris <rgm@gnu.org>
8794
8795 * emacs.c (USAGE4): Hard-code bug address.
8796 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
8797 (bug_reporting_address): Remove.
8798 (main): Don't call bug_reporting_address.
8799
8800 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
8801 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
8802
8803 2010-03-15 Chong Yidong <cyd@stupidchicken.com>
8804
8805 * xfns.c (Fx_create_frame):
8806 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
8807 on left.
8808
8809 2010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
8810
8811 * editfns.c (Fformat): Account for string precision when computing
8812 field width (Bug#5710).
8813
8814 2010-03-12 Chong Yidong <cyd@stupidchicken.com>
8815
8816 * xfns.c (Fx_create_frame): Set default to Qright.
8817
8818 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
8819 all window systems.
8820
8821 2010-03-12 Eli Zaretskii <eliz@gnu.org>
8822
8823 These changes remove termcap.c from the build on Posix platforms.
8824 * Makefile.in (termcapobj): Move termcap.o from here...
8825 (MSDOS_OBJ): ...to here.
8826 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
8827 now identical to when LIBS_TERMCAP is defined.
8828
8829 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
8830
8831 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
8832
8833 * config.in: Regenerated. (See top-level ChangeLog.)
8834
8835 2010-03-10 Chong Yidong <cyd@stupidchicken.com>
8836
8837 * Branch for 23.2.
8838
8839 2010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
8840
8841 Cleanup setup of gl_state in various parts of the code.
8842 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
8843 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
8844 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
8845 (skip_chars):
8846 * regex.c (regex_compile): Use it.
8847 (re_compile_pattern): Don't set gl_state.current_syntax_table since
8848 it's now set in regex_compile when/if we need it.
8849
8850 2010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
8851
8852 Make it possible to C-g in a tight bytecode loop again (bug#5680).
8853 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
8854 (QUIT): Use it to consolidate code and remove redundancy.
8855 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
8856
8857 * regex.c (regex_compile): Setup gl_state as well.
8858
8859 * syntax.c (skip_chars): Setup gl_state (bug#3823).
8860 (in_classes): Use CONSP before XCAR/XCDR.
8861
8862 2010-03-03 Chong Yidong <cyd@stupidchicken.com>
8863
8864 * keymap.c (Fwhere_is_internal): Use Fequal to compare
8865 definitions, so that keyboard macros are correctly handled
8866 (Bug#5481).
8867
8868 2010-03-02 Eli Zaretskii <eliz@gnu.org>
8869
8870 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
8871 text that could be relocated inside the call to emacs_mule_char.
8872 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
8873 (CODING_DECODE_CHAR): Add a comment describing its purpose.
8874
8875 2010-03-02 Kenichi Handa <handa@m17n.org>
8876
8877 * character.c (parse_str_as_multibyte): Fix handling of the
8878 multibyte form of raw-bytes.
8879 (str_as_multibyte): Likewise.
8880
8881 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
8882 form of raw-bytes.
8883
8884 2010-02-28 Chong Yidong <cyd@stupidchicken.com>
8885
8886 * charset.c (load_charset_map_from_file)
8887 (load_charset_map_from_vector): Zero out allocated
8888 charset_map_entries before using them.
8889
8890 2010-02-27 Andreas Schwab <schwab@linux-m68k.org>
8891
8892 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
8893
8894 2010-02-27 Chong Yidong <cyd@stupidchicken.com>
8895
8896 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
8897 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
8898
8899 2010-02-26 Kenichi Handa <handa@m17n.org>
8900
8901 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
8902
8903 * xdisp.c (reseat_to_string): Fix previous change.
8904
8905 2010-02-26 David Reitter <david.reitter@gmail.com>
8906
8907 * nsfont.m (nsfont_draw): ns_antialias_text should be a
8908 Lisp_Object (Bug#4736).
8909
8910 2010-02-25 Kenichi Handa <handa@m17n.org>
8911
8912 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
8913
8914 2010-02-24 Jan Djärv <jan.h.d@swipnet.se>
8915
8916 * xterm.c (XTflash): Move declarations before statements.
8917
8918 * gtkutil.c (xg_get_gdk_display): Remove (unused).
8919 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
8920 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
8921 (xg_create_tool_bar): Remove unused variables.
8922 (x_wm_set_size_hint): Move declarations before statements.
8923 (xg_create_frame_widgets): Remove variable grav.
8924
8925 2010-02-21 Chong Yidong <cyd@stupidchicken.com>
8926
8927 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
8928
8929 2010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
8930
8931 * term.c (fatal): Add a final \n if needed (bug#5596).
8932
8933 2010-02-18 Chong Yidong <cyd@stupidchicken.com>
8934
8935 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
8936
8937 2010-02-18 Glenn Morris <rgm@gnu.org>
8938
8939 * callint.c (Finteractive): Doc fix.
8940
8941 2010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
8942
8943 * coding.c (record_conversion_result):
8944 Handle CODING_RESULT_INSUFFICIENT_DST.
8945 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
8946 memory allocation error.
8947
8948 2010-02-17 Kenichi Handa <handa@m17n.org>
8949
8950 * coding.c (decode_coding_ccl): Don't setup ccl program here.
8951 Fix for the case that the output buffer is fullfilled.
8952 (decode_coding): Setup ccl program here. Keep looping when the
8953 decoder stopped because the output buffer is
8954 fullfilled (bug#5534).
8955
8956 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
8957
8958 2010-02-13 Jan Djärv <jan.h.d@swipnet.se>
8959
8960 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
8961 bug #5571.
8962 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
8963 overdrawn.
8964
8965 2010-02-10 Jan Djärv <jan.h.d@swipnet.se>
8966
8967 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
8968 doing_interact here.
8969 (ice_connection_closed): New function.
8970 (x_session_check_input, smc_die_CB, ice_io_error_handler)
8971 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
8972 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
8973 returns I/O error.
8974 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
8975 bug #5512.
8976
8977 2010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
8978
8979 * nsfont.m (nsfont_open): The system's value for the font descent
8980 is negative, so round it down to avoid clipping.
8981
8982 2010-02-06 Chong Yidong <cyd@stupidchicken.com>
8983
8984 * charset.c (load_charset_map_from_file)
8985 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
8986 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
8987
8988 2010-02-05 Chong Yidong <cyd@stupidchicken.com>
8989
8990 * charset.c (load_charset_map_from_file): Allocate large
8991 charset_map_entries structure on the heap rather than the stack.
8992 (Bug#5526).
8993
8994 2010-01-31 Kenichi Handa <handa@m17n.org>
8995
8996 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
8997 size in NAME is invalid, return -1 (Bug#5396).
8998
8999 2010-01-31 Chong Yidong <cyd@stupidchicken.com>
9000
9001 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
9002 <deactivated@gmail.com> (Bug#3605).
9003
9004 2010-01-31 David De La Harpe Golden <david@harpegolden.net>
9005
9006 * fileio.c (Frename_file): Correctly rename symlinks to
9007 directories (Bug#5496).
9008
9009 2010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
9010
9011 * nsterm.m (ns_ring_bell): Handle visible bell like X.
9012
9013 2010-01-30 Andreas Schwab <schwab@linux-m68k.org>
9014
9015 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
9016
9017 2010-01-29 Chong Yidong <cyd@stupidchicken.com>
9018
9019 * frame.c (DEFAULT_ROWS): Change default to 35.
9020
9021 * xfns.c (x_default_font_parameter): Change default XFT font to
9022 monospace-10 (Bug#3643).
9023
9024 2010-01-29 Eli Zaretskii <eliz@gnu.org>
9025
9026 * w32inevt.c (key_event): Remove unnecessary comparison of
9027 event->uChar.AsciiChar with 128.
9028
9029 2010-01-28 Chong Yidong <cyd@stupidchicken.com>
9030
9031 * fileio.c (Frename_file): Fix last change (Bug#5487).
9032
9033 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
9034
9035 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
9036
9037 2010-01-28 Jan Djärv <jan.h.d@swipnet.se>
9038
9039 * xfns.c (Fx_create_frame): Remove window size matching code from
9040 2010-01-15.
9041 (x_get_current_desktop, x_get_desktop_workarea): Remove.
9042
9043 2010-01-27 Jason Rumney <jasonr@gnu.org>
9044
9045 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
9046 (key_event): Use unicode for characters 128 and higher (Bug#4567).
9047
9048 2010-01-27 Kenichi Handa <handa@m17n.org>
9049
9050 * regex.c (analyse_first): Fix setting of fastmap for unibyte
9051 pattern string (Bug#4209).
9052
9053 2010-01-27 David De La Harpe Golden <david@harpegolden.net>
9054
9055 * fileio.c (Frename_file): Call copy-directory and
9056 delete-directory for directories, in order to handle cross-device
9057 renaming (Bug#3353).
9058
9059 2010-01-25 Jan Djärv <jan.h.d@swipnet.se>
9060
9061 * xfns.c (Fx_create_frame): If frame height is too big, try
9062 sizes 24 and 10. Bug #3643.
9063
9064 2010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
9065
9066 Try and fix bug#788, hopefully for real this time.
9067 * keymap.c (shadow_lookup): Add `remap' arg.
9068 (describe_map, describe_vector): Update calls to shadow_lookup.
9069 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
9070 `remapped' so this flag is applicable to `sequence'. Be careful to
9071 perform remapping during shadow_lookup check of remapped_sequences.
9072
9073 2010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
9074
9075 * image.c (png_load): Use png_sig_cmp instead of the obsolete
9076 png_check_sig, which has been removed in libpng 1.4.
9077
9078 2010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
9079
9080 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
9081 lacks this header file).
9082
9083 2010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9084
9085 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
9086 as in Emacs 22.
9087
9088 2010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9089
9090 * lisp.h (make_pure_string): String pointer arg now points to const.
9091
9092 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
9093 args now point to const.
9094
9095 2010-01-22 Eli Zaretskii <eliz@gnu.org>
9096
9097 * lread.c (Fload): Don't treat files without .elc extension as
9098 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
9099 them. (bug#5303)
9100
9101 2010-01-20 Kenichi Handa <handa@m17n.org>
9102
9103 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
9104 treat the source as actual byte sequence.
9105
9106 2010-01-19 Alan Mackenzie <acm@muc.de>
9107
9108 Fix spurious before-change-functions invocation from (insert ?\n).
9109 * textprop.c (set_text_properties): Rename parameter
9110 `signal_after_change_p' to `coherent_change_p', and make the
9111 invocation of `modify_region' conditional on it.
9112
9113 2010-01-19 Jan Djärv <jan.h.d@swipnet.se>
9114
9115 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
9116 for debug purpose.
9117 (syms_of_xsettings): Declare xft-settings.
9118
9119 2010-01-18 Chong Yidong <cyd@stupidchicken.com>
9120
9121 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
9122
9123 2010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
9124
9125 * xterm.c (event_handler_gdk): Block input (Bug#5037).
9126
9127 2010-01-16 Chong Yidong <cyd@stupidchicken.com>
9128
9129 * emacs.c (standard_args): Adjust arg priorities to reflect how
9130 they are processed in startup.el.
9131
9132 2010-01-16 Andreas Schwab <schwab@linux-m68k.org>
9133
9134 * Makefile.in (lisp, shortlisp): Update.
9135
9136 2010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
9137
9138 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
9139 code, link the new kboard into all_kboard before running Lisp code,
9140 and protect the new terminal with GCPRO (Bug#5365).
9141 (x_term_init): Remove unused var `atom'.
9142 (x_delete_display, x_delete_terminal): Remove unused var `i'.
9143
9144 2010-01-15 Jan Djärv <jan.h.d@swipnet.se>
9145
9146 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
9147 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
9148 to find out usable size of the desktop. Don't make frames larger than
9149 this. Bug #3643.
9150
9151 2010-01-15 Kenichi Handa <handa@m17n.org>
9152
9153 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
9154
9155 2010-01-15 Chong Yidong <cyd@stupidchicken.com>
9156
9157 * nsterm.m (Qnone): Define.
9158
9159 * nsfns.m (Qnone): Move definition to nsterm.m.
9160
9161 2010-01-14 Kenichi Handa <handa@m17n.org>
9162
9163 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
9164 systems.
9165
9166 2010-01-14 Kenichi Handa <handa@m17n.org>
9167
9168 Make auto-composition work on all buffers even if they are
9169 fundamental mode.
9170
9171 * composite.c (Vauto_composition_mode): New variable.
9172 (composition_compute_stop_pos): Check Vauto_composition_mode
9173 instead of Vauto_composition_function.
9174 (composition_adjust_point, Ffind_composition_internal): Likewise.
9175 (syms_of_composite): Declare Lisp variable
9176 "auto-composition-mode" here.
9177
9178 2010-01-13 Chong Yidong <cyd@stupidchicken.com>
9179
9180 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
9181 during call to vendor-specific-keysyms (Bug#5365).
9182
9183 2010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9184
9185 * keyboard.c (input_available_signal) [SYNC_INPUT]:
9186 Call SIGNAL_THREAD_CHECK (Bug#5333).
9187
9188 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
9189 Call SIGNAL_THREAD_CHECK.
9190
9191 2010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
9192
9193 Try to fix bug#5314. This is probably not the final word, tho.
9194 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
9195 recent-auto-save-p as a side-effect.
9196 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
9197 * buffer.c (Fkill_buffer, reset_buffer):
9198 * editfns.c (Fsubst_char_in_region):
9199 * fileio.c (Finsert_file_contents, Fdo_auto_save)
9200 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
9201
9202 2010-01-13 Kenichi Handa <handa@m17n.org>
9203
9204 Display buffer name, etc. in mode line by composing correctly.
9205
9206 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
9207 STRING is not nil.
9208 (display_mode_element): Adjust for the change of
9209 decode_mode_spec and display_line.
9210 (decode_mode_spec): Change arg MULTIBYTE to STRING.
9211 (display_string): Handle the case that STRING is non-null and
9212 LISP_STRING is not nil.
9213
9214 * xterm.c (x_draw_composite_glyph_string_foreground):
9215 Pay attention to s->face->overstrike.
9216
9217 * composite.c (composition_reseat_it): Don't check PT if STRING is
9218 non nil.
9219
9220 2010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9221
9222 * keyboard.c (read_char): Don't apply previous change when current
9223 buffer is unchanged by command execution.
9224
9225 2010-01-12 Jan Djärv <jan.h.d@swipnet.se>
9226
9227 * keyboard.c (read_char): Return after executing from special map.
9228
9229 2010-01-12 Glenn Morris <rgm@gnu.org>
9230
9231 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
9232 bug-gnu-emacs rather than emacs-pretest-bug.
9233
9234 2010-01-11 Chong Yidong <cyd@stupidchicken.com>
9235
9236 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
9237 initializing the Lisp variables that depend on them.
9238
9239 2010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9240
9241 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
9242 Clear areas that will not be updated after change of menu bar lines.
9243 Clear the menu bar window's current matrix when the window gets empty.
9244
9245 2010-01-09 Chong Yidong <cyd@stupidchicken.com>
9246
9247 * intervals.h, textprop.c (extend_property_ranges): Return value
9248 and args changed. Discard properties that begin at or after the
9249 new end (Bug#5306).
9250
9251 * editfns.c (Fformat): Caller changed.
9252
9253 * nsterm.m (ns_set_default_prefs): Delete function.
9254 (syms_of_nsterm): Initialize ns_command_modifier,
9255 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
9256 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
9257
9258 * xdisp.c (pos_visible_p): Check for invisible text at the correct
9259 position (Bug#4040).
9260
9261 2010-01-09 Eli Zaretskii <eliz@gnu.org>
9262
9263 * editfns.c (Ffloat_time): Doc fix.
9264
9265 2010-01-09 Jan Djärv <jan.h.d@swipnet.se>
9266
9267 * xfns.c (Fx_create_frame): Don't create frame larger than display
9268 by default bug#3643.
9269
9270 2010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9271
9272 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
9273 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
9274 windows above internal border.
9275
9276 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
9277 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
9278 windows above internal border.
9279
9280 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
9281 tool bar windows specially.
9282
9283 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
9284
9285 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
9286 specially.
9287 (XTflash): Take account of menu bar height.
9288
9289 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
9290 specially.
9291
9292 2010-01-08 Jan Djärv <jan.h.d@swipnet.se>
9293
9294 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
9295 also be true before we can return early (bug #5339).
9296
9297 2010-01-06 David Reitter <david.reitter@gmail.com>
9298
9299 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
9300 (Fns_display_usable_bounds): Rewrite, computing bounds properly
9301 (Bug#3233).
9302
9303 2010-01-06 Jan Djärv <jan.h.d@swipnet.se>
9304
9305 * font.c (font_open_entity): Enable chache and call cached_font_ok
9306 for the driver if defined.
9307 (QCuser_spec): New symbol.
9308 (font_spec_from_name): Save name as user-spec.
9309 (font_load_for_lface): Keep user-spec instead of name.
9310 (font_open_by_name): Save name as user-spec.
9311 (syms_of_font): Initialize QCuser_spec.
9312 (font_clear_prop): Clear name if it exists in font (bug#5157).
9313
9314 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
9315 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
9316 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
9317
9318 * font.h (struct font_driver): Add cached_font_ok.
9319
9320 * xterm.c (x_clear_frame): Queue draw for scroll bars.
9321
9322 2010-01-05 Jan Djärv <jan.h.d@swipnet.se>
9323
9324 * xterm.c (x_new_font): Move code for setting rows/cols before
9325 resizing ...
9326 (x_set_window_size): ... to here. Bug #2568.
9327
9328 * gtkutil.c (xg_clear_under_internal_border): New function.
9329 (xg_frame_resized, xg_frame_set_char_size):
9330 Call xg_clear_under_internal_border.
9331 (xg_update_scrollbar_pos): Clear under old scroll bar position.
9332
9333 2010-01-05 Chong Yidong <cyd@stupidchicken.com>
9334
9335 * keyboard.c (read_key_sequence): Catch keyboard switch after
9336 making a new tty frame (Bug#5095).
9337
9338 2010-01-05 Kenichi Handa <handa@m17n.org>
9339
9340 * fontset.c (fontset_find_font): Fix getting the frame pointer.
9341
9342 2010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
9343
9344 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
9345 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
9346 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
9347
9348 2010-01-03 Michael Albinus <michael.albinus@gmx.de>
9349
9350 * dbusbind.c (xd_add_watch): Improve debug message.
9351 (xd_remove_watch): Improve debug message. If DATA is the session
9352 bus, unset D-Bus session environment.
9353 (Fdbus_init_bus): Pass the bus as argument to
9354 dbus_connection_set_watch_functions. (Bug#5283)
9355
9356 2010-01-01 Chong Yidong <cyd@stupidchicken.com>
9357
9358 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
9359
9360 * lread.c (syms_of_lread): Make it clearer that these are the
9361 names of loaded files (Bug#5068).
9362
9363 * eval.c (run_hook_with_args): Handle the case where the global
9364 value has the obsolete single-function form (Bug#5026).
9365
9366 2009-12-27 Chong Yidong <cyd@stupidchicken.com>
9367
9368 * minibuf.c (Fall_completions): Minor optimization.
9369
9370 2009-12-26 Eli Zaretskii <eliz@gnu.org>
9371
9372 * .gdbinit (pgx): Fix display of composite glyphs.
9373 Display cmp.from and cmp.to as well.
9374 (pitx): Fix last change.
9375
9376 2009-12-25 Kenichi Handa <handa@m17n.org>
9377
9378 * composite.h (composition_adjust_point): Update prototype.
9379
9380 * composite.c (composition_reseat_it): Don't make a composition
9381 spanning over point.
9382 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
9383 composable characters.
9384 (composition_adjust_point): New arg NEW_PT. Callers changed.
9385
9386 * keyboard.c (command_loop_1): Force redisplay if the last point
9387 was within a composition.
9388 (adjust_point_for_property): Don't adjust point for automatic
9389 composition when called after buffer modification.
9390
9391 2009-12-19 Eli Zaretskii <eliz@gnu.org>
9392
9393 * .gdbinit (pitx): Don't use enum names, use their values.
9394 Remove reference to non-existing value GET_FROM_COMPOSITION.
9395 (pgx): Don't use enum names, use their values.
9396 (pitmethod): New helper command.
9397 (pitx): Use it to display iteration method.
9398 (pgrowit): New command.
9399
9400 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
9401
9402 Update dependencies in Makefile.in.
9403
9404 * Makefile.in (alloc.o): Depend on termhooks.h.
9405 (atimer.o): Depend on blockinput.h.
9406 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
9407 and frame.h.
9408 (callint.o): Depend on systime.h, coding.h, and composite.h.
9409 (callproc.o): Depend on buffer.h.
9410 (casefiddle.o): Don't depend on charset.h.
9411 (casetab.o): Depend on character.h.
9412 (ccl.o): Depend on composite.h.
9413 (chartab.o): Depend on ccl.h.
9414 (cm.o): Depend on dispextern.h.
9415 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
9416 (coding.o): Don't depend on $(INTERVALS_H).
9417 (composite.o): Don't depend on dispextern.h explicitly (it's in
9418 $(INTERVALS_H)). Depend on ccl.h.
9419 (data.o): Depend on systime.h, coding.h, composite.h,
9420 dispextern.h, font.h, and ccl.h.
9421 (dired.o): Depend on composite.h.
9422 (dispnew.o): Depend on coding.h. Don't depend explicitly on
9423 composite.h (it's in $(INTERVALS_H)).
9424 (doc.o): Depend on systime.h, coding.h, and composite.h.
9425 (editfns.o): Don't depend explicitly on dispextern.h.
9426 (emacs.o): Depend on frame.h and coding.h.
9427 (eval.o): Depend on coding.h, composite.h, and xterm.h.
9428 (fileio.o): Depend on frame.h and commands.h. Don't depend
9429 explicitly on dispextern.h.
9430 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
9431 composite.h.
9432 (fns.o): Don't depend on termhooks.h.
9433 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
9434 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
9435 coding.h, $(INTERVALS_H), window.h, xterm.h.
9436 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
9437 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
9438 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
9439 fontset.h, ccl.h, and ftfont.h.
9440 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
9441 (gtkutil.o): Depend on dispextern.h and composite.h.
9442 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
9443 termhooks.h, and ccl.h.
9444 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
9445 (intervals.o): Depend on systime.h and coding.h.
9446 (keyboard.o): Depend on composite.h and coding.h.
9447 (keymap.o): Depend on coding.h and frame.h.
9448 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
9449 (macros.o): Depend on systime.h, coding.h, and composite.h.
9450 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
9451 and atimer.h.
9452 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
9453 dispextern.h explicitly.
9454 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
9455 Don't depend explicitly on dispextern.h and composite.h.
9456 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
9457 (regex.o): Don't depend on charset.h.
9458 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
9459 (search.o): Don't depend explicitly on composite.h.
9460 (sound.o): Depend on atimer.h and systime.h.
9461 (syntax.o): Don't depend explicitly on composite.h.
9462 (sysdep.o): Depend on coding.h and composite.h.
9463 (term.o): Depend on xterm.h and buffer.h.
9464 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
9465 (textprop.o): Don't depend on dispextern.h explicitly.
9466 (undo.o): Depend on dispextern.h.
9467 (window.o): Depend on coding.h and termhooks.h. Don't depend on
9468 dispextern.h and composite.h explicitly.
9469 (xdisp.o): Depend on ccl.h.
9470 (xfaces.o): Depend on coding.h and ccl.h.
9471 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
9472 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
9473 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
9474 ftfont.h.
9475 (xgselect.o): New dependency.
9476 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
9477 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
9478 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
9479 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
9480 (xsmfns.o): Depend on frame.h and dispextern.h.
9481 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
9482 sysselect.h.
9483
9484 2009-12-19 Andreas Schwab <schwab@linux-m68k.org>
9485
9486 * font.c (Fclear_font_cache): Pass correct cache argument to
9487 font_clear_cache.
9488
9489 2009-12-16 Andreas Schwab <schwab@linux-m68k.org>
9490
9491 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
9492 twice.
9493
9494 2009-12-15 Chong Yidong <cyd@stupidchicken.com>
9495
9496 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
9497 calling file-remote-p. Reported by Jim Meyering.
9498
9499 2009-12-15 Michael Albinus <michael.albinus@gmx.de>
9500
9501 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
9502 avoid compiler warnings. (Bug #5217)
9503
9504 2009-12-14 Kenichi Handa <handa@m17n.org>
9505
9506 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
9507 in 8-bit encoding.
9508
9509 2009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
9510
9511 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
9512 tooltip windows.
9513
9514 2009-12-13 Jan Djärv <jan.h.d@swipnet.se>
9515
9516 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
9517 Xatom_net_window_type.
9518
9519 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
9520 Xatom_net_window_type.
9521
9522 * xterm.c (my_log_handler): New function.
9523 (x_term_init): Set my_log_handler as log handler during gtk_init
9524 so we can filter out buggy messages. (Bug #5120).
9525
9526 * xterm.c (xg_scroll_callback): Parameter list changed,
9527 use parameter GtkScrollType to determine scroll/line/page.
9528 Only allow dragging if a button < 4 is grabbed (bug #5177).
9529 (xg_end_scroll_callback): New function.
9530 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
9531 xg_create_scroll_bar.
9532
9533 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
9534 (scroll_end_callback): Remove.
9535 (xg_create_scroll_bar): Add parameter end_callback, bind it to
9536 button-release-event. Replace value-changed event with change-value,
9537 bug #5177.
9538 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
9539 bug #5177.
9540
9541 * gtkutil.h (XG_LAST_SB_DATA): Remove.
9542 (xg_create_scroll_bar): Add GCallback end_callback.
9543
9544 * xftfont.c (QClcdfilter): New variable.
9545 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
9546 (syms_of_xftfont): Initialize QClcdfilter.
9547
9548 2009-12-12 Jan Djärv <jan.h.d@swipnet.se>
9549
9550 * xsettings.c (struct xsettings): Add member seen.
9551 (parse_xft_settings): Update member seen with what we have read.
9552 Return non-zero if Xft-settings have been parsed, 0 otherwise.
9553 (apply_xft_settings): Only update Xft settings with what member seen
9554 indicates as new.
9555
9556 2009-12-12 Eli Zaretskii <eliz@gnu.org>
9557
9558 * dispextern.h (struct text_pos): Use EMACS_INT.
9559 (struct glyph): Use EMACS_INT for charpos.
9560 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
9561 region_beg_charpos, region_end_charpos,
9562 redisplay_end_trigger_charpos, and also for
9563 iterator_stack_entry.end_charpos and
9564 iterator_stack_entry.stop_charpos.
9565
9566 2009-12-12 Jan Djärv <jan.h.d@swipnet.se>
9567
9568 * gtkutil.c (scroll_end_callback): New function (bug #5177).
9569 (xg_create_scroll_bar): Call scroll_end_callback on button release
9570 event (bug #5177).
9571 (xg_event_is_for_scrollbar): != replaced with ==.
9572
9573 2009-12-12 Kenichi Handa <handa@m17n.org>
9574
9575 * ftfont.c (struct ftfont_info): New member matrix.
9576 (ftfont_open): Setup xftfont_info->matrix.
9577 (MFLTFontFT): New member matrix.
9578 (FLOOR, CEIL, ROUND): New macros.
9579 (ftfont_get_metrics): Handle matrix transformation.
9580 (ftfont_shape_by_flt): New arg matrix. Callers changed.
9581
9582 * xftfont.c (struct xftfont_info): New member matrix.
9583 (xftfont_open): Setup xftfont_info->matrix.
9584
9585 2009-12-10 Kenichi Handa <handa@m17n.org>
9586
9587 * xdisp.c (append_space_for_newline): Consider face-remapping.
9588
9589 2009-12-09 Andreas Schwab <schwab@linux-m68k.org>
9590
9591 * xsettings.c: Include "keyboard.h".
9592
9593 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
9594
9595 Fix implicit function declarations.
9596 * cmds.c: Include "frame.h".
9597 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
9598 * frame.h: Move declaration of delete_frame outside of
9599 HAVE_WINDOW_SYSTEM.
9600
9601 2009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
9602
9603 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
9604
9605 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
9606 GTK builds.
9607
9608 2009-12-07 Andreas Schwab <schwab@linux-m68k.org>
9609
9610 * unexelf.c (unexec): Don't search for .data twice.
9611
9612 2009-12-05 Chong Yidong <cyd@stupidchicken.com>
9613
9614 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
9615 if push failed.
9616 (handle_line_prefix): Set avoid_cursor_p here. Check return value
9617 of push_display_prop (Bug#5000).
9618
9619 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
9620 value of font_list_entities (Bug#5085).
9621
9622 2009-12-04 Juanma Barranquero <lekktu@gmail.com>
9623
9624 Fix `string-to-number' to deal consistently with integers and floats.
9625 * lread.c (isfloat_string): New argument ignore_trailing to accept all
9626 trailing characters, not just whitespace.
9627 (read1): Pass new arg 0 to keep old behavior.
9628 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
9629 trailing chars, as it is already done for integers. Doc fixes.
9630 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
9631
9632 2009-12-04 Eli Zaretskii <eliz@gnu.org>
9633
9634 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
9635 Delete unused enumeration value.
9636
9637 2009-12-03 Eli Zaretskii <eliz@gnu.org>
9638
9639 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
9640
9641 2009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
9642
9643 * process.c (Fmake_network_process): Fix up the tests for
9644 "connectionless socket", so they DTRT for seqpacket sockets as well.
9645
9646 2009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
9647
9648 * process.c (Qseqpacket): New symbol.
9649 (HAVE_SEQPACKET): New macro.
9650 (Fmake_network_process): Accept new :type `seqpacket'.
9651 (init_process): Add `seqpacket' feature when applicable.
9652 (syms_of_process): Initialize Qseqpacket.
9653
9654 2009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9655
9656 * font.c (font_load_for_lface, font_open_by_name): Don't store name
9657 if entity is Qnil.
9658
9659 2009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
9660
9661 * print.c (print_preprocess): Preprocess the key_and_value table of
9662 hashtables, even tho they're "hidden" (bug#5082).
9663
9664 2009-11-29 Jan Djärv <jan.h.d@swipnet.se>
9665
9666 * frame.c (frame_make_pointer_invisible)
9667 (frame_make_pointer_visible): Declare f before statements.
9668
9669 2009-11-28 Eli Zaretskii <eliz@gnu.org>
9670
9671 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
9672 omitted dependencies on lisp.h.
9673
9674 2009-11-27 Jan Djärv <jan.h.d@swipnet.se>
9675
9676 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
9677 is NULL.
9678
9679 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
9680
9681 * frame.c (frame_make_pointer_invisible)
9682 (frame_make_pointer_visible): Just return if there isn't any selected
9683 frame.
9684
9685 * search.c (simple_search): Remove warning by making *p const.
9686
9687 2009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
9688
9689 * xdisp.c (power_letter): Remove duplicate const.
9690
9691 2009-11-25 Jan Djärv <jan.h.d@swipnet.se>
9692
9693 * term.c (delete_tty): Remove check for last terminal (bug#4970).
9694
9695 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
9696 defaults (bug #5025).
9697
9698 2009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
9699
9700 * insdel.c (adjust_markers_for_delete): Move it in the
9701 right direction! (bug#4803)
9702
9703 2009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9704
9705 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
9706
9707 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
9708
9709 2009-11-24 Glenn Morris <rgm@gnu.org>
9710
9711 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
9712
9713 2009-11-23 Jan Djärv <jan.h.d@swipnet.se>
9714
9715 * Makefile.in: Must create deps for ecrt0.o in its rule.
9716
9717 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
9718 because that is what Gtk+ font dialog understands.
9719
9720 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
9721 of Fcopy_sequence.
9722 (font_open_by_name): Put name given into QCname for font-object returned.
9723
9724 * frame.c (x_set_font): Save original font name as frame parameter
9725 font-parameter.
9726
9727 * xsettings.c (set_default_xft_settings): New function.
9728 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
9729 is found.
9730
9731 2009-11-22 Andreas Schwab <schwab@linux-m68k.org>
9732
9733 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
9734 searching backwards through multibyte buffer.
9735
9736 2009-11-21 Jan Djärv <jan.h.d@swipnet.se>
9737
9738 * xterm.c: #include xgselect.h.
9739 (x_initialize): Call xgselect_initialize.
9740
9741 * xsettings.c (something_changedCB): C++ comments => C comments.
9742 (init_gconf): Do not deal with any GLib file descriptors, xg_select
9743 does that now.
9744
9745 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
9746 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
9747 (scroll_bar_button_cb): Remove.
9748 (create_menus): C++ comments => C comments. Don't bind grab-notify
9749 event.
9750 (xg_create_scroll_bar): Don't bind button-press-event and
9751 button-release-event.
9752
9753 * process.c: Include xgselect.h if defined (USE_GTK) ||
9754 defined (HAVE_GCONF).
9755 (wait_reading_process_output): Call xg_select for the same condition.
9756
9757 * xgselect.c (xg_select): New function to better integrate with
9758 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
9759
9760 * xgselect.h: New file, declare xg_select, xgselect_initialize.
9761
9762 * Makefile.in (XOBJ): Add xgselect.o.
9763
9764 2009-11-21 Andreas Schwab <schwab@linux-m68k.org>
9765
9766 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
9767 Remove ignored second argument. All callers changed.
9768 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
9769 (RE_STRING_CHAR_AND_LENGTH): Likewise.
9770 * xdisp.c (string_char_and_length): Likewise.
9771
9772 2009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
9773
9774 * xterm.c (x_new_font):
9775 * print.c (print_object):
9776 * cmds.c (Fself_insert_command): Move declarations before statements.
9777
9778 2009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
9779
9780 * s/cygwin.h: Remove unneeded linker flags.
9781
9782 2009-11-20 Jan Djärv <jan.h.d@swipnet.se>
9783
9784 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
9785
9786 * xsettings.h: Declare xsettings_get_system_font.
9787
9788 * xsettings.c (xsettings_get_system_font): New function.
9789 (init_gconf): No use initiating gconf unless we have Xft also.
9790 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
9791 HAVE_GCONF.
9792
9793 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
9794 add a blank entry so it doesn't collapse into nothing.
9795
9796 2009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
9797
9798 * lread.c (Funintern): Comment out last change.
9799
9800 2009-11-19 Richard Stallman <rms@gnu.org>
9801
9802 * lread.c (Funintern): Error if symbol is t or nil.
9803
9804 2009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
9805
9806 * insdel.c (make_gap_larger): Don't make as many assumptions about the
9807 representation of Lisp integers.
9808 Reported by MJ Chan <mjchan.inbox@gmail.com>.
9809
9810 2009-11-17 Andreas Schwab <schwab@linux-m68k.org>
9811
9812 * lisp.h: Remove declaration of Ffont_get_system_font.
9813 * xfns.c: Move include of "xsettings.h".
9814 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
9815
9816 2009-11-17 Jan Djärv <jan.h.d@swipnet.se>
9817
9818 * xsettings.c (something_changedCB, Ffont_get_system_font):
9819 Check use_system_font.
9820 (syms_of_xsettings): DEFVAR font-use-system-font.
9821
9822 2009-11-17 Andreas Schwab <schwab@linux-m68k.org>
9823
9824 * xfns.c (x_default_font_parameter): Remove dead assignment.
9825
9826 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
9827
9828 2009-11-17 Jan Djärv <jan.h.d@swipnet.se>
9829
9830 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
9831 not have FC_LCD_*. #define them if not there.
9832
9833 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
9834
9835 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
9836
9837 * xterm.c (handle_one_xevent): Call xft_settings_event for
9838 ClientMessage, PropertyNotify and DestroyNotify.
9839 (x_term_init): If we have XFT, get DPI from Xft.dpi.
9840 Call xsettings_initialize.
9841
9842 * xftfont.c (xftfont_fix_match): New function.
9843 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
9844 Call xftfont_fix_match after XftFontMatch.
9845
9846 * xfont.c (xfont_driver): Initialize all members.
9847
9848 * xfns.c (x_default_font_parameter):
9849 Try font from Ffont_get_system_font.
9850 Do not get font from x_default_parameter if we got one from
9851 Ffont_get_system_font.
9852 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
9853
9854 * w32font.c (w32font_driver): Initialize all members.
9855
9856 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
9857
9858 * lisp.h: Declare syms_of_xsettings.
9859
9860 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
9861 Handle CONFIG_CHANGED_EVENT.
9862
9863 * ftfont.c (ftfont_filter_properties): New function.
9864
9865 * frame.c (x_set_font): Remove unused variable lval.
9866
9867 * font.h (struct font_driver): Add filter_properties.
9868
9869 * font.c (font_put_extra): Don't return if val is nil, it means
9870 boolean option is off.
9871 (font_parse_fcname): Collect all extra properties in extra_props
9872 and call filter_properties for all drivers with extra_props and
9873 font as parameter.
9874 (font_open_entity): Do not use cache, it does not pick up new
9875 fontconfig settings like hinting.
9876 (font_load_for_lface): If spec had a name in it, store it in entity.
9877
9878 * emacs.c (main): Call syms_of_xsettings.
9879
9880 * config.in: HAVE_GCONF is new.
9881
9882 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
9883 xsettings.o is new.
9884
9885 2009-11-17 Kenichi Handa <handa@m17n.org>
9886
9887 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
9888 back to the default font in case that no suitable font is found.
9889
9890 2009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
9891
9892 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
9893 Suggested by Chad Brown <yandros@mit.edu>.
9894 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
9895
9896 2009-11-16 Jan Djärv <jan.h.d@swipnet.se>
9897
9898 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
9899
9900 2009-11-14 Andreas Schwab <schwab@linux-m68k.org>
9901
9902 * Makefile.in: Ignore errors from mkdir when creating deps directory.
9903
9904 2009-11-14 Jan Djärv <jan.h.d@swipnet.se>
9905
9906 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
9907 has a parent.
9908
9909 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
9910 dependency files in deps/. Include those files into Makefile.
9911
9912 * config.in: Generated (AUTO_DEPEND).
9913
9914 2009-11-13 Michael Albinus <michael.albinus@gmx.de>
9915
9916 * dbusbind.c (Vdbus_registered_objects_table): Rename from
9917 Vdbus_registered_functions_table, because it contains also
9918 properties. Fix docstring.
9919 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
9920
9921 2009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
9922
9923 * alloc.c (mark_object): Don't reprocess marked strings.
9924 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
9925 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
9926
9927 2009-11-13 Kenichi Handa <handa@m17n.org>
9928
9929 * category.c (word_boundary_p): Adjust for the change of the
9930 semantics of Vword_combining_categories.
9931 (Vword_combining_categories): Describe the slight change of the
9932 semantics.
9933
9934 2009-11-13 Eli Zaretskii <eliz@gnu.org>
9935
9936 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
9937
9938 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
9939
9940 2009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
9941
9942 * xdisp.c (syms_of_xdisp): Fix typo in last change.
9943
9944 2009-11-12 Juanma Barranquero <lekktu@gmail.com>
9945
9946 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
9947
9948 2009-11-11 David Reitter <david.reitter@gmail.com>
9949
9950 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
9951 variables to fix 2009-11-09 change.
9952
9953 2009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
9954
9955 * process.c (ifflag_def): Make flag_sym constant.
9956 (Fnetwork_interface_info): Use a constant pointer.
9957 (ifflag_table):
9958 * xfns.c (cursor_bits):
9959 * xdisp.c (power_letter):
9960 * termcap.c (speeds, esctab):
9961 * sysdep.c (baud_convert):
9962 * keyboard.c (lispy_accent_codes, modifier_names):
9963 * image.c (xbm_format, xpm_format, pbm_format, png_format)
9964 (jpeg_format, tiff_format, gif_format, svg_format)
9965 (interlace_start, interlace_increment, gs_format):
9966 * gtkutil.c (separator_names):
9967 * fringe.c (swap_nibble):
9968 * fns.c (base64_value_to_char, base64_char_to_value):
9969 * fileio.c (make_temp_name_tbl):
9970 * coding.c (suffixes): Make constant.
9971
9972 * frame.c (make_initial_frame):
9973 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
9974 build_string.
9975 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
9976
9977 * s/freebsd.h:
9978 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
9979
9980 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
9981 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
9982
9983 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
9984 * xterm.c (syms_of_xterm):
9985 * xfaces.c (syms_of_xfaces):
9986 * xdisp.c (syms_of_xdisp):
9987 * lread.c (syms_of_lread):
9988 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
9989 build_string.
9990
9991 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
9992
9993 2009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
9994
9995 * fns.c (Fplist_get): Merge the active and the commented out code.
9996
9997 2009-11-10 Jan Djärv <jan.h.d@swipnet.se>
9998
9999 * keyboard.h: Declare timer_check.
10000
10001 * keyboard.c (timer_check_2): New function that does what the old
10002 timer_check did.
10003 (timer_check): Call timer_check_2 until -1 or a non-zero time is
10004 returned, i.e. don't return -1 with timers pending.
10005
10006 * process.c: Remove extern declaration of timer_check.
10007
10008 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
10009 even if timer_check returned -1.
10010
10011 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
10012 xg_dialog_data.
10013 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
10014 the event loop.
10015 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
10016 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
10017 Destroy the dialog after xg_dialog_run.
10018
10019 2009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
10020
10021 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
10022
10023 2009-11-10 Jan Djärv <jan.h.d@swipnet.se>
10024
10025 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
10026
10027 2009-11-09 Juanma Barranquero <lekktu@gmail.com>
10028
10029 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
10030
10031 2009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
10032
10033 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
10034 w32menu.c, and nsmenu.m.
10035 Simplify the obsolete case where position is nil.
10036 (cleanup_popup_menu): New function, moved from nsmenu.m.
10037 (struct skp): Remove slot `notreal'.
10038 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
10039 adjust callers.
10040 (single_menu_item): Adjust call to parse_menu_item.
10041 (syms_of_menu): Defsubr x-popup-menu.
10042 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
10043 (keymap_panes): Don't export any more.
10044 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
10045 (xmenu_show): Declare.
10046 * keyboard.c (parse_menu_item): Remove arg `notreal'.
10047 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
10048 * keyboard.h (parse_menu_item): Update declaration.
10049 * xmenu.c (Fx_popup_menu): Remove.
10050 (syms_of_xmenu): Don't defsubr x-popup-menu.
10051 * w32menu.c (Fx_popup_menu): Remove.
10052 (syms_of_w32menu): Don't defsubr x-popup-menu.
10053 * nsmenu.m (cleanup_popup_menu): Remove.
10054 (ns_menu_show): Rename from ns_popup_menu and remove all the code
10055 moved to menu.c's Fx_popup_menu.
10056 (Fx_popup_menu): Remove.
10057 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
10058 menu_items (it's done in menu.c already).
10059
10060 2009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
10061
10062 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
10063 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
10064
10065 2009-11-08 Chong Yidong <cyd@stupidchicken.com>
10066
10067 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
10068 xmenu_show. Hide any tooltip before opening a menu.
10069 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
10070 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
10071
10072 2009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
10073
10074 Let integers use up 2 tags to give them one extra bit and thus double
10075 their range.
10076 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
10077 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
10078 New macros.
10079 (enum Lisp_Type): Use them. Give explicit values.
10080 (Lisp_Type_Limit): Remove.
10081 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
10082 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
10083 Pay attention to USE_2_TAGS_FOR_INTS.
10084 (INTEGERP): Use LISP_INT_TAG_P.
10085 * fns.c (internal_equal): Simplify the default case.
10086 (sxhash): Use case_Lisp_Int.
10087 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
10088 any more.
10089 (Ftype_of): Use case_Lisp_Int.
10090 (store_symval_forwarding): Take into account the fact that Ints can
10091 now have more than one tag.
10092 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
10093 (buffer_slot_type_mismatch):
10094 * xfaces.c (face_attr_equal_p):
10095 * print.c (print_object):
10096 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
10097 Use case_Lisp_Int.
10098
10099 2009-11-06 Eli Zaretskii <eliz@gnu.org>
10100
10101 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
10102
10103 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
10104 warning.
10105
10106 2009-11-06 Jan Djärv <jan.h.d@swipnet.se>
10107
10108 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
10109
10110 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
10111
10112 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
10113 ButtonPressRelease and MotionNotify (bug#4870).
10114
10115 2009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
10116
10117 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
10118
10119 * xterm.c (syms_of_xterm):
10120 * xselect.c (syms_of_xselect):
10121 * xmenu.c (syms_of_xmenu):
10122 * xfns.c (syms_of_xfns):
10123 * xfaces.c (syms_of_xfaces):
10124 * xdisp.c (syms_of_xdisp):
10125 * window.c (syms_of_window):
10126 * w32fns.c (syms_of_w32fns):
10127 * undo.c (syms_of_undo):
10128 * textprop.c (syms_of_textprop):
10129 * terminal.c (syms_of_terminal):
10130 * syntax.c (syms_of_syntax):
10131 * sound.c (syms_of_sound):
10132 * search.c (syms_of_search):
10133 * print.c (syms_of_print):
10134 * minibuf.c (syms_of_minibuf):
10135 * macros.c (syms_of_macros):
10136 * keymap.c (syms_of_keymap, initial_define_key)
10137 (initial_define_lispy_key):
10138 * keyboard.c (syms_of_keyboard):
10139 * insdel.c (syms_of_insdel):
10140 * image.c (syms_of_image):
10141 * fringe.c (syms_of_fringe):
10142 * frame.c (syms_of_frame):
10143 * fontset.c (syms_of_fontset):
10144 * fns.c (syms_of_fns):
10145 * fns.c (syms_of_fns):
10146 * fileio.c (syms_of_fileio):
10147 * fileio.c (syms_of_fileio):
10148 * eval.c (syms_of_eval):
10149 * doc.c (syms_of_doc):
10150 * dispnew.c (syms_of_display):
10151 * dired.c (syms_of_dired):
10152 * dbusbind.c (syms_of_dbusbind):
10153 * data.c (syms_of_data):
10154 * composite.c (syms_of_composite):
10155 * coding.c (syms_of_coding):
10156 * cmds.c (syms_of_cmds):
10157 * charset.c (define_charset_internal, syms_of_character):
10158 * ccl.c (syms_of_ccl):
10159 * category.c (syms_of_category, init_category_once):
10160 * casetab.c (syms_of_casetab):
10161 * casefiddle.c (syms_of_casefiddle):
10162 * callint.c (syms_of_callint):
10163 * bytecode.c (syms_of_bytecode):
10164 * buffer.c (keys_of_buffer, syms_of_buffer):
10165 * alloc.c (syms_of_alloc):
10166 * process.c (syms_of_process, init_process):
10167 * lread.c (syms_of_lread, init_obarray):
10168 * font.c (build_style_table):
10169 * emacs.c (syms_of_emacs, main): Replace calls to intern with
10170 intern_c_string, calls to make_pure_string with
10171 make_pure_c_string. Use pure_cons instead of Fcons.
10172
10173 * process.c (socket_options): Make it const.
10174 (set_socket_option, init_process): Use a const pointer.
10175
10176 * lread.c (intern_c_string): New function.
10177 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
10178 (defvar_int): Uset it. Make the name const char*.
10179
10180 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
10181 (defvar_int): Update prototypes.
10182 (DEFUN, EXFUN): Support for prototypes is now required.
10183 (intern_c_string): New prototype.
10184 (struct Lisp_Subr): Make symbol_name constant.
10185
10186 * font.c (struct table_entry): Remove unused member. Make NAMES
10187 constant.
10188 (weight_table, slant_table, width_table): Make constant.
10189
10190 * emacs.c (struct standard_args): Make name and longname constant.
10191
10192 * character.h (DEFSYM): Use intern_c_string.
10193
10194 2009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
10195
10196 * alloc.c (make_pure_c_string): New function.
10197
10198 * eval.c (Fautoload): Purecopy all arguments.
10199
10200 2009-11-05 Kenichi Handa <handa@m17n.org>
10201
10202 * fileio.c (Finsert_file_contents): Be sure set coding-system of
10203 the buffer in case of replace.
10204
10205 2009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
10206
10207 * puresize.h (BASE_PURESIZE): Increase to 1620000.
10208
10209 2009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
10210
10211 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
10212 when applicable (bug#4851).
10213
10214 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
10215 (P_): Support for prototypes is now required.
10216
10217 2009-10-31 Chong Yidong <cyd@stupidchicken.com>
10218
10219 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
10220 (Bug#4827).
10221
10222 2009-10-30 Eli Zaretskii <eliz@gnu.org>
10223
10224 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
10225
10226 2009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
10227
10228 * puresize.h (BASE_PURESIZE): Increase to 1470000.
10229
10230 * lread.c (Fload): Purecopy the file name when building
10231 Vpreloaded_file_list.
10232
10233 2009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
10234
10235 * w32fns.c (syms_of_w32fns): Change default value of
10236 w32-scroll-lock-modifier to nil. (Bug#2827)
10237
10238 2009-10-26 Juanma Barranquero <lekktu@gmail.com>
10239
10240 * minibuf.c (Fall_completions): Fix typos in docstring.
10241
10242 2009-10-26 Andreas Schwab <schwab@redhat.com>
10243
10244 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
10245
10246 2009-10-26 Juanma Barranquero <lekktu@gmail.com>
10247
10248 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
10249 For delta < 0, skip check that only makes sense when the mini-window
10250 is going to be enlarged. (Bug#4534)
10251
10252 2009-10-25 Chong Yidong <cyd@stupidchicken.com>
10253
10254 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
10255 string in menu maps (Bug#4471).
10256
10257 2009-10-24 Chong Yidong <cyd@stupidchicken.com>
10258
10259 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
10260 FRAME_NS_VIEW on terminal frames (Bug#4765).
10261
10262 2009-10-24 Andreas Schwab <schwab@linux-m68k.org>
10263
10264 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
10265 DBUS_TYPE_UINTnn separately to get proper sign extension.
10266
10267 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
10268 can properly handle unsigned types.
10269 (make_uid, make_gid): Remove.
10270
10271 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
10272 types again.
10273
10274 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10275 (system_process_attributes): Likewise.
10276
10277 2009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
10278
10279 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
10280
10281 * eval.c (Fautoload): Purecopy the filename. Simplify.
10282
10283 * category.c (Fdefine_category): Purecopy docstring.
10284
10285 2009-10-23 Andreas Schwab <schwab@linux-m68k.org>
10286
10287 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
10288
10289 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
10290
10291 2009-10-23 Chong Yidong <cyd@stupidchicken.com>
10292
10293 * window.c (Fwindow_edges, Fwindow_pixel_edges)
10294 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
10295 (Bug#4775).
10296
10297 2009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
10298
10299 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
10300 (init_fileio_once):
10301 * lisp.h (init_fileio_once): Remove.
10302 * emacs.c (main): Don't call init_fileio_once.
10303
10304 2009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
10305
10306 * puresize.h (BASE_PURESIZE): Increase to 1430000.
10307
10308 2009-10-21 Andreas Schwab <schwab@linux-m68k.org>
10309
10310 * doprnt.c (doprnt): Fix overflow check.
10311
10312 2009-10-21 Jan Djärv <jan.h.d@swipnet.se>
10313
10314 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
10315
10316 * xterm.h (x_wait_for_event): Declare it.
10317
10318 * xterm.c (pending_event_wait): New variable.
10319 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
10320 see pending_event_wait.eventtype.
10321 (handle_one_xevent): Don't change gravity when parent changes.
10322 (x_new_font): Call change_frame_size with new rows/columns before we
10323 try to resize the frame.
10324 (x_wait_for_event): New function.
10325 (x_set_window_size_1): Don't change gravity unless change_gravity
10326 is set.
10327 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
10328 don't change frame size, instead wait for the ConfigureNotify.
10329 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
10330 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
10331 (x_initialize): Initialize pending_event_wait.
10332
10333 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
10334 size.
10335
10336 * widget.c (EmacsFrameSetValues): Add comment.
10337 (EmacsFrameSetCharSize): Just call x_set_window_size.
10338
10339 * gtkutil.c (xg_frame_set_char_size): Flush events and call
10340 x_wait_for_event.
10341 (flush_and_sync): Remove again.
10342 (xg_get_font_name): Suggest monospace if no previous font is known.
10343
10344 2009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
10345
10346 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
10347 8th bit, since that only made sense in the ASCII world (bug#4751).
10348
10349 2009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10350
10351 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
10352 processing pending events when event is filtered for input method.
10353 (Bug#3681)
10354
10355 2009-10-20 Juanma Barranquero <lekktu@gmail.com>
10356
10357 * fns.c: Add #endif accidentally removed in previous change.
10358
10359 2009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
10360
10361 * fns.c: Remove code for unsupported system: MAC_OS.
10362 * image.c: Likewise. Include setjmp.h.
10363
10364 2009-10-19 Jan Djärv <jan.h.d@swipnet.se>
10365
10366 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
10367 pixel -1 (bug #4742).
10368
10369 2009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
10370
10371 * process.c (create_pty): Remove conditionals for no longer
10372 supported systems: UNIPLUS and RTU.
10373
10374 * xterm.c:
10375 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
10376
10377 * alloc.c: Do not define struct catchtag.
10378 * eval.c: Move struct catchtag definition ...
10379 * lisp.h: ... here.
10380
10381 * image.c: Move png.h #include earlier to avoid warnings.
10382
10383 * xterm.c:
10384 * xsmfns.c:
10385 * xselect.c:
10386 * xrdb.c:
10387 * xmenu.c:
10388 * xftfont.c:
10389 * xfont.c:
10390 * xfns.c:
10391 * xfaces.c:
10392 * xdisp.c:
10393 * window.c:
10394 * widget.c:
10395 * w32xfns.c:
10396 * w32uniscribe.c:
10397 * w32term.c:
10398 * w32select.c:
10399 * w32reg.c:
10400 * w32proc.c:
10401 * w32menu.c:
10402 * w32inevt.c:
10403 * w32heap.c:
10404 * w32font.c:
10405 * w32fns.c:
10406 * w32console.c:
10407 * w32.c:
10408 * w16select.c:
10409 * vm-limit.c:
10410 * unexsol.c:
10411 * unexec.c:
10412 * unexcw.c:
10413 * unexaix.c:
10414 * undo.c:
10415 * tparam.c:
10416 * textprop.c:
10417 * terminfo.c:
10418 * terminal.c:
10419 * termcap.c:
10420 * term.c:
10421 * syntax.c:
10422 * sound.c:
10423 * sheap.c:
10424 * search.c:
10425 * scroll.c:
10426 * region-cache.c:
10427 * regex.c:
10428 * ralloc.c:
10429 * process.c:
10430 * print.c:
10431 * nsterm.m:
10432 * nsselect.m:
10433 * nsmenu.m:
10434 * nsimage.m:
10435 * nsfont.m:
10436 * nsfns.m:
10437 * msdos.c:
10438 * minibuf.c:
10439 * menu.c:
10440 * marker.c:
10441 * macros.c:
10442 * keymap.c:
10443 * keyboard.c:
10444 * intervals.c:
10445 * insdel.c:
10446 * indent.c:
10447 * gtkutil.c:
10448 * ftxfont.c:
10449 * ftfont.c:
10450 * fringe.c:
10451 * frame.c:
10452 * fontset.c:
10453 * font.c:
10454 * fns.c:
10455 * floatfns.c:
10456 * filelock.c:
10457 * fileio.c:
10458 * emacs.c:
10459 * editfns.c:
10460 * dosfns.c:
10461 * doprnt.c:
10462 * doc.c:
10463 * dispnew.c:
10464 * dired.c:
10465 * dbusbind.c:
10466 * data.c:
10467 * composite.c:
10468 * coding.c:
10469 * cmds.c:
10470 * cm.c:
10471 * chartab.c:
10472 * charset.c:
10473 * character.c:
10474 * ccl.c:
10475 * category.c:
10476 * casetab.c:
10477 * casefiddle.c:
10478 * callproc.c:
10479 * callint.c:
10480 * bytecode.c:
10481 * buffer.c:
10482 * atimer.c: Include setjmp.h. (Bug#4643)
10483
10484 2009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
10485
10486 Remove leftover table unibyte_to_multibyte_table.
10487 * character.c (unibyte_to_multibyte_table): Remove.
10488 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
10489 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
10490 * character.h (UNIBYTE_TO_CHAR): New macro.
10491 (MAKE_CHAR_MULTIBYTE): Use it.
10492 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
10493 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
10494 (message_dolog, set_message_1):
10495 * search.c (Freplace_match):
10496 * editfns.c (Fcompare_buffer_substrings):
10497 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
10498 (concat):
10499 * insdel.c (copy_text, count_size_as_multibyte):
10500 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
10501 * term.c (produce_glyphs):
10502 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
10503 * regex.c (RE_CHAR_TO_MULTIBYTE):
10504 * cmds.c (internal_self_insert):
10505 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
10506
10507 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
10508
10509 2009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
10510
10511 * puresize.h (BASE_PURESIZE): Increase to 1310000.
10512
10513 2009-10-16 Juanma Barranquero <lekktu@gmail.com>
10514
10515 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
10516
10517 2009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
10518
10519 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
10520 still needed under Tiger.
10521
10522 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
10523
10524 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
10525 __Apple__.
10526
10527 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
10528
10529 2009-10-15 Kenichi Handa <handa@m17n.org>
10530
10531 * print.c (print_object): Escape a symbol like "2E10" too.
10532
10533 2009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
10534
10535 Cleanups and changes for 64-bit compile under Snow Leopard.
10536 Based on suggestions by Erik Charlebois.
10537
10538 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
10539
10540 * nsfont.m (ns_char_width): Replace deprecated call.
10541 (ns_findfonts, nsfont_list_family): Use long format in printf, and
10542 cast argument.
10543 (nsfont_open): Use ns_char_width() everywhere.
10544 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
10545
10546 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
10547
10548 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
10549 where appropriate.
10550
10551 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
10552 where appropriate.
10553 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
10554 Use stringWithUTF8String.
10555 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
10556
10557 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
10558 Add formal protocol mention to inheritance.
10559 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
10560
10561 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
10562 Fix printf format.
10563 (ns_query_color): Use CGFloat where appropriate.
10564 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
10565 (EmacsScroller-mouseDown:): Use long format in printf, and cast
10566 argument.
10567
10568 * config.in (NS_HAVE_NSINTEGER): Drop.
10569
10570 * dbusbind.c (dbus-method-return-internal)
10571 (dbus-method-error-internal): Use long format in printf, and cast
10572 argument.
10573
10574 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
10575 in printf, and cast argument.
10576
10577 * process.c (list_processes_1): Use long format in printf, and
10578 cast argument.
10579
10580 2009-10-11 Glenn Morris <rgm@gnu.org>
10581
10582 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
10583
10584 2009-10-08 Jan Djärv <jan.h.d@swipnet.se>
10585
10586 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
10587 menu bar with a small width so it doesn't enlarge the frame.
10588
10589 2009-10-08 Juanma Barranquero <lekktu@gmail.com>
10590
10591 * fontset.c (Fset_fontset_font): Fix typos in error messages.
10592
10593 2009-10-06 Glenn Morris <rgm@gnu.org>
10594
10595 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
10596 SOME_MACHINE_LISP (this enters indirectly via DOC).
10597
10598 2009-10-05 Eli Zaretskii <eliz@gnu.org>
10599
10600 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
10601
10602 2009-10-04 Eli Zaretskii <eliz@gnu.org>
10603
10604 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
10605 Doc fix.
10606
10607 2009-10-03 Martin Rudalics <rudalics@gmx.at>
10608
10609 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
10610
10611 2009-10-02 Michael Albinus <michael.albinus@gmx.de>
10612
10613 * lisp.h (Qdelete_directory_internal): Remove, because it is not
10614 used anymore outside fileio.c.
10615
10616 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
10617
10618 2009-10-01 Juanma Barranquero <lekktu@gmail.com>
10619
10620 * lisp.h (Qdelete_directory_internal):
10621 Declare, instead of Qdelete_directory.
10622
10623 * w32fns.c (Fsystem_move_file_to_trash): Use it.
10624
10625 2009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
10626
10627 * eval.c (Fcalled_interactively_p): Add `kind' argument.
10628
10629 2009-10-01 Michael Albinus <michael.albinus@gmx.de>
10630
10631 * fileio.c (Fdelete_directory_internal): Rename from
10632 Fdelete_directory. It is not a command anymore. It has no file
10633 name handler.
10634
10635 2009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
10636
10637 * xdisp.c (get_next_display_element): Use an enum in last change.
10638
10639 2009-09-28 Kenichi Handa <handa@m17n.org>
10640
10641 * xdisp.c (get_next_display_element): Pay attention to
10642 unibyte_display_via_language_environment in handling
10643 Vnobreak_char_display.
10644
10645 2009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
10646
10647 * nsterm.h (ns_app_name): New extern variable.
10648
10649 * nsterm.m (ns_app_name): New variable.
10650 (ns_term_init): Set and use it.
10651 (ns_term_shutdown): Use it.
10652
10653 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
10654 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
10655
10656 * nsfns.m (ns_set_name_iconic, ns_set_name)
10657 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
10658 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
10659
10660 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
10661 Remove double-casting in client_data comparison.
10662
10663 2009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10664
10665 * keyboard.c (make_lispy_event): Remember last wheel direction.
10666 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
10667
10668 2009-09-26 Glenn Morris <rgm@gnu.org>
10669
10670 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
10671 internal.elc. Add term/pc-win.elc.
10672 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
10673 term/x-win.elc.
10674 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
10675 term/w32-win.elc.
10676 (NS_SUPPORT): New.
10677 (lisp): Add NS_SUPPORT.
10678 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
10679
10680 2009-09-25 David Reitter <david.reitter@gmail.com>
10681
10682 * nsmenu.m (EmacsMenu-clear): Recognize application menu
10683 on Mac OS X 10.6+ (bug#4513).
10684
10685 2009-09-24 Juanma Barranquero <lekktu@gmail.com>
10686
10687 * frame.c (xrdb_get_resource): Return nil for empty string resources;
10688 some parts of Emacs code (like font selection) don't grok them.
10689 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
10690
10691 2009-09-24 Andreas Schwab <schwab@redhat.com>
10692
10693 * coding.c (decode_coding_iso_2022): Fix operator precedence.
10694
10695 2009-09-24 Juanma Barranquero <lekktu@gmail.com>
10696
10697 * dired.c (Fdirectory_files): Fix typo in docstring.
10698
10699 2009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
10700
10701 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
10702 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
10703 (EmacsScroller-setPosition:portion:whole:): Remove -display call
10704 under GNUstep.
10705 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
10706
10707 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
10708 glyph advancement.
10709
10710 2009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
10711
10712 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
10713 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
10714
10715 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
10716 deleted (bug #4492).
10717
10718 * nsfont.m (Vns_reg_to_script): New lisp variable.
10719 (syms_of_nsfont): Declare it.
10720 (ns_registry_to_script): New function.
10721 (ns_get_req_script): Call it.
10722 (ns_findfonts): Don't give up on non-unicode registry.
10723
10724 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
10725
10726 2009-09-20 Tom Tromey <tromey@redhat.com>
10727
10728 * eval.c (find_handler_clause): Make stack-trace-on-error work in
10729 batch mode (bug#4228).
10730
10731 2009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
10732
10733 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
10734 carefully. (Bug #4339)
10735
10736 2009-09-18 Chong Yidong <cyd@stupidchicken.com>
10737
10738 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
10739
10740 2009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
10741
10742 * emacs.c (inhibit_x_resources): Update doc string for NS.
10743 (main) [HAVE_NS]: Don't process --no-init-file option.
10744 Remove legacy code for -NXHost. Fix error printf in daemon case.
10745
10746 * nsterm.h (ns_no_defaults): Remove.
10747
10748 * nsterm.m (ns_no_defaults): Remove.
10749 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
10750 (ns_use_qd_smoothing): Remove legacy variable.
10751 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
10752 don't update the NSWindow itself.
10753 (EmacsView-windowWillUseStandardFrame:defaultFrame:):
10754 Improve state detection and store user rect ourselves. (Bug #3581)
10755
10756 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
10757 ns_use_qd_smoothing.
10758
10759 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
10760 platform versions. Drop support for emacs-20-style face specs.
10761 (x-close-connection): Drop PSFlush() under OS X.
10762 (x-focus-frame): Activate the app first. (Bug #4180)
10763
10764 2009-09-17 Juanma Barranquero <lekktu@gmail.com>
10765
10766 * emacs.c (inhibit_x_resources): New variable.
10767 (main) [HAVE_NS]: Don't process --quick command line option.
10768 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
10769
10770 * lisp.h (inhibit_x_resources): Declare it extern.
10771
10772 * w32reg.c (x_get_string_resource):
10773 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
10774
10775 2009-09-17 Eli Zaretskii <eliz@gnu.org>
10776
10777 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
10778 Add lisp/term/internal.elc.
10779
10780 2009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
10781
10782 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
10783 (bug#4461).
10784
10785 2009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
10786
10787 * puresize.h (BASE_PURESIZE): Increase to 1290000.
10788
10789 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
10790 (OBJECTS_MACHINE): Remove, unused.
10791
10792 2009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
10793
10794 * frame.c (x_get_resource_string): Remove unused.
10795
10796 2009-09-15 Jan Djärv <jan.h.d@swipnet.se>
10797
10798 * xterm.c (x_new_font): Call change_frame_size before calling
10799 x_set_window_size, in case frame size won't change.
10800
10801 * frame.c (x_set_font): Remove dead code.
10802
10803 2009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
10804
10805 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
10806
10807 2009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
10808
10809 * lread.c (Fload): Don't output a message after loading an obsolete
10810 package any more (done in Lisp now).
10811
10812 2009-09-12 Chong Yidong <cyd@stupidchicken.com>
10813
10814 * fns.c (syms_of_fns): Doc fix (Bug#4227).
10815
10816 2009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
10817
10818 * keymap.c (Fwhere_is_internal): Use nconc2.
10819
10820 2009-09-11 Alan Mackenzie <acm@muc.de>
10821
10822 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
10823 batch mode.
10824
10825 2009-09-11 Andreas Schwab <schwab@linux-m68k.org>
10826
10827 * xdisp.c (display_mode_element): Detect cycles.
10828
10829 2009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
10830
10831 * keymap.c (where_is_internal): Don't erroneously return nil right after
10832 filling the cache.
10833 (where_is_internal_1): Fix up typo.
10834
10835 2009-09-11 Glenn Morris <rgm@gnu.org>
10836
10837 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
10838 share a common doc-string.
10839
10840 2009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
10841
10842 * keymap.c (get_keymap): Return the actual keymap symbol rather than
10843 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
10844
10845 * keymap.c (QCadvertised_binding): New constant.
10846 (syms_of_keymap): Initialize it.
10847 (Fwhere_is_internal): Try and use bindings from :advertised-binding
10848 if applicable.
10849
10850 2009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
10851
10852 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
10853 (parse_menu_item): Streamline since bindings are recomputed all the
10854 time anyway. Don't bother checking Vdefine_key_rebound_commands any
10855 more and don't support lmenu's menu-alias any more either.
10856
10857 * keymap.c (where_is_internal_data): Make noindirect a boolean.
10858 (where_is_internal): Strip it down to only traverse the keymaps.
10859 Move the cache handling from Fwhere_is_internal to here.
10860 (Fwhere_is_internal): Move the handling of remapping and the choice of
10861 the best binding from where_is_internal to here.
10862 Unify the cached/noncached paths, so remapping is also handled
10863 correctly when the cache is used, and so the cache can be used to
10864 speed up remap-handling when applicable.
10865 Give preference to non-remapped bindings.
10866 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
10867 non-remapped bindings.
10868 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
10869 command remapping.
10870
10871 * xdisp.c (display_mode_element): Move list length limit from 50 to
10872 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
10873
10874 2009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
10875
10876 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
10877
10878 2009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
10879
10880 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
10881 (Bug#4334)
10882
10883 * keymap.c (where_is_internal): Filter out shadowed remappings.
10884 Assume that where_is_internal returns unshadowed bindings to simplify
10885 the code and get rid of the gotos. Use ASIZE.
10886
10887 2009-09-04 Jan Djärv <jan.h.d@swipnet.se>
10888
10889 * xterm.c (x_focus_changed): If we get a focusout and pointer
10890 is invisible, make it visible.
10891
10892 * xterm.h: Remove condition for declaration of
10893 x_*_window_to_frame.
10894
10895 2009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
10896
10897 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
10898 initial terminal as well.
10899
10900 2009-09-02 Jan Djärv <jan.h.d@swipnet.se>
10901
10902 * xterm.h: Rename x_non_menubar_window_to_frame to
10903 x_menubar_window_to_frame.
10904
10905 * xterm.c: Remove declarations also in xterm.h.
10906 (XTmouse_position): Do not return valid positions
10907 for clicks in the menubar and the toolbar for Gtk+.
10908
10909 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
10910 if the widget for the event has the same top level as a frame,
10911 return the frame.
10912 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
10913 internal windows, bug #4122.
10914 (x_non_menubar_window_to_frame): Remove.
10915
10916 2009-09-02 Glenn Morris <rgm@gnu.org>
10917
10918 * buffer.c (default-major-mode): Move most of the doc from here...
10919 (major-mode): ... to here.
10920
10921 2009-08-30 Nick Roberts <nickrob@snap.net.nz>
10922
10923 * process.c (wait_reading_process_output): Keep the descriptor
10924 when pty is used by a non-child process, e.g., in I/O buffer of
10925 GDB this allows inferior to be restarted.
10926
10927 2009-08-29 Eli Zaretskii <eliz@gnu.org>
10928
10929 * xdisp.c (redisplay_internal): Remove redundant test and collapse
10930 both branches into one.
10931
10932 2009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
10933
10934 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
10935 (main): Use enable-multibyte-characters rather than
10936 default-enable-multibyte-characters. Output a warning message when
10937 running a unibyte session.
10938
10939 2009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10940
10941 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
10942 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
10943 (copy_data_segment): Also copy __program_vars section.
10944 (copy_dyld_info) [LC_DYLD_INFO]: New function.
10945 (dump_it) [LC_DYLD_INFO]: Use it.
10946
10947 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
10948
10949 2009-08-28 Eli Zaretskii <eliz@gnu.org>
10950
10951 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
10952 $(SRC)/buildobj.h.
10953 (buildobj.h): Rename from $(SRC)/buildobj.h.
10954 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
10955 $(SRC)/buildobj.h.
10956 (clean): Add buildobj.h.
10957
10958 2009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
10959
10960 * print.c (print_object): Set escapeflag to 1 when printing
10961 hashtable keys and values.
10962
10963 2009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
10964
10965 * lread.c (read_integer): Use doubles (and potentially return a float
10966 number) as we do in string-to-number.
10967 (read1): Use strtol to read integers, signal errors on strtol's
10968 overflow and use floats if strtol's output is too large for
10969 Elisp integers.
10970
10971 2009-08-27 Eli Zaretskii <eliz@gnu.org>
10972
10973 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
10974 (make-buildobj-SH): Fix last change.
10975 (SRC): Move to before where it's first used.
10976
10977 2009-08-27 Kenichi Handa <handa@m17n.org>
10978
10979 * process.c (send_process): Use encode_coding_object instead of
10980 encode_coding_string to perform eol-conversion even if the string
10981 is unibyte.
10982
10983 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
10984 character.
10985
10986 * cmds.c (Fself_insert_command): Avoid unnecessay
10987 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
10988
10989 2009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
10990
10991 * callproc.c (Fcall_process): Remove always true #if.
10992
10993 * lisp.h: Replace #if 0 code for checking with text pointing to
10994 the --enable-checking configure flag.
10995
10996 * emacs.c (main): Mention the --enable-profiling configure flag
10997 instead of using CFLAGS.
10998
10999 2009-08-26 Ken Raeburn <raeburn@raeburn.org>
11000
11001 * Makefile.in (buildobj.h): New target.
11002 (doc.o): Depend on it.
11003 (temacs${EXEEXT}): Don't generate buildobj.lst.
11004 (mostlyclean): Delete buildobj.h, not buildobj.lst.
11005 * makefile.w32-in ($(SRC)/buildobj.h): New target.
11006 ($(BLD)/doc.$(O)): Depend on it.
11007 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
11008 provided by Eli Zaretskii.)
11009 ($(TEMACS)): Don't generate buildobj.lst.
11010 * doc.c: Include buildobj.h.
11011 (buildobj): New static variable.
11012 (Fsnarf_documentation): Use it, instead of opening and reading
11013 buildobj.lst.
11014
11015 2009-08-25 Michael Albinus <michael.albinus@gmx.de>
11016
11017 * dbusbind.c (Fdbus_call_method)
11018 (Fdbus_call_method_asynchronously): Use English numeric format for
11019 timeout values in doc string.
11020
11021 2009-08-25 Kenichi Handa <handa@m17n.org>
11022
11023 * alloc.c (mark_char_table): New function.
11024 (mark_object): Use mark_char_table for a char-table.
11025
11026 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
11027 (CHAR_TABLE_REF): Use it.
11028
11029 2009-08-23 Ken Raeburn <raeburn@raeburn.org>
11030
11031 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
11032 before invoking the newly build emacs to check for load-path
11033 shadowing.
11034
11035 2009-08-22 Glenn Morris <rgm@gnu.org>
11036
11037 * Makefile.in (bootstrap_exe): New variable.
11038 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
11039 Use ${bootstrap_exe}.
11040
11041 2009-08-22 Eli Zaretskii <eliz@gnu.org>
11042
11043 * coding.h (encode_coding_string): Don't encode unibyte strings.
11044 (Bug#4047)
11045
11046 2009-08-22 Michael Albinus <michael.albinus@gmx.de>
11047
11048 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
11049
11050 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
11051 intended as hotfix only.
11052 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
11053
11054 2009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
11055
11056 * nsterm.m (ns_get_color): Update documentation properly for last
11057 change, and clean up loose ends in the code left by it.
11058 Fix longstanding bug with 16-bit hex parsing, and add support for
11059 yet another X11 format (rgb:r/g/b) for compatibility.
11060 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
11061 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
11062
11063 2009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
11064
11065 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
11066
11067 2009-08-20 Michael Albinus <michael.albinus@gmx.de>
11068
11069 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
11070 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
11071 (xd_initialize, xd_pending_messages): Check, whether
11072 $DBUS_SESSION_BUS_ADDRESS is set.
11073
11074 2009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11075
11076 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
11077
11078 * nsterm.m (ns_get_color): Remove incompatible color formats again.
11079
11080 2009-08-20 Glenn Morris <rgm@gnu.org>
11081
11082 * emacs.c (system-type): Doc fix.
11083
11084 2009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
11085
11086 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
11087 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
11088
11089 2009-08-18 Michael Albinus <michael.albinus@gmx.de>
11090
11091 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
11092 New functions.
11093 (xd_initialize): Revert change from 2009-08-16.
11094
11095 2009-08-18 Kenichi Handa <handa@m17n.org>
11096
11097 * fontset.c (Ffontset_font): If a nil element is found in a
11098 font-group vector, return nil.
11099
11100 2009-08-17 Chong Yidong <cyd@stupidchicken.com>
11101
11102 * process.c (status_notify): Don't perform redisplay.
11103 (Fdelete_process, list_processes_1, process_send_signal):
11104 Expliticly perform redisplay.
11105 (wait_reading_process_output): Always check process status, but
11106 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
11107
11108 2009-08-17 Ken Raeburn <raeburn@raeburn.org>
11109
11110 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
11111 (XFLOAT_INIT): New macro for storing a float value.
11112 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
11113 * fns.c (sxhash): Copy out the value of a float in order to
11114 examine its bytes.
11115 * dbusbind.c (xd_append_arg): Likewise.
11116
11117 * emacs.c (main): Don't call syms_of_data twice.
11118
11119 2009-08-16 Michael Albinus <michael.albinus@gmx.de>
11120
11121 * dbusbind.c (xd_initialize): Add connection file descriptor to
11122 input_wait_mask, in order to let select() detect, whether a new
11123 message has been arrived.
11124 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
11125
11126 2009-08-15 Michael Albinus <michael.albinus@gmx.de>
11127
11128 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
11129 New functions.
11130
11131 * lisp.h (xd_pending_messages): Declare.
11132
11133 * keyboard.c (readable_events): Call xd_pending_messages.
11134
11135 2009-08-15 Chong Yidong <cyd@stupidchicken.com>
11136
11137 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
11138
11139 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
11140
11141 * buffer.c (set_buffer_internal_1)
11142 (swap_out_buffer_local_variables): Check for unbound local
11143 variables (Bug#4138).
11144
11145 2009-08-14 Eli Zaretskii <eliz@gnu.org>
11146
11147 * process.c (create_pty): Fix last change.
11148
11149 2009-08-13 Chong Yidong <cyd@stupidchicken.com>
11150
11151 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
11152 (xbm_load_image): Caller changed.
11153 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
11154
11155 2009-08-13 Nick Roberts <nickrob@snap.net.nz>
11156
11157 * process.c (create_pty): New function.
11158 (Fstart_process): Use it to allow Emacs to just associate a pty
11159 with the buffer. See associated change in gdb-mi.el.
11160 (list_processes_1): Deal with no program name.
11161 (start_process_unwind): Use pid == -2 to mean no process.
11162
11163 2009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
11164
11165 * cmds.c (nonundocount): New global variable.
11166 (keys_of_cmds): Initialize it.
11167 (Fself_insert_command): Use it to combine upto 20 sequential chars
11168 into a single undo entry, just like the Qself_insert_command code in
11169 keyboard.c does.
11170 Call frame_make_pointer_invisible, also like the Qself_insert_command
11171 code in keyboard.c does.
11172 * keyboard.c (command_loop_1): Use the new global nonundocount rather
11173 than its own local replacement for it.
11174
11175 2009-08-10 Ken Raeburn <raeburn@raeburn.org>
11176
11177 * fns.c (concat): Don't re-set string length to its current value.
11178
11179 * coding.h (decode_coding_string, encode_coding_string):
11180 Use SBYTES macro.
11181
11182 * doprnt.c (doprnt_lisp): Delete unused function.
11183 (doprnt): Merge with doprnt1, discarding lispstrings code.
11184 * lisp.h (doprnt_lisp): Don't declare.
11185
11186 2009-08-07 Juri Linkov <juri@jurta.org>
11187
11188 * puresize.h (BASE_PURESIZE): Increase to 1270000.
11189
11190 2009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
11191
11192 * print.c (syms_of_print): Undo previous change.
11193
11194 2009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
11195
11196 * lread.c (read1, syms_of_lread): Read hashtables back from the
11197 readable format.
11198
11199 * print.c (print_preprocess, print_object): Print hashtables fully
11200 and readably.
11201 (syms_of_print): Provide 'hashtable-print-readable.
11202
11203 2009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
11204
11205 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
11206 no family set.
11207 (nsfont_open): Handle case when entity has no family.
11208
11209 2009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
11210
11211 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
11212 element, not a list, for match case.
11213
11214 2009-07-28 Kenichi Handa <handa@m17n.org>
11215
11216 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
11217 rigidly.
11218
11219 * xfont.c (xfont_list_pattern): Don't ignore the return value of
11220 font_parse_xlfd. Check font properties more rigidly.
11221
11222 2009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
11223
11224 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
11225 bsd-common.h.
11226
11227 2009-07-27 Kenichi Handa <handa@m17n.org>
11228
11229 * xfaces.c (face_with_height): Call font_clear_prop.
11230
11231 2009-07-26 Chong Yidong <cyd@stupidchicken.com>
11232
11233 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
11234
11235 * xterm.c (x_term_init): Use Qx.
11236
11237 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
11238
11239 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
11240 (ns_get_color): Revert 2009-07-16 change.
11241
11242 2009-07-25 Eli Zaretskii <eliz@gnu.org>
11243
11244 * lread.c (syms_of_lread) <force_load_messages>: New variable.
11245 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
11246
11247 2009-07-25 Ken Raeburn <raeburn@raeburn.org>
11248
11249 * coding.h (decode_coding_string, encode_coding_string):
11250 Use SCHARS macro.
11251
11252 * lread.c: Rewrite 2009-07-21 changes.
11253 (load_depth): Delete.
11254 (Qload_in_progress): New variable.
11255 (load_unwind): Don't reference load_depth or load_in_progress.
11256 (Fload): Likewise; specbind Qload_in_progress instead.
11257 (init_lread): Don't initialize load_depth.
11258 (syms_of_lread): Initialize and protect Qload_in_progress.
11259
11260 2009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
11261
11262 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
11263
11264 2009-07-23 Yavor Doganov <yavor@gnu.org>
11265
11266 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
11267
11268 2009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
11269
11270 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
11271 Bugs 3792, 3720, 2402.
11272 (ns_lookup_indexed_color): Check for bad index.
11273 (ns_index_color): Init unused slot to 0.
11274 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
11275 Bug 3714, possibly 3082.
11276
11277 2009-07-22 Jason Rumney <jasonr@gnu.org>
11278
11279 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
11280 Position IME window at cursor (Bug#2570).
11281 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
11282 (globals_of_w32fns): Dynamically load functions required above.
11283
11284 * w32term.c (w32_draw_window_cursor): Send message to reposition
11285 any IME window.
11286
11287 2009-07-21 Chong Yidong <cyd@stupidchicken.com>
11288
11289 * fileio.c: Revert 2009-07-16 changes.
11290 (Vauto_save_include_big_deletions): New variable.
11291 (Fdo_auto_save): Disable auto-save only if
11292 auto-save-include-big-deletions is nil.
11293
11294 2009-07-21 Chong Yidong <cyd@stupidchicken.com>
11295
11296 * xdisp.c (move_it_to): For continued lines ending in a tab, take
11297 the overflowed pixels into account (Bug#3879).
11298
11299 2009-07-21 Ken Raeburn <raeburn@raeburn.org>
11300
11301 * lread.c (load_depth): New variable.
11302 (Fload, load_unwind, init_lread): Set it to the load recursion
11303 depth; set load_in_progress as a simple boolean based on the
11304 current load_depth. (Bug#3892)
11305
11306 2009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
11307
11308 * nsfont.m (ns_has_attribute): Remove.
11309 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
11310
11311 2009-07-18 Juri Linkov <juri@jurta.org>
11312
11313 * process.c (Fset_process_query_on_exit_flag): Mention killing
11314 a buffer in docstring.
11315
11316 2009-07-17 Kenichi Handa <handa@m17n.org>
11317
11318 * casetab.c (shuffle): Fix the logic of setting up the cycle.
11319
11320 2009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11321
11322 * nsfns.m (Fns_set_alpha): Remove function.
11323 (syms_of_nsfns): Don't defsubr it.
11324
11325 * nsterm.m (ns_get_color): Remove incompatible color formats.
11326 (ns_color_to_lisp): Generate #rrggbb color format string.
11327
11328 2009-07-16 Richard Stallman <rms@gnu.org>
11329
11330 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
11331 (Fset_buffer_auto_saved): Handle save_length = -2.
11332
11333 2009-07-16 Chong Yidong <cyd@stupidchicken.com>
11334
11335 * xterm.c (Qx_gtk_map_stock): New var.
11336
11337 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
11338 of calling intern each time.
11339
11340 2009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11341
11342 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
11343 does tiling.
11344
11345 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
11346
11347 2009-07-14 Kenichi Handa <handa@m17n.org>
11348
11349 * font.c (font_vconcat_entity_vectors): New function.
11350 (struct font_sort_data): New member font_driver_preference.
11351 (font_compare): Check font_driver_preference.
11352 (font_sort_entities): The format of the first argument changed.
11353 (font_delete_unmatched): Likewise.
11354 (font_list_entities): The return type changed.
11355 (font_select_entity): The format of the second argument changed.
11356 (font_find_for_lface): Adjuste for the above changes.
11357 Don't suppress the checking of C even if the repertory supports it.
11358 (Flist_fonts): Adjust for the above changes.
11359
11360 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
11361 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
11362 Reject a font who has adstyle property that is different from a
11363 langname derived from registry property.
11364 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
11365
11366 2009-07-13 Eli Zaretskii <eliz@gnu.org>
11367
11368 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
11369 local copy of dirfilename.
11370
11371 2009-07-13 Kenichi Handa <handa@m17n.org>
11372
11373 * chartab.c (sub_char_table_ref_and_range): Fix the range check
11374 against max_char.
11375
11376 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
11377 calling XSYMBOL (sym).
11378
11379 2009-07-11 Eli Zaretskii <eliz@gnu.org>
11380
11381 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
11382 New function.
11383 (directory_files_internal) [WINDOWSNT]:
11384 Bind w32-get-true-file-attributes to either t or nil, depending whether
11385 the filesystem of the directory is fast or slow.
11386
11387 * w32.c (logon_network_drive): Don't assume PATH is an absolute
11388 file name.
11389 (is_slow_fs): New function.
11390 (stat): Use it to determine whether to issue more system calls to
11391 get accurate file attributes, when w32-get-true-file-attributes is
11392 `local'.
11393
11394 2009-07-10 Jan Djärv <jan.h.d@swipnet.se>
11395
11396 * xfns.c (Fx_select_font): Remember last font selected in
11397 x_last_font_name and use that the next time. Also try the frame
11398 parameter font-parameter as default to the font dialog.
11399
11400 2009-07-10 Kenichi Handa <handa@m17n.org>
11401
11402 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
11403
11404 2009-07-09 Eli Zaretskii <eliz@gnu.org>
11405
11406 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
11407
11408 * w32.c (stat): Treat UNC file names as residing on remote
11409 drives. (Bug#3542)
11410
11411 2009-07-09 Kenichi Handa <handa@m17n.org>
11412
11413 * fontset.c (fontset_find_font): Fix previous change.
11414
11415 2009-07-08 Michael Albinus <michael.albinus@gmx.de>
11416
11417 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
11418 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
11419 error flag.
11420
11421 2009-07-08 Kenichi Handa <handa@m17n.org>
11422
11423 * fontset.c (fontset_find_font): Fix the logic of handling
11424 charset_matched.
11425 (font_for_char): Delete unused var.
11426 (generate_ascii_font_name): Delete it.
11427
11428 * coding.h (JIS_TO_SJIS2): Fix the code range check.
11429
11430 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
11431 (encode_coding_sjis): Fix the code range check.
11432
11433 2009-07-07 Chong Yidong <cyd@stupidchicken.com>
11434
11435 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
11436 (Fexpand_file_name): Copy string data properly (Bug#3772).
11437
11438 2009-07-07 Jan Djärv <jan.h.d@swipnet.se>
11439
11440 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
11441 first MapNotify.
11442
11443 2009-07-07 Kenichi Handa <handa@m17n.org>
11444
11445 * character.h (unibyte_has_multibyte_table): Delete extern.
11446 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
11447
11448 * charset.c (Fset_charset_priority): Update charset_unibyte.
11449 (syms_of_charset): Initialize charset_unibyte.
11450
11451 * character.c (unibyte_has_multibyte_table): Delete it.
11452 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
11453 charset_unibyte.
11454 (multibyte_char_to_unibyte_safe): Likewise.
11455 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
11456
11457 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
11458 (x_produce_glyphs): Likewise.
11459
11460 * .gdbinit (xcharset): Fix the treating $arg0.
11461
11462 2009-07-04 Eli Zaretskii <eliz@gnu.org>
11463
11464 Emulation of `getloadavg' on MS-Windows.
11465 * w32.c: Include float.h.
11466 (g_b_init_get_native_system_info, g_b_init_get_system_times)
11467 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
11468 (get_native_system_info, get_system_times): New functions.
11469 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
11470 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
11471 (globals_of_w32): Initialize g_b_init_get_native_system_info,
11472 g_b_init_get_system_times, and num_of_processors.
11473
11474 2009-07-03 Jason Rumney <jasonr@gnu.org>
11475
11476 * w32term.c (w32_initialize): Use standard types.
11477
11478 2009-07-03 Eli Zaretskii <eliz@gnu.org>
11479
11480 * dired.c (Ffile_attributes): Decode user and group names by the
11481 locale's encoding. (Bug#3443)
11482
11483 2009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
11484
11485 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
11486 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
11487
11488 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
11489
11490 * term.c (init_tty): Remove spurious #ifdef.
11491
11492 * m/mips.h: Mention this file is also used for netbsd.
11493 * m/pmax.h: Remove file.
11494
11495 2009-07-03 Jan Djärv <jan.h.d@swipnet.se>
11496
11497 * xterm.h (struct x_display_info): Add invisible_cursor.
11498 (struct x_output): Add current_cursor.
11499
11500 * xterm.c (XTtoggle_invisible_pointer): New function.
11501 (x_define_frame_cursor): Don't define cursor if invisible or the
11502 same as before. Set current_cursor.
11503 (x_create_terminal): Set toggle_invisible_pointer_hook.
11504
11505 * xfns.c (make_invisible_cursor): New function.
11506 (x_set_mouse_color): Call make_invisible_cursor.
11507 Set current_cursor.
11508 (x_window): Set current_cursor.
11509
11510 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
11511
11512 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
11513 inserting a character.
11514 (read_avail_input): Call frame_make_pointer_visible.
11515
11516 * frame.c (Vmake_pointer_invisible): New variable.
11517 (frame_make_pointer_invisible, frame_make_pointer_visible):
11518 New functions.
11519 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
11520
11521 * frame.h: Declare frame_make_pointer_invisible and
11522 frame_make_pointer_visible.
11523 (struct frame): Add pointer_invisible.
11524
11525 2009-07-02 Jan Djärv <jan.h.d@swipnet.se>
11526
11527 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
11528 frame isn't visible.
11529 (xg_frame_resized): If width/height is -1, get size of window
11530 from X server.
11531
11532 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
11533 for MapNotify.
11534
11535 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
11536 here or call change_frame_size. Just call flush_and_sync.
11537 (flush_and_sync): Reintroduce.
11538
11539 2009-07-01 Jan Djärv <jan.h.d@swipnet.se>
11540
11541 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
11542
11543 * xterm.c (x_handle_net_wm_state): Also look for sticky.
11544 (x_term_init): Initialize Xatom_net_wm_state_sticky.
11545
11546 * frame.h: Declare Qsticky.
11547
11548 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
11549
11550 * nsfns.m (ns_frame_parm_handlers): Ditto.
11551
11552 * frame.c: Declare Qsticky.
11553 (frame_parms): Add sticky.
11554
11555 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
11556
11557 * xterm.h: Declare x_set_sticky.
11558
11559 * xterm.c (x_set_sticky): New function.
11560
11561 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
11562 (xg_tool_bar_menu_proxy): Attach enter/leave events to
11563 xg_tool_bar_proxy_help_callback.
11564
11565 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
11566
11567 * frame.c: Qmaximized is new.
11568 (x_set_frame_parameters): Do not handle fullscreen specially.
11569 Only set width and height if explicitly set.
11570 (x_set_fullscreen): Handle Qmaximized.
11571 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
11572 (syms_of_frame): Initialize Qmaximized.
11573
11574 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
11575 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
11576
11577 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
11578 for Expose event. Add call to x_check_fullscreen for MapNotify event.
11579 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
11580 set gravity to NorthWestGravity when USE_GTK.
11581 (set_wm_state): New function.
11582 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
11583 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
11584 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
11585 or the case when no window manager is running. That means remove calls
11586 to x_real_positions and x_fullscreen_adjust.
11587
11588 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
11589 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
11590 flush_and_sync.
11591 (xg_height_changed): New function.
11592 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
11593 and gtk_window_set_policy. Set frame gravity after parsing the
11594 geometry string.
11595 (xg_update_frame_menubar, free_frame_menubar)
11596 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
11597 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
11598 Remove calls to xg_frame_set_char_size.
11599
11600 2009-07-01 Kenichi Handa <handa@m17n.org>
11601
11602 * keyboard.c (decode_keyboard_code): New function.
11603 (tty_read_avail_input): Decode the input bytes if necessary.
11604
11605 * coding.c (setup_coding_system):
11606 Initialize coding->carryover_bytes to 0.
11607 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
11608 use Qno_conversion.
11609
11610 2009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11611
11612 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
11613
11614 2009-06-30 Chong Yidong <cyd@stupidchicken.com>
11615
11616 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
11617
11618 2009-06-30 Jason Rumney <jasonr@gnu.org>
11619
11620 * w32term.c (w32_initialize): Use GetModuleHandle for library that
11621 is already loaded.
11622 Set user model ID if supported (bug#1849).
11623
11624 2009-06-29 Jim Meyering <meyering@redhat.com>
11625
11626 Remove useless if-before-xfree test.
11627 * nsfont.m (nsfont_close): Remove useless test.
11628 * term.c (delete_tty): Likewise.
11629 * w32.c (system_process_attributes): Likewise.
11630 * w32font.c (w32font_close): Likewise.
11631 * xfaces.c (x_free_gc): Likewise.
11632 * xselect.c (buffer): Likewise.
11633
11634 2009-06-28 Andreas Schwab <schwab@linux-m68k.org>
11635
11636 * process.c (send_process): Keep decoded string in a local
11637 variable and protect it from GC. (Bug#3521)
11638
11639 2009-06-28 Eli Zaretskii <eliz@gnu.org>
11640
11641 * term.c (create_tty_output) [MSDOS]: #ifdef away.
11642 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
11643
11644 2009-06-28 Chong Yidong <cyd@stupidchicken.com>
11645
11646 * xdisp.c (start_display, handle_face_prop)
11647 (move_it_vertically_backward, cursor_row_fully_visible_p)
11648 (redisplay_window, try_window_id, produce_image_glyph):
11649 Delete some #ifdef-ed out code chunks that are now obsolete.
11650
11651 * xterm.c (x_update_window_begin, x_new_focus_frame)
11652 (x_scroll_bar_handle_click, handle_one_xevent)
11653 (handle_one_xevent, XTread_socket, x_focus_on_frame)
11654 (x_make_frame_visible, x_make_frame_invisible)
11655 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
11656 code chunks that are now obsolete.
11657
11658 2009-06-28 Michael Albinus <michael.albinus@gmx.de>
11659
11660 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
11661 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
11662 for hours, when optimzation is enabled.
11663 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
11664 (xd_read_message): Make them static.
11665
11666 2009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
11667
11668 * term.c (turn_on_face): Allow simultaneously bold and dim
11669 terminal faces (Bug#3530).
11670
11671 2009-06-27 Chong Yidong <cyd@stupidchicken.com>
11672
11673 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
11674
11675 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
11676 truncation glyphs (Bug#3686).
11677
11678 2009-06-27 Glenn Morris <rgm@gnu.org>
11679
11680 * m/pmax.h: Restore file, with only netbsd portions.
11681
11682 2009-06-26 David Reitter <david.reitter@gmail.com>
11683
11684 * nsterm.m (keydown): Avoid infinite loop.
11685
11686 2009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
11687
11688 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
11689 the arg FORCE_SYMBOL.
11690
11691 2009-06-25 Kenichi Handa <handa@m17n.org>
11692
11693 * fontset.c (fontset_find_font): When a usable rfont_def is found
11694 in a fallback font-group, make it the first element of the group.
11695
11696 2009-06-24 Chong Yidong <cyd@stupidchicken.com>
11697
11698 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
11699
11700 2009-06-24 Kenichi Handa <handa@m17n.org>
11701
11702 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
11703 set for C.
11704 (fontset_font): Record the availability of a font for C both in
11705 the realized fontsets of the current one and the default one.
11706
11707 2009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
11708
11709 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
11710 conditional, it is always defined on AIX.
11711
11712 2009-06-23 Miles Bader <miles@gnu.org>
11713
11714 * window.c (Vrecenter_redisplay): New variable.
11715 (syms_of_window): Initialize it.
11716 (Qtty): New extern declaration.
11717 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
11718
11719 2009-06-23 Jim Meyering <meyering@redhat.com>
11720
11721 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
11722 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
11723 pointer dereferences are guaranteed to be valid.
11724
11725 2009-06-23 Kenichi Handa <handa@m17n.org>
11726
11727 * emacs.c (main): Call init_font ().
11728
11729 * font.h (Vfont_log): Extern it.
11730 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
11731
11732 * font.c (font_sort_entities, font_list_entities)
11733 (font_matching_entity, font_open_entity)
11734 (font_close_object): Change font_add_log to FONT_ADD_LOG.
11735 (Vfont_log): Delete static.
11736 (font_log_env_checked): Delete this variable.
11737 (font_add_log): Don't check font_log_env_checked.
11738 (font_deferred_log): Check Vfont_log.
11739 (init_font): New function.
11740
11741 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
11742
11743 * w32font.c: Change font_add_log to FONT_ADD_LOG.
11744
11745 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
11746
11747 * xfont.c: Change font_add_log to FONT_ADD_LOG.
11748
11749 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
11750 (face_for_char): Don't call font_deferred_log here.
11751 (font_for_char): Likewise.
11752
11753 2009-06-22 Chong Yidong <cyd@stupidchicken.com>
11754
11755 * w32term.c (x_draw_glyph_string): Use the glyph string's width
11756 rather than its background_width for drawing the overline and
11757 underline (Bug#489).
11758
11759 * xterm.c (x_draw_glyph_string): Use the glyph string's width
11760 rather than its background_width for drawing the overline and
11761 underline (Bug#489).
11762 (xg_default_icon_file): New variable.
11763 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
11764 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
11765
11766 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
11767 (load_overlay_strings): Remove externs.
11768 (fast_find_position): Function deleted.
11769 (mouse_face_from_buffer_pos): New function, based on
11770 fast_find_position. Correctly handle before-strings,
11771 display-strings, and after-strings (Bug#1220).
11772 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
11773
11774 2009-06-21 Chong Yidong <cyd@stupidchicken.com>
11775
11776 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
11777 (move_it_in_display_line_to, move_it_in_display_line_to)
11778 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
11779
11780 2009-06-21 Chong Yidong <cyd@stupidchicken.com>
11781
11782 * Branch for 23.1.
11783
11784 2009-06-21 Jason Rumney <jasonr@gnu.org>
11785
11786 * w32term.c (keyboard_codepage): New static variable.
11787 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
11788 (w32_read_socket) [WM_CHAR]: Use it to decode character
11789 input (bug#3237).
11790 (w32_initialize): Initialize it.
11791 (codepage_for_locale): New function.
11792
11793 2009-06-20 Ken Raeburn <raeburn@raeburn.org>
11794
11795 * process.c (status_message): Pass Faset index argument as a lisp
11796 object, so as to work with USE_LISP_UNION_TYPE.
11797
11798 2009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11799
11800 * coding.c (Ffind_coding_systems_region_internal):
11801 Cache checked characters.
11802
11803 2009-06-18 Kenichi Handa <handa@m17n.org>
11804
11805 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
11806
11807 2009-06-18 Andreas Schwab <aschwab@redhat.com>
11808
11809 * xdisp.c (redisplay_internal): Check that the frame is still
11810 live after redisplay of its windows.
11811 (redisplay_windows): Check that the window is still live.
11812
11813 2009-06-17 Andreas Schwab <schwab@linux-m68k.org>
11814
11815 * coding.c (detect_coding_utf_16): Fix previous change.
11816
11817 2009-06-16 Kenichi Handa <handa@m17n.org>
11818
11819 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
11820 UTF-16 by checking the dispersion of Eth and Oth bytes.
11821
11822 2009-06-15 Andreas Schwab <schwab@linux-m68k.org>
11823
11824 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
11825
11826 2009-06-15 Kenichi Handa <handa@m17n.org>
11827
11828 * process.c (status_message): Fix previous change. Be sure to
11829 decode a localized string.
11830
11831 2009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11832
11833 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
11834 add comment explaining why.
11835
11836 2009-06-14 Sidney Markowitz <sidney@sidney.com>
11837
11838 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
11839
11840 2009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
11841
11842 * nsfont.m (ns_attribute_value): Remove.
11843 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
11844 (ns_has_attribute): Shrink the normal range.
11845 (ns_findfonts): Don't worry about requested spec in determining
11846 need for synthItal.
11847 (ns_get_covering_families): Retain scriptToFamilies.
11848
11849 2009-06-14 Seiji Zenitani <zenitani@mac.com>
11850
11851 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
11852
11853 2009-06-11 Kenichi Handa <handa@m17n.org>
11854
11855 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
11856 overhang for the static composition case.
11857
11858 2009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11859
11860 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
11861 overhang for the automatic composition case.
11862
11863 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
11864 composition case.
11865
11866 2009-06-10 Chong Yidong <cyd@stupidchicken.com>
11867
11868 * xdisp.c (get_next_display_element): When handling wrap-prefix
11869 and line-prefix, treat \n as a control character (bug#3502).
11870
11871 2009-06-10 Kenichi Handa <handa@m17n.org>
11872
11873 * font.c (font_parse_family_registry): Fix for one-char foundry.
11874 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
11875
11876 2009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
11877
11878 * process.c (status_message): Fix handling of multibyte signal
11879 string (Bug#3499).
11880
11881 2009-06-09 Jim Meyering <meyering@redhat.com>
11882
11883 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
11884 color name is missing.
11885
11886 2009-06-09 Kenichi Handa <handa@m17n.org>
11887
11888 * charset.c (Fmap_charset_chars): In docstring, state clearly that
11889 FROM-CODE and TO-CODE are codepoints of CHARSET.
11890
11891 2009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
11892
11893 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
11894
11895 2009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
11896
11897 Changes to support :script/:lang/:otf in NS font driver.
11898 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
11899 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
11900 indicate not part of font driver interface, and change callers.
11901 (ns_get_family): Remove pointless null check.
11902 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
11903 ns_spec_to_descriptor, ns_descriptor_to_entity.
11904 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
11905 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
11906 (ns_spec_to_descriptor, ns_descriptor_to_entity)
11907 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
11908 (ns_get_req_script, ns_accumulate_script_ranges)
11909 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
11910 New functions.
11911 (nsfont_list, nsfont_match): Use ns_findfonts.
11912 (nsfont_open): Use font descriptor instead of traits.
11913 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
11914 (dump_glyphstring): Rename to ns_dump_glyphstring.
11915
11916 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
11917
11918 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
11919
11920 * fontset.c (fontset_from_font): Remove NS-specific code.
11921
11922 2009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
11923
11924 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
11925 nonactive windows.
11926
11927 2009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
11928
11929 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
11930
11931 2009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
11932
11933 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
11934
11935 2009-06-07 Chong Yidong <cyd@stupidchicken.com>
11936
11937 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
11938 account for the overflowing of newlines into the last glyph on the
11939 display line (Bug#3482).
11940
11941 2009-06-05 David Reitter <david.reitter@gmail.com>
11942
11943 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
11944 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
11945 Fns_selection_exists_p, Fns_selection_owner_p.
11946
11947 2009-06-03 Jason Rumney <jasonr@gnu.org>
11948
11949 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
11950 available. (Bug#3379)
11951
11952 2009-05-29 Kenichi Handa <handa@m17n.org>
11953
11954 * coding.c (get_translation_table):
11955 Check Venable_character_translation.
11956
11957 2009-05-26 David Reitter <david.reitter@gmail.com>
11958
11959 * nsterm.m (ns_raise_frame): Only raise frame if visible.
11960 (x_make_frame_visible): Move frame to front rather than calling
11961 ns_raise_frame().
11962 (keyDown:): Do not swallow events that aren't re-sent if frame
11963 isn't key window.
11964 (drawRect:): Do not set visibility/iconified flags because
11965 drawRect may be called by NSView even if the frame is hidden.
11966
11967 * nsfns.m (Fx_create_frame): Follow other ports in
11968 determining visibility; default to t. Ensure async_visible is set.
11969
11970 2009-05-23 Eli Zaretskii <eliz@gnu.org>
11971
11972 * dired.c (Ffile_attributes): Doc fix.
11973
11974 2009-05-22 Chong Yidong <cyd@stupidchicken.com>
11975
11976 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
11977
11978 2009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
11979
11980 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
11981 and xfont_scratch_props.
11982 (syms_of_xfont): Do it here instead.
11983 (xfont_find_ccl_program): Delete, unused.
11984 (xfont_open): Delete unused var `i'.
11985
11986 2009-05-21 Kenichi Handa <handa@m17n.org>
11987
11988 * fontset.c (Qlatin): Don't make it static.
11989
11990 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
11991 New functions.
11992 (xfont_scripts_cache, xfont_scratch_props): New variables.
11993 (Qlatin, Vscalable_fonts_allowed): Extern it.
11994 (xfont_list_pattern): Argument changed. Callers changed.
11995 Check Vscalable_fonts_allowed. Check the support of a script.
11996 (xfont_list): Don't reject a font spec with :script property.
11997 (xfont_has_char): Fix setting of encoding.
11998 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
11999 xfont_scratch_props.
12000
12001 2009-05-19 Kenichi Handa <handa@m17n.org>
12002
12003 * font.c (font_sort_entities): Rename from font_sort_entites.
12004 Callers changed.
12005
12006 2009-05-18 Kenichi Handa <handa@m17n.org>
12007
12008 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
12009
12010 2009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
12011
12012 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
12013 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
12014
12015 2009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12016
12017 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
12018 (x_delete_terminal): Dissociate resource database from display and
12019 then call XrmDestroyDatabase before closing display.
12020
12021 2009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
12022
12023 * nsterm.m (ns_read_socket): Remove unused variable.
12024 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
12025 whether selected frame is viable before raising it (based on patch
12026 by David Reitter), and improve commentary.
12027 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
12028
12029 2009-05-15 Kenichi Handa <handa@m17n.org>
12030
12031 * font.c (Ffont_spec): Check arguments.
12032
12033 2009-05-14 Chong Yidong <cyd@stupidchicken.com>
12034
12035 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
12036 weight when testing attributes (Bug#3282).
12037
12038 2009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12039
12040 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
12041 what we expect to get in the next ConfigureNotify event.
12042
12043 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
12044 before Xft one (Bug#1696).
12045
12046 2009-05-07 David Reitter <david.reitter@gmail.com>
12047
12048 * nsfns.m (Fx_display_planes): Compute bitplanes using
12049 NSBitsPerPixelFromDepth (Bug#3207).
12050
12051 2009-05-10 Chong Yidong <cyd@stupidchicken.com>
12052
12053 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
12054
12055 2009-05-10 Ulrich Mueller <ulm@gentoo.org>
12056
12057 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
12058
12059 2009-05-07 David Reitter <david.reitter@gmail.com>
12060
12061 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
12062 Respect mouse face background.
12063
12064 2009-05-07 David Reitter <david.reitter@gmail.com>
12065
12066 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
12067 Mouse movement/highlight: bracket drawing operations
12068 in ns_update_begin and ns_update_end.
12069
12070 2009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
12071
12072 * nsfns.m (ns_get_screen): Rewrite.
12073 Don't presume selected-frame is of type `ns'.
12074
12075 * font.c (font_update_drivers): Sanity fallback to avoid disabling
12076 all drivers.
12077
12078 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
12079
12080 2009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12081
12082 * keyboard.h (add_user_signal): Fix typo in extern.
12083
12084 * lisp.h (add_user_signal): Remove extern.
12085
12086 * unexelf.c (unexec): Consider a section to precede the .bss section
12087 if its addresses overlap that of .bss.
12088 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
12089 instead of dumping process.
12090
12091 2009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
12092
12093 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
12094
12095 2009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
12096
12097 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
12098
12099 2009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
12100
12101 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
12102 any statements.
12103
12104 2009-05-02 Andreas Schwab <schwab@linux-m68k.org>
12105
12106 * process.c (read_process_output): Make sure the current buffer is
12107 always restored.
12108
12109 * coding.c (record_conversion_result): Don't modify
12110 Vlast_code_conversion_error for successful result.
12111 (alloc_destination): Don't clobber conversion result. (Bug#1650)
12112
12113 2009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
12114
12115 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
12116 (load_charset_map): Remove unnecessary code.
12117
12118 2009-04-30 David Reitter <david.reitter@gmail.com>
12119
12120 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
12121 through f24.
12122
12123 2009-04-30 Chong Yidong <cyd@stupidchicken.com>
12124
12125 * xfaces.c (face_at_buffer_position): New arg base_face_id.
12126
12127 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
12128 face_at_buffer_position.
12129 (face_before_or_after_it_pos, get_next_display_element)
12130 (note_mouse_highlight): Update face_at_buffer_position call.
12131
12132 * term.c (term_mouse_highlight):
12133 * msdos.c (IT_note_mouse_highlight):
12134 * fontset.c (Finternal_char_font):
12135 * font.c (font_at, font_range): Update face_at_buffer_position call.
12136
12137 * dispextern.h (face_at_buffer_position): Update prototype.
12138
12139 2009-04-30 Kenichi Handa <handa@m17n.org>
12140
12141 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
12142
12143 2009-04-29 Andreas Schwab <schwab@linux-m68k.org>
12144
12145 * callproc.c (Fcall_process): Fix GC protection. Make sure
12146 current buffer is always restored.
12147
12148 2009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12149
12150 * atimer.c (init_atimer): Also clear stopped_atimers.
12151
12152 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
12153
12154 * process.c (create_process): Clean up merger residues of
12155 2008-07-17 change.
12156
12157 2009-04-29 Ulrich Mueller <ulm@gentoo.org>
12158
12159 * lread.c (Vread_circle): New variable.
12160 (read1): Disable recursive read if Vread_circle is nil.
12161
12162 2009-04-29 Kenichi Handa <handa@m17n.org>
12163
12164 * fontset.h (set_default_ascii_font): Delete extern.
12165
12166 * fontset.c (set_default_ascii_font): Delete this unused function.
12167
12168 * frame.c (x_set_font): When ARG is a font-object, check if the
12169 font-object matches with the ASCII font-spec of the frame's
12170 fontset. If not, create a new fontset for the frame. (Bug #3075)
12171
12172 2009-04-28 Andreas Schwab <schwab@linux-m68k.org>
12173
12174 * fns.c (Flocale_info): Protect vector from GC during decoding.
12175
12176 * process.c (Fstart_process): Protect argv strings from GC during
12177 encoding.
12178
12179 2009-04-27 Andreas Schwab <schwab@linux-m68k.org>
12180
12181 * sysdep.c: Include <ctype.h>.
12182
12183 2009-04-27 David Reitter <david.reitter@gmail.com>
12184
12185 * nsfont.m (nsfont_open): Remove unused variable shrink.
12186 Remove commented-out code.
12187
12188 2009-04-26 Johan Bockgård <bojohan@gnu.org>
12189
12190 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
12191
12192 2009-04-25 Jason Rumney <jasonr@gnu.org>
12193
12194 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
12195
12196 2009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12197
12198 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
12199 Swap bytes in short integer if fringe bitmap width > 8.
12200
12201 2009-04-23 Kenichi Handa <handa@m17n.org>
12202
12203 * xfaces.c (Fx_list_fonts): If a font size is specified in
12204 PATTERN, set it in returned scalable fonts.
12205
12206 2009-04-22 Chong Yidong <cyd@stupidchicken.com>
12207
12208 * keyboard.c (Fset_input_meta_mode): Doc fix.
12209
12210 * dispnew.c (Fsend_string_to_terminal): Doc fix.
12211
12212 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
12213
12214 * coding.c (Fterminal_coding_system): Doc fix.
12215
12216 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
12217 (Fx_display_pixel_height, Fx_display_planes)
12218 (Fx_display_color_cells, Fx_server_max_request_size)
12219 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
12220 (Fx_display_mm_height, Fx_display_mm_width)
12221 (Fx_display_backing_store, Fx_display_visual_class)
12222 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
12223 Doc fixes, replacing "terminal id" with "terminal object".
12224 (check_x_display_info): Handle terminal objects instead of
12225 terminal ids.
12226
12227 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
12228 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
12229 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
12230 Doc fixes, replacing "terminal id" with "terminal object".
12231
12232 2009-04-21 Kenichi Handa <handa@m17n.org>
12233
12234 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
12235 (font_score): Check AVGWIDTH too.
12236
12237 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
12238 worst case.
12239 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
12240 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
12241
12242 2009-04-19 Jason Rumney <jasonr@gnu.org>
12243
12244 The following changes fix Bug#3005 for wide glyphs on each platform,
12245 without reintroducing Bug#1258 for stretch glyphs.
12246
12247 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
12248 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
12249 get_phys_cursor_geometry.
12250
12251 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
12252 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
12253 using get_phys_cursor_geometry.
12254
12255 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
12256 correctly calculated.
12257
12258 2009-04-19 Jan Djärv <jan.h.d@swipnet.se>
12259
12260 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
12261 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
12262 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
12263 is deprecated.
12264
12265 2009-04-18 Andreas Schwab <schwab@linux-m68k.org>
12266
12267 * font.c (font_put_frame_data): Use xfree instead of free.
12268
12269 2009-04-17 Juanma Barranquero <lekktu@gmail.com>
12270
12271 * w32font.c (Qja, Qko): Remove declarations.
12272 (syms_of_w32font): Don't DEFSYM them.
12273
12274 2009-04-17 Chong Yidong <cyd@stupidchicken.com>
12275
12276 * font.c (Qja, Qko): Move definitions here from ftfont.c.
12277
12278 * font.h (Qja, Qko): Extern them.
12279
12280 * ftfont.c (Qja, Qko): Remove declarations.
12281
12282 * xfont.c (Qja, Qko): Remove declarations.
12283
12284 2009-04-17 Kenichi Handa <handa@m17n.org>
12285
12286 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
12287 string from a vector to handle Latin-1 characters correctly.
12288
12289 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
12290 entity even if the cache hits.
12291
12292 2009-04-16 Andreas Schwab <schwab@linux-m68k.org>
12293
12294 * search.c (boyer_moore): Use zero as marker value for a possible
12295 match instead of depending on overflow behavior. (Bug#2844)
12296
12297 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
12298 * lisp.h: Adjust prototypes.
12299
12300 2009-04-16 Chong Yidong <cyd@stupidchicken.com>
12301
12302 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
12303 change (Bug#3003).
12304
12305 2009-04-16 Kenichi Handa <handa@m17n.org>
12306
12307 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
12308
12309 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
12310 adstyle.
12311
12312 * ftfont.c (Qja, Qko): Don't make them static.
12313 (enum ftfont_cache_for): New enum.
12314 (fc_charset_table): Undo the previous change.
12315 (ftfont_get_latin1_charset): Delete it.
12316 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
12317 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
12318 non-scarable font, try to get AVERAGE_WIDTH.
12319 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
12320 Change ft_face_cache from a list of a hash-table. Don't check
12321 `ja' and `ko' adstyle here.
12322 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
12323 FTFONT_CACHE_FOR_CHARET.
12324 (ftfont_get_charset): Undo the previous change.
12325 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
12326 (ftfont_close): Likewise.
12327 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
12328
12329 * font.c (font_sort_entites): Change the meaning of the arg
12330 BEST-ONLY. Don't optimize for VEC of lenght 1.
12331 (font_select_entity): Just return the value of font_sort_entites.
12332
12333 * xfaces.c (merge_face_vectors): Reflect font properties in
12334 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
12335 font_clear_prop if a face attribute doesn't change.
12336
12337 * charset.h (charset_ksc5601): Extern it.
12338
12339 * charset.c (charset_ksc5601): New variable.
12340 (Fdefine_charset_internal): Set charset_ksc5601.
12341 (init_charset_once): Initialize charset_ksc5601 to -1.
12342
12343 2009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
12344
12345 * fileio.c (history_delete_duplicates): Remove unused declaration.
12346
12347 * callint.c (history_delete_duplicates): New declaration.
12348 (Fcall_interactively): Remove command history duplicates when
12349 history_delete_duplicates is true.
12350
12351 2009-04-14 Eli Zaretskii <eliz@gnu.org>
12352
12353 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
12354
12355 2009-04-14 Kenichi Handa <handa@m17n.org>
12356
12357 * font.c (Ffont_info): Fix docstring. Fix the second element of
12358 the returned value (bug#2949).
12359
12360 2009-04-14 Chong Yidong <cyd@stupidchicken.com>
12361
12362 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
12363
12364 2009-04-14 Kenichi Handa <handa@m17n.org>
12365
12366 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
12367 encoding charset is ascii_compatible.
12368
12369 * charset.c (Fdefine_charset_internal): Make charset
12370 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
12371 code_offset is 0, and covers all ASCII characters.
12372
12373 2009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
12374
12375 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
12376 (ns_string_to_pasteboard_internal):
12377 * nsmenu.m (process_dialog):
12378 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
12379 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
12380 * lisp.h (Fx_load_color_file): Declare.
12381
12382 2009-04-13 Kenichi Handa <handa@m17n.org>
12383
12384 * font.c (font_delete_unmatched): Preserve the order of list elements.
12385 (font_select_entity): Suppress the code to optimize for the same
12386 kind of fonts.
12387 (font_load_for_lface): Get a font that supports at least ASCII
12388 characters.
12389
12390 * ftfont.c (Qja, Qko): New variables.
12391 (fc_charset_table): Delete uniquifier data for iso8859-1.
12392 (ftfont_get_latin1_charset): New function.
12393 (get_adstyle_property): New function.
12394 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
12395 bitmap fonts.
12396 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
12397 Delete iso-8859-1 range from the charset of fonts whose adstyle is
12398 `ko' or `ja'.
12399 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
12400 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
12401 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
12402 property.
12403 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
12404 (syms_of_ftfont): DEFSYM Qja and Qko.
12405
12406 2009-04-09 Kenichi Handa <handa@m17n.org>
12407
12408 * charset.c (map_charset_chars): For a charset of `superset'
12409 method, fix calculation of code range.
12410
12411 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
12412 from the list of extra properties.
12413 (font_clear_prop): Be sure to delete `:name' font property.
12414
12415 2009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12416
12417 * dispnew.c (redraw_overlapping_rows): Fix detection of
12418 overlapping for topmost and bottommost rows.
12419
12420 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
12421
12422 2009-04-06 Jason Rumney <jasonr@gnu.org>
12423
12424 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
12425
12426 2009-04-06 Kenichi Handa <handa@m17n.org>
12427
12428 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
12429
12430 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
12431
12432 2009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12433
12434 * ftfont.c (ftfont_open): Fix checking of the return value of
12435 FT_Load_Char. Fix setting font->underline_thickness.
12436
12437 2009-04-04 Chong Yidong <cyd@stupidchicken.com>
12438
12439 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
12440 (Fterminal_parameters, Fterminal_parameter)
12441 (Fset_terminal_parameter): In doc string, refer to terminal
12442 objects rather than terminal ids.
12443
12444 2009-04-04 Eli Zaretskii <eliz@gnu.org>
12445
12446 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
12447 ret_lim_data. (Bug#2867)
12448
12449 2009-04-03 Chong Yidong <cyd@stupidchicken.com>
12450
12451 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
12452 so they don't get wider than the window, matching 2006-01-23
12453 change to the partner function in xdisp.c (Bug#2800).
12454
12455 2009-04-03 Kenichi Handa <handa@m17n.org>
12456
12457 * print.c (print_object): Make each lowest sub_char_table start a
12458 new line (Bug#2866).
12459
12460 2009-04-02 Kenichi Handa <handa@m17n.org>
12461
12462 * fontset.c (fontset_font): Record no-font when a fontset
12463 explicitly tells not to try another font-specs.
12464
12465 2009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
12466
12467 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
12468
12469 2009-03-30 Kenichi Handa <handa@m17n.org>
12470
12471 * fontset.c (fontset_from_font): Specify only registry in a
12472 font-spec for all characters supported by that registry.
12473
12474 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
12475 even if HAVE_M17N_FLT is not defined.
12476
12477 2009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
12478
12479 * ftfont.c: Conditionalize prototyping and use of
12480 ftfont_variation_glyphs.
12481
12482 2009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
12483
12484 * frame.c (delete_frame): Work around compiler bug.
12485
12486 * editfns.c (general_insert_function): Adjust to insdel.c changes.
12487 * insdel.c (prepare_to_modify_buffer, signal_before_change):
12488 Some more EMACS_INT.
12489 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
12490
12491 * xdisp.c (dump_glyph): Fix typo.
12492
12493 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
12494 (adjust_markers_gap_motion, adjust_markers_for_delete)
12495 (adjust_markers_for_insert, adjust_point)
12496 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
12497 (make_gap, copy_text, count_size_as_multibyte, insert)
12498 (insert_and_inherit, insert_before_markers)
12499 (insert_before_markers_and_inherit, insert_1)
12500 (count_combining_before, count_combining_after, insert_1_both)
12501 (insert_from_string, insert_from_string_before_markers)
12502 (insert_from_string_1, insert_from_gap, insert_from_buffer)
12503 (insert_from_buffer_1, adjust_after_replace)
12504 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
12505 (replace_range_2, del_range, del_range_1, del_range_byte)
12506 (del_range_both, del_range_2, modify_region)
12507 (prepare_to_modify_buffer, signal_before_change)
12508 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
12509 for buffer positions and sizes.
12510 * lisp.h: Adjust prototypes accordingly.
12511
12512 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
12513 (non_regular_inserted, non_regular_nbytes, read_non_regular)
12514 (Finsert_file_contents): Use EMACS_INT for buffer positions.
12515
12516 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
12517
12518 2009-03-27 Jan Djärv <jan.h.d@swipnet.se>
12519
12520 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
12521 lines and columns so we keep the same pixel height and width.
12522
12523 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
12524 the property _NET_WM_STATE has changed.
12525 (x_handle_net_wm_state): New function to update frame parameter
12526 fullscreen.
12527 (x_term_init): Initialize atoms for _NET_WM_STATE.
12528
12529 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
12530
12531 2009-03-27 Kevin Ryde <user42@zip.com.au>
12532
12533 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
12534 Gpm_GetEvent as an error that justifies closing the filedescriptor.
12535 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
12536 (Fgpm_mouse_stop): Pass that new parameter.
12537 * termhooks.h (close_gpm): Adjust prototype.
12538
12539 2009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
12540
12541 * lisp.h (Fx_focus_frame): Declare.
12542
12543 * callint.c (Fcall_interactively): For '^' just delegate the work to
12544 handle-shift-selection.
12545 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
12546
12547 2009-03-24 Chong Yidong <cyd@stupidchicken.com>
12548
12549 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
12550
12551 * data.c (Qinteractive_form): New variable.
12552 (Finteractive_form): Use it.
12553
12554 * eval.c (Fcommandp): Use Qinteractive_form.
12555
12556 2009-03-24 Jason Rumney <jasonr@gnu.org>
12557
12558 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
12559 Calculate total size precisely. Decode environment variables
12560 before substituting. (Bug#38)
12561
12562 2009-03-24 Kenichi Handa <handa@m17n.org>
12563
12564 * font.c (find_font_encoding): Return Qnil for unsupported
12565 encoding (Bug#2722).
12566
12567 2009-03-23 Jan Djärv <jan.h.d@swipnet.se>
12568
12569 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
12570 that gdpy is set.
12571
12572 2009-03-22 Alan Mackenzie <acm@muc.de>
12573
12574 * callint.c (Finteractive): Clarify the doc string - even
12575 promptless elements need \n separators.
12576
12577 2009-03-22 Jason Rumney <jasonr@gnu.org>
12578
12579 * w32term.c (syms_of_w32term): Doc fix for
12580 x-use-underline-position-properties.
12581
12582 2009-03-21 Eli Zaretskii <eliz@gnu.org>
12583
12584 * w32.c (getpwuid): Change argument type to unsigned.
12585 (struct w32_id): Change type of `rid' member to unsigned.
12586 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
12587 argument ID to unsigned. All callers changed.
12588 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
12589
12590 2009-03-20 Eli Zaretskii <eliz@gnu.org>
12591
12592 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
12593 negative, produce a float value.
12594
12595 * dired.c (make_uid, make_gid): New functions.
12596 (Ffile_attributes): Use them to avoid negative UID and GID.
12597
12598 2009-03-20 Juanma Barranquero <lekktu@gmail.com>
12599
12600 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
12601 (syms_of_keyboard) <command-hook-internal, input-method-function>:
12602 Fix typos in docstrings.
12603
12604 2009-03-19 Kenichi Handa <handa@m17n.org>
12605
12606 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
12607 changed, use font_load_for_lface to get a new font object.
12608 Call free_realized_fontset after handling ASCII font change.
12609
12610 * frame.c (x_set_font): Handle the case that ARG is a cons.
12611
12612 2009-03-19 Glenn Morris <rgm@gnu.org>
12613
12614 * fileio.c (Fsubstitute_in_file_name): Doc fix.
12615
12616 2009-03-19 Chong Yidong <cyd@stupidchicken.com>
12617
12618 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
12619
12620 2009-03-19 Kenichi Handa <handa@m17n.org>
12621
12622 * charset.c (load_charset_map_from_file): When a mapfile can't be
12623 loaded, signal an error.
12624
12625 2009-03-18 Eli Zaretskii <eliz@gnu.org>
12626
12627 * dired.c (Ffile_attributes): Make sure UID and GID are always
12628 positive, even if the value is too large for a positive EMACS_INT.
12629 Doc fix.
12630
12631 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
12632
12633 2009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12634
12635 * xmenu.c (xdialog_show): Move Fredisplay call ...
12636 (Fx_popup_dialog): ... here.
12637
12638 2009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
12639
12640 * dired.c (file_name_completion): Disable the first optimization just
12641 installed, since it is not implemented correctly.
12642
12643 2009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
12644
12645 * dired.c (file_name_completion): Check completion-ignored-extensions
12646 only if the entry can affect bestmatch.
12647 Stop the search early, as Ftry_completion already does.
12648
12649 2009-03-17 Chong Yidong <cyd@stupidchicken.com>
12650
12651 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
12652
12653 2009-03-15 Chong Yidong <cyd@stupidchicken.com>
12654
12655 * keyboard.c (parse_menu_item): Don't display remappings as menu
12656 equivalent bindings (Bug#788).
12657
12658 2009-03-15 Jason Rumney <jasonr@gnu.org>
12659
12660 * w32term.h (WM_EMACS_PAINT): New message.
12661 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
12662 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
12663 before passing to lisp thread. (Bug#950)
12664
12665 2009-03-14 David Reitter <david.reitter@gmail.com>
12666
12667 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
12668 variable as it was never reset.
12669 (ns_term_init): Remove initialization of Lisp-settable defaults
12670 and ns_expand_space.
12671 (-setPanelFromDefaultValues): Remove ns_expand_space.
12672 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
12673 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
12674 i.e. no additional spacing, similar to Carbon port.
12675
12676 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
12677 * nsfns.m (ns-popup-prefs-panel): Remove.
12678
12679 2009-03-14 Jan Djärv <jan.h.d@swipnet.se>
12680
12681 * sound.c (alsa_configure): Remove call to deprecated
12682 snd_pcm_sw_params_set_xfer_align.
12683
12684 2009-03-14 Stephen Berman <stephen.berman@gmx.net>
12685
12686 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
12687 after clicking in a detached tool bar.
12688 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
12689
12690 2009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
12691
12692 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
12693 int/Lisp_Object mixup).
12694
12695 2009-03-13 Kenichi Handa <handa@m17n.org>
12696
12697 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
12698 Handle NAME nil and t correctly. Callers changed.
12699 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
12700 (set_fontset_font): Change ARG to a vector. Handle range_list in
12701 ARG correctly.
12702 (Fset_fontset_font): Fix the case that TARGET is both a script
12703 name and charset name. Adjust the arg to set_fontset_font for
12704 the above change.
12705 (fontset_from_font): Fix previous change.
12706 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
12707 entry. If FONTSET is the default fontset, don't set the extra
12708 slot of the returning char-table.
12709
12710 2009-03-12 Juanma Barranquero <lekktu@gmail.com>
12711
12712 * nsfns.m (Fx_close_connection): Doc fix.
12713 (Fns_do_applescript): Reflow docstring.
12714 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
12715 (Fx_display_pixel_width, Fx_display_pixel_height)
12716 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
12717 Fix typos in docstrings.
12718 (Fns_set_alpha): Fix typos in error messages.
12719
12720 2009-03-12 David Reitter <david.reitter@gmail.com>
12721
12722 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
12723 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
12724 were used for such events.
12725
12726 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
12727 (toggleToolbar, performDragOperation, runHelp): Use it.
12728
12729 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
12730 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
12731
12732 2009-03-11 Kenichi Handa <handa@m17n.org>
12733
12734 * font.h (font_open_by_spec): Extern it.
12735
12736 * font.c (font_open_by_spec): New function.
12737 (font_open_by_name): Use font_open_by_spec.
12738
12739 * frame.c (x_set_font): When ARG is a font-object, don't alter the
12740 fontset of the frame.
12741
12742 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
12743 modify the default font of frames that use this fontset.
12744 (num_auto_fontsets): New variable.
12745 (fontset_from_font): Use num_auto_fontsets to decide a fontset
12746 name. Be sure to set FONTSET_ASCII to the correct font name.
12747 (update_auto_fontset_alist): New function.
12748
12749 2009-03-11 Juanma Barranquero <lekktu@gmail.com>
12750
12751 * makefile.w32-in: Update dependencies.
12752
12753 2009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
12754
12755 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
12756
12757 2009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
12758
12759 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
12760
12761 2009-03-10 Chong Yidong <cyd@stupidchicken.com>
12762
12763 * lread.c (Feval_buffer): Doc fix.
12764
12765 2009-03-09 Kenichi Handa <handa@m17n.org>
12766
12767 * charset.c (Qfile_name_handler_alist): Extern it.
12768 (load_charset_map_from_file): Temporarily bind
12769 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
12770
12771 2009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
12772
12773 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
12774 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
12775
12776 2009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
12777
12778 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
12779 (x_set_window_size): Change back to calculated method of setting
12780 toolbar height under Cocoa. (Bug#2546)
12781 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
12782 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
12783
12784 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
12785
12786 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
12787 accelerator in parens under GNUstep.
12788
12789 2009-03-06 Kenichi Handa <handa@m17n.org>
12790
12791 These changes are to detect incorrect composition sequence without
12792 looking ahead the source. (Bug#2370)
12793
12794 * coding.h: Include "composite.h".
12795 (enum compisition_state): New enum.
12796 (struct compisition_status): New struct.
12797 (struct iso_2022_spec): New member cmp_status.
12798 (struct emacs_mule_spec): New struct.
12799 (struct coding_system): New members ctext_extended_segment_len and
12800 embedded_utf_8. Change the union member
12801 spec.emacs_mule_full_support to spec.emacs_mule.
12802
12803 * coding.c (CODING_ISO_CMP_STATUS): New macro.
12804 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
12805 (MAX_ANNOTATION_LENGTH): Define to 5.
12806 (ADD_COMPOSITION_DATA): New arg nbytes.
12807 (emacs_mule_char): New arg cmp_status.
12808 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
12809 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
12810 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
12811 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
12812 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
12813 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
12814 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
12815 (EMACS_MULE_COMPOSITION_END): New macro.
12816 (emacs_mule_finish_composition): New function.
12817 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
12818 (decode_coding_emacs_mule): Avoid long looking ahead while
12819 handling composition.
12820 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
12821 (ENCODE_COMPOSITION_RULE): New macro.
12822 (finish_composition): New function.
12823 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
12824 (DECODE_COMPOSITION_START): New implementation.
12825 (DECODE_COMPOSITION_END): Likewise.
12826 (STORE_COMPOSITION_RULE): New macro.
12827 (decode_coding_iso_2022): Avoid long looking ahead while handling
12828 composition, CTEXT extended segment, and embedded UTF-8.
12829 (setup_coding_system): For a coding of type iso-2022, reset
12830 CODING_ISO_EXTSEGMENT_LEN (coding) and
12831 CODING_ISO_EMBEDDED_UTF_8 (coding).
12832 (get_translation): Delete arguments last_block, from_nchars,
12833 to_nchars. Callers changed.
12834 (produce_chars): Don't modify charbuf. Adjusted for the change of
12835 get_translation.
12836 (produce_composition): Adjust for the new annotation sequence.
12837 (handle_composition_annotation): Likewise.
12838 (consume_chars): Adjust for the change of get_translation.
12839
12840 2009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
12841
12842 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
12843
12844 2009-03-05 Kenichi Handa <handa@m17n.org>
12845
12846 * font.c (font_select_entity): New function.
12847 (font_find_for_lface): Use font_select_entity to select a font.
12848
12849 * fontset.c (fontset_find_font): If a font found without
12850 restricting to the characters C doesn't support C, try to find a
12851 font with C restriction.
12852
12853 2009-03-04 Nikolaj Schumacher <me@nschum.de>
12854
12855 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
12856
12857 2009-03-04 Jason Rumney <jasonr@gnu.org>
12858
12859 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
12860 characters that have already been read. (Bug#2569)
12861
12862 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
12863 Log an error message if check_image_size failed.
12864 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
12865 (gs_load): Mention max-image-size in size error message. (Bug#2560)
12866
12867 2009-03-02 Eli Zaretskii <eliz@gnu.org>
12868
12869 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
12870 when decoding process output.
12871
12872 2009-03-01 Richard M Stallman <rms@gnu.org>
12873
12874 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
12875
12876 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
12877
12878 2009-02-28 Eli Zaretskii <eliz@gnu.org>
12879
12880 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
12881 (decode_coding_emacs_mule, decode_coding_iso_2022)
12882 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
12883 (decode_coding_raw_text, decode_coding_charset)
12884 (setup_coding_system, decode_eol, decode_coding, consume_chars):
12885 Honor inhibit-eol-conversion. (Bug #2186)
12886
12887 2009-02-28 Jason Rumney <jasonr@gnu.org>
12888
12889 * coding.c (detect_coding_charset): If not checking latin extra,
12890 fail on characters between 0x80 and 0xA0. (Bug#2354)
12891
12892 2009-02-28 Eli Zaretskii <eliz@gnu.org>
12893
12894 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
12895 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
12896
12897 2009-02-27 Glenn Morris <rgm@gnu.org>
12898
12899 * callint.c (Finteractive): Doc fix.
12900
12901 2009-02-27 Kenichi Handa <handa@m17n.org>
12902
12903 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
12904
12905 2009-02-27 Chong Yidong <cyd@stupidchicken.com>
12906
12907 * font.c (font_style_to_value): Set value for unknown symbols to
12908 100 instead of 255.
12909 (weight_table, slant_table, width_table): Treat "unspecified" as
12910 the default value.
12911
12912 2009-02-26 Juanma Barranquero <lekktu@gmail.com>
12913
12914 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
12915
12916 2009-02-25 Juanma Barranquero <lekktu@gmail.com>
12917
12918 * lread.c (Fload): Stop checking Vloads_in_progress and signal
12919 error as soon as a recursive load is detected.
12920
12921 2009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
12922
12923 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
12924 before caching.
12925
12926 2009-02-24 Kenichi Handa <handa@m17n.org>
12927
12928 * fontset.c (fontset_find_font): Fix the condition for checking
12929 unavailable font.
12930
12931 2009-02-24 Glenn Morris <rgm@gnu.org>
12932
12933 * xfaces.c (Finternal_set_font_selection_order): Remove leading
12934 whitespace that confuses documentation.
12935
12936 2009-02-23 Miles Bader <miles@gnu.org>
12937
12938 * process.c (Flist_system_processes, Fprocess_attributes)
12939 (syms_of_process): Rename `system-process-attributes' to
12940 `process-attributes'.
12941
12942 2009-02-22 Andreas Schwab <schwab@linux-m68k.org>
12943
12944 * coding.h (struct coding_system): Make safe_charsets a pointer to
12945 unsigned char.
12946 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
12947 being 255.
12948 (SAFE_CHARSET_P): Likewise.
12949 (setup_iso_safe_charsets): Properly setup safe_charsets.
12950 (Fdefine_coding_system_internal): Likewise.
12951 (setup_coding_system): Likewise. Remove unneeded casts.
12952 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
12953 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS.
12954 Remove unneeded casts.
12955
12956 * insdel.c (del_range_2): Don't modify gap contents when called
12957 from decode_coding_object. (Bug#1809)
12958
12959 2009-02-21 Chong Yidong <cyd@stupidchicken.com>
12960
12961 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
12962 Qfont_object.
12963 (Ftype_of): Recognize font objects.
12964
12965 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
12966
12967 * font.c (Qfont_spec, Qfont_entity, Qfont_object):
12968 Definitions moved to data.c.
12969
12970 2009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
12971
12972 * nsterm.m (x_make_frame_invisible): Unset async_visible,
12973 async_iconified. Based on a patch by Christian Lynbech
12974 <christian.lynbech@tieto.com>.
12975 (EmacsView-windowDidMiniaturize:): Unset async_visible.
12976
12977 2009-02-20 Glenn Morris <rgm@gnu.org>
12978
12979 * syntax.c (Fskip_chars_forward): Fix doc typo.
12980
12981 2009-02-20 Chong Yidong <cyd@stupidchicken.com>
12982
12983 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
12984
12985 2009-02-19 Chong Yidong <cyd@stupidchicken.com>
12986
12987 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
12988
12989 2009-02-19 Kenichi Handa <handa@m17n.org>
12990
12991 * coding.c (detect_coding): Preserve coding->mode.
12992 Don't overflow coding->carryover. (Bug#2370)
12993
12994 2009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
12995
12996 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
12997
12998 2009-02-18 Kenichi Handa <handa@m17n.org>
12999
13000 * font.c (font_check_otf_features): Fix handling of `nil' element.
13001 (Ffont_spec): Describe :lang and :otf in the docstring.
13002
13003 2009-02-16 Andreas Schwab <schwab@suse.de>
13004
13005 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
13006 string.
13007
13008 2009-02-16 Kenichi Handa <handa@m17n.org>
13009
13010 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
13011 (Bug#1723)
13012
13013 2009-02-14 Chong Yidong <cyd@stupidchicken.com>
13014
13015 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
13016
13017 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
13018 (handle_line_prefix): Suppress wrapping of wrap prefixes.
13019
13020 2009-02-14 Eli Zaretskii <eliz@gnu.org>
13021
13022 * msdos.c (MAX_SCREEN_BUF): New macro.
13023 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
13024 Encode the entire run of glyphs sharing the same face, instead of
13025 doing that one glyph at a time (fixes a bug with displaying
13026 double-size characters).
13027
13028 2009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
13029
13030 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
13031
13032 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
13033 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
13034 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
13035
13036 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
13037 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
13038
13039 2009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
13040
13041 * keyboard.c (adjust_point_for_property): Allow stopping between two
13042 invisible areas.
13043
13044 2009-02-12 Jason Rumney <jasonr@gnu.org>
13045
13046 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
13047 (add_font_entity_to_list): Call check_face_name even when family
13048 is unspecified.
13049
13050 * w32term.c (x_display_pixel_height, x_display_pixel_width):
13051 Release DC when finished. Use NULL window to refer to desktop.
13052 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
13053
13054 * w32font.c (add_font_entity_to_list): Fix check for substituted
13055 raster fonts. (Bug#2219)
13056
13057 2009-02-12 Kenichi Handa <handa@m17n.org>
13058
13059 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
13060 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
13061 (autocmp_chars): Use fast_looking_at. Don't compose more
13062 characters than MAX_COMPOSITION_COMPONENTS.
13063 (find_automatic_composition): While looking forward and backward,
13064 check static composition. Fix where to stop looking forward.
13065 (composition_adjust_point): Fix checking of static composition.
13066 (Fcomposition_get_gstring): Pay attention to
13067 MAX_COMPOSITION_COMPONENTS.
13068
13069 * lisp.h (fast_looking_at): Extern it.
13070
13071 * search.c (fast_looking_at): New function.
13072
13073 * term.c (encode_terminal_code): Adjust for the change of
13074 <struct glyph>.u.cmp.to.
13075 (append_composite_glyph): Likewise.
13076
13077 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
13078 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
13079 composition.
13080 (append_composite_glyph): Adjust for the change of
13081 <strcut glyph>.u.cmp.to.
13082
13083 2009-02-11 Juanma Barranquero <lekktu@gmail.com>
13084
13085 * casetab.c (init_casetab_once):
13086 * coding.c (ALLOC_CONVERSION_WORK_AREA):
13087 * font.c (font_update_lface):
13088 * fontset.c (Fnew_fontset):
13089 * ftfont.c (ftfont_drive_otf):
13090 * xfont.c (xfont_open):
13091 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
13092
13093 2009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
13094
13095 * fileio.c (Fwrite_region): !NILP -> CONSP.
13096
13097 2009-02-10 Andreas Schwab <schwab@suse.de>
13098
13099 * process.c (send_process): Properly relocate pointer into data
13100 when using encoded data. (Bug#2272)
13101
13102 2009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
13103
13104 * coding.c (detect_coding_charset): Fix previous change.
13105
13106 2009-02-08 Jason Rumney <jasonr@gnu.org>
13107
13108 * w32fns.c (w32_hide_hourglass): Handle case where frame
13109 disappeared while hourglass was displayed. (Bug #2193)
13110
13111 2009-02-07 Andreas Schwab <schwab@suse.de>
13112
13113 * unexelf.c (unexec): Fix error message.
13114
13115 2009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
13116
13117 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
13118 when modal window is active. (Bug #2152)
13119 (applicationShouldTerminate:): Remove now-unneeded while loop
13120 around NSRunAlertPanel.
13121
13122 * nsmenu.m (popupSession): New file-global variable.
13123 (pop_down_menu): End the popupSession before closing dialog.
13124 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
13125 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
13126 don't query NSApp for events (just sleep instead).
13127
13128 2009-02-07 Eli Zaretskii <eliz@gnu.org>
13129
13130 * coding.c (syms_of_coding) <translation-table-for-input>:
13131 Modify doc string to discourage use for character code unification.
13132
13133 2009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13134
13135 * atimer.c (run_timers): Update pending_atimers.
13136
13137 2009-02-06 Chong Yidong <cyd@stupidchicken.com>
13138
13139 * image.c (svg_load_image): Fix last change.
13140
13141 * xfns.c (Fx_create_frame): Signal an error if no font is
13142 found (Bug#2147).
13143
13144 2009-02-05 Juanma Barranquero <lekktu@gmail.com>
13145
13146 * character.c (syms_of_character) <script-representative-chars>:
13147 Fix typo in docstring.
13148
13149 2009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
13150
13151 * nsmenu.m (pop_down_menu): New function.
13152 (ns_popup_dialog): Call it on unwind.
13153 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
13154 call timer_check() (Bug#2154).
13155 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
13156 handling_signal is set.
13157 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
13158
13159 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
13160
13161 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
13162
13163 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
13164
13165 * keyboard.c (poll_for_input_1, handle_async_input):
13166 Set handling_signal under HAVE_NS.
13167
13168 2009-02-04 Glenn Morris <rgm@gnu.org>
13169
13170 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
13171
13172 2009-02-04 Kenichi Handa <handa@m17n.org>
13173
13174 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
13175
13176 * charset.c (Fchar_charset): New optional arg restriction.
13177
13178 * coding.h (coding_system_charset_list): Extern it.
13179
13180 * coding.c (coding_system_charset_list): New function.
13181
13182 * composite.c: Include coding.h and termhooks.h.
13183 (composition_gstring_p): Fix for the terminal case.
13184 (composition_gstring_width): Likewise.
13185 (fill_gstring_body): Likewise.
13186 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
13187 the frame.
13188 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
13189 is within a composition.
13190 (Fcomposition_get_gstring): Fix the terminal case.
13191
13192 * term.c (encode_terminal_code): Fix handling of composition.
13193 (produce_composite_glyph): For static composition, get pixel_width
13194 from struct composition.
13195
13196 2009-02-02 Andreas Schwab <schwab@suse.de>
13197
13198 * unexelf.c (unexec): Handle unaligned bss offset.
13199
13200 2009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
13201
13202 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
13203 XT,w32read_socket changes to ns_read_socket.
13204
13205 * keyboard.c (handle_interrupt): Don't call
13206 quit_throw_to_read_char() under NS.
13207
13208 * blockinput.h: Remove NS-specific code.
13209
13210 2009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
13211
13212 * dispnew.c (window_change_signal): Don't try to get the size of a
13213 suspended tty frame.
13214 * term.c (Fresume_tty): Resize if the size has changed while the
13215 tty was suspended.
13216
13217 * alloc.c (mark_stack): Properly conditionalize previous change.
13218
13219 2009-01-30 Juanma Barranquero <lekktu@gmail.com>
13220
13221 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
13222 * w32term.c (w32_read_socket) [SYNC_INPUT]:
13223 Remove; this code is not used on Windows.
13224
13225 2009-01-30 Eli Zaretskii <eliz@gnu.org>
13226
13227 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
13228 EOLs that also has stray ^M characters.
13229
13230 2009-01-30 Juanma Barranquero <lekktu@gmail.com>
13231
13232 * atimer.c (run_timers, alarm_signal_handler):
13233 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
13234 * w32inevt.c (w32_console_read_socket):
13235 * w32term.c (w32_read_socket):
13236 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
13237
13238 2009-01-30 Chong Yidong <cyd@stupidchicken.com>
13239
13240 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
13241 Initialize it as a relative filename pattern.
13242 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
13243 (Fcall_process_region): Simplify temp file creation using
13244 temporary-file-directory.
13245
13246 2009-01-29 Eli Zaretskii <eliz@gnu.org>
13247
13248 * msdos.c: Rename pending_signals to msdos_pending_signals.
13249 (sig_suspender, sigprocmask): Adjust.
13250
13251 2009-01-29 Chong Yidong <cyd@stupidchicken.com>
13252
13253 * keyboard.c (pending_signals): New var.
13254 (poll_for_input, input_available_signal, init_keyboard): Set it.
13255 (process_pending_signals): New function.
13256
13257 * lisp.h (QUIT): Check pending_signals instead of
13258 interrupt_input_pending. Use process_pending_signals.
13259
13260 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
13261
13262 * process.c (wait_reading_process_output): Use process_pending_signals.
13263
13264 * sysdep.c (emacs_write): Use process_pending_signals.
13265
13266 * xterm.c (XTread_socket): Update pending_signals.
13267
13268 * w32term.c (w32_read_socket): Update pending_signals.
13269
13270 * w32inevt.c (w32_console_read_socket): Update pending_signals.
13271
13272 2009-01-29 Kenichi Handa <handa@m17n.org>
13273
13274 * xftfont.c (xftfont_has_char): New function.
13275 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
13276
13277 2009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
13278
13279 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
13280 under GNUstep.
13281 (ns_query_color): New declaration.
13282
13283 * nsterm.m (ns_confirm_quit): New variable.
13284 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
13285 (EmacsApp-applicationShouldTerminate:): Use it.
13286 (EmacsPrefsController): Let user set it.
13287 (ns_query_color): New function.
13288 (ns_defined_color): Use it.
13289 (ns_initialize): Drop.
13290 (ns_term_init): Add two lines from ns_initialize(), and set
13291 input_interrupt_mode to nil.
13292
13293 * image.c (svg_load_image): Don't right-shift background RGB when
13294 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
13295
13296 2009-01-28 Kenichi Handa <handa@m17n.org>
13297
13298 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
13299 (fontset_get_font_group): Remember that no font-group is specified
13300 for C.
13301
13302 2009-01-27 Chong Yidong <cyd@stupidchicken.com>
13303
13304 * fns.c (concat): Check for string overflow (bug#1787).
13305
13306 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
13307 Quadruple undo limits (bug#1501).
13308
13309 2009-01-27 Kenichi Handa <handa@m17n.org>
13310
13311 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
13312 directly use GT_Get_Char_index.
13313
13314 * xftfont.c (struct xftfont_info): New member `index'.
13315
13316 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
13317 (Ffontset_font): Adjust for the change of fontset entry.
13318
13319 2009-01-26 Kenichi Handa <handa@m17n.org>
13320
13321 * fontset.c (fontset_find_font): Fix handling of non-cons return
13322 value of fontset_get_font_group.
13323 (fontset_font): Revert last change.
13324
13325 2009-01-26 Jason Rumney <jasonr@gnu.org>
13326
13327 * w32font.c (w32font_list_internal): Return quickly if registry is
13328 unknown. Simplify final return.
13329 (add_font_entity_to_list): Break complex logic down into more
13330 manageable chunks. Move unknown registry check to
13331 w32font_list_internal.
13332
13333 2009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
13334
13335 Changes to remove Feval calls from GUI under NS.
13336
13337 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
13338 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
13339 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
13340
13341 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
13342 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
13343 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
13344 instead of NON_ASCII_KEYSTROKE_EVENT.
13345 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
13346 (EmacsApp-applicationShouldTerminate:): Query user.
13347 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
13348 instead of Feval.
13349
13350 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
13351
13352 * keyboard.c (kbd_buffer_get_event): Check for it.
13353 (keys_of_keyboard): Define lispy keys for
13354 ns-put/unput-working-text.
13355
13356 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
13357 versions.
13358 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
13359
13360 2009-01-25 Chong Yidong <cyd@stupidchicken.com>
13361
13362 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
13363 setting current_buffer directly. (Bug#2044)
13364
13365 2009-01-24 Chong Yidong <cyd@stupidchicken.com>
13366
13367 * fontset.c (fontset_font): If we know there is no font, don't do
13368 any work. (Bug#1952, bug#1990).
13369
13370 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
13371
13372 2009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
13373
13374 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
13375 (ns_no_defaults): New declaration.
13376 (main): Use it.
13377
13378 * nsterm.h (ns_no_defaults): New declaration.
13379
13380 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
13381
13382 * nsterm.m (ns_no_defaults): New variable.
13383 (ns_initialize): Don't read defaults when ns_no_defaults.
13384 (EmacsView-readSelectionFromPasteboard:)
13385 (writeSelectionToPasteboard:types:): New stubbed-out methods for
13386 NSServicesRequests protocol. (Bug#1435)
13387 (ns_dumpglyphs_stretch): New function.
13388 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
13389 of 2008-11-15 to other terms. (Bug#615)
13390
13391 * nsimage.m (setPixmapData:): Set to ignore image DPI.
13392
13393 2009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
13394
13395 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
13396 call for Sparc64.
13397
13398 2009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
13399
13400 * nsfns.m:
13401 * nsgui.h:
13402 * nsmenu.m:
13403 * nsselect.m:
13404 * nsterm.h:
13405 * nsterm.m: Remove '23' comments that indicated code added during
13406 update from emacs-20 -> emacs-23.
13407
13408 2009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
13409
13410 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
13411 ns_alternate_modifier. (Bug#1217)
13412
13413 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
13414 Display all shortcuts, including those w/o super modifier.
13415
13416 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
13417
13418 2009-01-22 Chong Yidong <cyd@stupidchicken.com>
13419
13420 * fileio.c (Vwrite_region_post_annotation_function)
13421 (Vwrite_region_annotation_buffers): New vars.
13422 (build_annotations_unwind): Just reset
13423 Vwrite_region_annotation_buffers.
13424 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
13425 Call write-region-post-annotation-function.
13426 (build_annotations): Add to Vwrite_region_annotation_buffers if
13427 buffer changes.
13428
13429 2009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
13430
13431 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
13432 Tiger.
13433 * nsfns.m (ns_do_applescript):
13434 Conditionalize typeUTF16ExternalRepresentation on Tiger.
13435
13436 2009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
13437
13438 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
13439
13440 2009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
13441
13442 * nsmenu.m (NSMENUPROFILE): Change #if style.
13443
13444 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
13445
13446 * nsterm.m (x_set_frame_alpha): Add prototype.
13447 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
13448 handle Ctrl-tab. (Bug#1841)
13449 (ns_get_color): Use unsigned long long for scanned hex string value.
13450 (ns_term_shutdown): Abort on non SIGTERM signals.
13451 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
13452 (EmacsPrefsController-setPanelFromDefaultValues): New function.
13453 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
13454 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
13455 (ns_defined_color): Fix settings of the XColor variable fields:
13456 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
13457
13458 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
13459 DPI. (Bug#1316)
13460 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
13461 values in onTiger section.
13462
13463 2009-01-19 Chong Yidong <cyd@stupidchicken.com>
13464
13465 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
13466 Check return value of font_spec_from_name.
13467 (Fx_list_fonts): Doc fix. (Bug#1951)
13468
13469 * font.c (font_spec_from_name): Return Qnil if font name could not
13470 be parsed.
13471 (font_parse_name): Treat a `?' character as part of an XLFD.
13472
13473 * fns.c (Fsubstring): Doc fix.
13474
13475 2009-01-19 Kenichi Handa <handa@m17n.org>
13476
13477 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
13478 (ftfont_list): Likewise.
13479
13480 2009-01-18 Juanma Barranquero <lekktu@gmail.com>
13481
13482 * dbusbind.c (Fdbus_register_signal):
13483 * process.c (conv_sockaddr_to_lisp):
13484 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
13485
13486 * callproc.c (Fgetenv_internal): Doc fix.
13487
13488 2009-01-16 Chong Yidong <cyd@stupidchicken.com>
13489
13490 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
13491 it is not even used.
13492
13493 2009-01-16 Glenn Morris <rgm@gnu.org>
13494
13495 * font.c (Ffont_variation_glyphs): Silence compiler.
13496
13497 2009-01-15 Juanma Barranquero <lekktu@gmail.com>
13498
13499 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
13500 Reported by David Robinow <drobinow@gmail.com>.
13501
13502 2009-01-15 Kenichi Handa <handa@m17n.org>
13503
13504 * coding.c (detect_coding_system): Fix handling of null_byte_found.
13505
13506 2009-01-14 Jason Rumney <jasonr@gnu.org>
13507
13508 * frame.c (x_set_font): Always store a font to the font parameter,
13509 never a fontset. (Bug#1562)
13510
13511 2009-01-14 Kenichi Handa <handa@m17n.org>
13512
13513 * coding.c (TWO_MORE_BYTES): New macro.
13514 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
13515
13516 2009-01-13 Chong Yidong <cyd@stupidchicken.com>
13517
13518 * font.c (font_clear_prop): If clearing the family, clear the font
13519 width index too.
13520
13521 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
13522
13523 2009-01-12 Juanma Barranquero <lekktu@gmail.com>
13524
13525 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
13526 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
13527 functions, use sizeof.
13528
13529 2009-01-12 Martin Rudalics <rudalics@gmx.at>
13530
13531 * keyboard.c (read_char): Fix case where last_nonmenu_event
13532 returned a bad value with submenus. (Bug#447)
13533
13534 2009-01-12 Chong Yidong <cyd@stupidchicken.com>
13535
13536 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
13537 family, clear the font width index too.
13538
13539 2009-01-11 Jason Rumney <jasonr@gnu.org>
13540
13541 * keyboard.c (cmd_error_internal): Exit when errors occur before
13542 frame creation and not in daemon mode. (Bug#1836)
13543
13544 2009-01-10 Chong Yidong <cyd@stupidchicken.com>
13545
13546 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
13547 of a display vector, backtrack.
13548 (try_window_reusing_current_matrix): Check glyph type before
13549 referencing charpos member.
13550
13551 2009-01-10 Eli Zaretskii <eliz@gnu.org>
13552
13553 Fix Bug #876:
13554
13555 * coding.c (inhibit_null_byte_detection): New variable.
13556 (detect_coding, detect_coding_system): Don't pay attention to null
13557 bytes if inhibit_null_byte_detection is non-zero.
13558 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
13559 <inhibit-iso-escape-detection>: Doc fix.
13560
13561 2009-01-09 Jason Rumney <jasonr@gnu.org>
13562
13563 * w32font.c (add_font_entity_to_list): Don't report unknown
13564 Windows charset as any unrecognized registry. (Bug#1548)
13565 Only report Unicode Plane 2 fonts as unicode-sip.
13566
13567 2009-01-09 Chong Yidong <cyd@stupidchicken.com>
13568
13569 * xfaces.c (Fx_font_family_list): Delete function.
13570 Move compatibility version to faces.el.
13571
13572 * font.c (Ffont_family_list): Return a list of strings, not symbols.
13573
13574 2009-01-09 Martin Rudalics <rudalics@gmx.at>
13575
13576 * frame.c (x_set_frame_parameters): Remember requested value for
13577 fullscreen before it's reset by the parameter handler.
13578
13579 2009-01-09 Glenn Morris <rgm@gnu.org>
13580
13581 * keyboard.c (last_command_char): For clarity, rename to...
13582 (last_command_event): ... and update all users.
13583 (last_input_char): For clarity, rename to...
13584 (last_input_event): ... and update all users.
13585 (last-command-char, last-input-char): Move to subr.el as aliases.
13586 * cmds.c, commands.h: Update for last_command_char rename.
13587
13588 2009-01-08 Chong Yidong <cyd@stupidchicken.com>
13589
13590 * font.c (font_open_for_lface): Handle unspecified height attribute.
13591
13592 2009-01-08 Jason Rumney <jasonr@gnu.org>
13593
13594 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
13595 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
13596 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
13597 Don't declare.
13598 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
13599 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
13600
13601 2009-01-07 Kenichi Handa <handa@m17n.org>
13602
13603 * fileio.c (Finsert_file_contents): In the case of replace,
13604 remember the coding system used for decoding in
13605 coding_system (Bug#1039).
13606
13607 * coding.c (decode_coding_utf_8): Check byte_after_cr before
13608 breaking the loop. (Bug#870)
13609 (decode_coding_utf_16, decode_coding_emacs_mule)
13610 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
13611 (decode_coding_charset): Likewise.
13612
13613 2009-01-05 Martin Rudalics <rudalics@gmx.at>
13614
13615 * frame.c (x_set_frame_parameters): Make sure height (width) get
13616 applied when fullwidth (fullheight) is set. (Bug#1522)
13617
13618 2009-01-04 Juanma Barranquero <lekktu@gmail.com>
13619
13620 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
13621 (utc_base): Declare as ULONGLONG, not long double.
13622 (convert_time_raw): Delete.
13623 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
13624 (initialize_utc_base): New function.
13625 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
13626 (convert_from_time_t): Use initialize_utc_base; compute result with
13627 64-bit arithmetic.
13628 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
13629
13630 2009-01-03 Eli Zaretskii <eliz@gnu.org>
13631
13632 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
13633 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
13634 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
13635 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
13636 [!subprocesses]: Define.
13637 (syms_of_process) [!subprocesses]: Intern and staticpro them.
13638 (Flist_system_processes, Fsystem_process_attributes)
13639 [!subprocesses]: Call list_system_processes and
13640 system_process_attributes instead of returning Qnil.
13641
13642 * dosfns.c (system_process_attributes, list_system_processes):
13643 New functions.
13644
13645 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
13646
13647 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
13648 Don't use the default (no-op) implementation.
13649
13650 2009-01-03 Jason Rumney <jasonr@gnu.org>
13651
13652 * keyboard.c (parse_modifiers_uncached): Wheel events are
13653 clicks (bug#687).
13654
13655 * w32term.c (x_query_colors, x_query_color): New functions.
13656
13657 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
13658 (svg_load_image): Cast returned pointers from dynamically loaded
13659 functions. Eliminate W32 specific code.
13660
13661 2009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
13662
13663 * nsfns.m (x_set_foreground_color, x_set_background_color)
13664 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
13665 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
13666 x_ prefix instead of ns_. Update references.
13667 (syms_of_nsfns): Add a FIXME comment.
13668
13669 * nsterm.m (x_set_cursor_type): New prototype.
13670 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
13671
13672 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
13673 for Solaris instead of incorrectly providing Qutime and Qcutime.
13674
13675 2009-01-02 Eli Zaretskii <eliz@gnu.org>
13676
13677 * w32.c (process_times): Compute sum of utime and stime.
13678 (system_process_attributes): Add Qtime to the alist.
13679
13680 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
13681 and add them to the alist.
13682
13683 * process.c (top level) <Qtime, Qctime>: New variables.
13684 (syms_of_process): staticpro them.
13685 (Fsystem_process_attributes): Add their documentation to the doc
13686 string.
13687
13688 * process.h: Declare Qtime and Qctime.
13689
13690 2009-01-02 Jason Rumney <jasonr@gnu.org>
13691
13692 * image.c (Qgobject): New symbol.
13693 (syms_of_image): Initialize it.
13694 (init_svg_functions): Load some functions from gobject library.
13695
13696 2009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
13697
13698 * frame.c (make_terminal_frame): Remove redundant code and useless
13699 block.
13700
13701 2009-01-01 Andreas Schwab <schwab@suse.de>
13702
13703 * process.c (conv_sockaddr_to_lisp): Add workaround for
13704 getsockname bug on BSD.
13705
13706 2009-01-01 Chong Yidong <cyd@stupidchicken.com>
13707
13708 * xfns.c (x_create_tip_frame): Set border width of the X window.
13709
13710 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
13711
13712 2009-01-01 Jason Rumney <jasonr@gnu.org>
13713
13714 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
13715 Don't block input, as per earlier xterm.c changes.
13716
13717 2008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
13718
13719 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
13720 (ns_appkit_version_int): New function.
13721 (x-server-version): Use ns_appkit_version_int and follow 21+
13722 convention of returning 3 integers.
13723
13724 2008-12-30 Kenichi Handa <handa@m17n.org>
13725
13726 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
13727 (CHAR_SURROGATE_PAIR_P): New macro.
13728
13729 * font.h (struct font_driver): New member get_variation_glyphs.
13730
13731 * font.c (font_range): Don't require a font for a variation selector.
13732 (Ffont_variation_glyphs): New function.
13733 (syms_of_font): Defsubr it.
13734
13735 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
13736 ftfont_variation_glyphs.
13737 (setup_otf_gstring): New function.
13738 (ftfont_drive_otf): Use it.
13739 (ftfont_shape_by_flt): Handle variation selector.
13740 (ftfont_variation_glyphs): New function.
13741
13742 2008-12-30 Martin Rudalics <rudalics@gmx.at>
13743
13744 * frame.c (Vemacs_iconified): Remove.
13745
13746 2008-12-30 Jason Rumney <jasonr@gnu.org>
13747
13748 * frame.c (store_frame_param, x_get_arg): Enable newer code on
13749 WINDOWSNT too, as related changes have already been synced. (Bug#117)
13750
13751 2008-12-30 Chong Yidong <cyd@stupidchicken.com>
13752
13753 * indent.c (Fvertical_motion): Don't advance iterator if we have
13754 reseated to the desired position.
13755
13756 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
13757 checking for pos match.
13758
13759 2008-12-30 Kenichi Handa <handa@m17n.org>
13760
13761 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
13762 just get the low 8-bit of the code.
13763
13764 * font.c (font_intern_prop): Validate str as multibyte.
13765
13766 2008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
13767
13768 * dispextern.h (struct face): Move lface and hash from the middle
13769 of bitfields.
13770
13771 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
13772
13773 2008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
13774
13775 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
13776 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
13777 instead of intervals.h.
13778
13779 2008-12-26 Andreas Schwab <schwab@suse.de>
13780
13781 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
13782 cons.
13783
13784 2008-12-26 Martin Rudalics <rudalics@gmx.at>
13785
13786 * textprop.c (Qminibuffer_prompt): New variable.
13787 (syms_of_textprop): Initialize it.
13788 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
13789 in minibuffer-prompt face. (Bug#1662)
13790
13791 2008-12-25 Jason Rumney <jasonr@gnu.org>
13792
13793 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
13794
13795 2008-12-24 Jason Rumney <jasonr@gnu.org>
13796
13797 * ralloc.c (r_alloc_reset_variable): New function.
13798
13799 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
13800 record of what points where. (Bug#716)
13801
13802 2008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
13803
13804 * minibuf.c (read_minibuf): Follow the non-interactive case when
13805 running as a daemon, before detaching.
13806
13807 2008-12-22 Andreas Schwab <schwab@suse.de>
13808
13809 * buffer.c (init_buffer): Use realloc instead of xrealloc.
13810 * gtkutil.c (free_widget_value): Use xfree instead of free.
13811
13812 2008-12-22 Martin Rudalics <rudalics@gmx.at>
13813
13814 * frame.c (delete_frame): New function derived from
13815 Fdelete_frame to handle Qnoelisp value for FORCE argument.
13816 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
13817 (Fdelete_frame): Call delete_frame. Remove line from doc-string
13818 saying that FORCE non-nil doesn't run `delete-frame-functions'.
13819 * frame.h: Extern delete_frame.
13820 * window.c (window_loop):
13821 * terminal.c (delete_terminal):
13822 * xterm.c (x_connection_closed):
13823 * xfns.c (Fx_hide_tip):
13824 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
13825
13826 2008-12-21 Jason Rumney <jasonr@gnu.org>
13827
13828 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
13829 when character maps to .notdef character.
13830
13831 2008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
13832
13833 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
13834
13835 2008-12-20 Jason Rumney <jasonr@gnu.org>
13836
13837 * frame.c (Fmake_terminal_frame): Raise an error when called from
13838 a graphical frame on Windows. (Bug#1325)
13839
13840 2008-12-20 Jan Djärv <jan.h.d@swipnet.se>
13841
13842 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
13843
13844 2008-12-20 Chong Yidong <cyd@stupidchicken.com>
13845
13846 * minibuf.c (Fread_buffer): Doc fix.
13847
13848 2008-12-20 Jason Rumney <jasonr@gnu.org>
13849
13850 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
13851 server name in UNC paths. (Bug#719)
13852
13853 * coding.c (decode_coding): Clear chars_at_source flag when using
13854 charbuf. (Bug#1035)
13855
13856 2008-12-19 Daniel Engeler <engeler@gmail.com>
13857
13858 * sysdep.c (serial_configure): Fix typo.
13859
13860 2008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
13861
13862 * sysdep.c: Include alloca.h.
13863 (system_process_attributes): Add implementation for Solaris.
13864
13865 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
13866
13867 2008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
13868
13869 Reorganize implementation of Flist_system_processes and
13870 Fsystem_process_attributes. No functional changes.
13871 * process.c: Don't #include pwd.h, grp.h and limits.h.
13872 (Flist_system_processes): Just call list_system_processes.
13873 (Fsystem_process_attributes): Just call system_process_attributes.
13874 (procfs_list_system_processes, time_from_jiffies)
13875 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
13876 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
13877
13878 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
13879 (list_system_processes): Rename from
13880 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
13881 Provide a do nothing implementation.
13882 (system_process_attributes): Rename from
13883 procfs_list_system_processes.
13884 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
13885 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
13886
13887 * w32.c (list_system_processes): Rename from
13888 w32_list_system_processes.
13889 (system_process_attributes): Rename from
13890 w32_system_process_attributes.
13891
13892 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
13893
13894 * process.h (w32_list_system_processes)
13895 (w32_system_process_attributes): Remove.
13896 (list_system_processes, system_process_attributes):
13897 New prototypes.
13898
13899 2008-12-19 Kenichi Handa <handa@m17n.org>
13900
13901 * xfont.c (xfont_decode_coding_xlfd): New function.
13902 (xfont_encode_coding_xlfd): New function.
13903 (xfont_list_pattern): Decode XLFD by iso-8859-1.
13904 (xfont_list): Decode and encode XLFD by iso-8859-1.
13905 (xfont_match): Likewise.
13906 (xfont_list_family): Likewise.
13907 (xfont_open): Likewise.
13908
13909 * ftfont.c (ftfont_open): Generate a multibyte string if given
13910 names are utf-8.
13911
13912 * xftfont.c (xftfont_open): Generate a multibyte string if given
13913 names are utf-8.
13914
13915 2008-12-18 Jan Djärv <jan.h.d@swipnet.se>
13916
13917 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
13918 changed.
13919 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
13920 clicked on a detached tool bar button.
13921
13922 2008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
13923
13924 * emacs.c (main): Print and error and exit when no data is read
13925 from the pipe.
13926
13927 2008-12-17 Jason Rumney <jasonr@gnu.org>
13928
13929 * w32font.c (w32font_has_char): Always return -1.
13930
13931 2008-12-16 Kenichi Handa <handa@m17n.org>
13932
13933 * font.c (font_open_entity): Fix previous change.
13934
13935 2008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
13936
13937 * process.c: Include <limits.h>.
13938
13939 2008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
13940
13941 * font.c (font_update_drivers): Fix mistake in reconstructing the
13942 driver list.
13943
13944 2008-12-16 Chong Yidong <cyd@stupidchicken.com>
13945
13946 * font.c (font_clear_cache): Fix format of font cache data.
13947
13948 2008-12-15 Chong Yidong <cyd@stupidchicken.com>
13949
13950 * xftfont.c (xftfont_open): Free Xft font pattern if
13951 XftFontOpenPattern fails.
13952
13953 * xterm.c (x_free_frame_resources): Remove extraneous call to
13954 free_frame_faces.
13955
13956 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
13957
13958 * xterm.c (x_delete_display): Move xim_close_dpy call to
13959 x_delete_terminal.
13960 (x_delete_terminal): Call xim_close_dpy.
13961
13962 2008-12-13 Jason Rumney <jasonr@gnu.org>
13963
13964 * w32font.c (intern_font_name): New function.
13965 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
13966 (w32font_open_internal, Fx_select_font): Decode font name.
13967 (fill_in_logfont, list_all_matching_fonts): Encode font name.
13968
13969 * w32font.h (intern_font_name): Declare new function.
13970
13971 * w32uniscribe.c (add_opentype_font_name_to_list):
13972 Use intern_font_name.
13973
13974 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
13975
13976 * frame.c (Fdelete_frame): Call free_font_driver_list.
13977
13978 * font.c (free_font_driver_list): Implement missing function.
13979
13980 * w32term.c (w32_term_init): Don't initialize the image cache
13981 here; it will be done in init_frame_faces.
13982
13983 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
13984 (struct x_display_info): Remove unused member null_pixel.
13985 New member xim_callback_data.
13986
13987 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
13988 (xim_initialize): Save pointer to callback function data.
13989 (xim_close_dpy): Free callback function data. Call XCloseIM,
13990 reverting 2008-11-04 change by David Smith.
13991 (x_term_init): Don't initialize the image cache here; it will be
13992 done in init_frame_faces. Remove ancient "null_pixel" cruft.
13993 (x_delete_display): Free x_dnd_atoms member.
13994
13995 2008-12-13 Kenichi Handa <handa@m17n.org>
13996
13997 * font.c (font_rescale_ratio): Move from xfaces.c.
13998 Argument type changed. Handle a font-spec too.
13999 (font_score): Check Vface_font_rescale_alist.
14000 (font_open_entity): Likewise. (Bug#1547)
14001
14002 * xfaces.c (font_rescale_ratio): Move to font.c.
14003
14004 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
14005
14006 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
14007
14008 2008-12-12 Jason Rumney <jasonr@gnu.org>
14009
14010 * w32fns.c (x_display_info_for_name, Fx_open_connection):
14011 Set Vwindow_system_version to the real w32 major version.
14012
14013 2008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
14014
14015 * term.c (init_tty): Move setting the terminal name before the
14016 potential user: maybe_fatal.
14017
14018 2008-12-11 Chong Yidong <cyd@stupidchicken.com>
14019
14020 * term.c (tty_free_frame_resources): Rename from delete_tty_output;
14021 all callers changed. Call free_frame_faces to free the face cache.
14022
14023 2008-12-11 Jason Rumney <jasonr@gnu.org>
14024
14025 * w32font.c (fill_in_logfont): Don't assume symbol script means
14026 SYMBOL_CHARSET. (Bug#547)
14027
14028 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
14029 size for surrogates. (Bug#1096, bug#872)
14030
14031 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
14032
14033 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
14034
14035 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
14036
14037 * process.c (Fsystem_process_attributes, syms_of_process):
14038 Fix typo in name of Ssystem_process_attributes.
14039 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
14040
14041 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
14042
14043 * syntax.c (Fmodify_syntax_entry): Doc fix.
14044
14045 2008-12-10 Juanma Barranquero <lekktu@gmail.com>
14046
14047 * font.c (Ffont_spec): Move usage to end of docstring.
14048
14049 2008-12-10 Jason Rumney <jasonr@gnu.org>
14050
14051 * w32font.c (Qcham): New symbol.
14052 (font_supported_scripts): Add cham, and comments for other new
14053 scripts in bitfield from OpenType spec.
14054 (add_font_entity_to_list): Limit unicode-sip fonts to those that
14055 contain characters beyond the bmp.
14056
14057 2008-12-10 Kenichi Handa <handa@m17n.org>
14058
14059 * ftfont.c (fc_charset_table): Add "unicode-sip".
14060 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
14061 Qunicode_sip.
14062
14063 2008-12-10 Juanma Barranquero <lekktu@gmail.com>
14064
14065 * coding.c (QCdefault_char): Rename from QCdefalut_char.
14066 (Fcoding_system_put): Use QCdefault_char.
14067 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
14068
14069 2008-12-09 Chong Yidong <cyd@stupidchicken.com>
14070
14071 * xftfont.c (syms_of_xftfont): Fix typo.
14072
14073 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
14074
14075 2008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
14076
14077 * emacs.c (main): Close daemon_pipe on exec.
14078
14079 2008-12-08 Chong Yidong <cyd@stupidchicken.com>
14080
14081 * termchar.h (struct tty): New members termcap_term_buffer and
14082 termcap_strings_buffer.
14083
14084 * term.c (encode_terminal_code): Free any previous memory blocks
14085 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
14086 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
14087 All callers changed.
14088 (init_tty): Store termcap data and string buffers in new struct
14089 tty members termcap_term_buffer and termcap_strings_buffer.
14090 (delete_tty): Free them.
14091 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
14092
14093 2008-12-07 Seiji Zenitani <zenitani@mac.com>
14094
14095 * nsfns.m (ns_set_background_color): Remove code duplication.
14096 It was a substitute for face-transparency on OS X 10.3.
14097
14098 2008-12-06 Chong Yidong <cyd@stupidchicken.com>
14099
14100 * coding.c (make_conversion_work_buffer): Disable buffer
14101 modification hooks in the work buffer.
14102
14103 2008-12-05 Eli Zaretskii <eliz@gnu.org>
14104
14105 * process.c (procfs_system_process_attributes): If `nread' has a
14106 negative value, assign zero to it.
14107
14108 2008-12-05 Chong Yidong <cyd@stupidchicken.com>
14109
14110 * eval.c (Vdebug_on_error): Doc fix.
14111
14112 2008-12-05 Kenichi Handa <handa@m17n.org>
14113
14114 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
14115 second character is a combining character.
14116
14117 2008-12-05 Eli Zaretskii <eliz@gnu.org>
14118
14119 * process.c (procfs_system_process_attributes): Don't use cmd,
14120 cmdsize, and q without initializing them first.
14121
14122 2008-12-04 Jason Rumney <jasonr@gnu.org>
14123
14124 * w32font.c (w32font_draw): Initialize orig_clip before getting
14125 it, and delete it when finished.
14126
14127 2008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
14128
14129 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
14130 case when running as a daemon before detaching.
14131
14132 2008-12-03 Juanma Barranquero <lekktu@gmail.com>
14133
14134 * w32.c (init_environment): Don't unload library shell32.dll.
14135
14136 2008-12-03 Kenichi Handa <handa@m17n.org>
14137
14138 * font.c (font_at): Set `multibyte' at first.
14139
14140 * coding.c (decode_coding_charset): Check type of an element of
14141 vector VALIDS.
14142 (encode_coding_emacs_mule): Be sure to set `code'.
14143
14144 * fontset.c (face_for_char): Handle invalid charset property correctly.
14145 (font_for_char): Likewise.
14146
14147 2008-12-03 Chong Yidong <cyd@stupidchicken.com>
14148
14149 * font.c (Fopen_font): Compute pixel size correctly.
14150 (font_update_lface): Handle fonts with corrupted size specs,
14151 i.e. non-int and non-float.
14152
14153 * ftfont.c (ftfont_match): Initialize entity variable.
14154 (ftfont_resolve_generic_family): Avoid using uninitialized var.
14155 (ftfont_list_family): Initialize list var earlier.
14156
14157 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
14158
14159 * xterm.c (x_draw_glyph_string): Fall back on
14160 underline_minimum_offset for underline position.
14161
14162 2008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
14163
14164 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
14165
14166 * character.c (c_string_width): Specify the type for LEN.
14167
14168 2008-12-03 Kenichi Handa <handa@m17n.org>
14169
14170 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
14171 (decode_coding_utf_8): Likewise.
14172 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
14173 (produce_chars): Initialize consumed_chars to 0.
14174
14175 2008-12-02 Chong Yidong <cyd@stupidchicken.com>
14176
14177 * keyboard.c (make_lispy_position): Only use PT if the selected
14178 window is current.
14179
14180 2008-12-02 Andreas Schwab <schwab@suse.de>
14181
14182 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
14183
14184 * doprnt.c (doprnt1): Fix size of charbuf.
14185
14186 2008-12-02 Chong Yidong <cyd@stupidchicken.com>
14187
14188 * keyboard.c (timer_check): Revert last change.
14189
14190 2008-12-02 Juanma Barranquero <lekktu@gmail.com>
14191
14192 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
14193
14194 2008-12-01 Juanma Barranquero <lekktu@gmail.com>
14195
14196 * makefile.w32-in: Update dependencies.
14197 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
14198
14199 2008-12-01 Andreas Schwab <schwab@suse.de>
14200
14201 * font.c (register_font_driver): Use xmalloc.
14202 (font_put_frame_data): Likewise.
14203
14204 2008-12-01 Chong Yidong <cyd@stupidchicken.com>
14205
14206 * xfaces.c (realize_x_face): Make abort condition clearer.
14207
14208 * gtkutil.c (update_frame_tool_bar): Initialize variable.
14209
14210 2008-11-30 Chong Yidong <cyd@stupidchicken.com>
14211
14212 * keyboard.c (timer_check): After a timer runs, ensure that the
14213 selected window's buffer is current.
14214
14215 2008-11-30 Juanma Barranquero <lekktu@gmail.com>
14216
14217 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
14218 It was accidentally restored by the Unicode merge.
14219
14220 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
14221
14222 2008-11-29 Juanma Barranquero <lekktu@gmail.com>
14223
14224 * w32proc.c: Include "coding.h".
14225 (Fw32_short_file_name): Encode filename passed to Windows API.
14226 (Fw32_long_file_name): Encode filename passed to Windows API and
14227 decode back the result. (Bug#1433)
14228
14229 2008-11-29 Kenichi Handa <handa@m17n.org>
14230
14231 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
14232 not before accessing it.
14233
14234 * charset.c (Fdefine_charset_internal): After calculating
14235 min_char, max_char, and fastmap, copy the charset structure again.
14236 (encode_char): Fix the previous change.
14237
14238 2008-11-28 Seiji Zenitani <zenitani@mac.com>
14239
14240 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
14241
14242 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
14243
14244 * nsterm.m (x_set_frame_alpha): New function.
14245
14246 2008-11-27 Eli Zaretskii <eliz@gnu.org>
14247
14248 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
14249
14250 2008-11-27 Juanma Barranquero <lekktu@gmail.com>
14251
14252 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
14253 pointer to check_face_name.
14254
14255 2008-11-27 Kenichi Handa <handa@m17n.org>
14256
14257 * category.h (SET_CATEGORY_SET): Call set_category_set.
14258 (set_category_set): Extern it.
14259
14260 * category.c (hash_get_category_set): New function.
14261 (Fmodify_category_entry): Adjust for the change of
14262 char_table_ref_and_range. Call hash_get_category_set to get a
14263 category set to store in the table.
14264
14265 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
14266 Funify_charset.
14267
14268 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
14269 (DECODE_CHAR): Check if the decoder vector is ready.
14270 (ENCODE_CHAR): Check if the encoder char-table is ready.
14271 (maybe_unify_char): Extern it.
14272
14273 * charset.c (Vchar_unified_charset_table): Delete it.
14274 (inhibit_load_charset_map): New variable.
14275 (temp_charset_work): New variable.
14276 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
14277 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
14278 New macros.
14279 (load_charset_map): Meaning of control_flag changed.
14280 If inhibit_load_charset_map is nonzero, setup a table in
14281 temp_charset_work.
14282 (load_charset): New argument control_flag.
14283 (map_charset_for_dump): New function.
14284 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
14285 map_charset_for_dump.
14286 (Fdefine_charset_internal): If the charset method is MAP, load
14287 mapping tables by calling load_charset.
14288 (Funify_charset): Don't load a mapping table but directly set
14289 Vchar_unify_table.
14290 (maybe_unify_char): New function.
14291 (decode_char): Don't handle the deleted method MAP_DEFERRED.
14292 Handle the case of inhibit_load_charset_map being nonzero.
14293 (encode_char): Don't handle the deleted method MAP_DEFERRED.
14294 Handle the case of inhibit_load_charset_map being nonzero.
14295 (Fclear_charset_maps): Just free temp_charset_work.
14296 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
14297 variable.
14298
14299 * chartab.c (sub_char_table_ref_and_range): Adjust for the
14300 change of char_table_ref_and_range.
14301 (char_table_ref_and_range): Change the meaning of argument FROM
14302 and TO. Now the caller must provide initial values for *FROM
14303 and *TO.
14304
14305 * fontset.c (fontset_add): Adjust for the change of
14306 char_table_ref_and_range.
14307 (fontset_get_font_group): Likewise.
14308 (Ffontset_info): Likewise.
14309
14310 * keymap.c (describe_vector): Adjust for the change of
14311 char_table_ref_and_range. For char-table, put boundary between
14312 non-ASCII and 8-bit characters.
14313
14314 * print.c (print_object): For bool-vector, delete unnecessary
14315 check of ASCII_BYTE_P.
14316
14317 2008-11-26 Jason Rumney <jasonr@gnu.org>
14318
14319 * w32font.c (w32font_open_internal): Don't include external
14320 leading in font height. (Bug#879)
14321
14322 2008-11-26 Glenn Morris <rgm@gnu.org>
14323
14324 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
14325 redefinition with ifdef. (Bug#1383)
14326
14327 2008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
14328
14329 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
14330
14331 2008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
14332
14333 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
14334 New EmacsView methods.
14335 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
14336 Fixes bug #1048,1357,1414.
14337
14338 2008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
14339
14340 Fix bug #1362.
14341 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
14342 is not an indexed color.
14343 * nsterm.m (free_indexed_color): Add argument checking.
14344 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
14345
14346 2008-11-24 Chong Yidong <cyd@stupidchicken.com>
14347
14348 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
14349 Document confirm-after-completion value for
14350 minibuffer-completion-confirm.
14351
14352 2008-11-24 Jason Rumney <jasonr@gnu.org>
14353
14354 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
14355 warning.
14356
14357 2008-11-23 Jason Rumney <jasonr@gnu.org>
14358
14359 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
14360 restored before returning.
14361
14362 * w32font.c (check_face_name): New function.
14363 (add_font_entity_to_list): Use it to filter out common substituted
14364 fonts. (Bug#642)
14365
14366 2008-11-22 Martin Rudalics <rudalics@gmx.at>
14367
14368 * buffer.c (Fswitch_to_buffer): Reword and mention new option
14369 confirm-nonexistent-file-or-buffer in doc-string.
14370
14371 2008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
14372
14373 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
14374 Fix copy/paste typo. Add checks.
14375
14376 2008-11-21 Kenichi Handa <handa@m17n.org>
14377
14378 * coding.c (detect_coding_iso_2022): Reject invalid composition
14379 sequence.
14380 (DECODE_COMPOSITION_START): If the current source is the last
14381 block, and the current composition doesn't end, regard this
14382 sequence as invalid.
14383 (decode_coding_iso_2022): Handle invalid composition sequence.
14384
14385 2008-11-20 Martin Rudalics <rudalics@gmx.at>
14386
14387 * window.c (coordinates_in_window): Don't return
14388 ON_VERTICAL_BORDER for the rightmost position of a mode/header
14389 line when the window is not the rightmost one. (Bug#1372)
14390
14391 2008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
14392
14393 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
14394
14395 2008-11-15 Eli Zaretskii <eliz@gnu.org>
14396
14397 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
14398 and bright_bg if noninteractive is non-zero.
14399
14400 2008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14401
14402 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
14403 x_draw_glyph_string_background.
14404
14405 * w32term.c (x_draw_glyph_string): Likewise.
14406
14407 2008-11-15 Chong Yidong <cyd@stupidchicken.com>
14408
14409 * xterm.c (x_draw_glyph_string): Stop drawing the background of
14410 the next glyph string once past the overhang width.
14411
14412 * nsterm.m (ns_draw_glyph_string): Likewise.
14413
14414 * w32term.c (x_draw_glyph_string): Likewise.
14415
14416 2008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
14417
14418 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
14419 double file close.
14420
14421 2008-11-14 Martin Rudalics <rudalics@gmx.at>
14422
14423 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
14424 dedicated status of window before attempting to display another
14425 buffer in it.
14426
14427 2008-11-14 Juanma Barranquero <lekktu@gmail.com>
14428
14429 * msdos.c (Fmsdos_long_file_names):
14430 (syms_of_msdos) <dos-unsupported-char-glyph>:
14431 * dosfns.c (Fint86): Fix typos in docstrings.
14432
14433 2008-11-14 Eli Zaretskii <eliz@gnu.org>
14434
14435 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
14436
14437 2008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
14438
14439 * puresize.h (BASE_PURESIZE): Increase to 1260000.
14440
14441 2008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
14442
14443 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
14444
14445 * frame.h: Negative alpha means "don't touch".
14446
14447 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
14448
14449 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
14450
14451 2008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
14452
14453 * hftctl.c:
14454 * chpdef.h:
14455 * acldef.h: Remove files used only for systems no longer supported.
14456
14457 * Makefile.in: Fix .o alphabetical ordering.
14458 (hftctl.o): Remove dependency, file removed.
14459 (keymap.o, print.o): Depend on charset.h.
14460
14461 2008-11-10 Kenichi Handa <handa@m17n.org>
14462
14463 * character.c (Fget_byte): Fix and make it faster for unibyte target.
14464
14465 2008-11-08 Chong Yidong <cyd@stupidchicken.com>
14466
14467 * dired.c (file_name_completion): If completion_ignore_case is
14468 enabled, ignore case when checking completion-regexp-list.
14469
14470 2008-11-08 Eli Zaretskii <eliz@gnu.org>
14471
14472 * vm-limit.c (get_lim_data): Fix last change.
14473
14474 2008-11-08 Kenichi Handa <handa@m17n.org>
14475
14476 * character.c (Fget_byte): New function.
14477 (syms_of_character): Defsubr Fget_byte.
14478
14479 2008-11-07 Chong Yidong <cyd@stupidchicken.com>
14480
14481 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
14482 cursor position is valid after scrolling.
14483
14484 2008-11-06 Juanma Barranquero <lekktu@gmail.com>
14485
14486 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
14487
14488 2008-11-06 Glenn Morris <rgm@gnu.org>
14489
14490 * xterm.c (handle_one_xevent): Don't let popup menus cause
14491 mouse-autoselect-window related window switching. (Bug#1261)
14492
14493 2008-11-04 David Smith <davidsmith@acm.org> (tiny change)
14494
14495 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
14496
14497 2008-11-04 Andreas Schwab <schwab@suse.de>
14498
14499 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
14500
14501 2008-11-03 Chong Yidong <cyd@stupidchicken.com>
14502
14503 * xfns.c (Fx_wm_set_size_hint): New function.
14504
14505 2008-11-03 Martin Rudalics <rudalics@gmx.at>
14506
14507 * textprop.c (Fprevious_single_char_property_change): Return 0
14508 when there's no change in a string. (Bug#1301)
14509
14510 2008-11-02 Martin Rudalics <rudalics@gmx.at>
14511
14512 * frame.c (do_switch_frame): New argument NORECORD passed to
14513 Fselect_window.
14514 (Fselect_frame): New argument NORECORD passed to
14515 do_switch_frame.
14516 (Fset_frame_selected_window): New argument NORECORD passed to
14517 Fselect_frame.
14518 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
14519 in call of do_switch_frame.
14520 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
14521 Handle NORECORD argument in call of Fselect_frame.
14522 * lisp.h (do_switch_frame, Fselect_frame)
14523 (Fset_frame_selected_window): Adjust declarations.
14524 * window.c (select_frame_norecord): New function.
14525 (run_window_configuration_change_hook): Use it and call
14526 Fselect_frame with NORECORD set.
14527 (Fselect_window): Pass NORECORD to Fselect_frame.
14528 (Fset_window_configuration): Handle NORECORD argument in call of
14529 do_switch_frame.
14530 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
14531 Fset_frame_selected_window.
14532 * keyboard.c (command_loop_1): Handle NORECORD in call of
14533 Fselect_frame (currently ifdefd).
14534
14535 2008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
14536
14537 * emacs.c (USAGE2): Untabify.
14538
14539 2008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
14540
14541 * composite.c (fill_gstring_header): Fix copy/paste typo.
14542
14543 2008-10-31 Martin Rudalics <rudalics@gmx.at>
14544
14545 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
14546 (Fother_window): Rename argument and rewrite doc-string.
14547 (select_window_norecord): Fix return value. (Bug#1276)
14548
14549 2008-10-30 Juanma Barranquero <lekktu@gmail.com>
14550
14551 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
14552 new frames overriding foreground for tooltips. Based on similar patch
14553 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
14554
14555 2008-10-29 Chong Yidong <cyd@stupidchicken.com>
14556
14557 * emacs.c (Fdaemon_initialized): Initialize nfd.
14558
14559 2008-10-29 Martin Rudalics <rudalics@gmx.at>
14560
14561 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
14562 (Fwindow_text_height): Clarify doc-strings.
14563 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
14564 doc-string of window-scroll-functions.
14565
14566 2008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
14567
14568 * category.c (syms_of_category): Fix typo in docstring.
14569
14570 2008-10-28 Juanma Barranquero <lekktu@gmail.com>
14571
14572 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
14573 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
14574 Fix typos in docstrings.
14575
14576 2008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
14577
14578 * emacs.c (daemon_pipe): Make non-static.
14579 (IS_DAEMON): Move definition ...
14580 * lisp.h (IS_DAEMON): ... here.
14581 (daemon_pipe): Declare.
14582 (is_daemon): Remove.
14583 * dispnew.c (init_display): Use IS_DAEMON.
14584
14585 2008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
14586
14587 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
14588 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
14589
14590 * emacs.c (is_daemon): Remove.
14591 (main): Don't set is_daemon.
14592 (IS_DAEMON): New macro.
14593 (Fdaemonp, Fdaemon_initialized): Use it.
14594 (Fdaemon_initialized): Write a char into the pipe to make sure the
14595 parent exits.
14596 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
14597
14598 2008-10-27 Chong Yidong <cyd@stupidchicken.com>
14599
14600 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
14601 over-sized glyph, draw it with the default glyph width.
14602
14603 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
14604 glyph, draw it with the default glyph width.
14605
14606 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
14607 glyph, draw it with the default glyph width.
14608
14609 * xdisp.c (try_scrolling): When computing the distance from the
14610 scroll margin to PT, try moving some distance past the window
14611 bottom before giving up.
14612
14613 2008-10-27 Martin Rudalics <rudalics@gmx.at>
14614
14615 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
14616 (Fset_window_buffer): Explain in doc-string that a window can be
14617 "strongly" dedicated to its buffer.
14618
14619 2008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
14620
14621 * emacs.c (daemon_name): New variable.
14622 (main): Deal with --daemon=SERVER_NAME.
14623 (Fdaemonp): Return a name if one was passed to --daemon.
14624
14625 2008-10-26 Romain Francoise <romain@orebokech.com>
14626
14627 * emacs.c (daemon_pipe): New variable.
14628 (main): Create a pipe before forking, make the parent exit only after
14629 the child has closed its end of the pipe. Move closing the
14630 descriptors ...
14631 (Fdaemon_initialized): ... here. New function.
14632
14633 2008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
14634
14635 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
14636 the previous unoptimized table.
14637
14638 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
14639 the distinction between non-nil and non-t value of `dedicated'.
14640
14641 2008-10-25 Chong Yidong <cyd@stupidchicken.com>
14642
14643 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
14644 read_char_minibuf_menu_text is large enough to hold the menu string.
14645
14646 2008-10-25 Martin Rudalics <rudalics@gmx.at>
14647
14648 * window.c (Fget_buffer_window, Fdelete_windows_on)
14649 (Freplace_buffer_in_windows): Make buffer argument optional and
14650 rename to buffer_or_name.
14651
14652 2008-10-24 Chong Yidong <cyd@stupidchicken.com>
14653
14654 * xdisp.c (handle_single_display_spec, handle_display_prop):
14655 Undo 2005-05-16 change.
14656 (handle_stop): Pop iterator if it's loaded with an empty string.
14657 (get_overlay_strings_1): Don't save iterator if it's loaded with
14658 an empty string (bug#1201).
14659
14660 2008-10-24 Kenichi Handa <handa@m17n.org>
14661
14662 * ftfont.c (ftfont_otf_features): Fix previous change.
14663 (ftfont_otf_capability): Check FeatureList.FeatureCount before
14664 calling ftfont_otf_features.
14665
14666 2008-10-24 Kenichi Handa <handa@m17n.org>
14667
14668 * font.c (font_match_p): Fix for the case that a vector of
14669 characters is in script-representative-chars.
14670
14671 2008-10-24 Michael Albinus <michael.albinus@gmx.de>
14672
14673 * dbusbind.c (xd_in_read_queued_messages): New variable.
14674 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
14675 (xd_read_queued_messages): Catch Qdbus_error from the macros.
14676 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
14677 macro. (Bug#1186)
14678
14679 2008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
14680
14681 * s/sol2-10.h: New file.
14682
14683 2008-10-23 Juanma Barranquero <lekktu@gmail.com>
14684
14685 * xdisp.c (fill_glyph_string): Fix typo in source (though the
14686 poor beast has survived 9+ years and the jump from xterm.c!).
14687
14688 2008-10-23 Martin Rudalics <rudalics@gmx.at>
14689
14690 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
14691 Reword doc-string.
14692 (Fbury_buffer): In doc-string say what happens to the buffer's window.
14693
14694 2008-10-23 Juanma Barranquero <lekktu@gmail.com>
14695
14696 * character.c (syms_of_character) <script-representative-chars>:
14697 <unicode-category-table>: Doc fixes.
14698
14699 2008-10-23 Noah Friedman <friedman@splode.com>
14700
14701 * coding.c (make_conversion_work_buffer): Check that
14702 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
14703 Fget_buffer_create.
14704
14705 2008-10-23 Kenichi Handa <handa@m17n.org>
14706
14707 * font.c (font_add_log): Check the values of extra properties.
14708
14709 2008-10-22 Martin Rudalics <rudalics@gmx.at>
14710
14711 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
14712 Reword doc-string.
14713 (Fset_window_parameter): Use NILP.
14714 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
14715 (Frecenter): Use "selected" instead of "current" window in doc-strings.
14716
14717 2008-10-22 Juanma Barranquero <lekktu@gmail.com>
14718
14719 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
14720
14721 2008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
14722
14723 * nsfns.m (ns_appkit_version): New function.
14724 (x-server-version): Use it.
14725 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
14726 (x-server-vendor): Don't check_ns().
14727
14728 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
14729
14730 2008-10-22 Juanma Barranquero <lekktu@gmail.com>
14731
14732 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
14733 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
14734
14735 2008-10-22 Kenichi Handa <handa@m17n.org>
14736
14737 * syntax.c (scan_words): Call word_boundary_p instead of comparing
14738 scripts.
14739
14740 * category.c (word_boundary_p): Check scripts instead of charset.
14741 Handle nil value in word-separating-categories and
14742 word-combining-categories.
14743 (syms_of_category): Fix docstrings of word-separating-categories
14744 and word-combining-categories.
14745
14746 2008-10-21 Eli Zaretskii <eliz@gnu.org>
14747
14748 * coding.c (Fencode_coding_region, Fdecode_coding_region)
14749 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
14750
14751 2008-10-21 Martin Rudalics <rudalics@gmx.at>
14752
14753 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
14754 Rename arg "buffer" to "buffer_or_name".
14755 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
14756 it optional.
14757 (no_switch_window): Remove since the return value is not used.
14758 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
14759 Consider window as dedicated when Fwindow_dedicated_p returns a
14760 non-nil value.
14761 * lisp.h: Remove prototype for no_switch_window.
14762
14763 2008-10-21 Jan Djärv <jan.h.d@swipnet.se>
14764
14765 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
14766 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
14767
14768 2008-10-21 Kenichi Handa <handa@m17n.org>
14769
14770 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
14771 check Vlatin_extra_code_table.
14772
14773 2008-10-20 Eli Zaretskii <eliz@gnu.org>
14774
14775 * fileio.c (Fset_file_modes): Doc fix.
14776
14777 2008-10-19 Michael Albinus <michael.albinus@gmx.de>
14778
14779 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
14780 in arrays.
14781
14782 2008-10-19 Martin Rudalics <rudalics@gmx.at>
14783
14784 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
14785 Mention kill-buffer in doc-string.
14786 (Fset_window_buffer): Reinsert tem check removed in last commit.
14787 (Fenlarge_window, Fshrink_window): Have argument names and
14788 doc-string follow Elisp manual more closely.
14789
14790 2008-10-18 Eli Zaretskii <eliz@gnu.org>
14791
14792 * fileio.c (Fset_file_modes): Doc fix.
14793
14794 2008-10-18 Martin Rudalics <rudalics@gmx.at>
14795
14796 * window.c (Fwindow_width, Fset_window_start)
14797 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
14798 (Fdelete_windows_on, Freplace_buffer_in_windows):
14799 Make doc-strings follow code and Elisp manual more closely.
14800 (Fwindow_dedicated_p): Make window argument optional.
14801 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
14802 (Fset_window_buffer): Respect any non-nil dedicated value for
14803 window. Rename "buffer" argument to "buffer_or_name".
14804
14805 2008-10-18 Ulrich Mueller <ulm@gentoo.org>
14806
14807 * m/sh3.h: New file, machine description for SuperH.
14808
14809 2008-10-17 Martin Rudalics <rudalics@gmx.at>
14810
14811 * window.c (Fsplit_window): Rename arg horflag to horizontal.
14812
14813 2008-10-17 Kenichi Handa <handa@m17n.org>
14814
14815 * ftfont.c (ftfont_otf_features): Fix indexing
14816 gsub_gpos->FeatureList.Feature. Check the validity of indices.
14817
14818 2008-10-16 Magnus Henoch <mange@freemail.hu>
14819
14820 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
14821 (Fdbus_call_method_asynchronously): Ditto.
14822 This change makes C-h f display the argument list.
14823
14824 2008-10-16 Chong Yidong <cyd@stupidchicken.com>
14825
14826 * fileio.c (Fexpand_file_name): Doc fix.
14827
14828 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
14829 of :foreground and :background equivalent to unspecified (20.x
14830 compatibility).
14831
14832 2008-10-15 Eli Zaretskii <eliz@gnu.org>
14833
14834 * buffer.c (syms_of_buffer): Doc fix.
14835
14836 2008-10-14 Kenichi Handa <handa@m17n.org>
14837
14838 * font.c (font_clear_prop): When clearing font width, clear the
14839 average width field too.
14840
14841 2008-10-12 Andreas Schwab <schwab@suse.de>
14842
14843 * ftfont.c (ftfont_shape_by_flt): Make static.
14844 * ftfont.h (ftfont_shape_by_flt): Don't declare.
14845
14846 * font.c: Don't include <m17n-flt.h>.
14847
14848 2008-10-10 Eli Zaretskii <eliz@gnu.org>
14849
14850 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
14851
14852 2008-10-09 Eli Zaretskii <eliz@gnu.org>
14853
14854 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
14855 away code.
14856
14857 2008-10-09 Chong Yidong <cyd@stupidchicken.com>
14858
14859 * dispnew.c (update_text_area): Avoid looping due to large glyph
14860 overhangs (bug#1070).
14861
14862 2008-10-09 Kenichi Handa <handa@m17n.org>
14863
14864 * fontset.c (face_for_char): If face->fontset is negative, just
14865 return ascii_face.
14866
14867 * font.c (font_delete_unmatched): Fix previous change.
14868 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
14869
14870 2008-10-09 Martin Rudalics <rudalics@gmx.at>
14871
14872 * frame.c (Fraise_frame): On text-only terminals select frame in
14873 order to make it visible. (Bug#1061)
14874
14875 2008-10-08 Chong Yidong <cyd@stupidchicken.com>
14876
14877 * fontset.c (fontset_find_font): Check frame validity.
14878
14879 2008-10-07 Chong Yidong <cyd@stupidchicken.com>
14880
14881 * gtkutil.c (xg_display_open): Reset default display if none exists.
14882 (xg_display_close): Allow Emacs to close all displays (bug#985).
14883
14884 2008-10-06 Andreas Schwab <schwab@suse.de>
14885
14886 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
14887
14888 2008-10-06 Chong Yidong <cyd@stupidchicken.com>
14889
14890 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
14891
14892 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
14893
14894 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
14895 during initialization.
14896
14897 2008-10-04 Eli Zaretskii <eliz@gnu.org>
14898
14899 * xdisp.c (redisplay_internal): If frame switched, redisplay the
14900 whole thing on MSDOS frames as well as on a TTY.
14901
14902 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
14903 well as for TTY.
14904 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
14905 well as on a TTY.
14906
14907 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
14908 as well as for TTY.
14909
14910 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
14911
14912 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
14913 MSDOS frames as well.
14914
14915 2008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
14916
14917 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
14918 correct arguments.
14919 * menu.c (find_and_return_menu_selection): Add cast.
14920
14921 2008-10-03 Glenn Morris <rgm@gnu.org>
14922
14923 * emacs.c (USAGE1): Add --daemon.
14924
14925 2008-10-02 Eli Zaretskii <eliz@gnu.org>
14926
14927 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
14928 100, so it's in percents as advertised.
14929
14930 2008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
14931
14932 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
14933 (ns_output.current_cursor, ns_output.desired_cursor)
14934 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
14935 (FRAME_NEW_CURSOR_COLOR): Remove.
14936
14937 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
14938 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
14939 enumeration (HOLLOW_BOX_CURSOR, etc.).
14940
14941 * nsterm.m (ns_frame_rehighlight): Remove commented code.
14942 (draw_window_cursor): Simplify code.
14943 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
14944 Don't change cursor type. In latter, call rehighlight instead of doing
14945 updates manually.
14946 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
14947 Use core Emacs cursor types.
14948
14949 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
14950
14951 2008-10-02 Martin Rudalics <rudalics@gmx.at>
14952
14953 * process.c (Faccept_process_output): Fix doc-string.
14954
14955 2008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
14956
14957 * gmalloc.c (__sbrk): Also define for uClibc.
14958
14959 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
14960 for uClibc.
14961
14962 2008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
14963
14964 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
14965 styles.
14966 (nsfont_open): Reenable the cache.
14967
14968 2008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
14969
14970 * font.c (font_matching_entity): Reflect ATTRS in font selection.
14971 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
14972
14973 2008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
14974
14975 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
14976 a suspended terminal.
14977
14978 2008-09-30 Michael Albinus <michael.albinus@gmx.de>
14979
14980 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
14981
14982 2008-09-30 Eli Zaretskii <eliz@gnu.org>
14983
14984 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
14985
14986 2008-09-30 Chong Yidong <cyd@stupidchicken.com>
14987
14988 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
14989 in a continued line coincides with a line beginning.
14990
14991 2008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
14992
14993 * nsfont.m (nsfont_trait_distance): Fix bug.
14994 (nsfont_list): Return a list rather than a vector (syncs with Handa
14995 changes of 2008-05-14).
14996 (nsfont_open): Improve logging.
14997
14998 2008-09-29 Andreas Schwab <schwab@suse.de>
14999
15000 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
15001
15002 2008-09-28 Martin Rudalics <rudalics@gmx.at>
15003
15004 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
15005 name as char-resolve-modifiers.
15006 Reported by: Markus Triska <markus.triska@gmx.at>
15007
15008 2008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
15009
15010 * dispnew.c (init_display): Return earlier when running as a daemon.
15011
15012 2008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
15013
15014 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
15015
15016 2008-09-27 Eli Zaretskii <eliz@gnu.org>
15017
15018 * composite.c (Fcomposition_get_gstring)
15019 (Fcompose_region_internal, Fcompose_string_internal)
15020 (Ffind_composition_internal): Doc fix.
15021 (syms_of_composite) <compose-chars-after-function>: Doc fix.
15022 (syms_of_composite) <auto-composition-function>: Doc fix.
15023 (syms_of_composite) <composition-function-table>: Doc fix.
15024
15025 2008-09-25 Chong Yidong <cyd@stupidchicken.com>
15026
15027 * search.c (wordify): New argument for lax word-ends.
15028 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
15029
15030 2008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
15031
15032 * lisp.h (is_daemon): Declare.
15033 * dispnew.c (init_display): Do not try to initialize the terminal
15034 when running as a daemon.
15035
15036 2008-09-22 Chong Yidong <cyd@stupidchicken.com>
15037
15038 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
15039 x_display_pixel_height.
15040
15041 2008-09-22 Martin Rudalics <rudalics@gmx.at>
15042
15043 * undo.c (record_point): Don't call Fundo_boundary for first
15044 change. (Bug#731)
15045
15046 2008-09-22 Juanma Barranquero <lekktu@gmail.com>
15047
15048 * emacs.c (Fdaemonp): Doc fix.
15049
15050 2008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
15051
15052 * emacs.c (main): Place #ifdef in the proper place.
15053
15054 2008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
15055
15056 * emacs.c (standard_args): Add --daemon.
15057 (main): Disconnect from the terminal when --daemon is passed.
15058 (is_daemon): New variable.
15059 (Fdaemonp): New function.
15060 (syms_of_emacs): Defsubr it.
15061
15062 2008-09-20 Chong Yidong <cyd@stupidchicken.com>
15063
15064 * xdisp.c (get_next_display_element): Handle string display
15065 correctly when checking for the end of a box run.
15066
15067 2008-09-20 Glenn Morris <rgm@gnu.org>
15068
15069 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
15070 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
15071 (Frename_file): Avoid copying to trash if a rename involves
15072 a delete. (Bug#964).
15073
15074 2008-09-20 Eli Zaretskii <eliz@gnu.org>
15075
15076 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
15077 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
15078 frames as well as termcap frames.
15079 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
15080 get_named_tty.
15081
15082 2008-09-19 Eli Zaretskii <eliz@gnu.org>
15083
15084 * process.c (procfs_system_process_attributes): Fix cmdline in
15085 case /proc/PID/cmdline is empty.
15086
15087 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
15088 x_display_pixel_height.
15089
15090 2008-09-19 Juanma Barranquero <lekktu@gmail.com>
15091
15092 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
15093
15094 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
15095 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
15096
15097 2008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
15098
15099 * dispextern.h (struct it): Move line_wrap away from the middle of
15100 bitfields. Move voffset in struct iterator_stack_entry after the
15101 bitfields. Move tab_width near after another short.
15102
15103 2008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
15104
15105 * frame.h (struct frame): Move alpha from the middle of bitfields.
15106
15107 * window.h (struct window): Move frozen_window_start_p after the
15108 rest of the bitfields to reduce padding.
15109
15110 2008-09-18 Chong Yidong <cyd@stupidchicken.com>
15111
15112 * xterm.h (x_display_info): Remove `height' and `width' members.
15113
15114 * nsterm.h (ns_display_info): Remove `height' and `width' members.
15115
15116 * w32term.h (w32_display_info): Remove `height', `width',
15117 `height_in', and `width_in' members.
15118
15119 * xterm.c (x_display_pixel_height, x_display_pixel_width):
15120 New functions.
15121 (x_calc_absolute_position): Use them.
15122 (x_term_init): Omit removed `height' and `width' members.
15123
15124 * w32term.c (x_display_pixel_height, x_display_pixel_width):
15125 New functions.
15126 (w32_read_socket, x_calc_absolute_position): Use them.
15127 (w32_initialize_display_info, w32_term_init): Omit removed members
15128 of w32_display_info.
15129
15130 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
15131 New functions.
15132 (ns_initialize_display_info): Omit removed members of ns_display_info.
15133
15134 * xterm.c (x_display_pixel_height, x_display_pixel_width):
15135 New functions.
15136 (x_calc_absolute_position): Use them.
15137 (x_term_init): Omit removed `height' and `width' members.
15138
15139 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
15140 (compute_tip_xy):
15141 * frame.c (x_fullscreen_adjust):
15142 * xmenu.c (menu_position_func): Use x_display_pixel_height and
15143 x_display_pixel_width.
15144
15145 2008-09-18 Kenichi Handa <handa@m17n.org>
15146
15147 * composite.c (fill_gstring_header): Don't check FROM and TO here.
15148 (composition_compute_stop_pos): Fix handling of static composition.
15149 (Fcomposition_get_gstring): Check FROM and TO at first.
15150
15151 2008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
15152
15153 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
15154 mixup (YAILOM).
15155
15156 2008-09-17 Chong Yidong <cyd@stupidchicken.com>
15157
15158 * indent.c (Fvertical_motion): Use position reported by iterator
15159 instead of PT for determining screen motion (bug#943).
15160
15161 2008-09-17 Romain Francoise <romain@orebokech.com>
15162
15163 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
15164
15165 2008-09-17 Kenichi Handa <handa@m17n.org>
15166
15167 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
15168
15169 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
15170 if necessary.
15171
15172 2008-09-16 Kenichi Handa <handa@m17n.org>
15173
15174 * coding.c (make_conversion_work_buffer): Avoid calling
15175 Fget_buffer_create if it is not necessary.
15176
15177 2008-09-15 Martin Rudalics <rudalics@gmx.at>
15178
15179 * window.c (Fselect_window): Don't update window_select_count and
15180 use_time when norecord is not nil.
15181
15182 2008-09-14 Kenichi Handa <handa@m17n.org>
15183
15184 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
15185 specpdl_ptr.
15186
15187 2008-09-12 Kenichi Handa <handa@m17n.org>
15188
15189 * indent.c (scan_for_column): Don't handle automatic composition
15190 if the current buffer is not associated with a window.
15191
15192 * composite.c (composition_reseat_it): If the current buffer is
15193 not associated with a window, ignore the automatic composition.
15194 (find_automatic_composition): Likewise.
15195
15196 2008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
15197
15198 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
15199 (Fgpm_mouse_stop): Use it.
15200 * termhooks.h (close_gpm): Declare.
15201 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
15202 connection if Gpm_GetEvent fails.
15203
15204 * window.c (set_window_buffer): Always preserve current-buffer.
15205
15206 2008-09-12 Glenn Morris <rgm@gnu.org>
15207
15208 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
15209
15210 2008-09-11 Glenn Morris <rgm@gnu.org>
15211
15212 * charset.c (charset-map-path): Doc fix.
15213
15214 2008-09-10 Kenichi Handa <handa@m17n.org>
15215
15216 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
15217
15218 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
15219 compose a grapheme cluster with the preceding base glyph.
15220
15221 * composite.c (composition_compute_stop_pos): Fix previous change.
15222 Reset cmp_it->id to -1 at first.
15223
15224 2008-09-10 Glenn Morris <rgm@gnu.org>
15225
15226 * Makefile.in (character.o, chartab.o): Fix config.h typo.
15227
15228 2008-09-09 Chong Yidong <cyd@stupidchicken.com>
15229
15230 * keyboard.c (read_key_sequence): Reapply translation maps when
15231 switching keyboards.
15232
15233 2008-09-09 Kenichi Handa <handa@m17n.org>
15234
15235 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
15236 characters.
15237
15238 * composite.c (FORWARD_CHAR): Fix calculation
15239 of (POSITION).pos_byte.
15240 (composition_compute_stop_pos): Limit the search of composition to
15241 at most 500 characters ahead. If we reach the limit or find a
15242 newline, set cmp_it->ch to -2 and return 0.
15243 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
15244
15245 2008-09-08 Kenichi Handa <handa@m17n.org>
15246
15247 * indent.c (Fvertical_motion): Be sure to set
15248 it_overshoot_expected if it.cmp_it.id is non-negative.
15249
15250 2008-09-07 Andreas Schwab <schwab@suse.de>
15251
15252 * callproc.c (Fcall_process): Don't hold references to string data
15253 across garbage collection. Move initialisation of new_argv down
15254 to avoid compiler bug.
15255
15256 2008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
15257
15258 * process.c (Fsystem_process_attributes): Doc fix.
15259
15260 2008-09-07 Chong Yidong <cyd@stupidchicken.com>
15261
15262 * callproc.c (Fcall_process): Canonicalize current directory name.
15263
15264 * xdisp.c (move_it_to): When moving by vpos, ensure that the
15265 iterator advances to the next line if the current line ends in a
15266 continued tab.
15267
15268 2008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
15269
15270 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
15271 member to point to cmp_from.
15272
15273 * xdisp.c: Doc fix for references to gidx data member.
15274
15275 2008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
15276
15277 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
15278
15279 2008-09-07 Kenichi Handa <handa@m17n.org>
15280
15281 * composite.c (FORWARD_CHAR): Check STOP after
15282 incrementing (POSITION).pos.
15283
15284 2008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
15285
15286 * process.c (Fsystem_process_attributes): Doc fix.
15287
15288 2008-09-06 Chong Yidong <cyd@stupidchicken.com>
15289
15290 * keyboard.c (Ftop_level): Doc fix.
15291
15292 2008-09-06 Eli Zaretskii <eliz@gnu.org>
15293
15294 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
15295 minibuffer, don't let lower part of menu invade the echo area.
15296
15297 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
15298 "char *q" to access menu text and advance through it. Revert the
15299 change that displayed ">" instead of ASCII character 0x10.
15300
15301 2008-09-05 Eli Zaretskii <eliz@gnu.org>
15302
15303 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
15304 toggle boxes and radio buttons on MS-DOS as well.
15305
15306 2008-09-05 Kenichi Handa <handa@m17n.org>
15307
15308 * composite.c (autocmp_chars): Check lookback count.
15309 (composition_compute_stop_pos): Set cmp_it->lookback.
15310 (composition_reseat_it): Check lookback count.
15311 (struct position_record): New struct.
15312 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
15313 (find_automatic_composition): New function.
15314 (composition_adjust_point): Use find_automatic_composition.
15315
15316 * dispextern.h (struct composition_it): New member lookback.
15317
15318 2008-09-02 Chong Yidong <cyd@stupidchicken.com>
15319
15320 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
15321 if moving by a single line.
15322
15323 2008-09-02 Andreas Schwab <schwab@suse.de>
15324
15325 * xterm.c (x_delete_display): Fix merge error.
15326
15327 * fileio.c (Fexpand_file_name): Remove unused variables.
15328
15329 2008-09-02 Eli Zaretskii <eliz@gnu.org>
15330
15331 * fileio.c (Fexpand_file_name): Copy argument `name' into local
15332 storage on all platforms, not just on DOS_NT.
15333
15334 2008-09-02 Jason Rumney <jasonr@gnu.org>
15335
15336 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
15337 Ensure mouse is not grabbed after menu is finished.
15338
15339 2008-09-01 Chong Yidong <cyd@stupidchicken.com>
15340
15341 * xfaces.c (Finternal_set_alternative_font_family_alist)
15342 (Finternal_set_alternative_font_registry_alist): Properly copy
15343 entire alist structure.
15344
15345 2008-09-01 Kenichi Handa <handa@m17n.org>
15346
15347 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
15348 representative chars of the script is a vector.
15349 (ftfont_list): Handle the case where the representative chars of
15350 the script is a vector.
15351
15352 * character.c (syms_of_character): Docstring of
15353 script-representative-chars fixed.
15354
15355 2008-08-31 Eli Zaretskii <eliz@gnu.org>
15356
15357 * msdos.c (BUILD_CHAR_GLYPH): New macro.
15358 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
15359 the menu. Allocate larger buffer for `text', to account for
15360 possible ^C characters.
15361
15362 2008-08-31 Martin Rudalics <rudalics@gmx.at>
15363
15364 * xdisp.c (prepare_menu_bars): Don't call
15365 Vwindow_size_change_functions with arg Qt.
15366
15367 2008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
15368
15369 * font.h (font_range):
15370 * fileio.c (report_file_error):
15371 * composite.c (composition_update_it): Yet another int/Lisp_Object
15372 mixup (YAILOM).
15373
15374 2008-08-30 Glenn Morris <rgm@gnu.org>
15375
15376 * data.c (Fmake_variable_frame_local): Doc fix.
15377
15378 * frame.c (Fmodify_frame_parameters): Doc fix.
15379
15380 2008-08-30 Eli Zaretskii <eliz@gnu.org>
15381
15382 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
15383 needed by GetTokenInformation.
15384 (w32_system_process_attributes): Check return values of all system
15385 APIs.
15386
15387 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
15388 only when the state changes.
15389 (IT_update_begin, IT_update_end): Add termscript trace.
15390
15391 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
15392 clipboard is unavailable. Set dst to NULL if it doesn't point to
15393 malloc'ed data.
15394 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
15395 passing random values to xfree.
15396
15397 * dispnew.c (init_display): Set `tty's association in frame's
15398 parameters alist to the name of the terminal device, if that is known.
15399
15400 2008-08-29 Jason Rumney <jasonr@gnu.org>
15401
15402 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
15403
15404 2008-08-29 Eli Zaretskii <eliz@gnu.org>
15405
15406 * composite.c (fill_gstring_body): Avoid compiler warnings.
15407
15408 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
15409 LGLYPH_SET_CODE to avoid compiler warnings.
15410
15411 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
15412
15413 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
15414
15415 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
15416 LGLYPH_SET_CODE.
15417
15418 2008-08-29 Kenichi Handa <handa@m17n.org>
15419
15420 * fileio.c (report_file_error): Don't downcase the first character
15421 of errstring if it is still unibyte.
15422
15423 2008-08-29 Kenichi Handa <handa@m17n.org>
15424
15425 These changes are to re-implement the automatic composition so
15426 that it doesn't use text properties.
15427
15428 * Makefile.in (ftfont.o): Depend on composite.h.
15429 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
15430
15431 * character.h (Vunicode_category_table): Extern it.
15432
15433 * character.c (Vunicode_category_table): New variable.
15434 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
15435
15436 * chartab.c (optimize_sub_char_table): Perform more greedy
15437 optimization.
15438
15439 * composite.h (enum composition_method):
15440 Delete COMPOSITION_WITH_GLYPH_STRING.
15441 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
15442 (Vcomposition_function_table): Extern it.
15443 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
15444 (composition_gstring_put_cache, composition_gstring_from_id)
15445 (composition_gstring_p, composition_gstring_width)
15446 (composition_compute_stop_pos, composition_reseat_it)
15447 (composition_update_it, composition_adjust_point): Extern them.
15448 (Fcomposition_get_gstring): EXFUN it.
15449
15450 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
15451 (Vcomposition_function_table)
15452 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
15453 (gstring_hash_table, gstring_work, gstring_work_headers):
15454 New variables.
15455 (gstring_lookup_cache, composition_gstring_put_cache)
15456 (composition_gstring_from_id, composition_gstring_p)
15457 (composition_gstring_width, fill_gstring_header)
15458 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
15459 (composition_reseat_it, composition_update_it)
15460 (composition_adjust_point, Fcomposition_get_gstring): New functions.
15461 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
15462 and gstring_work_headers. DEFVAR_LISP composition-function-table.
15463 Defsubr composition_get_gstring.
15464
15465 * dispextern.h (struct glyph): New union u.cmp. Delete the member
15466 cmp_id.
15467 (struct glyph_string): Delete the member gidx. New members
15468 cmp_id, cmp_from, and cmp_to.
15469 (enum it_method): Delete GET_FROM_COMPOSITION.
15470 (struct composition_it): New struct.
15471 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
15472 Delete c, len, cmp_id, cmp_len in u.comp.
15473
15474 * font.h (enum lgstring_indices): Delete it.
15475 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
15476 (enum lglyph_indices): Likewise.
15477 (font_range): Adjust extern.
15478 (font_fill_lglyph_metrics): Extern it.
15479
15480 * font.c (QCf): New variable.
15481 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
15482 (font_prepare_composition): Delete this function.
15483 (font_range): Type and arguments changed.
15484 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
15485 (font_fill_lglyph_metrics): New function.
15486 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
15487 (syms_of_font): DEFSYM QCf. Delete defsubr for
15488 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
15489 Defsubr Sfont_shape_gstring.
15490
15491 * fontset.h (font_for_char): Extern it.
15492
15493 * fontset.c (font_for_char): New function.
15494
15495 * ftfont.c: Include composite.h.
15496 (ftfont_resolve_generic_family): Add langset "en" to pattern.
15497 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
15498
15499 * indent.c: Include composite.h and dispextern.h.
15500 (check_composition): Delete this function.
15501 (scan_for_column): Handle composition by
15502 composition_compute_stop_pos, composition_reseat_it, and
15503 composition_update_it.
15504 (compute_motion): Likewise.
15505 (Fvertical_motion): Fix checking of composition.
15506
15507 * keyboard.c (adjust_point_for_property): Check composition by
15508 composition_adjust_point.
15509
15510 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
15511 struct glyph_string.
15512
15513 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
15514 (append_composite_glyph): Adjust for the change of struct it and
15515 struct glyph.
15516 (produce_composite_glyph): Likewise.
15517
15518 * w32term.c (x_draw_composite_glyph_string_foreground):
15519 Adjust for the change of struct glyph_string.
15520 (x_draw_glyph_string): Likewise.
15521
15522 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
15523 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
15524
15525 * xdisp.c: Include font.h.
15526 (it_props): Delete the entry for Qauto_composed.
15527 (init_iterator): Initialize it->cmp_it.id to -1.
15528 (compute_stop_pos): Call composition_compute_stop_pos.
15529 (face_before_or_after_it_pos): Adjust for the change of struct it.
15530 (handle_auto_composed_prop): Delete it.
15531 (handle_composition_prop): Handle only static composition.
15532 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
15533 from xassert. Initialize it->cmp_it.stop_pos.
15534 (push_it): Adjust for the change of struct it.
15535 (pop_it): Likewise.
15536 (get_next_element): Delete next_element_from_composition.
15537 (CHAR_COMPOSED_P): New macro.
15538 (get_next_display_element): For automatic composition, get a face
15539 from the font in the glyph-string.
15540 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
15541 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
15542 (next_element_from_string): Check if the character at the current
15543 position is composed by CHAR_COMPOSED_P.
15544 (next_element_from_buffer): Likewise.
15545 (next_element_from_composition): Adjust for the change of struct it.
15546 Update it->cmp_it.
15547 (dump_glyph): Adjust for the change of struct glyph.
15548 (fill_composite_glyph_string): Adjust for the change of struct
15549 it and struct glyph. Don't handle automatic composition here.
15550 (fill_gstring_glyph_string): New function.
15551 (x_get_glyph_overhangs): Handle automatic composition.
15552 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
15553 (BUILD_GSTRING_GLYPH_STRING): New macro.
15554 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
15555 automatic composition.
15556 (append_composite_glyph): Adjust for the change of struct it and
15557 struct glyph.
15558 (x_produce_glyphs): Adjust for the change of struct it.
15559
15560 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
15561 the change of struct glyph_string.
15562 (x_draw_glyph_string): Likewise.
15563
15564 2008-08-29 Glenn Morris <rgm@gnu.org>
15565
15566 * buffer.c (word-wrap): Doc fix.
15567 * xdisp.c (truncate-partial-width-windows): Doc fix.
15568 Increase default to 50.
15569
15570 2008-08-29 Chong Yidong <cyd@stupidchicken.com>
15571
15572 * xdisp.c (update_tool_bar_unwind): New function.
15573 (update_tool_bar): Temporarily set selected frame before building
15574 tool-bar items.
15575
15576 2008-08-28 Michael Albinus <michael.albinus@gmx.de>
15577
15578 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
15579 snprintf, respectively.
15580 (xd_append_arg): Convert strings with Fstring_make_unibyte.
15581
15582 2008-08-28 Chong Yidong <cyd@stupidchicken.com>
15583
15584 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
15585 LDFLAGS to GNUstep CC invocation.
15586
15587 2008-08-27 Chong Yidong <cyd@stupidchicken.com>
15588
15589 * indent.c (Fvertical_motion): Revert last change. Handle the
15590 general case where we are moving forward, and PT spans multiple
15591 screen lines.
15592
15593 * eval.c (find_handler_clause): Temporarily increase
15594 max-lisp-eval-depth while printing the backtrace buffer, to
15595 guarantee that help-mode code can run.
15596
15597 2008-08-27 Eli Zaretskii <eliz@gnu.org>
15598
15599 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
15600 colors under -rv.
15601 (IT_set_frame_parameters): Don't swap foreground and background
15602 colors if `(reverse . t)' is present in the frame properties.
15603 (internal_terminal_init): Call init_frame_faces only for the
15604 initial frame.
15605
15606 2008-08-27 Andreas Schwab <schwab@suse.de>
15607
15608 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
15609
15610 2008-08-27 Andreas Schwab <schwab@suse.de>
15611
15612 * search.c (search_buffer): Set char_base to zero only at the end.
15613
15614 2008-08-27 Kenichi Handa <handa@m17n.org>
15615
15616 * fileio.c (report_file_error): Fix handling of multibyte error string.
15617
15618 2008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
15619
15620 * xterm.c (x_term_init): Temporarily hide the partially
15621 initialized terminal while calling vendor-specific-keysyms.
15622
15623 2008-08-26 Eli Zaretskii <eliz@gnu.org>
15624
15625 * msdos.c (internal_terminal_init): Most initializations done only
15626 once, especially initial_screen_colors[] and termscript open.
15627
15628 2008-08-26 Chong Yidong <cyd@stupidchicken.com>
15629
15630 * eval.c (Fcondition_case): Doc fix.
15631
15632 * widgetprv.h (EmacsFramePart): Change font member to the new font
15633 struct.
15634
15635 * widget.c: Include character.h and font.h for XSETFONT.
15636 (setup_frame_gcs): Compute X font id from font struct, just once.
15637
15638 2008-08-26 Eli Zaretskii <eliz@gnu.org>
15639
15640 * term.c (get_named_tty): Fix last change.
15641
15642 2008-08-26 Chong Yidong <cyd@stupidchicken.com>
15643
15644 * indent.c (Fvertical_motion): If moving forward starting from a
15645 multi-line string, move the iterator to the last line of that string.
15646
15647 2008-08-25 Eli Zaretskii <eliz@gnu.org>
15648
15649 * frame.c (do_switch_frame): Mark previously displayed frame as
15650 obscured for FRAME_MSDOS_P frames as well.
15651
15652 2008-08-24 Eli Zaretskii <eliz@gnu.org>
15653
15654 * frame.c (make_terminal_frame): Initialize f->terminal,
15655 f->terminal->reference_count, and scroll bars on MS-DOS as well.
15656 Set the top frame to newly created frame.
15657 (Fmake_terminal_frame): Reuse the_only_display_info.
15658
15659 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
15660 estimating available memory.
15661
15662 2008-08-23 David Reitter <david.reitter@gmail.com>
15663
15664 * nsterm.m (ns_draw_window_cursor): Don't call
15665 NSDisableScreenUpdates and NSEnableScreenUpdates on
15666 non-NS_IMPL_COCOA systems.
15667
15668 2008-08-23 Andreas Schwab <schwab@suse.de>
15669
15670 * process.c (procfs_system_process_attributes): Fix use of
15671 uninitialized variables.
15672
15673 2008-08-23 Eli Zaretskii <eliz@gnu.org>
15674
15675 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
15676
15677 * dispnew.c (init_display): Remove MS-DOS specific conditions for
15678 calling tty-set-up-initial-frame-faces.
15679
15680 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
15681 Allow MSDOS frames along with X frames.
15682
15683 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
15684 addition to output_termcap.
15685
15686 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
15687
15688 * termchar.h (FRAME_TTY): Support output_msdos_raw.
15689 (struct tty_display_info) [MSDOS]: Add fields related to mouse
15690 highlight.
15691
15692 * process.c [!subprocesses]: Define QCname.
15693 (syms_of_process): Intern and staticpro it.
15694
15695 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
15696 Adjust for changes in encoding/decoding routines.
15697 Use encode_coding_object and decode_coding_object instead of
15698 encode_coding and decode_coding.
15699
15700 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
15701
15702 * dosfns.c: Include frame.h before termhooks.h.
15703 (dos_cleanup): Use CURTTY ()->termscript instead of a global
15704 variable termscript.
15705
15706 * s/msdos.h (USER_FULL_NAME): Define.
15707 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
15708
15709 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
15710 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
15711 pw->pw_gecos.
15712
15713 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
15714 SELECTED_FRAME as additional (1st) argument.
15715 (tty_read_avail_input): Handle output_msdos_raw in
15716 addition to output_termcap.
15717
15718 * msdos.c: Include frame.h before termhooks.h.
15719 (mouse_on, mouse_off, mouse_moveto, mouse_init)
15720 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
15721 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
15722 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
15723 (IT_set_terminal_modes, IT_reset_terminal_modes)
15724 (IT_set_frame_parameters): Use tty->termscript instead of a global
15725 variable termscript.
15726 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
15727 global variable terminal_coding. Don't refer to
15728 Vnonascii_translation_table.
15729 (internal_terminal_init): Set Vwindow_system in current_kboard.
15730 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
15731 Announce date and time of session start, if termscript is open.
15732 Don't zero out the_only_display_info (it is done in
15733 term.c:init_tty). Open termscript only of not already open.
15734 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
15735 here instead of dos_ttraw. Don't initialize display if this is an
15736 initial tty. Don't set FRAME_FONT.
15737 (Vwindow_system_version): Bump to 23.
15738 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
15739 is available, set up mouse_position_hook.
15740 (dos_ttraw, IT_set_terminal_modes): If called with initial
15741 terminal, do nothing.
15742 (IT_set_frame_parameters): Handle the Qtty_type frame
15743 parameter by calling internal_terminal_init.
15744 (dos_set_window_size, show_mouse_face)
15745 (clear_mouse_face, IT_note_mode_line_highlight)
15746 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
15747 (dos_rawgetc): Use tty_display_info instead of x_display_info.
15748 (initialize_msdos_display): New function.
15749 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
15750 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
15751 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
15752 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
15753 Accept additional argument: a pointer to a frame. Update all callers.
15754 (request_sigio, unrequest_sigio): Don't define, now defined on
15755 sysdep.c.
15756 (IT_write_glyphs): Rewrite to use encode_terminal_code.
15757
15758 * term.c [MSDOS]: Include msdos.h.
15759 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
15760 conditional to DOS_NT. Allow only one call to this function in a
15761 session. Don't allocate a new struct tty_display_info; instead,
15762 reuse the_only_display_info. Call get_tty_size to get screen
15763 dimensions. Call init_baud_rate to set bad_rate.
15764 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
15765 (Fsuspend_tty) [MSDOS]: Don't close input and output.
15766 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
15767 (get_tty_terminal, get_named_tty, Ftty_type)
15768 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
15769 output_termcap.
15770 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
15771 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
15772 only when subprocesses are supported.
15773
15774 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
15775 f->output_data.x.
15776 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
15777 terminal devices.
15778
15779 * msdos.h: Remove definition of struct x_display_info and struct
15780 x_output.
15781 (FRAME_FONT): Use output_data.tty.
15782 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
15783 (struct x_display_info): Rename from display_info. Update all users in
15784 msdos.c.
15785 (struct x_output): Remove background_pixel and foreground_pixel.
15786 (the_only_display_info): Rename from the_only_x_display.
15787 (dos_ttraw): Update prototype.
15788
15789 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
15790 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
15791
15792 2008-08-23 Jason Rumney <jasonr@gnu.org>
15793
15794 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
15795 (fn_TIFFSetDirectory): New library function used.
15796 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
15797 (tiff_load): Use :index to select among multiple images. Set count
15798 property when multiple images exist.
15799 (gif_format): Use :index, not :image.
15800
15801 2008-08-23 Chong Yidong <cyd@stupidchicken.com>
15802
15803 * xdisp.c (try_scrolling): Check INT_MAX instead of
15804 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
15805 to obtain INT_MAX.
15806
15807 2008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
15808
15809 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
15810
15811 2008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
15812
15813 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
15814 GNUstep library location.
15815
15816 2008-08-21 Chong Yidong <cyd@stupidchicken.com>
15817
15818 * xfaces.c (x_update_menu_appearance): Check validity of menu font
15819 before using it.
15820
15821 * puresize.h (BASE_PURESIZE): Increase to 1250000.
15822
15823 2008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
15824
15825 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
15826 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
15827 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
15828 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
15829 (EmacsApp-cursor_blink_handler): Remove declaration.
15830 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
15831 match 01 Feb 2008 changes in xterm.c.
15832 (ns_read_socket): Add cast to avoid warning.
15833 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
15834 GNUstep.
15835
15836 2008-08-20 Chong Yidong <cyd@stupidchicken.com>
15837
15838 * xselect.c (x_get_foreign_selection): Return nil if desired
15839 selection could not be obtained, instead of signalling an error.
15840
15841 2008-08-20 David Reitter <david.reitter@gmail.com>
15842
15843 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
15844 * nsterm.m: Remove ns-specific code for cursor blinking.
15845 (ns_draw_window_cursor): Clear cursor properly rather than
15846 redrawing the area. Respect width of bar cursors.
15847 These changes enable the use of generic blink-cursor-mode and
15848 generic cursor types in NS and support smooth cursor movements (do
15849 not blink off after command).
15850 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
15851 Nextstep, too.
15852
15853 2008-08-19 Kenichi Handa <handa@m17n.org>
15854
15855 * font.c (Vfont_log_deferred): New variable.
15856 (font_add_log): Check Vfont_log_deferred.
15857 (font_deferred_log): New function.
15858
15859 * font.h (font_deferred_log): Extern it.
15860
15861 * fontset.c (reorder_font_vector): Use encoding charset of fonts
15862 for sorting.
15863 (face_for_char): Use deferred log.
15864
15865 2008-08-18 Kenichi Handa <handa@m17n.org>
15866
15867 * fontset.c (face_for_char): Add font log.
15868
15869 * font.c (font_add_log): Add the font properties :script, :lang,
15870 and :otf in the log.
15871
15872 2008-08-17 Chong Yidong <cyd@stupidchicken.com>
15873
15874 * xdisp.c: Remove dead code.
15875 (handle_invisible_prop, next_overlay_string): Defer call to
15876 setup_for_ellipsis.
15877 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
15878
15879 2008-08-15 Chong Yidong <cyd@stupidchicken.com>
15880
15881 * xfaces.c (lookup_derived_face): Properly handle possible zero
15882 return value of get_lface_attributes.
15883 (merge_faces): Don't tell lookup_derived_face to signal an error
15884 if face is not found.
15885
15886 * dired.c (Fdirectory_files): Doc fix.
15887
15888 * process.c (make_process): Initialize kill_without_query struct
15889 member.
15890
15891 2008-08-15 Eli Zaretskii <eliz@gnu.org>
15892
15893 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
15894 Alternative calculation of totphys for Visual Studio 6.
15895
15896 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
15897
15898 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
15899 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
15900 All users changed.
15901 (stat): Only root directory passed to GetDriveType. Allow RAM
15902 disk as well as local fixed disk when w32-get-true-file-attributes
15903 is set to `local'.
15904 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
15905 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
15906 (w32_cached_id, w32_add_to_cache): New functions.
15907 (get_name_and_id): Look account names in the cache before calling
15908 lookup_account_sid.
15909 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
15910 New initialization flags.
15911 (globals_of_w32): Initialize them to zero.
15912 (w32_system_process_attributes): Use w32_cached_id and
15913 w32_add_to_cache.
15914
15915 2008-08-14 Lawrence Mitchell <wence@gmx.li>
15916
15917 * lread.c (Fread_char, Fread_char_exclusive): If no character
15918 event is read before timeout is reached, return nil, rather than
15919 converting to a number.
15920
15921 2008-08-14 Chong Yidong <cyd@stupidchicken.com>
15922
15923 * fns.c (use_dialog_box): Doc fix.
15924
15925 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
15926 on OS X.
15927
15928 2008-08-13 Chong Yidong <cyd@stupidchicken.com>
15929
15930 * frame.c (Qns_parse_geometry): New var.
15931 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
15932
15933 2008-08-11 Chong Yidong <cyd@stupidchicken.com>
15934
15935 * xdisp.c (x_produce_glyphs): Handle the case when font has no
15936 space character in calculating tabs.
15937
15938 2008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
15939
15940 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
15941
15942 2008-08-10 Glenn Morris <rgm@gnu.org>
15943
15944 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
15945 silence gcc "limited range of data type" warnings in some
15946 make_fixnum_or_float calls.
15947
15948 2008-08-09 Eli Zaretskii <eliz@gnu.org>
15949
15950 * w32.c (w32_system_process_attributes): If the process does not
15951 exist, return nil.
15952
15953 * w32.c: Include thelp32.h, psapi.h and coding.h.
15954 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
15955 declarations.
15956 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
15957 (Process32Next_Proc): New typedefs.
15958 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
15959 (g_b_init_process32_next, g_b_init_open_thread_token)
15960 (g_b_init_impersonate_self, g_b_init_revert_to_self)
15961 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
15962 (g_b_init_get_process_working_set_size)
15963 (g_b_init_global_memory_status_ex): New static variables.
15964 (globals_of_w32): Initialize them.
15965 (create_toolhelp32_snapshot, process32_first, process32_next)
15966 (open_thread_token, impersonate_self, revert_to_self)
15967 (get_process_memory_info, get_process_working_set_size)
15968 (global_memory_status, global_memory_status_ex): New wrapper
15969 functions.
15970 (w32_list_system_processes, w32_system_process_attributes)
15971 (enable_privilege, restore_privilege, ltime, process_times):
15972 New functions.
15973 (convert_time_raw): New function.
15974 (convert_time): Remove conversion of FILETIME into time in 100
15975 nsec units, call convert_time_raw instead.
15976
15977 * process.h (w32_list_system_processes, w32_system_process_attributes):
15978 Add prototypes.
15979 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
15980 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
15981 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
15982 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
15983
15984 * process.c (Fsystem_process_attributes): Doc fix.
15985
15986 2008-08-08 Chong Yidong <cyd@stupidchicken.com>
15987
15988 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
15989 a continued multi-char glyph; if so, advance to the actual glyph.
15990
15991 2008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
15992
15993 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
15994
15995 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
15996 (.m.o): Use it.
15997 * config.in: Regenerate.
15998
15999 2008-08-07 Chong Yidong <cyd@stupidchicken.com>
16000
16001 * xdisp.c (redisplay_window): Revert last change.
16002 (try_window): Check bottom scroll margin too.
16003
16004 2008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
16005
16006 * config.in: Regenerate.
16007
16008 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
16009 -list-load-path-shadows'.
16010 (nsgui.h): Reduce number of things depending on it.
16011
16012 2008-08-06 Chong Yidong <cyd@stupidchicken.com>
16013
16014 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
16015 instead of window-end which does the wrong thing at eob.
16016 (try_cursor_movement): Minor optimization.
16017 (redisplay_window): If scroll margin is defined, don't assume
16018 window doesn't need scrolling.
16019
16020 2008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
16021
16022 * config.in: Regenerate.
16023
16024 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
16025 (mostlyclean): Don't delete *.d under NS.
16026
16027 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
16028
16029 2008-08-06 Kenichi Handa <handa@m17n.org>
16030
16031 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
16032
16033 2008-08-06 Andreas Schwab <schwab@suse.de>
16034
16035 * config.in: Regenerate.
16036
16037 2008-08-05 Chong Yidong <cyd@stupidchicken.com>
16038
16039 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
16040 forcing a window start.
16041
16042 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
16043 (auto_save_1): Update modtime when auto-save-list-file-name is on.
16044
16045 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
16046
16047 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
16048 argument.
16049
16050 2008-08-05 Juanma Barranquero <lekktu@gmail.com>
16051
16052 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
16053 <scroll-down-aggressively, before-change-functions>:
16054 <after-change-functions>: Reflow docstrings.
16055
16056 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
16057 Ken Raeburn <raeburn@gnu.org>
16058
16059 Dock menu customization, based on a patch by Ken Raeburn, plus some
16060 other fixes.
16061 * nsmenu.m (dockMenu): New variable.
16062 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
16063
16064 * nsterm.h (dockMenu): Declare.
16065
16066 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
16067 (ns_term_init): Initialize dockMenu.
16068 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
16069 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
16070 left.
16071
16072 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
16073
16074 2008-08-04 Chong Yidong <cyd@stupidchicken.com>
16075
16076 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
16077
16078 * config.in: Regenerate.
16079
16080 2008-08-04 Seiji Zenitani <zenitani@mac.com>
16081
16082 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
16083
16084 2008-08-04 Chong Yidong <cyd@stupidchicken.com>
16085
16086 * nsterm.h (find_and_call_menu_selection): Fix prototype.
16087
16088 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
16089
16090 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
16091
16092 * keyboard.h: Comment an #endif.
16093
16094 * lisp.h (have_menus_p): Adjust comment.
16095
16096 * menu.c (find_and_return_menu_selection): Fix comparison with
16097 client_data.
16098
16099 * nsmenu.m (popup_activated_flag): New variable.
16100 (popup_activated): New function.
16101 (menu-or-popup-active-p): New exported lisp definition.
16102 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
16103 when popup done.
16104 (ns_popup_dialog): Set popup_activated_flag.
16105
16106 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
16107 version for GNUstep (handled by conditional typedef in nsterm.m).
16108 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
16109 in rgb.txt).
16110
16111 * process.c (init_process): Use DARWIN_OS, not DARWIN.
16112
16113 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
16114
16115 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
16116
16117 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
16118 shortcircuit if popup_activated like GTK and X toolkit.
16119
16120 * m/inter386.h: Change DARWIN to DARWIN_OS.
16121
16122 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
16123 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
16124 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood.
16125 Expand comment on NO_SOCK_SIGIO.
16126
16127 2008-08-03 Chong Yidong <cyd@stupidchicken.com>
16128
16129 * nsterm.m (windowDidResize): Remove stopModal call.
16130
16131 2008-08-03 Andreas Schwab <schwab@suse.de>
16132
16133 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
16134 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
16135
16136 2008-08-02 Chong Yidong <cyd@stupidchicken.com>
16137
16138 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
16139 Don't use uninitialized pointer variable when using getrlimit.
16140
16141 2008-08-02 Jason Rumney <jasonr@gnu.org>
16142
16143 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
16144
16145 2008-08-02 Eli Zaretskii <eliz@gnu.org>
16146
16147 * alloc.c (NSTATICS): Bump to 0x640.
16148
16149 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
16150
16151 * lisp.h: Add prototype for directory_files_internal.
16152
16153 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
16154 New functions.
16155 (syms_of_process): Defsubr them. Add initializations for various
16156 Q* symbols used in procfs_system_process_attributes.
16157 (procfs_list_system_processes, procfs_system_process_attributes)
16158 [HAVE_PROCFS]: New functions.
16159 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
16160 (procfs_get_total_memory): New functions.
16161
16162 2008-08-01 Juanma Barranquero <lekktu@gmail.com>
16163
16164 * xfaces.c (Fx_load_color_file): Fix previous change;
16165 it is #ifdef WINDOWSNT, not WINDOWS_NT.
16166
16167 2008-08-01 Michael Albinus <michael.albinus@gmx.de>
16168
16169 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
16170
16171 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
16172
16173 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
16174
16175 2008-08-01 Chong Yidong <cyd@stupidchicken.com>
16176
16177 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
16178
16179 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
16180 define NSApplicationDelegateReplySuccess.
16181 (EmacsView -converstationIdentifier): Use long instead of
16182 NSInteger for GNUstep, since it doesn't have NSInteger.
16183
16184 * xmenu.c: Revert last change.
16185
16186 * keyboard.h: Fix last change.
16187
16188 2008-08-01 Juanma Barranquero <lekktu@gmail.com>
16189
16190 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
16191 on Windows.
16192
16193 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
16194
16195 Warning clearing and clean-up in NS port.
16196 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
16197 Add prototypes.
16198 * nsgui.h (FACE_DEFAULT): Remove, unused.
16199 (XGCValues): Change colors to unsigned long.
16200 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
16201 nsterm.m.
16202 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
16203 (ns_list_fonts): Remove, unused.
16204 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
16205 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
16206 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
16207 (nsfont_draw): Compare face colors to 0, not nil.
16208 * nsmenu.m (struct widget_value): Drop unneeded declaration.
16209 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
16210 (-addSubmenuWithTitle:): Use NSMenuItem class.
16211 (ns_popup_menu): Use NO, not NULL, for enabled setting.
16212 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
16213 (ns_clip_to_row): Make gc arg a BOOL.
16214 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
16215 ns_clip_to_row() call.
16216 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
16217 used). Cast FRAME_FONT assignments.
16218 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
16219 (ns_string_to_lispmod): Change arg to const char.
16220 (ns_term_init): Use NSMenuItem class.
16221 (EmacsApp -openFile:): Move to different section of file.
16222 (EmacsApp -application:openFiles:): Don't return a value, call
16223 -replyToOpenOrPrint:.
16224 (EmacsView -keyDown:): Fix up cast.
16225 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
16226 (EmacsView -menuDown:): Cast tag in call to
16227 find_and_call_menu_selection().
16228 (ns_list_fonts): Remove, unused.
16229 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
16230 (ns_fontname_to_xlfd): Make static.
16231 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
16232 Remove prototypes (now in keyboard.h).
16233 (next_menubar_widget_id): Remove, unused.
16234 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
16235 Remove prototypes (now in keyboard.h).
16236 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
16237
16238 2008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
16239
16240 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
16241 (floatfns.o): Depend on syssignal.h.
16242 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
16243
16244 * systty.h: Fix previous change that removed BSD_TERMIOS.
16245 Add comments to #ifdefs.
16246
16247 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
16248
16249 * w32fns.c (w32-load-color-file): Remove.
16250 (x-open-connection): Use renamed Fx_load_color_file.
16251 * xfaces.c (x-load-color-file): Add.
16252 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
16253 Emacs.clr.
16254 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
16255
16256 2008-07-31 Michael Albinus <michael.albinus@gmx.de>
16257
16258 * dbusbind.c (Fdbus_call_method_asynchronously)
16259 (Fdbus_method_error_internal): New defuns.
16260 (xd_read_message): Handle also reply messages.
16261 (Vdbus_registered_functions_table): Extend docstring.
16262
16263 2008-07-31 Juanma Barranquero <lekktu@gmail.com>
16264
16265 * keyboard.c (gobble_input): Fix previous change.
16266
16267 2008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
16268
16269 * bitmaps/README:
16270 * xfns.c:
16271 * termcap.c:
16272 * term.c:
16273 * syswait.h:
16274 * systty.h:
16275 * systime.h:
16276 * syssignal.h:
16277 * sysdep.c:
16278 * process.h:
16279 * process.c:
16280 * print.c:
16281 * ndir.h:
16282 * lread.c:
16283 * keyboard.c:
16284 * getpagesize.h:
16285 * floatfns.c:
16286 * fileio.c:
16287 * emacs.c:
16288 * doc.c:
16289 * dispnew.c:
16290 * dired.c:
16291 * data.c:
16292 * callproc.c:
16293 * buffer.c:
16294 * README:
16295 * Makefile.in:
16296 * s/template.h:
16297 * s/msdos.h:
16298 * m/vax.h: Remove VMS support.
16299 * s/vms.h:
16300 * vlimit.h:
16301 * uaf.h:
16302 * temacs.opt:
16303 * param.h:
16304 * ioctl.h: Remove file.
16305
16306 2008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
16307
16308 * s/ms-w32.h (MULTI_KBOARD): Remove.
16309 * xterm.c:
16310 * xselect.c:
16311 * xfns.c:
16312 * window.c:
16313 * w32term.c:
16314 * w32fns.c:
16315 * terminal.c:
16316 * termhooks.h:
16317 * term.c:
16318 * sysdep.c:
16319 * keyboard.h:
16320 * keyboard.c:
16321 * frame.h:
16322 * frame.c:
16323 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
16324 * config.in: Regenerate.
16325
16326 2008-07-30 Jason Rumney <jasonr@gnu.org>
16327
16328 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
16329
16330 * w32font.c (w32font_encode_char): Leave as unicode if in range.
16331 (w32font_open_internal): Get unicode version of textmetrics.
16332 Don't enable or disable glyph indices here.
16333 (w32font_open): Disable use of glyph indices.
16334
16335 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
16336
16337 2008-07-30 Chong Yidong <cyd@stupidchicken.com>
16338
16339 * minibuf.c (Vread_buffer_function): Doc fix.
16340
16341 2008-07-30 John Paul Wallington <jpw@pobox.com>
16342
16343 * minibuf.c (read_buffer_completion_ignore_case): New var.
16344 (Fread_buffer): Use it.
16345
16346 2008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
16347
16348 * systty.h (sensemode): Remove empty #if. Remove reference to
16349 BSD_TERMIOS, unused.
16350
16351 * sysdep.c: Remove reference to DGUX.
16352 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
16353
16354 * config.in: Regenerate.
16355
16356 2008-07-30 Jason Rumney <jasonr@gnu.org>
16357
16358 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
16359
16360 2008-07-29 Jason Rumney <jasonr@gnu.org>
16361
16362 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
16363 is populated.
16364 (uniscribe_encode_char): Always use uniscribe.
16365 Avoid using context if cache is populated.
16366
16367 2008-07-29 Jan Djärv <jan.h.d@swipnet.se>
16368
16369 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
16370 open menu.
16371
16372 * gtkutil.c (menu_nav_ended): Remove.
16373 (create_menus): Remove signal connect for menu_nav_ended.
16374
16375 2008-07-28 Chong Yidong <cyd@stupidchicken.com>
16376
16377 * xdisp.c (redisplay_window): Check return value of
16378 compute_window_start_on_continuation_line before forcing a window
16379 start.
16380
16381 2008-07-28 Jason Rumney <jasonr@gnu.org>
16382
16383 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
16384
16385 * w32term.c (w32_enable_unicode_output, cleartype_active):
16386 Remove obsolete display options.
16387 (x_draw_glyph_string_background): Don't use old cleartype_active
16388 workaround.
16389 (w32_initialize): Remove cleartype_active initialization.
16390 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
16391
16392 2008-07-28 Andreas Schwab <schwab@suse.de>
16393
16394 * lisp.h (init_weak_hash_tables, syms_of_font)
16395 (xd_read_queued_messages, syms_of_dbusbind): Declare.
16396 (remove_hash_entry): Don't declare.
16397 * eval.c (maybe_call_debugger): Make static and move before use.
16398 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
16399 * xdisp.c: Include "gtkutil.h" if USE_GTK.
16400 * xterm.h (x_set_frame_alpha): Declare.
16401
16402 2008-07-28 Jan Djärv <jan.h.d@swipnet.se>
16403
16404 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
16405 (create_menus): Connect selection-done to menu_nav_ended.
16406
16407 2008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
16408
16409 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
16410 Set Vx_resource_name to a fallback. Replace read of 'buffered'
16411 parameter with read of 'alpha' one.
16412 (Qns_frame_parameter): Remove.
16413 * nsselect.m (selection-coding-system)
16414 (next-selection-coding-system, Vselection_coding_system)
16415 (Vnext_selection_coding_system): Drop.
16416
16417 2008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
16418
16419 * nsfns.m (do-applescript, do_applescript): Rename to
16420 ns-do-applescript, ns_do_applescript, and move within file.
16421
16422 2008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
16423
16424 Remove support for Mac Carbon.
16425 * mactoolbox.c:
16426 * macterm.h:
16427 * macterm.c:
16428 * macselect.c:
16429 * macmenu.c:
16430 * macgui.h:
16431 * macfns.c:
16432 * mac.c: Remove file.
16433 * s/darwin.h:
16434 * m/intel386.h:
16435 * xfaces.c:
16436 * xdisp.c:
16437 * window.c:
16438 * tparam.c:
16439 * termhooks.h:
16440 * termcap.c:
16441 * term.c:
16442 * syssignal.h:
16443 * sysselect.h:
16444 * sysdep.c:
16445 * process.c:
16446 * lread.c:
16447 * lisp.h:
16448 * keyboard.c:
16449 * image.c:
16450 * fringe.c:
16451 * frame.h:
16452 * frame.c:
16453 * fontset.c:
16454 * font.h:
16455 * font.c:
16456 * fns.c:
16457 * fileio.c:
16458 * emacs.c:
16459 * dispnew.c:
16460 * dispextern.h:
16461 * config.in:
16462 * atimer.c:
16463 * Makefile.in: Remove code for Carbon.
16464
16465 2008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16466
16467 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
16468
16469 2008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16470
16471 * macterm.h (kCGBitmapByteOrder32Host): New define for
16472 non-universal SDKs.
16473
16474 * image.c (mac_create_cg_image_from_image, image_load_image_io)
16475 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
16476
16477 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
16478 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
16479
16480 2008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
16481
16482 * w32inevt.c: Include dispextern.h.
16483
16484 2008-07-26 Andreas Schwab <schwab@suse.de>
16485
16486 * print.c (print_object): Fix off-by-one in last change.
16487
16488 2008-07-25 Juanma Barranquero <lekktu@gmail.com>
16489
16490 * term.c (syms_of_term): Don't initialize default_orig_pair,
16491 default_set_foreground and default_set_background on Windows.
16492
16493 2008-07-25 Jason Rumney <jasonr@gnu.org>
16494
16495 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
16496 ScriptItemize. Clean up return value checking. Remove unused
16497 variables.
16498 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
16499 shaping engine.
16500
16501 * w32font.c (w32font_has_char): Handle the case where we can't
16502 determine the script for a character.
16503
16504 2008-07-25 Chong Yidong <cyd@stupidchicken.com>
16505
16506 * term.c (syms_of_term): Initialize default_orig_pair,
16507 default_set_foreground, and default_set_background.
16508
16509 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
16510 clash (bug#86).
16511 (getloadavg): Callers changed.
16512
16513 * image.c (svg_load_image): Fix last change.
16514 (svg_load_image): Use rsvg_handle_get_dimensions to check that
16515 image size is valid. Use g_object_unref instead of deprecated
16516 rsvg_handle_free to free rsvg handle.
16517 (x_from_xcolors): Don't initialize pixmap (silence compiler).
16518
16519 2008-07-25 Jason Rumney <jasonr@gnu.org>
16520
16521 * w32font.c (w32font_encode_char): Encode characters outside BMP as
16522 surrogates before looking up glyph index.
16523 (w32font_text_extents): Encode as surrogates if falling back to
16524 functions that need UTF-16 wide chars.
16525
16526 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
16527 BMP as surrogates before looking up glyph index.
16528
16529 2008-07-25 Chong Yidong <cyd@stupidchicken.com>
16530
16531 * image.c (svg_load_image): Check for failure in return value of
16532 rsvg_handle_get_pixbuf. Free rsvg handle when done.
16533
16534 2008-07-25 Jason Rumney <jasonr@gnu.org>
16535
16536 * w32font.c (Fx_select_font): Reverse sense of second arg.
16537
16538 2008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
16539
16540 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
16541 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
16542
16543 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
16544 (PURESIZE): Use it.
16545
16546 2008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
16547
16548 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
16549 * m/alpha.h (TEXT_END):
16550 * m/ibmrs6000.h (TEXT_END):
16551 * m/macppc.h (TEXT_END):
16552 * s/darwin.h (TEXT_END):
16553 * s/msdos.h (TEXT_END): Remove, unused.
16554 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
16555 * s/cygwin.h: Remove comment.
16556
16557 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
16558 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
16559 * m/intel386.h (DOT_GLOBAL_START):
16560 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
16561 (USG): Remove, file not used on USG platforms.
16562
16563 * Makefile.in (HAVE_X11): Remove empty #else.
16564
16565 2008-07-24 Andreas Schwab <schwab@suse.de>
16566
16567 * fileio.c (Finsert_file_contents): Properly adjust undo list
16568 after format conversion.
16569
16570 2008-07-24 Jan Djärv <jan.h.d@swipnet.se>
16571
16572 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
16573 (menu_nav_ended): Remove.
16574 (create_menus): Remove signal connect for menu_nav_ended.
16575 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
16576 create_menus.
16577 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
16578
16579 2008-07-23 Jason Rumney <jasonr@gnu.org>
16580
16581 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
16582 with opened font.
16583 (w32font_open): Set font type to gdi.
16584
16585 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
16586
16587 2008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
16588
16589 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
16590 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
16591 defines it.
16592 * unexec.c (ADDR_CORRECT): Define unconditionally.
16593
16594 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
16595
16596 * unexec.c: Remove code depending on !COFF and USG, the file is
16597 not used for such systems.
16598
16599 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
16600 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
16601 (LD_SWITCH_SYSTEM_1): Remove, update users.
16602
16603 * s/darwin.h (DATA_END):
16604 * m/intel386.h (DATA_END):
16605 * m/ibmrs6000.h (DATA_END):
16606 * m/alpha.h (DATA_END): Remove, unused.
16607
16608 * config.in: Regenerate.
16609 * s/ms-w32.h (subprocesses): Define unconditionally.
16610 * s/template.h (subprocesses): Update comment.
16611 * s/vms.h (subprocesses):
16612 * s/usg5-4.h (subprocesses):
16613 * s/hpux10-20.h (subprocesses):
16614 * s/gnu-linux.h (subprocesses):
16615 * s/cygwin.h (subprocesses):
16616 * s/bsd-common.h (subprocesses):
16617 * s/aix4-2.h (subprocesses):
16618 * s/darwin.h (subprocesses): Do not define, defined by default now.
16619
16620 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
16621 Remove all references.
16622 (temacs): Add GNUstep specific ld flags.
16623
16624 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
16625 similarly to what X does.
16626
16627 2008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
16628
16629 * nsfns.m (x-list-fonts): Remove.
16630 (syms_of_nsfns): Drop the x-list-fonts declaration.
16631 * nsterm.m: Get rid of remaining "//" comments.
16632
16633 2008-07-22 Chong Yidong <cyd@stupidchicken.com>
16634
16635 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
16636
16637 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
16638 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
16639 (Fns_own_selection_internal, Fx_disown_selection_internal)
16640 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
16641
16642 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
16643 ... */' style of docstrings. Doc fixes.
16644
16645 2008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
16646
16647 * terminfo.c (UP, BC, PC): Undo previous change.
16648
16649 * nsfns.m: Rename ns prefixed functions/variables to the
16650 corresponding x versions. Update references.
16651
16652 2008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
16653
16654 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
16655
16656 2008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
16657
16658 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
16659 Remove forwarding functions.
16660 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
16661 non-static.
16662 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
16663 non-static.
16664 (ns_frame_parm_handlers): Use the new names.
16665 (syms_of_nsfns): Move to the end of file.
16666
16667 * nsterm.m (syms_of_nsterm): Move to the end of file.
16668
16669 * dispnew.c (init_display): Remove code for X10.
16670
16671 2008-07-22 Jason Rumney <jasonr@gnu.org>
16672
16673 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
16674 bare drive.
16675
16676 2008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
16677
16678 * nsterm.m (syms_of_nsterm): Remove debugging println.
16679
16680 2008-07-22 David Reitter <david.reitter@gmail.com>
16681
16682 * nsfns.m (do_applescript, F_do_applescript): NS version of the
16683 Carbon implementation of the same functionality: execute arbitrary
16684 AppleScript code.
16685
16686 2008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
16687
16688 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
16689 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
16690 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
16691 (Fx_display_mm_height, Fx_display_mm_width)
16692 (Fx_display_backing_store, Fx_display_visual_class)
16693 (Fx_display_save_under, Fx_open_connection)
16694 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
16695 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
16696 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
16697 (Fx_display_pixel_width, Fx_display_pixel_height)
16698 (Fx_display_usable_bounds, Fx_display_planes)
16699 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
16700 ... */' style of docstrings.
16701
16702 2008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
16703
16704 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
16705 on this platform.
16706 (mips):
16707 * m/iris4d.h (mips): Do not define.
16708 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
16709
16710 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
16711
16712 * image.c:
16713 * nsfns.m:
16714 * nsselect.m:
16715 * nsterm.h:
16716 * nsterm.m: Rename ns prefixed functions/variables to the
16717 corresponding x versions. Update references.
16718
16719 * m/ibms390x.h (NO_REMAP): Do not undefine.
16720
16721 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
16722
16723 2008-07-21 Chong Yidong <cyd@stupidchicken.com>
16724
16725 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
16726 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
16727 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
16728 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
16729 (Fns_display_mm_height, Fns_display_mm_width)
16730 (Fns_display_backing_store, Fns_display_visual_class)
16731 (Fns_display_save_under, Fns_open_connection)
16732 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
16733 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
16734 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
16735 (Fns_display_pixel_width, Fns_display_pixel_height)
16736 (Fns_display_usable_bounds, Fx_display_planes)
16737 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
16738
16739 2008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
16740
16741 * print.c (print_object): Check print_depth before searching for
16742 circularities.
16743
16744 2008-07-21 Michael Albinus <michael.albinus@gmx.de>
16745
16746 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
16747 only sprintf.
16748
16749 2008-07-21 Kenichi Handa <handa@m17n.org>
16750
16751 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
16752
16753 2008-07-20 Andreas Schwab <schwab@suse.de>
16754
16755 * syntax.c (find_start_pos, find_start_value)
16756 (find_start_value_byte, find_start_begv, find_defun_start)
16757 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
16758
16759 2008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
16760
16761 * s/sol2-3.h: Insert contents of s/sol2.h.
16762 (LD_SWITCH_SYSTEM): Remove redundant definition.
16763 * s/sol2.h: Remove, unused.
16764
16765 2008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
16766
16767 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
16768
16769 2008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
16770
16771 * Makefile.in (ns_appdir): Fix typo in find command.
16772
16773 2008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
16774
16775 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
16776
16777 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
16778 added not supported anymore.
16779
16780 * s/usg5-4-2.h (LIBS_SYSTEM):
16781 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
16782
16783 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
16784 * s/lynxos.h (GETPGRP_NO_ARG):
16785 * s/hpux10-20.h (NO_SIOCTL_H):
16786 * s/gnu.h (GETPGRP_NO_ARG):
16787 * s/gnu-linux.h (NO_SIOCTL_H):
16788 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
16789 * s/cygwin.h (GETPGRP_NO_ARG):
16790 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
16791 (C_DEBUG_SWITCH): Remove duplicate definition.
16792
16793 * m/ibms390.h: Remove boilerplate comments.
16794
16795 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
16796
16797 * process.c (HAVE_SERIAL): Consolidate ifdefs.
16798 (wait_reading_process_output): Remove code for SunOS, platform not
16799 supported anymore. Use SOLARIS2 instead of sun.
16800
16801 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
16802
16803 * font.c (font_open_by_name): Under NS, default lface height to zero.
16804 (font_open_for_lface): Under NS, set size based on frame fontsize.
16805 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
16806 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
16807
16808 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
16809
16810 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
16811 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
16812 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
16813 YES/NO.
16814 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
16815 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
16816 * Makefile.in (clean): Clear out build destination dir.
16817
16818 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
16819
16820 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
16821 xterm, xselect.
16822 * lisp.h: Remove declaration of hash_remove.
16823 * nsgui.h: Remove redefinitions of hash_remove.
16824 * fns.c (hash_remove): Rename to hash_remove_from_table.
16825
16826 2008-07-19 Seiji Zenitani <zenitani@mac.com>
16827
16828 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
16829 strdup() the family UTF8String before modifying it.
16830
16831 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
16832
16833 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
16834 NS_FACE_BACKGROUND with 0 instead of nil.
16835 * nsfont.m (nsfont_draw): Same.
16836
16837 2008-07-19 Chong Yidong <cyd@stupidchicken.com>
16838
16839 * nsfns.m (ns_set_background_color): Fix crash.
16840
16841 2008-07-18 Chong Yidong <cyd@stupidchicken.com>
16842
16843 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
16844
16845 2008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
16846
16847 * puresize.h (BASE_PURESIZE): Increase to 1240000.
16848
16849 2008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16850
16851 * gtkutil.c: Include <config.h> instead of "config.h".
16852
16853 * lisp.h (Foverlay_buffer): Add EXFUN.
16854
16855 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
16856 child process to complete child_setup. Undo 2005-09-21 change.
16857
16858 * s/darwin.h: Mention setsid after vfork.
16859
16860 2008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16861
16862 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
16863 Depend on macgui.h.
16864
16865 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
16866 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
16867
16868 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
16869 and f19.
16870 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
16871
16872 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
16873 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
16874 Remove enumerators.
16875
16876 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
16877 Check if FACE_FROM_ID returns NULL.
16878
16879 2008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
16880
16881 * w32inevt.c (change_frame_size): Remove extern declaration.
16882 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
16883 change_frame_size.
16884
16885 2008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
16886
16887 * getloadavg.c: Revert last change (2008-07-15).
16888
16889 2008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
16890
16891 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
16892 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
16893 from configure.
16894
16895 2008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
16896
16897 * s/sol2.h:
16898 * s/sol2-4.h: Reorganize conditionals.
16899
16900 * ecrt0.c: Remove code depending on m68000, not used anymore.
16901
16902 * fns.c (hash_remove): Make static.
16903 * lisp.h (hash_remove): Don't prototype.
16904
16905 * m/ibmrs6000.h:
16906 * m/ibms390x.h:
16907 * m/macppc.h: Remove boilerplate comments.
16908
16909 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
16910 Solaris, which does not need them.
16911
16912 * m/vax.h: Remove comments about unsupported systems.
16913
16914 * s/darwin.h: Reorganize ifdefs.
16915
16916 2008-07-17 Andreas Schwab <schwab@suse.de>
16917
16918 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
16919
16920 2008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
16921
16922 Use SDATA. Follow coding convention of placing operators at
16923 beginning of next line rather than end of previous line, and placing
16924 spaces around infix operators.
16925
16926 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
16927 in case it was defined already.
16928 USE @GNUSTEP_MAKEFILES@ rather than envvars.
16929 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
16930 ns_default.
16931 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
16932 Lisp_Objects.
16933 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
16934 (ns_defined_color, ns_color_to_lisp): Declare.
16935 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
16936 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
16937 it's accepted even with USE_LISP_UNION_TYPE.
16938 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
16939 (update_frame_tool_bar): Remove apparently obsolete tests for
16940 non-integerness of f->tool_bar_lines.
16941 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
16942 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
16943 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
16944 (nsfont_open): Don't confuse NULL for Qnil.
16945 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
16946 * menu.h (find_and_call_menu_selection):
16947 * menu.c (find_and_call_menu_selection): Use just int for vector size.
16948 (find_and_return_menu_selection): Always return something.
16949 * frame.h: Include dispextern.h for Display_Info.
16950 (display_x_get_resource): Declare.
16951
16952 2008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
16953
16954 * syntax.c: Remove stdio.h include accidentally introduced in
16955 Emacs.app commit.
16956 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
16957 NS_IMPL_COCOA.
16958 * keyboard.c (handle_async_input, input_available_signal): Remove
16959 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
16960
16961 2008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
16962
16963 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
16964 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
16965 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
16966 Use SDATA.
16967
16968 * keymap.c: Remove all NS-specific code.
16969 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
16970 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
16971 where_is_preferred_modifier, return a different value depending on how
16972 preferred is the binding.
16973 (where_is_internal): Adjust accordingly.
16974 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
16975 Adjust to new preferred_sequence_p.
16976 (syms_of_keymap): Declare `where-is-preferred-modifier'.
16977 * keyboard.c (parse_solitary_modifier): Not static any more.
16978 * keyboard.h (parse_solitary_modifier): Declare.
16979
16980 2008-07-16 Andreas Schwab <schwab@suse.de>
16981
16982 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
16983 of easymenu.
16984
16985 2008-07-16 Chong Yidong <cyd@stupidchicken.com>
16986
16987 * xdisp.c (move_it_in_display_line): Account for word wrap, so
16988 that we don't move off the line.
16989
16990 2008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
16991
16992 * keyboard.c (Qsuper): Remove.
16993 (parse_menu_item): Don't call where_is_internal specially for NS.
16994
16995 2008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
16996
16997 * s/gnu-linux.h: Remove boilerplate comments.
16998
16999 * m/alpha.h (__ELF__): Consolidate conditions.
17000
17001 * m/m68k.h (linux): Use GNU_LINUX instead.
17002 Remove boilerplate comments.
17003
17004 * m/intel386.h: Undo refactoring from previous change.
17005 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
17006 too, remove dead code.
17007 (linux): Use GNU_LINUX instead.
17008
17009 2008-07-16 Jason Rumney <jasonr@gnu.org>
17010
17011 * w32gui.h: Repeat 26 June changes lost by last change.
17012
17013 2008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
17014
17015 * systty.h: Remove code for Aix on 386, unsupported platform.
17016
17017 * s/ms-w32.h: Remove boilerplate comments.
17018 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
17019
17020 * s/gnu-linux.h (TERM): Remove support.
17021 (HAVE_SYSVIPC): Remove, unused.
17022 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
17023 for this system.
17024
17025 * process.c: Remove support for IRIS, unused.
17026 Remove support for TERM, not relevant anymore.
17027
17028 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
17029 used with the definition.
17030
17031 * s/aix4-2.h (static): Do not undef.
17032
17033 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
17034 only used on Aix.
17035 (HAVE_SYSVIPC): Remove, unused.
17036
17037 * m/hp800.h (CANNOT_DUMP): Do not undef.
17038
17039 * m/alpha.h: Fix comment.
17040
17041 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
17042 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
17043 used by this configuration.
17044 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
17045 * unexec.c: Remove code depending on HPUX and
17046 USG_SHARED_LIBRARIES, not used with this file. Remove code
17047 depending on IRIS, unused. Remove if 0-ed code.
17048
17049 * s/template.h: Remove comments about static.
17050
17051 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
17052 Remove if 0-ed code.
17053 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
17054 were the same as the default.
17055 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
17056 Remove boilerplate comments.
17057 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
17058 (HAVE_SYSVIPC): Remove, unused.
17059 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
17060
17061 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
17062 Remove boilerplate comments.
17063 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
17064 Remove boilerplate comments.
17065 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
17066 Remove boilerplate comments.
17067 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
17068
17069 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
17070 USG systems which do not use DATA_SEG_BITS.
17071 Refactor code. Remove boilerplate comments.
17072
17073 * m/ibms390.h:
17074 * m/m68k.h:
17075 * s/bsd-common.h:
17076 * s/cygwin.h:
17077 * s/darwin.h:
17078 * s/freebsd.h:
17079 * s/gnu.h:
17080 * s/msdos.h: Remove boilerplate comments.
17081
17082 * m/iris4d.h: Remove boilerplate comments and code for systems that
17083 do not use this file.
17084 (IRIS_4D): Remove, unused.
17085
17086 * m/mips.h: Remove boilerplate comments and code for systems that
17087 do not use this file.
17088 (SIGN_EXTEND_CHAR):
17089 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
17090 * unexmips.c: Remove file, unused.
17091
17092 * editfns.c (Fuser_full_name): Replace the only use of
17093 USER_FULL_NAME with its value.
17094 * config.in: Regenerate.
17095
17096 2008-07-16 David Reitter <david.reitter@gmail.com>
17097
17098 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
17099 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
17100
17101 2008-07-16 Glenn Morris <rgm@gnu.org>
17102
17103 * emacs.c (system-type): Doc fix.
17104
17105 2008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
17106
17107 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
17108 If the cache doesn't work, let's fix it, rather than work around it.
17109
17110 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
17111
17112 * Makefile.in: Correct additions for nsfont.o in last commit.
17113 * nsfont.m: New file (forgot last commit).
17114
17115 2008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
17116
17117 * callproc.c (set_initial_environment):
17118 Initialize Vprocess_environment under CANNOT_DUMP (fixes crash when
17119 batch-compiling for bootstrap).
17120
17121 2008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
17122 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17123
17124 * frame.c (make_initial_frame): Call init_frame_faces(f) in
17125 CANNOT_DUMP case -- fix crash due to different init order.
17126
17127 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
17128
17129 Changes and additions for NeXTstep windowing system (Cocoa and
17130 GNUstep) support.
17131
17132 * Makefile.in:
17133 * config.in: Support defines and build commands for NS port.
17134 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
17135 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
17136 * dispextern.h: Include nsgui.h and add needed typedefs under NS
17137 windowing.
17138 (struct face): Add synth_ital field.
17139 * dispnew.c: Include nsterm.h when compiling under NS windowing.
17140 (init_display): Initialize Vinitial_window_system to "ns" when so
17141 compiled.
17142 * emacs.c: Include GSConfig.h when compiling under GNUstep.
17143 (display_arg): Use under NS.
17144 (main): Under NS, allocate autorelease pool and handle command line
17145 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
17146 (standard_args): Add NS-specific args.
17147 (shut_down_emacs): Shut down NS terminal if compiled under NS.
17148 * font.c (DEFAULT_ENCODING): New variable.
17149 (font_find_for_lface): Use it.
17150 (syms_of_font): Load syms_of_nsfont under NS.
17151 * font.h: Declare nsfont_driver when compiled under NS.
17152 * fontset.c: When compiling under NS, include nsterm.h.
17153 (fontset_from_font): Autoconstruct fontset under NS.
17154 * frame.c (various): Under NS, include nsterm.h, add Qns window system
17155 symbol, document and use it.
17156 (do_switch_frame): When for_deletion under Cocoa, add
17157 Fraise_frame(Qnil).
17158 (x_set_frame_parameters): Ensure font attribute changes are picked up.
17159 (x_get_arg): Allow "yes" and "no" as boolean values.
17160 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
17161 Qright under Cocoa.
17162 (focus-follows-mouse): Default to 0 under NS.
17163 * frame.h (enum output_method): Add output_ns.
17164 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
17165 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
17166 (FRAME_WINDOW_P): NS-specific definition.
17167 * fringe.c (max_used_fringe_bitmap): Make public.
17168 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
17169 (getloadavg): Use NeXT code under descendant OS's.
17170 * image.c (includes and header section, x_create_bitmap_from_data)
17171 (x_create_bitmap_from_file, free_bitmap_record, image_background)
17172 (image_background_transparent, x_clear_image_1)
17173 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
17174 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
17175 (x_to_xcolors, x_from_xcolors, x_disable_image)
17176 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
17177 other GUIs, including XPM support using code originally written for
17178 Carbon GUI.
17179 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
17180 using NS API.
17181 (image_ascent): Use font metrics macros instead of direct struct field
17182 access.
17183 * keyboard.c (includes): Add nsterm.h when compiling under NS.
17184 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
17185 Also, handle NS as GTK for menu bar purposes.
17186 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
17187 toolkit where they differ.
17188 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
17189 use cachelist, still needed under NS.
17190 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
17191 (struct widget_value): Define it here for menu.c.
17192 * keymap.c (includes): Include modifier internals.
17193 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
17194 NS.
17195 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
17196 support for preferring sequences using certain modifiers, specified by
17197 the FIRSTONLY argument.
17198 * lisp.h (hash_remove): Rename to avoid name clash when compiling
17199 under NS GNUstep implementation.
17200 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
17201 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
17202 * menu.c: Include nsterm.h under NS.
17203 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
17204 (free_menubar_widget_tree_value, update_submenu_strings)
17205 (find_and_call_menu_selection): Treat NS as X and NT.
17206 (find_and_return_menu_selection): New function, used for popup menus.
17207 * nsgui.h:
17208 * nsterm.h:
17209 * nsfns.m:
17210 * nsimage.m:
17211 * nsmenu.m:
17212 * nsselect.m:
17213 * nsterm.m: New files.
17214 * process.c (wait_reading_process_output): Under NS, call ns_select()
17215 instead of plain select().
17216 * syntax.c (char_quoted): Under NS, avoid a crash when called near
17217 beginning of buffer.
17218 * sysselect.h (init_process): Rename when compiling under Cocoa to
17219 avoid name conflict.
17220 * termhooks.h (display_info): Add ns_display_info to union.
17221 * terminal.c (Fterminal_live_p): Add ns to terminal types.
17222 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
17223 COCOA environment.
17224 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
17225 unexec() signature. (Note, this will dump, but the resulting file
17226 crashes; unexosx is used instead; keeping around for reference and
17227 possible aid in getting dump working under GNUstep.)
17228 * w32gui.h (button_type, widget_value): Remove definitions (now in
17229 keyboard.h).
17230 * window.c: Include nsterm.h when compiling under NS.
17231 * xdisp.c (includes): Include nsterm.h when compiling under NS.
17232 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
17233 other GUI windowing systems.
17234 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
17235 GTK.
17236 (x_consider_frame_title): Under NS, set icon type and frame
17237 modified-state indicator; use ns_set_name_as_filename() when using
17238 formatted title.
17239 (update_window_cursor): Make public when compiling under NS.
17240 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
17241 (hourglass_atimer, Vhourglass_delay
17242 * xfaces.c (header section, init_frame_faces, clear_font_table)
17243 (defined_color, unload_color, x_face_list_fonts)
17244 (prepare_face_for_display): Add NS support parallel to other GUIs.
17245 Emulate GCs like other non-X GUIs.
17246 (split_font_name): Don't lowercase font name under NS.
17247 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
17248 under NS.
17249 * s/darwin.h: Add support for compilation under NS.
17250
17251 2008-07-15 Jason Rumney <jasonr@gnu.org>
17252
17253 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
17254 (w32_show_hourglass): Rename from show_hourglass.
17255 (w32_hide_hourglass): Rename from hide_hourglass.
17256 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
17257 (Vhourglass_delay): Declare extern.
17258 (hourglass_started): Remove.
17259
17260 * xdisp.c (Vhourglass_delay): Remove static.
17261 (hourglass_started, start_hourglass, cancel_hourglass):
17262 Don't include these versions on WINDOWSNT.
17263
17264 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
17265
17266 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
17267 variables (formerly in xfns.c).
17268 (show_hourglass, hide_hourglass): New prototypes (same).
17269 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
17270 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
17271 in xfns.c).
17272 (syms_of_xdisp): Declare/initialize display-hourglass,
17273 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
17274 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
17275 formerly in xfns.c.
17276 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
17277 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
17278 (start_hourglass, cancel_hourglass): Remove.
17279 (show_hourglass, hide_hourglass): Remove prototypes and static
17280 modifiers.
17281 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
17282 hourglass_atimer, hourglass_shown_p declaration/initialization.
17283 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
17284 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
17285 (start_hourglass, cancel_hourglass): Remove.
17286 (show_hourglass, hide_hourglass): Remove prototypes and static
17287 modifiers.
17288 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
17289 hourglass_atimer, hourglass_shown_p declaration/initialization.
17290 * w32fns.c (display_hourglass_p, Vhourglass_delay)
17291 (DEFAULT_HOURGLASS_DELAY): Remove.
17292 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
17293 hourglass_shown_p declaration/initialization.
17294
17295 2008-07-14 Jason Rumney <jasonr@gnu.org>
17296
17297 * w32fns.c (w32_get_arg): Remove wrapper function.
17298 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
17299 directly.
17300 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
17301
17302 2008-07-14 Kenichi Handa <handa@m17n.org>
17303
17304 * xfont.c (xfont_open): Add workaround for X's bug.
17305
17306 2008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
17307
17308 * fontset.c: Include <stdio.h> unconditionally.
17309
17310 2008-07-13 Michael Albinus <michael.albinus@gmx.de>
17311
17312 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
17313 for filtering.
17314
17315 2008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
17316
17317 * s/vms.h: Use __GNUC__ instead of _GNUC_.
17318
17319 * m/macppc.h:
17320 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
17321
17322 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default.
17323 (SPECIAL_EMACS_INT):
17324 * m/ia64.h (SPECIAL_EMACS_INT):
17325 * m/amdx86-64.h (SPECIAL_EMACS_INT):
17326 * s/gnu.h (NLIST_STRUCT):
17327 * s/aix4-2.h (X11R5_INHIBIT_I18N):
17328 * s/gnu-linux.h (LINUX):
17329 * s/msdos.h (HAVE_FACES):
17330 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
17331
17332 * systty.h:
17333 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
17334 anymore.
17335
17336 2008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
17337
17338 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
17339 always defined as int.
17340
17341 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
17342 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
17343 * s/gnu-linux.h (HAVE_WAIT_HEADER):
17344 * s/freebsd.h (HAVE_WAIT_HEADER):
17345 * s/bsd-common.h (HAVE_UNION_WAIT):
17346 * s/aix4-2.h (HAVE_WAIT_HEADER):
17347 * m/mips.h (HAVE_UNION_WAIT):
17348 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
17349 (COFF, static): Do not define, they are undefined later in the file.
17350
17351 * process.c (update_status): Don't use a union.
17352 (status_convert):
17353 (sigchld_handler): Use int instead of WAITTYPE.
17354
17355 2008-07-12 Chong Yidong <cyd@stupidchicken.com>
17356
17357 * indent.c (Fvertical_motion): Restore hscroll before moving to
17358 goal column.
17359
17360 2008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
17361
17362 * lisp.h: Remove left over code.
17363
17364 2008-07-11 Andreas Schwab <schwab@suse.de>
17365
17366 * lisp.h: Fix logic in last change.
17367
17368 * menu.h: New file.
17369 * menu.c: Include it.
17370 * xmenu.c: Likewise.
17371 * Makefile.in: Update dependencies.
17372
17373 2008-07-11 Kenichi Handa <handa@m17n.org>
17374
17375 * fontset.c (fontset_from_font): Cancel the previous change.
17376
17377 2008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
17378
17379 * lisp.h:
17380 * w32heap.c:
17381 * emacs.c:
17382 * alloc.c: Replace all references of NO_UNION_TYPE with
17383 USE_LISP_UNION_TYPE.
17384
17385 * m/xtensa.h (NO_UNION_TYPE):
17386 * m/vax.h (NO_UNION_TYPE):
17387 * m/template.h (NO_UNION_TYPE):
17388 * m/sparc.h (NO_UNION_TYPE):
17389 * m/mips.h (NO_UNION_TYPE):
17390 * m/macppc.h (NO_UNION_TYPE):
17391 * m/m68k.h (NO_UNION_TYPE):
17392 * m/iris4d.h (NO_UNION_TYPE):
17393 * m/intel386.h (NO_UNION_TYPE):
17394 * m/ibms390x.h (NO_UNION_TYPE):
17395 * m/ibms390.h (NO_UNION_TYPE):
17396 * m/ibmrs6000.h (NO_UNION_TYPE):
17397 * m/ia64.h (NO_UNION_TYPE):
17398 * m/hp800.h (NO_UNION_TYPE):
17399 * m/arm.h (NO_UNION_TYPE):
17400 * m/amdx86-64.h (NO_UNION_TYPE):
17401 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
17402 defining it the same.
17403
17404 2008-07-10 Chong Yidong <cyd@stupidchicken.com>
17405
17406 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
17407
17408 2008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
17409
17410 * fileio.c:
17411 * sysdep.c:
17412 * systty.h:
17413 * m/ibmrs6000.h:
17414 * m/iris4d.h:
17415 * s/aix4-2.h:
17416 * s/freebsd.h:
17417 * s/gnu-linux.h:
17418 * s/hpux10-20.h:
17419 * s/hpux11.h:
17420 * s/netbsd.h:
17421 * s/sol2-3.h:
17422 * s/sol2-4.h:
17423 * s/sol2.h:
17424 * s/usg5-4.h:
17425 * s/vms.h: Remove references to unused variables.
17426
17427 2008-07-10 Andreas Schwab <schwab@suse.de>
17428
17429 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
17430 pattern before matching the generic family.
17431
17432 2008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
17433
17434 * unexec.c:
17435 * s/vms.h:
17436 * s/usg5-4-2.h:
17437 * s/sol2-5.h:
17438 * s/freebsd.h:
17439 * s/darwin.h: Remove dead code.
17440
17441 * m/template.h:
17442 * m/sparc.h:
17443 * m/mips.h:
17444 * m/m68k.h:
17445 * m/iris4d.h:
17446 * m/intel386.h:
17447 * m/ibms390x.h:
17448 * m/ibms390.h:
17449 * m/ia64.h:
17450 * m/hp800.h:
17451 * m/arm.h:
17452 * m/amdx86-64.h: Remove dead code and references to unused
17453 and compiler defined symbols.
17454
17455 * unexmips.c:
17456 * unexelf.c: Remove references to desupported systems.
17457
17458 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
17459
17460 * m/powermac.h: Remove boilerplate comments.
17461 (NO_REMAP): Remove unused definition.
17462
17463 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
17464 define them.
17465
17466 2008-07-10 Kenichi Handa <handa@m17n.org>
17467
17468 * xfont.c (xfont_open): Log the reason of failure.
17469
17470 2008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
17471
17472 * fontset.c (fontset_get_font_group):
17473 * font.c (font_check_otf): Specify argument types.
17474
17475 2008-07-09 Kenichi Handa <handa@m17n.org>
17476
17477 * coding.c (detect_coding_utf_8): Set detect_info->found only when
17478 non-ASCII char is found.
17479
17480 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
17481 (reorder_font_vector): Change the arg preferred_family to font.
17482 Prefer the spec matching with font.
17483 (fontset_get_font_group): New function.
17484 (fontset_find_font): Change the format of an element of a realized
17485 fontset. Use fontset_get_font_group.
17486 (fontset_font): Try the current fontset, the default fontset, the
17487 fallbacks of the current fontset, and the fallbacks of the default
17488 fontset in this order.
17489 (face_for_char): Delete the shortcut to use the current font.
17490 (fontset_from_font): Don't set fonts for Latin in the fontset.
17491
17492 * font.h (font_make_object, font_match_p): Adjust prototypes.
17493
17494 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
17495
17496 * font.c (font_make_object): New arg entity and pixelsize.
17497 (font_check_otf_features, font_check_otf): New functions.
17498 (font_match_p): Check :lang, :script, and :otf properties.
17499
17500 * xfont.c (xfont_open): Adjust it for the change of
17501 font_make_object.
17502 (xfont_text_extents): Fix initial setting of metrics.
17503
17504 * ftfont.c (struct ftfont_info): New member index, delete member
17505 fc_charset_idx. Make the member order compatible with struct
17506 xftfont_info.
17507 (fc_charset_table): Change charset names to registry names.
17508 (ftfont_pattern_entity): Delete the args registry and
17509 fc_charset_idx. Change the value of :font-entity property
17510 to (FONTNAME . INDEX). Always set :registry property to
17511 `iso10646-1'.
17512 (struct ftfont_cache_data): New struct.
17513 (ftfont_lookup_cache): New arg for_face.
17514 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
17515 (ftfont_driver): Set the member otf_capability.
17516 (ftfont_get_charset): Adjust it for the change of
17517 fc_charset_table.
17518 (OTF_TAG_SYM): New macro.
17519 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
17520 for the change of fc_charset_table.
17521 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
17522 ftfont_pattern_entity. Add FC_INDEX to objset.
17523 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
17524 and ftfont_pattern_entity.
17525 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
17526 font_make_object, struct ftfont_info.
17527 (ftfont_has_char): Use ftfont_get_fc_charset.
17528 (ftfont_otf_features, ftfont_otf_capability): New functions.
17529 (ftfont_shape): Use ftfont_get_otf.
17530 (ftfont_text_extents): Fix initial setting of metrics.
17531
17532 * xftfont.c (struct xftfont_info): New member ft_size. Make the
17533 member order compatible with struct ftfont_info.
17534 (xftfont_open): Add FC_CHARSET to the pattern.
17535 Set xftfont_info->ft_size. Don't unlock the face. Check BDF
17536 properties if appropriate.
17537 (xftfont_close): Unlock the face.
17538 (xftfont_anchor_point, xftfont_shape): Deleted.
17539 (syms_of_xftfont): Don't set members anchor_point and shape of
17540 xftfont_driver.
17541
17542 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
17543 font_make_object.
17544
17545 * w32font.c (w32font_open): Adjust it for the change of
17546 font_make_object.
17547 (w32font_open_internal): Don't set properties of font_object here.
17548
17549 2008-07-08 Chong Yidong <cyd@stupidchicken.com>
17550
17551 * macfns.c (x_create_tip_frame):
17552 * w32fns.c (x_create_tip_frame):
17553 * xfns.c (x_create_tip_frame): Pass parameter argument to
17554 face-set-after-frame-default.
17555
17556 * xfaces.c (Finternal_merge_in_global_face): Save merged
17557 attributes for the default face back into the face vector.
17558
17559 2008-07-08 Andreas Schwab <schwab@suse.de>
17560
17561 * fontset.h: Declare fontset_from_font. Don't declare
17562 new_fontset_from_font and fontset_from_font_name.
17563 * xterm.c: Include "fontset.h".
17564 * Makefile.in (xterm.o): Update dependencies.
17565
17566 2008-07-08 Glenn Morris <rgm@gnu.org>
17567
17568 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
17569 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
17570
17571 2008-07-07 Chong Yidong <cyd@stupidchicken.com>
17572
17573 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
17574 (x_set_frame_parameters): Don't bind it.
17575
17576 2008-07-07 Juanma Barranquero <lekktu@gmail.com>
17577
17578 * w32fns.c (map_w32_filename): Declare extern.
17579
17580 2008-07-07 Jason Rumney <jasonr@gnu.org>
17581
17582 * w32term.c (WS_EX_LAYERED): Define if not already.
17583
17584 2008-07-06 Chong Yidong <cyd@stupidchicken.com>
17585
17586 * xfaces.c (set_font_frame_param): Don't try to set the font
17587 parameter if it is still unspecified in the lface.
17588
17589 2008-07-05 Chong Yidong <cyd@stupidchicken.com>
17590
17591 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
17592 face if it didn't already exist.
17593
17594 * xdisp.c (try_window_id): Give up if word-wrapping is on.
17595
17596 2008-07-05 Andreas Schwab <schwab@suse.de>
17597
17598 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
17599
17600 2008-07-05 Chong Yidong <cyd@stupidchicken.com>
17601
17602 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
17603 word-wrapping.
17604 (IT_DISPLAYING_WHITESPACE): New macro.
17605 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
17606 when word-wrapping. Simplify word-wrapping logic. Use correct
17607 pixel positions when saving copies of the iterator.
17608 (display_line): Use proper wrap point if the last character on a
17609 line was preceded by whitespace.
17610
17611 2008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
17612
17613 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
17614
17615 2008-07-04 Kenichi Handa <handa@m17n.org>
17616
17617 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
17618
17619 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
17620
17621 2008-07-02 Jason Rumney <jasonr@gnu.org>
17622
17623 * xfns.c (syms_of_xfns): Only define x-select-font when both
17624 HAVE_FREETYPE and USE_GTK.
17625
17626 * xdisp.c (next_element_from_display_vector): Move assignment out
17627 of if statement.
17628
17629 2008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
17630
17631 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
17632
17633 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
17634 (syms_of_fileio): Initialize and export them.
17635 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
17636
17637 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
17638 (Fsystem_move_file_to_trash): New function.
17639 (syms_of_w32fns): Export it to lisp.
17640
17641 2008-07-01 Jason Rumney <jasonr@gnu.org>
17642
17643 * w32font.c (w32font_text_extents): Don't count overhang as part
17644 of width.
17645
17646 2008-06-30 Miles Bader <miles@gnu.org>
17647
17648 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
17649 Add `avoid_cursor_p' field.
17650
17651 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
17652 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
17653 (append_glyph, append_composite_glyph, produce_image_glyph)
17654 (append_stretch_glyph): Initialize avoid_cursor_p.
17655 (get_it_property): Rename from `get_line_height_property'.
17656 (x_produce_glyphs): Use get_it_property.
17657 (handle_line_prefix, push_display_prop): New functions.
17658 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
17659 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
17660 New variables.
17661 (syms_of_xdisp): Initialize them.
17662
17663 2008-06-30 Kenichi Handa <handa@m17n.org>
17664
17665 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
17666 XftDefaultSubstitute (they are called in XftFontMatch).
17667 (xftfont_open): Fix args to ftfont_font_format.
17668
17669 * ftfont.c (fc_charset_table): New member lang.
17670 (ftfont_resolve_generic_family): New arg pattern.
17671 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
17672 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
17673 (ftfont_open): Fix args to ftfont_font_format.
17674 (ftfont_font_format): New arg filename.
17675
17676 2008-06-30 Chong Yidong <cyd@stupidchicken.com>
17677
17678 * xfaces.c (Finternal_merge_in_global_face): If default face was
17679 modified, realize it again. Update the font face attribute.
17680
17681 2008-06-29 Jason Rumney <jasonr@gnu.org>
17682
17683 * w32term.c (x_set_frame_alpha): Fix logic.
17684
17685 2008-06-29 Kenichi Handa <handa@m17n.org>
17686
17687 * fontset.c (Finternal_char_font): Return font-object instead of
17688 font-name.
17689
17690 * composite.c (get_composition_id): Fix the width calculation for TAB.
17691
17692 2008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
17693
17694 * indent.c (Fvertical_motion): Properly handle float column arg.
17695
17696 2008-06-28 Jason Rumney <jasonr@gnu.org>
17697
17698 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
17699 (pfnSetLayeredWindowAttributes): New function pointer.
17700 (w32_initialize): Initialize it when supported.
17701 (x_set_frame_alpha): New function.
17702
17703 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
17704 (w32_frame_parm_handlers): Set alpha handler.
17705
17706 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
17707
17708 2008-06-27 Jason Rumney <jasonr@gnu.org>
17709
17710 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
17711 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
17712 (w32_to_x_charset, x_to_w32_charset)
17713 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
17714 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
17715 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
17716 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
17717 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
17718 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
17719 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
17720 (Qw32_charset_unicode): Remove.
17721 (syms_of_w32fns): Update for above changes.
17722
17723 * w32font.c (w32_to_x_charset, x_to_w32_charset)
17724 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
17725 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
17726 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
17727 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
17728 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
17729 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
17730 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
17731 (syms_of_w32font): Update for above changes.
17732
17733 2008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
17734
17735 * s/usg5-4.h: Fix previous change: keep the correct branch of a
17736 removed #if.
17737 (USG_SHARED_LIBRARIES): Remove duplicate definition.
17738
17739 2008-06-26 Juanma Barranquero <lekktu@gmail.com>
17740 Eli Zaretskii <eliz@gnu.org>
17741
17742 * makefile.w32-in (LOCAL_FLAGS):
17743 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
17744
17745 * sysdep.c (_spawnlp, _getpid):
17746 Declare with explicit _cdecl instead of _CRTAPI1.
17747
17748 * editfns.c (Fget_internal_run_time):
17749 Check for WINDOWSNT with #ifdef, not #if.
17750
17751 2008-06-26 Jason Rumney <jasonr@gnu.org>
17752
17753 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
17754
17755 * w32term.c (x_draw_glyph_string_foreground)
17756 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
17757 Use FONT_HANDLE macro.
17758 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
17759
17760 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
17761 (uniscribe_encode_char): Use FONT_HANDLE macro.
17762
17763 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
17764 (w32font_text_extents): Use precast w32_font.
17765 (w32font_close): Free cached metrics.
17766 (w32font_open_internal): Allocate space for name on stack.
17767
17768 2008-06-26 Chong Yidong <cyd@stupidchicken.com>
17769
17770 * xdisp.c (extend_face_to_end_of_line): Fix last change.
17771
17772 2008-06-26 Jason Rumney <jasonr@gnu.org>
17773
17774 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
17775 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
17776
17777 2008-06-26 Juanma Barranquero <lekktu@gmail.com>
17778
17779 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
17780
17781 2008-06-26 Jason Rumney <jasonr@gnu.org>
17782
17783 * w32bdf.c, w32bdf.h: Remove obsolete files.
17784
17785 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
17786
17787 * w32gui.h: Don't include w32bdf.h.
17788 (XCharStruct, enum w32_char_font_type, W32FontStruct):
17789 Remove obsolete font support.
17790
17791 * w32font.h (struct w32font_info): Remove compat_w32_font.
17792 Add hfont member.
17793 (FONT_COMPAT): Remove obsolete macro.
17794
17795 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
17796 (w32font_encode_char, w32font_text_extents): Use new hfont member.
17797 (w32font_open_internal): Remove compat code. Set new hfont member.
17798 (Fx_select_font): Use new hfont member.
17799
17800 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
17801 (uniscribe_encode_char): Use new hfont member.
17802
17803 * w32term.c (x_draw_glyph_string_foreground)
17804 (x_draw_composite_glyph_string_foreground): Use new hfont member.
17805 (x_draw_glyph_string): Use metrics in w32font_info.
17806
17807 2008-06-26 Kenichi Handa <handa@m17n.org>
17808
17809 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
17810
17811 2008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
17812
17813 * unexnext.c:
17814 * m/ews4800.h:
17815 * m/hp9000s300.h:
17816 * m/ibm370aix.h:
17817 * m/mips-siemens.h:
17818 * m/ncr386.h:
17819 * m/next.h:
17820 * m/pmax.h:
17821 * m/powerpcle.h:
17822 * m/tandem-s2.h:
17823 * s/386bsd.h:
17824 * s/bsd386.h:
17825 * s/bsd4-1.h:
17826 * s/bsd4-2.h:
17827 * s/bsdos2-1.h:
17828 * s/bsdos2.h:
17829 * s/bsdos3.h:
17830 * s/bsdos4.h:
17831 * s/nextstep.h:
17832 * s/ultrix4-3.h:
17833 * s/usg5-0.h:
17834 * s/usg5-2-2.h:
17835 * s/usg5-2.h:
17836 * s/usg5-4-3.h:
17837 * s/ux4800.h:
17838 * s/uxpds.h:
17839 * s/uxpv.h: Remove support for obsolete systems.
17840 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
17841 Remove, insert contents in s/hpux10-20.h.
17842 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
17843 Remove, insert contents in s/aix4-2.h.
17844 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
17845 * s/bsd4-3.h: Rename to ...
17846 * s/bsd-common.h: ... this.
17847 * data.c:
17848 * doc.c:
17849 * ecrt0.c:
17850 * emacs.c:
17851 * fileio.c:
17852 * floatfns.c:
17853 * keyboard.c:
17854 * mem-limits.h:
17855 * print.c:
17856 * process.c:
17857 * sysdep.c:
17858 * syssignal.h:
17859 * systty.h:
17860 * syswait.h:
17861 * term.c:
17862 * unexec.c:
17863 * unexelf.c:
17864 * unexhp9k800.c:
17865 * m/hp800.h:
17866 * m/ibmrs6000.h:
17867 * m/mips.h:
17868 * m/vax.h:
17869 * s/darwin.h:
17870 * s/freebsd.h:
17871 * s/gnu.h:
17872 * s/ms-w32.h:
17873 * s/msdos.h:
17874 * s/netbsd.h:
17875 * s/template.h: Remove references to obsolete variables.
17876
17877 * Makefile.in: Add dependencies for all unexec files.
17878 (admindir): Remove unused variable.
17879 (UNEXEC_SRC): Remove references.
17880
17881 2008-06-25 Chong Yidong <cyd@stupidchicken.com>
17882
17883 * xfns.c (x_default_font_parameter): If Xft is available, first
17884 try Monospace-12 for the default font.
17885
17886 2008-06-25 Jason Rumney <jasonr@gnu.org>
17887
17888 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
17889
17890 2008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
17891
17892 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
17893
17894 * buffer.c (syms_of_buffer): Remove default-word-wrap.
17895
17896 2008-06-25 Juanma Barranquero <lekktu@gmail.com>
17897
17898 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
17899 <scroll-conservatively>: Fix typo in docstring.
17900
17901 * xselect.c (Fx_send_client_event): Doc fix.
17902
17903 2008-06-25 Kenichi Handa <handa@m17n.org>
17904
17905 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
17906
17907 * font.c (font_parse_fcname): Remove unused variables.
17908 (font_sort_entites): Delete the arg SPEC. Caller changed.
17909 Fix for the case of ! best_only.
17910 (font_delete_unmatched): Check DPI and AVGWIDTH too.
17911
17912 * lisp.h (Fstring_to_unibyte): EXFUN it.
17913
17914 * character.h (str_to_unibyte): Extern it.
17915
17916 * character.c (str_to_unibyte): New function.
17917
17918 * fns.c (Fstring_to_unibyte): New function.
17919 (syms_of_fns): Defsubr it.
17920
17921 2008-06-24 Kenichi Handa <handa@m17n.org>
17922
17923 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
17924 DPI too.
17925 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
17926
17927 2008-06-24 Andreas Schwab <schwab@suse.de>
17928
17929 * Makefile.in (${lispsource}loaddefs.el): Rename from
17930 ../lisp/loaddefs.el.
17931 (bootstrap-clean): Do what distclean does but don't remove
17932 Makefile.
17933 (distclean): Depend on bootstrap-clean and remove Makefile.
17934
17935 2008-06-24 Chong Yidong <cyd@stupidchicken.com>
17936
17937 * buffer.h (struct buffer): New member word_wrap.
17938
17939 * buffer.c (syms_of_buffer): New variables default-word-wrap and
17940 word-wrap.
17941 (init_buffer_once): Initialize them.
17942
17943 * dispextern.h (struct it): Replace bool truncate_lines_p with a
17944 line_wrap enum possessing three possible values.
17945
17946 * termopts.h: Replace truncate_partial_width_windows with
17947 Vtruncate_partial_width_windows.
17948
17949 * dispnew.c (direct_output_for_insert): Avoid direct output when
17950 inserting a space with word wrap on.
17951
17952 * indent.c (compute_motion): Obey integer values of
17953 truncate-partial-width-windows.
17954
17955 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
17956 replacing truncate_partial_width_windows.
17957 (init_iterator): If Vtruncate_partial_width_windows is an integer,
17958 truncate only if the window width is below that integer.
17959 (start_display, resize_mini_window, produce_stretch_glyph)
17960 (display_string, move_it_in_display_line_to): Use line_wrap.
17961 (back_to_previous_visible_line_start, reseat_1):
17962 Reset string_from_display_prop_p.
17963 (display_line): Extend default face to end of line when wrapping.
17964
17965 2008-06-24 Kim F. Storm <storm@cua.dk>
17966
17967 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
17968 to wrap continued lines at word boundaries.
17969
17970 2008-06-24 Jason Rumney <jasonr@gnu.org>
17971
17972 * font.c (Ffont_face_attributes): Multiply pixel size before point
17973 conversion to avoid multiplying rounding error.
17974
17975 2008-06-23 Jason Rumney <jasonr@gnu.org>
17976
17977 * w32term.c (x_draw_glyph_string_background)
17978 (x_draw_glyph_string): Remove old bdf font code.
17979
17980 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
17981
17982 2008-06-22 Kenichi Handa <handa@m17n.org>
17983
17984 * font.c (font_find_for_lface): Try the adstyle specified in
17985 the property of LFACE_FONT of LFACE (if any).
17986
17987 2008-06-21 Seiji Zenitani <zenitani@mac.com>
17988 Ryo Yoshitake <ryo@shiftmode.net>
17989
17990 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
17991
17992 2008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
17993
17994 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
17995 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
17996 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
17997 (witness-emacs): Remove.
17998 (lisp, shortlisp): Move loaddefs.el earlier.
17999 (mostlyclean): Forget about witness-emacs.
18000
18001 2008-06-22 Glenn Morris <rgm@gnu.org>
18002
18003 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
18004 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
18005
18006 2008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
18007
18008 * Makefile.in (PRECOMP): Remove.
18009 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
18010 (witness-emacs): Run `compile-first'.
18011 (.el.elc): Use the new compile-onefile target.
18012
18013 2008-06-21 Kenichi Handa <handa@m17n.org>
18014
18015 * xftfont.c (xftfont_open): Handle QCembolden only when
18016 FC_EMBOLDEN is defined.
18017
18018 2008-06-21 Andreas Schwab <schwab@suse.de>
18019
18020 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
18021 (.el.elc): Likewise.
18022
18023 2008-06-21 Miles Bader <miles@gnu.org>
18024
18025 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
18026 build dir, not the lisp source dir.
18027
18028 2008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
18029
18030 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
18031 (bootstrapclean): Remove.
18032 (.el.elc): New rule.
18033 (PRECOMP): New var.
18034 (../lisp/subdirs.el): Remove.
18035 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
18036 (witness-emacs): New target.
18037 (mostlyclean): Remove witness-emacs as well.
18038 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
18039 Add witness-emacs dependency.
18040
18041 2008-06-20 Chong Yidong <cyd@stupidchicken.com>
18042
18043 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
18044 defined by the font.
18045
18046 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
18047
18048 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
18049 (bootstrap-clean): New target that keeps TAGS around.
18050 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
18051 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
18052
18053 2008-06-20 Jason Rumney <jasonr@gnu.org>
18054
18055 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
18056 Remove obsolete font code.
18057
18058 * w32font.c (font_matches_spec): Use csb bitfield from font signature
18059 to determine language support.
18060
18061 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
18062
18063 * sysdep.c (cfsetspeed): New fun extracted from the code.
18064 (cfmakeraw): Move before first use.
18065
18066 2008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
18067
18068 * sysdep.c (cfmakeraw): Provide fallback implementation.
18069 (serial_configure): Provide fallback implementation of cfsetspeed.
18070
18071 2008-06-20 Kenichi Handa <handa@m17n.org>
18072
18073 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
18074 the pattern.
18075
18076 * fontset.c (fontset_from_font): Copy font_spec before changing
18077 the elements.
18078
18079 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
18080
18081 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
18082
18083 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
18084 for explicit `font' parameters.
18085
18086 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
18087
18088 2008-06-19 Kenichi Handa <handa@m17n.org>
18089
18090 * frame.c: Include <ctype.h>.
18091 (x_set_font_backend): Allow spacing characters in the X resource
18092 for FontBackend.
18093
18094 2008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
18095
18096 * w32fns.c, xfns.c (Qfont_param): New var.
18097 (syms_of_w32fns): Initialize it.
18098 (x_default_font_parameter): Record explicit `font' into
18099 `font-parameter'.
18100
18101 2008-06-18 Kenichi Handa <handa@m17n.org>
18102
18103 * font.c (font_parse_xlfd): Fix previous change.
18104 (font_parse_fcname): Don't use :fc-unknown-spec.
18105 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
18106 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
18107 (font_add_log): Prepend the driver name to the resulting fonts.
18108
18109 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
18110 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
18111 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
18112
18113 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
18114 (QCembolden): New variables.
18115 (syms_of_xftfont): DEFSYM them.
18116 (xftfont_open): Call XftFontMatch. Don't trust the result of
18117 XftTextExtents8 if the pixel_size is less than 5.
18118
18119 2008-06-18 Andreas Schwab <schwab@suse.de>
18120
18121 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
18122 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
18123
18124 2008-06-18 Jason Rumney <jasonr@gnu.org>
18125
18126 * w32font.c (w32font_list, w32font_match): Add logging.
18127
18128 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
18129
18130 2008-06-17 Chong Yidong <cyd@stupidchicken.com>
18131
18132 * font.c (font_parse_fcname): Store divider characters for
18133 unknown-spec list. For known key symbols, intern using correct
18134 symbol name.
18135
18136 2008-06-17 Kenichi Handa <handa@m17n.org>
18137
18138 * xfaces.c (realize_default_face): If the frame is not on window
18139 system, set the fontset of face to nil.
18140
18141 2008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
18142
18143 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
18144
18145 2008-06-16 Juanma Barranquero <lekktu@gmail.com>
18146
18147 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
18148 (build_font_name_from_vector): Delete externs.
18149
18150 * xfaces.c (struct font_name): Don't declare.
18151
18152 2008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
18153
18154 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
18155
18156 2008-06-16 Chong Yidong <cyd@stupidchicken.com>
18157
18158 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
18159
18160 2008-06-16 Juanma Barranquero <lekktu@gmail.com>
18161
18162 * font.c (Ffont_spec): Fix usage in docstring.
18163 (Ffont_face_attributes): Doc fix.
18164
18165 2008-06-16 Andreas Schwab <schwab@suse.de>
18166
18167 * font.c (Ffont_face_attributes): Fix definition.
18168
18169 2008-06-16 Jason Rumney <jasonr@gnu.org>
18170
18171 * font.h (font_style_symbolic_from_value): Remove.
18172
18173 * font.c (font_style_symbolic_from_value): Remove.
18174 (font_style_symbolic): Revert to pre 2008-06-13 version.
18175
18176 * w32font.c (w32_to_fc_weight): New function.
18177 (w32font_full_name, logfont_to_fcname): Use it.
18178
18179 2008-06-16 Kenichi Handa <handa@m17n.org>
18180
18181 * font.c (font_check_object): Delete it.
18182 (font_clear_cache): Check if a font-object is alive.
18183 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
18184 font-object to nil.
18185 (font_close_object): Don't check FONT_CLOSE_OBJECT.
18186 (font_at): Don't call font_check_object.
18187 (Ffont_get): Return a symbol for :weight, :slant, and :width.
18188
18189 2008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
18190
18191 * puresize.h (BASE_PURESIZE): Increase to 1230000.
18192
18193 2008-06-16 Chong Yidong <cyd@stupidchicken.com>
18194
18195 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
18196
18197 2008-06-15 Chong Yidong <cyd@stupidchicken.com>
18198
18199 * font.c (font_parse_fcname): Only one decimal point.
18200 (font_unparse_fcname): Handle data in family and foundry indices
18201 as symbols, not strings.
18202 (font_unparse_gtkname, Ffont_face_attributes): New functions.
18203
18204 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
18205
18206 * font.h (font_unparse_gtkname): Add prototype.
18207
18208 2008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
18209
18210 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
18211
18212 2008-06-15 Andreas Schwab <schwab@suse.de>
18213
18214 * font.c (font_update_drivers): Fix crash when no drivers match.
18215
18216 2008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
18217
18218 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
18219 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
18220
18221 2008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
18222
18223 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
18224
18225 2008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
18226
18227 * process.c (Fserial_process_configure, Fprocess_send_eof):
18228 Use EQ to compare Lisp_Objects.
18229
18230 2008-06-13 Jason Rumney <jasonr@gnu.org>
18231
18232 * w32fns.c (Fw32_select_font): Remove old font API function.
18233
18234 * w32font.c (logfont_to_fcname): New function.
18235 (Fx_select_font): New font dialog function compatible with
18236 GTK/fontconfig version.
18237
18238 * font.c (font_style_symbolic_from_value): New function.
18239 (font_style_symbolic): Use it.
18240
18241 * font.h (font_style_symbolic_from_value): Declare new function.
18242
18243 2008-06-13 Juanma Barranquero <lekktu@gmail.com>
18244
18245 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
18246 <font-width-table>: Fix typos in docstrings.
18247
18248 2008-06-13 Daniel Engeler <engeler@gmail.com>
18249
18250 These changes add serial port access.
18251 * process.c: Add HAVE_SERIAL.
18252 (Fdelete_process, Fprocess_status, Fset_process_buffer)
18253 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
18254 (list_processes_1, select_wrapper, Fstop_process)
18255 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
18256 (status_notify): Modify to handle serial processes.
18257 [HAVE_SERIAL] (Fserial_process_configure)
18258 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
18259 New functions.
18260 * process.h (struct Lisp_Process): Add `type'.
18261 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
18262 New functions.
18263 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
18264 serial ports.
18265 (serial_open, serial_configure): New functions.
18266 * w32.h: Add FILE_SERIAL.
18267 (struct _child_process): Add ovl_read, ovl_write.
18268
18269 2008-06-13 Kenichi Handa <handa@m17n.org>
18270
18271 * dispextern.h (enum lface_attribute_index): New member
18272 LFACE_FOUNDRY_INDEX.
18273
18274 * font.c (font_score): Delete arg alternate_families. Check only
18275 weight, slant, width, and size. Ignore the difference of alias
18276 style symbols.
18277 (font_sort_entites): Adjust for the above change. Reflect the
18278 order of font-driver to scores.
18279 (font_list_entities): Don't check alternate_familes here.
18280 (font_clear_prop): Handle foundry.
18281 (font_update_lface): Don't parse "foundry-family" form here.
18282 Handle FONT_FOUNDRY_INDEX.
18283 (font_find_for_lface): Likewise. Handle alternate families here.
18284 If registry is nil, try iso8859-1 and ascii-0.
18285 (font_open_for_lface): Pay attention to size in ENTITY.
18286 (font_open_by_name): Simplify by calling font_load_for_lface.
18287 (free_font_driver_list): Delete it.
18288 (font_update_drivers): Preserve the order of backends.
18289 (syms_of_font): Setting of sort_shift_bits adjusted for the change
18290 of font_score and font_sort_entites.
18291 (font_update_sort_order): Likewise.
18292
18293 * xfaces.c (LFACE_FOUNDRY): New macro.
18294 (check_lface_attrs): Check foundry.
18295 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
18296 (merge_face_vectors): Check foundry.
18297 (merge_face_ref): Likewise.
18298 (Finternal_set_lisp_face_attribute): Likewise.
18299 (x_update_menu_appearance): Likewise.
18300 (Finternal_get_lisp_face_attribute): Likewise.
18301 (lface_hash): Likewise.
18302 (lface_same_font_attributes_p): Likewise.
18303 (x_supports_face_attributes_p): Likewise.
18304 (tty_supports_face_attributes_p): Likewise.
18305 (Finternal_set_alternative_font_family_alist): Intern strings.
18306 (Finternal_set_alternative_font_registry_alist): Downcase strings.
18307 (realize_default_face): Set LFACE_FOUNDRY (lface).
18308
18309 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
18310 font-driver at first.
18311
18312 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
18313
18314 2008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
18315
18316 * lread.c (Fload): Use xfree, not free on saved_doc_string.
18317
18318 2008-06-12 Jim Meyering <meyering@redhat.com>
18319
18320 Make unexec_free handle NULL the same way free does.
18321 * unexmacosx.c (unexec_free): Ignore a NULL argument.
18322
18323 2008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
18324
18325 * character.h (CHAR_TO_BYTE_SAFE): New macro.
18326 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
18327 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
18328 (WEAK_ALIAS): Simplify.
18329 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
18330 when searching a unibyte buffer.
18331
18332 2008-06-12 Chong Yidong <cyd@stupidchicken.com>
18333
18334 * xfns.c (Fx_select_font): Rename from x-font-dialog.
18335
18336 2008-06-12 Juanma Barranquero <lekktu@gmail.com>
18337
18338 * w32font.c: Include ctype.h.
18339
18340 2008-06-11 Jason Rumney <jasonr@gnu.org>
18341
18342 * w32font.c (w32font_encode_char): Detect missing glyphs that are
18343 misreported as space.
18344 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
18345 as aliases for registry iso10646-1.
18346
18347 2008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
18348
18349 * buffer.c (clone_per_buffer_values): Skip `name'.
18350
18351 2008-06-11 Chong Yidong <cyd@stupidchicken.com>
18352
18353 * font.c (font_parse_fcname): Fix last change; accept decimal
18354 points in font size.
18355
18356 2008-06-10 Jason Rumney <jasonr@gnu.org>
18357
18358 * w32uniscribe.c (add_opentype_font_name_to_list):
18359 Skip non unicode fonts.
18360
18361 2008-06-10 Chong Yidong <cyd@stupidchicken.com>
18362
18363 * xfns.c (Fx_font_dialog): New function.
18364
18365 * gtkutil.c (xg_dialog_response_cb): Rename from
18366 xg_file_response_callback.
18367 (pop_down_dialog): Rename from pop_down_file_dialog.
18368 (xg_get_file_name): Callers changed.
18369 (xg_get_font_name): New function.
18370
18371 * gtkutil.h (xg_get_font_name): Insert prototype.
18372
18373 2008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
18374
18375 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
18376 x_underline_minimum_display_offset.
18377 (syms_of_xdisp): Declare it here rather than in xterm.c.
18378 * dispextern.h (underline_minimum_offset): Declare it.
18379 * w32term.c (x_draw_glyph_string): Use it.
18380 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
18381 (syms_of_xterm): Don't declare it any more.
18382 (x_draw_glyph_string): Adjust to the new name.
18383
18384 2008-06-10 David De La Harpe Golden <david@harpegolden.net>
18385
18386 * xterm.c (x_underline_minimum_display_offset): New var.
18387 (x_draw_glyph_string): Use it.
18388 (syms_of_xterm): Declare it.
18389
18390 2008-06-10 Chong Yidong <cyd@stupidchicken.com>
18391
18392 * font.c (font_parse_fcname): Accept GTK-style font names too.
18393
18394 2008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
18395
18396 * dired.c (file_name_completion): Don't return t if the match is exact
18397 but with different capitalization.
18398 * minibuf.c (Ftry_completion): Simplify.
18399
18400 * window.c (Vwindow_point_insertion_type): New var.
18401 (set_window_buffer): Use it.
18402 (syms_of_window): Init and export it to Lisp.
18403
18404 2008-06-10 Kenichi Handa <handa@m17n.org>
18405
18406 * font.h (font_intern_prop): Prototype adjusted.
18407
18408 * font.c (font_intern_prop): New arg force_symbol.
18409 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
18410 Adjust for the change of font_intern_prop.
18411
18412 * ftfont.c (ftfont_pattern_entity):
18413 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
18414 (w32_registry):
18415 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
18416 the change of font_intern_prop.
18417
18418 2008-06-09 Juanma Barranquero <lekktu@gmail.com>
18419
18420 * w32menu.c (digest_single_submenu): Declare extern.
18421
18422 2008-06-09 Jason Rumney <jasonr@gnu.org>
18423
18424 * w32term.c (x_make_frame_visible): Use alternate restore flags.
18425
18426 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
18427 (parse_single_submenu): Remove.
18428 (digest_single_submenu): Remove.
18429 (syms_of_w32menu): Don't initialise variables that have moved
18430 to menu.c.
18431 (set_frame_menubar): Sync with version in xmenu.c.
18432 (w32_menu_show): Sync with xmenu_show in xmenu.c.
18433
18434 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
18435 Make static again.
18436
18437 2008-06-09 Jason Rumney <jasonr@gnu.org>
18438
18439 Changes to w32 files related to the move of common menu code
18440 to menu.c on 2008-06-08 by Chong Yidong.
18441
18442 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
18443 defs to w32gui.h.
18444 (single_keymap_panes, push_menu_item, push_menu_pane):
18445 Make globally visible.
18446
18447 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
18448 (local_free, malloc_widget_value, free_widget_value)
18449 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
18450 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
18451 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
18452 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
18453 (menu_items, menu_items_allocated, menu_items_used)
18454 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
18455 (init_menu_items, finish_menu_items, discard_menu_items)
18456 (grow_menu_items, push_submenu_start, push_submenu_end)
18457 (push_left_right_boundary, push_menu_pane, push_menu_item)
18458 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
18459 (free_menubar_widget_tree_value, parse_single_submenu)
18460 (update_submenu_strings): Remove functions.
18461 (xmalloc_widget_value): Remove and declare extern.
18462
18463 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
18464 (OBJ1): Build it.
18465
18466 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
18467 (local_heap, local_alloc, local_free, malloc_widget_value)
18468 (free_widget_value): Define here.
18469
18470 2008-06-09 Kenichi Handa <handa@m17n.org>
18471
18472 * font.h (Qascii_0): Extern it.
18473
18474 * font.c (Qascii_0): New variable.
18475 (syms_of_font): DEFSYM it.
18476 (font_open_by_name): If the registry "iso8859-1" fails, try also
18477 "ascii-0".
18478
18479 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
18480
18481 2008-06-08 Kenichi Handa <handa@m17n.org>
18482
18483 * .gdbinit (xfont): New command.
18484
18485 2008-06-08 Andreas Schwab <schwab@suse.de>
18486
18487 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
18488 * Makefile.in (menu.o): Update dependencies.
18489
18490 * Makefile.in (obj): Always add menu.o.
18491 * emacs.c (main): Always call syms_of_menu.
18492 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
18493
18494 2008-06-08 Chong Yidong <cyd@stupidchicken.com>
18495
18496 * Makefile.in: Compile menu.c.
18497
18498 * lisp.h: Declare syms_of_menu.
18499
18500 * emacs.c (main): Call syms_of_menu.
18501
18502 * keyboard.h: Relocate platform-independent menu definitions from
18503 xmenu.c.
18504
18505 * menu.c: New file. Relocate platform-independent menu
18506 definitions from xmenu.c. Suggested by Adrian Robert.
18507
18508 * xmenu.c: Remove platform-independent menu definitions.
18509 (menu_items, menu_items_inuse, menu_items_allocated)
18510 (menu_items_used, menu_items_n_panes)
18511 (menu_items_submenu_depth): Move to keyboard.h.
18512 (init_menu_items, finish_menu_items, unuse_menu_items)
18513 (discard_menu_items, restore_menu_items, save_menu_items)
18514 (grow_menu_items, push_submenu_start, push_submenu_end)
18515 (push_left_right_boundary, push_menu_pane, push_menu_item)
18516 (keymap_panes, single_keymap_panes, single_menu_item)
18517 (list_of_panes, list_of_items, find_and_call_menu_selection)
18518 (xmalloc_widget_value, free_menubar_widget_value_tree)
18519 (parse_single_submenu, digest_single_submenu)
18520 (update_submenu_strings): Move to menu.c.
18521
18522 2008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
18523
18524 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
18525
18526 2008-06-06 Miles Bader <miles@gnu.org>
18527
18528 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
18529 face, not frame default.
18530
18531 2008-06-05 Martin Rudalics <rudalics@gmx.at>
18532
18533 * window.c (pop_up_windows, pop_up_frames)
18534 (display_buffer_reuse_frames, Vpop_up_frame_function)
18535 (Vdisplay_buffer_function, Veven_window_heights)
18536 (Vspecial_display_buffer_names, Vspecial_display_regexps)
18537 (Vspecial_display_function, Vsame_window_buffer_names)
18538 (Vsame_window_regexps, split_height_threshold)
18539 (Vsplit_window_preferred_function): Move those vars to window.el.
18540 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
18541 (Fdisplay_buffer): Move those functions to window.el.
18542 (syms_of_window): Remove corresponding declarations.
18543 (display_buffer): New function.
18544 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
18545 * dispnew.c (Flast_nonminibuf_frame): New function.
18546 * buffer.c (Fpop_to_buffer): Move to window.el.
18547
18548 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
18549
18550 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
18551
18552 2008-06-05 Kenichi Handa <handa@m17n.org>
18553
18554 * coding.c (detect_coding): Fix previous change.
18555 (detect_coding_system): Likewise.
18556
18557 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
18558
18559 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
18560
18561 * keymap.c (Vminibuffer_local_filename_must_match_map):
18562 Rename from Vminibuffer_local_must_match_filename_map.
18563 (syms_of_keymap):
18564 * minibuf.c (Fcompleting_read): Adjust accordingly.
18565 * commands.h: Rename declaration as well.
18566
18567 2008-06-05 Kenichi Handa <handa@m17n.org>
18568
18569 * font.c (Ffont_spec): Don't use font_parse_family_registry for
18570 family name.
18571 (Ffont_put): Likewise.
18572
18573 * fontset.c (fontset_find_font): Call font_open_for_lface with the
18574 current font-spec.
18575
18576 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
18577 is unspecified.
18578
18579 * xfaces.c (realize_x_face): If the font-related face attributes
18580 are the same as those of default face, realize a new fontset from
18581 default->fontset.
18582 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
18583
18584 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
18585
18586 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
18587 (move_it_in_display_line): New wrapper.
18588
18589 * window.c (window_scroll_pixel_based_preserve_x)
18590 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
18591 (window_scroll_pixel_based, window_scroll_line_based):
18592 Use them to preserve column positions.
18593 (syms_of_window): Initialize them.
18594
18595 * indent.c (Fvertical_motion): Extend first arg to allow passing an
18596 (HPOS . VPOS) pair.
18597
18598 * dispextern.h (move_it_in_display_line): Declare.
18599
18600 2008-06-05 Juanma Barranquero <lekktu@gmail.com>
18601
18602 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
18603 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
18604 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
18605
18606 2008-06-04 Juanma Barranquero <lekktu@gmail.com>
18607
18608 * window.c (Fset_window_parameter): Doc fix.
18609 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
18610
18611 2008-06-04 Joakim Verona <joakim@verona.se>
18612
18613 * window.h (struct window): Add new member window_parameters.
18614
18615 * window.c (Fwindow_parameters, Fwindow_parameter)
18616 (Fset_window_parameter): New defuns.
18617 (syms_of_window): Defsubr the new defuns.
18618 (make_window): Initialize window_parameters to nil.
18619
18620 2008-06-04 John Paul Wallington <jpw@pobox.com>
18621
18622 * eval.c (Fdefmacro): Doc fix.
18623
18624 2008-06-04 Kenichi Handa <handa@m17n.org>
18625
18626 * coding.c (detect_coding): Fix handling of coding->head_ascii.
18627 Be sure to call setup_coding_system when we find a proper coding system.
18628 (detect_coding_system): Fix handling of coding->head_ascii.
18629
18630 2008-06-03 Andreas Schwab <schwab@suse.de>
18631
18632 * font.c (font_prop_validate_spacing): Fix last change.
18633
18634 2008-06-03 Kenichi Handa <handa@m17n.org>
18635
18636 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
18637 (font_parse_fcname): Fix handling of unknown key.
18638
18639 * xfont.c (xfont_list): Try an alias.
18640
18641 * charset.c (char_charset): Return NULL if the arg charset_list is
18642 specified and C doesn't belong to any of them.
18643
18644 2008-06-02 Chip Coldwell <coldwell@redhat.com>
18645
18646 * font.c (font_pixel_size): Don't take cdr of an integer.
18647
18648 2008-06-02 Jim Meyering <meyering@redhat.com>
18649
18650 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
18651 * alloc.c (xfree): Return right away for a NULL arg.
18652 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
18653 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
18654 * mac.c (create_apple_event_from_event_ref): Likewise.
18655 (create_apple_event_from_drag_ref, cfstring_create_normalized):
18656 Likewise.
18657 * doprnt.c (doprnt1): Likewise.
18658 * frame.c (frame): Likewise.
18659 * keyboard.c (wipe_kboard): Likewise.
18660 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
18661 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
18662 * term.c (tty_default_color_capabilities, maybe_fatal)
18663 (delete_tty): Likewise.
18664 * w16select.c (string): Likewise.
18665 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
18666 * w32bdf.c (w32_free_bdf_font): Likewise.
18667 * w32fns.c (w32_unload_font): Likewise.
18668 * w32font.c (w32font_close): Likewise.
18669 * window.c (size_window): Likewise.
18670 * xselect.c (receive_incremental_selection): Likewise.
18671 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
18672 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
18673 * w32.c (stat): Likewise.
18674
18675 Remove useless if-before-free tests.
18676 * editfns.c (Fset_time_zone_rule): Likewise.
18677 * lread.c (nosuffix): Likewise.
18678 * ralloc.c (get_bloc): Likewise.
18679 * regex.c (reg_free): Likewise.
18680 * xftfont.c (xftfont_open, xftfont_close): Likewise.
18681 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
18682 * xsmfns.c (smc_save_yourself_CB): Likewise.
18683
18684 2008-06-02 Kenichi Handa <handa@m17n.org>
18685
18686 * font.c (font_find_for_lface): Handle float font size.
18687 (font_open_for_lface): Likewise.
18688
18689 * xfaces.c (x_supports_face_attributes_p): Check face->font before
18690 comparing the properties.
18691
18692 2008-06-01 Jason Rumney <jasonr@gnu.org>
18693
18694 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
18695 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
18696 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
18697 Don't add empty script list.
18698 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
18699
18700 2008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
18701
18702 * Makefile.in (dot, dotdot): Remove, update users.
18703 ".." has been used elsewhere in the file for a long time.
18704 (LIBXT_STATIC): Remove conditional based on unused variable.
18705
18706 2008-06-01 Miles Bader <miles@gnu.org>
18707
18708 * xfaces.c (Vface_remapping_alist): New variable.
18709 (syms_of_xfaces): Initialize it.
18710 (enum named_merge_point_kind): New type.
18711 (struct named_merge_point): Add `named_merge_point_kind' field.
18712 (push_named_merge_point): Make cycle detection respect different
18713 named-merge-point kinds.
18714 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
18715 Remove face-name alias resolution.
18716 (lface_from_face_name): New definition using
18717 `lface_from_face_name_no_resolve'.
18718 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
18719 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
18720 (get_lface_attributes): New definition that layers face-remapping on
18721 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
18722 (lookup_basic_face): New function.
18723 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
18724 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
18725 `get_lface_attributes'.
18726 (face_at_buffer_position): Use `lookup_basic_face' to lookup
18727 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
18728 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
18729
18730 * xdisp.c (init_iterator): Pass base_face_id through
18731 `lookup_basic_face' when we actually use it as a face-id.
18732 (handle_single_display_prop): Use `lookup_basic_face' to lookup
18733 DEFAULT_FACE_ID.
18734
18735 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
18736 lookup the initial face-id.
18737
18738 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
18739
18740 2008-06-01 Juanma Barranquero <lekktu@gmail.com>
18741
18742 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
18743 (Fremove_text_properties): Fix typos in docstrings.
18744
18745 2008-05-31 Kenichi Handa <handa@m17n.org>
18746
18747 * font.c (font_list_entities): Fix the car part of data to be
18748 stored in the cache.
18749
18750 * ftfont.c (ftfont_font_format): Don't use strcasestr.
18751
18752 2008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
18753
18754 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
18755 Add a `test' argument so another predicate than `equal' can be used.
18756 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
18757 (map_char_table): Remove unused vars `c' and `i'.
18758 * lisp.h (Foptimize_char_table): Adjust declaration.
18759 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
18760
18761 2008-05-30 Kenichi Handa <handa@m17n.org>
18762
18763 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
18764 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
18765 defined.
18766
18767 2008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
18768
18769 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
18770 (Fmake_variable_frame_local): Disallow mixing buffer-local and
18771 frame-local settings for the same variable.
18772
18773 2008-05-30 Kenichi Handa <handa@m17n.org>
18774
18775 * fontset.c (Ffont_info): Move to font.c.
18776 (syms_of_fontset): Delete defsubr of Sfont_info.
18777
18778 * font.c (font_style_to_value, font_score): Delete casting of the
18779 args to xstcasecmp.
18780 (register_font_driver): Increment num_font_drivers only when
18781 registering the driver globally.
18782 (Ffont_info): Move from fontset.c. Handle a font object too.
18783 (syms_of_font): Defsubr Sfont_info.
18784
18785 2008-05-29 Kenichi Handa <handa@m17n.org>
18786
18787 * coding.h (enum define_coding_utf8_arg_index): New enum.
18788 (enum coding_attr_index): Change coding_attr_utf_16_bom to
18789 coding_attr_utf_bom.
18790 (enum utf_bom_type): Rename from utf_16_bom_type.
18791 (struct utf_16_spec): Adjust for the above change.
18792 (struct coding_system): Add utf_8_bom in `spec' union.
18793
18794 * coding.c (CODING_UTF_8_BOM): New macro.
18795 (enum coding_category): Delete coding_category_utf_8, add
18796 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
18797 coding_category_utf_8_sig.
18798 (CATEGORY_MASK_UTF_8): Delete it.
18799 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
18800 (CATEGORY_MASK_UTF_8_SIG): New macros.
18801 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
18802 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
18803 CATEGORY_MASK_UTF_8_SIG.
18804 (CATEGORY_MASK_UTF_8): New macro.
18805 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
18806 (detect_coding_utf_8): Check BOM.
18807 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
18808 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
18809 (encode_coding_utf_16): Likewise.
18810 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
18811 (detect_coding, detect_coding_system): Handle utf-8-auto.
18812 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
18813 (syms_of_coding): Fix setting up of Vcoding_category_table.
18814
18815 2008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
18816
18817 * process.c (Faccept_process_output): If `millisec' is non-nil,
18818 `seconds' default to 0.
18819 (wait_reading_process_output): Also return non-nil if we read output
18820 from a non-running process.
18821
18822 2008-05-29 Jason Rumney <jasonr@gnu.org>
18823
18824 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
18825 `raster' specified.
18826 (add_font_entity_to_list): Allow non-opentype truetype fonts back
18827 in the uniscribe backend, but disallow any font that has no
18828 unicode subrange support.
18829
18830 2008-05-29 Juanma Barranquero <lekktu@gmail.com>
18831
18832 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
18833 Fix typos in docstrings.
18834
18835 2008-05-29 Kenichi Handa <handa@m17n.org>
18836
18837 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
18838 (Fx_family_fonts): Set frame correctly.
18839
18840 2008-05-28 Jason Rumney <jasonr@gnu.org>
18841
18842 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
18843
18844 2008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
18845
18846 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
18847 calling build_annotations.
18848
18849 2008-05-28 Juanma Barranquero <lekktu@gmail.com>
18850
18851 * coding.c (Fdecode_coding_region, Fencode_coding_region)
18852 (Fencode_coding_string):
18853 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
18854 <latin-extra-code-table>: Fix typos in docstrings.
18855 (syms_of_coding) <coding-system-alist>: Doc fix.
18856 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
18857
18858 2008-05-28 Kenichi Handa <handa@m17n.org>
18859
18860 * fontset.c (Ffont_info): Don't call font_close_object.
18861
18862 * font.c (font_parse_family_registry): Use Ffont_put to validate
18863 foundry and family.
18864 (font_delete_unmatched): Don't check spacing.
18865 (font_list_entities): Add spacing to the spec to list fonts.
18866
18867 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
18868 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
18869
18870 * coding.c (encode_coding_raw_text): Fix previous change.
18871 (encode_coding_object): When the dst_object is a buffer and is
18872 different from src_object, move gap to PT.
18873
18874 2008-05-27 Chong Yidong <cyd@stupidchicken.com>
18875
18876 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
18877
18878 2008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
18879
18880 * coding.c (encode_coding_raw_text): Set coding->produced_char for
18881 all branches. Compute it differently.
18882
18883 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
18884
18885 2008-05-27 Juanma Barranquero <lekktu@gmail.com>
18886
18887 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
18888 into "else if () ... else ...".
18889
18890 2008-05-27 Jason Rumney <jasonr@gnu.org>
18891
18892 * w32font.c (w32font_open_internal): Determine if glyph indices
18893 are likely to work here.
18894
18895 2008-05-27 Chong Yidong <cyd@stupidchicken.com>
18896
18897 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
18898 draw overlap glyphs with appropriate highlighting.
18899
18900 2008-05-27 Kenichi Handa <handa@m17n.org>
18901
18902 * xfont.c (xfont_open): Fix calculation of font->average_width.
18903
18904 2008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
18905
18906 * casefiddle.c (casify_object): Try to guess better whether the
18907 argument is a byte or a char.
18908
18909 2008-05-26 Andreas Schwab <schwab@suse.de>
18910
18911 * xselect.c (x_reply_selection_request): Properly handle format == 32.
18912 Always send multiples of format size.
18913
18914 * xterm.c (x_set_frame_alpha): Fix type mismatch.
18915
18916 2008-05-26 Jason Rumney <jasonr@gnu.org>
18917
18918 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
18919 (compute_metrics): Don't set failure if we just cleared the cache.
18920 (w32_weight_table): Remove unused variable.
18921 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
18922 backwards compatibility.
18923
18924 2008-05-25 Kenichi Handa <handa@m17n.org>
18925
18926 * w32term.c (x_draw_glyph_string):
18927 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
18928
18929 * xfaces.c: Delete unused function prototypes.
18930 (xstrlwr, font_frame): Delete them.
18931 (clear_face_cache): Delete unused variable.
18932
18933 * xftfont.c (xftfont_open): Delete unused variable.
18934 If underline_thickness is not 1, adjust underline_position.
18935
18936 * ftxfont.c (ftxfont_open): Delete unused variable.
18937
18938 * fontset.c (face_for_char): Optimize for the case of no charset
18939 property.
18940
18941 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
18942 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
18943 (otf_open, font_otf_capability, generate_otf_features)
18944 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
18945 Comment out by surrounding "#if 0" and "#endif" for the moment.
18946 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
18947 (syms_of_font): Codes for accessing above commented out.
18948
18949 2008-05-24 Eli Zaretskii <eliz@gnu.org>
18950
18951 * w32proc.c: Include dispextern.h.
18952
18953 * w32.c: Include dispextern.h.
18954
18955 2008-05-23 Juanma Barranquero <lekktu@gmail.com>
18956
18957 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
18958 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
18959 Fix typos in docstrings.
18960
18961 2008-05-23 Jason Rumney <jasonr@gnu.org>
18962
18963 * xsmfns.c: Remove includes that are already included by config.h.
18964
18965 2008-05-23 Kenichi Handa <handa@m17n.org>
18966
18967 * charset.c (Qemacs, charset_emacs): New variables.
18968 (char_charset): Fix for non-Unicode characters.
18969 (syms_of_charset): Define charset_emacs.
18970
18971 * w32term.c (x_draw_glyph_string): Be sure to update
18972 s->underline_thickness and s->underline_position. Be sure to draw
18973 underline within the current line area.
18974
18975 * xterm.c (x_draw_glyph_string): Be sure to update
18976 s->underline_thickness and s->underline_position. Be sure to draw
18977 underline within the current line area.
18978
18979 * fontset.c: Delete unused variables and add casting for char *
18980 throughout the file.
18981 (fontset_font): Try the fallback fonts of the current fontset
18982 before consulting the default fontset.
18983
18984 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
18985
18986 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
18987
18988 2008-05-22 Jason Rumney <jasonr@gnu.org>
18989
18990 * font.c: Don't include strings.h.
18991
18992 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
18993
18994 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
18995 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
18996 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
18997 to call xstrcasecmp.
18998
18999 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
19000
19001 * fontset.c (fs_query_fontset): Use xstrcasecmp.
19002
19003 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
19004
19005 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
19006
19007 2008-05-22 Kenichi Handa <handa@m17n.org>
19008
19009 * puresize.h (BASE_PURESIZE): Increase to 1220000.
19010
19011 * font.c (font_prop_validate_style): Adjust for the format
19012 change of font_style_table.
19013
19014 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
19015 two args.
19016
19017 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
19018 two args.
19019
19020 2008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
19021
19022 * minibuf.c (keys_of_minibuf): Delete.
19023 * lisp.h (keys_of_minibuf): Delete.
19024 * emacs.c (main): Don't call keys_of_minibuf.
19025
19026 2008-05-22 Kenichi Handa <handa@m17n.org>
19027
19028 * ftfont.c (ftfont_resolve_generic_family): Rename from
19029 ftfont_list_generic_family. Return a single family for each
19030 generic family.
19031 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
19032 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
19033 Call font_add_log.
19034 (ftfont_match): Call font_add_log.
19035
19036 * font.h (Ffont_xlfd_name): EXFUN adjusted.
19037 (FONT_DEBUG): Define it.
19038 (font_add_log): Extern it.
19039 (font_assert): Rename from xassert.
19040
19041 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
19042 (xfont_list_family): Call font_add_log.
19043 (xfont_match): Likewise.
19044 (memq_no_quit): Delete.
19045
19046 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
19047 call of Ffont_xlfd_name.
19048
19049 * xfaces.c (struct table_entry, slant_table, weight_table)
19050 (swidth_table): Move to font.c.
19051
19052 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
19053 xassert are changed to font_assert. Delete many unused variables.
19054 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
19055 New variables.
19056 (struct table_entry): Move from xfaces.c and modified.
19057 (weight_table, slant_table, width_table): Move from xfaces.c and
19058 contents adjusted for the change of struct table_entry.
19059 (font_style_to_value, font_style_symbolic): Adjust for the
19060 format change of font_style_table.
19061 (font_parse_family_registry): Don't overwrite existing foundry and
19062 family of font_spec.
19063 (font_score): Fix calculation of diff for sizes.
19064 (font_sort_entites): Call font_add_log.
19065 (font_delete_unmatched): Return a newly created list.
19066 (font_list_entities): Fix previous change. Call font_add_log.
19067 (font_matching_entity, font_open_entity, font_close_entity):
19068 Call font_add_log.
19069 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
19070 (Finternal_set_font_style_table): Delete.
19071 (BUILD_STYLE_TABLE): New macro.
19072 (build_style_table): New function.
19073 (Vfont_log, font_log_env_checked): New variables.
19074 (font_add_log): New function.
19075 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
19076 Declare Lisp variables "font-weight-table", "font-slant-table",
19077 "font-width-table", and "font-log". Initialize font_style_table.
19078
19079 2008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
19080
19081 * xterm.c (x_set_frame_alpha): Move declarations before statements.
19082
19083 2008-05-21 Seiji Zenitani <zenitani@mac.com>
19084 Ryo Yoshitake <ryo@shiftmode.net>
19085
19086 * frame.c (Qalpha): Add a new frame parameter `alpha'.
19087 (Vframe_alpha_lower_limit): New variable.
19088 (x_set_alpha): New function.
19089
19090 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
19091
19092 * xfns.c (x-create-frame, Qalpha):
19093 Initialize the frame parameter `alpha'.
19094 * xterm.c (OPAQUE, OPACITY): New.
19095 (x_set_frame_alpha): New function.
19096 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
19097
19098 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
19099 * w32fns.c (w32_frame_parm_handlers): Likewise.
19100
19101 2008-05-20 Jason Rumney <jasonr@gnu.org>
19102
19103 * w32font.c (add_font_entity_to_list): Don't add non-opentype
19104 truetype fonts to opentype list.
19105
19106 2008-05-20 Juanma Barranquero <lekktu@gmail.com>
19107
19108 * fontset.c (Ffontset_info): Doc fix.
19109 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
19110 <ignore-relative-composition>: Fix typos in docstrings.
19111
19112 * font.c (syms-of-font) <font-encoding-alist>:
19113 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
19114 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
19115 (Ffont_otf_alternates): Doc fixes.
19116
19117 2008-05-20 Kenichi Handa <handa@m17n.org>
19118
19119 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
19120 font.h through out the file.
19121 (FONT_DRIVERS): Rename from FONTOBJ.
19122 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
19123 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
19124
19125 * emacs.c (main): Call syms_of_font unconditionally.
19126
19127 * font.h (find_font_encoding): Extern it.
19128
19129 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
19130 fontset.c.
19131 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
19132 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
19133 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
19134 only when HAVE_WINDOW_SYSTEM is defined.
19135 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
19136 when HAVE_WINDOW_SYSTEM is defined.
19137
19138 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
19139 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
19140
19141 * xfaces.c: Include font.h unconditionally.
19142 (merge_face_ref, merge_face_vectors)
19143 (Finternal_set_lisp_face_attribute): Cancel the previous change.
19144
19145 2008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
19146
19147 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
19148 indirect_variable.
19149 * eval.c (lisp_indirect_variable): New fun.
19150 (Fuser_variable_p): Use it.
19151
19152 2008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
19153
19154 * lisp.h (indirect_variable):
19155 * data.c (indirect_variable, let_shadows_buffer_binding_p):
19156 Use Lisp_Symbol pointers rather than Lisp_Object.
19157 Adjust callers.
19158 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
19159 To this end, change calling-convention.
19160
19161 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
19162 if some non-hidden buffers are selected by string&pred.
19163
19164 2008-05-19 Chong Yidong <cyd@stupidchicken.com>
19165
19166 * process.c (wait_reading_process_output): Always check status
19167 when in batch mode.
19168
19169 2008-05-19 Kenichi Handa <handa@m17n.org>
19170
19171 * font.c (font_list_entities): Fix handling of cache.
19172 (font_matching_entity): Likewise.
19173
19174 * ftfont.c (cs_iso8859_1): Delete.
19175 (ft_face_cache): New variable.
19176 (struct ftfont_info): New member fc_charset_idx.
19177 (ftfont_build_basic_charsets): Delete.
19178 (fc_charset_table): New variable.
19179 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
19180 . FC_CHARSET_IDX) as :font-entity property in the font entity.
19181 Callers changed.
19182 (ftfont_lookup_cache, ftfont_get_charset): New functions.
19183 (ftfont_spec_pattern): New argument fc_charset_idx.
19184 Check registry more rigidly. Change callers.
19185 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
19186 change of :font-entity property of the font.
19187
19188 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
19189 property of the font.
19190
19191 2008-05-18 Juanma Barranquero <lekktu@gmail.com>
19192
19193 * coding.c (Fcoding_system_p): Rename argument to match docstring.
19194 (Funencodable_char_position, Fcheck_coding_systems_region)
19195 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
19196 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
19197 (Ffind_operation_coding_system, Fset_coding_system_priority)
19198 (Fcoding_system_eol_type): Doc fixes.
19199
19200 2008-05-17 Glenn Morris <rgm@gnu.org>
19201
19202 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
19203
19204 2008-05-16 Eli Zaretskii <eliz@gnu.org>
19205
19206 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
19207 and st_gid.
19208
19209 * frame.c (Fdelete_frame): Don't call font_update_drivers if
19210 HAVE_WINDOW_SYSTEM is not defined.
19211
19212 * xfaces.c (merge_face_ref, merge_face_vectors)
19213 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
19214 HAVE_WINDOW_SYSTEM is defined.
19215 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
19216
19217 2008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
19218
19219 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
19220
19221 2008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19222
19223 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
19224
19225 2008-05-15 Kenichi Handa <handa@m17n.org>
19226
19227 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
19228 preference.
19229
19230 2008-05-15 Glenn Morris <rgm@gnu.org>
19231
19232 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
19233
19234 2008-05-15 Chong Yidong <cyd@stupidchicken.com>
19235
19236 * fns.c (init_fns): Don't initialize weak_hash_tables here.
19237 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
19238
19239 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
19240
19241 2008-05-15 Kenichi Handa <handa@m17n.org>
19242
19243 * ftfont.c (ftfont_list): Downcase family name to check generic
19244 families.
19245
19246 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
19247 font-spec for QCfont value.
19248
19249 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
19250 buffer. Check the return value of it.
19251
19252 2008-05-14 Jason Rumney <jasonr@gnu.org>
19253
19254 * w32term.c (w32_get_glyph_overhangs): Remove.
19255 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
19256
19257 2008-05-14 Kenichi Handa <handa@m17n.org>
19258
19259 * font.c (font_prop_validate): Make nil a valid value.
19260 (font_clear_cache): Check if the cached vector of entities is nil
19261 or not.
19262
19263 2008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19264
19265 * emacs.c (main_thread): Conditionalize on
19266 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
19267 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
19268
19269 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
19270 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
19271 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
19272
19273 2008-05-14 Kenichi Handa <handa@m17n.org>
19274
19275 * coding.c (detect_coding_iso_2022): Ignore a coding category that
19276 has no corresponding coding system.
19277
19278 2008-05-14 Jason Rumney <jasonr@gnu.org>
19279
19280 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
19281
19282 * w32font.h (w32font_open_internal): Update declaration.
19283
19284 * w32font.c (w32font_open_internal): Change last argument from
19285 w32font_info struct to font object. Fill in font object from
19286 font_entity. Get Outline metrics if possible. Use them to
19287 calculate underline position and thickness. Use xlfd name as name
19288 property. Don't set codepage.
19289 (w32font_open): Pass font_object to w32font_open_internal. Don't
19290 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
19291 (w32font_draw): Use s->font.
19292 (clear_cached_metrics): Don't clear non-existent blocks.
19293
19294 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
19295 font was not found.
19296 (x_draw_glyph_string): Use underline position and thickness from font.
19297
19298 * w32uniscribe.c (uniscribe_open): Pass font_object to
19299 w32font_open_internal.
19300
19301 2008-05-14 Kenichi Handa <handa@m17n.org>
19302
19303 These changes are to delete all legacy font-handling codes, and
19304 make Emacs use only font-backends.
19305
19306 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
19307 (frame.o, image.o, print.o): Depend on $(FONTSRC).
19308
19309 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
19310
19311 * charset.h (Vcharset_non_preferred_head)
19312 (Vcurrent_iso639_language): Extern them.
19313
19314 * charset.c (Vcharset_non_preferred_head): New variable.
19315 (Vcurrent_iso639_language): New variable.
19316 (syms_of_charset): Declare it as a Lisp variable.
19317 (char_charset): Don't check non preferred charsets. As a last
19318 resort, return charset_unicode.
19319 (Fset_charset_priority): Update Vcharset_non_preferred_head.
19320
19321 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
19322 conditionals. Don't check enable_font_backend. Delete all codes
19323 used only when USE_FONT_BACKEND is not defined.
19324
19325 * dispextern.h (struct glyph_string): Change type of `font' to
19326 `struct font *'.
19327 (struct glyph_string): New member underline_position and
19328 underline_thickness.
19329 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
19330 (struct face): Change type of `font' to `struct font *'.
19331 Remove members `font_name', `font_info_id'.
19332 (per_char_metric, encode_char): Delete externs.
19333 (calc_pixel_width_or_height): Adjust the prototype.
19334
19335 * emacs.c (enable_font_backend): Delete extern.
19336 (main): Don't set enable_font_backend. Don't check the command
19337 line argument "-disable-font-backend".
19338
19339 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
19340 (enum font_property_index): New members FONT_DPI_INDEX,
19341 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
19342 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
19343 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
19344 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
19345 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
19346 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
19347 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
19348 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
19349 (struct font_spec, struct font_entity): New structs.
19350 (FONT_ENCODING_NOT_DECIDED): Move from fontset.h.
19351 (struct font): Many members from old "struct font_info" moved to
19352 here. Members font and entity deleted.
19353 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
19354 the new font-related objects.
19355 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
19356 (CHECK_FONT_GET_OBJECT): Likewise.
19357 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
19358 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Move from font.h.
19359 (struct font_driver): New members case_sensitive anc check.
19360 Type of the member list and open changed.
19361 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
19362 (font_symbolic_width, font_find_object, font_get_spec)
19363 (font_set_lface_from_name): Delete extern.
19364 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
19365
19366 * font.c: Include <strings.h>.
19367 (enable_font_backend): Delete it.
19368 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
19369 (CHECK_VALIDATE_FONT_SPEC): Delete it.
19370 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Move to font.h.
19371 (null_string): Delete it.
19372 (null_vector): Make it static.
19373 (font_family_alist): Delete it.
19374 (Qnormal): Extern it.
19375 (QCextra, QClanguage): Delete it.
19376 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
19377 (font_make_spec, font_make_entity, font_make_object)
19378 (font_intern_prop): Rename from intern_downcase. Don't downcase
19379 the string. Callers changed.
19380 (font_pixel_size): Adjust for the format change of font-related
19381 objects.
19382 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
19383 (font_style_to_value, font_style_symbolic): New function.
19384 (build_font_family_alist): Delete it.
19385 (font_registry_charsets): Use Fassoc_string instead of
19386 assq_no_quit.
19387 (font_prop_validate_symbol): Don't return null_string.
19388 (font_prop_validate_style): Adjust for the change of
19389 style-related values in a font vector.
19390 (font_property_table): Delete entries for QClanguage and
19391 QCantialias, add entries for QCavgwidth.
19392 (get_font_prop_index): Delete the 2nd argument FROM.
19393 (font_prop_validate): Arguments changed.
19394 (font_put_extra): Adjust for the change of font-related objects.
19395 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
19396 (font_parse_fcname, font_unparse_fcname)
19397 (font_prepare_composition): Likewise.
19398 (font_parse_family_registry): Rename from font_merge_old_spec.
19399 (otf_open): Delete the 1st arg entity.
19400 (font_otf_capability): Adjust for the above change.
19401 (font_score): New arg alternate_families. Adjusted for the change
19402 of font-related objects.
19403 (font_sort_entites): New arg best_only.
19404 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
19405 Delete them.
19406 (font_match_p): Check alternate families.
19407 (font_find_object): Delete it.
19408 (font_check_object): New function.
19409 (font_clear_cache): Adjust for the change of font-related objects.
19410 (font_delete_unmatched): New arg.
19411 (font_list_entities): Call font_driver->list with a spec that
19412 doesn't specify style-related properties.
19413 (font_matching_entity): Arguments changed. Caller changed.
19414 (font_open_entity): Adjust for the change of font-related objects.
19415 (font_close_object, font_has_char, font_encode_char)
19416 (font_get_name, font_get_spec): Likewise.
19417 (font_spec_from_name, font_clear_prop, font_update_lface):
19418 New functions.
19419 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
19420 (font_prepare_for_face, font_done_for_face, font_open_by_name)
19421 (font_at): Adjust for the change of font-related objects.
19422 (font_range): New function.
19423 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
19424 (Ffont_xlfd_name): Adjust for the change of font-related objects.
19425 (Fcopy_font_spec, Fmerge_font_spec): New function.
19426 (Ffont_family_list): Rename from list-families.
19427 (Finternal_set_font_style_table): Arguments changed.
19428 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
19429 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjust for the
19430 change of font-related objects.
19431 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
19432
19433 * fontset.h (struct font_info): Delete it. Most members go to
19434 struct font.
19435 (FONT_ENCODING_NOT_DECIDED): Move to font.h.
19436 (enum FONT_SPEC_INDEX): Delete it.
19437 (font_info, list_fonts_func, load_font_func, query_font_func)
19438 (set_frame_fontset_func, find_ccl_program_func)
19439 (get_font_repertory_func, new_fontset_from_font_name):
19440 Delete externs.
19441 (fontset_from_font_name): Extern it.
19442 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
19443 (FONT_INFO_FROM_FACE): Deleted.
19444 (face_for_font): Adjust prototype.
19445
19446 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
19447 conditionals. Don't check enable_font_backend. Delete all codes
19448 used only when USE_FONT_BACKEND is not defined.
19449 (get_font_info_func, list_font_func, load_font_func)
19450 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
19451 (get_font_repertory_func): Delete them.
19452 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
19453 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
19454 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
19455 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
19456 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
19457 (fontset_compare_rfontdef): New function.
19458 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
19459 rfont-defs by qsort. Adjusted for the change of font-group vector.
19460 (load_font_get_repertory): Deleted.
19461 (fontset_find_font): Use new macros to ref/set elements of
19462 font-def and rfont-def.
19463 (fontset_font): Fix the timing of remembering that no font for C.
19464 (free_face_fontset): Do nothing if the face has no fontset.
19465 (face_suitable_for_char_p): Use new macros to ref/set elements of
19466 rfont-def.
19467 (face_for_char): Likewise. Call face_for_char with font_object.
19468 (fs_load_font): Delete. Delete #pragma surrounding it.
19469 (fs_query_fontset): Use strcasecmp instead of strcmp.
19470 (generate_ascii_font_name): Adjust for the format change of
19471 font-spec.
19472 (Fset_fontset_font): Likewise. Use new macros to set elements of
19473 font-def.
19474 (Fnew_fontset): Use font_unparse_xlfd to generate
19475 FONTSET_ASCII (fontset).
19476 (new_fontset_from_font_name): Deleted.
19477 (fontset_from_font): Rename from new_fontset_from_font. Check if
19478 a fontset is already created for the font. FIx updating of
19479 Vfontset_alias_alist.
19480 (fontset_ascii_font): Deleted.
19481 (Ffont_info): Adjust for the format change of font-spec.
19482 (Finternal_char_font): Likewise.
19483 (Ffontset_info): Likewise.
19484 (syms_of_fontset): Don't check load_font_func.
19485
19486 * fns.c (internal_equal): Handle PREV_FONT.
19487
19488 * frame.h: Delete USE_FONT_BACKEND conditional.
19489
19490 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
19491 conditionals. Don't check enable_font_backend. Delete all codes
19492 used only when USE_FONT_BACKEND is not defined.
19493 (x_set_font): Call x_new_font, not x_new_fontset2.
19494 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
19495 already set for the frame.
19496
19497 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed.
19498 Make a font-entity by font_make_entity. Use font_intern_prop instead
19499 of intern_downcase. Use FONT_SET_STYLE to set a style-related
19500 font property. If a font is scalable, set avgwidth property to 0.
19501 Set font-entity property by font_put_extra.
19502 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
19503 (ffont_driver): Adjust for the change of struct font_driver.
19504 (ftfont_spec_pattern): New function.
19505 (ftfont_list): Return a list, not vector.
19506 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
19507 (ftfont_list_family): Don't downcase names.
19508 (ftfont_free_entity): Deleted.
19509 (ftfont_open): Return a font-object. Adjusted for the change of
19510 struct font. Get underline_thickness and underline_position from
19511 font property. Don't update dpyinfo->smallest_font_height and
19512 dpyinfo->smallest_char_width.
19513 (ftfont_close): Don't free `struct font'.
19514 (ftfont_has_char): Adjust for the format change of font-entity.
19515 (ftfont_encode_char, ftfont_text_extents): Likewise.
19516
19517 * ftxfont.c (ftxfont_list): Return a list, not vector.
19518 (ftxfont_open): Return a font-object. Adjusted for the change of
19519 struct font. Get underline_thickness and underline_position from
19520 font property. Don't update dpyinfo->smallest_font_height and
19521 dpyinfo->smallest_char_width.
19522 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
19523 (ftxfont_draw): Adjust for the change of struct font.
19524
19525 * image.c (image_ascent): Don't include "charset.h".
19526 Include "character.h" and "font.h".
19527
19528 * lisp.h (enum pvec_type): New member PREV_FONT.
19529 (Fassoc_string): EXFUN it.
19530
19531 * print.c: Include font.h.
19532 (print_object): Handle font-related objects.
19533
19534 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
19535 conditionals. Don't check enable_font_backend. Delete all codes
19536 used only when USE_FONT_BACKEND is not defined.
19537 (handle_auto_composed_prop): Do nothing if it->f is not on a
19538 window system. Check how many following characters can be
19539 displayed by the same font.
19540 (calc_pixel_width_or_height): Type of the 4th arg is changed to
19541 'struct font *'.
19542 (get_char_face_and_encoding): Assign the whole encoding task to
19543 the `encode-char' method of a font driver.
19544 (fill_composite_glyph_string): Adjust for the change of `struct
19545 face' and `struct glyph_string'.
19546 (fill_glyph_string): Likewise.
19547 (get_per_char_metric): Arguments changed.
19548 (x_get_glyph_overhangs): Adjust for the change of `struct face'
19549 and `struct glyph_string'.
19550 (produce_stretch_glyph, calc_line_height_property)
19551 (x_produce_glyphs): Likewise.
19552
19553 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
19554 conditionals. Don't check enable_font_backend. Delete all codes
19555 used only when USE_FONT_BACKEND is not defined.
19556 Use FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
19557 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
19558 (Qp): Extern them.
19559 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
19560 Deleted.
19561 (struct font_name): Deleted.
19562 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
19563 (compare_fonts_by_sort_order): New function.
19564 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
19565 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
19566 Deleted.
19567 (Fx_family_fonts): Use font_list_entities, and sort fonts by
19568 compare_fonts_by_sort_order.
19569 (Fx_font_family_list): Call Ffont_family_list.
19570 (face_numeric_value, face_numeric_weight, face_numeric_slant)
19571 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
19572 (face_symbolic_slant, face_symbolic_swidth)
19573 (split_font_name_into_vector, build_font_name_from_vector)
19574 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
19575 (font_rescale_ratio, split_font_name, build_font_name)
19576 (free_font_names, sort_fonts, x_face_list_fonts)
19577 (face_font_available_p, sorted_font_list, cmp_font_names)
19578 (font_list_1, concat_font_list, font_list, remove_duplicates):
19579 Deleted.
19580 (Fx_list_fonts): Use Ffont_list.
19581 (LFACE_AVGWIDTH): Deleted.
19582 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
19583 by FONTP.
19584 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
19585 (set_lface_from_font_name): Delete it.
19586 (set_lface_from_font): Rename from
19587 set_lface_from_font_and_fontset. Caller changed. Don't set
19588 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
19589 for face.
19590 (merge_face_vectors): Copy font-spec if necessary.
19591 Clear properties of the font-spec if necessary.
19592 (merge_face_ref): Clear properties of the font-spec if necessary.
19593 (Finternal_set_lisp_face_attribute): Likewise.
19594 (set_font_frame_param): Use font_load_for_lface to load a
19595 font-object, and call Fmodify_frame_parameters with it.
19596 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
19597 font name by Ffont_xlfd_name.
19598 (Finternal_lisp_face_attribute_values): Don't check QCweight,
19599 QCslant, and QCwidth.
19600 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
19601 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
19602 Compare fonts by EQ.
19603 (lookup_non_ascii_face): Deleted.
19604 (face_for_font): The 2nd argument changed.
19605 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
19606 Check atomic font properties by case insensitive.
19607 (realize_non_ascii_face): Set face->overstrike correctly.
19608 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
19609 (dump_realized_face): Get font name from
19610 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
19611
19612 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
19613 conditionals. Don't check enable_font_backend. Delete all codes
19614 used only when USE_FONT_BACKEND is not defined.
19615 (xic_create_xfontset): Original code deleted and renamed from
19616 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
19617 (x_make_gc): Don't set GCFont in GCs.
19618 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
19619 opened by "fixed".
19620 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
19621 find_ccl_program_func, query_font_func, set_frame_fontset_func,
19622 get_font_repertory_func.
19623
19624 * xfont.c: Include <stdlib.h> and "ccl.h".
19625 (struct xfont_info): New structure.
19626 (xfont_query_font): Deleted.
19627 (xfont_find_ccl_program): Rename from x_find_ccl_program and
19628 moved from xterm.c.
19629 (xfont_driver): Adjust for the change of struct font_driver.
19630 (compare_font_names): New function.
19631 (xfont_list_pattern): Sort font names case insensitively.
19632 Make font_entity by calling font_make_entity. Avoid auto-scaled fonts.
19633 (xfont_list): Return a list, not vector.
19634 (xfont_match): If the font doesn't have QCname property, generate
19635 a name from the other font properties.
19636 (xfont_open): Return a font-object. Adjusted for the change of
19637 struct font. Get underline_thickness and underline_position from
19638 font property. Don't update dpyinfo->smallest_font_height and
19639 dpyinfo->smallest_char_width.
19640 (xfont_close): Don't free struct font.
19641 (xfont_prepare_face): Adjust for the change of struct font.
19642 (xfont_done_face): Deleted.
19643 (xfont_has_char): Adjust for the change of struct font.
19644 (xfont_encode_char, xfont_draw): Likewise.
19645 (xfont_check): New function.
19646
19647 * xftfont.c (xftfont_list): Adjust for the change of `list'
19648 callback function.
19649 (xftfont_match): Adjust for the format change of font-entity.
19650 (xftfont_open): Adjust for the format change of font-entity and
19651 font-object. Adjusted for the change of struct font. Return a
19652 font-object. Don't update dpyinfo->smallest_font_height and
19653 dpyinfo->smallest_char_width.
19654 (xftfont_close): Block input while calling XftFontClose.
19655 (xftfont_prepare_face): Don't block input while calling
19656 xftfont_get_colors. Adjusted for the change of struct font.
19657 (xftfont_shape): Return value of error case fixed.
19658
19659 * xrdb.c (x_load_resources): Don't setup a fontset resource.
19660
19661 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
19662 conditionals.
19663 (FONT_WIDTH): Return (f)->max_width.
19664 (struct x_display_info): Delete member `font'.
19665 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
19666 (x_find_ccl_program, x_get_font_repertory): Delete externs.
19667 (struct x_output): Change type of `font' to `struct font *'.
19668
19669 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
19670 conditionals. Don't check enable_font_backend. Delete all codes
19671 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
19672 (x_per_char_metric, x_encode_char): Deleted.
19673 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
19674 (x_compute_glyph_string_overhangs): Adjust for the change of
19675 `struct face'.
19676 (x_draw_glyph_string_foreground)
19677 (x_draw_composite_glyph_string_foreground): Likewise.
19678 (x_draw_glyph_string): Likewise. Use font->underline_position and
19679 font->underline_thickness.
19680 (x_new_font): Rename from x_new_fontset2.
19681 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
19682 (x_check_font): Call `check' method of a font driver.
19683 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
19684 (x_query_font, x_get_font_repertory): Deleted.
19685 (x_find_ccl_program): Rename and moved to xfont.c.
19686 (x_redisplay_interface): Adjust for the change of `struct
19687 redisplay_interface'.
19688
19689 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
19690 conditionals. Don't check enable_font_backend. Delete all codes
19691 used only when USE_FONT_BACKEND is not defined. Surround non-used
19692 code by "#ifdef OLD_FONT" and "endif".
19693 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
19694
19695 * w32font.h (struct w32font_info): New member.
19696 (FONT_COMPAT): New macro.
19697 (w32font_open_internal): Prototype adjusted.
19698
19699 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
19700 OLD_FONT" and "endif".
19701
19702 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
19703 conditionals. Don't check enable_font_backend. Delete all codes
19704 used only when USE_FONT_BACKEND is not defined.
19705 (w32font_open): Return a font-object. Make a font-object by
19706 font_make_object. Adjusted for the change of struct w32font_info.
19707 (w32font_close): Don't free struct font. Adjusted for the change
19708 of struct w32font_info.
19709 (w32font_encode_char, w32font_text_extents, w32font_draw):
19710 Adjust for the change of struct w32font_info.
19711 (w32font_draw): Likewise.
19712 (w32font_list_internal): Return a list, not vector.
19713 (w32font_open_internal): Change the 4th arg to font-object.
19714 Adjusted for the change of struct w32font_info and font-object format.
19715 (add_font_name_to_list): Don't downcase names.
19716 (w32_enumfont_pattern_entity): Make a font-entity by
19717 font_make_entity. Adjusted for the format change of font-entity.
19718 Use FONT_SET_STYLE to set a style-related font property. If a
19719 font is scalable, set avgwidth property to 0. Set font-entity
19720 property by font_put_extra.
19721 (font_matches_spec): Adjust for the format change of font-entity.
19722 (w32_weight_table, w32_decode_weight): New variables.
19723 (w32_encode_weight): New function.
19724 (fill_in_logfont): Adjust for the format change of font-spec.
19725 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
19726 weight value.
19727 (w32font_driver): Adjust for the change of struct font_driver.
19728
19729 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
19730 conditionals. Don't check enable_font_backend. Surround non-used
19731 code by "#ifdef OLD_FONT" and "endif".
19732 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
19733 (FONT_AVG_WIDTH): Adjust for the change of struct font.
19734
19735 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
19736 conditionals. Don't check enable_font_backend. Delete all codes
19737 used only when USE_FONT_BACKEND is not defined. Surround non-used
19738 code by "#ifdef OLD_FONT" and "endif".
19739
19740 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
19741 (uniscribe_open): Return value changed to font-object.
19742 Adjusted for the format change of font-object.
19743 (uniscribe_otf_capability): Adjust for the change of struct font.
19744 (add_opentype_font_name_to_list): Don't downcase names.
19745 (uniscribe_font_driver): Adjust for the change of struct
19746 font_driver.
19747
19748 2008-05-13 Chong Yidong <cyd@stupidchicken.com>
19749
19750 * dispnew.c (update_frame_1): Check if tty output is still valid
19751 before flushing it.
19752
19753 2008-05-13 Jan Djärv <jan.h.d@swipnet.se>
19754
19755 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
19756 to Gtk+ menus.
19757
19758 2008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
19759
19760 * dired.c (file_name_completion): Tweak the code so as to always do it
19761 in a single pass. Tighten the scope of some variables.
19762
19763 * dired.c (Qdefault_directory): New var.
19764 (file_name_completion): Use it instead of Fexpand_file_name.
19765 (syms_of_dired): Initialize it.
19766
19767 2008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
19768
19769 * fileio.c (double_dollars): Remove dead code.
19770
19771 2008-05-10 Eli Zaretskii <eliz@gnu.org>
19772
19773 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
19774 Mention w32-get-true-file-attributes in doc string.
19775
19776 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
19777
19778 2008-05-09 Glenn Morris <rgm@gnu.org>
19779
19780 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
19781 2008-04-23.
19782
19783 2008-05-09 Eli Zaretskii <eliz@gnu.org>
19784
19785 Support for reporting owner and group of each file on MS-Windows:
19786 * dired.c (stat_uname, stat_gname): New functions, with special
19787 implementation for w32.
19788 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
19789
19790 * w32.c: Rename the_passwd_* to dflt_passwd_*.
19791 (dflt_group_name): New static variable.
19792 (dflt_group): Rename from the_group.
19793 (init_user_info): Init dflt_group fields. Get user's group name
19794 from LookupAccountSid.
19795 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
19796 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
19797 New initialization states.
19798 (globals_of_w32): Initialize them to zero. Initialize the default
19799 group name to "None".
19800 (GetFileSecurity_Name): New global var, the name of the function
19801 to call for GetFileSecurity.
19802 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
19803 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
19804 (get_file_security, get_security_descriptor_owner)
19805 (get_security_descriptor_group, is_valid_sid)
19806 (get_file_security_desc, get_rid, get_name_and_id)
19807 (get_file_owner_and_group): New functions.
19808 (stat): Use get_file_security_desc and get_file_owner_and_group to
19809 report the owner and primary group of each file. Don't ignore the
19810 high 32 bits of file's size, now that st_size is 64-bit wide.
19811 Fix test when to get true file attributes.
19812 (init_user_info): Use get_rid instead of equivalent inline code.
19813 (fstat): Don't ignore the high 32 bits of file's size.
19814
19815 2008-05-09 Chong Yidong <cyd@stupidchicken.com>
19816
19817 * image.c (png_load): Use correct bit-depth for setting background
19818 color.
19819
19820 2008-05-08 Eli Zaretskii <eliz@gnu.org>
19821
19822 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
19823 epa-hook.elc.
19824
19825 2008-05-08 Juanma Barranquero <lekktu@gmail.com>
19826
19827 * font.c (Ffont_match_p): Don't use `iff' in docstring.
19828
19829 2008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
19830
19831 * macfns.c (Fx_create_frame): Make a copy of frame parameters
19832 because the original parameters are in pure storage now.
19833 (mac_window): Remove unused params. Update callers.
19834
19835 2008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
19836
19837 * lread.c (substitute_object_recurse): Use lower-level primitives.
19838 Don't signal errors when traversing sub-char-tables.
19839 Don't loop over all the possible characters when traversing char-tables.
19840
19841 * print.c (print_preprocess): Add sub-char-tables to the print-table,
19842 just like we do in print.c.
19843
19844 2008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
19845
19846 * minibuf.c (Ftry_completion): Remove code left over from when we used
19847 scmp instead of Fcompare_strings.
19848
19849 2008-05-04 Juanma Barranquero <lekktu@gmail.com>
19850
19851 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
19852
19853 2008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19854
19855 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
19856 Create bitmap context in native byte order.
19857
19858 * macterm.c (XDrawLine)
19859 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
19860 context in native byte order.
19861
19862 2008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19863
19864 * config.in: Regenerate.
19865
19866 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
19867 New definitions for Image I/O support.
19868 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
19869 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
19870 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
19871 (mac_data_provider_release_data, image_load_image_io)
19872 [USE_MAC_IMAGE_IO]: New functions.
19873 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
19874 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
19875 (init_image_func_pointer) [MAC_OSX]: Remove function.
19876 (image_load_quartz2d) [MAC_OSX]: Check availability of
19877 CGImageCreateWithPNGDataProvider at compile time.
19878 Use lowercase `false' for boolean constant.
19879 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
19880 Use image_load_image_io.
19881 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
19882 Don't check MyCGImageCreateWithPNGDataProvider.
19883 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
19884 Don't call init_image_func_pointer.
19885
19886 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
19887
19888 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
19889 Make variable non-static.
19890 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
19891 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
19892
19893 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
19894 (RED_FROM_ULONG): Mask off higher bits.
19895 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
19896
19897 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
19898 Include AvailabilityMacros.h.
19899 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
19900 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
19901
19902 2008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
19903
19904 * chartab.c (Fset_char_table_range): If range is t, really set all
19905 chars to that value.
19906
19907 2008-05-03 Eli Zaretskii <eliz@gnu.org>
19908
19909 * dired.c (Ffile_attributes): Don't allow the device number become
19910 negative.
19911
19912 2008-05-02 Daiki Ueno <ueno@unixuser.org>
19913
19914 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
19915
19916 2008-05-02 Juri Linkov <juri@jurta.org>
19917
19918 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
19919 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
19920 DEFAULT argument as a list of default values in docstrings.
19921
19922 2008-05-01 Chong Yidong <cyd@stupidchicken.com>
19923
19924 * puresize.h (BASE_PURESIZE): Increase to 1210000.
19925
19926 2008-05-01 Martin Rudalics <rudalics@gmx.at>
19927
19928 * dispnew.c (change_frame_size_1): Preserve small windows when
19929 shrinking frames by calling set_window_height|width with third
19930 arg 2.
19931
19932 * window.h (struct window): Replace field too_small_ok by field
19933 resize_proportionally.
19934
19935 * window.c (make_window): Initialize resize_proportionally.
19936 (enlarge_window): Temporarily set resize_proportionally to make
19937 sure that shrink_windows does scale the window proportionally.
19938 (shrink_windows): When window has resize_proportionally set try
19939 to shrink it proportionally by stealing from other windows.
19940 (struct saved_window, Fset_window_configuration)
19941 (compare_window_configurations): Handle resize_proportionally.
19942 (WINDOW_TOTAL_SIZE): New macro.
19943 (window_min_size, shrink_windows, size_window): Use it.
19944 (check_min_window_sizes): Remove. Invalid values of
19945 window-min-height|width are handled by window_min_size_2 now.
19946 (size_window, Fsplit_window, enlarge_window)
19947 (adjust_window_trailing_edge, grow_mini_window): Don't call
19948 check_min_window_sizes.
19949 (window_min_size_2, window_min_size_1, window_min_size):
19950 New argument safe_p for retrieving "safe" minimum sizes.
19951 (Fdisplay_buffer, Fsplit_window, enlarge_window)
19952 (adjust_window_trailing_edge, grow_mini_window):
19953 Adjust arguments of window_min_size... functions.
19954 (shrink_windows): Argument min_size removed. New argument
19955 safe_p allows shrinking windows to their safe minimum sizes.
19956 Calculate minimum size and decide whether a window shall be
19957 deleted for each window individually.
19958 (size_window): When nodelete_p equals 2, tell shrink_windows to
19959 delete windows only if their new minimum size is no more safe.
19960 (shrink_window_lowest_first): Call window_min_size_1 to make
19961 sure to preserve modeline of bottom-most window when resizing
19962 the minibuffer.
19963 (Fset_window_configuration, Fcurrent_window_configuration)
19964 (compare_window_configurations): Do not handle
19965 window-min-height|width any more.
19966 (syms_of_window): Clarify window-min-height|width doc-strings.
19967
19968 2008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
19969
19970 * dired.c (file_name_completion): Fix up the encoding/decoding issue
19971 some more. Copy some of the code from Ftry_completions.
19972 Remove special case code that dates back to initial revision when the
19973 slash was only added when necessary and that can't trigger nowadays.
19974
19975 2008-04-27 Kenichi Handa <handa@m17n.org>
19976
19977 * font.c (font_prop_validate): Signal `error' instead of `font'.
19978
19979 2008-04-29 Jason Rumney <jasonr@gnu.org>
19980
19981 * w32fns.c (Fw32_battery_status): New defun.
19982 (syms_of_w32fns): Defsubr it.
19983
19984 2008-04-28 Andreas Schwab <schwab@suse.de>
19985
19986 * dired.c (file_name_completion): Fix another mixing of encoded
19987 and decoded names.
19988
19989 2008-04-28 Juanma Barranquero <lekktu@gmail.com>
19990
19991 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
19992
19993 2008-04-27 Juanma Barranquero <lekktu@gmail.com>
19994
19995 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
19996
19997 2008-04-27 Andreas Schwab <schwab@suse.de>
19998
19999 * dired.c (file_name_completion): Fix inappropriate mixing of
20000 encoded and decoded names.
20001
20002 * xterm.c (XTread_socket): Fix use of uninitialized variable.
20003
20004 * puresize.h (BASE_PURESIZE): Increase to 1200000.
20005
20006 2008-04-26 Eli Zaretskii <eliz@gnu.org>
20007
20008 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
20009 2008-03-31, it's not needed anymore with `struct stat' definition
20010 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
20011 for the same reasons.
20012
20013 2008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
20014
20015 * m/sparc.h: Additional redefinitions for GNU/Linux.
20016
20017 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20018
20019 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
20020 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
20021 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
20022 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
20023 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
20024 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
20025 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
20026 Likewise.
20027
20028 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
20029 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
20030 (mac_ax_number_of_characters): Add externs.
20031 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
20032 [USE_MAC_TSM]: Likewise.
20033 (mac_handle_text_input_event) [MAC_OSX]:
20034 Handle kEventTextInputOffsetToPos for no active input area case.
20035 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
20036 (mac_handle_document_access_event)
20037 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
20038 (install_application_handler) [MAC_OSX]: Register handlers for
20039 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
20040 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
20041 Register mac_handle_document_access_event.
20042
20043 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
20044 Make functions non-static.
20045
20046 2008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
20047
20048 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
20049 (read_file_name_completion_ignore_case, insert_default_directory)
20050 (Qdefault_directory): Move to minibuffer.el.
20051 (Fread_file_name): Call the new `read-file-name' instead.
20052
20053 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20054
20055 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
20056 Make function non-static.
20057 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
20058 Remove function.
20059 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
20060 Move to mactoolbox.c.
20061 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
20062
20063 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
20064 (mac_rect_make): New macro.
20065
20066 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
20067 instead of float.
20068 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
20069 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
20070 (XSetBackground) [USE_CG_DRAWING]: Likewise.
20071 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
20072 CGRectMake.
20073 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
20074 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
20075 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
20076 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
20077 instead of WindowRef in argument type.
20078 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
20079 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
20080 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
20081 instead of DISPLAY. All uses changed.
20082 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
20083 (x_calc_absolute_position): Simplify so as not to use
20084 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
20085
20086 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
20087 instead of WindowRef in argument type.
20088 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
20089 [TARGET_API_MAC_CARBON]: Remove externs.
20090 (create_apple_event, mac_event_parameters_to_lisp)
20091 [TARGET_API_MAC_CARBON]: Add externs.
20092
20093 * mactoolbox.c (Vmac_ts_script_language_on_focus)
20094 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
20095 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
20096 is clicked.
20097 (x_activate_menubar): Remove extern for saved_menu_event_location.
20098 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
20099 Move from mac.c.
20100
20101 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20102
20103 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
20104 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
20105
20106 2008-04-23 Jason Rumney <jasonr@gnu.org>
20107
20108 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
20109 attributes only for local files.
20110
20111 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
20112 default to Qlocal.
20113
20114 2008-04-22 Juri Linkov <juri@jurta.org>
20115
20116 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
20117 read-buffer-to-switch instead of using the letter "B".
20118
20119 2008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
20120
20121 * fileio.c (Qdefault_directory): New variable.
20122 (Fread_file_name): Use it to pass `dir' to the completion functions.
20123
20124 2008-04-20 Chong Yidong <cyd@stupidchicken.com>
20125
20126 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
20127
20128 2008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
20129
20130 * keyboard.c (Vpre_help_message): Remove.
20131 (show_help_echo): Remove default C code.
20132
20133 * dired.c (directory_files_internal, file_name_completion):
20134 Only call ENCODE_FILE if the string is indeed decoded.
20135
20136 2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
20137
20138 * Makefile.in (TOOLKIT_DEFINES): Remove.
20139 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
20140
20141 2008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20142
20143 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
20144 (mactoolbox.o): New target.
20145
20146 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
20147 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
20148
20149 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
20150 Use mac_set_frame_window_background instead of XSetWindowBackground.
20151 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
20152 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
20153 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
20154 instead of SetWindowTitleWithCFString.
20155 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
20156 Move function to mactoolbox.c.
20157 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
20158 Use mac_set_window_modified instead of SetWindowModified.
20159 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
20160 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
20161 (Fx_focus_frame): Use mac_front_non_floating_window instead of
20162 FrontNonFloatingWindow. Use mac_activate_window instead of
20163 ActivateWindow. Use mac_active_non_floating_window instead of
20164 ActiveNonFloatingWindow.
20165 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
20166 Use mac_show_hourglass and mac_hide_hourglass.
20167 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
20168 instead of GetGlobalMouse.
20169 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
20170 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
20171 Use mac_bring_window_to_front instead of BringToFront.
20172 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
20173 mactoolbox.c.
20174 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
20175 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
20176 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
20177 mactoolbox.c.
20178
20179 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
20180 (XtPointer): Move typedef from macmenu.c.
20181 (enum button_type): Move enum from macmenu.c.
20182 (widget_value): Move typedef from macmenu.c.
20183 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
20184 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
20185 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
20186 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
20187 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
20188 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
20189 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
20190 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
20191 (Selection): Move typedef from macselect.c.
20192 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
20193 macterm.c.
20194 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
20195 (mac_is_window_collapsed, mac_bring_window_to_front)
20196 (mac_send_window_behind, mac_hide_window, mac_show_window)
20197 (mac_collapse_window, mac_front_non_floating_window)
20198 (mac_active_non_floating_window, mac_activate_window)
20199 (mac_move_window_structure, mac_move_window, mac_size_window)
20200 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
20201
20202 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
20203 (enum mac_menu_kind): Move enum to mactoolbox.c.
20204 (min_menu_id): Move variable to mactoolbox.c.
20205 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
20206 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
20207 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
20208 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
20209 [TARGET_API_MAC_CARBON]: Likewise.
20210 (XtPointer): Move typedef to macgui.h.
20211 (enum button_type): Move enum to macgui.h.
20212 (widget_value): Move typedef to macgui.h.
20213 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
20214 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
20215 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
20216 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
20217 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
20218 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
20219 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
20220 (popup_activated_flag): Make variable non-static.
20221 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
20222 (add_menu_item, fill_menu, dispose_menus):
20223 Move functions to mactoolbox.c.
20224 (restore_show_help_function, menu_target_item_handler)
20225 (install_menu_target_item_handler, mac_handle_dialog_event)
20226 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
20227 [TARGET_API_MAC_CARBON]: Likewise.
20228 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
20229 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
20230 (find_and_call_menu_selection, name_is_separator): Make function
20231 non-static.
20232 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
20233 to mactoolbox.c.
20234 (set_frame_menubar): Don't call install_menu_quit_handler.
20235 (menu_item_selection): New variable.
20236 (mac_menu_show): Use create_and_show_popup_menu.
20237 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
20238 selection but set variable menu_item_selection. All uses changed.
20239 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
20240 Call install_menu_quit_handler. Move to mactoolbox.c.
20241
20242 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
20243 (Selection): Move typedef to macgui.h.
20244 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
20245 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
20246 Make variables non-static.
20247 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
20248 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
20249 Make functions non-static.
20250 (Vmac_service_selection) [MAC_OSX]: Likewise.
20251 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
20252 (mac_valid_selection_target_p, mac_clear_selection)
20253 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
20254 (mac_put_selection_value, mac_selection_has_target_p)
20255 (mac_get_selection_value, mac_get_selection_target_list)
20256 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
20257 Move functions to mactoolbox.c.
20258 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
20259 Likewise.
20260 (copy_scrap_flavor_data, mac_handle_service_event)
20261 (install_service_handler) [MAC_OSX]: Likewise.
20262 (syms_of_macselect) <Vmac_dnd_known_types>:
20263 Use mac_dnd_default_known_types.
20264
20265 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
20266 Move to mactoolbox.c.
20267 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
20268 (Fx_selection_owner_p): Add EXFUN.
20269 (install_window_handler, remove_window_handler, XSetWindowBackground):
20270 Remove externs.
20271 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
20272 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
20273 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
20274 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
20275 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
20276 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
20277 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
20278 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
20279 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
20280 (create_and_show_popup_menu, mac_get_selection_from_symbol)
20281 (mac_valid_selection_target_p, mac_clear_selection)
20282 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
20283 (mac_put_selection_value, mac_selection_has_target_p)
20284 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
20285 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
20286 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
20287 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
20288 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
20289 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
20290 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
20291 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
20292 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
20293
20294 * mactoolbox.c: New file.
20295
20296 2008-04-18 Jason Rumney <jasonr@gnu.org>
20297
20298 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
20299
20300 2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
20301
20302 * character.c (Fmultibyte_char_to_unibyte):
20303 Return latin1 chars unchanged.
20304
20305 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
20306 relocated if it points to `name'.
20307
20308 2008-04-17 Kenichi Handa <handa@m17n.org>
20309
20310 * data.c (Faset): Allow setting a multibyte character in an
20311 ASCII-only unibyte string.
20312
20313 * lisp.h (STRING_SET_MULTIBYTE): New macro.
20314
20315 2008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
20316
20317 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
20318 done in config.h.
20319
20320 2008-04-16 Juanma Barranquero <lekktu@gmail.com>
20321
20322 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
20323 (Fchar_direction): Add usage in the docstring.
20324
20325 2008-04-15 Chong Yidong <cyd@stupidchicken.com>
20326
20327 * keyboard.c (read_key_sequence): Remove always-true checks.
20328
20329 2008-04-14 Jason Rumney <jasonr@gnu.org>
20330
20331 * w32font.c (w32font_open_internal): Set max_bounds.descent in
20332 compatibility struct, for better underline positioning.
20333
20334 2008-04-13 David Hansen <david.hansen@gmx.net>
20335
20336 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
20337 string.
20338
20339 2008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
20340
20341 * m/hp800.h (XUINT, XSET): Remove.
20342
20343 2008-04-12 Juanma Barranquero <lekktu@gmail.com>
20344
20345 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
20346 previous change.
20347
20348 2008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
20349
20350 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
20351 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
20352
20353 2008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
20354
20355 * keymap.h (map_keymap_canonical): Declare.
20356 * xmenu.c (single_keymap_panes): Use it.
20357
20358 2008-04-11 Glenn Morris <rgm@gnu.org>
20359
20360 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
20361 set the target's value to that of the alias.
20362
20363 2008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
20364
20365 * term.c (set_tty_color_mode): Left over typo.
20366
20367 2008-04-10 Michael Albinus <michael.albinus@gmx.de>
20368
20369 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
20370 only after check for file name handler functions. Signal, when
20371 native functionality is not supported.
20372 (syms_of_fileio): Declare it unconditionally.
20373
20374 2008-04-10 Jason Rumney <jasonr@gnu.org>
20375
20376 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
20377 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
20378
20379 * w32.c (logon_network_drive): Also logon to remote drives that
20380 are mapped to drive letters.
20381
20382 2008-04-10 Glenn Morris <rgm@gnu.org>
20383
20384 * xdisp.c (truncate-partial-width-windows): Doc fix.
20385
20386 2008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
20387
20388 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
20389 Move functions to minibuffer.el.
20390 (syms_of_fileio): Don't declare them.
20391
20392 2008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
20393
20394 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
20395 (syms_of_minibuf): Remove its initialization.
20396
20397 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
20398
20399 2008-04-09 Juanma Barranquero <lekktu@gmail.com>
20400
20401 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
20402
20403 2008-04-09 Jason Rumney <jasonr@gnu.org>
20404
20405 * makefile.w32-in (distclean): Delete makefile too.
20406 (maintainer-clean): New target.
20407
20408 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
20409
20410 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
20411 for new font backend and composite cases.
20412
20413 2008-04-09 Jan Djärv <jan.h.d@swipnet.se>
20414
20415 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
20416 Most of the code moved to run_timers.
20417 (do_pending_atimers): Call run_timers.
20418 (run_timers): New function.
20419
20420 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
20421 run atimers.
20422
20423 * process.c (wait_reading_process_output): The same as above.
20424
20425 2008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
20426
20427 * minibuf.c (last_exact_completion): Remove variable.
20428 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
20429 (complete_and_exit_1, complete_and_exit_2)
20430 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
20431 (Fdisplay_completion_list, display_completion_list_1)
20432 (Fminibuffer_completion_help, Fself_insert_and_exit)
20433 (Fexit_minibuffer, Fminibuffer_message): Move functions to
20434 minibuffer.el.
20435 (syms_of_minibuf): Remove corresponding initializations.
20436
20437 * keyboard.c (Qdeactivate_mark): New var.
20438 (command_loop_1): Use it to call `deactivate-mark'.
20439 (syms_of_keyboard): Initialize it.
20440
20441 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
20442 to another frame.
20443 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
20444 Don't call set_tty_color_mode.
20445 (store_frame_param): Reset previous_frame rather than call
20446 set_tty_color_mode.
20447 * term.c (set_tty_color_mode): Rewrite.
20448 * dispextern.h (set_tty_color_mode): New type.
20449 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
20450
20451 2008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
20452
20453 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
20454 for generic chars, which do not exist any more in emacs-unicode.
20455
20456 2008-04-08 Michael Albinus <michael.albinus@gmx.de>
20457
20458 * coding.c (detect_coding_emacs_mule)
20459 (Ffind_operation_coding_system): Fix typo.
20460
20461 2008-04-08 Jason Rumney <jasonr@gnu.org>
20462
20463 * w32uniscribe.c (SNAME): Extract only symbol name.
20464
20465 * w32font.h (struct w32_metric_cache): New struct.
20466 (w32font_info): Use it.
20467 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
20468 (CACHE_BLOCKSIZE): New constants.
20469
20470 * w32font.c (Qja, Qko, Qzh): New symbols.
20471 (syms_of_w32font): Initialise them.
20472 (font_matches_spec): Use them to filter by language.
20473 (recompute_cached_metrics): Remove function.
20474 (compute_metrics, clear_cached_metrics): New functions.
20475 (w32font_encode_char): Use them to manage metric cache.
20476 (w32font_text_extents): Cache metrics for all glyphs on demand.
20477 Delay converting glyph indices to WORD until needed.
20478 (w32font_open_internal): Initialize metric cache to empty.
20479 (registry_to_w32_charset): Charset should always be a symbol.
20480 (fill_in_logfont, list_all_matching_fonts): Family should
20481 always be a symbol.
20482
20483 2008-04-06 Jason Rumney <jasonr@gnu.org>
20484
20485 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
20486 Give up if glyph indices not supported. Use uniscribe obtained
20487 ABC widths for individual metrics. Map glyph clusters back to
20488 characters using fClusterStart flag. Return number of glyphs
20489 produced, not chars processed.
20490 (uniscribe_shape): Map char at FROM to current glyph.
20491
20492 2008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20493
20494 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
20495 Use SetMenuItemHierarchicalMenu.
20496
20497 2008-04-05 Jason Rumney <jasonr@gnu.org>
20498
20499 * image.c (pbm_load): Allow color values up to 65535.
20500 Throw an error if max_color_idx is outside the supported range.
20501 Report an error when image size is invalid.
20502 Read two bytes at a time when raw images have max_color_idx above 255.
20503
20504 2008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
20505
20506 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
20507 append "CCL: Quitted" when the CCL program is quitted.
20508 (setup_ccl_program): Initialize ccl->quit_silently to zero.
20509
20510 * ccl.h (struct ccl_program): New member quit_silently.
20511
20512 2008-04-05 Chong Yidong <cyd@stupidchicken.com>
20513
20514 * search.c (compile_pattern_1): Treat non-nil and non-string of
20515 search-spaces-regexp as nil.
20516
20517 * minibuf.c (Fassoc_string): Tweak docstring.
20518
20519 2008-04-05 Eli Zaretskii <eliz@gnu.org>
20520
20521 * dired.c (Ffile_attributes): Support inode numbers wider than 32
20522 bits. Remove ugly WINDOWSNT-specific kludge introduced on
20523 2008-03-14 to force inode be positive.
20524
20525 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
20526 _S_* ones, since we now use our own sys/stat.h.
20527 (stat, fstat): Don't mangle the inode number.
20528 (init_user_info): Don't restrict UID and GID to 0-60000 range.
20529
20530 2008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
20531
20532 * frame.h (struct frame): Give one more bit to `visible' since we use
20533 values larger than 1 to indicate obscured frames on ttys.
20534
20535 * keymap.c (Qkeymap_canonicalize): New var.
20536 (Fmap_keymap_internal): New fun.
20537 (describe_map): Use keymap-canonicalize.
20538
20539 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
20540 (Fundo_boundary): Set them.
20541 (syms_of_undo): Initialize them.
20542 (record_point): Use them instead of last_point_position*.
20543 (last_undo_buffer): Change type.
20544
20545 2008-04-04 Jason Rumney <jasonr@gnu.org>
20546
20547 * w32font.c (w32font_text_extents): Use font's ascent and descent.
20548 (recompute_cached_metrics): Don't set ascent and descent per char.
20549
20550 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
20551 (uniscribe_check_otf): Add GC protection before consing.
20552 Rearrange loop for counting features.
20553
20554 2008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
20555
20556 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
20557 buffer with byte-size of source buffer.
20558
20559 2008-04-03 Chong Yidong <cyd@stupidchicken.com>
20560
20561 * callint.c (Fcall_interactively): Handle temporary region even
20562 when shift-select-mode is off.
20563
20564 2008-04-03 Jason Rumney <jasonr@gnu.org>
20565
20566 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
20567
20568 2008-04-03 Kenichi Handa <handa@m17n.org>
20569
20570 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
20571 (CATEGORY_MASK_UTF_16): Likewise.
20572 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
20573 binary file.
20574 (detect_coding): Add null-byte detection for a binary file.
20575 (detect_coding_system): Likewise.
20576
20577 2008-04-03 Jason Rumney <jasonr@gnu.org>
20578
20579 * w32uniscribe.c: New file.
20580
20581 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
20582
20583 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
20584
20585 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
20586 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
20587 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
20588 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
20589 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
20590 (Qphonetic): New symbols.
20591 (syms_of_w32font): Initialize them.
20592 (font_supported_scripts): Use them.
20593 (w32font_list_family): List all charsets.
20594 (w32font_text_extents, recompute_cached_metrics): Fix metric
20595 calculations.
20596 (w32_enumfont_pattern_entity): Make full_type a DWORD.
20597 Give opentype fonts their own format.
20598 (font_matches_spec): New arguments backend and logfont.
20599 Handle :otf spec for uniscribe backend.
20600 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
20601 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
20602
20603 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
20604 font backend.
20605 (globals_of_w32fns): Initialize uniscribe font backend.
20606
20607 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
20608 dependencies.
20609 (w32uniscribe.$(O)): New file to build.
20610 (FONT_OBJ): Include w32uniscribe.$(O).
20611 (LIBS): Add uniscribe libraries.
20612
20613 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
20614
20615 2008-04-02 Chong Yidong <cyd@stupidchicken.com>
20616
20617 * callint.c (Vshift_select_mode): New var.
20618 (Finteractive): Document new ^ spec.
20619 (Fcall_interactively): Call handle-shift-selection if the ^ spec
20620 is present.
20621
20622 * keyboard.c (Vthis_command_keys_shift_translated): New var.
20623 (command_loop_1): Avoid running the direct display versions of
20624 forward-char and backward-char if shift-selection may occur.
20625 (read_key_sequence): Set Vthis_command_keys_shift_translated if
20626 shift-translation takes place.
20627
20628 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
20629 avoid clobbering by define-minor-mode.
20630
20631 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
20632 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
20633
20634 * syntax.c (Fforward_word): Add ^ interactive spec.
20635
20636 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
20637 (Fscroll_right): Add ^ interactive spec.
20638
20639 2008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
20640
20641 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
20642
20643 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
20644
20645 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
20646
20647 2008-03-31 Juri Linkov <juri@jurta.org>
20648
20649 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
20650
20651 2008-03-30 Jan Djärv <jan.h.d@swipnet.se>
20652
20653 * gtkutil.c (xg_set_geometry): Fix indentation.
20654 (xg_resize_outer_widget): Remove.
20655 (x_wm_size_hint_off): Fix indentation.
20656 (xg_frame_set_char_size): Call flush_and_sync after
20657 gtk_window_resize.
20658 (x_wm_set_size_hint): Pass NULL as geometry window to
20659 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
20660 Add menu bar and tool bar height to base height.
20661 (xg_update_frame_menubar, free_frame_menubar)
20662 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
20663 (update_frame_tool_bar, free_frame_tool_bar):
20664 Change xg_resize_outer_widget to xg_frame_set_char_size.
20665
20666 2008-03-30 Michael Albinus <michael.albinus@gmx.de>
20667
20668 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
20669 (Fdbus_call_method): New parameter TIMEOUT.
20670 (dbus-send-signal): Optimize UNGCPRO call.
20671
20672 2008-03-29 Juri Linkov <juri@jurta.org>
20673
20674 * window.c (Fdisplay_buffer): Move call to
20675 Vsplit_window_preferred_function out of conditions that check
20676 if window is eligible for vertical splitting.
20677 When Vsplit_window_preferred_function is non-nil, call it and use
20678 its non-nil return value as window. Otherwise, continue doing
20679 vertical splitting using Fsplit_window with arg horflag=nil.
20680 (syms_of_window) <Vsplit_window_preferred_function>: Change the
20681 default value from `split-window' to nil.
20682
20683 2008-03-29 Juri Linkov <juri@jurta.org>
20684
20685 * callint.c (Fcall_interactively): Revert 2008-03-16 change
20686 for interactive code letters 'b' and 'B'.
20687
20688 2008-03-29 Eli Zaretskii <eliz@gnu.org>
20689
20690 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
20691 multibyte string.
20692
20693 2008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
20694
20695 * keyboard.c (pending_funcalls): New var.
20696 (timer_check): Run it.
20697 (syms_of_keyboard): Initialize it.
20698 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
20699 (Vdelete_terminal_functions): New vars.
20700 (syms_of_terminal): Initialize them.
20701 (Fdelete_terminal): Run delete-terminal-functions.
20702 * xdisp.c (safe_eval): Rewrite.
20703 (safe_call2): New fun.
20704 * frame.c (Qdelete_frame_functions): New var.
20705 (syms_of_frame): Initialize it.
20706 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
20707 * lisp.h (safe_call2, pending_funcalls): Declare.
20708
20709 2008-03-28 Andreas Schwab <schwab@suse.de>
20710
20711 * indent.c (Fmove_to_column): Move declaration before statements.
20712
20713 2008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
20714
20715 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
20716 (struct frame): Use bit fields for boolean vars.
20717
20718 * process.c (server_accept_connection): Simplify naming.
20719 (emacs_get_tty_pgrp): Use SDATA.
20720
20721 * coding.c (decode_coding_object): Fix last change.
20722
20723 2008-03-27 Jason Rumney <jasonr@gnu.org>
20724
20725 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
20726
20727 2008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
20728
20729 * charset.c (Fdefine_charset_internal): Change the way of
20730 registering charsets in Vcharset_order_list.
20731 (syms_of_charset): Make the charset `eight-bit' supplementary.
20732
20733 2008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
20734
20735 * regex.c (EXTEND_BUFFER): Change order of pointer addition
20736 operations, to avoid having the difference between pointers
20737 overflow.
20738
20739 2008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
20740
20741 * indent.c (check_display_width): New fun.
20742 (scan_for_column): Use it.
20743
20744 * data.c (syms_of_data): Mark most-positive-fixnum and
20745 most-negative-fixnum as constants.
20746
20747 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
20748
20749 * indent.c (scan_for_column): Extract from current_column_1.
20750 Merge with the same code from Fmove_to_column.
20751 (current_column_1, Fmove_to_column): Use it.
20752
20753 2008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
20754
20755 * keymap.c (map_keymap_internal): New fun.
20756 (map_keymap): Use it.
20757 (Fmap_keymap_internal): New fun.
20758 (Fmap_keymap): Remove left-out test from before make_save_value.
20759
20760 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
20761
20762 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
20763 Use XCAR/XCDR.
20764
20765 * process.h (struct Lisp_Process): Remove filter_multibyte.
20766 * process.c (QCfilter_multibyte): Remove.
20767 (setup_process_coding_systems): Don't use filter_multibyte.
20768 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
20769 (read_process_output): Don't adjust multibyteness to filter_multibyte.
20770 (Fset_process_filter_multibyte): Change the coding-system to
20771 approximate the previous behavior.
20772 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
20773 coding-system.
20774
20775 * coding.c (decode_coding_object): When not decoding into a buffer,
20776 obey the coding system's preference of (uni|multi)byte.
20777
20778 2008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
20779
20780 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
20781 every char is changed and has a different byte-length.
20782 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
20783 Fix int -> EMACS_INT.
20784
20785 2008-03-23 David Hansen <david.hansen@gmx.net>
20786
20787 * dbusbind.c (xd_read_message): Remove extra copying of message
20788 strings. Check for NULL `interface' or `member'.
20789
20790 2008-03-22 Eli Zaretskii <eliz@gnu.org>
20791
20792 * w32.c (readdir): If FindFirstFile/FindNextFile return in
20793 cFileName a file name that includes `?' characters, use the 8+3
20794 alias in cAlternateFileName instead.
20795
20796 2008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
20797
20798 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
20799
20800 2008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
20801
20802 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
20803 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
20804 work on current_buffer only instead (that was already the case
20805 for some of the code anyway).
20806 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
20807 (temp_set_point, temp_set_point_both): Use EMACS_INT.
20808 (SET_PT, SET_PT_BOTH): Adjust.
20809 * intervals.h (set_point, temp_set_point, set_point_both)
20810 (temp_set_point_both): Remove redundant declarations.
20811
20812 2008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
20813
20814 * fileio.c (Finsert_file_contents):
20815 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
20816 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
20817 when buffer != current_buffer anyway.
20818
20819 2008-03-20 Andreas Schwab <schwab@suse.de>
20820
20821 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
20822 as default.
20823
20824 2008-03-19 Jason Rumney <jasonr@gnu.org>
20825
20826 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
20827 (syms_of_w32fns): Initialize them.
20828 (HOURGLASS_ID): New constant.
20829 (x_window_to_frame): Don't check hourglass_window.
20830 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
20831 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
20832 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
20833 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
20834 Only change the cursor if hourglass is not active.
20835 (Fx_create_frame): Initialize frame's current_cursor.
20836 (hourglass_atimer): Remove.
20837 (hourglass_started): New function.
20838 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
20839 (show_hourglass): Adapt to w32, changing argument to frame.
20840
20841 * w32term.h (struct w32_output): Remove hourglass_window.
20842 Add current_cursor.
20843
20844 * eval.c (call_debugger, Fsignal):
20845 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
20846 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
20847 (Fexecute_extended_command, cancel_hourglass_unwind):
20848 * minibuf.c (read_minibuf):
20849 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
20850
20851 2008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
20852
20853 * window.c (run_funs): New fun.
20854 (run_window_configuration_change_hook): Use it to run the buffer-local
20855 and the global part of the hook.
20856
20857 * xdisp.c (format_mode_line_unwind_data): Add window argument.
20858 (unwind_format_mode_line): Restore selected window.
20859 (x_consider_frame_title, Fformat_mode_line): Set selected window.
20860
20861 2008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
20862
20863 * editfns.c (Fchar_equal): Check they are valid characters.
20864
20865 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
20866
20867 2008-03-17 Andreas Schwab <schwab@suse.de>
20868
20869 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
20870 against a charset.
20871
20872 * lisp.h (Fbuffer_list): Declare.
20873
20874 2008-03-17 Jan Djärv <jan.h.d@swipnet.se>
20875
20876 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
20877 handlebox_widget is != 0.
20878
20879 2008-03-16 Juri Linkov <juri@jurta.org>
20880
20881 * callint.c (Fcall_interactively): For interactive code letters
20882 'b' and 'B' put the buffer list into the list of default "future"
20883 values of the minibuffer.
20884
20885 2008-03-16 Andreas Schwab <schwab@suse.de>
20886
20887 * keyboard.c (read_key_sequence): Fix downcasing of letters with
20888 modifiers.
20889
20890 * regex.c (re_match_2_internal): Correct matching of a charset
20891 against latin-1 characters.
20892
20893 2008-03-16 Kenichi Handa <handa@m17n.org>
20894
20895 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
20896 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
20897 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
20898 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
20899 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
20900 CHAR_STRING_ADVANCE.
20901 (produce_chars): Fix for the case that the source and the
20902 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
20903 instead of CHAR_STRING_ADVANCE.
20904 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
20905 STRING_CHAR_ADVANCE.
20906
20907 2008-03-15 Andreas Schwab <schwab@suse.de>
20908
20909 * regex.c (re_match_2_internal): Correct matching of eight bit
20910 characters in unibyte strings.
20911
20912 2008-03-15 Martin Rudalics <rudalics@gmx.at>
20913
20914 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
20915 at end of range when it coincides with the end of the buffer.
20916
20917 2008-03-14 Eli Zaretskii <eliz@gnu.org>
20918
20919 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
20920
20921 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
20922
20923 2008-03-14 Jason Rumney <jasonr@gnu.org>
20924
20925 * editfns.c (initial_tz): New variable.
20926 (syms_of_editfns): Initialize it.
20927 (Fset_time_zone_rule): Set it when first called.
20928 Use it when TZSTRING is nil.
20929
20930 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
20931 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
20932 (monitor_from_point_fn, get_monitor_info_fn): New globals.
20933 (globals_of_w32fns): Initialize them.
20934 (compute_tip_xy): Use them to position tooltips.
20935
20936 2008-03-14 Glenn Morris <rgm@gnu.org>
20937
20938 * emacs.c (main): Revert previous change.
20939 (standard_args): Revert -internal-script back to -scriptload,
20940 and remove the long-option form.
20941
20942 2008-03-13 Glenn Morris <rgm@gnu.org>
20943
20944 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
20945 Remove option -enable-font-backend.
20946
20947 2008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
20948
20949 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
20950
20951 2008-03-11 Jan Djärv <jan.h.d@swipnet.se>
20952
20953 * xterm.c (x_connection_closed): For GTK: If this is the last
20954 terminal just exit without closing the display.
20955
20956 2008-03-11 Jason Rumney <jasonr@gnu.org>
20957
20958 * w32font.c (w32font_full_name): Use floor to round.
20959
20960 2008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
20961
20962 * sound.c (alsa_configure): Declare vol at beginning of block.
20963
20964 * fontset.c (Ffontset_info): Remove extra semicolon.
20965
20966 2008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
20967
20968 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
20969 size of resulting string.
20970
20971 2008-03-10 Jason Rumney <jasonr@gnu.org>
20972
20973 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
20974
20975 2008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20976
20977 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
20978 Don't pretend as if characters with display property haven't been
20979 consumed for string-replacing-string case.
20980
20981 2008-03-08 Kim F. Storm <storm@cua.dk>
20982
20983 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
20984 (get_next_display_element, next_element_from_string)
20985 (next_element_from_ellipsis, next_element_from_buffer): Use it.
20986
20987 2008-03-08 Andreas Schwab <schwab@suse.de>
20988
20989 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
20990
20991 2008-03-06 Jason Rumney <jasonr@gnu.org>
20992
20993 * w32font.c (w32_registry): Take font_type argument. Use ANSI
20994 when charset not specified. Only translate ANSI to unicode when
20995 font_type is truetype.
20996 (w32font_coverage_ok): New function.
20997 (add_font_entity_to_list): Use it to filter unsuitable fonts.
20998
20999 2008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
21000
21001 * lread.c (Fread_char): Resolve modifiers.
21002 (Fread_char_exclusive): Likewise.
21003
21004 * character.c (char_resolve_modifier_mask): New function.
21005 (char_string): Use char_resolve_modifier_mask.
21006 (Fchar_resolve_modifiers): New function.
21007 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
21008 function.
21009
21010 2008-03-04 Jason Rumney <jasonr@gnu.org>
21011
21012 * makefile.w32-in: Always include w32font.c in the build.
21013 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
21014
21015 2008-03-04 Andreas Schwab <schwab@suse.de>
21016
21017 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
21018 (versionclean): Likewise.
21019
21020 2008-03-04 Juanma Barranquero <lekktu@gmail.com>
21021
21022 * .cvsignore: Add oo.
21023
21024 2008-03-03 Andreas Schwab <schwab@suse.de>
21025
21026 * coding.c (decode_coding_object): Inhibit gap shrinking while
21027 decoding in place.
21028
21029 2008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
21030
21031 * w32term.c: Remove unused include "gnu.h".
21032 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
21033
21034 * gnu.h: Rename to ...
21035 * emacs-icon.h: ... this.
21036 * xterm.c: Use emacs-icon.h instead of gnu.h.
21037 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
21038
21039 2008-03-03 Juanma Barranquero <lekktu@gmail.com>
21040
21041 * w32font.c: Include math.h.
21042
21043 2008-03-03 Jason Rumney <jasonr@gnu.org>
21044
21045 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
21046 Compute options separately.
21047 (w32font_open_internal): Set glyph_idx before caching metrics.
21048
21049 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
21050 Define if system headers don't.
21051 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
21052 (w32font_encode_char): Don't declare here.
21053
21054 * w32font.c (Quniscribe, QCformat): New symbols.
21055 (syms_of_w32font): Define them.
21056 (w32font_has_char): Indicate uncertainty.
21057 (w32font_encode_char): Encode as glyph point. Make static.
21058 (recompute_cached_metrics): New function.
21059 (w32font_open_internal): Use it. Set font to use glyph points
21060 initially. Set format based on type of font.
21061 (w32font_text_extents, w32font_draw): Optionally use glyph points.
21062 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
21063 on it. Set format based on information available here.
21064 (add_font_entity_to_list): Identify backend based on opentype_only.
21065
21066 2008-03-02 Andreas Schwab <schwab@suse.de>
21067
21068 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
21069
21070 * coding.c (decode_coding_big5, produce_chars):
21071 Fix typos in last change.
21072
21073 2008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
21074
21075 * gnu.h: New icon.
21076
21077 2008-03-02 Kenichi Handa <handa@m17n.org>
21078
21079 * coding.c (decode_coding_utf_8): When eol-type of CODING is
21080 `dos', don't decode '\r' if that is the last in the source.
21081 (decode_coding_utf_16, decode_coding_emacs_mule)
21082 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
21083 (decode_coding_raw_text, decode_coding_charset): Likewise.
21084 (produce_chars): Don't decode EOL here. Use EMACS_INT.
21085
21086 2008-03-01 Jason Rumney <jasonr@gnu.org>
21087
21088 * w32font.c (w32font_full_name): Report point size for scalable fonts.
21089
21090 2008-03-01 Kim F. Storm <storm@cua.dk>
21091
21092 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
21093
21094 2008-03-01 Jason Rumney <jasonr@gnu.org>
21095
21096 * w32font.c (w32font_full_name): New function.
21097 (w32font_open_internal): Use it.
21098
21099 2008-03-01 Kim F. Storm <storm@cua.dk>
21100
21101 * dispnew.c (line_draw_cost): Fix invalid glyph check.
21102
21103 2008-03-01 Jason Rumney <jasonr@gnu.org>
21104
21105 * font.c (font_unparse_fcname): Increase len when style is a symbol.
21106
21107 2008-03-01 Jan Djärv <jan.h.d@swipnet.se>
21108
21109 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
21110 xg_frame_resized when the event is for the edit widget.
21111
21112 * gtkutil.h (xg_frame_resized): Rename from xg_resize_widgets.
21113
21114 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
21115 set_char_size.
21116 (xg_frame_resized): Rename from xg_resize_widgets. Remove all
21117 operations on widgets here. Just set frame size if needed.
21118 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
21119 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
21120 (x_wm_set_size_hint): Set size hints on the edit widget only, not
21121 the whole frame.
21122 (xg_create_tool_bar): Move attachment of the tool bar to
21123 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
21124 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
21125
21126 2008-03-01 Jason Rumney <jasonr@gnu.org>
21127
21128 * w32fns.c (w32_msg_pump): Disable debug code.
21129
21130 2008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21131
21132 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
21133
21134 2008-02-29 Chong Yidong <cyd@stupidchicken.com>
21135
21136 * xdisp.c (next_overlay_string): Don't set
21137 overlay_strings_at_end_processed_p if we're currently reading from
21138 a display string.
21139
21140 2008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
21141
21142 * xdisp.c (get_overlay_strings_1): Fix typo.
21143
21144 2008-02-29 Chong Yidong <cyd@stupidchicken.com>
21145
21146 * xdisp.c (get_overlay_strings_1): Add missing argument type.
21147
21148 2008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
21149
21150 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
21151
21152 * xdisp.c (display_mode_element): Cancel the previous change.
21153 (decode_mode_spec): Likewise.
21154 (handle_auto_composed_prop): Don't make composition if it->string
21155 is a string.
21156
21157 2008-02-27 Kim F. Storm <storm@cua.dk>
21158
21159 * lisp.h (GLYPH): Change type from int to struct with separate char
21160 and face_id members.
21161 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
21162 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
21163 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
21164 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
21165 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
21166 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
21167 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
21168 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
21169 handle new Lisp glyph code encoding, either an integer or a cons.
21170
21171 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
21172 (GLYPH_ALIAS): Delete.
21173 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
21174 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
21175 (GLYPH_FROM_CHAR): Replace macro by ...
21176 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
21177
21178 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
21179 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
21180 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
21181 (GLYPH_INVALID_P): New macro.
21182 (spec_glyph_lookup_face): Update prototype.
21183
21184 * dispnew.c (line_draw_cost): Adapt to new glyph type.
21185 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
21186 new glyph code encoding.
21187 (spec_glyph_lookup_face): No return value; update passed glyph instead.
21188 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
21189
21190 * xdisp.c (get_next_display_element, next_element_from_display_vector):
21191 Adapt to new glyph type and new glyph code encoding.
21192
21193 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
21194
21195 * indent.c (current_column, current_column_1, Fmove_to_column)
21196 (compute_motion): Adapt to new glyph code encoding.
21197
21198 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
21199
21200 2008-02-27 Chong Yidong <cyd@stupidchicken.com>
21201
21202 * process.c (wait_reading_process_output): Check for window
21203 changes caused by timers.
21204 Suggested by Johan Bockgård.
21205
21206 2008-02-27 Glenn Morris <rgm@gnu.org>
21207
21208 * emacs.c (USAGE1): Add `--disable-font-backend'.
21209
21210 2008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
21211
21212 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
21213 is made to the buffer.
21214
21215 2008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
21216
21217 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
21218 (face_at_string_position):
21219 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
21220 (face_at_string_position):
21221 * xdisp.c (display_string, next_overlay_change):
21222 * buffer.h (overlays_at):
21223 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
21224 Update callers.
21225
21226 2008-02-26 Chong Yidong <cyd@stupidchicken.com>
21227
21228 * editfns.c (Fformat): Doc fix.
21229
21230 2008-02-26 Juanma Barranquero <lekktu@gmail.com>
21231
21232 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
21233 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
21234 (Ffont_otf_alternates, Fquery_font): Doc fixes.
21235
21236 2008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
21237
21238 * buffer.c (Fbuffer_swap_text): New function.
21239 (syms_of_buffer): Defsubr it.
21240
21241 2008-02-25 Chong Yidong <cyd@stupidchicken.com>
21242
21243 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
21244
21245 2008-02-25 Jason Rumney <jasonr@gnu.org>
21246
21247 * w32font.c (w32font_draw): Draw one character at a time when padding.
21248
21249 2008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
21250
21251 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
21252 Handle a nil arg. Use run_window_configuration_change_hook.
21253 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
21254 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
21255 Use run_window_configuration_change_hook.
21256
21257 2008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
21258
21259 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
21260 1-pixel width.
21261
21262 2008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
21263
21264 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
21265 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
21266 if the glyph in the font is zero pixel with.
21267
21268 * dispextern.h (struct glyph_string): New member padding_p.
21269
21270 * w32font.c (w32font_draw): Pay attention to s->padding_p.
21271
21272 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
21273
21274 * xfont.c (xfont_draw): Pay attention to s->padding_p.
21275
21276 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
21277
21278 * font.c: If the font driver doesn't have `shape' function, return Qnil.
21279
21280 2008-02-25 Jason Rumney <jasonr@gnu.org>
21281
21282 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
21283
21284 2008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
21285
21286 Allow fine-grained image-cache flushing.
21287 * dispextern.h (struct image): Add `dependencies' field.
21288 (clear_image_caches): Change arg to Lisp_Object.
21289 * image.c (make_image): Initialize `dependencies' field.
21290 (clear_image_cache): Change arg to allow fine-grained flushing.
21291 Perform the flush even if image-cache-eviction-delay is nil.
21292 (clear_image_caches): Change arg to Lisp_Object.
21293 (Fclear_image_cache): Expand meaning of the argument.
21294 (mark_image): Mark `dependencies' field.
21295 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
21296 (lface_hash): Use XHASH rather than XFASTINT.
21297 (face_at_buffer_position): Fix int -> EMACS_INT position.
21298 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
21299 (select_frame_for_redisplay): Remove code duplication.
21300 (redisplay_internal): Adapt arg to call to clear_image_caches.
21301
21302 2008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
21303
21304 * s/vms4-0.h:
21305 * s/vms4-2.h:
21306 * s/vms4-4.h:
21307 * s/vms5-5.h: Remove, unused.
21308
21309 * s/irix5-2.h:
21310 * s/irix6-0.h:
21311 * s/riscos5.h:
21312 * s/mach-bsd4-3.h:
21313 * m/mips4.h: Remove files for obsolete systems.
21314
21315 * Makefile.in:
21316 * filelock.c:
21317 * unexmips.c:
21318 * m/hp9000s300.h:
21319 * m/iris4d.h:
21320 * s/aix3-1.h:
21321 * s/hpux.h:
21322 * s/msdos.h:
21323 * s/usg5-0.h:
21324 * s/usg5-2-2.h:
21325 * s/usg5-2.h:
21326 * s/usg5-3.h: Remove references to obsolete variables.
21327
21328 * s/irix5-0.h: Remove, move all the contents ...
21329 * s/irix6-5.h: ... here. Simplify.
21330 * config.in: Regenerate.
21331
21332 2008-02-24 Jason Rumney <jasonr@gnu.org>
21333
21334 * w32term.c (x_draw_glyph_string_background): Clear the background
21335 manually when cleartype is in use.
21336 (x_draw_glyph_string_foreground): Draw text transparently when
21337 cleartype is in use.
21338
21339 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
21340 a font into it unless we have to.
21341
21342 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
21343
21344 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
21345 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
21346
21347 2008-02-18 Jason Rumney <jasonr@gnu.org>
21348
21349 * w32fns.c (Fw32_shell_execute): Encode parameters.
21350
21351 2008-02-09 Eli Zaretskii <eliz@gnu.org>
21352
21353 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
21354
21355 2008-02-05 Juanma Barranquero <lekktu@gmail.com>
21356
21357 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
21358
21359 2008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
21360
21361 * xterm.c (x_set_offset): Don't change the gravity if
21362 CHANGE_GRAVITY is -1.
21363
21364 2008-02-23 Chong Yidong <cyd@stupidchicken.com>
21365
21366 * fileio.c (auto_save_error_occurred): New var.
21367 (auto_save_error): Set it.
21368 (Fdo_auto_save): Don't overwrite the error message if an auto-save
21369 error occurred.
21370
21371 2008-02-23 Eli Zaretskii <eliz@gnu.org>
21372
21373 * w32.c (globals_of_w32): Add initializations for
21374 g_b_init_get_sid_sub_authority and
21375 g_b_init_get_sid_sub_authority_count.
21376
21377 2008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
21378
21379 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
21380 (font_parse_xlfd): Use them for sanity check.
21381 (Finternal_set_font_style_table): Make sure the table is bijective.
21382
21383 Consolidate the image_cache to the terminal struct.
21384 * termhooks.h (P_): Remove redundant def.
21385 (struct terminal): New field `image_cache'.
21386 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
21387 of FRAME_X_IMAGE_CACHE.
21388 * xterm.h (struct x_display_info): Remove image_cache field.
21389 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
21390 * w32term.h (struct w32_display_info): Remove image_cache field.
21391 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
21392 * macterm.h (struct mac_display_info): Remove image_cache field.
21393 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
21394 * xterm.c (x_term_init):
21395 * w32term.c (w32_term_init):
21396 * macterm.c (mac_term_init): Set the image_cache in the terminal.
21397 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
21398 Remove declarations.
21399 (clear_image_caches, mark_image_cache): New declarations.
21400 * xfaces.c (clear_face_cache):
21401 * xdisp.c (redisplay_internal): Use clear_image_caches.
21402 * image.c (clear_image_cache): Don't check that a frame is on
21403 a window-system before checking if it shares the same cache.
21404 (clear_image_caches): New function.
21405 (Fclear_image_cache): Use it.
21406 (mark_image): Move from allo.c.
21407 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
21408 * alloc.c (mark_image, mark_image_cache): Move to image.c.
21409 (mark_object): Don't call mark_image_cache for frames.
21410 (mark_terminals): Call mark_image_cache.
21411
21412 * lisp.h (Fdelete_terminal): Declare.
21413
21414 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
21415 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
21416 wrong_type_argument.
21417
21418 2008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
21419
21420 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
21421 malayalam.el, and tamil.el. Add sinhala.el.
21422
21423 2008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
21424
21425 * xterm.c (x_connection_closed): Consolidate identical tests.
21426 (x_delete_terminal): Don't crash if called via x_connection_closed.
21427
21428 2008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
21429
21430 * xdisp.c (decode_mode_spec): New arg string.
21431 (display_mode_element): Adjust for the above change.
21432
21433 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
21434
21435 * callint.c (Fcall_interactively): Use AREF.
21436
21437 2008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
21438
21439 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
21440
21441 2008-02-18 Jan Djärv <jan.h.d@swipnet.se>
21442
21443 * xfns.c (Fx_show_tip): Set string to " " if empty.
21444
21445 2008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
21446
21447 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
21448 with Qt.
21449
21450 2008-02-17 Kenichi Handa <handa@m17n.org>
21451
21452 * ftfont.c (ftfont_shape): Return Lispy number.
21453
21454 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
21455 for GCs.
21456 (Finternal_set_font_selection_order): Call font_update_sort_order
21457 only when enable_font_backend is set.
21458 (realize_x_face): Set face->font_info to that of default face only
21459 when enable_font_backend is set.
21460
21461 * xdisp.c (handle_composition_prop): Set it->c to the fist
21462 character of the composed region.
21463 (fill_composite_glyph_string): Set base_face->font_info to
21464 s->font_info. Get a face for ascii from base_face->ascii_face.
21465 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
21466 with a face already decided.
21467 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
21468 non-negative.
21469 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
21470 call font_prepare_composition unconditionally.
21471
21472 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
21473
21474 * xterm.h (struct x_display_info): New member font.
21475
21476 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
21477 (x_set_mouse_face_gc, x_new_font): Likewise.
21478 (x_term_init): Setup display_info->font.
21479 (x_delete_terminal): Free display_info->font.
21480
21481 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
21482
21483 * ftxfont.c (ftxfont_default_fid): Delete it.
21484 (ftxfont_open): Set xfont->fid to 0.
21485 (ftxfont_end_for_frame): Clear data specific to the frame and the
21486 font-driver.
21487
21488 * xftfont.c (xftfont_default_fid): Delete it.
21489 (xftfont_open): Set xfont->fid to 0.
21490
21491 * fontset.c (FONTSET_OBJLIST): New macro.
21492 (fontset_find_font): Update font-object list of the fontset.
21493 (free_realized_fontset): New function.
21494 (free_face_fontset): Call free_realized_fontset.
21495 (Ffont_info): Call font_close_object only when enable_font_backend
21496 is set.
21497
21498 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
21499 [HAVE_NTGUI]: Include w32term.h.
21500 [MAC_OS]: Include macterm.ch.
21501 (font_otf_ValueRecord): Use make_number.
21502 (font_finish_cache): Fix handling of reference count.
21503 (font_clear_cache): Update num_fonts.
21504 (font_open_entity): Update smallest_char_width and
21505 smallest_font_height of the frame.
21506 (font_close_object): Update num_fonts.
21507 (Fclear_font_cache): Fix finding the target cache data.
21508
21509 2008-02-16 Glenn Morris <rgm@gnu.org>
21510
21511 * fontset.c (Finternal_char_font): Fix compilation warning.
21512
21513 2008-02-16 Eli Zaretskii <eliz@gnu.org>
21514
21515 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
21516 instead of char arrays. Enlarge the size of array passed to
21517 get_token_information.
21518
21519 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
21520 warnings.
21521
21522 2008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
21523
21524 * .gdbinit: Don't set `args', it breaks gdb --args.
21525
21526 2008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
21527
21528 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
21529 within a narrowed buffer.
21530
21531 2008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
21532
21533 * coding.c (decode_coding_object, encode_coding_object):
21534 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
21535
21536 2008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
21537
21538 * coding.c (coding_set_destination): Use BEG_BYTE rather than
21539 hardcoding 1.
21540 (detect_coding_system):
21541 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
21542 (string_char_to_byte, string_byte_to_char, insert_from_gap):
21543 * insdel.c (insert_from_gap):
21544 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
21545 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
21546 (string_to_multibyte):
21547 * character.c (chars_in_text, multibyte_chars_in_text):
21548 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
21549
21550 * character.h (FETCH_STRING_CHAR_ADVANCE)
21551 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
21552 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
21553 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
21554
21555 * casefiddle.c (casify_region): Only call after-change and composition
21556 functions on the part of the region that was changed.
21557
21558 * keyboard.c (read_avail_input):
21559 * frame.c (Fdelete_frame): Call Fdelete_terminal.
21560
21561 2008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
21562
21563 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
21564 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
21565
21566 2008-02-11 Juanma Barranquero <lekktu@gmail.com>
21567
21568 * w32menu.c (push_submenu_start, push_submenu_end)
21569 (push_left_right_boundary, push_menu_pane, push_menu_item):
21570 * keyboard.c (read_key_sequence): Don't pass args with side effects
21571 to AREF, it fails when compiling with -DENABLE_CHECKING.
21572
21573 2008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
21574
21575 * Makefile.in (${lispsource}international/charprop.el):
21576 Delete this target.
21577
21578 * search.c (boyer_moore): Fix incorrect synching of the trunk and
21579 emacs-unicode-2.
21580
21581 2008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
21582
21583 * terminal.c (Fdelete_terminal): Clean up the `force' path.
21584
21585 2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
21586
21587 * frame.c (Qnoelisp): New symbol.
21588 (syms_of_frame): Initialize it.
21589 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
21590 harmless Elisp code, from a strong `force' from x_connection_closed.
21591 * frame.h (Qnoelisp): Declare.
21592 * xterm.c (x_connection_closed): Pass `noelisp'.
21593
21594 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
21595 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
21596 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
21597 rather than `int' for the type of `type'.
21598
21599 2008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
21600
21601 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
21602
21603 * Makefile.in (GNUC): Remove support for gcc-1.x.
21604
21605 2008-02-10 Richard Stallman <rms@gnu.org>
21606
21607 * lisp.h (ASET): Use AREF, not ASLOT.
21608
21609 2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
21610
21611 * lisp.h (ASET): Check bounds.
21612
21613 2008-02-10 Glenn Morris <rgm@gnu.org>
21614
21615 * buffer.c (mode-name): Doc fix.
21616
21617 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
21618
21619 * Makefile.in:
21620 * emacs.c:
21621 * gmalloc.c:
21622 * keyboard.c:
21623 * lisp.h:
21624 * m/ibm370aix.h:
21625 * process.c:
21626 * regex.c:
21627 * s/hpux.h:
21628 * sysdep.c:
21629 * sysselect.h:
21630 * systty.h:
21631 * unexec.c:
21632 * w32term.c:
21633 * xsmfns.c:
21634 * xterm.c: Remove code that deals with obsolete variables.
21635
21636 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
21637
21638 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
21639 nothing else needs it anymore.
21640
21641 2008-02-09 Eli Zaretskii <eliz@gnu.org>
21642
21643 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
21644 instead of unibyte_char_to_multibyte.
21645
21646 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
21647
21648 * s/gnu-linux.h: Remove commented out code.
21649
21650 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
21651
21652 * Makefile.in: Update what RMS says about using autoconf.
21653 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
21654 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
21655 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
21656 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
21657
21658 2008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
21659
21660 * keymap.c (Fkey_description): Move side effect outside of macro call.
21661
21662 * xfaces.c (Finternal_make_lisp_face):
21663 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
21664
21665 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
21666 (syms_of_fontset): Use ASET.
21667
21668 * fns.c (concat): Move side effect outside of macro call.
21669 (hash_clear): Use ASET.
21670
21671 2008-02-08 Richard Stallman <rms@gnu.org>
21672
21673 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
21674 If FORCE, and frame has a surrogate minibuffer for another frame,
21675 delete the other frame first.
21676
21677 2008-02-07 Timo Savola <timo.savola@iki.fi>
21678
21679 * xterm.c (x_detect_focus_change): Handle embed client message.
21680 (handle_one_xevent): Ditto.
21681 (handle_one_xevent): If embedded and we get a button press/release,
21682 request focus.
21683 (xembed_set_info, xembed_send_message): New functions.
21684 (x_make_frame_visible): Call xembed_set_info if embedded.
21685 (x_make_frame_invisible): Call xembed_set_info if embedded.
21686 (x_term_init): Initialize Xatom_XEMBED.
21687 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
21688 (x_iconify_frame): Ditto.
21689
21690 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
21691 (enum xembed_info, enum xembed_message, enum xembed_focus)
21692 (enum xembed_modifier, enum xembed_accelerator): New.
21693 (xembed_set_info, xembed_send_message): Declare.
21694 (FRAME_X_EMBEDDED_P): New.
21695
21696 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
21697 gtk_plug_new.
21698
21699 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
21700 window ID of a frame.
21701 (x_window): Reparent frame if embedded.
21702 (Fx_create_frame): Don't set border width if embedded.
21703
21704 * emacs.c (USAGE3): Add --parent-id.
21705 (standard_args): Ditto.
21706
21707 2008-02-07 Jan Djärv <jan.h.d@swipnet.se>
21708
21709 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
21710
21711 2008-02-07 Jim Meyering <meyering@redhat.com>
21712
21713 Use "do...while (0)", not "if (1)...else" in macro definitions.
21714 The latter provokes a warning from gcc about the empty else, when
21715 followed by ";". Also, without that trailing semicolon, it would
21716 silently swallow up any following statement.
21717 * syntax.h (SETUP_SYNTAX_TABLE)
21718 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
21719 * buffer.h (DECODE_POSITION): Likewise.
21720 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
21721 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
21722 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
21723 (FETCH_CHAR_ADVANCE): Likewise.
21724 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
21725
21726 2008-02-07 Jim Meyering <meyering@redhat.com>
21727
21728 * lread.c [lint]: Don't include <sys/inode.h>.
21729
21730 2008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
21731
21732 * xselect.c (x_handle_dnd_message):
21733 * xmenu.c (digest_single_submenu, xmenu_show):
21734 * xdisp.c (with_echo_area_buffer_unwind_data)
21735 (format_mode_line_unwind_data, unwind_format_mode_line)
21736 (display_menu_bar):
21737 * eval.c (Ffetch_bytecode):
21738 * doc.c (store_function_docstring):
21739 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
21740 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
21741 * buffer.c (add_overlay_mod_hooklist): Use ASET.
21742
21743 2008-02-07 Kenichi Handa <handa@m17n.org>
21744
21745 * ftxfont.c (ftxfont_open): Don't set
21746 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
21747
21748 * ftfont.c (ftfont_open): Fix previous change.
21749
21750 2008-02-06 Jason Rumney <jasonr@gnu.org>
21751
21752 * w32font.c (w32font_text_extents): Fill in lbearing metric.
21753 Use cached metrics for ASCII characters.
21754 (w32font_open_internal): Don't set font's owning_frame.
21755 Cache metrics for ASCII characters.
21756
21757 * w32font.h (struct w32font_info): Add ascii_metrics.
21758 Remove owning_frame.
21759
21760 2008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
21761
21762 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
21763 to negative value.
21764
21765 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
21766
21767 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
21768
21769 * charset.c (syms_of_charset): Set QCtest and Qeq.
21770
21771 2008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
21772
21773 * process.c (Fstart_process):
21774 * callproc.c (Fcall_process): Handle the case where
21775 Funhandled_file_name_directory returns nil.
21776
21777 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
21778 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
21779 * font.c (check_gstring): Use them and AREF to access the vector before
21780 we know it's really a gstring.
21781 (Ffont_shape_text): Fix typo.
21782 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
21783
21784 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
21785 Declare.
21786
21787 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
21788
21789 2008-02-05 Jason Rumney <jasonr@gnu.org>
21790
21791 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
21792 Set smallest_font_height and smallest_char_width in display info.
21793
21794 2008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
21795
21796 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
21797
21798 2008-02-05 Miles Bader <miles@gnu.org>
21799
21800 * xfaces.c (get_lface_attributes, merge_named_face)
21801 (lookup_named_face, lookup_derived_face, realize_named_face):
21802 Revert 2008-02-01 change by cyd@stupidchicken.com.
21803
21804 2008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
21805
21806 * fontset.c (Ffontset_info): Handle the case of inhibitting the
21807 fallback fonts.
21808 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
21809
21810 2008-02-04 Jason Rumney <jasonr@gnu.org>
21811
21812 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
21813 set full_name.
21814 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
21815
21816 2008-02-03 Jason Rumney <jasonr@gnu.org>
21817
21818 * makefile.w32-in (OBJ1): Include font.o here.
21819 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
21820
21821 2008-02-02 Jason Rumney <jasonr@gnu.org>
21822
21823 * makefile.w32-in (temacs): Bump EMHEAP to 21.
21824
21825 2008-02-01 Jason Rumney <jasonr@gnu.org>
21826
21827 * s/cygwin.h: Define VIRT_ADDR_VARIES.
21828
21829 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
21830
21831 2008-02-01 Andreas Schwab <schwab@suse.de>
21832
21833 * Makefile.in (shortlisp, lisp): Update for rename of
21834 ../lisp/language/myanmar.el.
21835
21836 2008-02-01 Chong Yidong <cyd@stupidchicken.com>
21837
21838 * xfaces.c (get_lface_attributes): Delete function.
21839 (merge_named_face, lookup_named_face, lookup_derived_face)
21840 (realize_named_face): Call lface_from_face_name directly, and use
21841 the fact that merge_face_vectors does not alter its FROM argument.
21842
21843 2008-02-01 Jason Rumney <jasonr@gnu.org>
21844
21845 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
21846 input in the default locale. Handle non-Unicode multibyte input.
21847
21848 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21849
21850 * fontset.c (reorder_font_vector): Exclude nil elements from the
21851 font group. Don't try multiple fonts.
21852 (fontset_font): Adjust for the above change.
21853 (Finternal_char_font): Return nil if the found font doesn't
21854 contain the character ch.
21855
21856 * Makefile.in (lisp, shortlisp): Add cham.el.
21857
21858 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21859
21860 * font.h (FONTP): Make it return 1 also for a font-object.
21861
21862 * .gdbinit (xfontset): New function.
21863
21864 * font.c (font_find_for_lface): Check if the character C is
21865 supported or not only for the first font.
21866
21867 * fontset.c (reorder_font_vector): Fix typo.
21868 (fontset_find_font): Don't add a font-spec specifying a script.
21869 Use 0 (not Qt) for the indication of empty font-group. Change the
21870 format of RFONT-DEF. Return Qt if no font in the font-group
21871 support the character.
21872 (fontset_font): Adjust for the above change. If no font was
21873 found the character, remember that.
21874 (face_for_char): Adjust for the change of RFONT-DEF.
21875 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
21876 no font for the target.
21877 (Finternal_char_font): Adjust for the change of RFONT-DEF.
21878
21879 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21880
21881 * font.c (font_load_for_face): Handle the case that the font in
21882 face->lface is a string.
21883
21884 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21885
21886 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
21887
21888 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21889
21890 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
21891 Fix previous change. If the frame is not on a window system,
21892 signal an error.
21893
21894 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21895
21896 * coding.c (decode_coding_object, encode_coding_object):
21897 Adjust marker positions after conversion.
21898
21899 * lisp.h (struct Lisp_Marker): New member need_adjustment.
21900
21901 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21902
21903 * font.c (font_find_for_lface): Fix the handling of the return
21904 value of font_has_char.
21905 (Ffont_shape_text): Fix previous change.
21906
21907 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
21908 (fontset_ref_and_range): Delete it.
21909 (fontset_find_font): Call char_table_ref_and_range instead of
21910 FONTSET_REF_AND_RANGE.
21911 (make_fontset): Don't setup font groups of Latin here.
21912 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
21913 (new_fontset_from_font): Make the specified font the default for
21914 all Latin characters.
21915
21916 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21917
21918 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
21919 is on a window system before accessing the fontset of the frame.
21920
21921 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21922
21923 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
21924
21925 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
21926 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
21927
21928 * font.c (Ffont_shape_text): If the font driver doesn't have a
21929 shaper function, make zero-width glyphs to have at least one-pixel
21930 width. Fix setting of `to' field of glyphs.
21931
21932 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21933
21934 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
21935 glyphs.
21936
21937 * font.h (struct font_driver): Improve docstring of member `shape'.
21938
21939 2008-02-01 Kenichi Handa <handa@m17n.org>
21940
21941 * composite.c (syms_of_composite): Fix docstring of
21942 auto-composition-function.
21943
21944 * font.h (LGLYPH_SIZE): New macro.
21945
21946 * font.c (Ffont_fill_gstring): Stop filling when a character not
21947 supported by the font is found.
21948 (Ffont_shape_text): When a shape callback function returns nil,
21949 try at most two more times with larger gstring.
21950 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
21951
21952 * xdisp.c (handle_auto_composed_prop): Change the argument to
21953 auto-composition-function.
21954
21955 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
21956 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
21957 Lispy glyph and store it in the lgstring.
21958
21959 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
21960
21961 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
21962
21963 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21964
21965 * font.c (Ffont_shape_text): Avoid unnecessary composition.
21966
21967 * fontset.c (Vfont_encoding_charset_alist): New variable.
21968 (syms_of_fontset): DEFVAR it.
21969 (reorder_font_vector, fontset_find_font): Optimize for the case of
21970 no need of reordering.
21971 (face_for_char): Map the charset property by
21972 Vfont_encoding_charset_alist.
21973
21974 2008-02-01 Jason Rumney <jasonr@gnu.org>
21975
21976 * w32font.c (logfonts_match): Don't check adstyle here.
21977 (font_matches_spec): Check here against physical font instead.
21978 (add_font_entity_to_list): Avoid some substitutions.
21979
21980 * font.c (font_parse_fcname): Default weight and slant to normal.
21981 (font_score): Prefer normal fonts if weight or slant unspecified.
21982 (font_score) [WINDOWSNT]: Scale weight difference down to closer
21983 match freetype scores.
21984
21985 2008-02-01 Jason Rumney <jasonr@gnu.org>
21986
21987 * w32font.c (w32font_text_extents): Don't use the frame stored in the
21988 font, as it may have been deleted.
21989 (w32_enumfont_pattern_entity): Map generic family to adstyle using
21990 most common hyphenless variation.
21991 (logfonts_match): Check generic family.
21992 (font_matches_spec): Don't check generic family here.
21993 (fill_in_logfont): Set generic family based on adstyle.
21994
21995 * w32font.h (w32font_get_cache): Update declaration.
21996
21997 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21998
21999 * ftfont.c (ftfont_get_cache): Adjust the argument type.
22000
22001 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
22002 If none of the new drivers are available, call font_update_drivers
22003 with the old drivers.
22004
22005 * w32font.c (w32font_get_cache): Adjust the argument type.
22006
22007 * xfont.c (xfont_get_cache): Adjust the argument type.
22008
22009 * font.h (struct font_driver): Change argument type of get_cache.
22010
22011 * xftfont.c (xftfont_start_for_frame): Delete prototype.
22012
22013 * font.c (Ffont_get): Fix arguments to Fassoc.
22014 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
22015 (font_clear_cache): New function.
22016 (font_list_entities, font_matching_entity): Use font_get_cache.
22017 (font_update_drivers): Call font_clear_cache when finishing a driver.
22018
22019 * fontset.c (fontset_find_font): Fix previous change.
22020
22021 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22022
22023 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
22024 dpyinfo->font_table.
22025 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
22026 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
22027
22028 * font.c (font_at): Handle the case that the arg C is negative.
22029 Handle the unibyte case.
22030 (Ffont_at): Call font_at with the arg C -1.
22031
22032 * xdisp.c (handle_auto_composed_prop): Don't get a character at
22033 the position here, and call font_at with the arg C -1.
22034 Don't check the range of the existing composition at the point.
22035
22036 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22037
22038 * fontset.c (fontset_add): New args charset_id and family.
22039 Change caller.
22040 (load_font_get_repertory, fontset_find_font): Assume that
22041 font_spec is always a font-spec object.
22042 (Fset_fontset_font): Always store a font-spec object in a fontset.
22043
22044 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
22045 instead of get_property_and_range.
22046
22047 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22048
22049 * xftfont.c (struct xftfont_info): Delete the member ft_face.
22050 (xftfont_open): Don't keep locking face.
22051 (xftfont_close): Don't unlock face.
22052 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
22053
22054 * fontset.c (fontset_find_font): Don't prefer a font of
22055 supplementary charset.
22056
22057 2008-02-01 Kenichi Handa <handa@m17n.org>
22058
22059 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
22060 script, langsys_tag to langsys, new member script.
22061 (OTF_TAG_STR): Terminate by '\0'.
22062 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
22063 listing to the script specified in that property. Fix arg to
22064 OTF_check_features.
22065
22066 2008-02-01 Jason Rumney <jasonr@gnu.org>
22067
22068 * w32font.h: New file.
22069
22070 * w32font.c: Include it.
22071 (struct w32font_info): Add owning_frame field. Move to w32font.h.
22072 (w32font_open): Set owning_frame.
22073 (w32font_text_extents): Use owning_frame.
22074 (struct font_callback_data): Add opentype_only field.
22075 (add_font_entity_to_list): Use it to filter fonts.
22076 Don't check against full name.
22077 (w32font_list_internal): New function.
22078 (w32font_list): Use it.
22079 (w32font_match_internal): New function.
22080 (w32font_match): Use it.
22081 (w32font_open_internal): New function.
22082 (w32font_open): Use it.
22083 (w32font_get_cache, w32font_close, w32font_has_char)
22084 (w32font_encode_char, w32font_text_extents, w32font_draw):
22085 Make non-static.
22086
22087 * makefile.w32-in (w32font.o): Depend on w32font.h.
22088
22089 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22090
22091 * charset.c (Fdefine_charset_internal): Record a supplementary
22092 charset at the tail of Vcharset_order_list.
22093
22094 * font.c (Ffont_shape_text): Fix the return value.
22095
22096 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
22097
22098 * xdisp.c (handle_auto_composed_prop): Fix previous change.
22099
22100 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22101
22102 * ftfont.c (struct OpenTypeSpec): New struct.
22103 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
22104 (ftfont_get_open_type_spec): New function.
22105 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
22106
22107 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
22108
22109 2008-02-01 Jason Rumney <jasonr@gnu.org>
22110
22111 * w32font.c (add_font_entity_to_list): Compare only the beginning
22112 of full name.
22113
22114 2008-02-01 Kenichi Handa <handa@m17n.org>
22115
22116 * xdisp.c (handle_auto_composed_prop): Simplify the code.
22117 Never return HANDLED_RECOMPUTE_PROPS.
22118
22119 2008-02-01 Kenichi Handa <handa@m17n.org>
22120
22121 * font.c (font_gstring_produce): Delete it.
22122
22123 * composite.h (COMPOSITION_METHOD):
22124 Handle COMPOSITION_WITH_GLYPH_STRING.
22125
22126 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22127
22128 * xfont.c (Qx): Delete.
22129 (syms_of_xfont): Don't initialize Qx.
22130
22131 * composite.h (enum composition_method):
22132 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
22133
22134 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22135
22136 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
22137 (choose_face_font): Accept new form of font-spec.
22138
22139 * frame.h (font_driver_list): Declare it unconditionally.
22140 (struct frame): Define members font_driver_list and font_data_list
22141 unconditionally.
22142
22143 * fontset.c: Include "font.h" unconditionally.
22144 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
22145 (Fset_fontset_font): Accept a font-spec object.
22146
22147 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
22148 PIXEL_SIZE part a wild card.
22149
22150 * dispextern.h (struct glyph_string): Define members clip and
22151 num_clips unconditionally.
22152 (struct face): Define members font_info and extra unconditionally.
22153
22154 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
22155 ftfont_info only when HAVE_LIBOTF is defined.
22156
22157 2008-02-01 Andreas Schwab <schwab@suse.de>
22158
22159 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
22160 and end.
22161
22162 2008-02-01 Jason Rumney <jasonr@gnu.org>
22163
22164 * w32font.c (w32font_driver): Add new fields.
22165
22166 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22167
22168 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
22169 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
22170 (LIBES): Add @M17N_FLT_CFLAGS@.
22171
22172 * composite.c (compose_text): Don't treat the new style
22173 composition specially.
22174
22175 * emacs.c (main): Call syms_of_font unconditionally.
22176
22177 * font.h (FONT_ENTITY_NOT_LOADABLE)
22178 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
22179 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
22180 (struct font_driver): New member shape.
22181 (font_registry_charsets): Extern it.
22182 (font_find_for_lface, font_prepare_composition): Adjust prototype.
22183 (font_otf_capability, font_drive_otf): Delete their externs.
22184
22185 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
22186 (font_charset_alist, font_registry_charsets): Move from xfont.c
22187 and rename.
22188 (font_prop_validate_otf): New function.
22189 (font_property_table): Register it for QCotf.
22190 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
22191 (font_drive_otf): Delete.
22192 (font_prepare_composition): New arg F. Adjust for the change of
22193 lispy gstring.
22194 (font_find_for_lface): New arg C.
22195 (font_load_for_face): Adjust for the change of font_find_for_lface.
22196 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
22197 lispy gstring.
22198 (Ffont_shape_text): New function.
22199 (Fopen_font): If the font size is not given, use 12-pixel.
22200 (Ffont_at): New arg STRING.
22201 (syms_of_font): Initialize font_charset_alist.
22202 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
22203 conditionally.
22204
22205 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
22206 fonts of the same font-spec. Change the format of RFONT-DEF.
22207 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
22208 Adjust for the change of RFONT-DEF.
22209 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
22210
22211 * ftfont.h: New file.
22212
22213 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
22214 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
22215 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
22216 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
22217 font_otf_capability and font_drive_otf, set ftfont_shape.
22218 (ftfont_list): Adjust for the change of :otf property value.
22219 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
22220 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
22221 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
22222 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
22223 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
22224 (otf_gstring, gstring, m17n_flt_initialized): New variables.
22225
22226 * w32term.c (x_draw_composite_glyph_string_foreground):
22227 Adjust for the change of lispy gstring.
22228
22229 * xdisp.c (handle_composition_prop): Adjust for the change of
22230 lispy gstring. Call a function for auto-composition with the
22231 third arg it->window.
22232 (fill_composite_glyph_string): Adjust for the change of lispy string.
22233 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
22234
22235 * xfaces.c (set_font_frame_param): Adjust for the change of
22236 font_find_for_lface.
22237
22238 * xfont.c (x_font_charset_alist): Move to font.c and rename.
22239 (xfont_registry_charsets): Likewise. Change caller.
22240 (syms_of_xfont): Don't handle x_font_charset_alist.
22241
22242 * xftfont.c: Include "ftfont.h".
22243 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
22244 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
22245 (xftfont_close) [HAVE_LIBOTF]: Close otf.
22246 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
22247 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
22248 Set xftfont_driver.shape to xftfont_shape.
22249
22250 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
22251 the change of lispy gstring.
22252
22253 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22254
22255 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
22256
22257 2008-02-01 Jason Rumney <jasonr@gnu.org>
22258
22259 * w32font.c (w32font_draw): Fill background manually.
22260
22261 2008-02-01 Jason Rumney <jasonr@gnu.org>
22262
22263 * font.c (Qfontp): Remove unused symbol.
22264 (QCantialias): New symbol.
22265 (syms_of_font): Define it.
22266 (font_property_table): Set a validator for QCantialias.
22267
22268 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
22269 Define if not already.
22270 (QCfamily): Share with xfaces.c.
22271 (Qstandard, Qsubpixel, Qnatural): New symbols.
22272 (syms_of_w32font): Define them. Don't define QCfamily here.
22273 (w32_antialias_type, lispy_antialias_type): New functions.
22274 (w32_enumfont_pattern_entity): New arg requested_font.
22275 Set antialias parameter if non-default was requested.
22276 (fill_in_logfont): Fill in lfQuality if :antialias specified.
22277
22278 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22279
22280 * lread.c (read1): Undo the previous change.
22281
22282 2008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
22283
22284 * frame.c (Fdelete_frame): Call font_update_drivers only when
22285 USE_FONT_BACKEND is defined.
22286
22287 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22288
22289 * font.h (struct font_bitmap): New member bits_per_pixel.
22290 (struct font_driver): New members start_for_frame and end_for_frame.
22291 (struct font_data_list): New struct.
22292 (font_put_frame_data, font_get_frame_data): Extern them.
22293
22294 * frame.h (struct frame): New member font_data_list.
22295
22296 * font.c (font_update_drivers): Call driver->start_for_frame and
22297 driver->end_for_frame at proper timings.
22298 (font_put_frame_data, font_get_frame_data): New functions.
22299 (Ffont_spec): Add usage in the docstring.
22300
22301 * frame.c (make_frame): Initialize f->font_data_list to NULL.
22302 (Fdelete_frame): Call font_update_drivers.
22303
22304 * xftfont.c (struct xftface_info): Delete the member xft_draw.
22305 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
22306 (xftfont_get_xft_draw): New function.
22307 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
22308 (xftfont_end_for_frame): New function.
22309 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
22310
22311 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
22312 Change argument. Cache GCs in the per-frame data.
22313 (struct ftxfont_frame_data): New struct.
22314 (ftxfont_draw_bitmap): New arg gc_fore and flush.
22315 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
22316 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
22317 (ftxfont_end_for_frame): New function.
22318 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
22319
22320 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
22321
22322 2008-02-01 Kenichi Handa <handa@m17n.org>
22323
22324 * xselect.c (Vselection_coding_system)
22325 (Vnext_selection_coding_system): Delete them.
22326 (syms_of_xselect): Don't declare selection-coding-system and
22327 next-selection-coding-system. They are declared in select.el.
22328
22329 2008-02-01 Jason Rumney <jasonr@gnu.org>
22330
22331 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
22332
22333 * w32fns.c: Include imm.h.
22334 (get_composition_string_fn, get_ime_context_fn): New optional
22335 system functions.
22336 (globals_of_w32fns): Load them from imm32.dll.
22337 (ignore_ime_char): New flag.
22338 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
22339 WM_IME_ENDCOMPOSITION messages.
22340
22341 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
22342 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
22343
22344 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22345
22346 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
22347 (READCHAR_REPORT_MULTIBYTE): New macro.
22348 (readchar): New 2nd arg MULTIBYTE.
22349 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
22350 Make symbol's name multibyte according to the multibyteness of the
22351 source.
22352
22353 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22354
22355 * xfaces.c (face_for_overlay_string): Call lookup_face with
22356 correct arguments (fix of synching with the trunk).
22357
22358 2008-02-01 Kenichi Handa <handa@m17n.org>
22359
22360 * font.c (font_prop_validate_symbol, font_prop_validate_style)
22361 (font_prop_validate_non_neg, font_prop_validate_spacing):
22362 Delete argument prop_index.
22363 (font_property_table): Change arguments to validater. Change Callers.
22364 (font_lispy_object): Delete.
22365 (font_at): Use font_find_object instead fo font_lispy_object.
22366
22367 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22368
22369 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
22370 and file names.
22371
22372 2008-02-01 Jason Rumney <jasonr@gnu.org>
22373
22374 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
22375 (font_matches_spec): Remove debug output.
22376 (add_font_entity_to_list): Avoid using substituted fonts.
22377
22378 2008-02-01 Jason Rumney <jasonr@gnu.org>
22379
22380 * doc.c (Fsnarf_documentation):
22381 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
22382
22383 2008-02-01 Miles Bader <miles@gnu.org>
22384
22385 * dispextern.h (struct glyph_row): Only define "clip" field if
22386 HAVE_WINDOW_SYSTEM is defined.
22387
22388 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
22389
22390 Fix up multi-tty merge.
22391
22392 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
22393 and indentation.
22394
22395 * xfaces.c (free_realized_face, clear_face_gcs):
22396 Include font_done_for_face in the input_blocked section, just in case.
22397
22398 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
22399 (get_char_face_and_encoding): Undo last change and remove the *other*
22400 duplicate definition (i.e. keep the one that's better scoped and that
22401 includes code for the font-backend).
22402
22403 * terminal.c (create_terminal): Default keyboard_coding to
22404 `no-conversion' and terminal_coding to `undecided'.
22405
22406 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
22407
22408 * fontset.c (free_realized_fontsets): Check that the table entry does
22409 contain a fontset before trying to compare it to `base'.
22410
22411 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
22412 syms_of_charset, and syms_of_coding earlier because init_window_once
22413 now needs Vcoding_system_hash_table to be setup.
22414
22415 * coding.h (default_buffer_file_coding): Remove.
22416
22417 * coding.c (default_buffer_file_coding): Remove.
22418 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
22419 than ->symbol, and use the terminal-local coding system.
22420 (syms_of_coding): Don't setup the coding-systems that are not
22421 terminal-local.
22422 (Fdefine_coding_system_internal): Use XCAR/XCDR.
22423
22424 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
22425 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
22426
22427 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
22428 in chartab.c and were re-added here by mistake.
22429 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
22430
22431 * doc.c (Fsnarf_documentation):
22432 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
22433 src to etc.
22434
22435 * ChangeLog.10: Add mistakenly removed entry.
22436
22437 2008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
22438
22439 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
22440
22441 2008-02-01 Miles Bader <miles@gnu.org>
22442
22443 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
22444 Add extra args to FACE_FOR_CHAR.
22445
22446 2008-02-01 Kenichi Handa <handa@m17n.org>
22447
22448 * keymap.c (where_is_internal_1): If key is a cons, store the copy
22449 in sequence.
22450
22451 * chartab.c (map_sub_char_table, map_char_table): If the range
22452 contains just one character, call the function with that character
22453 even if the depth is not 3.
22454
22455 2008-02-01 Jason Rumney <jasonr@gnu.org>
22456
22457 * w32font.c (w32font_text_extents): Calculate metrics for the
22458 whole string.
22459
22460 2008-02-01 Jason Rumney <jasonr@gnu.org>
22461
22462 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
22463
22464 2008-02-01 Jason Rumney <jasonr@gnu.org>
22465
22466 * w32term.c (x_set_glyph_string_clipping):
22467 Use get_glyph_string_clip_rects.
22468 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
22469 Adjust for the change of struct glyph_string.
22470
22471 * w32font.c (w32font_draw): Do clipping here.
22472
22473 2008-02-01 Kenichi Handa <handa@m17n.org>
22474
22475 * xftfont.c (xftfont_draw): Adjust for the change of struct
22476 glyph_string.
22477
22478 * xterm.c (x_set_glyph_string_clipping):
22479 Use get_glyph_string_clip_rects.
22480 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
22481 Adjust for the change of struct glyph_string.
22482
22483 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
22484 the resulting clip(s}.
22485 (expose_overlaps): Add arg r. Change callers. Set it to
22486 row->clip temporarily.
22487 (expose_window): Redraw rows overlapping the exposed area.
22488
22489 * dispextern.h (struct glyph_row): New member clip.
22490 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
22491 clip_height, new member clip, and num_clips.
22492
22493 2008-02-01 Kenichi Handa <handa@m17n.org>
22494
22495 * data.c (Fchar_or_string_p): Fix docstring.
22496
22497 2008-02-01 Kenichi Handa <handa@m17n.org>
22498
22499 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
22500 create a temporary XftDraw object.
22501
22502 2008-02-01 Kenichi Handa <handa@m17n.org>
22503
22504 * font.c (Ffontp): Fix docstring.
22505
22506 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
22507 strong evidence of ISO-2022.
22508
22509 2008-02-01 Kenichi Handa <handa@m17n.org>
22510
22511 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
22512 SYNTAX_ENTRY_FOLLOW_PARENT.
22513
22514 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
22515
22516 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
22517 its type.
22518 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
22519 Update to the new type of weak_hash_tables and next_weak.
22520
22521 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
22522 a plain C pointer to Lisp_Hash_Table.
22523
22524 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
22525 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
22526 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
22527 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
22528 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
22529 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
22530 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
22531 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
22532 (GC_EQ): Remove since they've been identical to their non-GC_
22533 alter-egos ever since the markbit was eradicated.
22534
22535 * alloc.c:
22536 * buffer.c:
22537 * buffer.h:
22538 * data.c:
22539 * fileio.c:
22540 * filelock.c:
22541 * fns.c:
22542 * frame.h:
22543 * lisp.h:
22544 * macterm.c:
22545 * print.c:
22546 * process.c:
22547 * w32fns.c:
22548 * w32menu.c:
22549 * w32term.c:
22550 * xfns.c:
22551 * xmenu.c:
22552 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
22553
22554 2008-02-01 Kenichi Handa <handa@m17n.org>
22555
22556 * chartab.c (map_sub_char_table): Make it work for the top-level
22557 char-table. Fix handling of parent char-table.
22558 (map_char_table): Adjust for the above change.
22559
22560 2008-02-01 Jason Rumney <jasonr@gnu.org>
22561
22562 * w32font.c (Qgdi): Rename from Qw32.
22563
22564 2008-02-01 Jason Rumney <jasonr@gnu.org>
22565
22566 * w32bdf.c (get_quoted_string): Make function static.
22567
22568 2008-02-01 Kenichi Handa <handa@m17n.org>
22569
22570 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
22571 bigger ascent and descent than those of the font, use them as
22572 font's ascent and descent.
22573
22574 2008-02-01 Kenichi Handa <handa@m17n.org>
22575
22576 * Makefile.in (${lispsource}international/charprop.el): Move this
22577 target within "#ifdef HAVE_UNIDATA" and "#endif".
22578
22579 2008-02-01 Kenichi Handa <handa@m17n.org>
22580
22581 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
22582 (shortlisp): Add ../lisp/language/tai-viet.el.
22583
22584 2008-02-01 Ulrich Mueller <ulm@gentoo.org>
22585
22586 * Makefile.in (${lispsource}international/charprop.el): Depend on
22587 temacs${EXEEXT}.
22588
22589 2008-02-01 Jason Rumney <jasonr@gnu.org>
22590
22591 * w32font.c (w32font_close): Delete the GDI font object.
22592
22593 * w32menu.c: Include character.h.
22594
22595 * w32proc.c: Likewise.
22596
22597 * w32select.c: Likewise.
22598
22599 * makefile.w32-in (w32proc.o): Depend on character.h.
22600
22601 2008-02-01 Jason Rumney <jasonr@gnu.org>
22602
22603 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
22604
22605 * w32menu.c (syms_of_w32menu): Likewise.
22606
22607 * w32proc.c (syms_of_ntproc): Likewise.
22608
22609 * w32select.c (syms_of_w32select): Likewise.
22610
22611 * w32term.c (syms_of_w32term): Likewise.
22612
22613 2008-02-01 Jason Rumney <jasonr@gnu.org>
22614
22615 * w32font.c (w32font_draw): Delete brush after using it.
22616
22617 2008-02-01 Jason Rumney <jasonr@gnu.org>
22618
22619 * w32font.c (w32font_open): Don't set font_idx.
22620 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
22621 to font settings.
22622 (w32font_draw): Fill background explicitly.
22623
22624 2008-02-01 Jason Rumney <jasonr@gnu.org>
22625
22626 * w32term.c (w32_initialize): Don't call w32font_initialize.
22627
22628 * w32font.c (w32font_info): Remove subranges.
22629 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
22630 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
22631 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
22632 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
22633 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
22634 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
22635 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
22636 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
22637 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
22638 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
22639 New symbols.
22640 (font_callback_data): New struct.
22641 (w32font_list, w32font_match): Use it.
22642 (w32font_open): Don't populate subranges.
22643 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
22644 (w32font_encode_char): Always return unicode code-point as-is.
22645 (w32font_text_extents): Supply a transformation matrix to
22646 GetGlyphOutline. Never look up by glyph index. Avoid looping
22647 twice. Use unicode version of GetTexExtentPoint32 instead of
22648 glyph index version.
22649 (set_fonts_frame): Remove.
22650 (w32_enumfont_pattern_entity): Add frame parameter, use it to
22651 set frame parameter. Use backward compatible fake foundries.
22652 Save generic family in extra slot under QCfamily. Make width slot
22653 constant. Save QCspacing value. Save list of scripts instead of
22654 binary subranges.
22655 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
22656 (add_font_entity_to_list): Use font_callback_data struct.
22657 Filter unwanted fonts.
22658 (add_one_font_entity_to_list): Use font_callback_data struct.
22659 (w32_registry): Default to iso10646_1.
22660 (fill_in_logfont): Use dpi from extra slot. Don't bother with
22661 string font registries. Don't fill in font name if it is a generic
22662 family name, fill family instead. Use spacing, family and script
22663 extra info to fill pitch, family and charset fields.
22664 (list_all_matching_fonts): Use font_callback_data struct.
22665 (unicode_range_for_char): Remove.
22666 (font_supported_scripts): New function.
22667 (w32font_initialize): Remove.
22668 (syms_of_w32font): Update which symbols are defined.
22669
22670 2008-02-01 Jason Rumney <jasonr@gnu.org>
22671
22672 * font.c (font_pixel_size): Reverse assq_no_quit args.
22673
22674 * w32term.h (FONT_WIDTH): Report max width, not average.
22675 (FONT_MAX_WIDTH): Remove.
22676 (FONT_AVG_WIDTH): New macro.
22677
22678 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
22679 redefinition of FONT_WIDTH.
22680
22681 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
22682 (w32_cache_char_metrics): Use FONT_WIDTH.
22683
22684 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
22685
22686 2008-02-01 Jason Rumney <jasonr@gnu.org>
22687
22688 * w32font.c (w32font_open): Make lfHeight negative.
22689
22690 * w32fns.c (x_default_font_parameter): Use new style font name.
22691 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
22692
22693 2008-02-01 Jason Rumney <jasonr@gnu.org>
22694
22695 * w32font.c (QCsubranges): New symbol.
22696 (w32font_open, w32font_has_char): Get subranges from subproperty
22697 of extra.
22698 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
22699 (syms_of_w32font): Define :subranges symbol.
22700
22701 * font.c (font_put_extra): Expose externally.
22702
22703 * font.h (font_put_extra): Move declaration from font.c.
22704
22705 * font.c (Ffont_get): Use font driver to determine otf capability.
22706 (adjust_anchor): Check if driver defines anchor_point before using.
22707
22708 * w32font.c (w32font_open): Handle size, height and pixel_size better.
22709 (w32font_draw): Use options.
22710 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
22711 Fix detection of truetype fonts.
22712 (registry_to_w32_charset): Handle charsets other than iso8859-1
22713 expressed as lisp symbols.
22714 (w32_registry): Express charset as lisp symbol.
22715 (fill_in_logfont): Reverse pixel and point height logic.
22716 Don't set width here. Set quality to default.
22717
22718 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
22719 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
22720
22721 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
22722 Remove redundant loop and allocation.
22723
22724 * makefile.w32-in (font.o, w32font.o): New objects.
22725 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
22726 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
22727
22728 * xdisp.c (fill_composite_glyph_string): Make the first arg to
22729 STORE_XCHARB a valid l-value.
22730
22731 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
22732 calculations for non-Truetype fonts.
22733 (x_draw_glyph_string): Sync with xterm.c.
22734 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
22735 Remove redundant code.
22736 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
22737
22738 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
22739 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
22740
22741 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
22742 (x_to_w32_charset, w32_to_x_charset): Expose externally.
22743
22744 * w32font.c: New file for w32 font backend.
22745
22746 2008-02-01 Kenichi Handa <handa@m17n.org>
22747
22748 * term.c: Don't include "buffer.h" twice.
22749
22750 2008-02-01 Kenichi Handa <handa@m17n.org>
22751
22752 * character.c (Funibyte_string): New function.
22753 (syms_of_character): Defsubr it.
22754
22755 2008-02-01 Jason Rumney <jasonr@gnu.org>
22756
22757 * w32term.c [USE_FONT_BACKEND]:
22758 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
22759 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
22760 (x_draw_glyph_string, x_draw_glyph_string_foreground)
22761 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
22762 (x_free_frame_resources): Sync with xterm.c.
22763
22764 2008-02-01 Andreas Schwab <schwab@suse.de>
22765
22766 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
22767 char-table size.
22768
22769 2008-02-01 Kenichi Handa <handa@m17n.org>
22770
22771 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
22772
22773 2008-02-01 Kenichi Handa <handa@m17n.org>
22774
22775 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
22776 font_otf_gpos, add font_drive_otf.
22777
22778 * fontset.c (fontset_find_font): Pay attention to font size
22779 specified for a font.
22780 (reorder_font_vector): Check contents of font_def.
22781
22782 * font.c (struct otf_list): Delete it.
22783 (otf_list): Make it a lisp variable.
22784 (otf_open): Use lispy otf_list.
22785 (generate_otf_features): Rename from parse_gsub_gpos_spec.
22786 (check_otf_features): New function.
22787 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
22788 New functions.
22789 (font_drive_otf): New function merging font_otf_gsub and
22790 font_otf_gpos.
22791 (font_open_for_lface): New arg spec. Change argument order.
22792 (font_load_for_face): Adjust for the change of font_open_for_lface.
22793 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
22794 Ffont_otf_gpos.
22795 (syms_of_font): Staticpro otf_list. Delete defsubr of
22796 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
22797
22798 * xfaces.c (set_font_frame_param): Adjust for the change of
22799 font_open_for_lface.
22800
22801 * font.h (font_open_for_lface): Adjust prototype.
22802 (struct font_driver): Delete members otf_gsub and otf_gpos, add
22803 member otf_drive.
22804 (font_otf_gsub, font_otf_gpos): Delete externs.
22805 (font_drive_otf): Extern it.
22806
22807 2008-02-01 Kenichi Handa <handa@m17n.org>
22808
22809 * font.c (font_at): If the window W is not on a window system,
22810 return Qnil.
22811
22812 * coding.c (produce_chars, encode_coding): Don't call
22813 insert_from_gap if no characters to produce.
22814
22815 2008-02-01 Kenichi Handa <handa@m17n.org>
22816
22817 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
22818 Fclear_face_cache.
22819
22820 * xfaces.c (face_for_font): Check also face->font==font->font.font.
22821
22822 2008-02-01 Miles Bader <miles@gnu.org>
22823
22824 * emacs.c (main): Change default value of `enable_font_backend' to 1.
22825 Parse "--disable-font-backend" option.
22826 (standard_args): Add "--disable-font-backend" option.
22827
22828 2008-02-01 Kenichi Handa <handa@m17n.org>
22829
22830 * fontset.c (fontset_find_font): New function.
22831 (fontset_font): Use fontset_find_font.
22832 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
22833 Register the specified font for all Latin characters.
22834 (new_fontset_from_font): Register the specified font for all Latin
22835 characters.
22836 (dump_fontset): For a realized fontset, include the base fontset
22837 name in the returned vector.
22838
22839 2008-02-01 Kenichi Handa <handa@m17n.org>
22840
22841 * character.h (CHAR_STRING): Cast C to unsigned on calling
22842 char_string.
22843
22844 * character.c (char_string): Type of arg C changed to unsigned.
22845 Signal an error if C is an invalid character code.
22846
22847 * editfns.c (general_insert_function, Fchar_to_string):
22848 Use CHARACTERP, not INTEGERP.
22849
22850 2008-02-01 Kenichi Handa <handa@m17n.org>
22851
22852 * character.h (MIN_MULTIBYTE_LEADING_CODE)
22853 (MAX_MULTIBYTE_LEADING_CODE): New macros.
22854
22855 * regex.c (analyse_first): Fix for multibyte characters in "case
22856 charset:" and "case categoryspec:".
22857
22858 2008-02-01 Andreas Schwab <schwab@suse.de>
22859
22860 * Makefile.in (LIBES): Move standard libraries to the end.
22861
22862 2008-02-01 Kenichi Handa <handa@m17n.org>
22863
22864 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
22865 nonzero, don't shrink the buffer nextb.
22866
22867 * buffer.h (struct buffer_text): New member inhibit_shrinking.
22868
22869 * coding.c (coding_alloc_by_making_gap): New arg offset.
22870 (alloc_destination): Call coding_alloc_by_making_gap with the arg
22871 offset.
22872 (decode_coding_iso_2022): Update coding->safe_charsets.
22873 (decode_coding_gap): Temporarily set
22874 current_buffer->text->inhibit_shrinking to 1.
22875
22876 2008-02-01 Kenichi Handa <handa@m17n.org>
22877
22878 * xterm.c (x_draw_composite_glyph_string_foreground):
22879 Fix indexing into elements of s->cmp and s->char2b.
22880
22881 2008-02-01 Juanma Barranquero <lekktu@gmail.com>
22882
22883 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
22884
22885 2008-02-01 Kenichi Handa <handa@m17n.org>
22886
22887 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
22888 target_multibyte instead of multibyte.
22889 (re_match_2_internal): Call bcmp_translate with target_multibyte.
22890 (bcmp_translate): Change the argument name from multibyte to
22891 target_multibyte.
22892
22893 2008-02-01 Kenichi Handa <handa@m17n.org>
22894
22895 These changes are to compile a regexp into a pattern that can be
22896 used both for multibyte and unibyte targets.
22897
22898 * Makefile.in (search.o): Depend on charset.h.
22899
22900 * character.c (multibyte_char_to_unibyte_safe): New function.
22901
22902 * search.c: Include "charset.h".
22903 (compile_pattern_1): Delete argument multibyte. Don't set
22904 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
22905 (compile_pattern): Don't compare cp->buf.target_multibyte.
22906 Compare cp->buf.charset_unibyte.
22907 (compile_pattern): Set cp->buf.target_multibyte.
22908
22909 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
22910
22911 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
22912
22913 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
22914 multibyte. Change callers.
22915 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
22916 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
22917 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
22918 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
22919 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
22920 (regex_compile): Make the compiled pattern usable both for
22921 multibyte and unibyte targets.
22922 (analyse_first): Make the fastmap usable both for multibyte and
22923 unibyte targets.
22924 (TRANSLATE_VIA_MULTIBYTE): Delete.
22925 (re_match_2_internal): Pay attention to the case that the
22926 multibyteness of bufp and target may be different.
22927
22928 2008-02-01 Kenichi Handa <handa@m17n.org>
22929
22930 * xdisp.c (x_produce_glyphs): When a font is not found, make the
22931 empty box occupy at least one column width.
22932
22933 2008-02-01 Miles Bader <miles@gnu.org>
22934
22935 * Makefile.in: Remove redundant HAVE_XFT clause.
22936
22937 2008-02-01 Kenichi Handa <handa@m17n.org>
22938
22939 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
22940
22941 2008-02-01 Kenichi Handa <handa@m17n.org>
22942
22943 * fontset.c (Finternal_char_font): Fix for the case of POSITION
22944 being nil.
22945
22946 2008-02-01 Kenichi Handa <handa@m17n.org>
22947
22948 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
22949
22950 2008-02-01 Kenichi Handa <handa@m17n.org>
22951
22952 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
22953
22954 2008-02-01 Kenichi Handa <handa@m17n.org>
22955
22956 * search.c (simple_search): Fix previous change.
22957
22958 2008-02-01 Kenichi Handa <handa@m17n.org>
22959
22960 * xftfont.c (ftfont_font_format): Extern declaration.
22961
22962 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
22963
22964 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
22965 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
22966
22967 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
22968 (ftfont_font_format): Fix previous change.
22969
22970 * font.h (Ffont_xlfd_name): EXFUN it.
22971
22972 * font.c (font_parse_xlfd): Fix the array size of `f'.
22973 (register_font_driver): Use EQ to compare driver->type.
22974
22975 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
22976 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
22977 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
22978
22979 2008-02-01 Kenichi Handa <handa@m17n.org>
22980
22981 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
22982 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
22983
22984 2008-02-01 Kenichi Handa <handa@m17n.org>
22985
22986 * xfont.c (xfont_open): Set font->format.
22987
22988 * xftfont.c (xftfont_open): Set font->format.
22989
22990 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
22991 (ftfont_list): Include FC_FONTFORMAT in FcObject.
22992 (ftfont_open): Set font->format.
22993 (ftfont_font_format): New function.
22994
22995 * font.h (struct font): New member format.
22996
22997 * font.c (Qopentype): New variable.
22998 (syms_of_font): Defsym it.
22999 (Fquery_font): Change the format of the last element of the return
23000 value.
23001
23002 2008-02-01 Kenichi Handa <handa@m17n.org>
23003
23004 * xfns.c (xic_create_xfontset): Try the default fontset name as a
23005 last resort.
23006
23007 2008-02-01 Kenichi Handa <handa@m17n.org>
23008
23009 * coding.c (detect_coding_charset): Fix detection of multi-byte
23010 charset.
23011
23012 2008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
23013
23014 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
23015
23016 2008-02-01 Kenichi Handa <handa@m17n.org>
23017
23018 * xdisp.c (get_next_display_element): Set it->face_id for the
23019 first component of a composition.
23020 (x_produce_glyphs): Check if the font is changed or not for composition.
23021
23022 2008-02-01 Kenichi Handa <handa@m17n.org>
23023
23024 * fontset.c (Qlatin): New variable.
23025 (syms_of_fontset): Define it as a lisp symbol.
23026 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
23027
23028 2008-02-01 Kenichi Handa <handa@m17n.org>
23029
23030 * font.c (font_unparse_fcname): Pay attention to the case that
23031 some of font property is a null string.
23032
23033 2008-02-01 Kenichi Handa <handa@m17n.org>
23034
23035 * term.c: Include "composite.h".
23036 (encode_terminal_code): Output all components of composition.
23037 Check the size of encode_terminal_src.
23038 (produce_glyphs): For composition, call produce_composite_glyph.
23039 (append_composite_glyph, produce_composite_glyph): New functions.
23040
23041 * xdisp.c (x_produce_glyphs): In handling composition, if a font
23042 is not found, get font_info from the current ascii face.
23043
23044 2008-02-01 Kenichi Handa <handa@m17n.org>
23045
23046 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
23047 buffer-file-name to Qnil before calling insert_from_buffer.
23048
23049 * font.c (font_unparse_fcname): Pay attention to the case that
23050 foundry is a null string.
23051
23052 2008-02-01 Kenichi Handa <handa@m17n.org>
23053
23054 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
23055
23056 * font.c (Qunicode_sip): New variable.
23057 (syms_of_font): Declare it as a Lisp symbol.
23058
23059 * font.h (Qunicode_sip): Extern it.
23060
23061 2008-02-01 Kenichi Handa <handa@m17n.org>
23062
23063 * composite.c (get_composition_id): Pay attention to TAB component.
23064
23065 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
23066 TAB. Adjust for the change of s->char2b which always points to
23067 the first element of allocated memory.
23068
23069 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
23070
23071 * xdisp.c (handle_composition_prop): Set it->c to the first
23072 non-TAB component.
23073 (fill_composite_glyph_string): Change argument.
23074 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
23075 (x_produce_glyphs): Fix handling of left/right padding.
23076
23077 2008-02-01 Kenichi Handa <handa@m17n.org>
23078
23079 * coding.c (detect_coding_system): Fix for handling off
23080 inhibit_iso_escape_detection. Fix for the case that no coding
23081 system is defined for a specific coding category.
23082
23083 2008-02-01 Kenichi Handa <handa@m17n.org>
23084
23085 * font.c (font_matching_entity): Delete unused local var.
23086
23087 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
23088 opening a font.
23089
23090 * fileio.c (Finsert_file_contents): On recovering a file, assume
23091 Unix-like eol.
23092 (choose_write_coding_system): On auto-saving a file, force
23093 Unix-like eol.
23094
23095 * coding.c (setup_coding_system): Fix setting of
23096 coding->common_flags based on eol_type.
23097 (coding_inherit_eol_type): If PARENT is not nil, be sure to
23098 inherit from it.
23099
23100 2008-02-01 Kenichi Handa <handa@m17n.org>
23101
23102 * alloc.c (NSTATICS): Increas to 0x600.
23103
23104 2008-02-01 Kenichi Handa <handa@m17n.org>
23105
23106 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
23107 (ftfont_list): Don't check :name property.
23108 (ftfont_match): New function.
23109 (ftfont_pattern_entity): If the pattern doesn't contain
23110 FC_SPACING, don't assume FC_MONO.
23111
23112 * font.h (struct font_driver): New member `match'.
23113 (font_update_drivers): Adjust prototype.
23114
23115 * font.c (font_parse_fcname, font_parse_name): Don't change :name
23116 property of FONT.
23117 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring):
23118 Define them unconditionally.
23119 (font_matching_entity): New function.
23120 (font_open_by_name): Try font_matching_entity if exact match is
23121 not found.
23122 (font_update_drivers): Delete the arg FONT. Return a list of
23123 actually used backends. Don't free faces, font caches here.
23124 Don't store data in frame parameters. Don't call x_set_font.
23125 (Ffont_spec): Store :name property as is.
23126 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
23127 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
23128 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
23129 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
23130 Call font->driver->otf_gsub instead of font_otf_gsub.
23131
23132 * frame.c (x_set_font_backend): Do more works that were done in
23133 font_update_drivers before.
23134
23135 * xfont.c (xfont_match): New function.
23136 (xfont_driver): Set xfont_driver.match to xfont_match.
23137 (xfont_draw): Set font in GC if necessary.
23138
23139 * ftxfont.c (ftxfont_match): New function.
23140 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
23141
23142 * xftfont.c (xftfont_match): New function.
23143 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
23144
23145 2008-02-01 Kenichi Handa <handa@m17n.org>
23146
23147 * font.h (struct font): New member scalable.
23148 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
23149 (font_otf_gsub): Adjust prototype.
23150
23151 * font.c (font_otf_capability): Fix handling of the default langsys.
23152 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
23153 Check the contents of SPEC.
23154 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
23155 (check_gstring): New function.
23156 (REPLACEMENT_CHARACTER): New macro.
23157 (font_otf_gsub): New arg alternate_subst. Be sure to set all
23158 glyph codes of GSTRING.
23159 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
23160 (font_prepare_composition): Set cmp->glyph_len.
23161 (font_open_entity): Set font->scalable.
23162 (Ffont_get): Handle :otf property.
23163 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates):
23164 New functions.
23165 (Fquery_font): Use font->font.full_name.
23166 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
23167 Sfont_otf_alternates.
23168
23169 * ftfont.c (ftfont_open): Set font->font.full_name and
23170 font->font.name properly. Fix calculation of font->font.height
23171 and font->min_width.
23172
23173 * ftxfont.c (ftxfont_create_gcs): New function.
23174 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
23175 (ftxfont_draw_backgrond): Fix filling region.
23176 (ftxfont_default_fid): New function.
23177 (ftxfont_open): Set xfont->fid to the return value of
23178 ftxfont_default_fid.
23179 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
23180 (ftxfont_done_face): Free only GCs that are created by
23181 ftxfont_create_gcs.
23182 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
23183
23184 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
23185 Clip to src->width, etc (not src->clip_XXX).
23186
23187 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
23188 FontBackend frame parameter.
23189
23190 2008-02-01 Kenichi Handa <handa@m17n.org>
23191
23192 * font.h (struct font_driver_list): New member `on'.
23193 (Fclear_font_cache): EXFUN it.
23194 (font_update_drivers): Extern it.
23195
23196 * font.c (font_unparse_fcname): Fix typo (swidth->width).
23197 (font_list_entities): Check driver_list->on.
23198 (register_font_driver): Initialize `on' member to 0.
23199 (font_update_drivers): New function.
23200 (Fclear_font_cache): Check driver_list->on.
23201
23202 * frame.h (Qfont_backend): Extern it.
23203 (x_set_font_backend): Extern it.
23204
23205 * frame.c (Qfont_backend): New variable.
23206 (frame_parms): New element for font-backend.
23207 (x_set_font_backend): New function.
23208
23209 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
23210 FontBackend frame parameter.
23211 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
23212 x_set_font_backend.
23213
23214 * xfont.c (xfont_list): Don't try listing by :name property if the
23215 name is not for XLFD.
23216
23217 2008-02-01 Kenichi Handa <handa@m17n.org>
23218
23219 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
23220 (LGLYPH_SET_TO): New macros.
23221 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
23222 element of G is vector or not.
23223 (font_at): Extern it.
23224
23225 * font.c: Include window.h.
23226 (font_lispy_object): New function.
23227 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
23228 end of valid glyph.
23229 (font_close_object): Fix getting (struct font *).
23230 (font_at): New function.
23231 (Ffont_get): If FONT is a font-object, get entity from it.
23232 (Ffont_make_gstring): Initialize elements of glyphs with nil.
23233 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX.
23234 Fix range check.
23235 (Ffont_at): New function.
23236 (syms_of_font): Defsubr Sfont_at.
23237
23238 * xdisp.c (it_props): Move the entry for Qauto_composed to just
23239 before the entry for Qcomposition.
23240 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
23241 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
23242 the font in gstring.
23243 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
23244 LGLYPH_FORM (g) to detect the end of valid glyph.
23245 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
23246 we are composing with gstring.
23247
23248 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
23249 Check if adjustment is vector or not.
23250
23251 * Makefile.in (font.o): Make it depends on window.h.
23252
23253 2008-02-01 Kenichi Handa <handa@m17n.org>
23254
23255 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
23256 adjustment is vector or not.
23257
23258 2008-02-01 Miles Bader <miles@gnu.org>
23259
23260 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
23261
23262 2008-02-01 Kenichi Handa <handa@m17n.org>
23263
23264 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
23265 (LGLYPH_SET_WIDTH): Adjust for the change of LGLYPH format.
23266 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
23267
23268 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
23269 (DEVICE_DELTA): Fix typo.
23270 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
23271 LGLYPH format.
23272
23273 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
23274 the change of LGLYPH format.
23275
23276 2008-02-01 Kenichi Handa <handa@m17n.org>
23277
23278 * ftfont.c (ftfont_list): Fix typo.
23279 (ftfont_build_basic_charsets): Don't include letters with diacritics.
23280
23281 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
23282
23283 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
23284
23285 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
23286 xftface_info is non-NULL.
23287
23288 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
23289
23290 * ftfont.c (ftfont_list): Move misplaced #endif.
23291
23292 2008-02-01 Kenichi Handa <handa@m17n.org>
23293
23294 * ftfont.c (ftfont_list): Pay attention to the case that
23295 FC_CAPABILITY is not defined.
23296
23297 2008-02-01 Kenichi Handa <handa@m17n.org>
23298
23299 * xftfont.c (xftfont_open): Set charset related members to -1.
23300
23301 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
23302 QCname.
23303 (ftfont_open): Set charset related members to -1.
23304
23305 * fontset.c (Votf_script_alist): New variable.
23306 (syms_of_fontset): Initialize it.
23307 (fontset_font): Delete unused variable.
23308
23309 * fontset.h (Votf_script_alist): Extern it.
23310
23311 * font.c (font_find_for_lface): Optimize code.
23312
23313 * font.h (font_close_object, font_merge_old_spec): Extern them.
23314
23315 2008-02-01 Kenichi Handa <handa@m17n.org>
23316
23317 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
23318 (syms_of_font): Initialize them.
23319 (font_pixel_size): Allow float value in dpi.
23320 (font_prop_validate_type): Delete.
23321 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
23322 Change caller.
23323 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
23324 (font_prop_validate_extra): Delete.
23325 (font_prop_validate_spacing): New function.
23326 (font_property_table): Add elements for all known properties.
23327 (get_font_prop_index): Rename from check_font_prop_name.
23328 New argument FROM. Change caller.
23329 (font_prop_validate): Validate all known properties.
23330 (font_put_extra): Delete argument force. Change caller.
23331 (font_expand_wildcards): Make it static. Fix the way of shrinking
23332 the possible range.
23333 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
23334 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
23335 Change caller.
23336 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
23337 (font_parse_fcname): Delete argument merge. Fix parsing of point
23338 size. Don't validate properties values here. Change caller.
23339 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
23340 (font_open_by_name): Delete unused variable.
23341 (Ffont_spec): Likewise. Validate property values.
23342 (Ffont_match_p): New function.
23343
23344 * font.h (QCscalable): Extern it.
23345 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
23346
23347 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
23348
23349 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
23350 (xfont_list_pattern): New function.
23351 (xfont_list): Use xfont_list_pattern.
23352
23353 2008-02-01 Kenichi Handa <handa@m17n.org>
23354
23355 * font.h (Flist_fonts): EXFUN it.
23356
23357 2008-02-01 Jason Rumney <jasonr@gnu.org>
23358
23359 * w32term.c (w32_initialize): Add back smoothing_type and
23360 smoothing_enabled definitions.
23361
23362 2008-02-01 Kenichi Handa <handa@m17n.org>
23363
23364 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
23365 s->face->font on determining underline position.
23366
23367 2008-02-01 Kenichi Handa <handa@m17n.org>
23368
23369 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
23370 (font_has_char): Accept font-object too.
23371 (font_find_for_lface): Try at first with a size specified in face.
23372
23373 2008-02-01 Kenichi Handa <handa@m17n.org>
23374
23375 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
23376 font_open_by_name.
23377
23378 2008-02-01 Kenichi Handa <handa@m17n.org>
23379
23380 * font.h (QCspacing, QCdpi): Extern them.
23381 (enum font_spacing): New enum.
23382 (FONT_PIXEL_SIZE_QUANTUM): New macro.
23383
23384 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
23385 (QCspacing, QCdpi): New variables.
23386 (syms_of_font): Initialize them.
23387 (font_pixel_size): New function.
23388 (font_put_extra): New function.
23389 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
23390 in FONT_EXTRA.
23391 (font_parse_fcname): Handle enumerated values (e.g. bold).
23392 Fix handling font size. Add QCname property that contains only
23393 unknown properties.
23394 (font_score): Change argument. Change caller. Pay attention to
23395 FONT_PIXEL_SIZE_QUANTUM.
23396 (font_sort_entites, font_list_entities, font_find_for_lface)
23397 (font_open_for_lface, font_open_by_name): Fix handling of font size.
23398 (Ffont_spec): Add QCname property that contains only unknown properties.
23399
23400 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq.
23401 Don't include weight in listing pattern, instead check weight of each
23402 listed font. Don't include scalable in pattern. Pay attention to
23403 FONT_PIXEL_SIZE_QUANTUM.
23404
23405 2008-02-01 Kenichi Handa <handa@m17n.org>
23406
23407 * font.c (font_parse_fcname): Fix parsing of point-size.
23408 (font_unparse_fcname): Produce symbolic names for style properties.
23409 (font_list_entities): Handle float size correctly.
23410 (font_open_by_name): Prefer `normal' property values if the name
23411 doesn't specify them.
23412
23413 * fontset.c (Finternal_char_font): Use font_get_name, not
23414 Ffont_xlfd_name.
23415
23416 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
23417 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
23418 pattern. Don't force scalable.
23419
23420 * xftfont.c (xftfont_open): For generating a name, start from
23421 96-byte buffer.
23422
23423 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
23424
23425 * frame.h (x_new_fontset2): Fix prototype.
23426
23427 2008-02-01 Kenichi Handa <handa@m17n.org>
23428
23429 * font.h (struct font_driver): Delete member parse_name.
23430 (font_match_p, font_get_spec, font_parse_fcname)
23431 (font_unparse_fcname): Extern them.
23432 (font_get_name): Adjust prototype.
23433
23434 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
23435 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
23436 (font_expand_wildcards): Fix handling ENCODING field.
23437 Avoid unnecessary checks for weight, slant, and swidth.
23438 (font_parse_fcname): New function.
23439 (font_unparse_fcname): New function.
23440 (font_parse_name): New function.
23441 (font_match_p): New function.
23442 (font_get_name): Change return value to Lisp string.
23443 (font_get_spec): New function.
23444 (Qunspecified, Qignore_defface): Don't extern them.
23445 (font_find_for_lface): Assume that LFACE is fully specified.
23446 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
23447 object, use it for FACE.
23448 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
23449 driver->parse_name.
23450 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
23451
23452 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
23453 prototype.
23454
23455 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
23456 argument F. Don't call Fnew_fontset. Instead, directly call
23457 make_fontset.
23458
23459 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
23460
23461 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
23462 of x_new_fontset2.
23463
23464 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
23465 (Qsans__serif): New variables.
23466 (ftfont_generic_family_list): New variable.
23467 (syms_of_ftfont): Initialize the above variables.
23468 (ftfont_pattern_entity): Delete argument NAME.
23469 (ftfont_list_generic_family): New function.
23470 (ftfont_parse_name): Delete this function.
23471 (ftfont_list): Try generic family only when FcFontList found no font.
23472 (ftfont_list_family): Fix args to FcObjectSetBuild.
23473
23474 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
23475 object in attrs[LFACE_FONT_INDEX].
23476 (set_lface_from_font_name): Cancel all changes for font-backend.
23477 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
23478 function.
23479 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
23480 font object in QCfont attribute.
23481 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
23482 (realize_default_face) [USE_FONT_BACKEND]: Call
23483 set_lface_from_font_and_fontset.
23484
23485 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
23486 "fixed", and signal error here if no suitable font was found.
23487
23488 * xfont.c (xfont_parse_name): Delete this function.
23489
23490 * xftfont.c (xftfont_open): Change coding style of error
23491 handling. Generate fontconfig's fontname pattern.
23492
23493 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
23494 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
23495
23496 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
23497 Both args FONTSET and FONT_OBJECT must be existing ones.
23498
23499 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23500
23501 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
23502
23503 2008-02-01 Kenichi Handa <handa@m17n.org>
23504
23505 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
23506
23507 * font.h (struct font): Fix typo.
23508
23509 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
23510 XLFD_XXX_INDEX.
23511 (enum xlfd_field_mask): New enum.
23512 (intern_font_field): Change argument. Change caller. If digits
23513 are followed by non-digits, return a symbol.
23514 (font_expand_wildcards): New function.
23515 (font_parse_xlfd): Fix wildcard handling.
23516 (Ffont_spec): If :name is specified, reflect the info in the other
23517 properties.
23518
23519 * ftfont.c (ftfont_pattern_entity): Fix typo.
23520 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
23521 locale.
23522
23523 2008-02-01 Kenichi Handa <handa@m17n.org>
23524
23525 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
23526
23527 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
23528 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
23529 registry doesn't specify encoding part.
23530 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
23531 (font_open_by_name): At first try parsing the name.
23532 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
23533 as Lisp symbols.
23534
23535 * fontset.c (reorder_font_vector): Pay attention to the case that
23536 the 3rd element of font_def is nil.
23537 (fontset_font): For the default fontset, append one more fontset
23538 elements for a script-based font specification. Don't add script
23539 attribute on finding a font.
23540 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
23541 font name.
23542 (fontset_ascii_font): If a font can't be opened, return nil.
23543
23544 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
23545 (ftfont_pattern_entity): New function.
23546 (ftfont_get_cache): Assume that freetype_font_cache is already
23547 initialized.
23548 (ftfont_list): Handle the case that a file is specified in font
23549 name. Use ftfont_pattern_entity to generate entities.
23550 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
23551 (syms_of_ftfont): Initialize freetype_font_cache.
23552
23553 * xftfont.c (xftfont_open): Make the font name fontconfig's
23554 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
23555 (xftfont_close): Free font->font.name if not NULL.
23556
23557 * xfont.c (xfont_list): If script is specified for a font, return
23558 null_vector.
23559 (xfont_list_family): Declare argument type.
23560
23561 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
23562 name, set LFACE_FONT (lface) to nil.
23563
23564 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
23565 return Qnil.
23566
23567 2008-02-01 Kenichi Handa <handa@m17n.org>
23568
23569 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
23570 (standard_args): Add "-enable-font-backend".
23571
23572 2008-02-01 Kenichi Handa <handa@m17n.org>
23573
23574 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
23575 (struct xftdraw_list, xftdraw_list): Delete them.
23576 (register_xftdraw, check_xftdraw): Delete them.
23577 (xftfont_prepare_face): Don't call register_xftdraw.
23578 (xftfont_done_face): Don't call check_xftdraw.
23579 (xftfont_draw): Get background color only when with_background is
23580 nonzero.
23581
23582 * xfont.c (xfont_encode_char): Fix calculation of char2b.
23583
23584 2008-02-01 Kenichi Handa <handa@m17n.org>
23585
23586 These changes are for the new font handling codes.
23587
23588 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
23589 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
23590 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
23591 (FONTSRC, FONTOBJ): New variables.
23592 (obj): Add $(FONTOBJ).
23593 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
23594 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
23595 @LIBOTF_LIBS@.
23596 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
23597 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
23598
23599 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
23600
23601 * character.h (Vscript_representative_chars): Extern it.
23602
23603 * character.c (Vscript_representative_chars): New variable.
23604 (syms_of_character): Declare it as a Lisp variable.
23605
23606 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
23607 enable_font_backend is nonzero, accept the composition method
23608 COMPOSITION_WITH_GLYPH_STRING.
23609
23610 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
23611 enumeration COMPOSITION_WITH_GLYPH_STRING.
23612
23613 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
23614 members clip_x, clip_y, clip_width, and clip_height.
23615 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
23616
23617 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
23618 --enable-font-backend. Call syms_of_font.
23619
23620 * fns.c (assoc_no_quit): New function.
23621
23622 * fontset.h (FONT_INFO_FROM_FACE): New macro.
23623 (face_for_font, new_fontset_from_font)
23624 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
23625
23626 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
23627 (fontset_font, fontset_ascii, face_for_char)
23628 (make_fontset_for_ascii_face, Ffont_info)
23629 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
23630 is nonzero, use font-backend mechanism.
23631 (find_font_encoding): Make it non-static.
23632 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
23633 New functions.
23634
23635 * frame.h (struct frame): New members resx and resy.
23636 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
23637 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
23638
23639 * frame.c [USE_FONT_BACKEND]: Include "font.h".
23640 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
23641
23642 * lisp.h (assoc_no_quit): Extern it.
23643
23644 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
23645 Through out the file, use FONT_INFO_FROM_FACE instead of
23646 FONT_INFO_FROM_ID, use get_per_char_metric instead of
23647 rif->per_char_metric.
23648 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
23649 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
23650 (get_glyph_face_and_encoding, fill_composite_glyph_string)
23651 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
23652 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
23653 nonzero, use font-backend mechanism.
23654 (get_per_char_metric): New function.
23655
23656 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
23657 (set_lface_from_font_name)
23658 (set_font_frame_param, free_realized_face)
23659 (prepare_face_for_display, clear_face_gcs)
23660 (Finternal_set_font_selection_order, realize_x_face)
23661 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
23662 font-backend mechanism.
23663 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
23664 (load_face_font) [USE_FONT_BACKEND]: Abort.
23665 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
23666 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
23667
23668 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
23669 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
23670 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
23671 nonzero, register all available font drivers.
23672 Call x_default_font_parameter for deciding a font.
23673 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
23674
23675 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
23676 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
23677 (x_set_glyph_string_clipping_exactly)
23678 (x_compute_glyph_string_overhangs)
23679 (x_draw_glyph_string_foreground)
23680 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
23681 (x_free_frame_resources) [USE_FONT_BACKEND]: If
23682 enable_font_backend is nonzero, use font-backend mechanism.
23683 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
23684
23685 2008-02-01 Kenichi Handa <handa@m17n.org>
23686
23687 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
23688 system_eol_type.
23689 (syms_of_coding): Initialize system_eol_type.
23690
23691 * process.c (Fset_process_coding_system): Inherit system's eol
23692 format if necessary.
23693
23694 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23695
23696 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
23697
23698 2008-02-01 Kenichi Handa <handa@m17n.org>
23699
23700 * coding.c (decode_eol): Pay attention to buffer relocation in
23701 del_range_2.
23702 (decode_coding): Call decode_eol before restoring undo_list.
23703
23704 2008-02-01 Kenichi Handa <handa@m17n.org>
23705
23706 * charset.c (Fdefine_charset_internal): Fix setting of
23707 emacs_mule_bytes.
23708
23709 2008-02-01 Kenichi Handa <handa@m17n.org>
23710
23711 * keyboard.c (read_char): Check if C is a character or not before
23712 looking up Vkeyboard_translate_table.
23713
23714 2008-02-01 Kenichi Handa <handa@m17n.org>
23715
23716 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION):
23717 Fix condition to terminate the loop.
23718
23719 2008-02-01 Kenichi Handa <handa@m17n.org>
23720
23721 * coding.c (produce_composition): Compare charbuf[i] instead of
23722 args[i] against 0.
23723 (Fterminal_coding_system): Use EQ to compare Lisp objects.
23724
23725 2008-02-01 Kenichi Handa <handa@m17n.org>
23726
23727 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
23728 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
23729 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
23730 detect_coding.
23731 (emacs_mule_char): Handle old style (Emacs 20) component character
23732 of a composition.
23733 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
23734 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
23735 composition rule.
23736 (decode_coding_emacs_mule): Handle invalid bytes correctly.
23737
23738 2008-02-01 Kenichi Handa <handa@m17n.org>
23739
23740 * coding.c (encode_coding_ccl): Allocate destination dynamically
23741 when necessary.
23742
23743 2008-02-01 Kenichi Handa <handa@m17n.org>
23744
23745 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
23746 the loop. When quitted, show a proper error message.
23747
23748 2008-02-01 Kenichi Handa <handa@m17n.org>
23749
23750 * xterm.c (x_set_glyph_string_clipping_exactly):
23751 Set src->clip_head and src->clip_tail temporarily instead of src->hl.
23752
23753 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
23754 character sequence.
23755 (Fccl_execute_on_string): Use ASET, not XSET.
23756
23757 2008-02-01 Kenichi Handa <handa@m17n.org>
23758
23759 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
23760
23761 2008-02-01 Kenichi Handa <handa@m17n.org>
23762
23763 * coding.c (decode_coding): Fix the condition of terminating the
23764 decoding loop.
23765
23766 2008-02-01 Kenichi Handa <handa@m17n.org>
23767
23768 * data.c (Faset): On setting a character bigger than 255 in a
23769 unibyte string, signal an error instead of make the string multibyte.
23770
23771 2008-02-01 Kenichi Handa <handa@m17n.org>
23772
23773 * charset.c (map_charset_chars): Fix for ascii-compatible charset
23774 made by a mapping table.
23775
23776 2008-02-01 Kenichi Handa <handa@m17n.org>
23777
23778 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
23779 not.
23780 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
23781 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
23782
23783 * xterm.c (x_draw_composite_glyph_string_foreground):
23784 Check s->face is NULL or not.
23785
23786 2008-02-01 Kenichi Handa <handa@m17n.org>
23787
23788 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
23789 (x_draw_glyph_string): Fix drawing of right_overhang and
23790 left_overhang around/on cursor.
23791
23792 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
23793
23794 2008-02-01 Kenichi Handa <handa@m17n.org>
23795
23796 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
23797
23798 2008-02-01 Kenichi Handa <handa@m17n.org>
23799
23800 * coding.c (Fdefine_coding_system_internal)
23801 (Fdefine_coding_system_alias): Avoid a duplicated element in
23802 Vcoding_system_alist.
23803
23804 2008-02-01 Kenichi Handa <handa@m17n.org>
23805
23806 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
23807
23808 * coding.c (Qcoding_system_define_form): New variable.
23809 (syms_of_coding): Intern and staticpro it.
23810 (Fcoding_system_p): Check Qcoding_system_define_form.
23811 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
23812
23813 * coding.h (CODING_SYSTEM_P): If ID is not available, call
23814 Fcoding_system_p.
23815 (CHECK_CODING_SYSTEM): If ID is not available, call
23816 Fcheck_coding_system.
23817 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
23818 Try also Fcheck_coding_system.
23819
23820 2008-02-01 Kenichi Handa <handa@m17n.org>
23821
23822 * coding.c (code_conversion_restore): GCPRO arg.
23823
23824 2008-02-01 Kenichi Handa <handa@m17n.org>
23825
23826 * character.c (lisp_string_width): Check multibyteness of STRING.
23827
23828 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23829
23830 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
23831 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
23832 (decode_mac_font_name): Use decode_coding_c_string instead of
23833 decode_coding.
23834 (x_load_font): Initialize fontp->fontset to -1.
23835 Set fontp->encoding_type.
23836
23837 2008-02-01 Kenichi Handa <handa@m17n.org>
23838
23839 * search.c (search_buffer): Give up BM search on case-fold-search
23840 if one of a target character has a case-equivalence of different
23841 byte length even if that target character is an ASCII.
23842 (simple_search): Fix calculation of byte length of matched text.
23843 (boyer_moore): Fix handling of case-equivalent multibyte characters.
23844
23845 2008-02-01 Kenichi Handa <handa@m17n.org>
23846
23847 * coding.c (decode_coding): Fix handling of invalid bytes.
23848
23849 2008-02-01 Kenichi Handa <handa@m17n.org>
23850
23851 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
23852 Unicode characters.
23853
23854 2008-02-01 Kenichi Handa <handa@m17n.org>
23855
23856 * coding.c (encode_coding_object): If a pre-write-conversion
23857 function makes a new buffer, kill it.
23858
23859 2008-02-01 Kenichi Handa <handa@m17n.org>
23860
23861 * coding.c (QCascii_compatible_p): New variable.
23862 (syms_of_coding): Initialize it.
23863 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
23864 calling string_char.
23865 (record_conversion_result): Add `default:' case.
23866 (coding_charset_list): Delete unused variable `coding_type'.
23867 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
23868 property in the plist of the coding system.
23869 (Fcoding_system_put): Check QCascii_compatible_p.
23870
23871 2008-02-01 Miles Bader <miles@gnu.org>
23872
23873 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
23874 removed calculation of frame `f', as it's now used.
23875
23876 2008-02-01 Kenichi Handa <handa@m17n.org>
23877
23878 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
23879 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
23880 (UNIDATA): New variable.
23881 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
23882 (bootstrap-emacs${EXEEXT}): Depends on charprop.el.
23883 Run $(RUN_TEMACS) unconditionally.
23884
23885 2008-02-01 Kenichi Handa <handa@m17n.org>
23886
23887 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
23888 (admindir): New variable.
23889 ($(lispsource)international/charprop.el): New target.
23890
23891 2008-02-01 Miles Bader <miles@gnu.org>
23892
23893 * character.c (chars-in-region): Remove obsolete function.
23894 (syms_of_character): Remove its initialization.
23895
23896 2008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
23897
23898 * w32select.c (validate_coding_system)
23899 (setup_windows_coding_system): New functions.
23900 (convert_to_handle_as_coded, Fw32_get_clipboard_data):
23901 Use setup_windows_coding_system.
23902 (setup_config, Fw32_get_clipboard_data):
23903 Use validate_coding_system.
23904 (Fx_selection_exists): Move call to setup_config to a place
23905 where signals are allowed.
23906
23907 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
23908 (Fcheck_coding_system): Add declarations.
23909
23910 2008-02-01 Kenichi Handa <handa@m17n.org>
23911
23912 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
23913
23914 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23915
23916 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
23917 string as the second argument for x_new_fontset.
23918
23919 2008-02-01 Kenichi Handa <handa@m17n.org>
23920
23921 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
23922 (encode_coding_object): Use safe_call instead of call2.
23923
23924 2008-02-01 Kenichi Handa <handa@m17n.org>
23925
23926 * fontset.c (Fset_fontset_font): Check family element of a given vector.
23927
23928 * Makefile.in (lisp): Include charprop.el.
23929
23930 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23931
23932 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
23933 Not sure if it's unnecessary.
23934
23935 2008-02-01 Steven Tamm <steventamm@mac.com>
23936
23937 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
23938 some possibly unnecessary fontset checking code that crashed
23939 when creating a new frame.
23940
23941 2008-02-01 Kenichi Handa <handa@m17n.org>
23942
23943 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
23944 lookup_face.
23945
23946 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
23947
23948 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
23949
23950 2008-02-01 Kenichi Handa <handa@m17n.org>
23951
23952 * coding.c: Cancel the change done in HEAD on 2008-02-01.
23953 (coding_charset_list): New function.
23954
23955 * coding.h (coding_charset_list): Extern it.
23956
23957 2008-02-01 Kenichi Handa <handa@m17n.org>
23958
23959 * fontset.c (Fset_fontset_font): Call find_font_encoding with
23960 concatenation of family and registry.
23961
23962 2008-02-01 Kenichi Handa <handa@m17n.org>
23963
23964 * character.h (BYTE8_STRING): Fix typo.
23965
23966 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
23967 string to multibyte (sync to HEAD).
23968
23969 * casefiddle.c (casify_region): Handle changes in byte-length
23970 using replace_range_2 (sync to HEAD).
23971
23972 2008-02-01 Andreas Schwab <schwab@suse.de>
23973
23974 * chartab.c (map_char_table): GCPRO table and arg.
23975
23976 2008-02-01 Kenichi Handa <handa@m17n.org>
23977
23978 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
23979 already at limit.
23980
23981 2008-02-01 Kenichi Handa <handa@m17n.org>
23982
23983 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
23984 instead of fast_c_string_match_ignore_case.
23985 (find_font_encoding): Change argument to Lisp_Object.
23986 Use fast_string_match_ignore_case instead of
23987 fast_c_string_match_ignore_case. Change caller.
23988
23989 2008-02-01 Kenichi Handa <handa@m17n.org>
23990
23991 * xdisp.c (get_next_display_element): In unibyte case, decide to
23992 display in octal form by checking a character by
23993 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
23994
23995 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
23996
23997 * character.c (unibyte_has_multibyte_table): New variable.
23998
23999 * character.h (unibyte_has_multibyte_table): Extern it.
24000 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
24001
24002 2008-02-01 Kenichi Handa <handa@m17n.org>
24003
24004 * coding.c (encode_coding_iso_2022): Fix handling of charset
24005 annotation.
24006
24007 2008-02-01 Kenichi Handa <handa@m17n.org>
24008
24009 * coding.c (setup_coding_system): If coding_system is nil, use
24010 Qundecided.
24011 (Fterminal_coding_system): Return nil if terminal coding system is
24012 `undecided'.
24013 (syms_of_coding): Define coding-system `undecided' here.
24014 Setup terminal_coding as `undecided'.
24015
24016 2008-02-01 Kenichi Handa <handa@m17n.org>
24017
24018 * xdisp.c (message_dolog, set_message_1):
24019 Call unibyte_char_to_multibyte with arg type int.
24020
24021 * lread.c (read1): Fix reading of a char-table.
24022
24023 * print.c (print_object): Include sub char-table in circularities
24024 detection.
24025
24026 2008-02-01 Kenichi Handa <handa@m17n.org>
24027
24028 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
24029 Append the found sequences in car of ARGS instead of prepending.
24030
24031 2008-02-01 Kenichi Handa <handa@m17n.org>
24032
24033 * fileio.c (report_file_error): Make a unibyte string from
24034 strerror (errorno).
24035 (Fsubstitute_in_file_name): Fix the arg to
24036 unibyte_char_to_multibyte. It is evaluated twice.
24037
24038 2008-02-01 Kenichi Handa <handa@m17n.org>
24039
24040 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
24041
24042 2008-02-01 Kenichi Handa <handa@m17n.org>
24043
24044 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
24045 BOM is not found.
24046 (detect_coding, detect_coding_system): Optimization for ISO-2022
24047 when no 8-bit data is found.
24048
24049 2008-02-01 Jason Rumney <jasonr@gnu.org>
24050
24051 * w32fns.c (x_to_w32_font): Update to use new coding struct.
24052
24053 2008-02-01 Kenichi Handa <handa@m17n.org>
24054
24055 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
24056 CHARS.
24057
24058 2008-02-01 Steven Tamm <steventamm@mac.com>
24059
24060 * macterm.c (mac_encode_char): Add charset argument and update
24061 to use encoding_type.
24062 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
24063 switch to pure fontset.
24064 (decode_mac_font_name): Temporarily remove decoding.
24065 (x_font_name_to_mac_font_name): Temporarily remove encoding.
24066 (x_load_font): Temporarily remove encoding.
24067
24068 2008-02-01 Kenichi Handa <handa@m17n.org>
24069
24070 * xfaces.c (Fface_font): If frame is not on a window system,
24071 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
24072 refer to face->font.
24073 (split_font_name_into_vector, build_font_name_from_vector)
24074 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
24075 when HAVE_WINDOW_SYSTEM is defined.
24076
24077 2008-02-01 Kenichi Handa <handa@m17n.org>
24078
24079 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
24080 (x_produce_glyphs): Fix setting of members of cmp in case
24081 cmp->glyph_len is zero.
24082
24083 * fontset.c (Fset_fontset_font): Fix docstring.
24084 (Ffontset_info): Make it backward compatible. New arg ALL.
24085
24086 2008-02-01 Kim F. Storm <storm@cua.dk>
24087
24088 * process.c (read_process_output): Grow decoding_buf when needed;
24089 this could cause a crash in allocate_string and compact_small_strings.
24090
24091 2008-02-01 Kenichi Handa <handa@m17n.org>
24092
24093 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
24094
24095 2008-02-01 Kenichi Handa <handa@m17n.org>
24096
24097 * coding.c (setup_coding_system): Set coding->common_flags
24098 correctly for raw-text.
24099 (consume_chars): On encoding unibyte text by raw-text, don't check
24100 multibyte form.
24101 (encode_coding): On encoding by raw-text, never use translation tables.
24102
24103 * fileio.c (e_write): Short cut for the case of no encoding.
24104
24105 2008-02-01 Kenichi Handa <handa@m17n.org>
24106
24107 * coding.c (detect_coding, detect_coding_system): Delete unused
24108 variables.
24109
24110 2008-02-01 Kenichi Handa <handa@m17n.org>
24111
24112 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
24113 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
24114
24115 2008-02-01 Kenichi Handa <handa@m17n.org>
24116
24117 * coding.c (Ffind_coding_systems_region_internal):
24118 Include raw-text and no-conversion in the result.
24119
24120 2008-02-01 Kenichi Handa <handa@m17n.org>
24121
24122 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
24123 (load_font_get_repertory): Delete unnecessary check of ENCODING of
24124 FONT_DEF.
24125 (font_def_arg, add_arg, from_arg, to_arg): New args.
24126 (set_fontset_font): Change argument.
24127 (Fset_fontset_font): Fix for the case that TARGET is a script
24128 name and charset name.
24129 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
24130
24131 2008-02-01 Kenichi Handa <handa@m17n.org>
24132
24133 * fontset.c (fontset_font): Rename from fontset_face. Change return
24134 value.
24135 (face_suitable_for_char_p, face_for_char): Adjust for the change
24136 of fontset_font.
24137 (make_fontset_for_ascii_face): Fix setting of the fontset element
24138 for ASCII.
24139 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
24140 to get a font name.
24141 (Ffontset_info): Adjust for the change of fontset_font.
24142
24143 * coding.c (emacs_mule_char): Check invalid code more rigidly.
24144
24145 * character.h (LEADING_CODE_LATIN_1_MIN)
24146 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
24147
24148 2008-02-01 Kenichi Handa <handa@m17n.org>
24149
24150 * editfns.c (check_translation): New function.
24151 (Ftranslate_region_internal): Handle M:N mapping.
24152
24153 2008-02-01 Kenichi Handa <handa@m17n.org>
24154
24155 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
24156
24157 2008-02-01 Kenichi Handa <handa@m17n.org>
24158
24159 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
24160 goto invalid_code.
24161 (decode_coding_iso_2022): Fix handling of invalid designation.
24162
24163 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
24164 after calling code_conversion_save.
24165
24166 2008-02-01 Kenichi Handa <handa@m17n.org>
24167
24168 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
24169
24170 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
24171
24172 * fontset.c: Include "intervals.h".
24173 (fontset_face): Fix comparing of Lisp_Objects.
24174 (free_face_fontset, new_fontset_from_font_name):
24175 Fix Lisp_Object/int mixup.
24176
24177 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
24178
24179 * coding.c: Add many prototypes for static functions.
24180 (get_translation_table): Allow max_lookup to be NULL.
24181 (decode_coding, Ffind_coding_systems_region_internal)
24182 (Funencodable_char_position, Fcheck_coding_systems_region):
24183 Call get_translation_table with max_lookup NULL.
24184
24185 2008-02-01 Kenichi Handa <handa@m17n.org>
24186
24187 * coding.c (get_translation_table): Declare it as Lisp_Object.
24188 (LOOKUP_TRANSLATION_TABLE): New macro.
24189 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
24190 instead of CHAR_TABLE_REF.
24191
24192 2008-02-01 Kenichi Handa <handa@m17n.org>
24193
24194 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
24195 annotation data format.
24196 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
24197 Change arguments FROM and TO to single argument NCHARS. Change caller.
24198 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
24199 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
24200 (decode_coding_ccl, decode_coding_charset): Pay attention to
24201 coding->charbuf_used.
24202 (get_translation): New function.
24203 (produce_chars): New arguments translation_table and last_block.
24204 Translate characters here. Return number of carryover chars.
24205 Change caller.
24206 (produce_composition): New argument pos. Change caller.
24207 Adjust for the change of annotation data format.
24208 (produce_charset, produce_annotation): Likewise.
24209 (decode_coding, encode_coding): Don't call translate_chars.
24210 (consume_chars): New arg translation_table. Change caller.
24211 (translate_chars): Delete.
24212 (syms_of_coding): Make translation-table's number of extra slots 2.
24213
24214 2008-02-01 Kenichi Handa <handa@m17n.org>
24215
24216 * search.c (simple_search): Fix setting this_pos_byte in backward
24217 search.
24218
24219 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
24220 byte sequence.
24221 (detect_coding_ccl): Fix setting of the variable valids.
24222
24223 2008-02-01 Kenichi Handa <handa@m17n.org>
24224
24225 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
24226
24227 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
24228
24229 * editfns.c (Ftranslate_region_internal): Rename from
24230 Ftranslate_region. Accept a char-table in TABLE.
24231 (syms_of_editfns): Defsubr Stranslate_region_internal.
24232
24233 * xfaces.c (set_lface_from_font_name): If a font is specified for
24234 a frame, generate a fontset from the font.
24235 (build_scalable_font_name): If the scalable font is requested for
24236 a specific size, don't change that size.
24237 (try_font_list): Try a scalable font also in the case that a
24238 pattern string is specified.
24239
24240 2008-02-01 Kenichi Handa <handa@m17n.org>
24241
24242 * xfaces.c (Fface_font): New optional arg CHARACTER.
24243
24244 2008-02-01 Kenichi Handa <handa@m17n.org>
24245
24246 * charset.h (CHARSET_OFFSET): New macro.
24247
24248 2008-02-01 Kenichi Handa <handa@m17n.org>
24249
24250 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
24251
24252 * fontset.c (fontset_face): Handle the case that repertory is a
24253 char-table.
24254 (find_font_encoding): Return nil for unknown encoding.
24255 (Fset_fontset_font): Ignore a font of unknown encoding.
24256
24257 2008-02-01 Kenichi Handa <handa@m17n.org>
24258
24259 * keymap.c (describe_vector): Handle default value of a char table.
24260
24261 * fontset.c (fontset_face): Handle fallback fonts correctly.
24262 (Ffontset_info): Return infomation about fallback fonts.
24263
24264 2008-02-01 Kenichi Handa <handa@m17n.org>
24265
24266 * fontset.c (FONTSET_DEFAULT): New macro.
24267 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
24268 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
24269 the case that it is nil.
24270 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
24271 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
24272
24273 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
24274 subset or superset.
24275
24276 2008-02-01 Kenichi Handa <handa@m17n.org>
24277
24278 * emacs.c (main): Call init_charset after syms_of_XXX.
24279
24280 * charset.c (Vcharset_map_directory): Delete.
24281 (Vcharset_map_path): New variable.
24282 (load_charset_map_from_file): Use Vcharset_map_path instead.
24283 (init_charset): Initialize Vcharset_map_path.
24284 (syms_of_charset): Delete declaration of "charset-map-directory",
24285 add declaration of "charset-map-path".
24286
24287 2008-02-01 Kenichi Handa <handa@m17n.org>
24288
24289 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
24290 ASCII only string.
24291
24292 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
24293
24294 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
24295 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
24296
24297 2008-02-01 Kenichi Handa <handa@m17n.org>
24298
24299 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
24300
24301 * coding.c (QCmnemonic, QCdefalut_char)
24302 (QCdecode_translation_table, QCencode_translation_table)
24303 (QCpost_read_conversion, QCpre_write_conversion): New variables.
24304 (get_translation_table): Return a list of translation tables if
24305 necessary.
24306 (decode_coding): Call get_translation_table with ENCODEP 0.
24307 (char_encodable_p): If translation_table is non-nil, always call
24308 translate_char.
24309 (Fdefine_coding_system_internal): Accept list of translation
24310 tables as :encode-translation-table and :decode-translation-table.
24311 (Fcoding_system_put): New function.
24312 (syms_of_coding): Declare new symbols.
24313 Defsubr Scoding_system_put.
24314 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
24315 typically JISX0212.
24316
24317 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
24318 when the charset is superset type.
24319
24320 * character.c (translate_char): Accept list of translation tables.
24321
24322 2008-02-01 Kenichi Handa <handa@m17n.org>
24323
24324 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
24325 (CODING_ATTR_TRANS_TBL): New macro.
24326
24327 * coding.c (get_translation_table): New function.
24328 (translate_chars): Fix the bug of skipping annotation data.
24329 (decode_coding, encode_coding): Utilize get_translation_table.
24330 (char_encodable_p, Funencodable_char_position): Translate char if
24331 necessary.
24332 (Ffind_coding_systems_region_internal)
24333 (Fcheck_coding_systems_region): Setup translation table for encode
24334 in a coding system attribute vector in advance.
24335 (Fdefine_coding_system_internal): Allow a symbol as translation
24336 table. For shift-jis type coding system, allow 4th charset.
24337
24338 2008-02-01 Kenichi Handa <handa@m17n.org>
24339
24340 * coding.c (decode_coding_sjis): Check the first byte rigidly.
24341
24342 * xdisp.c (get_next_display_element): Pass -1 as POS to
24343 FACE_FOR_CHAR if displaying a C-string.
24344
24345 2008-02-01 Kenichi Handa <handa@m17n.org>
24346
24347 * composite.c (get_composition_id): Handle xoff and yoff in a
24348 composition rule.
24349
24350 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
24351 (struct composition): New member lbearing and rbearing.
24352
24353 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
24354 (x_get_glyph_overhangs): Handle a composition glyph.
24355 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
24356
24357 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
24358 composition glyph.
24359
24360 2008-02-01 Kenichi Handa <handa@m17n.org>
24361
24362 * print.c: Include charset.h.
24363 (Vprint_charset_text_property): New variable.
24364 (Qdefault): Extern it.
24365 (PRINT_STRING_NON_CHARSET_FOUND)
24366 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
24367 (print_check_string_result): New variable.
24368 (print_check_string_charset_prop): New function.
24369 (print_prune_charset_plist): New variable.
24370 (print_prune_string_charset): New function.
24371 (print_object): Call print_prune_string_charset if
24372 Vprint_charset_text_property is not t.
24373 (print_interval): Print nothing if interval->plist is nil.
24374 (syms_of_print): Declare Vprint_charset_text_property as a lisp
24375 variable. Init and staticpro print_prune_charset_plist.
24376
24377 2008-02-01 Kenichi Handa <handa@m17n.org>
24378
24379 * fontset.c (new_fontset_from_font_name): Use the specified font
24380 for all characters in the new fontset.
24381
24382 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
24383 OBJECT args.
24384
24385 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
24386 OBJECT args for composition too.
24387
24388 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
24389 OBJECT args.
24390
24391 2008-02-01 Kenichi Handa <handa@m17n.org>
24392
24393 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
24394
24395 * fontset.c (reorder_font_vector): Adjust for the change of
24396 FONT_DEF format.
24397 (fontset_face): New arg id. Change caller.
24398 (face_for_char): New args pos and object.
24399 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
24400 (fs_query_fontset): Check NAME by Fassoc too.
24401 (Fset_fontset_font): Allow non-XLFD font name.
24402 (Ffontset_info): Adjust for the change of FONT_DEF format.
24403
24404 * fontset.h (face_for_char): Adjust prototype.
24405
24406 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
24407 (append_space, extend_face_to_end_of_line)
24408 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
24409 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
24410
24411 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
24412 POS and OBJECT args.
24413
24414 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
24415 POS and OBJECT args.
24416
24417 2008-02-01 Jason Rumney <jasonr@gnu.org>
24418
24419 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
24420 of GlobalAlloc'ed memory.
24421
24422 2008-02-01 Kenichi Handa <handa@m17n.org>
24423
24424 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
24425
24426 * charset.h (charset_table_used): Delete extern.
24427
24428 * charset.c (charset_table_used): Make it static.
24429 (map_charset_chars): Fix args to c_function with.
24430
24431 * chartab.c (map_sub_char_table_for_charset): Fix args to
24432 c_function with.
24433
24434 * coding.h (enum coding_result_code):
24435 Delete CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
24436
24437 * coding.c (Qinsufficient_source, Qinconsistent_eol)
24438 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
24439 (Vlast_code_conversion_error): New variables.
24440 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
24441 (ONE_MORE_BYTE): Record error if any instead of signaling an
24442 error. If non-ASCII multibyte char is found, return the negative
24443 value of the code. All callers changed to check it.
24444 (ONE_MORE_BYTE_NO_CHECK): Likewise.
24445 (record_conversion_result): New function. Change all codes setting
24446 coding->result to call this function.
24447 (detect_coding_utf_8, decode_coding_utf_8)
24448 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
24449 Don't use the local variable incomplete.
24450 (emacs_mule_char): Change the second arg to `const'.
24451 (decode_coding): Fix of flushing out unprocessed data.
24452 (make_conversion_work_buffer): Fix making of a work buffer.
24453 (decode_coding_object): Return coding->dst_object.
24454
24455 * fontset.c (set_fontset_font): Fix args.
24456
24457 * lisp.h (CHARACTERBITS): Define as 22.
24458
24459 * process.c (send_process): Be sure to set coding->src_multibyte.
24460
24461 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
24462
24463 2008-02-01 Kenichi Handa <handa@m17n.org>
24464
24465 * xdisp.c (handle_auto_composed_prop): Give limit to
24466 Fnext_single_char_property_change.
24467
24468 2008-02-01 Kenichi Handa <handa@m17n.org>
24469
24470 * composite.c (syms_of_composite): Don't make the composition hash
24471 table weak.
24472
24473 * fontset.c (Fset_fontset_font): Fix docstring.
24474
24475 * lisp.h (detect_coding_system): Adjust prototype.
24476
24477 * fileio.c (kill_workbuf_unwind): Delete this function.
24478 (Finsert_file_contents): Adjust the call of detect_coding_system.
24479 Get conversion_buffer by code_conversion_save. Use the macro
24480 CODING_MAY_REQUIRE_DECODING. After decoding, update
24481 coding_system.
24482
24483 * coding.h (make_conversion_work_buffer): Delete extern.
24484 (code_conversion_save): Extern it.
24485
24486 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
24487 (CODING_GET_INFO): Delete argument eol_type. Change callers.
24488 (decode_coding_utf_8): Don't do eol converion.
24489 (detect_coding_utf_16): Check coding->src_chars, not
24490 coding->src_bytes. Add heuristics for those that have no signature.
24491 (decode_coding_emacs_mule, decode_coding_iso_2022)
24492 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
24493 Don't do eol converion.
24494 (adjust_coding_eol_type): Return a new coding system.
24495 (detect_coding): Don't detect eol. Fix for utf-16 detection.
24496 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
24497 each change.
24498 (decode_coding): Pay attention to undo_list. Do eol conversion for
24499 all types of coding-systems (if necessary).
24500 (Vcode_conversion_work_buf_list): Delete it.
24501 (Vcode_conversion_reused_workbuf): Rename from
24502 Vcode_conversion_reused_work_buf.
24503 (Vcode_conversion_workbuf_name): New variable.
24504 (reused_workbuf_in_use): New variable.
24505 (make_conversion_work_buffer): Delete the arg DEPTH.
24506 (code_conversion_restore): Change argument to cons.
24507 (code_conversion_save): Delete the argument BUFFER. Change callers.
24508 (detect_coding_system): New argument src_chars. Change callers.
24509 Fix for utf-16 detection.
24510 (init_coding_once): Don't use ISO_carriage_return.
24511 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
24512 reused_workbuf_in_use.
24513
24514 2008-02-01 Kenichi Handa <handa@m17n.org>
24515
24516 * keymap.c (store_in_keymap): Pay attention to the case that idx
24517 is a cons specifying a character range.
24518
24519 2008-02-01 Kenichi Handa <handa@m17n.org>
24520
24521 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
24522 HANDLED_RECOMPUTE_PROPS.
24523
24524 * coding.c (Fdefine_coding_system_internal): Fix checking of
24525 ascii compatibility.
24526
24527 2008-02-01 Kenichi Handa <handa@m17n.org>
24528
24529 * charset.c (find_charsets_in_text): Delete unused locale variable.
24530 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
24531
24532 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
24533 Resync charset_list to Vemacs_mule_charset_list.
24534
24535 * keymap.c (store_in_keymap): Pay attention to the case that idx
24536 is a cons specifying a character range.
24537
24538 2008-02-01 Kenichi Handa <handa@m17n.org>
24539
24540 * composite.c (update_compositions): Bind inhibit-read-only, etc
24541 to t before calling remove-list-of-text-properties.
24542
24543 * print.c (print_object): Always print ASCII chars as is.
24544
24545 2008-02-01 Kenichi Handa <handa@m17n.org>
24546
24547 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
24548
24549 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
24550 is a char table.
24551
24552 2008-02-01 Kenichi Handa <handa@m17n.org>
24553
24554 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
24555
24556 2008-02-01 Kenichi Handa <handa@m17n.org>
24557
24558 * xfaces.c (set_lface_from_font_name): Fix for the case that
24559 FONTNAME is not fontset name.
24560
24561 2008-02-01 Kenichi Handa <handa@m17n.org>
24562
24563 * fns.c (base64_encode_1): Fix previous change.
24564
24565 2008-02-01 Kenichi Handa <handa@m17n.org>
24566
24567 * fontset.c (set_fontset_font): New function.
24568 (Fset_fontset_font): If a font is specified for a charset, use
24569 map_charset_chars to store the font spec in a fontset.
24570
24571 2008-02-01 Kenichi Handa <handa@m17n.org>
24572
24573 * fontset.c (fontset_face): Create a fallback fontset on demand.
24574 (make_fontset): Don't create a fallback fontset here.
24575 (free_face_fontset): Free a fallback fontset (if any) too.
24576 (n_auto_fontsets): Delete this variable.
24577 (auto_fontset_alist): New variable.
24578 (new_fontset_from_font_name): Check auto_fontset_alist.
24579 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
24580 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
24581 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
24582 Defsubr Sfontset_list_all.
24583
24584 2008-02-01 Kenichi Handa <handa@m17n.org>
24585
24586 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
24587
24588 2008-02-01 Kenichi Handa <handa@m17n.org>
24589
24590 * fontset.c (Fnew_fontset): Check NAME more rigidly.
24591
24592 2008-02-01 Kenichi Handa <handa@m17n.org>
24593
24594 * editfns.c (Fgoto_char): Fix docstring.
24595
24596 2008-02-01 Kenichi Handa <handa@m17n.org>
24597
24598 * insdel.c (insert_from_gap): Adjust intervals correctly.
24599
24600 2008-02-01 Jason Rumney <jasonr@gnu.org>
24601
24602 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
24603 (pfnGetFontUnicodeRanges): New dynamically loaded function.
24604 (w32_initialize): Try to load it.
24605 (x_get_font_repertory): Use it if available.
24606 (w32_encode_char): Add shortcut for unicode output.
24607
24608 * w32fns.c (w32_load_system_font): Default charset to -1.
24609 (x_to_w32_charset): Match all fonts for unicode.
24610 (w32_to_x_charset): New parameter matching. Don't return partial
24611 or wildcard charsets.
24612 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
24613 (w32_codepage_for_font): Return CP_UNICODE for unicode.
24614 (w32_to_x_font): Match charset to real charset.
24615 (enum_font_cb2): Always list unicode versions.
24616
24617 * makefile.w32-in (temacs): Increase EMHEAP.
24618
24619 2008-02-01 Jason Rumney <jasonr@gnu.org>
24620
24621 * w32term.c (w32_encode_char): New charset parameter.
24622 font_info.encoding becomes encoding_type.
24623 (x_get_font_repertory): New function. Warning: stub only!
24624 (x_new_font): Return quickly if font already set.
24625 (x_new_fontset): fontsetname parameter is Lisp_Object.
24626 Use new fs_query_fontset. Try new_fontset_from_font_name.
24627 Use fontset_name for return value.
24628
24629 * w32term.h: Declare x_get_font_repertory.
24630
24631 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
24632 place of find_charset_in_text. Use encode_coding_object in place
24633 of encode_coding.
24634 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
24635 decode_coding.
24636
24637 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
24638 of x_new_fontset.
24639 (w32_load_system_font): Initialize charset as unicode.
24640 font_info.encoding becomes encoding_type.
24641 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
24642 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
24643 (syms_of_w32fns): Set get_font_repertory_func.
24644
24645 * w32console.c: Include character.h. Use terminal_encode_buffer
24646 from term.c.
24647 (write_glyphs): Use new version of encode_terminal_code.
24648 Use encode_coding_object in place of encode_coding.
24649
24650 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
24651 encoding becomes encoding_type.
24652
24653 * term.c (terminal_encode_buffer): Make externally visible.
24654
24655 * makefile.w32-in: Add character.h dependancies.
24656 (character.o, chartab.o): New targets.
24657
24658 2008-02-01 Kenichi Handa <handa@m17n.org>
24659
24660 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
24661 CODING_ID_EOL_TYPE.
24662
24663 2008-02-01 Andreas Schwab <schwab@suse.de>
24664
24665 * coding.c (produce_chars): Revert last change.
24666
24667 2008-02-01 Kenichi Handa <handa@m17n.org>
24668
24669 * charset.h (charset_unicode): Extern it.
24670
24671 * charset.c (string_xstring_p): Check by (C >= 0x100).
24672 (find_charsets_in_text): Change format of the arc CHARSETS.
24673 New arg MULTIBYTE.
24674 (Ffind_charset_region, Ffind_charset_string): Adjust for the
24675 change of find_charsets_in_text.
24676 (Fsplit_char): Fix doc. Never return unknown.
24677
24678 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
24679
24680 * coding.c (Fdefine_coding_system_alias):
24681 Update Vcoding_system_list.
24682
24683 * fontset.c (load_font_get_repertory): Pay attention to the case
24684 that ENCODING of a font is specified by a char-table.
24685
24686 * xterm.c (x_get_font_repertory): Handle the case that the
24687 encoding of font is other than Unicode.
24688
24689 2008-02-01 Kenichi Handa <handa@m17n.org>
24690
24691 * term.c (encode_terminal_code): Don't handle glyph-table.
24692 Check if a character is encodable by the terminal coding system.
24693 If not, produces proper number of `?'s. Update
24694 terminal_encode_buffer and terminal_encode_buf_size if necessary.
24695 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
24696
24697 2008-02-01 Kenichi Handa <handa@m17n.org>
24698
24699 * term.c (terminal_encode_buffer, terminal_encode_buf_size):
24700 New variables.
24701 (encode_terminal_code): Change argument. Encode multiple
24702 characters at once. Store the result of encoding in
24703 terminal_encode_buffer.
24704 (write_glyphs, insert_glyphs): Adjust for the change of
24705 encode_terminal_code.
24706 (term_init): Initialize terminal_encode_buffer and
24707 terminal_encode_buf_size.
24708
24709 * coding.c (consume_chars): If coding->src_object is nil, don't
24710 check annotation.
24711
24712 2008-02-01 Kenichi Handa <handa@m17n.org>
24713
24714 * character.c (char_string): Use ASCII_CHAR_P instead of
24715 SINGLE_BYTE_CHAR_P.
24716
24717 2008-02-01 Kenichi Handa <handa@m17n.org>
24718
24719 * xdisp.c (handle_auto_composed_prop): Check if the last
24720 characters of auto-composed region is newly composed with the
24721 following characters.
24722 (handle_composition_prop): Fix checking of point being inside
24723 composition.
24724
24725 2008-02-01 Kenichi Handa <handa@m17n.org>
24726
24727 * fns.c (concat): Don't change multibyteness of the result by
24728 concatenating an 8-bit character.
24729
24730 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
24731 multibyteness of the result when newelt is an 8-bit character.
24732
24733 2008-02-01 Dave Love <fx@gnu.org>
24734
24735 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
24736 EMACS_INT.
24737
24738 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
24739
24740 * xfaces.c (face_numeric_value): Declare dim size_t.
24741 (Finternal_lisp_face_equal_p): Remove unused f.
24742
24743 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
24744 (MATRIX_ROW): Remove unused vars.
24745 (draw_glyphs, x_insert_glyphs, fast_find_position)
24746 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
24747 byte/char counts.
24748
24749 * regex.c (regex_compile): Remove unused var.
24750
24751 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
24752
24753 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
24754 (Faccessible_keymaps, where_is_internal): Remove unused vars.
24755
24756 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
24757
24758 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
24759
24760 * fileio.c (Fwrite_region): Remove unused var.
24761
24762 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
24763 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
24764
24765 * composite.c (Fremove_list_of_text_properties): Declare.
24766
24767 * coding.c (inhibit_pre_post_conversion): Remove (unused).
24768 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
24769 (coding_inherit_eol_type): Remove unused attrs.
24770 (detect_coding): Cast arg of detect_eol.
24771
24772 * charset.c (syms_of_charset): Remove unused var p.
24773 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
24774 byte/char counts.
24775
24776 * casetab.c (set_case_table): Remove unused var.
24777
24778 * window.c (Fdisplay_buffer, Fframe_selected_window):
24779 Remove unused vars.
24780
24781 2008-02-01 Dave Love <fx@gnu.org>
24782
24783 * xterm.c (x_bitmap_mask): Declare.
24784
24785 2008-02-01 Dave Love <fx@gnu.org>
24786
24787 * xterm.c (x_term_init): Fix type error.
24788
24789 * lisp.h: Add Funibyte_char_to_multibyte.
24790
24791 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
24792 (Fset_coding_system_priority): Doc fix.
24793
24794 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
24795
24796 * indent.c (check_composition): Make start and end EMACS_INT.
24797
24798 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
24799
24800 * xdisp.c (handle_composition_prop, check_point_in_composition):
24801 Make buffer positions EMACS_INT.
24802
24803 * composite.c (find_composition, run_composition_function)
24804 (update_compositions, Ffind_composition_internal): Make buffer
24805 positions EMACS_INT.
24806
24807 * composite.h (find_composition, update_compositions):
24808 Make position args EMACS_INT.
24809
24810 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
24811
24812 * intervals.c (get_property_and_range):
24813 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
24814
24815 * unexalpha.c: Don't include varargs.h.
24816
24817 2008-02-01 Dave Love <fx@gnu.org>
24818
24819 * coding.h (ENCODE_UTF_8): New.
24820
24821 * Makefile.in (gtkutil.o): Depend on coding.h.
24822
24823 * coding.c (Fset_coding_system_priority): Doc fix.
24824
24825 2008-02-01 Kenichi Handa <handa@m17n.org>
24826
24827 * fileio.c (Finsert_file_contents): Call setup_coding_system in
24828 the case of auto saving.
24829
24830 2008-02-01 Andreas Schwab <schwab@suse.de>
24831
24832 * chartab.c (map_char_table, map_char_table_for_charset):
24833 Protect `range' from GC.
24834
24835 2008-02-01 Kenichi Handa <handa@m17n.org>
24836
24837 * coding.c (decode_coding_sjis): Check bytes more rigidly.
24838
24839 2008-02-01 Kenichi Handa <handa@m17n.org>
24840
24841 * fileio.c (choose_write_coding_system): Return a decided coding system.
24842 (Fwrite_region): Set Vlast_coding_system_used to the return value
24843 of choose_write_coding_system.
24844
24845 2008-02-01 Kenichi Handa <handa@m17n.org>
24846
24847 * charset.c (Fset_charset_priority): Pay attention to duplicated
24848 arguments.
24849
24850 * coding.c (QCcategory): New variable.
24851 (syms_of_coding): Defsym it. Set all elements of
24852 Vcoding_category_table and their symbol values.
24853 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
24854 coding-category-XXX, and coding-category-list.
24855 (Fdefine_coding_system_internal): Add category in the plist.
24856
24857 2008-02-01 Kenichi Handa <handa@m17n.org>
24858
24859 * callproc.c (Fcall_process): Handle carryover correctly.
24860
24861 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
24862 (raw_text_coding_system): Check NILP (coding_system).
24863 (coding_inherit_eol_type): Check NILP (coding_system) and
24864 NILP (parent).
24865 (consume_chars): Fix for the case of raw-text.
24866
24867 * process.c (read_process_output): Handle carryover correctly.
24868
24869 2008-02-01 Dave Love <fx@gnu.org>
24870
24871 * regex.c (re_search_2): Fix last change.
24872
24873 2008-02-01 Kenichi Handa <handa@m17n.org>
24874
24875 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
24876 target_multibyte. Even in a unibyte case, return a converted
24877 multibyte char.
24878 (GET_CHAR_AFTER): New macro.
24879 (PATFETCH): Translate via multibyte char.
24880 (HANDLE_UNIBYTE_RANGE): Delete this macro.
24881 (SETUP_MULTIBYTE_RANGE): New macro.
24882 (regex_compile): Setup compiled code so that its multibyteness
24883 matches that of a target. Fix the handling of "[X-YZ]" using
24884 SETUP_MULTIBYTE_RANGE.
24885 (analyse_first) <charset>: For filling fastmap for all multibyte
24886 characters, don't check by BASE_LEADING_CODE_P.
24887 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
24888 the same as RE_MULTIBYTE_P (bufp) now.
24889 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
24890 (TARGET_CHAR_AND_LENGTH): Delete this macro.
24891 (TRANSLATE_VIA_MULTIBYTE): New macro.
24892 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
24893 It is the same as RE_MULTIBYTE_P (bufp) now.
24894 <exactn>: Translate via multibyte.
24895 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH.
24896 Don't translate it.
24897 <charset, charset_not>: Fetch a character by
24898 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
24899 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
24900 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
24901 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
24902 by GET_CHAR_AFTER.
24903 (bcmp_translate): Likewise.
24904
24905 * search.c (compile_pattern): Check the member target_multibyte,
24906 not the member multibyte of buf.
24907
24908 * lread.c (read1): While reading a string, set force_singlebyte
24909 and force_multibyte correctly.
24910
24911 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
24912 up of unibyte_to_multibyte_table.
24913
24914 2008-02-01 Kenichi Handa <handa@m17n.org>
24915
24916 * coding.c (setup_coding_system): If coding has
24917 post-read-conversion or pre-write-conversion, set
24918 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
24919 respectively.
24920 (decode_coding_gap): Run post-read-conversion if any.
24921
24922 * fileio.c (Finsert_file_contents): Even if we read into a
24923 unibyte buffer, check if we must decode the result or not.
24924
24925 2008-02-01 Kenichi Handa <handa@m17n.org>
24926
24927 * coding.c (make_conversion_work_buffer): Change the work buffer
24928 name to the same one as that of Emacs 21.
24929
24930 2008-02-01 Kenichi Handa <handa@m17n.org>
24931
24932 * coding.h (make_conversion_work_buffer): Adjust prototype.
24933 (code_conversion_restore): Don't extern it.
24934
24935 * coding.c (detected_mask): Delete unused variable.
24936 (decode_coding_iso_2022): Pay attention to the byte sequence of
24937 CTEXT extended segment, and retain those bytes as is.
24938 (decode_coding_ccl): Delete unused variable `valids'.
24939 (setup_coding_system): Delete unused variable `category'.
24940 (consume_chars): Delete unused variable `category'. Make it work
24941 for non-multibyte case.
24942 (make_conversion_work_buffer): Change argument.
24943 (saved_coding): Delete unused variable.
24944 (code_conversion_restore): Don't check saved_coding->destination.
24945 (code_conversion_save): New function.
24946 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
24947 instead of record_unwind_protect.
24948 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
24949 (detect_coding_system): Delete unused variable `mask'.
24950 (Fdefine_coding_system_internal): Delete unused variable id.
24951
24952 * fileio.c (kill_workbuf_unwind): New function.
24953 (Finsert_file_contents): On replacing, call
24954 make_conversion_work_buffer with correct args, and call
24955 record_unwind_protect with the first arg kill_workbuf_unwind.
24956
24957 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
24958
24959 2008-02-01 Kenichi Handa <handa@m17n.org>
24960
24961 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
24962 (fontset_add): Fix for the case that TO is less than TO1.
24963 (Ffontset_info): Don't use fallback fontset on checking the
24964 default fontset.
24965 (dump_fontset): New function for debugging.
24966
24967 * coding.c (Fdefine_coding_system_internal): Fix for the case that
24968 coding_type is Qcharset.
24969
24970 2008-02-01 Kenichi Handa <handa@m17n.org>
24971
24972 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
24973 (map_char_table): Don't inherit the value from the parent on
24974 initializing VAL. Adjust for the above change.
24975
24976 2008-02-01 Kenichi Handa <handa@m17n.org>
24977
24978 * coding.c (Qsignature, Qendian): Delete these variables.
24979 (syms_of_coding): Don't initialize them.
24980 (CATEGORY_MASK_UTF_16_AUTO): New macro.
24981 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
24982 detect_info->found.
24983 (decode_coding_utf_16): Don't detect BOM here.
24984 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
24985 is NOT utf_16_without_bom.
24986 (setup_coding_system): For a coding system of type utf-16, check
24987 if the attribute :endian is Qbig or not (not nil or not), and set
24988 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
24989 (detect_coding): If coding type is utf-16 and BOM detection is
24990 required, detect it.
24991 (Fdefine_coding_system_internal): For a coding system of type
24992 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
24993
24994 2008-02-01 Kenichi Handa <handa@m17n.org>
24995
24996 * coding.c (coding_set_source): Fix for the case that the current
24997 buffer is different from coding->src_object.
24998 (decode_coding_object): Don't use the conversion work buffer if
24999 DST_OBJECT is a buffer.
25000
25001 2008-02-01 Dave Love <fx@gnu.org>
25002
25003 * lread.c (read_emacs_mule_char) [len==2]: Index
25004 emacs_mule_charset correctly.
25005
25006 2008-02-01 Dave Love <fx@gnu.org>
25007
25008 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
25009 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
25010 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
25011 treated specially.)
25012 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
25013 (detected_mask): Remove Big5 bits.
25014
25015 2008-02-01 Kenichi Handa <handa@m17n.org>
25016
25017 The following changes are to make the font rescaling facility
25018 compatible with Emacs 21.
25019
25020 * xfaces.c (Vface_font_rescale_alist): Rename from
25021 Vface_resizing_fonts.
25022 (struct font_name): Rename member resizing_ratio to rescale_ratio.
25023 (font_rescale_ratio): Rename from font_resizing_ratio.
25024 (split_font_name): Set font->rescale_ratio.
25025 (better_font_p): Pay attention to font->rescale_ratio.
25026 (build_scalable_font_name): Likewise. Change RESX, and RESY
25027 fields.
25028 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
25029
25030 2008-02-01 Kenichi Handa <handa@m17n.org>
25031
25032 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
25033 (Qutf_16_le): Remove these variables.
25034 (syms_of_coding): Don't DEFSYM them.
25035 (decode_coding_utf_16): Fix handling of BOM.
25036 (encode_coding_utf_16): Fix handling of BOM.
25037
25038 2008-02-01 Kenichi Handa <handa@m17n.org>
25039
25040 * fileio.c (Finsert_file_contents): On replacing, before decoding
25041 the file into the work buffer, set point of the work buffer to the end.
25042
25043 2008-02-01 Dave Love <fx@gnu.org>
25044
25045 * coding.c (Fcheck_coding_systems_region): Fix type errors.
25046
25047 2008-02-01 Dave Love <fx@gnu.org>
25048
25049 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
25050 and fix C types.
25051
25052 2008-02-01 Kenichi Handa <handa@m17n.org>
25053
25054 * xdisp.c (SKIP_GLYPHS): New macro.
25055 (set_cursor_from_row): Pay attention to string display properties.
25056
25057 * category.c (copy_category_entry): Fix for the case that RANGE
25058 is an integer.
25059
25060 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
25061
25062 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
25063
25064 2008-02-01 Kenichi Handa <handa@m17n.org>
25065
25066 * charset.c (Fcharset_id_internal): New function.
25067 (syms_of_charset): Defsubr it.
25068
25069 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
25070 with the last arg charset_list acquired from coding.
25071 (Fdefine_coding_system_internal): For ccl-based coding system, fix
25072 the attribute coding_attr_ccl_valids.
25073
25074 * coding.h (enum define_coding_ccl_arg_index): Set the first
25075 member coding_arg_ccl_decoder to coding_arg_max.
25076
25077 * ccl.h (ccl_driver): Adjust prototype.
25078
25079 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
25080 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
25081 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
25082 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
25083 last arg Qnil.
25084
25085 2008-02-01 Kenichi Handa <handa@m17n.org>
25086
25087 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
25088 call encode_char.
25089
25090 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
25091
25092 2008-02-01 Dave Love <fx@gnu.org>
25093
25094 * composite.c (syms_of_composite): Make composition_hash_table weak.
25095
25096 2008-02-01 Kenichi Handa <handa@m17n.org>
25097
25098 * dispextern.h (check_face_attributes, generate_ascii_font_name)
25099 (font_name_registry): Don't extern them.
25100 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
25101
25102 * fontset.h (Qfontset): Don't extern it.
25103 (new_fontset_from_font_name): Extern it.
25104
25105 * fontset.c: Give 8 extra slots to fontset objects.
25106 (Qfontset_info): New variable.
25107 (syms_of_fontset): Defsym it.
25108 (FONTSET_FALLBACK): New macro.
25109 (fontset_face): Try also the default fontset.
25110 (make_fontset): Realize a fallback fontset from the default fontset.
25111 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
25112 using split_font_name_into_vector and build_font_name_from_vector.
25113 (Fset_fontset_font): Access the elements of font_spec by enum
25114 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
25115 name by using split_font_name_into_vector.
25116 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
25117 generate a proper font name from the fontset name.
25118 Update Vfontset_alias_alist.
25119 (n_auto_fontsets): New variable.
25120 (new_fontset_from_font_name): New function.
25121 (Ffont_info): Store the information about fonts generated from the
25122 default fontset in the first extra slot of the returned char-table.
25123
25124 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
25125 (font_name_registry): Delete function.
25126 (split_font_name_into_vector): New function.
25127 (build_font_name_from_vector): New function.
25128 (font_list): The argument REGISTRY is now a list of registry names.
25129 (choose_face_font): If we are choosing an ASCII font, and ATTRS
25130 specifies an explicit font name, return the name as is. Make a
25131 list of registy names.
25132
25133 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
25134 of x_new_fontset.
25135 (Fx_create_frame): Don't call x_new_fontset here. Just use
25136 x_list_fonts to check the existence of fonts.
25137
25138 * xterm.h (x_new_fontset): Adjust prototype.
25139
25140 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
25141 string. Use new_fontset_from_font_name to create a fontset from a
25142 font name.
25143
25144 2008-02-01 Kenichi Handa <handa@m17n.org>
25145
25146 * syntax.c (Vfind_word_boundary_function_table): New name for
25147 Vnext_word_boundary_function_table.
25148 (find-word-boundary-function-table): New name for
25149 next-word-boundary-function-table.
25150
25151 2008-02-01 Dave Love <fx@gnu.org>
25152
25153 * Makefile.in: Fix some dependencies.
25154
25155 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
25156 set it to nil before returning.
25157
25158 * composite.c (update_compositions): Fix type error.
25159
25160 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
25161
25162 2008-02-01 Kenichi Handa <handa@m17n.org>
25163
25164 * xterm.c (x_new_font): Optimize for the case that the font is
25165 already set for the frame.
25166
25167 2008-02-01 Kenichi Handa <handa@m17n.org>
25168
25169 * chartab.c (char_table_ascii): Check if the char table contents
25170 is sub-char-table or not.
25171 (char_table_set, char_table_set_range): Fix argument to
25172 char_table_ascii.
25173
25174 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
25175 (detect_coding_utf_8, detect_coding_utf_16)
25176 (detect_coding_emacs_mule, detect_coding_iso_2022)
25177 (detect_coding_sjis, detect_coding_big5)
25178 (detect_coding_ccl, detect_coding_charset): Change argument MASK
25179 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
25180 sequence is valid in this coding system. Change callers.
25181 (MAX_ANNOTATION_LENGTH): New macro.
25182 (ADD_ANNOTATION_DATA): New macro.
25183 (ADD_COMPOSITION_DATA): Change argument. Change callers.
25184 Call ADD_ANNOTATION_DATA. Change the format of annotation data.
25185 (ADD_CHARSET_DATA): New macro.
25186 (emacs_mule_char): New argument ID. Change callers.
25187 (decode_coding_emacs_mule, decode_coding_iso_2022)
25188 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
25189 Produce charset annotation data in coding->charbuf.
25190 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
25191 to charset annotation data in coding->charbuf.
25192 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
25193 coding->common_flags if the coding system is iso-2022 based and
25194 uses designation.
25195 (produce_composition): Adjust for the new annotation data format.
25196 (produce_charset): New function.
25197 (produce_annotation): Handle charset annotation.
25198 (handle_composition_annotation, handle_charset_annotation):
25199 New functions.
25200 (consume_chars): Handle charset annotation. Utilize the above two
25201 functions.
25202 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
25203 buffer, get the deleted text as a string and set
25204 coding->src_object to that string.
25205 (detect_coding, detect_coding_system): Use the new struct
25206 coding_detection_info.
25207
25208 * coding.h (struct coding_detection_info): New structure.
25209 (struct coding_system): Adjust prototype of the member `detector'.
25210 (CODING_ANNOTATE_CHARSET_MASK): New macro.
25211
25212 2008-02-01 Kenichi Handa <handa@m17n.org>
25213
25214 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
25215
25216 2008-02-01 Dave Love <fx@gnu.org>
25217
25218 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
25219 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
25220 to new local and nullify apropos_accumulate before returning.
25221 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
25222
25223 2008-02-01 Kenichi Handa <handa@m17n.org>
25224
25225 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
25226 correctly.
25227
25228 2008-02-01 Dave Love <fx@gnu.org>
25229
25230 * fns.c (Flanginfo): Call synchronize_system_time_locale.
25231
25232 2008-02-01 Kenichi Handa <handa@m17n.org>
25233
25234 The following changes are to make character composition happen
25235 automatically on displaying.
25236
25237 * Makefile.in (lisp, shortlisp): Add composite.elc.
25238
25239 * composite.h (Qauto_composed, Vauto_composition_function)
25240 (Qauto_composition_function): Extern them.
25241
25242 * composite.c (Vcomposition_function_table)
25243 (Qcomposition_function_table): Delete variables.
25244 (Qauto_composed, Vauto_composition_function)
25245 (Qauto_composition_function): New variables.
25246 (run_composition_function): Don't call
25247 compose-chars-after-function.
25248 (update_compositions): Clear `auto-composed' text property.
25249 (compose_chars_in_text): Delete this function.
25250 (syms_of_composite): Staticpro Qauto_composed and
25251 Qauto_composition_function. Declare Vauto_composition_function as
25252 a Lisp variable.
25253
25254 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
25255
25256 * xdisp.c (it_props): Add an entry for Qauto_composed.
25257 (handle_auto_composed_prop): New function.
25258
25259 * xselect.c (selection_data_to_lisp_data): Don't call
25260 compose_chars_in_text.
25261
25262 2008-02-01 Dave Love <fx@gnu.org>
25263
25264 * keyboard.c (read_char): Modify checking around use of
25265 Vkeyboard_translate_table.
25266
25267 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
25268 and fix C types.
25269
25270 2008-02-01 Kenichi Handa <handa@m17n.org>
25271
25272 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
25273 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
25274 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
25275 the case that the last byte is '\r' correctly.
25276 (decode_coding): Flush out the unprocessed data correctly.
25277 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
25278
25279 2008-02-01 Dave Love <fx@gnu.org>
25280
25281 * xterm.c (XTread_socket): Fix changes for defined keysyms.
25282 Add XK_ISO... case.
25283 (xaw_scroll_callback): Revert last change.
25284
25285 2008-02-01 Kenichi Handa <handa@m17n.org>
25286
25287 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
25288
25289 2008-02-01 Kenichi Handa <handa@m17n.org>
25290
25291 * xfaces.c (Vface_resizing_fonts): New variable.
25292 (struct font_name): New member `resizing_ratio'.
25293 (font_resizing_ratio): New function.
25294 (split_font_name): Set font->resizing_ratio.
25295 (better_font_p): Pay attention to font->resizing_ratio.
25296 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
25297 RESX, and RESY fields.
25298 (try_alternative_families): Try scalable fonts if
25299 Vscalable_fonts_allowed is not Qt.
25300 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
25301
25302 2008-02-01 Dave Love <fx@gnu.org>
25303
25304 * xterm.c (xaw_scroll_callback): Cast correctly.
25305
25306 2008-02-01 Dave Love <fx@gnu.org>
25307
25308 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
25309 (lispy_kana_keys): Comment out.
25310 (make_lispy_event) [XK_kana_A]: Comment out.
25311
25312 * xterm.c (xaw_scroll_callback): Cast call_data.
25313 (XTread_socket): Deal with ASCII keysyms.
25314 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
25315
25316 2008-02-01 Dave Love <fx@gnu.org>
25317
25318 * xterm.c (Vx_keysym_table): New.
25319 (syms_of_xterm): Initialize it.
25320 (XTread_socket): Use it.
25321 From head: Eliminate incorrect optimization that tried to avoid
25322 decoding the output of X*LookupString.
25323 (x_get_font_repertory): Delete charset declaration.
25324
25325 2008-02-01 Kenichi Handa <handa@m17n.org>
25326
25327 * coding.c (detect_coding_charset): If only ASCII bytes are found,
25328 return 0.
25329 (Fdefine_coding_system_internal):
25330 Setup CODING_ATTR_ASCII_COMPAT (attrs) correctly.
25331
25332 2008-02-01 Dave Love <fx@gnu.org>
25333
25334 * coding.c (Fcheck_coding_system): Doc fix.
25335
25336 * editfns.c (Finsert_byte): Return a proper value.
25337
25338 2008-02-01 Kenichi Handa <handa@m17n.org>
25339
25340 * coding.c (decode_coding): Fix args to translate_chars.
25341 Pay attention to Vstandard_translation_table_for_decode.
25342 (encode_coding): Fix args to translate_chars. Pay attention to
25343 Vstandard_translation_table_for_encode.
25344
25345 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
25346 SINGLE_BYTE_CHAR_P.
25347
25348 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
25349 not by SINGLE_BYTE_CHAR_P.
25350
25351 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
25352 SINGLE_BYTE_CHAR_P.
25353
25354 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
25355 SINGLE_BYTE_CHAR_P.
25356
25357 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
25358 by SINGLE_BYTE_CHAR_P.
25359
25360 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
25361 SINGLE_BYTE_CHAR_P.
25362
25363 2008-02-01 Dave Love <fx@gnu.org>
25364
25365 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
25366
25367 2008-02-01 Dave Love <fx@gnu.org>
25368
25369 * fns.c (Flanginfo): Fix typo.
25370
25371 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
25372
25373 2008-02-01 Kenichi Handa <handa@m17n.org>
25374
25375 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
25376 (detect_coding_emacs_mule, detect_coding_iso_2022)
25377 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
25378 incomplete byte sequence. Don't update *mask when correctly detected.
25379 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
25380 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
25381 (detect_coding, detect_coding_system): Adjust for the changes above.
25382
25383 2008-02-01 Kenichi Handa <handa@m17n.org>
25384
25385 * character.c (char_string): Rename from
25386 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
25387 (string_char): Rename from string_char.
25388
25389 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
25390 if C is greater than MAX_3_BYTE_CHAR.
25391 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE):
25392 Call string_char instead of string_char_with_unification.
25393
25394 2008-02-01 Dave Love <fx@gnu.org>
25395
25396 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
25397
25398 2008-02-01 Kenichi Handa <handa@m17n.org>
25399
25400 * keymap.c (push_key_description): Pay attention to force_multibyte.
25401
25402 * regex.c (re_search_2): Fix for the case of unibyte buffer.
25403
25404 2008-02-01 Dave Love <fx@gnu.org>
25405
25406 * charset.c (define_charset_internal): Rename `supprementary'.
25407
25408 * Makefile.in (lisp, shortlisp): Remove latin-N.
25409
25410 2008-02-01 Dave Love <fx@gnu.org>
25411
25412 * xfns.c (x_window, x_window): Use use_xim.
25413
25414 * xterm.c (use_xim): Initialize.
25415 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
25416 (x_term_init): Maybe set use_xim.
25417
25418 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
25419
25420 2008-02-01 Kenichi Handa <handa@m17n.org>
25421
25422 * search.c (search_buffer): Fix case-fold-search of multibyte
25423 characters.
25424 (boyer_moore): Rename the last argument to char_high_bits.
25425
25426 2008-02-01 Kenichi Handa <handa@m17n.org>
25427
25428 * xdisp.c (display_string): Fix for the case of zero width glyph.
25429
25430 * xfns.c (x_set_font): Change the error message of the case that
25431 x_new_fontset returns Qt.
25432
25433 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
25434 (Finternal_set_lisp_face_attribute): Use signal_error for the
25435 error of invalid fontset.
25436
25437 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
25438 fontset, return Qt.
25439
25440 2008-02-01 Dave Love <fx@gnu.org>
25441
25442 * unexelf.c (unexec): Make .got handling not SGI-specific.
25443
25444 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
25445
25446 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
25447
25448 * keyboard.c (read_key_sequence): Fix type error.
25449
25450 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte):
25451 Fix type error.
25452
25453 * fontset.c (fontset_add): Return Lisp_Object.
25454
25455 2008-02-01 Dave Love <fx@gnu.org>
25456
25457 * charset.h (charset_ordered_list_tick): Declare extern.
25458
25459 2008-02-01 Kenichi Handa <handa@m17n.org>
25460
25461 The following changes (and some of 2008-02-01 changes of mine) are
25462 for handling syntax, category, and case conversion for unibyte
25463 characters by converting them to multibyte on the fly. With these
25464 changes, we don't have to setup syntax and case tables for unibyte
25465 characters in each language environment.
25466
25467 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
25468 multibyte if necessary.
25469
25470 * bytecode.c (Fbyte_code): Likewise.
25471
25472 * character.h (LEADING_CODE_LATIN_1_MIN)
25473 (LEADING_CODE_LATIN_1_MAX): New macros.
25474 (unibyte_to_multibyte_table): Extern it.
25475 (unibyte_char_to_multibyte): New macro.
25476 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
25477 (CHAR_LEADING_CODE): New macro.
25478 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
25479
25480 * character.c (unibyte_to_multibyte_table): New variable.
25481 (unibyte_char_to_multibyte): Move to character.h and define as macro.
25482 (multibyte_char_to_unibyte): If C is an eight-bit character,
25483 convert it to the corresponding byte value.
25484
25485 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
25486 not 1, signals an error. Update the elements of
25487 unibyte_to_multibyte_table.
25488 (init_charset_once): Initialize unibyte_to_multibyte_table.
25489 (syms_of_charset): Define the charset `iso-8859-1'.
25490
25491 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
25492 as is without converting it to unibyte. In a unibyte buffer,
25493 convert C to multibyte before checking the syntax.
25494
25495 * lisp.h (unibyte_char_to_multibyte): Delete extern.
25496
25497 * minibuf.c (Fminibuffer_complete_word): Use the macro
25498 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
25499
25500 * regex.h (struct re_pattern_buffer): New member target_multibyte.
25501
25502 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
25503 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte.
25504 If that is zero, convert an eight-bit char to multibyte.
25505 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
25506 non-emacs case.
25507 (PATFETCH): Convert an eight-bit char to multibyte.
25508 (HANDLE_UNIBYTE_RANGE): New macro.
25509 (regex_compile): Setup the compiled pattern for multibyte chars
25510 even if the given regex string is unibyte. Use PATFETCH_RAW
25511 instead of PATFETCH in many places. To handle `charset'
25512 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
25513 only for ASCII chars.
25514 (analyse_first) <exactn>: Simplify because the compiled pattern
25515 is multibyte.
25516 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
25517 <charset>: Use CHAR_LEADING_CODE to get leading codes.
25518 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
25519 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
25520 multibyte always 1.
25521 (re_search_2): In emacs, set the locale variable multibyte to 1,
25522 otherwise to 0. New local variable target_multibyte. Check it
25523 to decide the multibyteness of STR1 and STR2.
25524 If target_multibyte is zero, convert unibyte chars to multibyte
25525 before translating and checking fastmap.
25526 (TARGET_CHAR_AND_LENGTH): New macro.
25527 (re_match_2_internal): In emacs, set the locale variable multibyte
25528 to 1, otherwise to 0. New local variable target_multibyte.
25529 Check it to decide the multibyteness of STR1 and STR2.
25530 Use TARGET_CHAR_AND_LENGTH to fetch a character from D.
25531 <charset, charset_not>: If multibyte is nonzero, check fastmap
25532 only for ASCII chars. Call bcmp_translate with
25533 target_multibyte, not with multibyte.
25534 <begline>: Declare the local variable C as `unsigned'.
25535 (bcmp_translate): Change the last arg name to target_multibyte.
25536
25537 * search.c (compile_pattern_1): Don't adjust the multibyteness of
25538 the regexp pattern and the matching target. Set cp->buf.multibyte
25539 to the multibyteness of the regexp pattern. Set
25540 cp->but.target_multibyte to the multibyteness of the matching target.
25541 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
25542 FETCH_STRING_CHAR_ADVANCE.
25543 (Freplace_match): Convert unibyte chars to multibyte.
25544
25545 * syntax.c (char_quoted, back_comment, scan_words)
25546 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
25547 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
25548 unibyte chars to multibyte.
25549 (skip_chars): Delete the arg syntaxp, and move the code for
25550 handling syntaxes to skip_syntaxes. Change callers.
25551 Fix the case that the multibyteness of STRING and the current
25552 buffer doesn't match.
25553 (skip_syntaxes): New function.
25554 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
25555 SINGLE_BYTE_CHAR_P.
25556
25557 2008-02-01 Kenichi Handa <handa@m17n.org>
25558
25559 * xfaces.c (QCfontset): New variable.
25560 (LFACE_FONTSET): New macro.
25561 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
25562 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
25563 (Finternal_set_lisp_face_attribute)
25564 (Finternal_get_lisp_face_attribute): Handle QCfontset.
25565 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
25566 check also LFACE_FONTSET_INDEX.
25567 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
25568 attrs[LFACE_FONT_INDEX].
25569 (syms_of_xfaces): Intern and staticpro QCfontset.
25570
25571 * dispextern.h (enum lface_attribute_index): New member
25572 LFACE_FONTSET_INDEX.
25573
25574 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
25575
25576 2008-02-01 Kenichi Handa <handa@m17n.org>
25577
25578 * coding.c (coding_set_destination): Fix coding->destination for
25579 the case converting a region.
25580 (encode_coding_utf_8): Encode eight-bit chars as single byte.
25581 (encode_coding_object): Fix coding->dst_pos and
25582 coding->dst_pos_byte for the case converting a region.
25583
25584 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
25585
25586 * character.h (BYTE8_STRING): New macro.
25587
25588 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
25589
25590 2008-02-01 Kenichi Handa <handa@m17n.org>
25591
25592 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
25593 characters by octal form.
25594
25595 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
25596
25597 * buffer.h (_fetch_multibyte_char_len): Delete extern.
25598 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
25599 _fetch_multibyte_char_len.
25600 (FETCH_CHAR_AS_MULTIBYTE): New macro.
25601
25602 * casetab.c (set_canon, set_identity, shuffle): Simplify.
25603
25604 * casefiddle.c (casify_object): Simplify. Handle the case that
25605 the case conversion change the byte length.
25606 (casify_region): Likewise.
25607
25608 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
25609
25610 * character.c (_fetch_multibyte_char_len): Delete this variable.
25611 (syms_of_character): Setup Vprintable_chars.
25612
25613 * editfns.c (Fchar_equal): Fix for the unibyte case.
25614 (Finsert_byte): New function.
25615 (syms_of_editfns): Defsubr it.
25616
25617 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
25618 of direct code 0x3ffff.
25619
25620 * search.c (Freplace_match): Fix for the unibyte case.
25621
25622 2008-02-01 Kenichi Handa <handa@m17n.org>
25623
25624 * lread.c (safe_to_load_p): Fix the logic.
25625
25626 * syntax.c (scan_words): Don't treat characters belonging to
25627 different scripts as constituting a word.
25628
25629 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
25630
25631 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
25632
25633 * emacs.c (main): In the case of --unibyte, instead of aborting on
25634 finding non-empty buffer, make it unibyte.
25635
25636 2008-02-01 Kenichi Handa <handa@m17n.org>
25637
25638 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
25639 to create a fontset.
25640
25641 2008-02-01 Dave Love <fx@gnu.org>
25642
25643 * character.c (Funibyte_char_to_multibyte): Doc fix.
25644
25645 * xfns.c [HAVE_STDLIB_H]: Fix last change.
25646
25647 2008-02-01 Kenichi Handa <handa@m17n.org>
25648
25649 * fontset.c (fontset_add): Make the type `int'.
25650 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
25651
25652 * character.c (unibyte_char_to_multibyte)
25653 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
25654 charset_unibyte, not charset_primary.
25655
25656 * charset.h (charset_unibyte): Extern it instead of charset_primary.
25657
25658 * charset.c (charset_unibyte): Rename from charset_primary.
25659 (Funibyte_charset): Rename from Fprimary_charset.
25660 (Fset_unibyte_charset): Rename from Fset_primary_charset.
25661 (syms_of_charset): Adjust for the above changes.
25662
25663 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
25664 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
25665 it->multibyte_p is zero.
25666
25667 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
25668 Delete extern.
25669
25670 2008-02-01 Kenichi Handa <handa@m17n.org>
25671
25672 * coding.c (Fdefine_coding_system_internal): Fix category setting
25673 for a coding system of type iso-2022.
25674
25675 2008-02-01 Kenichi Handa <handa@m17n.org>
25676
25677 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
25678
25679 2008-02-01 Kenichi Handa <handa@m17n.org>
25680
25681 * syntax.c (Vnext_word_boundary_function_table): New variable.
25682 (next-word-boundary-function-table): Declare it as a Lisp variable
25683 in syms_of_syntax.
25684 (scan_words): Call functions in Vnext_word_boundary_function_table
25685 if any.
25686
25687 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
25688
25689 * fontset.c (fs_load_font): If fontp->charset is not negative,
25690 return fontp without setting its members.
25691
25692 2008-02-01 Dave Love <fx@gnu.org>
25693
25694 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
25695
25696 * m/sparc.h (HAVE_ALLOCA): Delete.
25697
25698 * s/irix6-5.h: Don't include strings.h.
25699 (bcopy, bzero, bcmp): Don't undef.
25700
25701 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
25702
25703 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
25704 (TIOCSIGSEND): Don't test IRIX6.
25705 (bcopy, bzero, bcmp): Define conditionally.
25706
25707 2008-02-01 Kenichi Handa <handa@m17n.org>
25708
25709 * buffer.c (Qas, Qmake, Qto): New variables.
25710 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
25711 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
25712
25713 * callproc.c (Fcall_process): Don't call insert_1_both directly if
25714 we are inserting a process output into a multibyte buffer.
25715
25716 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
25717 multibyte_char_to_unibyte.
25718
25719 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
25720 by the primary charset, make it eight-bit char.
25721 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
25722
25723 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
25724 (charset_8_bit__control, charset_8_bit_graphic)
25725 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
25726 (define_charset_internal): New function.
25727 (syms_of_charset): Call define_charset_internal for pre-defined
25728 charsets.
25729
25730 * charset.h (charset_8_bit): Extern it.
25731
25732 * coding.c (make_conversion_work_buffer): Adjust for the change
25733 of Fset_buffer_multibyte.
25734 (encode_coding_raw_text): Increment p0 in the loop.
25735
25736 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
25737
25738 * xdisp.c (setup_echo_area_for_printing, set_message_1):
25739 Adjust for the change of Fset_buffer_multibyte.
25740
25741 * fns.c (Fstring_to_multibyte): New function.
25742 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
25743
25744 2008-02-01 Dave Love <fx@gnu.org>
25745
25746 * xfns.c (x_put_x_image): Declare args.
25747
25748 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
25749 (try_font_list): Declare an arg.
25750
25751 * xdisp.c (message2_nolog, set_message): Declare an arg.
25752
25753 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
25754
25755 * syntax.c (scan_sexps_forward): Declare an arg.
25756
25757 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
25758 Declare an arg.
25759
25760 * lisp.h (Fnew_fontset): Declare.
25761
25762 * keymap.c (push_key_description): Call CHARACTERP correctly.
25763
25764 * fontset.c (fontset_add): Declare args. Call make_number correctly.
25765 (face_for_char): Delete unused vars.
25766 (Fset_fontset_font): Doc fix. Delete unused vars.
25767
25768 * doc.c (Fsubstitute_command_keys): Delete unused vars.
25769
25770 * composite.c (update_compositions): Declare arg.
25771
25772 * cm.c (calccost, cmgoto): Declare args.
25773
25774 * charset.c: Remove `emacs' conditional. Doc fixes.
25775 (map_char_table_for_charset): Declare.
25776
25777 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
25778
25779 * ccl.c: Remove `emacs' conditional.
25780
25781 2008-02-01 Kenichi Handa <handa@m17n.org>
25782
25783 The following changes are to allow specifying multiple font
25784 patterns for a character range (specified by script or charset).
25785
25786 * Makefile.in (abbrev.o): Depend on syntax.h.
25787 (xfaces.o): Depend on charset.h.
25788
25789 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
25790 SINGLE_BYTE_CHAR_P.
25791
25792 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
25793
25794 * character.h (Vchar_script_table): Extern it.
25795
25796 * character.c (Vscript_alist): Delete.
25797 (Vchar_script_table, Qchar_script_table): New variable.
25798 (syms_of_character): Declare Vchar_script_table as a lisp variable
25799 and initialize it.
25800
25801 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
25802 have property char-table-extra-slots, make no extra slot.
25803
25804 * dispextern.h (struct face): Delete member `charset'.
25805 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
25806 SINGLE_BYTE_CHAR_P.
25807 (choose_face_font, lookup_non_ascii_face, font_name_registry):
25808 Add prototypes.
25809 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
25810 (generate_ascii_font_name): Rename from generate_ascii_font.
25811
25812 * fontset.h (get_font_repertory_func): New prototype.
25813 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
25814 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
25815
25816 * fontset.c (Qprepend, Qappend): New variables.
25817 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
25818 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
25819 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
25820 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
25821 (fontset_ref_and_range, fontset_add, reorder_font_vector)
25822 (load_font_get_repertory): New functions.
25823 (fontset_set): Delete.
25824 (fontset_face): New arg FACE. Return face ID, not face.
25825 Complete re-write to handle new fontset structure. Change caller.
25826 (free_face_fontset): Use ASET istead of AREF (X) = Y.
25827 (face_for_char): Don't call lookup_face.
25828 (make_fontset_for_ascii_face): New arg FACE.
25829 (fs_load_font): New arg CHARSET_ID. Don't check
25830 Vfont_encoding_alist here.
25831 (find_font_encoding): New function.
25832 (list_fontsets): Use STRINGP, not ! NILP.
25833 (accumulate_script_ranges): New function.
25834 (Fset_fontset_font, Fnew_fontset, Ffontset_info):
25835 Completely re-written to handle new fontset structure.
25836 (Ffontset_font): Return a copy of element.
25837 (syms_of_fontset): Define symbols Qprepend and Qappend.
25838 Fix docstring of font-encoding-alist.
25839
25840 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
25841 (Fset_fotset_font): Fix arguments to 5.
25842
25843 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
25844
25845 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
25846 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
25847 (highlight_trailing_whitespace): Adjust for the change of
25848 lookup_named_face.
25849
25850 * xfaces.c: Include charset.h.
25851 (load_face_font): Delete argument C. Change caller.
25852 (generate_ascii_font_name): Rename from generate_ascii_font.
25853 (font_name_registry): New function.
25854 (cache_face): Store ascii faces before non-ascii faces in buckets.
25855 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
25856 Lookup only ascii faces.
25857 (lookup_non_ascii_face): New function.
25858 (lookup_named_face): Delete argument C. Change caller.
25859 (lookup_derived_face): Delete argument C. Change caller.
25860 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
25861 a string, just call font_list with it.
25862 (choose_face_font): Delete arguments FACE and C. New arg
25863 FONT_SPEC. Change caller.
25864 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
25865 Change caller.
25866 (realize_non_ascii_face): New function.
25867 (realize_x_face): Call load_face_font here.
25868 (realize_tty_face): Delete argument C. Change caller.
25869 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
25870 get a face ID.
25871 (dump_realized_face): Don't print charset of FACE.
25872
25873 * xfns.c (x_set_font): Always call x_new_fontset and
25874 store_frame_parameter.
25875 (Fx_create_frame): Call x_new_fontset, not x_new_font.
25876 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
25877
25878 * xterm.h (x_get_font_repertory): Extern it.
25879
25880 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
25881 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
25882 it->multibyte_p is zero.
25883 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
25884 (x_new_fontset): If FONTSETNAME doesn't match any existing
25885 fontsets, create a new one.
25886 (x_get_font_repertory): New function.
25887
25888 2008-02-01 Kenichi Handa <handa@m17n.org>
25889
25890 * coding.c (Ffind_coding_systems_region_internal): Detect an
25891 ASCII only string correctly.
25892
25893 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
25894 version is 0.
25895
25896 2008-02-01 Kenichi Handa <handa@m17n.org>
25897
25898 * lread.c: Include "coding.h".
25899 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
25900 (load_each_byte, unread_char): New variables.
25901 (readchar_backlog): Delete.
25902 (readchar): Return a character unless load_each_byte is nonzero.
25903 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
25904 cons. If unread_char is not -1, simply return it.
25905 (unreadchar): Handle the case that readcharfun is
25906 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
25907 (read_multibyte): Delete.
25908 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
25909 (read_emacs_mule_char): New functions.
25910 (Fload): Even if the file doesn't have the extension ".elc", if
25911 safe_to_load_p returns a positive version number, assume that the
25912 file contains bytecompiled code. If the version is less than 22,
25913 load the file while decoding multibyte sequences by emacs-mule.
25914 (readevalloop): Don't use readchar_backlog.
25915 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
25916 (Fread_from_string): Pay attention to the case that STREAM is a cons.
25917 (read_escape): Delete the arg BYTEREP.
25918 (read1): Set load_each_byte to 1 temporarily while handling
25919 #@NUMBER. Don't call read_multibyte.
25920 (read_vector): Call Fread with a cons. If readcharfun is
25921 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
25922 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
25923 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
25924 and Qload_force_doc_strings.
25925
25926 2008-02-01 Kenichi Handa <handa@m17n.org>
25927
25928 * xdisp.c (face_before_or_after_it_pos):
25929 Call FETCH_MULTIBYTE_CHAR with byte postion, not char position.
25930
25931 2008-02-01 Kenichi Handa <handa@m17n.org>
25932
25933 * character.h (TRAILING_CODE_P): New macro.
25934 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
25935 (string_char_with_unification): Fix prototype.
25936 (Vscript_alist): Extern it.
25937
25938 * character.c (Vscript_alist): New variable.
25939 (string_char_with_unification, str_as_unibyte)
25940 (string_escape_byte8): Add `const' to local variables.
25941 (syms_of_character): Declare script-alist as a Lisp variable.
25942
25943 * charset.h (Vcharset_ordered_list): Extern it.
25944 (charset_ordered_list_tick): Extern it.
25945 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
25946 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
25947 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
25948 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
25949 (Funify_charset): Adjust for the change of Funify_charset.
25950
25951 * charset.c (charset_ordered_list_tick): New variable.
25952 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
25953 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
25954 deunify instead of unify a charset.
25955 (string_xstring_p): Add `const' to local variables.
25956 (find_charsets_in_text): Add `const' to arguments and local variables.
25957 (encode_char): Adjust for the change of Funify_charset.
25958 Fix detecting of invalid code.
25959 (Fset_charset_priority): Increment charset_ordered_list_tick.
25960 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
25961 and TO_CODE.
25962
25963 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
25964 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
25965 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
25966 (decode_coding_ccl, consume_chars)
25967 (Ffind_coding_systems_region_internal)
25968 (Fcheck_coding_systems_region): Add `const' to local variables.
25969
25970 * print.c (print_object): Use octal form for printing the
25971 contents of a bool vector.
25972
25973 2008-02-01 Dave Love <fx@gnu.org>
25974
25975 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
25976 <version == 20>: Refuse to load.
25977
25978 2008-02-01 Dave Love <fx@gnu.org>
25979
25980 * fns.c: Move coding.h.
25981 (Qcodeset, Qdays, Qmonths): New.
25982 (concat): Use CHARACTERP instead of INTEGERP.
25983 (Flocale_codeset): Delete.
25984 (Flanginfo): New function.
25985 (syms_of_fns): Change accordingly.
25986
25987 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
25988
25989 2008-02-01 Dave Love <fx@gnu.org>
25990
25991 * casetab.c (init_casetab_once, init_casetab_once):
25992 Fix CHAR_TABLE_SET call.
25993
25994 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
25995
25996 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
25997
25998 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
25999 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
26000 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
26001
26002 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
26003
26004 * coding.c (ENCODE_DESIGNATION, decode_eol)
26005 (make_conversion_work_buffer, code_conversion_restore)
26006 (Fdefine_coding_system_internal): Convert Lisp types.
26007 (code_conversion_restore): Use EQ, not ==.
26008 (Fencode_coding_string): Fix code_convert_string call.
26009
26010 * coding.h (code_convert_region): Fix prototype.
26011
26012 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
26013
26014 * fontset.c (fontset_ref, fontset_set, fs_load_font)
26015 (Ffontset_info): Convert Lisp types.
26016
26017 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
26018
26019 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
26020
26021 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
26022
26023 * chartab.c: Include "...h", not <...h> in some cases.
26024
26025 * callproc.c (Fcall_process): Remove unused variables.
26026
26027 2008-02-01 Dave Love <fx@gnu.org>
26028
26029 * coding.c (Fset_coding_system_priority): Allow null arg list.
26030
26031 2008-02-01 Dave Love <fx@gnu.org>
26032
26033 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
26034 (Fself_insert_and_exit): Use CHARACTERP.
26035
26036 * callproc.c (Fcall_process): Remove unused vars.
26037
26038 * xterm.c (XTread_socket): Add extra dead keysyms.
26039
26040 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
26041
26042 * dispextern.h: Remove prototypes for redraw_frame,
26043 redraw_garbaged_frames.
26044
26045 * cmds.c (Fself_insert_command): Use CHARACTERP.
26046
26047 * chartab.c (make_sub_char_table): Remove unused var.
26048 (Fset_char_table_default, Fmap_char_table): Doc fix.
26049
26050 * keymap.c (access_keymap): Remove generic char code.
26051 (push_key_description): Use CHARACTERP.
26052
26053 2008-02-01 Dave Love <fx@gnu.org>
26054
26055 * charset.c: Doc fixes.
26056 (Funify_charset): Extra checking.
26057
26058 2008-02-01 Dave Love <fx@gnu.org>
26059
26060 * lread.c: Remove some unused variables.
26061 (safe_to_load_p): If safe, return the magic number version byte.
26062 (Fload): Maybe use load-with-code-conversion.
26063
26064 2008-02-01 Kenichi Handa <handa@m17n.org>
26065
26066 * category.c (Fmodify_category_entry): Don't modify the contents
26067 of category_set for characters out of the range.
26068 Avoid unnecessary modification.
26069
26070 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
26071 Vchar_unify_table. The default value of the table is now nil.
26072
26073 * character.c (syms_of_character): Setup Vchar_width_table for
26074 eight-bit-control and raw-byte chars.
26075
26076 * charset.h (enum define_charset_arg_index):
26077 Delete charset_arg_parents and add charset_arg_subset and
26078 charset_arg_superset.
26079 (enum charset_attr_index): Delete charset_parents and add
26080 charset_subset and charset_superset.
26081 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
26082 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
26083 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
26084 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
26085 (CHARSET_SUPERSET): New macros.
26086 (charset_work): Extern it.
26087 (ENCODE_CHAR): Use charset_work.
26088 (CHAR_CHARSET_P): Adjust for the change of encoder format.
26089 (map_charset_chars): Extern it.
26090
26091 * charset.c (load_charset_map): Set the default value of encoder
26092 and deunifier char-tables to nil.
26093 (map_charset_chars): Change argument. Change callers.
26094 Use map_char_table_for_charset instead of map_char_table.
26095 (Fmap_charset_chars): New optional args from_code and to_code.
26096 (Fdefine_charset_internal): Adjust for the change of
26097 `define-charset' (:parents -> :subset or :superset).
26098 (charset_work): New variable.
26099 (encode_char, syms_of_charset): Adjust for the change of
26100 Fdefine_charset_internal.
26101 (Ffind_charset_string): Setup the vector `charsets' correctly.
26102
26103 * chartab.c (sub_char_table_ref_and_range): New arg default.
26104 Fix the previous change.
26105 (char_table_ref_and_range): Adjust for the above change.
26106 (map_sub_char_table_for_charset): New function.
26107 (map_char_table_for_charset): New function.
26108
26109 * keymap.c (describe_vector): Handle a char-table directly here.
26110 (describe_char_table): Delete.
26111
26112 * lisp.h (map_charset_chars): Delete.
26113
26114 2008-02-01 Dave Love <fx@gnu.org>
26115
26116 * fns.c (count_combining): Comment out (unused).
26117 (Flocale_codeset): New.
26118 (syms_of_fns): Defsubr it.
26119
26120 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
26121 (size_t): Remove.
26122
26123 2008-02-01 Dave Love <fx@gnu.org>
26124
26125 * Makefile.in (chartab.o): Depend on charset.h.
26126
26127 2008-02-01 Kenichi Handa <handa@m17n.org>
26128
26129 * character.c (syms_of_character): Set the default value of
26130 Vprintable_chars to Qnil.
26131
26132 2008-02-01 Dave Love <fx@gnu.org>
26133
26134 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
26135
26136 2008-02-01 Kenichi Handa <handa@m17n.org>
26137
26138 * charset.c (load_charset_map): Handle the case that from < to
26139 correctly.
26140
26141 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
26142 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
26143 Pay attention to raw-8-bit chars.
26144
26145 2008-02-01 Kenichi Handa <handa@m17n.org>
26146
26147 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
26148 It is not bytecompiled now.
26149
26150 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
26151 (charset_jisx0208): New variables.
26152 (Fdefine_charset_internal): Setup them if appropriate.
26153 (init_charset_once): Initialize them to -1.
26154
26155 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
26156 (charset_jisx0208): Extern them.
26157
26158 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
26159 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
26160 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
26161 (setup_iso_safe_charsets): Fix arguments to Fassq.
26162 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
26163 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
26164 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
26165 (encode_coding_iso_2022): Change the 1st arg to
26166 ENCODE_ISO_CHARACTER to a variable.
26167
26168 2008-02-01 Kenichi Handa <handa@m17n.org>
26169
26170 * charset.h (enum define_charset_arg_index): New enums
26171 charset_arg_min_code and charset_arg_max_code.
26172 (struct charset): New member char_index_offset.
26173
26174 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
26175 Take charset->char_index_offset into account.
26176 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
26177 args[charset_arg_max_code]. Setup charset.char_index_offset.
26178 (syms_of_charset): Fix args to Fdefine_charset_internal.
26179
26180 2008-02-01 Dave Love <fx@gnu.org>
26181
26182 * coding.c (decode_coding_utf_8): Reject overlong sequences.
26183
26184 2008-02-01 Dave Love <fx@gnu.org>
26185
26186 * coding.c: Doc fixes.
26187 (Fcoding_system_aliases): Fix return value.
26188 (Qmac): Remove (duplicated) definition.
26189
26190 2008-02-01 Dave Love <fx@gnu.org>
26191
26192 * charset.c (Fcharset_priority_list, Fset_charset_priority):
26193 New functions.
26194
26195 * character.c (Fstring): Doc fix.
26196
26197 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
26198
26199 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
26200 (font-encoding-alist): Doc fix.
26201
26202 2008-02-01 Dave Love <fx@gnu.org>
26203
26204 * term.c (costs_set): Declare static, non-initialized for pcc.
26205 (encode_terminal_code): Remove unused var.
26206
26207 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
26208 for K&R.
26209
26210 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
26211
26212 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
26213 (suffixes): Move out of make_subsidiaries for K&R.
26214
26215 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
26216
26217 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
26218
26219 2008-02-01 Dave Love <fx@gnu.org>
26220
26221 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
26222
26223 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
26224
26225 2008-02-01 Yong Lu <lyongu@asia-infonet.com>
26226
26227 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
26228
26229 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
26230
26231 2008-02-01 Kenichi Handa <handa@m17n.org>
26232
26233 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
26234 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
26235
26236 2008-02-01 Kenichi Handa <handa@m17n.org>
26237
26238 * coding.c (decode_coding_charset): Adjust for the change of
26239 Fdefine_coding_system_internal.
26240 (Fdefine_coding_system_internal): For a coding system of
26241 `charset' type, store a list of charset IDs in
26242 `charset_attr_charset_valids' element of coding attributes.
26243
26244 2008-02-01 Kenichi Handa <handa@m17n.org>
26245
26246 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
26247 (emacs_mule_char): New arg src. Delete arg `composition'.
26248 Change caller. Handle 2-byte and 3-byte charsets correctly.
26249 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
26250 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
26251 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
26252 (DECODE_EMACS_MULE_21_COMPOSITION):
26253 Call DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
26254 sequence.
26255 (decode_coding_emacs_mule): Handle composition correctly. Rewind
26256 `src' and `consumed_chars' correctly before calling emacs_mule_char.
26257 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
26258 and alt&rule composition.
26259 (decode_coding_iso_2022): Handle composition correctly.
26260 (init_coding_once): Setup emacs_mule_bytes for private charsets.
26261
26262 * charset.c (Fdefine_charset_internal): Fix bug for the case of
26263 re-defining a charset. If the charset has :emacs-mule-id, setup
26264 emacs_mule_bytes.
26265 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
26266
26267 2008-02-01 Kenichi Handa <handa@m17n.org>
26268
26269 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
26270 (encode_coding_big5, encode_coding_charset): If coding requires safe
26271 encoding, produce a character specified by
26272 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
26273
26274 2008-02-01 Dave Love <fx@gnu.org>
26275
26276 * xterm.c (XSetIMValues): Declare.
26277
26278 * process.c: Conditionally include sys/wait.h, pty.h.
26279
26280 * print.c (print_object): Fix print format for 64-bit systems.
26281
26282 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
26283
26284 * buffer.c (emacs_strerror): Declare.
26285
26286 * fontset.c (Fclear_face_cache): Declare.
26287 (accumulate_font_info): Comment-out (unused).
26288 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
26289 variables.
26290
26291 * character.h (string_escape_byte8): Declare.
26292
26293 * charset.c (load_charset_map, load_charset_map_from_file):
26294 Remove unused vars.
26295 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
26296 (Fmap_charset_chars): Doc fix.
26297
26298 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
26299 (Fset_coding_system_priority, Fset_coding_system_priority)
26300 (Fdefine_coding_system_internal): Doc fix.
26301
26302 2008-02-01 Dave Love <fx@gnu.org>
26303
26304 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
26305
26306 2008-02-01 Kenichi Handa <handa@m17n.org>
26307
26308 * character.c (string_escape_byte8): Make multibyte string with
26309 correct size.
26310
26311 * charset.c (Fmake_char): Delete unnecessary code.
26312
26313 2008-02-01 Kenichi Handa <handa@m17n.org>
26314
26315 * xfns.c (x_encode_text): Allocate coding.destination here, and
26316 call encode_coding_object with dst_object Qnil.
26317
26318 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
26319 multibyte form correctly.
26320
26321 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
26322 against Vfont_encoding_alist.
26323
26324 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
26325 handling of charset list.
26326 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
26327 (decode_coding_object): Move point to coding->dst_pos before
26328 calling post-read-conversion function.
26329 (encode_coding_object): Give correct arguments to
26330 pre-write-conversion. Ignore the return value of
26331 pre-write-conversion function. Pay attention to the case that
26332 pre-write-conversion changes the current buffer. If dst_object is
26333 Qt, even if coding->src_bytes is zero, allocate at least one byte
26334 to coding->destination.
26335
26336 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
26337
26338 * charset.c (Fmake_char): Make it more backward compatible.
26339 (Fmap_charset_chars): Fix docstring.
26340
26341 2008-02-01 Dave Love <fx@gnu.org>
26342
26343 * coding.c: Doc fixes.
26344 (Fdefine_coding_system_alias): Use names, not symbols, in
26345 coding-system-alist.
26346
26347 2008-02-01 Kenichi Handa <handa@m17n.org>
26348
26349 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
26350 of calling free_realized_face.
26351
26352 2008-02-01 Yong Lu <lyongu@asia-infonet.com>
26353
26354 * charset.c (read_hex): Don't treat SPC as a comment starter.
26355 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
26356 (Fdecode_char): Fix typo.
26357
26358 2008-02-01 Kenichi Handa <handa@m17n.org>
26359
26360 * charset.h (struct charset): New member `code_space_mask'.
26361
26362 * coding.c (coding_set_source): Delete the local variable beg_byte.
26363 (encode_coding_charset, Fdefine_coding_system_internal):
26364 Delete the local variable charset.
26365 (Fdefine_coding_system_internal):
26366 Setup attrs[coding_attr_charset_valids] correctly.
26367
26368 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
26369 member to check if CODE is valid or not.
26370 (Fdefine_charset_internal): Initialize `code_space_mask' member.
26371 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
26372 is within the range of charset->min_code and carset->max_code.
26373
26374 2008-02-01 Dave Love <fx@gnu.org>
26375
26376 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
26377
26378 * dispextern.h (generate_ascii_font): Fix return type.
26379
26380 * xfaces.c (generate_ascii_font): Fix arg declaration.
26381
26382 * coding.c (coding_inherit_eol_type)
26383 (Fset_terminal_coding_system_internal)
26384 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
26385
26386 2008-02-01 Kenichi Handa <handa@m17n.org>
26387
26388 * coding.c (decode_coding_charset, encode_coding_charset):
26389 Handle multiple charsets correctly.
26390
26391 2008-02-01 Kenichi Handa <handa@m17n.org>
26392
26393 * search.c (boyer_moore): Fix handling of multibyte character
26394 translation.
26395
26396 * xdisp.c (display_mode_element): When the variable `elt' is
26397 changed, update `this' and `lisp_string'.
26398
26399 2008-02-01 Kenichi Handa <handa@m17n.org>
26400
26401 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
26402
26403 * callproc.c (Fcall_process): Be sure to give the current buffer
26404 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
26405
26406 * charset.c (struct charset_map_entries): New struct.
26407 (load_charset_map): Rename from parse_charset_map. New args
26408 entries and n_entries. Change caller.
26409 (load_charset_map_from_file): Rename from load_charset_map.
26410 Change caller. New arg control_flag. Call load_charset_map at
26411 the tail.
26412 (load_charset_map_from_vector): New function.
26413 (Fdefine_charset_internal): Setup charset.compact_codes_p.
26414 (encode_char): If the charset is compact, change a character index
26415 to a code point.
26416
26417 * coding.c (coding_alloc_by_making_gap): Check the case that the
26418 source and destination are the same correctly.
26419 (decode_coding_raw_text): Set coding->consumed_char and
26420 coding->consumed to 0.
26421 (produce_chars): If coding->chars_at_source is nonzero, update
26422 coding->consumed_char and coding->consumed before calling
26423 alloc_destination.
26424 (Fdefine_coding_system_alias): Register ALIAS in
26425 Vcoding_system_alist.
26426 (syms_of_coding): Define `no-conversion' coding system at the tail.
26427
26428 * fileio.c (Finsert_file_contents): Set coding_system instead of
26429 val. If the current buffer is multibyte, always call
26430 decode_coding_gap.
26431
26432 * xfaces.c (try_font_list): Give higher priority to fontset's
26433 family than face's family.
26434
26435 2008-02-01 Kenichi Handa <handa@m17n.org>
26436
26437 * callproc.c (Fcall_process): Be sure to give the current buffer
26438 to decode_coding_c_string.
26439
26440 * xfaces.c (try_font_list): Give a family specified in a fontset
26441 higher priority than a family specified in a face.
26442
26443 2008-02-01 Kenichi Handa <handa@m17n.org>
26444
26445 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
26446 Fix arguments to insert_from_buffer.
26447
26448 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
26449
26450 2008-02-01 Kenichi Handa <handa@m17n.org>
26451
26452 * coding.c (produce_chars): Set the variable `multibytep' correctly.
26453 (decode_coding_gap): Set coding->dst_multibyte correctly.
26454
26455 2008-02-01 Kenichi Handa <handa@m17n.org>
26456
26457 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
26458 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
26459 (encode_coding_utf_16): Substitute coding->default_char for
26460 non-Unicode characters.
26461 (decode_coding): Don't call record_insert here.
26462 (setup_coding_system): Initialize `surrogate' of
26463 coding->spec.utf_16 to 0.
26464 (EMIT_ONE_BYTE): Fix for multibyte case.
26465
26466 * insdel.c (insert_from_gap): Call record_insert.
26467
26468 2008-02-01 Kenichi Handa <handa@m17n.org>
26469
26470 * casefiddle.c (casify_region): Fix multibyte case.
26471
26472 * character.c (c_string_width): Add return type `int'.
26473 (char_string_with_unification): Delete arg ADVANCED.
26474
26475 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
26476 (CHAR_STRING): Adjust for the change of char_string_with_unification.
26477 (CHAR_STRING_ADVANCE): Make it do-while statement.
26478
26479 * chartab.c (sub_char_table_set_range): Optimize for the case
26480 DEPTH == 3. Add workaround code for a GCC optimization bug.
26481
26482 * charset.c (parse_charset_map): Remove an unused variable.
26483
26484 * coding.c: Delete unused variables.
26485
26486 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
26487 earlier. If inserted is zero and the coding system doesn't
26488 require flushing, don't call decode_coding_gap.
26489
26490 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
26491
26492 2008-02-01 Kenichi Handa <handa@m17n.org>
26493
26494 The following changes are for using Unicode as an internal
26495 character model, and use UTF-8 format for buffer/string
26496 representation.
26497
26498 * .gdbinit (xchartable): Adjust for the change of char table structure.
26499 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
26500
26501 * Makefile.in (obj): Add character.o and chartab.o.
26502 (lisp, shortlisp): Remove utf-8.elc.
26503 (*.o): For many files, change dependency on charset.h to
26504 character.h, and add dependency on character.h.
26505 (character.o, chartab.o): New targets.
26506
26507 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
26508 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
26509 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
26510 of "charset.h".
26511
26512 * dired.c, filelock.c: Include "character.h".
26513
26514 * alloc.c: Include "character.h" instead of "charset.h".
26515 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
26516 (syms_of_alloc): Remove defsubr for Smake_char_table.
26517
26518 * buffer.c: Include "character.h" instead of "charset.h", don't
26519 include "coding.h".
26520 (Fset_buffer_multibyte): Adjust for UTF-8.
26521
26522 * buffer.h: EXFUN Fbuffer_live_p.
26523
26524 * callproc.c: Include "character.h" instead of "charset.h".
26525 (Fcall_process): Big change for the new code-conversion APIs.
26526
26527 * casetab.c: Include "character.h" instead of "charset.h".
26528 (set_canon, set_identity, shuffle): Adjust for the new
26529 map_char_table spec.
26530 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
26531 accessing the char table structure.
26532
26533 * chartab.c: New file that implements char table.
26534
26535 * category.c: Include "character.h".
26536 (copy_category_entry): New function.
26537 (copy_category_table): Call map_char_table and copy_category_entry.
26538 (Fmake_category_table): Initialize all top-level slots.
26539 (char_category_set): New function.
26540 (modify_lower_category_set): Delete.
26541 (Fmodify_category_entry): Call char_table_ref_and_range.
26542
26543 * category.h (CATEGORY_SET): Just call char_category_set.
26544
26545 * ccl.c: Include "character.h".
26546 (Qccl, Qcclp): New variables.
26547 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
26548 it's less than 256.
26549 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
26550 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
26551 and DST type.
26552 (ccl_driver): Change types of argument, adjust code accordingly.
26553 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
26554 ccl_driver.
26555 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
26556
26557 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
26558 New members src_multibyte, dst_multibyte, consumed, and produced.
26559 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
26560 (CODING_SPEC_CCL_PROGRAM): New macro.
26561 (ccl_driver): Update prototype.
26562 (Qccl, Qcclp, Fccl_program_p): Extern them.
26563 (CHECK_CCL_PROGRAM): New macro.
26564
26565 * character.c, character.h, chartab.c: New files.
26566
26567 * charset.c: Mostly re-written. Move character and multibyte sequence
26568 handling codes to character.c.
26569
26570 * charset.h: Mostly re-written. Move character and multibyte sequence
26571 handling codes to character.h.
26572
26573 * coding.c, coding.h: Mostly re-written.
26574
26575 * composite.c: Include "character.h" instead of "charset.h".
26576 (CHAR_WIDTH): Move to character.h.
26577 (HASH_KEY, HASH_VALUE): Delete.
26578
26579 * composite.h (enum composition_method): Change order of enumeration
26580 symbols.
26581
26582 * data.c: Include "character.h" instead of "charset.h".
26583 (Faref): Call CHAR_TABLE_REF for a char table.
26584 (Faset): Call CHAR_TABLE_SET for a char table.
26585
26586 * dispextern.h (free_realized_face, check_face_attribytes)
26587 (generate_ascii_font): Extern them.
26588 (free_realized_multibyte_face): Delete extern.
26589
26590 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
26591 table structure.
26592
26593 * editfns.c: Include "character.h" instead of "charset.h".
26594 (Fchar_to_string): Always call CHAR_STRING.
26595
26596 * emacs.c (main): Call init_charset_once, init_charset,
26597 syms_of_chartab, and syms_of_character.
26598
26599 * fileio.c: Include "character.h" instead of "charset.h".
26600 (Finsert_file_contents): Big change for the new code-conversion API.
26601 (choose_write_coding_system, Fwrite_region): Likewise.
26602 (build_annotations_2): Delete.
26603 (e_write): Big change for the new code-conversion API.
26604
26605 * fns.c: Include "character.h" instead of "charset.h".
26606 (copy_sub_char_table): Move to chartab.c.
26607 (Fcopy_sequence): Call copy_char_table for a char table.
26608 (concat): Delete codes calling count_multibyte.
26609 (string_char_to_byte, string_byte_to_char): Adjust for the new
26610 multibyte form.
26611 (internal_equal): Adjust for the change of char table structure.
26612 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
26613 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
26614 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
26615 (char_table_translate, optimize_sub_char_table)
26616 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
26617 chartab.c.
26618 (char_table_ref_and_index): Delete.
26619 (HASH_KEY, HASH_VALUE): Move to lisp.h.
26620 (Fmd5): Call preferred_coding_system instead of accessing
26621 Vcoding_category_list. Adjust for the new code-conversion API.
26622 (syms_of_fns): Move defsubr for char table related functions to
26623 chartab.c.
26624
26625 * fontset.c: Mostly re-written.
26626
26627 * fontset.h (struct font_info): Change type of the member encoding_type.
26628 (enum FONT_SPEC_INDEX): New enum.
26629 (fontset_font_pattern, fs_load_font): Update prototype.
26630 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
26631
26632 * indent.c: Include "character.h" instead of "charset.h".
26633 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
26634
26635 * insdel.c: Include "character.h" instead of "charset.h".
26636 (copy_text): Don't refer to Vnonascii_translation_table.
26637 (insert_from_gap): New function.
26638
26639 * keyboard.c: Include "character.h" instead of "charset.h".
26640 (command_loop_1): Never call direct_output_forward_char before
26641 a non-ASCII character.
26642 (read_char): If Vkeyboard_translate_table is a char table, always
26643 translate a character.
26644
26645 * keymap.c: Include "character.h".
26646 (store_in_keymap): Handle the case that IDX is a cons.
26647 (Fdefine_key): Handle the case that KEY is a cons and the car part
26648 is also a cons (range).
26649 (push_key_description): Adjust for the new character code.
26650 (describe_vector): Call describe_char_table for a char table.
26651 (describe_char_table): New function.
26652
26653 * keymap.h (describe_char_table): Extern it.
26654
26655 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
26656 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
26657 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
26658 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
26659 Delete.
26660 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
26661 structure.
26662 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
26663 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
26664 (CHARTAB_SIZE_BITS_3): New macros.
26665 (chartab_size): Extern it.
26666 (struct Lisp_Char_Table): Re-design.
26667 (struct Lisp_Sub_Char_Table): New structure.
26668 (HASH_KEY, HASH_VALUE): Move from fns.c.
26669 (CHARACTERBITS): Define as 22.
26670 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
26671 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
26672 (GC_SUB_CHAR_TABLE_P): New macro.
26673 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
26674 (code_convert_string_norecord): Delete extern.
26675 (init_character_once, syms_of_character, init_charset)
26676 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
26677
26678 * lread.c: Include "character.h".
26679 (read_multibyte): New arg NBYTES.
26680 (read_escape): Change the meaning of returned *BYTEREP.
26681 (to_multibyte): Delete.
26682 (read1): Adjust the handling of char table and string.
26683
26684 * print.c: Include "character.h" instead of "charset.h".
26685 (print_string): Convert 8-bit raw bytes to octal form by
26686 string_escape_byte8.
26687 (print_object): Adjust for the new multibyte form. Print 8-bit
26688 raw bytes always in octal form. Handle sub char table correctly.
26689
26690 * process.c: Include "character.h" instead of "charset.h".
26691 (read_process_output, send_process): Adjust for the new
26692 code-conversion API.
26693
26694 * puresize.h (BASE_PURESIZE): Increase.
26695
26696 * regex.c: Include "character.h" instead of "charset.h".
26697 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
26698 (regex_compile): Accept a range whose starting and ending
26699 character have different leading bytes.
26700 (analyse_first): Adjust for the above change.
26701
26702 * search.c: Include "character.h" instead of "charset.h".
26703 (search_buffer, boyer_moore): Adjust for the new multibyte form.
26704 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
26705
26706 * syntax.c: Include "character.h" instead of "charset.h".
26707 (syntax_parent_lookup): Delete.
26708 (Fmodify_syntax_entry): Accept a cons as CHAR.
26709 (skip_chars): Adjust for the new multibyte form.
26710 (init_syntax_once): Call char_table_set_range instead of directly
26711 accessing the structure of a char table.
26712
26713 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
26714 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
26715 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
26716 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
26717
26718 * term.c: Include "buffer.h" and "character.h".
26719 (encode_terminal_code, write_glyphs): Adjust for the new
26720 code-conversion API.
26721 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
26722
26723 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
26724
26725 * xdisp.c: Include "character.h".
26726 (get_next_display_element): Adjust for the new multibyte form.
26727 (disp_char_vector): Adjust for the new char table structure.
26728 (decode_mode_spec_coding): Adjust for the new structure of
26729 coding system.
26730 (decode_mode_spec): Adjust for the new code-conversion API.
26731
26732 * xfaces.c: Include "character.h" instead of "charset.h".
26733 (load_face_font): Adjust for the change of choose_face_font and
26734 FS_LOAD_FONT.
26735 (generate_ascii_font): New function.
26736 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
26737 (set_font_frame_param): Adjust for the change of choose_face_font.
26738 (free_realized_face): Make it public.
26739 (free_realized_faces_for_fontset): Rename from
26740 free_realized_multibyte_face. Free also faces realized for ASCII.
26741 (choose_face_font): Change arguments. Adjust for the change of
26742 fontset_font_pattern and FS_LOAD_FONT.
26743
26744 * xfns.c: Include "character.h".
26745 (x_encode_text): Adjust for the new code-conversion API.
26746
26747 * xselect.c: Don't include "charset.h".
26748 (selection_data_to_lisp_data): Adjust for the new code conversion API.
26749
26750 * xterm.c: Include "character.h".
26751 (x_encode_char): New argument CHARSET. Change caller.
26752 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
26753 Call ENCODE_CHAR instead of SPLIT_CHAR.
26754 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
26755 CHAR_WIDTH instead of CHARSET_WIDTH.
26756 (XTread_socket): Adjust for the new code-conversion API.
26757 (x_new_font): Adjust for the change of FS_LOAD_FONT.
26758 (x_load_font): Adjust for the change of struct font.
26759
26760 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
26761
26762 * xfaces.c (face_at_buffer_position): Remove unused vars.
26763
26764 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
26765
26766 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
26767 Fix overflow checking.
26768
26769 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
26770
26771 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
26772 Cancel previous change.
26773
26774 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
26775
26776 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
26777 ccl->eight_bit_control. Fix check for buffer overflow.
26778 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
26779 (ccl_driver): Initialize extra_bytes to 0.
26780
26781 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
26782
26783 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
26784 return it ORed with ctrl_modifier.
26785
26786 2008-01-29 Miles Bader <miles@gnu.org>
26787
26788 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
26789
26790 2008-01-28 Jason Rumney <jasonr@gnu.org>
26791
26792 * w32.c (stat): Don't double check for networked drive.
26793
26794 2008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
26795
26796 * window.c (run_window_configuration_change_hook): New function.
26797 Code extracted from set_window_buffer. Set the selected frame.
26798 (set_window_buffer): Use it.
26799 * window.h (run_window_configuration_change_hook): Declare.
26800 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
26801
26802 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
26803
26804 2008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
26805
26806 * Makefile.in: Remove references to unused macros.
26807
26808 2008-01-26 Eli Zaretskii <eliz@gnu.org>
26809
26810 * w32.c (g_b_init_get_sid_sub_authority)
26811 (g_b_init_get_sid_sub_authority_count): New static variables.
26812 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
26813 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
26814 (init_user_info): Use them to retrieve uid and gid.
26815 Use 500/513, the Windows defaults, as Administrator's uid/gid.
26816 (fstat): Use pw_uid and pw_gid from the_passwd structure for
26817 st_uid and st_gid of the file.
26818
26819 2008-01-26 Jason Rumney <jasonr@gnu.org>
26820
26821 * w32.c (logon_network_drive): New function.
26822 (stat): Use it.
26823
26824 2008-01-26 Chong Yidong <cyd@stupidchicken.com>
26825
26826 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
26827 invisible text covered with an ellipsis.
26828
26829 2008-01-25 Richard Stallman <rms@gnu.org>
26830
26831 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
26832 jump back to beginning. Move some other initializations after that.
26833 (Qwindow_text_change_functions, Vwindow_text_change_functions):
26834 New variables.
26835 (syms_of_xdisp): Init them.
26836
26837 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
26838
26839 * buffer.c (reset_buffer_local_variables):
26840 Implement `permanent-local-hook'.
26841 (Qpermanent_local_hook): New variable.
26842 (syms_of_buffer): Init and staticpro it.
26843
26844 2008-01-25 Michael Albinus <michael.albinus@gmx.de>
26845
26846 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
26847
26848 2008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
26849
26850 * fns.c (Fclrhash): Return TABLE.
26851
26852 2008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26853
26854 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
26855 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
26856 is set even without positional changes.
26857 (x_scroll_bar_clear): Set bar->redraw_needed_p.
26858
26859 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
26860
26861 2008-01-23 Jason Rumney <jasonr@gnu.org>
26862
26863 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
26864
26865 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
26866 the unicode range available in MULE by locale-coding-system.
26867 Improve dbcs lead byte detection. Set event timestamp and modifiers
26868 earlier.
26869
26870 2008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26871
26872 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
26873 [MAC_OSX] (init_mac_osx_environment): Initialize it.
26874 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
26875 when used on child processes.
26876
26877 2008-01-21 Michael Albinus <michael.albinus@gmx.de>
26878
26879 * dbusbind.c (Fdbus_method_return_internal): Rename from
26880 Fdbus_method_return.
26881 (Fdbus_unregister_object): Move to dbus.el.
26882 (Fdbus_call_method, Fdbus_method_return_internal)
26883 (Fdbus_send_signal): Improve debug messages.
26884
26885 2008-01-20 Martin Rudalics <rudalics@gmx.at>
26886
26887 * undo.c (undo_inhibit_record_point): New variable.
26888 (syms_of_undo): Initialize it.
26889 (record_point): Don't record point when undo_inhibit_record_point
26890 is set.
26891
26892 2008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
26893
26894 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
26895
26896 * xdisp.c (Qauto_hscroll_mode): New var.
26897 (syms_of_xdisp): Initialize it.
26898 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
26899 window's buffer.
26900 (hscroll_windows): Don't check automatic_hscrolling_p here.
26901
26902 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
26903 vscroll if we're setting window-buffer to the value it already has.
26904
26905 2008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
26906
26907 * m/intel386.h: Remove references to XENIX.
26908
26909 2008-01-17 Andreas Schwab <schwab@suse.de>
26910
26911 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
26912 instead of HAVE_X86_64_LIB64_DIR.
26913 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
26914
26915 2008-01-17 Glenn Morris <rgm@gnu.org>
26916
26917 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
26918 to HAVE_X86_64_LIB64_DIR.
26919
26920 2008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
26921
26922 * s/irix3-3.h:
26923 * s/irix4-0.h:
26924 * s/386-ix.h:
26925 * s/domain.h:
26926 * s/hpux9-x11r4.h:
26927 * s/hpux9shxr4.h: Remove files for systems no longer supported.
26928
26929 * sysdep.c: Remove code containing references to symbols defined
26930 by unsupported systems.
26931
26932 2008-01-16 Glenn Morris <rgm@gnu.org>
26933
26934 * coding.c (select-safe-coding-system-function): Doc fix.
26935
26936 2008-01-15 Glenn Morris <rgm@gnu.org>
26937
26938 * config.in: Revert 2008-01-13 change: this is a generated file.
26939
26940 2008-01-13 Tom Tromey <tromey@redhat.com>
26941
26942 * lisp.h: Fix typo.
26943
26944 2008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
26945
26946 * m/sequent-ptx.h:
26947 * m/sequent.h:
26948 * s/ptx.h:
26949 * s/ptx4-2.h:
26950 * s/ptx4.h: Remove files for systems no longer supported.
26951
26952 * callproc.c (Fcall_process): Fix previous change.
26953
26954 2008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
26955
26956 * unexsunos4.c: Remove file, system not supported anymore.
26957
26958 * m/mips.h:
26959 * m/intel386.h:
26960 * callproc.c:
26961 * config.in:
26962 * ecrt0.c:
26963 * emacs.c:
26964 * fileio.c:
26965 * frame.c:
26966 * getpagesize.h:
26967 * keyboard.c:
26968 * lread.c:
26969 * process.c:
26970 * puresize.h:
26971 * sysdep.c:
26972 * systty.h:
26973 * syswait.h:
26974 * unexec.c:
26975 * xdisp.c:
26976 * alloc.c: Remove code containing references to symbols defined by
26977 unsupported systems.
26978
26979 2008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
26980
26981 * coding.c (detect_coding_mask): Fix previous change.
26982
26983 2008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
26984
26985 * coding.c (detect_coding_iso2022): New arg
26986 latin_extra_code_state. Allow Latin extra codes only
26987 when *latin_extra_code_state is nonzero.
26988 (detect_coding_mask): If there is a NULL byte, detect the encoding
26989 as UTF-16 or binary. If Latin extra codes exist, detect the
26990 encoding as ISO-2022 only when there's no other proper encoding is
26991 found.
26992
26993 2008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26994
26995 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
26996 #ifdef MAC_OS.
26997
26998 2008-01-08 Richard Stallman <rms@gnu.org>
26999
27000 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
27001
27002 2008-01-06 Nick Roberts <nickrob@snap.net.nz>
27003
27004 * keyboard.c (parse_menu_item): Don't enclose key bindings on
27005 menu bar in parentheses.
27006
27007 2008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
27008
27009 * m/7300.h:
27010 * m/acorn.h:
27011 * m/alliant-2800.h:
27012 * m/alliant.h:
27013 * m/alliant1.h:
27014 * m/alliant4.h:
27015 * m/altos.h:
27016 * m/amdahl.h:
27017 * m/apollo.h:
27018 * m/att3b.h:
27019 * m/aviion-intel.h:
27020 * m/aviion.h:
27021 * m/celerity.h:
27022 * m/clipper.h:
27023 * m/cnvrgnt.h:
27024 * m/convex.h:
27025 * m/cydra5.h:
27026 * m/delta88k.h:
27027 * m/dpx2.h:
27028 * m/dual.h:
27029 * m/elxsi.h:
27030 * m/f301.h:
27031 * m/gould-np1.h:
27032 * m/gould.h:
27033 * m/i860.h:
27034 * m/ibmps2-aix.h:
27035 * m/ibmrt-aix.h:
27036 * m/ibmrt.h:
27037 * m/irist.h:
27038 * m/is386.h:
27039 * m/isi-ov.h:
27040 * m/mega68.h:
27041 * m/mg1.h:
27042 * m/news-r6.h:
27043 * m/news-risc.h:
27044 * m/news.h:
27045 * m/nh3000.h:
27046 * m/nh4000.h:
27047 * m/ns16000.h:
27048 * m/ns32000.h:
27049 * m/nu.h:
27050 * m/orion.h:
27051 * m/orion105.h:
27052 * m/paragon.h:
27053 * m/pfa50.h:
27054 * m/plexus.h:
27055 * m/pyramid.h:
27056 * m/pyrmips.h:
27057 * m/sh3el.h:
27058 * m/sps7.h:
27059 * m/sr2k.h:
27060 * m/stride.h:
27061 * m/sun1.h:
27062 * m/sun2.h:
27063 * m/sun3-68881.h:
27064 * m/sun3-fpa.h:
27065 * m/sun3-soft.h:
27066 * m/sun3.h:
27067 * m/sun386.h:
27068 * m/symmetry.h:
27069 * m/tad68k.h:
27070 * m/tahoe.h:
27071 * m/targon31.h:
27072 * m/tek4300.h:
27073 * m/tekxd88.h:
27074 * m/tower32.h:
27075 * m/tower32v3.h:
27076 * m/ustation.h:
27077 * m/wicat.h:
27078 * m/xps100.h:
27079 * s/cxux.h:
27080 * s/cxux7.h:
27081 * s/dgux.h:
27082 * s/dgux4.h:
27083 * s/dgux5-4-3.h:
27084 * s/dgux5-4r2.h:
27085 * s/esix.h:
27086 * s/esix5r4.h:
27087 * s/hiuxmpp.h:
27088 * s/hiuxwe2.h:
27089 * s/iris3-5.h:
27090 * s/iris3-6.h:
27091 * s/isc2-2.h:
27092 * s/isc3-0.h:
27093 * s/isc4-0.h:
27094 * s/isc4-1.h:
27095 * s/newsos5.h:
27096 * s/newsos6.h:
27097 * s/osf1.h:
27098 * s/osf5-0.h:
27099 * s/riscix1-1.h:
27100 * s/riscix12.h:
27101 * s/sco4.h:
27102 * s/sco5.h:
27103 * s/sunos4-0.h:
27104 * s/sunos4-1.h:
27105 * s/sunos413.h:
27106 * s/sunos4shr.h:
27107 * s/umax.h:
27108 * s/unipl5-2.h:
27109 * s/xenix.h:
27110 * cxux-crt0.s:
27111 * unexapollo.c:
27112 * unexconvex.c:
27113 * unexenix.c:
27114 * unexsni.c: Remove files for systems no longer supported.
27115
27116 * m/intel386.h: Remove references to unsupported systems.
27117
27118 * w32.c (get_emacs_configuration): Remove reference to i860.
27119
27120 * sysdep.c: Remove dead code.
27121
27122 2008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
27123
27124 * s/rtu.h:
27125 * m/masscomp.h: Remove files. Platform is obsolete.
27126
27127 2008-01-04 Michael Albinus <michael.albinus@gmx.de>
27128
27129 * dbusbind.c (Fdbus_method_return): New function.
27130 (xd_read_message): Add the serial number to the event.
27131 (Fdbus_register_method): Activate the function.
27132
27133 2008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
27134
27135 * keyboard.c (read_key_sequence): Fix typo.
27136
27137 2008-01-03 Michael Albinus <michael.albinus@gmx.de>
27138
27139 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
27140 (xd_signature, xd_append_arg): Handle element type detection for
27141 empty arrays.
27142 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
27143 SDATA () calls; this must be solved more general.
27144 (Fdbus_register_signal): Use SBYTES instead of strlen.
27145
27146 2008-01-03 Magnus Henoch <magnus@zemdatav>
27147
27148 * dbusbind.c (xd_append_arg): Use unsigned char instead of
27149 unsigned int for byte values (necessary for big-endian platform).
27150 (Fdbus_call_method): Handle the case of no returned arguments.
27151
27152 2007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
27153
27154 * dbusbind.c (xd_read_message): Use non-static input_event struct.
27155
27156 2007-12-31 Magnus Henoch <mange@freemail.hu>
27157
27158 * dbusbind.c (xd_signature): Signature of variant is just "v".
27159
27160 2007-12-30 Michael Albinus <michael.albinus@gmx.de>
27161
27162 * dbusbind.c: Fix several errors and compiler warnings.
27163 Reported by Tom Tromey <tromey@redhat.com>.
27164 (XD_ERROR, XD_DEBUG_MESSAGE)
27165 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
27166 (xd_append_arg): Part for basic D-Bus types rewritten.
27167 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
27168 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
27169 appropriate.
27170 (xd_read_message): Return Qnil. Don't signal an error; it is not
27171 useful during event reading.
27172 (Fdbus_register_signal): Signal an error if the check for
27173 FUNCTIONP fails.
27174 (Fdbus_register_method): New function. The implementation is not
27175 complete, the call of the function signals an error therefore.
27176 (Fdbus_unregister_object): New function, renamed from
27177 Fdbus_unregister_signal. The initial check signals an error, if
27178 the object is not well formed.
27179
27180 2007-12-30 Richard Stallman <rms@gnu.org>
27181
27182 * textprop.c (get_char_property_and_overlay):
27183 Signal error if POSITION is out of range in a buffer.
27184
27185 2007-12-29 Martin Rudalics <rudalics@gmx.at>
27186
27187 * w32fns.c (Fx_create_frame): Make copy of frame parameters
27188 because the original parameters are in pure storage now.
27189
27190 2007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27191
27192 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
27193
27194 2007-12-22 Eli Zaretskii <eliz@gnu.org>
27195
27196 * callint.c (syms_of_callint) <command-history>: Add reference to
27197 history-length in the doc string.
27198
27199 2007-12-17 Jason Rumney <jasonr@gnu.org>
27200
27201 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
27202 before passing as wParam.
27203
27204 2007-12-22 Michael Albinus <michael.albinus@gmx.de>
27205
27206 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
27207 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
27208 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
27209 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
27210 as number.
27211 (Fdbus_call_method): Fix docstring.
27212
27213 2007-12-21 Michael Albinus <michael.albinus@gmx.de>
27214
27215 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
27216 New macros.
27217 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
27218 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
27219 Simplify.
27220 (xd_signature): New function.
27221 (xd_append_arg): Compute also signatures. Major rewrite.
27222 (xd_retrieve_arg): Make debug messages friendly.
27223 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
27224 Check for signatures of arguments.
27225
27226 2007-12-19 Michael Albinus <michael.albinus@gmx.de>
27227
27228 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
27229 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
27230 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
27231 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
27232 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
27233 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
27234 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
27235 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
27236 (xd_retrieve_value): Remove. Functionality included in ...
27237 (xd_append_arg): New function.
27238 (Fdbus_call_method, Fdbus_send_signal): Apply it.
27239
27240 2007-12-16 Michael Albinus <michael.albinus@gmx.de>
27241
27242 * dbusbind.c (top): Include <stdio.h>.
27243 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
27244 dbus_message_new_method_call and dbus_message_new_signal.
27245 (Fdbus_register_signal): Rename unique_name to uname.
27246 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
27247 non-existing unique name. Fix typos in matching rule. Return an
27248 object which is useful in Fdbus_unregister_signal.
27249 (Fdbus_unregister_signal): Reimplementation, in order to remove
27250 only the corresponding entry.
27251 (Vdbus_registered_functions_table): Change the order of entries.
27252 Apply these changes in xd_read_message and Fdbus_register_signal.
27253
27254 2007-12-16 Andreas Schwab <schwab@suse.de>
27255
27256 * fileio.c (Finsert_file_contents): Fix overflow check to not
27257 depend on undefined integer overflow.
27258
27259 2007-12-14 Jason Rumney <jasonr@gnu.org>
27260
27261 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
27262 for characters above 127.
27263
27264 2007-12-13 Jason Rumney <jasonr@gnu.org>
27265
27266 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
27267 before dereferencing array.
27268 (lookup_vk_code): Remove zero comparison.
27269
27270 2007-12-14 Michael Albinus <michael.albinus@gmx.de>
27271
27272 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
27273 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
27274 Use `unsigned int' instead of `uint'.
27275 (xd_read_message, Fdbus_register_signal): Split expressions into
27276 multiple lines before operators "&&" and "||", according to the
27277 GNU Coding Standards.
27278
27279 2007-12-14 Eli Zaretskii <eliz@gnu.org>
27280
27281 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
27282
27283 2007-12-12 Juri Linkov <juri@jurta.org>
27284
27285 * buffer.c (Frename_buffer): In interactive spec replace
27286 `read-buffer' with `read-string' that uses `buffer-name-history'
27287 as history, and the current buffer's name as default.
27288
27289 2007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
27290
27291 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
27292 manipulating the backtrace manually.
27293 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
27294 (struct backtrace, backtrace_list): Remove.
27295 (command_loop_1): Remove dead var `no_direct'.
27296
27297 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
27298 preserve non-built-in buffer-local variables.
27299 (Fkill_all_local_variables): Don't re-create&re-set permanent
27300 buffer-local variables.
27301
27302 2007-12-09 Juri Linkov <juri@jurta.org>
27303
27304 * buffer.c (Frename_buffer): Change interactive spec from "s" to
27305 Lisp code that uses `read-buffer' with current buffer as default.
27306
27307 2007-12-08 Michael Albinus <michael.albinus@gmx.de>
27308
27309 * dbusbind.c (xd_read_message): Generate an event for every
27310 registered handler. There might be several handlers registered
27311 for the same signal.
27312 (Fdbus_register_signal): Don't overwrite a registration for the
27313 same signal. Add a new registration if handlers are different.
27314 (Vdbus_registered_functions_table): Rework doc string.
27315
27316 2007-12-07 Michael Albinus <michael.albinus@gmx.de>
27317
27318 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
27319 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
27320 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
27321 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
27322 Unify argument lists.
27323 (xd_read_message, Fdbus_register_signal): Reorder and extend event
27324 arguments and hash table keys. Use unique name for service.
27325 (Fdbus_unregister_signal): Remove checks.
27326 (Vdbus_registered_functions_table): Fix doc string.
27327
27328 2007-12-05 Magnus Henoch <mange@freemail.hu>
27329
27330 * process.c (make_process): Initialize pty_flag to 0.
27331
27332 2007-12-05 Jason Rumney <jasonr@gnu.org>
27333
27334 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
27335 specified XBMs.
27336
27337 2007-12-05 Richard Stallman <rms@gnu.org>
27338
27339 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
27340
27341 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27342
27343 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
27344 New variable.
27345 (mac_try_close_socket) [MAC_OSX]: New function.
27346 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
27347 Update cfsockets_for_select. Replace invalid CFRunLoop source.
27348
27349 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
27350 Use mac_try_close_socket.
27351
27352 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27353
27354 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
27355 reloc_base.
27356 (copy_dysymtab): Compute relocation base here.
27357 (rebase_reloc_address) [__ppc64__]: New function.
27358 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
27359 changed.
27360
27361 2007-12-05 Jason Rumney <jasonr@gnu.org>
27362
27363 * w32proc.c (sys_spawnve): Quote args with wildcards.
27364
27365 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27366
27367 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
27368 __objc_* sections.
27369 (unrelocate) [_LP64]: Set relocation base to address of data segment.
27370
27371 2007-12-05 Michael Albinus <michael.albinus@gmx.de>
27372
27373 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
27374 Move check for Vdbus_registered_functions_table to
27375 xd_read_queued_messages.
27376 (xd_read_queued_messages): Protect xd_read_message calls by
27377 internal_condition_case_1.
27378
27379 2007-12-04 Michael Albinus <michael.albinus@gmx.de>
27380
27381 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
27382 Qdbus_system_bus and Qdbus_session_bus, respectively.
27383 (Vdbus_intern_symbols): Remove.
27384 (Vdbus_registered_functions_table): New hash table.
27385 (XD_SYMBOL_INTERN_SYMBOL): Remove.
27386 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
27387 Rewrite in order to manage registered functions by hash table
27388 Vdbus_registered_functions_table.
27389
27390 2007-12-03 Jan Djärv <jan.h.d@swipnet.se>
27391
27392 * xterm.c: Update URL to Window Manager Specification in comment.
27393
27394 2007-12-02 Michael Albinus <michael.albinus@gmx.de>
27395
27396 * config.in (HAVE_DBUS): Add.
27397
27398 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
27399 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
27400 (obj): Add $(DBUS_OBJ).
27401 (LIBES): Add $(DBUS_LIBS).
27402 (dbusbind.o): New target.
27403
27404 * dbusbind.c: New file.
27405
27406 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
27407
27408 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
27409 (Qdbus_event): New Lisp symbol.
27410 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
27411 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
27412 (keys_of_keyboard): Define dbus-event.
27413
27414 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
27415
27416 2007-12-01 Richard Stallman <rms@gnu.org>
27417
27418 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
27419
27420 2007-11-30 Jason Rumney <jasonr@gnu.org>
27421
27422 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
27423 (w32con_reset_terminal_modes): Clear screen buffer.
27424 (w32_face_attributes): Don't use color indexes that are out of range.
27425 Only reverse the default colors.
27426
27427 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
27428 WINDOWSNT.
27429
27430 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
27431
27432 2007-11-29 Jason Rumney <jasonr@gnu.org>
27433
27434 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
27435 (w32_face_attributes): Use Vtty_defined_color_alist to determine
27436 if the terminal colors are initialized.
27437 (unspecified_fg, unspecified_bg): Remove unused declarations.
27438
27439 2007-11-29 Andreas Schwab <schwab@suse.de>
27440
27441 * keyboard.c (apply_modifiers): Fix typo.
27442
27443 2007-11-29 Richard Stallman <rms@gnu.org>
27444
27445 * keymap.c (Fcurrent_local_map): Doc fix.
27446
27447 2007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
27448
27449 * s/gnu-kfreebsd.h: New file.
27450
27451 2007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
27452
27453 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
27454 Don't cast redundantly.
27455
27456 * keyboard.c (KEY_TO_CHAR): New macro.
27457 (parse_modifiers, apply_modifiers): Accept integer arguments.
27458 (read_key_sequence): Use them to unify the "shift->unshift" mapping
27459 for chars and symbol keys.
27460 After doing such remapping, apply function-key-map again.
27461
27462 2007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
27463
27464 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
27465 compiled anymore.
27466
27467 2007-11-26 Andreas Schwab <schwab@suse.de>
27468
27469 * process.c (list_processes_1): Fix indentation level of the
27470 command column.
27471
27472 2007-11-23 Andreas Schwab <schwab@suse.de>
27473
27474 * editfns.c (Fformat): Handle %c specially since it requires the
27475 argument to be of type int.
27476
27477 2007-11-23 Markus Triska <markus.triska@gmx.at>
27478
27479 * emacs.c (main): Call init_editfns before init_process, since
27480 init_process sets Vprocess_connection_type depending on OS release.
27481
27482 2007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
27483
27484 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
27485 (find_symbol_value): Use do_symval_forwarding.
27486
27487 * data.c (set_internal): Set the value in the `cons-cell' (for
27488 Buffer_Local_values) not only for frame-local variables.
27489
27490 2007-11-22 Andreas Schwab <schwab@suse.de>
27491
27492 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
27493 values to sprintf.
27494 * keymap.c (Fsingle_key_description): Likewise.
27495 * print.c (print_object): Likewise.
27496
27497 2007-11-22 Jan Djärv <jan.h.d@swipnet.se>
27498
27499 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
27500 file for image is nil.
27501
27502 2007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
27503
27504 * term.c: Include stdarg.h.
27505 (fatal): Implement using varargs.
27506 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
27507
27508 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
27509
27510 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
27511 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
27512 Update call to buffer_slot_type_mismatch.
27513 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
27514 (buffer_slot_type_mismatch): Update.
27515 * buffer.c (buffer_local_types): Remove.
27516 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
27517 (defvar_per_buffer): Set the type in the buffer_objfwd.
27518
27519 2007-11-21 Jason Rumney <jasonr@gnu.org>
27520
27521 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
27522 CreateFileMapping returns NULL on failure.
27523
27524 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
27525
27526 * search.c (Fset_match_data): Remove the `evaporate' feature.
27527 (unwind_set_match_data): Don't use the `evaporate' feature.
27528
27529 2007-11-21 Jason Rumney <jasonr@gnu.org>
27530
27531 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
27532
27533 * w32console.c (w32con_write_glyphs): Remove unused variables.
27534
27535 2007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
27536
27537 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
27538
27539 * s/darwin.h (MULTI_KBOARD): Remove.
27540
27541 * macfns.c (x_create_tip_frame, Fx_create_frame)
27542 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
27543
27544 2007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
27545
27546 * buffer.c (Fbuffer_local_value): Remove redundant test.
27547 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
27548 than in `current-buffer' to match the comment.
27549 Do the swap using swap_in_global_binding.
27550
27551 * data.c (store_symval_forwarding, set_internal):
27552 * eval.c (specbind): Remove dead code.
27553
27554 * coding.c (detect_coding, Fupdate_coding_systems_internal):
27555 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
27556 Since we do not want to see internal Lisp_*fwd objects here.
27557
27558 2007-11-18 Jan Djärv <jan.h.d@swipnet.se>
27559
27560 * sysdep.c (init_system_name): Use getaddrinfo if available.
27561
27562 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
27563 (x_scroll_bar_note_movement): start, end, with, height in struct
27564 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
27565
27566 2007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
27567
27568 * puresize.h (BASE_PURESIZE): Increase to 1190000.
27569
27570 2007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
27571
27572 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
27573 This undoes Richard's change of 14-Oct-2002.
27574
27575 * alloc.c (allocate_other_vector):
27576 * lisp.h (allocate_other_vector): Remove.
27577
27578 * window.c (struct save_window_data): Move non-lisp data to the end
27579 and make it `int' rather than Lisp_Object.
27580 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
27581 Done wrap/unwrap integer values.
27582 (Fset_window_configuration, compare_window_configurations):
27583 Update use of fields to their new types.
27584
27585 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
27586 Turn integer fields into `int'. Merge x_window_low and x_window_high.
27587 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
27588 (SET_SCROLL_BAR_X_WINDOW): Remove.
27589 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
27590 Access the new x_window field directly.
27591 * xterm.c (x_scroll_bar_create): Use a pseudovector.
27592 Don't wrap/unwrap integers into Lisp_Objects.
27593 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
27594 (x_scroll_bar_report_motion):
27595 Don't wrap/unwrap integers into Lisp_Objects.
27596 (x_term_init): Use SDATA.
27597 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
27598 (x_scroll_bar_set_handle, x_scroll_bar_remove)
27599 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
27600 (x_scroll_bar_report_motion, x_scroll_bar_clear):
27601 * xfns.c (x_set_background_color):
27602 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
27603 Access the new x_window field directly.
27604
27605 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
27606 (allocate_pseudovector): Make non-static.
27607
27608 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
27609 (allocate_pseudovector): Declare.
27610 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
27611
27612 2007-11-15 Andreas Schwab <schwab@suse.de>
27613
27614 * editfns.c (Fformat): Correctly format EMACS_INT values.
27615 Also take precision into account when formatting an integer.
27616
27617 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
27618
27619 2007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
27620
27621 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
27622 (syms_of_keyboard): Defsubr it.
27623
27624 * data.c (swap_in_global_binding): Fix longstanding bug where
27625 store_symval_forwarding was not called with the right second argument,
27626 thus causing objfwd-ing from being dropped.
27627
27628 2007-11-14 Juanma Barranquero <lekktu@gmail.com>
27629
27630 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
27631 (Fx_display_pixel_height, Fx_display_planes)
27632 (Fx_display_color_cells, Fx_server_max_request_size)
27633 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
27634 (Fx_display_visual_class, Fx_display_save_under):
27635 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
27636 (Fx_display_pixel_height, Fx_display_planes)
27637 (Fx_display_color_cells, Fx_server_max_request_size)
27638 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
27639 (Fx_display_mm_height, Fx_display_mm_width)
27640 (Fx_display_backing_store, Fx_display_visual_class)
27641 (Fw32_select_font, Fx_display_save_under):
27642 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
27643 (Fx_display_pixel_height, Fx_display_planes)
27644 (Fx_display_color_cells, Fx_server_max_request_size)
27645 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
27646 (Fx_display_save_under): Fix typos in docstrings.
27647
27648 2007-11-14 Juanma Barranquero <lekktu@gmail.com>
27649
27650 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
27651 corresponding to deleted entries; they are an implementation detail.
27652 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
27653 Remove variables.
27654 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
27655 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
27656 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
27657 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
27658 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
27659 (Fw32_define_rgb_color, Fw32_load_color_file)
27660 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
27661 Fix typos in docstrings.
27662 (Fx_server_version): Reflow docstring.
27663 (Fw32_shell_execute): Doc fixes.
27664
27665 2007-11-13 Juanma Barranquero <lekktu@gmail.com>
27666
27667 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
27668 if w32_parse_hot_key returned nil.
27669
27670 2007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
27671
27672 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
27673
27674 2007-11-09 Jason Rumney <jasonr@gnu.org>
27675
27676 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
27677
27678 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
27679
27680 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
27681 Remove W32_SCROLL_BAR_CLICK_EVENT.
27682
27683 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
27684 Add MULTIMEDIA_KEY_EVENT.
27685
27686 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
27687 (lispy_multimedia_keys) [WINDOWSNT]: New array.
27688 (make_lispy_event) [WINDOWSNT]: Use it to translate
27689 MULTIMEDIA_KEY_EVENT.
27690
27691 * w32term.h (WM_APPCOMMAND): Define if not already.
27692 (GET_APPCOMMAND_LPARAM): Likewise.
27693
27694 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
27695 WM_APPCOMMAND.
27696
27697 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
27698 (syms_of_w32fns): Export and initialize it.
27699 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
27700
27701 2007-11-09 Chong Yidong <cyd@stupidchicken.com>
27702
27703 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
27704 twice.
27705
27706 * xdisp.c (handle_face_prop): Fix last change.
27707
27708 2007-11-09 Richard Stallman <rms@gnu.org>
27709
27710 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
27711 not just for after-strings and before-strings.
27712 Call face_for_overlay_string and pass the overlay to it.
27713 (handle_display_prop): Determine whether property came from an overlay.
27714 Pass OVERLAY arg to handle_single_display_spec.
27715 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
27716 (load_overlay_strings): Fill in it->string_overlays.
27717 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
27718
27719 * xfaces.c (face_for_overlay_string): Function renamed from
27720 face_at_buffer_position_no_overlays, and add arg OVERLAY.
27721
27722 * dispextern.h (struct it): New elt string_overlays.
27723 New elt from_overlay, also in stack.
27724 Rearrange a few elements.
27725 (face_for_overlay_string): Decl renamed from
27726 face_at_buffer_position_no_overlays, and add argument.
27727
27728 2007-11-09 Richard Stallman <rms@gnu.org>
27729
27730 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
27731 to get the base face for an overlay string.
27732
27733 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
27734
27735 * xfaces.c (face_at_buffer_position_no_overlays): New function.
27736
27737 * xdisp.c (handle_stop): Move some code out of loop.
27738
27739 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27740
27741 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
27742 Fix conversion from Lisp object to ATSUFontID.
27743
27744 2007-11-09 Jason Rumney <jasonr@gnu.org>
27745
27746 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
27747
27748 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27749
27750 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
27751 Don't assume regions are aligned to page boundary.
27752 (print_load_command_name): Add LC_UUID if defined.
27753
27754 2007-11-09 Richard Stallman <rms@gnu.org>
27755
27756 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
27757
27758 2007-11-07 Jason Rumney <jasonr@gnu.org>
27759
27760 * s/windows95.h: Remove.
27761
27762 2007-11-06 Jan Djärv <jan.h.d@swipnet.se>
27763
27764 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
27765 abort with a message on unhandled store_type values.
27766
27767 2007-11-01 Jan Djärv <jan.h.d@swipnet.se>
27768
27769 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
27770 Remove HAVE_X11R5 and HAVE_X11R4.
27771
27772 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
27773
27774 * Makefile.in: Remove references to sunfns.c and sunfns.o.
27775
27776 2007-11-01 Johan Bockgård <bojohan@gnu.org>
27777
27778 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
27779 Don't set s->stippled_p here, since it has already been set by
27780 x_set_glyph_string_gc from x_draw_glyph_string.
27781
27782 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
27783
27784 * sunfns.c: Remove file.
27785
27786 * m/sun386.h:
27787 * m/sun2.h:
27788 * m/sparc.h: Remove Sun windows code.
27789
27790 2007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
27791
27792 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
27793 (init_keyboard): Set current_kboard's window-system to nil.
27794 (tty_read_avail_input): Typo.
27795 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
27796
27797 2007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
27798
27799 * s/usg5-4.h:
27800 * s/usg5-3.h:
27801 * s/ptx.h:
27802 * m/is386.h:
27803 * m/ibmps2-aix.h:
27804 * Makefile.in: Remove all mentions of X10.
27805
27806 * dispnew.c (syms_of_display): Don't mention version 10.
27807
27808 2007-10-28 Juanma Barranquero <lekktu@gmail.com>
27809
27810 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
27811 ($(BLD)/abbrev.$(O)): Remove.
27812
27813 2007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
27814
27815 Rewrite abbrev.c in Elisp.
27816 * image.c (Qcount): Don't declare as extern.
27817 (syms_of_image): Initialize and staticpro `Qcount'.
27818 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
27819 * emacs.c (main): Don't call syms_of_abbrev.
27820 * Makefile.in (obj): Remove abbrev.o.
27821 (abbrev.o): Remove.
27822 * abbrev.c: Remove.
27823
27824 2007-10-26 Martin Rudalics <rudalics@gmx.at>
27825
27826 * window.c (window_min_size_2): Don't count header-line.
27827
27828 2007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
27829
27830 * frame.h (struct frame): Move all bit fields after the first bit
27831 field to take advantage of the available space. Group all the
27832 chars together to reduce wasted space due to padding.
27833
27834 2007-10-26 Juanma Barranquero <lekktu@gmail.com>
27835
27836 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
27837
27838 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
27839 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
27840 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
27841 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
27842 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
27843 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
27844 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
27845 (last_marked, mark_object_loop_halt): Make static.
27846
27847 * frame.c (syms_of_frame) <delete-frame-functions>:
27848 Fix typo in docstring.
27849
27850 2007-10-25 Juanma Barranquero <lekktu@gmail.com>
27851
27852 * w32.c (init_environment): Fix tiny memory leak.
27853 (w32_get_resource): Remove unused variable `ok'.
27854
27855 2007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
27856
27857 Make `window-system' into a keyboard-local variable (rather than
27858 frame-local as done originally by multi-tty).
27859
27860 * keyboard.h (struct kboard): Add Vwindow_system.
27861 * keyboard.c (init_kboard): Set a default for Vwindow_system.
27862 (mark_kboards): Mark Vwindow_system.
27863
27864 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
27865 (init_display): Don't set the obsolete `window-system' frame-param.
27866
27867 * xterm.c (x_term_init):
27868 * w32term.c (w32_create_terminal):
27869 * term.c (init_tty): Set Vwindow_system.
27870 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
27871 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
27872
27873 * xfns.c (Fx_create_frame, x_create_tip_frame):
27874 * w32fns.c (Fx_create_frame, x_create_tip_frame):
27875 * macfns.c (Fx_create_frame):
27876 Don't set the obsolete `window-system' frame-param.
27877
27878 * frame.h (Qwindow_system): Remove.
27879 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
27880 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
27881
27882 2007-10-24 Richard Stallman <rms@gnu.org>
27883
27884 * frame.c (x_figure_window_size): For fullscreen case,
27885 set USPosition | PPosition without clobbering rest of window_prompting.
27886
27887 * keyboard.c (Fcurrent_idle_time): Doc fix.
27888
27889 * print.c (Fwith_output_to_temp_buffer): Doc fix.
27890
27891 2007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
27892
27893 * process.c (unwind_request_sigio): Only define if __ultrix__.
27894
27895 * callproc.c (child_setup): Remove spurious *.
27896
27897 * lisp.h (Fget_text_property): Declare.
27898 (have_menus_p): Declare it here rather than in sys-dep header files.
27899 * macterm.h (have_menus_p):
27900 * msdos.h (have_menus_p):
27901 * xterm.h (have_menus_p): Remove.
27902
27903 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
27904 (Fmake_variable_frame_local): Just check the variable's const-ness
27905 rather than checking nil or t.
27906
27907 2007-10-22 Jason Rumney <jasonr@gnu.org>
27908
27909 * w32fns.c: Include math.h.
27910 (w32_abort): Declaration moved to nt/config.nt.
27911
27912 * s/ms-w32.h (HAVE_STDLIB_H): Define.
27913 (abort): Redefinition moved to nt/config.nt.
27914
27915 * m/windowsnt.h: Remove.
27916
27917 2007-10-22 Juanma Barranquero <lekktu@gmail.com>
27918
27919 * emacs.c (Fdump_emacs): Fix typo in message.
27920 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
27921 <installation-directory>: Reflow docstring.
27922
27923 2007-10-22 Juri Linkov <juri@jurta.org>
27924
27925 * minibuf.c: Allow minibuffer default to be a list of default values.
27926 With empty input use the first element of this list as returned default.
27927 (string_to_object)
27928 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
27929 (read_minibuf): If defalt is cons, set histstring to its car.
27930 (Fread_string): If default_value is cons, set val to its car.
27931 (Fread_buffer): If def is cons, use its car.
27932 (Fcompleting_read): If defalt is cons, set val to its car.
27933
27934 2007-10-21 Michael Albinus <michael.albinus@gmx.de>
27935
27936 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
27937
27938 2007-10-20 Juanma Barranquero <lekktu@gmail.com>
27939
27940 * doc.c (Fdocumentation): Check for advice in all cases.
27941
27942 2007-10-19 Chong Yidong <cyd@stupidchicken.com>
27943
27944 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
27945
27946 2007-10-19 Richard Stallman <rms@gnu.org>
27947
27948 * doc.c (Fdocumentation): Check for and handle an advised function.
27949
27950 2007-10-19 Juanma Barranquero <lekktu@gmail.com>
27951
27952 * process.c (Fset_process_filter): Doc fix.
27953
27954 2007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
27955
27956 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
27957 which caused key-translation-map to applied repeatedly (thus breaking
27958 double-mode).
27959
27960 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
27961
27962 * xselect.c (x_own_selection, x_handle_selection_clear)
27963 (x_clear_frame_selections):
27964 * w32menu.c (list_of_panes, list_of_items):
27965 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
27966 * textprop.c (validate_plist, interval_has_all_properties)
27967 (interval_has_some_properties, interval_has_some_properties_list)
27968 (add_properties, text_property_list):
27969 * process.c (Fget_buffer_process, list_processes_1, status_notify):
27970 * minibuf.c (Fassoc_string):
27971 * macselect.c (x_own_selection, x_clear_frame_selections)
27972 (Fx_disown_selection_internal):
27973 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
27974 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
27975
27976 2007-10-17 Chong Yidong <cyd@stupidchicken.com>
27977
27978 * process.c: Link to libs for calling res_init() if available.
27979 (Fmake_network_process): Call res_init() before getaddrinfo or
27980 gethostbyname, if possible.
27981
27982 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
27983
27984 * lread.c (read1): Set pvectype for char_tables.
27985
27986 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
27987 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
27988 Add type checks.
27989 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
27990
27991 * alloc.c (free_misc): Use XMISCTYPE.
27992 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
27993
27994 2007-10-17 Glenn Morris <rgm@gnu.org>
27995
27996 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
27997 (syms_of_minibuf): Add Qcompletion_ignore_case.
27998 * dired.c (Qcompletion_ignore_case): Change to external.
27999 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
28000 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
28001 (Fread_file_name): Use it rather than intern'ing.
28002
28003 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
28004 (Fread_coding_system): Ignore case of user input.
28005
28006 2007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28007
28008 * xdisp.c (handle_display_prop): Ignore display specs after
28009 replacing one when string text is being replaced.
28010 (handle_single_display_spec): Pretend as if characters with display
28011 property haven't been consumed only when buffer text is being replaced.
28012
28013 2007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
28014
28015 * xfns.c (Fx_create_frame, Fx_display_list):
28016 * window.c (window_fixed_size_p, enlarge_window)
28017 (shrink_window_lowest_first):
28018 * macterm.c (init_font_name_table):
28019 * macfns.c (Fx_create_frame, Fx_display_list):
28020 * lread.c (close_load_descs):
28021 * keyboard.c (read_char_x_menu_prompt):
28022 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
28023 * coding.c (code_convert_region_unwind): Test the type of an object
28024 rather than just !NILP before extracting data from it.
28025
28026 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
28027
28028 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
28029 (XMISCANY): New macro.
28030 (XMISCTYPE): Use it.
28031 (struct Lisp_Misc_Any): New type.
28032 (union Lisp_Misc): Use it.
28033 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
28034 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
28035 (find_symbol_value, set_internal, default_value, Fset_default)
28036 (Fmake_variable_buffer_local, Fmake_local_variable)
28037 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
28038 (Flocal_variable_if_set_p, Fvariable_binding_locus):
28039 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
28040 * alloc.c (allocate_buffer): Set the size and tag.
28041 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
28042 Use XMISCANY.
28043 (die): Follow the GNU convention for error messages.
28044 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
28045 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
28046 tag any more.
28047 (set_buffer_internal_1):
28048 * frame.c (store_frame_param):
28049 * eval.c (specbind):
28050 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
28051
28052 * doc.c (Fsnarf_documentation): Simplify.
28053
28054 2007-10-14 Juanma Barranquero <lekktu@gmail.com>
28055
28056 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
28057 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
28058
28059 2007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
28060
28061 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
28062
28063 2007-10-14 Juanma Barranquero <lekktu@gmail.com>
28064
28065 * eval.c (do_autoload): Don't save autoloads.
28066
28067 * data.c (Ffset): Save autoload of the function being set.
28068
28069 2007-10-07 John Paul Wallington <jpw@pobox.com>
28070
28071 * xfns.c (x_create_tip_frame): Set the `display-type' frame
28072 parameter before setting up faces.
28073
28074 2007-10-13 Eli Zaretskii <eliz@gnu.org>
28075
28076 * ccl.c (Fregister_code_conversion_map):
28077 * keyboard.c (append_tool_bar_item): Reformat last change.
28078
28079 * lisp.h (eabs): Rename from `abs'. All callers changed.
28080
28081 2007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
28082
28083 * buffer.c (add_overlay_mod_hooklist):
28084 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
28085 * fontset.c (make_fontset):
28086 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
28087 (append_tool_bar_item):
28088 * macmenu.c (grow_menu_items):
28089 * w32menu.c (grow_menu_items):
28090 * xmenu.c (grow_menu_items): Use larger_vector.
28091
28092 2007-10-13 Eli Zaretskii <eliz@gnu.org>
28093
28094 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
28095 selected frame'' on MSDOS).
28096
28097 2007-10-12 Martin Rudalics <rudalics@gmx.at>
28098
28099 * frame.c (Qexplicit_name): New variable.
28100 (x_report_frame_params): Report it in parameter alist.
28101 (syms_of_frame): Intern and staticpro it.
28102
28103 2007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
28104
28105 * macfns.c (x_create_tip_frame): Set terminal for frame.
28106
28107 2007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
28108
28109 * frame.c (Qenvironment): Remove.
28110 (syms_of_frame) <Qenvironment>: Don't initialize.
28111 (Fdelete_frame): Don't treat the `environment' param specially.
28112 * frame.h (Qenvironment): Don't declare.
28113 * callproc.c (set_initial_environment): Don't set unused frame param.
28114
28115 * frame.c (Fframe_with_environment): Remove.
28116 (syms_of_frame) <Sframe_with_environment>: Don't declare.
28117
28118 * lisp.h (Fframe_with_environment): Don't declare.
28119
28120 2007-10-10 Juanma Barranquero <lekktu@gmail.com>
28121
28122 * indent.c (indent_tabs_mode, last_known_column)
28123 (last_known_column_modified): Make static.
28124 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
28125
28126 2007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
28127
28128 * puresize.h (BASE_PURESIZE): Increase to 1170000.
28129
28130 2007-10-09 Jason Rumney <jasonr@gnu.org>
28131
28132 * w32term.c (x_set_window_size): Disable code that attempts to tell
28133 Lisp code about a size change before it actually happens.
28134
28135 2007-10-09 Richard Stallman <rms@gnu.org>
28136
28137 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
28138 return HANDLED_RETURN.
28139
28140 2007-10-08 Martin Rudalics <rudalics@gmx.at>
28141
28142 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
28143 when there's an unread command event.
28144
28145 * frame.c (focus_follows_mouse): Move here from frame.el to allow
28146 window autoselection act appropriately when leaving selected frame.
28147 (syms_of_frame): Initialize focus_follows_mouse.
28148 * frame.h (focus_follows_mouse): Extern it.
28149 * macterm.c (XTread_socket): When focus_follows_mouse is nil
28150 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
28151 * msdos.c (dos_rawgetc): Likewise.
28152 * w32term.c (w32_read_socket): Likewise.
28153 * xterm.c (handle_one_xevent): Likewise.
28154 * xdisp.c (syms_of_xdisp): In doc-string of
28155 mouse-autoselect-window mention focus-follows-mouse.
28156
28157 2007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28158
28159 * macterm.c (mac_load_query_font): Fix missing return value.
28160 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
28161 Add BLOCK_INPUT.
28162
28163 2007-10-08 Richard Stallman <rms@gnu.org>
28164
28165 * xdisp.c (get_window_cursor_type): Implement documented behavior
28166 for cursor-in-non-selected-windows = t.
28167
28168 2007-10-08 Jason Rumney <jasonr@gnu.org>
28169
28170 * w32.c (w32_get_resource): Always close registry keys.
28171
28172 2007-10-08 Jason Rumney <jasonr@gnu.org>
28173
28174 * makefile.w32-in (LIBS): Add COMCTL32.
28175
28176 * w32fns.c (globals_of_w32fns): Init common controls.
28177
28178 2007-10-08 Richard Stallman <rms@gnu.org>
28179
28180 * image.c (our_memory_buffer): Rename from omfib_buffer.
28181
28182 2007-10-08 Richard Stallman <rms@gnu.org>
28183
28184 * buffer.c (Foverlays_at): Doc fix.
28185
28186 2007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
28187
28188 * fns.c (Fplist_put): Preserve uneven tail data.
28189
28190 2007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
28191
28192 * termhooks.h (enum event_kind): Remove trailing comma.
28193
28194 * frame.h (enum): Remove trailing comma.
28195
28196 2007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
28197
28198 * w32proc.c (delete_child): Don't terminate threads of zombies.
28199
28200 2007-10-08 Martin Rudalics <rudalics@gmx.at>
28201
28202 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
28203
28204 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
28205 last-repeatable-command.
28206 (init_kboard): Initialize Vlast_repeatable_command.
28207 (command_loop_1): Set it to real_this_command unless that was
28208 bound to an input event.
28209 (mark_kboards): Mark it.
28210
28211 2007-10-08 Richard Stallman <rms@gnu.org>
28212
28213 * eval.c (condition-case): Doc fix.
28214
28215 2007-10-08 Masatake YAMATO <jet@gyve.org>
28216
28217 * xfaces.c (tty_supports_face_attributes_p): Fix code
28218 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
28219 was copied and not edited.
28220
28221 2007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
28222
28223 Add new `input-decode-map' keymap and use it for terminal
28224 escape sequences.
28225 * keyboard.h (struct kboard): Add Vinput_decode_map.
28226 Remove Vlocal_key_translation_map.
28227 * keyboard.c (read_key_sequence): Add support for input-decode-map.
28228 (init_kboard): Init input-decode-map.
28229 Replace local-key-translation-map back with key-translation-map.
28230 (syms_of_keyboard): Declare input-decode-map.
28231 Remove local-key-translation-map. Update docstrings.
28232 (mark_kboards): Mark Vinput_decode_map.
28233 Don't mark Vlocal_key_translation_map.
28234 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
28235 Replace local-key-translation-map back with key-translation-map.
28236 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
28237 Bind in input-decode-map rather than function-key-map.
28238
28239 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
28240 This was made redundant by the previous introduction of XSETPVECTYPE.
28241
28242 2007-10-09 Richard Stallman <rms@gnu.org>
28243
28244 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
28245
28246 2007-09-29 Richard Stallman <rms@gnu.org>
28247
28248 * eval.c (internal_condition_case_2, internal_condition_case_1)
28249 (internal_condition_case): Reenable abort if x_catching_errors ()
28250 to see if that really happens and why.
28251
28252 2007-10-06 Andreas Schwab <schwab@suse.de>
28253
28254 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
28255
28256 2007-10-04 Juanma Barranquero <lekktu@gmail.com>
28257
28258 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
28259
28260 2007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
28261
28262 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
28263
28264 2007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
28265
28266 * window.h (struct window):
28267 * window.c (struct save_window_data, struct saved_window):
28268 * termhooks.h (struct terminal):
28269 * process.h (struct Lisp_Process):
28270 * frame.h (struct frame):
28271 * buffer.h (struct buffer):
28272 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
28273 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
28274 The size field of (pseudo)vectors is now unsigned.
28275 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
28276
28277 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
28278 Turn `count' into an integer.
28279
28280 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
28281 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
28282 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
28283 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
28284 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
28285
28286 * alloc.c (allocate_pseudovector): New fun.
28287 (ALLOCATE_PSEUDOVECTOR): New macro.
28288 (allocate_window, allocate_terminal, allocate_frame)
28289 (allocate_process): Use it.
28290 (mark_vectorlike): New function.
28291 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
28292 (mark_terminals): Use it.
28293 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
28294 (Fmake_byte_code): Use XSETPVECTYPE.
28295
28296 * frame.c (Fframe_parameters): Minor simplification.
28297
28298 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
28299
28300 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
28301
28302 * buffer.c (Fget_buffer_create, init_buffer_once):
28303 * lread.c (defsubr):
28304 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
28305
28306 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
28307 defined differently in the m/*.h files.
28308 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
28309 (XSETPVECTYPE): New macro.
28310 (XSETPSEUDOVECTOR): Use it.
28311
28312 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
28313 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
28314
28315 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
28316 * lread.c (defvar_per_buffer):
28317 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
28318
28319 * window.c (candidate_window_p): Only consider as visible frames that
28320 are on the same terminal.
28321
28322 * m/ibms390x.h (MARKBIT): Remove unused macro.
28323
28324 2007-10-01 Juanma Barranquero <lekktu@gmail.com>
28325
28326 * lread.c (Fload): Fix typo in docstring.
28327
28328 2007-10-01 Michaël Cadilhac <michael@cadilhac.name>
28329
28330 * floatfns.c (Fexpt): Manually check for overflows, so that a power
28331 of a non-zero value can't yield zero.
28332
28333 2007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
28334
28335 * term.c (term_clear_mouse_face, term_mouse_highlight)
28336 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
28337
28338 * print.c (safe_debug_print): Use XHASH.
28339
28340 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
28341 Lisp elements such as tags.
28342 (XHASH): New macro.
28343 (EQ): Use it.
28344 (SREF, SSET, STRING_COPYIN): Use SDATA.
28345 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
28346
28347 * alloc.c (mark_terminal): Remove left-over declaration.
28348 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
28349 (allocate_vectorlike): Remove type argument. Adjust callers.
28350 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
28351 Only handle the one remaining MEM_TYPE_VECTORLIKE.
28352
28353 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
28354 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
28355 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
28356 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
28357 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
28358 Use them.
28359
28360 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
28361 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
28362 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
28363
28364 2007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
28365
28366 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
28367 loaded by default.
28368
28369 2007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
28370
28371 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
28372 on this tty.
28373 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
28374
28375 * term.c (mouse_face_window): Rename from Qmouse_face_window.
28376 Update all users.
28377 (handle_one_term_event): Use Gpm_DrawPointer.
28378 (Fgpm_mouse_start): Rename from Fterm_open_connection.
28379 Signal errors instead of returning nil. Always return nil.
28380 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
28381 Make it a noop if gpm-mouse was not activated.
28382 (syms_of_term): Update names.
28383
28384 2007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
28385
28386 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
28387 (init_sys_modes): Check that gpm_tty is the current tty.
28388
28389 * alloc.c (allocate_terminal): Set the vector size to only count the
28390 lisp fields. Initialize those to nil.
28391 (mark_object): Don't treat terminals specially.
28392 (mark_terminal): Remove.
28393 (mark_terminals): Use mark_object instead.
28394
28395 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
28396 the GC to the beginning.
28397
28398 * indent.h:
28399 * indent.c: Use EMACS_INT for ints coming from Elisp data.
28400
28401 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
28402
28403 2007-09-25 Jason Rumney <jasonr@gnu.org>
28404
28405 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
28406
28407 * w32console.c (create_w32cons_output): Remove.
28408
28409 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
28410
28411 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
28412 (reset_sys_modes): Use reset_terminal_modes_hook.
28413
28414 2007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
28415
28416 * eval.c (do_autoload): Don't output any message.
28417
28418 2007-09-24 Juri Linkov <juri@jurta.org>
28419
28420 * emacs.c (standard_args): Change priority of "--no-splash"
28421 from 40 to 3. Add "--no-desktop" with the same priority.
28422
28423 2007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
28424
28425 * alloc.c (gc_sweep): Check cons cell mark bits word by word
28426 and optimize the case where they are all 1.
28427
28428 2007-09-23 Johannes Weiner <hannes@saeurebad.de>
28429
28430 * lisp.h (abs): Define if not defined.
28431 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
28432 Don't define `abs', since it's defined in lisp.h.
28433
28434 2007-09-22 Eli Zaretskii <eliz@gnu.org>
28435
28436 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
28437 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
28438 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
28439 (init_tty): Use DEV_TTY instead of "/dev/tty".
28440 [WINDOWSNT]: No need to protect from NAME arg being null.
28441
28442 2007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
28443
28444 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
28445 up the tty state.
28446
28447 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
28448
28449 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
28450 (gpm_tty): Change its type.
28451 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
28452 (gpm_tty): Change its type and initialize it.
28453 (Fterm_open_connection): Check the frame is indeed a tty.
28454 Use the new gpm_tty.
28455 (Fterm_close_connection): Use the new gpm_tty.
28456 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
28457 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
28458
28459 2007-09-21 Juanma Barranquero <lekktu@gmail.com>
28460
28461 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
28462 underline_color, to draw strike-through.
28463
28464 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
28465
28466 * lisp.h (allocate_terminal): Declare.
28467
28468 * window.c (candidate_window_p): Consider frames that are being placed
28469 by the user as somewhere between visible and iconified.
28470 (window_loop): Prefer windows on the current frame.
28471 (Fselect_window): Move the use of select-frame to the beginning so we
28472 can just delegate all the work (it'll call us back anyway).
28473
28474 * frame.c (Qdisplay_environment_variable):
28475 * frame.h (Qdisplay_environment_variable): Delete.
28476
28477 * .gdbinit (xbacktrace): Print the arg's address rather than the value
28478 of the first arg, since that value may be a union.
28479
28480 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
28481 parameter rather than Qdisplay_environment_variable. If all else
28482 fails, look for DISPLAY in initial-environment.
28483
28484 2007-09-21 Glenn Morris <rgm@gnu.org>
28485
28486 * Makefile.in (emacstool): Remove target.
28487 (lisp, shortlisp): Remove termdev.elc.
28488
28489 2007-09-21 Markus Triska <markus.triska@gmx.at>
28490
28491 * xterm.c (x_delete_display): Compile session management conditionally.
28492
28493 2007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
28494
28495 * callproc.c (getenv_internal_1): New function.
28496 (getenv_internal): Use it.
28497 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
28498
28499 * terminal.c (get_terminal): Don't accept ints to represent terminals.
28500 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
28501 (Fset_terminal_parameter): Work with dead terminals as well.
28502 (Fmodify_terminal_parameters): Remove.
28503
28504 * terminal.c (get_terminal): Handle terminals.
28505 Make sure the terminal returned is live.
28506 (create_terminal): Use allocate_terminal.
28507 (mark_terminals): Move to alloc.c.
28508 (delete_terminal): Use terminal->name as liveness status.
28509 NULL out fields after freeing their contents.
28510 Don't deallocate the object.
28511 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
28512 rather than an int.
28513 (Fterminal_live_p): Accept non-integer arguments.
28514 (Fterminal_list): Return terminal objects rather than an ints.
28515
28516 * alloc.c (enum mem_type): New member for `terminal' objects.
28517 (allocate_terminal): New function.
28518 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
28519 Handle terminals.
28520 (mark_terminal): New fun.
28521 (mark_terminals): Move from terminal.c.
28522
28523 * term.c (get_tty_terminal): Don't treat output_initial specially.
28524 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
28525 (delete_tty): Use terminal->name as liveness status.
28526
28527 * termhooks.h (struct terminal): Make it into a pseudovector.
28528 Remove `deleted' replaced by checking `name's nullness.
28529
28530 * print.c (print_object): Handle terminals.
28531
28532 * lisp.h (enum pvec_type): New `terminal' pseudovector.
28533 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
28534
28535 * frame.c (make_terminal_frame):
28536 * keyboard.c (tty_read_avail_input):
28537 * w32term.c (x_delete_terminal):
28538 * xfns.c (Fx_create_frame, x_create_tip_frame):
28539 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
28540
28541 2007-09-20 Glenn Morris <rgm@gnu.org>
28542
28543 * process.c (Fmake_network_process): Doc fix.
28544
28545 2007-09-19 Jason Rumney <jasonr@gnu.org>
28546
28547 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
28548
28549 2007-09-19 Michaël Cadilhac <michael@cadilhac.name>
28550
28551 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
28552 Fix a C warning regarding variable constness.
28553
28554 * xterm.c (handle_one_xevent): Fix a C warning.
28555
28556 2007-09-18 Jason Rumney <jasonr@gnu.org>
28557
28558 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
28559
28560 2007-09-17 Jan Djärv <jan.h.d@swipnet.se>
28561
28562 * gtkutil.c (gdpy_def): New variable.
28563 (xg_initialize): Initialize gdpy_def.
28564 (xg_display_close): If no other display exists, set gdpy_def to a
28565 new connection.
28566
28567 2007-09-16 Jan Djärv <jan.h.d@swipnet.se>
28568
28569 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
28570 when we have no file name for the icon.
28571 (xg_tool_bar_expose_callback): Remove.
28572 (xg_create_tool_bar): Don't connect expose signal to
28573 xg_tool_bar_expose_callback.
28574 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
28575
28576 2007-09-16 Andreas Schwab <schwab@suse.de>
28577
28578 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
28579 values instead of zapping them.
28580
28581 2007-09-14 Glenn Morris <rgm@gnu.org>
28582
28583 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
28584 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
28585 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
28586 scope and rename to omfib_buffer for clarity.
28587 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
28588
28589 2007-09-14 Kenichi Handa <handa@m17n.org>
28590
28591 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
28592
28593 2007-09-13 Jason Rumney <jasonr@gnu.org>
28594
28595 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
28596
28597 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
28598
28599 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
28600 (mac_term_init): Call here instead, passing rif.
28601
28602 2007-09-13 Glenn Morris <rgm@gnu.org>
28603
28604 * s/hpux.h: No longer define `static' as nothing.
28605
28606 2007-09-13 Johan Bockgård <bojohan@gnu.org>
28607
28608 * callint.c (Fcall_interactively): Remove unused var `fun'.
28609
28610 2007-09-12 Romain Francoise <romain@orebokech.com>
28611
28612 * window.c (prefer_window_split_horizontally, display_buffer):
28613 Revert 2007-09-08 change.
28614
28615 2007-09-12 Glenn Morris <rgm@gnu.org>
28616
28617 * alloca.c: Remove file.
28618 * Makefile.in (alloca): Do not undef.
28619 (allocaobj, alloca.o): Remove.
28620 (otherobj): Remove allocaobj.
28621 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
28622 * regex.c (C_ALLOCA): Remove all references and code that was only
28623 used when this was defined.
28624 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
28625 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
28626 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
28627
28628 * Makefile.in (SOURCES, unlock, relock): Delete.
28629
28630 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
28631 (menu_grab_callback): All uses changed.
28632
28633 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
28634 (x_reply_selection_request): All uses changed.
28635
28636 2007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
28637
28638 * lread.c (load_warn_old_style_backquotes): Change message to look
28639 better when it appears in the middle of byte-compiler messages.
28640
28641 2007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
28642
28643 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
28644
28645 * xterm.c (x_create_terminal): Add comment.
28646
28647 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
28648
28649 2007-09-10 Richard Stallman <rms@gnu.org>
28650
28651 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
28652
28653 2007-09-10 Michaël Cadilhac <michael@cadilhac.name>
28654
28655 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
28656 (DEFUN): Document `intspec', use it instead of `prompt'.
28657
28658 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
28659
28660 * data.c (Finteractive_form): If the interactive specification starts
28661 with a `(', use it as a Lisp form.
28662
28663 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
28664 name and file modes.
28665
28666 * callint.c (Fcall_interactively): Comment fixes.
28667
28668 2007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
28669
28670 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
28671 and compiled functions.
28672
28673 2007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
28674
28675 * window.c (prefer_window_split_horizontally): New variable.
28676 (display_buffer): Consider splitting window horizontally depending
28677 on prefer_window_split_horizontally.
28678
28679 2007-09-08 Eli Zaretskii <eliz@gnu.org>
28680
28681 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
28682
28683 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
28684
28685 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
28686
28687 * frame.c (x_set_frame_parameters): Check number is positive before
28688 using XFASTINT.
28689
28690 * window.c (freeze_window_start): Don't presume selected_window holds
28691 a window object.
28692 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
28693
28694 2007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
28695
28696 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
28697
28698 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
28699
28700 * window.c (Vsplit_window_preferred_function): New var.
28701 (Fdisplay_buffer): Use it.
28702 (syms_of_window): Export, and initialize it.
28703
28704 2007-09-06 Pixel <pixel@mandriva.com> (tiny change)
28705
28706 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
28707
28708 2007-09-06 Glenn Morris <rgm@gnu.org>
28709
28710 * gtkutil.c (menu_grab_callback) <cnt>:
28711 * xselect.c (x_reply_selection_request) <cnt>: Move static
28712 variable to file scope.
28713
28714 2007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
28715
28716 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
28717 consistent values of selected_frame and selected_window.
28718
28719 2007-09-04 Jason Rumney <jasonr@gnu.org>
28720
28721 * w32console.c (initialize_w32_display): Zero unused hooks.
28722
28723 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
28724
28725 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
28726 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
28727
28728 2007-09-04 Jason Rumney <jasonr@gnu.org>
28729
28730 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
28731 in w32console.c. Set up input. Remove XXX comments that have been
28732 confirmed as correct.
28733
28734 * s/ms-w32.h (MULTI_KBOARD): Define.
28735
28736 * w32console.c (one_and_only_w32cons): Remove.
28737 (initialize_w32_display): Take terminal argument.
28738
28739 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
28740 initialize_w32_display.
28741 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
28742
28743 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
28744
28745 * keyboard.c (discard_mouse_events): Discard it.
28746 (make_lispy_event): Translate it to a lisp event.
28747 (lispy_wheel_names): Add wheel-left and right events.
28748 (syms_of_keyboard): Enlarge wheel_syms.
28749
28750 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
28751 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
28752
28753 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
28754
28755 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
28756 from WM_MOUSEHWHEEL.
28757 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
28758
28759 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
28760 terminal.
28761
28762 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
28763 keyboard for the terminal.
28764
28765 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
28766
28767 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
28768 (Vresume_tty_hook): Rename from Vresume_tty_functions.
28769 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
28770 and resume-tty-function to resume-tty-hook.
28771 (Fsuspend_tty, Fresume_tty): Use new names.
28772
28773 2007-09-02 Jan Djärv <jan.h.d@swipnet.se>
28774
28775 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
28776 if it starts with "n:".
28777
28778 2007-08-31 Jan Djärv <jan.h.d@swipnet.se>
28779
28780 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
28781
28782 2007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
28783
28784 * frame.h:
28785 * frame.c (Qterm_environment_variable): Remove.
28786 (syms_of_frame): Don't init and staticpro it.
28787
28788 * callproc.c (getenv_internal): Remove special case for $TERM.
28789
28790 * callproc.c (Vinitial_environment): New variable.
28791 (set_initial_environment): Initialize it.
28792 (syms_of_callproc): Declare it.
28793 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
28794 TERM under which a process runs is never related to the TERM in which
28795 Emacs is running.
28796
28797 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
28798
28799 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
28800 * s/darwin.h: ... do it here.
28801
28802 2007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
28803
28804 * lisp.h (set_initial_environment): Rename from set_global_environment.
28805
28806 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
28807 removed by mistake on the multi-tty branch.
28808
28809 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
28810 (Fmodify_frame_parameters): Return a value.
28811
28812 * image.c (png_load): Comment-out var only used in commented-out code.
28813
28814 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
28815 before passing it to mark_object.
28816
28817 * xfaces.c (internal_resolve_face_name): Return a value.
28818 (internal_resolve_face_name, resolve_face_name_error): Comment out.
28819
28820 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
28821 (x_icon): Comment-out var only used in commented-out code.
28822
28823 2007-08-29 Romain Francoise <romain@orebokech.com>
28824
28825 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
28826 QUIT hasn't been provided.
28827
28828 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
28829
28830 * callproc.c (child_setup, getenv_internal): Use the
28831 display-environment-variable and term-environment-variable frame params.
28832 (set_initial_environment): Initialise Vprocess_environment.
28833
28834 * config.in: Disable multi-keyboard support on a mac.
28835
28836 * frame.c (Qterm_environment_variable)
28837 (Qdisplay_environment_variable): New variables.
28838 (syms_of_frame): Intern and staticpro them.
28839 (Fmake_terminal_frame): Disable output method test.
28840
28841 * frame.h: Declare them here.
28842
28843 * macfns.c (x_set_mouse_color): Get rif from the frame.
28844 (x_set_tool_bar_lines): Don't use updating_frame.
28845 (mac_window): Add 2 new parameters for consistency with other systems.
28846 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
28847 frame parameters following what is done in X11 and w32. Don't use
28848 FRAME_MAC_DISPLAY_INFO.
28849 (Fx_open_connection, start_hourglass): Remove window-system check.
28850 (x_create_tip_frame): Get the keyboard from the terminal.
28851
28852 * macmenu.c: Reorder includes.
28853 (Fx_popup_menu): Use terminal specific mouse_position_hook.
28854
28855 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
28856 terminal parameter.
28857 (x_clear_frame): Add a frame parameter.
28858 (note_mouse_movement): Get rif from the frame.
28859 (mac_term_init): Initialize the terminal.
28860 (mac_initialize): Make static and move terminal initialization ...
28861 (mac_create_terminal): ... to this new function.
28862
28863 * macterm.h (struct mac_display_info): Add terminal.
28864 (mac_initialize): Delete declaration.
28865
28866 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
28867
28868 * sysdep.c: Comment out text after #endif.
28869
28870 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
28871 is defined. Better initialize ttys in windows. Use terminal
28872 specific mouse_position_hook.
28873
28874 * termhooks.h (union display_info): Add mac_display_info.
28875
28876 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
28877 Set the default minibuffer frame, window_system and the rest of the
28878 frame parameters following what is done in X11.
28879
28880 * w32term.c (w32_initialize): Make static.
28881
28882 * xselect.c (x_handle_selection_clear): Only access
28883 terminal->kboard when MULTI_KBOARD is defined.
28884
28885 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
28886 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
28887
28888 2007-08-29 Jason Rumney <jasonr@gnu.org>
28889
28890 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
28891 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
28892
28893 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
28894 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
28895
28896 * keyboard.c (restore_kboard_configuration): Only define when
28897 MULTI_KBOARD defined.
28898
28899 * makefile.w32-in: Update dependancies from Makefile.in.
28900 (OBJ1): Add terminal.$(O)
28901
28902 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
28903 Don't define function body.
28904 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
28905
28906 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
28907
28908 * w32.c (request_sigio, unrequest_sigio): Remove.
28909
28910 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
28911 (w32con_clear_frame, w32con_clear_end_of_line)
28912 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
28913 (w32con_delete_glyphs, w32con_set_terminal_window)
28914 (scroll_line, w32_sys_ring_bell): Add frame arg.
28915 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
28916 Add terminal arg.
28917 (PICK_FRAME): Remove.
28918 (w32con_write_glyphs): Use frame specific terminal coding.
28919 (one_and_only_w32cons): New global variable.
28920 (initialize_w32_display): Use it for storing hooks.
28921 (create_w32cons_output): New function.
28922
28923 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
28924 arg a frame.
28925
28926 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
28927 Set window_system.
28928 (x_set_tool_bar_lines): Don't use updating_frame.
28929 (Fx_create_frame): Set terminal and ref count.
28930 (Fx_open_connection): Remove window-system check.
28931
28932 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
28933
28934 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
28935 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
28936 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
28937 Add frame arg.
28938 (x_delete_terminal, w32_create_terminal): New functions.
28939 (w32_term_init): Create a terminal.
28940 (w32_initialize): Move terminal specific initialization to
28941 w32_create_terminal.
28942
28943 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
28944 (w32_clear_rect, w32_clear_area): Use background from frame.
28945 (w32_display_info): Add terminal.
28946 (w32_sys_ring_bell, x_delete_display): Declare here.
28947
28948 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
28949
28950 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
28951
28952 2007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
28953
28954 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
28955 Fix get_named_tty calls for the controlling tty.
28956
28957 2007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
28958
28959 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
28960
28961 2007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
28962
28963 * term.c (tty_insert_glyphs): Add missing first parameter.
28964
28965 2007-08-29 Károly Lőrentey <karoly@lorentey.hu>
28966
28967 * buffer.c (Fbuffer_list, Fbury_buffer):
28968 Take frame->buried_buffer_list into account.
28969
28970 * cm.c (current_tty): New variable, for cmputc().
28971 (cmputc): Use it.
28972 (cmcheckmagic): Add tty parameter, look up terminal streams there.
28973 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
28974 (cmgoto): Add tty parameter. Pass it on to calccost().
28975 Use emacs_tputs() instead of tputs().
28976
28977 * cm.h (emacs_tputs): New macro to set current_tty, and then call
28978 tputs().
28979 (current_tty): New variable, for cmputc().
28980 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
28981
28982 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
28983 (internal_condition_case, internal_condition_case_1)
28984 (internal_condition_case_2): Don't abort when x_catching_errors.
28985
28986 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
28987 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
28988 prevent crashes caused by bogus longjmps in read_char.
28989
28990 * keymap.h (Fset_keymap_parent): Add EXFUN.
28991
28992 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
28993 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
28994 Remove redundant definition.
28995
28996 * macfns.c (x_set_mouse_color, x_make_gc):
28997 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
28998
28999 * w32term.c (x_free_frame_resources):
29000 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
29001 (w32_initialize): Use the accessor macros for terminal characteristics.
29002
29003 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
29004 Use the accessor macros for terminal characteristics.
29005 * msdos.c (internal_terminal_init): Use the accessor macros for
29006 terminal characteristics.
29007 (ScreenVisualBell, internal_terminal_init):
29008 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
29009
29010 * termopts.h (no_redraw_on_reenter): Declare.
29011
29012 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
29013 (mark_terminals, mark_ttys): Declare.
29014 (Fgarbage_collect): Call them.
29015 (mark_object): Mark buried_buffer_list.
29016
29017 * prefix-args.c: Include stdlib.h for exit.
29018
29019 * syssignal.h: Add comment.
29020
29021 * indent.c: Include stdio.h.
29022
29023 * window.h (Vinitial_window_system): Declare.
29024 (Vwindow_system): Delete declaration.
29025
29026 * fontset.c (Finternal_char_font): Use FRAME_RIF.
29027
29028 * image.c (lookup_image): Don't initialize `c' until the xasserts
29029 have been run.
29030
29031 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
29032 FRAME_FOREGROUND_PIXEL.
29033
29034 * print.c (print_preprocess): Don't lose print_depth levels while
29035 iterating.
29036
29037 * widget.c (update_from_various_frame_slots):
29038 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
29039
29040 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
29041 frames.
29042 (window_internal_height): Remove bogus make_number call.
29043 (init_window_once): Call make_terminal_frame with two zero parameters.
29044
29045 * fileio.c (Fread_file_name): Update comment.
29046
29047 * callint.c (Fcall_interactively):
29048 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
29049 Make sure it is correctly unwound.
29050
29051 * xsmfns.c (x_session_close): New function.
29052
29053 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
29054 Delete declarations.
29055
29056 * xterm.h: Remove declaration for x_fully_uncatch_errors.
29057 (x_output): Remove background_pixel and foreground_pixel fields.
29058 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
29059 (x_delete_device, x_session_close): Declare.
29060
29061 * lread.c: Include setjmp.h. Update declaration of `read_char'.
29062 (read_filtered_event): Call `read_char' with a local
29063 `wrong_kboard_jmpbuf'.
29064
29065 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
29066 Don't call single_kboard_state. Use FRAME_RIF.
29067
29068 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
29069 systems.
29070
29071 * lisp.h (set_process_environment): Rename to `set_global_environment'.
29072 (Fframe_with_environment, Fset_input_meta_mode)
29073 (Fset_quit_char): EXFUN.
29074 (x_create_device, tty_output, terminal, tty_display_info): Declare.
29075 (init_sys_modes, reset_sys_modes): Update prototypes.
29076 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
29077
29078 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
29079 Vlocal_key_translation_map, and Vkeyboard_translate_table.
29080 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
29081 Delete declarations.
29082 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
29083 (temporarily_switch_to_single_kboard, tty_read_avail_input):
29084 New declarations.
29085
29086 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
29087 already does that during init_display(). Call syms_of_keymap
29088 before syms_of_keyboard. Call `syms_of_terminal'.
29089 Call set_initial_environment, not set_process_environment.
29090 (shut_down_emacs): Call reset_all_sys_modes() instead of
29091 reset_sys_modes().
29092
29093 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
29094 (internal_resolve_face_name, resolve_face_name_error): New functions.
29095 (resolve_face_name): Protect against loops and errors thrown by Fget.
29096 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
29097 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
29098
29099 * scroll.c: Replace CURTTY() with local variables throughout the
29100 file (where applicable).
29101 (calculate_scrolling, calculate_direct_scrolling)
29102 (scrolling_1, scroll_cost): Use the accessor macros for terminal
29103 characteristics.
29104
29105 * keymap.c (Vfunction_key_map): Remove.
29106 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
29107 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
29108 (Vkey_translation_map): Remove.
29109 (syms_of_keymap): Remove DEFVAR for key-translation-map.
29110 (Fdescribe_buffer_bindings)
29111 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
29112 Update for terminal-local key-translation-map.
29113
29114 * Makefile.in (callproc.o): Update dependencies.
29115 (lisp, shortlisp): Add termdev.elc.
29116 (obj): Add terminal.o.
29117 (terminal.o): Add dependencies.
29118 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
29119 (data.o, fns.o): Add termhooks.h dependency.
29120 (SOME_MACHINE_LISP): Add dnd.elc.
29121 (minibuf.o): Fix typo.
29122 Update dependencies.
29123
29124 * data.c (do_symval_forwarding, store_symval_forwarding)
29125 (find_symbol_value): Use the selected frame's keyboard, not
29126 current_kboard.
29127
29128 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
29129 Vwindow_system.
29130
29131 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
29132 Fmenu_bar_open.
29133 (syms_of_xmenu): Update defsubr.
29134 (mouse_position_for_popup, Fx_popup_menu)
29135 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
29136 (set_frame_menubar, free_frame_menubar)
29137 (create_and_show_popup_menu, xmenu_show)
29138 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
29139 an X frame.
29140
29141 * xselect.c (x_own_selection): Abort if not an X frame.
29142 (some_frame_on_display): Check if it is an X frame.
29143 (x_handle_selection_clear): Deal with MULTI_KBOARD.
29144
29145 * coding.c: Include frame.h and termhooks.h.
29146 (terminal_coding, keyboard_coding): Delete.
29147 (Fset_terminal_coding_system_internal)
29148 (Fset_keyboard_coding_system_internal)
29149 (Fkeyboard_coding_system)
29150 (Fterminal_coding_system): Add a terminal parameter.
29151 Get terminal_coding from the terminal.
29152 (init_coding_once): Don't call setup_coding_system here.
29153
29154 * dispextern.h (set_scroll_region, turn_off_insert)
29155 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
29156 (tty_clear_end_of_line, tty_setup_colors)
29157 (delete_tty, updating_frame)
29158 (produce_special_glyphs, produce_glyphs, write_glyphs)
29159 (insert_glyphs): Remove.
29160 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
29161 (tty_turn_off_highlight, get_tty_size): Add declaration.
29162 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
29163
29164 * frame.h (enum output_method): Add output_initial.
29165 (struct x_output): Delete.
29166 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
29167 Access foreground_pixel and background_pixel directly from the frame.
29168 (tty_display): Delete.
29169 (struct frame): Add buried_buffer_list, foreground_pixel,
29170 background_pixel and terminal. Delete kboard.
29171 (union output_data): Add tty.
29172 (FRAME_KBOARD): Get the kboard from the terminal.
29173 (FRAME_INITIAL_P): New macro.
29174 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
29175 (Qterm_environment_variable, Qdisplay_environment_variable)
29176 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
29177 New declarations.
29178
29179 * termchar.h (tty_output, tty_display_info): New structures.
29180 (tty_list): Declare.
29181 (FRAME_TTY, CURTTY): New macros.
29182 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
29183 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
29184 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
29185 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
29186
29187 * callproc.c: Include frame.h and termhooks.h, for terminal
29188 parameters.
29189 (add_env): New function.
29190 (child_setup): Use it.
29191 (child_setup, getenv_internal): Handle the new Vprocess_environment.
29192 (getenv_internal): Fix get_terminal_param call.
29193 (Fgetenv_internal, egetenv): Update doc.
29194 (syms_of_callproc): Initialize Vprocess_environment to nil.
29195 Register and initialize them. Remove obsolete defvars. Update doc
29196 strings.
29197 (child_setup): Handle Vlocal_environment_variables.
29198 (getenv_internal): Add terminal parameter.
29199 Handle Vlocal_environment_variables.
29200 (Fgetenv_internal): Add terminal parameter.
29201 (child_setup, getenv_internal, Fgetenv_internal): Store the local
29202 environment in a frame (not terminal) parameter. Update doc strings.
29203 (set_initial_environment): Rename from set_global_environment.
29204 Store Emacs environment in initial frame parameter.
29205
29206 * xdisp.c (redisplay_internal): Update references to
29207 `previous_terminal_frame'.
29208 (display_mode_line, Fformat_mode_line): Replace calls to
29209 `push_frame_kboard' with `push_kboard'.
29210 (get_glyph_string_clip_rects): Add extra parentheses and
29211 braces to prevent compiler warnings.
29212 (calc_pixel_width_or_height): Add xassert to check that the
29213 frame is alive. Don't call `lookup_image' on a termcap frame.
29214 (message2_nolog, message3_nolog, redisplay_internal)
29215 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
29216 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
29217 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
29218 (Fx_display_pixel_width, Fx_display_pixel_height)
29219 (Fx_display_planes, Fx_display_color_cells)
29220 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
29221 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
29222 (Fx_display_backing_store, Fx_display_visual_class)
29223 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
29224 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
29225
29226 * xfns.c (x_set_foreground_color x_set_background_color)
29227 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
29228 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
29229 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
29230 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
29231 terminal that is being deleted.
29232 (Fx_create_frame): Use `store_frame_param' to set `window-system'
29233 frame parameter, and make sure it overrides any user-supplied setting.
29234 (Fx_close_connection, Fx_synchronize): Unify argument names with
29235 the rest of the DEFUNs.
29236
29237 * dispnew.c (Fsend_string_to_terminal): Update call to
29238 `get_tty_terminal'.
29239 (Fredraw_frame, Fsend_string_to_terminal)
29240 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
29241 FRAME_TERMCAP_P and FRAME_TTY.
29242 (window_change_signal): Don't believe width/height values that are
29243 impossibly small.
29244 (Vinitial_window_system): Rename from Vwindow_system.
29245 (termscript, Wcm, rif): Delete.
29246
29247 * termhooks.h (struct terminal): New struct containing the
29248 previously global text display hooks and new members NAME,
29249 DELETED and PARAM_ALIST.
29250 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
29251 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
29252 (FRAME_RIF): New macros.
29253 (get_terminal_param, get_device): New declarations.
29254 (termscript): Delete declaration.
29255
29256 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
29257 (XTflash, x_free_frame_resources, x_scroll_bar_create)
29258 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
29259 FRAME_FOREGROUND_PIXEL.
29260 (x_fully_uncatch_errors): Disable definition.
29261 (x_scroll_bar_expose): Fix reference to foreground pixel.
29262 (XTread_socket): Disable loop on all X displays.
29263 (x_delete_terminal): Don't set terminal->deleted and let
29264 delete_terminal delete the frames on the terminal.
29265 (x_delete_display): Doc update to reflect changes in
29266 delete_terminal.
29267 (x_display_info) <terminal>: Move member earlier in the struct.
29268 (deleting_tty): Remove old variable.
29269 (Fsuspend_tty): Call clear_tty_hooks.
29270 (Fresume_tty, init_tty): Call set_tty_hooks.
29271 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
29272 errors on X frames.
29273 (x_catch_errors_unwind): Abort if x_error_message is NULL.
29274 (handle_one_xevent): Initialize `f' to NULL.
29275 (x_delete_terminal, x_create_terminal): New functions.
29276 (XTset_terminal_modes, XTreset_terminal_modes)
29277 (XTread_socket, x_connection_closed, x_term_init)
29278 (x_term_init, x_delete_display): Add terminal parameter.
29279 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
29280 X connections.
29281
29282 * frame.c: Include termchar.h.
29283 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
29284 (Qwindow_system, Qenvironment, Qterm_environment_variable)
29285 (Qdisplay_environment_variable): New vars.
29286 (Fframep): Deal with output_initial.
29287 (Fframe-live-p): Doc fix.
29288 (Fwindow-system): New function.
29289 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
29290 (make_terminal_frame): Don't create frames on a terminal that is
29291 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
29292 (store_frame_param): Check for found_for_frame before calling XFRAME.
29293 (Fmake_terminal_frame): Handle NULL tty names correctly.
29294 (syms_of_frame): Enhance doc string of `default-frame-alist'.
29295 (Fdelete_frame): Remove unused variable `count'. Don't allow other
29296 frames to refer to a deleted frame in their 'environment parameter.
29297 (Fframe_with_environment): New function.
29298 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
29299 (get_future_frame_param): New function.
29300 (Fmake_terminal_frame): Use it.
29301 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
29302
29303 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
29304 * sysdep.c (reset_sys_modes): Update for renames.
29305
29306 * keyboard.c (tty_read_avail_input): New function.
29307 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
29308 (syms_of_keyboard): Defsubr them.
29309 (Fset_input_meta_mode, Fset_quit_char): New functions.
29310 (Fset_input_mode): Split to above functions.
29311 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
29312 parameter. Use it in call to `read_char'.
29313 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
29314 Set wrong_kboard_jmpbuf correctly in recursive calls.
29315 Use current_kboard to access Vkeyboard_translate_table.
29316 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
29317 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
29318 Update longjmp invocations. Remember the original current_kboard,
29319 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
29320 changes it. Comment out unnecessary calls to
29321 `record_single_kboard_state' and `any_kboard_state'.
29322 Update recursive calls.
29323 (wrong_kboard_jmpbuf): Remove global variable.
29324 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
29325 Handle deleted interrupted_kboards correctly; that is a legal
29326 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
29327 and read_char calls. Abort if interrupted_kboard died in read_char.
29328 (any_kboard_state, single_kboard_state)
29329 (push_frame_kboard): Remove function.
29330 (pop_kboard): Switch out of single_kboard mode if the kboard has
29331 been deleted. Remove unused variable. Help debugging by not
29332 changing current_kboard unnecessarily. Set current_kboard to the
29333 kboard of the selected frame when the stored kboard object has
29334 been deleted before pop_kboard.
29335 (temporarily_switch_to_single_kboard): Change first parameter to a
29336 frame pointer. Throw an error when caller wants to change kboards
29337 while in single_kboard mode. Don't push_kboard if we weren't in
29338 single kboard state. Don't pop_kboard if we popped into any
29339 kboard state.
29340 (restore_kboard_configuration): Abort if pop_kboard changed the
29341 kboard in single_kboard mode. Call pop_kboard only after setting
29342 up single_kboard mode.
29343 (Frecursive_edit): Switch to single_kboard mode only in nested
29344 command loops.
29345 (cmd_error, command_loop, command_loop_1, timer_check):
29346 Comment out unnecessary call to `any_kboard_state' and
29347 `record_single_kboard_state'.
29348 (delete_kboard): Exit single_kboard mode if we have just deleted
29349 that kboard. Use FRAME_KBOARD.
29350 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
29351 `fatal_error_signal'.
29352 (record_single_kboard_state): Don't push_kboard if we weren't in
29353 single kboard state. Don't pop_kboard if we popped into any
29354 kboard state.
29355 (push_frame_kboard): Rename to push_kboard.
29356 (kbd_buffer_get_event): Use FRAME_TERMINAL.
29357 (read_avail_input): Read input from all terminals.
29358 (mark_kboards): Also mark Vkeyboard_translate_table.
29359 (kbd_buffer_store_event_hold): Simplify condition.
29360 (read_key_sequence): Reinitialize fkey and keytran at each replay.
29361 (Vkeyboard_translate_table): Move to struct kboard.
29362 (init_kboard): Initialize Vkeyboard_translate_table.
29363 (syms_of_keyboard): Use DEFVAR_KBOARD to define
29364 Vkeyboard_translate_table. Update doc strings. Update docs of
29365 local-function-key-map and function-key-map.
29366
29367 * terminal.c: New file.
29368
29369 * term.c: Include errno.h.
29370 (Vring_bell_function, device_list, initial_device)
29371 (next_device_id, ring_bell, update_begin, update_end)
29372 (set_terminal_window, cursor_to, raw_cursor_to)
29373 (clear_to_end, clear_frame, clear_end_of_line)
29374 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
29375 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
29376 (syms_of_term): Move their initialization to terminal.c.
29377 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
29378 (Ftty_display_color_cells)
29379 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
29380 (clear_tty_hooks, set_tty_hooks)
29381 (init_tty, maybe_fatal): New functions.
29382 (Ftty_type): Return nil if terminal is not on a tty instead of
29383 throwing an error. Doc update.
29384 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
29385 Doc update. Initialize new subrs and variables.
29386 (delete_tty): Use terminal->deleted.
29387 (tty_set_terminal_modes): Rename from set_terminal_modes.
29388 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
29389 (set_scroll_region): Rename to `tty_set_scroll_region'.
29390 (turn_on_insert): Rename to `tty_turn_on_insert'.
29391 (turn_off_insert): Rename to `tty_turn_off_insert'.
29392 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
29393 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
29394 (toggle_highligh): Rename to `tty_toggle_highlight'.
29395 (background_highlight): Rename to `tty_background_highlight'.
29396 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
29397 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
29398 (tty_set_scroll_region, tty_background_highlight)
29399 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
29400 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
29401 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
29402 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
29403 Add static modifier.
29404 (tty_reset_terminal_modes, tty_set_terminal_window)
29405 (tty_set_scroll_region, tty_background_highlight)
29406 (tty_highlight_if_desired, tty_cursor_to)
29407 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
29408 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
29409 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
29410 renames.
29411
29412 2007-08-28 Jan Djärv <jan.h.d@swipnet.se>
29413
29414 * keyboard.c: Qrtl is new.
29415 (parse_tool_bar_item): Handle :rtl keyword.
29416 (syms_of_keyboard): Intern :rtl keyword.
29417
29418 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
29419
29420 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
29421 so no Lisp code is executed.
29422 (file_for_image, find_rtl_image): New functions.
29423 (xg_get_image_for_pixmap): Use file_for_image.
29424 (update_frame_tool_bar): If direction is RTL, use RTL image if
29425 defined. Use Gtk stock images if defined.
29426
29427 2007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29428
29429 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
29430 for nonexistent or zero-width glyph in composition glyph.
29431
29432 2007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
29433
29434 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
29435
29436 * xdisp.c (Finvisible_p): New function.
29437 (syms_of_xdisp): defsubr it.
29438
29439 2007-08-24 Juanma Barranquero <lekktu@gmail.com>
29440
29441 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
29442 Doc fixes.
29443
29444 2007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29445
29446 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
29447
29448 2007-08-24 Martin Rudalics <rudalics@gmx.at>
29449
29450 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
29451 whether decoding has modified buffer contents.
29452
29453 2007-08-24 Jason Rumney <jasonr@gnu.org>
29454
29455 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
29456 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
29457 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
29458 (init_svg_functions) [HAVE_NTGUI]: New function.
29459 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
29460 (svg_load_image): Use them.
29461 (svg_load_image) [HAVE_NTGUI]: Implement background.
29462
29463 2007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29464
29465 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
29466 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
29467 (LIBX): Remove @RSVG_LIBS@.
29468 (LIBES): Add $(RSVG_LIBS).
29469
29470 * image.c (svg_load_image): Blend with specified background if exists.
29471 Use IMAGE_BACKGROUND. Add Mac OS Support.
29472
29473 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
29474 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
29475 Remove macros.
29476 [MAC_OSX] (socket_callback): Do nothing.
29477 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
29478 ReceiveNextEvent.
29479 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
29480 socket_callback.
29481 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
29482
29483 2007-08-22 Glenn Morris <rgm@gnu.org>
29484
29485 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
29486
29487 2007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
29488
29489 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
29490
29491 * image.c: Add support for SVG images. Some additional comments
29492 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
29493 (svg_image_p): New function to test for SVG image.
29494 (svg_load): New function to load SVG image.
29495 (svg_load_image): New function, helper for svg_load.
29496 (Qsvg): New Lisp_object.
29497 (svg_keyword_index): New enum.
29498 (svg_format): New static `image_keyword' struct.
29499 (svg_type): New static `image_type' struct.
29500 (librsvg/rsvg.h): Include it.
29501
29502 2007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
29503
29504 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
29505
29506 2007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
29507
29508 * lread.c (Qold_style_backquotes): New var.
29509 (syms_of_lread): Init and staticpro it.
29510 (load_warn_old_style_backquotes): New fun.
29511 (Fload): Use them to warn about old style backquotes.
29512 (end_of_file_error, Fload): Remove unused vars.
29513
29514 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
29515
29516 * lread.c (Vold_style_backquotes): New var.
29517 (syms_of_lread): Init and export it to Elisp.
29518 (read1): Set it when we find an old-style (back)quote.
29519
29520 2007-08-22 Jason Rumney <jasonr@gnu.org>
29521
29522 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
29523
29524 2007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
29525
29526 * puresize.h (BASE_PURESIZE): Increase to 1140000.
29527
29528 2007-08-19 Richard Stallman <rms@gnu.org>
29529
29530 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
29531
29532 2007-08-19 Andreas Schwab <schwab@suse.de>
29533
29534 * alloc.c (pure): Round PURESIZE up.
29535
29536 2007-08-17 Jan Djärv <jan.h.d@swipnet.se>
29537
29538 * xterm.c (handle_one_xevent): Remove check that mouse click is in
29539 active frame.
29540
29541 2007-08-16 Richard Stallman <rms@gnu.org>
29542
29543 * eval.c (Fcommandp): Add parens to clarify.
29544
29545 * minibuf.c (Fall_completions): Use enum for type of table.
29546
29547 * emacs.c (USAGE2): Improve text.
29548
29549 2007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
29550
29551 * term.c (tty_default_color_capabilities): Declare static
29552 variables in file scope, to avoid HPUX compiler problem.
29553
29554 2007-08-13 Jan Djärv <jan.h.d@swipnet.se>
29555
29556 * gtkutil.c (update_frame_tool_bar): Use -1 as index
29557 to gtk_toolbar_insert.
29558
29559 2007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
29560
29561 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
29562
29563 * insdel.c (reset_var_on_error): New fun.
29564 (signal_before_change, signal_after_change):
29565 Use it to reset (after|before)-change-functions to nil in case of error.
29566 Bind inhibit-modification-hooks to t.
29567 Don't bind (after|before)-change-functions to nil while they run.
29568
29569 2007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29570
29571 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
29572 filling pixmap with stippled background.
29573
29574 2007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29575
29576 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
29577 Don't use invisible frame as parent window for repositioning.
29578
29579 2007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
29580
29581 * print.c (new_backquote_output): Rename from old_backquote_output.
29582 (print): Inverse its logic (according to its name) so as to match the
29583 behavior of new_backquote_flag in lread.c.
29584
29585 2007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29586
29587 * gmalloc.c (posix_memalign): New function.
29588
29589 * macterm.c (frame_highlight, frame_unhighlight): Don't call
29590 ActivateControl/DeactivateControl here.
29591 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
29592 frame-notice-user-settings is non-nil.
29593 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
29594 for kEventParamFMFontStyle.
29595 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
29596 mac_pass_command_to_system and mac_pass_control_to_system here.
29597 (XTread_socket): Call ActivateControl/DeactivateControl here.
29598 (XTread_socket) [TARGET_API_MAC_CARBON]:
29599 Check mac_pass_command_to_system and mac_pass_control_to_system here.
29600 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
29601 for window repositioning.
29602
29603 2007-08-08 Glenn Morris <rgm@gnu.org>
29604
29605 * Replace `iff' in doc-strings and comments.
29606
29607 2007-08-07 Chong Yidong <cyd@stupidchicken.com>
29608
29609 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
29610
29611 2007-08-07 Martin Rudalics <rudalics@gmx.at>
29612
29613 * fileio.c (Finsert_file_contents): Run format-decode and
29614 after_insert_file_functions on entire buffer when REPLACE is
29615 non-nil and inhibit modification_hooks and point_motion_hooks.
29616 For consistency, run after_insert_file_functions iff something
29617 got inserted. Move signal_after_change and update_compositions
29618 after code running after_insert_file_functions. Make sure that
29619 undo_list doesn't record intermediate steps of the decoding process.
29620
29621 2007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29622
29623 * emacs.c (main)
29624 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
29625 Call malloc_enable_thread on interactive startup.
29626
29627 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
29628 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
29629 [USE_PTHREAD]: Conditionalize with it.
29630 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
29631 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
29632 New functions.
29633
29634 2007-08-06 Chong Yidong <cyd@stupidchicken.com>
29635
29636 * xdisp.c (redisplay_window): When restoring original buffer
29637 position, make sure it is still valid.
29638
29639 * image.c (png_load): Ignore png-supplied background color.
29640
29641 2007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29642
29643 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
29644 Use kCFAbsoluteTimeIntervalSince1970.
29645
29646 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
29647 New variable.
29648 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
29649 event loop should be quit.
29650 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
29651 Quit dialog event loop if quit_dialog_event_loop is set.
29652
29653 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
29654 (Selection): New typedef. Use instead of ScrapRef.
29655 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
29656 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
29657 (mac_clear_selection): Rename from clear_scrap.
29658 (get_flavor_type_from_symbol): New argument SEL and subsume function of
29659 scrap_has_target_type. All uses changed.
29660 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
29661 (mac_selection_has_target_p): New functions.
29662 (mac_put_selection_value): Rename from put_scrap_string.
29663 (mac_get_selection_value): Rename from get_scrap_string.
29664 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
29665 (put_scrap_private_timestamp, scrap_has_target_type)
29666 (get_scrap_private_timestamp): Remove functions.
29667 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
29668 (x_own_selection, x_get_local_selection):
29669 Use mac_valid_selection_value_p.
29670 (x_own_selection): Don't use put_scrap_private_timestamp.
29671 Record OWNERSHIP-INFO into Vselection_alist instead.
29672 (x_get_local_selection): Don't check type if request is local.
29673 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
29674 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
29675
29676 2007-08-04 Jan Djärv <jan.h.d@swipnet.se>
29677
29678 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
29679 add comment explaining why.
29680
29681 2007-08-03 Richard Stallman <rms@gnu.org>
29682
29683 * fileio.c (Fvisited_file_modtime): Use make_time.
29684
29685 2007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
29686
29687 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
29688 build.
29689
29690 2007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
29691
29692 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
29693
29694 2007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
29695
29696 * puresize.h (BASE_PURESIZE): Increase to 1130000.
29697
29698 2007-07-30 Richard Stallman <rms@gnu.org>
29699
29700 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
29701
29702 2007-07-29 Jan Djärv <jan.h.d@swipnet.se>
29703
29704 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
29705
29706 2007-07-28 Nick Roberts <nickrob@snap.net.nz>
29707
29708 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
29709 remote default-directory.
29710
29711 * buffer.c (mode-line-format): Update doc string.
29712
29713 2007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29714
29715 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
29716 scroll bar gap.
29717 (x_scroll_bar_create): Set bar->fringe_extended_p.
29718 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
29719 on frame edge. Check fringe background extension. Don't clear
29720 extended fringe background area.
29721
29722 * w32term.h (struct scroll_bar): New member fringe_extended_p.
29723 (w32_fill_area): Enclose multiple statements with do ... while (0).
29724
29725 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
29726 Extend fringe background to scroll bar gap.
29727 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
29728 Set bar->fringe_extended_p.
29729 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
29730 Put leftmost/rightmost scroll bars on frame edge. Check fringe
29731 background extension. Don't clear extended fringe background area.
29732
29733 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
29734 New member fringe_extended_p.
29735
29736 2007-07-25 Glenn Morris <rgm@gnu.org>
29737
29738 * Relicense all FSF files to GPLv3 or later.
29739
29740 * COPYING: Switch to GPLv3.
29741
29742 2007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
29743
29744 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
29745
29746 * data.c (Finteractive_form): Check for the presence of an
29747 `interactive-form' symbol property more thoroughly.
29748
29749 * data.c (Finteractive_form): Use an `interactive-form' property if
29750 present, analogous to the function-documentation property.
29751
29752 2007-07-24 Jason Rumney <jasonr@gnu.org>
29753
29754 * w32fns.c (x_real_positions): Get real position from OS instead of
29755 calculating it.
29756
29757 2007-07-23 Jason Rumney <jasonr@gnu.org>
29758
29759 * filelock.c (current_lock_owner): Allow for @ sign in username.
29760
29761 2007-07-22 Nick Roberts <nickrob@snap.net.nz>
29762
29763 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
29764 remote default-directory.
29765
29766 * buffer.c (mode-line-format): Describe above case in doc string.
29767
29768 2007-07-20 Eli Zaretskii <eliz@gnu.org>
29769
29770 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
29771 Define if not defined.
29772
29773 2007-07-18 Jason Rumney <jasonr@gnu.org>
29774
29775 * w32proc.c (w32_executable_type): Handle 64 bit executables.
29776
29777 2007-07-18 Richard Stallman <rms@gnu.org>
29778
29779 * data.c (Fsetq_default): Doc fix.
29780
29781 * eval.c (Fsetq): Doc fix.
29782
29783 2007-07-18 Juanma Barranquero <lekktu@gmail.com>
29784
29785 * coding.c (Ffind_operation_coding_system):
29786 * eval.c (For, Fand): Doc fixes.
29787 Reported by Johan Bockgård.
29788
29789 2007-07-18 Jan Djärv <jan.h.d@swipnet.se>
29790
29791 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
29792
29793 * xterm.h: Declare x_ewmh_activate_frame.
29794
29795 * xterm.c (x_ewmh_activate_frame): New function.
29796 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
29797
29798 2007-07-17 Martin Rudalics <rudalics@gmx.at>
29799
29800 * window.c (Fdisplay_buffer): If largest or LRU window is the
29801 only window, split it even if it is not eligible for splitting.
29802 This restores the original behavior broken by the 2007-07-15
29803 change.
29804
29805 2007-07-17 Glenn Morris <rgm@gnu.org>
29806
29807 * abbrev.c (abbrev_check_chars): New function.
29808 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
29809 Call abbrev_check_chars to check abbrev characters are word
29810 constituents. Doc fix.
29811
29812 2007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
29813
29814 * process.c (Fstart_process, Fmake_network_process)
29815 (read_process_output): Fix up last changes.
29816
29817 2007-07-16 Eli Zaretskii <eliz@gnu.org>
29818
29819 * makefile.w32-in (clean): Don't delete *~.
29820
29821 2007-07-16 Andreas Schwab <schwab@suse.de>
29822
29823 * window.c (Fdisplay_buffer): Use NILP.
29824 (Fset_window_scroll_bars): Likewise.
29825
29826 2007-07-15 Martin Rudalics <rudalics@gmx.at>
29827
29828 * window.c (window_min_size_2): New function.
29829 (window_min_size_1, size_window, Fdisplay_buffer)
29830 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
29831 windows without mode- or header-lines when window-min-height is
29832 too small.
29833 (size_window): Reset nodelete_p after testing it, following an
29834 earlier note by Kim F. Storm.
29835 (display_buffer): Do not set split_height_threshold to twice the
29836 value of window_min_height to avoid changing the value of a
29837 customizable variable. Rather explicitly check whether the
29838 height of the window that shall be splitted is at least as large
29839 as split_height_threshold.
29840 (Fwindow_full_width_p): New defun.
29841 (syms_of_window): Defsubr it.
29842
29843 * window.h: Add EXFUN for Fwindow_full_width_p.
29844
29845 2007-07-14 Jason Rumney <jasonr@gnu.org>
29846
29847 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
29848
29849 2007-07-14 Richard Stallman <rms@gnu.org>
29850
29851 * eval.c (maybe_call_debugger): New function.
29852 (find_handler_clause): Use maybe_call_debugger.
29853 Call it when the handler says `debug'.
29854 Eliminate DEBUGGER_VALUE_PTR.
29855 (Fsignal): Eliminate debugger_value.
29856 (Qdebug): New variable.
29857 (syms_of_eval): Initialize it.
29858
29859 2007-07-14 Juanma Barranquero <lekktu@gmail.com>
29860
29861 * eval.c (Fprogn):
29862 * keyboard.c (Ftrack_mouse):
29863 * print.c (Fwith_output_to_temp_buffer):
29864 * window.c (Fsave_window_excursion): Doc fix.
29865
29866 2007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
29867
29868 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
29869
29870 2007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
29871
29872 * process.h (struct Lisp_Process): Turn slots infd, outfd,
29873 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
29874 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
29875 read_output_delay, and read_output_skip from Lisp_Objects to ints.
29876 Remove unused encoding_carryover.
29877 * process.c: Adjust all functions accordingly.
29878
29879 2007-07-12 Richard Stallman <rms@gnu.org>
29880
29881 * term.c: Include unistd.h only if HAVE_UNISTD_H.
29882
29883 2007-07-11 Jason Rumney <jasonr@gnu.org>
29884
29885 * makefile.w32-in (LIBS): Include OLE32.
29886
29887 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
29888 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
29889
29890 2007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
29891
29892 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
29893 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
29894 from a Lisp_Object into a bare pointer.
29895 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
29896 Adjust the code correspondingly.
29897
29898 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
29899
29900 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
29901 (term_show_mouse_face): Remove unused var `j'.
29902 (handle_one_term_event): Remove unused vars `i' and `j'.
29903 Don't cast return value of ttyname since it's not necessary.
29904
29905 2007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
29906
29907 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
29908 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
29909
29910 * fns.c (map_char_table): Use an array of int for `indices' rather than
29911 an array of Lisp_Objects (which are only ever integers anyway).
29912 (Fmap_char_table): Update caller.
29913 * lisp.h: Update prototype.
29914 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
29915 * fontset.c (Ffontset_info):
29916 * casetab.c (set_case_table): Update callers.
29917
29918 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
29919
29920 * keymap.c (struct accessible_keymaps_data)
29921 (struct where_is_internal_data): New structures.
29922 (accessible_keymaps_1, where_is_internal_1): Use them to change
29923 interface to adhere to the one used by map_keymap.
29924 (Faccessible_keymaps, where_is_internal): Use map_keymap.
29925 (accessible_keymaps_char_table, where_is_internal_2): Remove.
29926
29927 * keymap.h (map_keymap_function_t): More informative prototype.
29928
29929 2007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
29930
29931 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
29932 (looking_at_1): Don't change search_regs and last_thing_searched
29933 if `inhibit-changing-match-data' is non-nil.
29934 (string_match_1, search_buffer, set_search_regs): Likewise.
29935 (syms_of_search): Add Lisp level definition for
29936 `inhibit-changing-match-data' and set it to nil.
29937 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
29938 start and end of the match, instead of using values in search_regs.
29939
29940 2007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
29941
29942 * minibuf.c (Fcompleting_read): New value `confirm-only'
29943 for `require-match'.
29944
29945 2007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
29946
29947 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
29948 part of the 2007-06-27 change to syms_of_fileio.
29949
29950 2007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29951
29952 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
29953 Check WINDOWP before using XWINDOW. Consolidate return statements.
29954
29955 2007-06-27 Richard Stallman <rms@gnu.org>
29956
29957 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
29958
29959 2007-06-27 Juanma Barranquero <lekktu@gmail.com>
29960
29961 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
29962
29963 2007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29964
29965 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
29966 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
29967 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
29968 (_free_internal, memalign): Use them.
29969 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
29970 Initialize to PTHREAD_MUTEX_INITIALIZER.
29971 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
29972 (morecore_nolock): Rename from morecore. All uses changed.
29973 Use only nolock versions of internal allocation functions.
29974 (_malloc_internal_nolock, _realloc_internal_nolock)
29975 (_free_internal_nolock): New functions created from
29976 _malloc_internal, _realloc_internal, and _free_internal.
29977 (_malloc_internal, _realloc_internal, _free_internal): Use them.
29978 Copy hook value to automatic variable before its use.
29979 (memalign): Copy hook value to automatic variable before its use.
29980
29981 2007-06-26 Kenichi Handa <handa@m17n.org>
29982
29983 * coding.c (Ffind_operation_coding_system): Docstring improved.
29984 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
29985
29986 2007-06-25 David Kastrup <dak@gnu.org>
29987
29988 * keymap.c (Fcurrent_active_maps): Add `position' argument.
29989 (Fwhere_is_internal): Adjust call to `current-active-maps' to
29990 cater for additional parameter.
29991
29992 * keymap.h: Adjust number of parameters to `current-active-maps'.
29993
29994 * doc.c (Fsubstitute_command_keys): Adjust call of
29995 `current-active-maps'.
29996
29997 2007-06-25 David Kastrup <dak@gnu.org>
29998
29999 * callint.c (Fcall_interactively): Make the parsing of interactive
30000 specs somewhat more readable.
30001
30002 2007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30003
30004 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
30005 to scroll bar gap also when bitmap fills fringe. Draw only foreground
30006 if extended background has already been filled.
30007
30008 2007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30009
30010 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
30011 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
30012
30013 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
30014 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
30015 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
30016 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
30017 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
30018 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
30019 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
30020 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
30021 Run timers during dialog popup.
30022 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
30023
30024 2007-06-21 Jason Rumney <jasonr@gnu.org>
30025
30026 * image.c (convert_mono_to_color_image): Swap fore and background.
30027
30028 2007-06-20 Jason Rumney <jasonr@gnu.org>
30029
30030 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
30031 (w32_free_bdf_font): Unmap memory not handle.
30032
30033 2007-06-20 Sam Steingold <sds@gnu.org>
30034
30035 * gmalloc.c (__morecore): Fix the declaration to comply with the
30036 definition.
30037
30038 2007-06-20 Juanma Barranquero <lekktu@gmail.com>
30039
30040 * w32term.c (w32_delete_display): Remove leftover declaration.
30041 (w32_define_cursor, w32_initialize): Make static.
30042
30043 * w32.c (_wsa_errlist): Fix typo in error message.
30044 (init_environment): Ignore any environment variable from the
30045 registry having a null value.
30046
30047 2007-06-20 Glenn Morris <rgm@gnu.org>
30048
30049 * Makefile.in (LIBGIF): Default to -lgif.
30050
30051 2007-06-17 Jason Rumney <jasonr@gnu.org>
30052
30053 * w32menu.c (add_menu_item): Don't use multibyte string functions on
30054 unicode strings.
30055
30056 2007-06-16 Juanma Barranquero <lekktu@gmail.com>
30057
30058 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
30059 Fix typo in docstring.
30060
30061 2007-06-16 Eli Zaretskii <eliz@gnu.org>
30062
30063 * w32menu.c (add_menu_item): Escape `&' characters in menu items
30064 and their keybindings.
30065
30066 2007-06-15 Chong Yidong <cyd@stupidchicken.com>
30067
30068 * composite.c (update_compositions): Fix last fix.
30069
30070 2007-06-14 Jason Rumney <jasonr@gnu.org>
30071
30072 * w32.c (get_process_times_fn): New function pointer.
30073 (globals_of_w32): Intialize it if present in kernel32.dll.
30074 (w32_get_internal_run_time): New function.
30075
30076 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
30077
30078 2007-06-14 Kenichi Handa <handa@etlken.m17n.org>
30079
30080 * composite.c (update_compositions): Check the validness of
30081 compositions.
30082
30083 2007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30084
30085 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
30086 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
30087
30088 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
30089 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
30090
30091 * macgui.h (USE_MAC_TOOLBAR): New define.
30092
30093 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
30094 Return immediately unless popup is activated.
30095
30096 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
30097 background to scroll bar gap.
30098 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
30099 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
30100 scroll bars on frame edge. Check fringe background extension.
30101 Don't clear extended fringe background area.
30102 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
30103 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
30104 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
30105 [USE_MAC_TOOLBAR]: New macros.
30106 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
30107 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
30108 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
30109 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
30110 [USE_MAC_TOOLBAR]: New functions.
30111 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
30112 manually if previous repositioning has failed.
30113 (mac_handle_keyboard_event): Use precomputed event kind.
30114 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
30115 as tool bar item click. Handle mouse movement over tool bar items.
30116
30117 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
30118 toolbar_win_gravity.
30119 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
30120 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
30121 Add externs.
30122
30123 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
30124 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
30125
30126 2007-06-14 Chong Yidong <cyd@stupidchicken.com>
30127
30128 * image.c (search_image_cache): Remove unused variable.
30129
30130 2007-06-13 Chong Yidong <cyd@stupidchicken.com>
30131
30132 * xfns.c, xmenu.c: Link to xaw3d if available.
30133
30134 2007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30135
30136 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
30137 frame_foreground and frame_background.
30138
30139 * image.c (lookup_image): Save frame foreground and background colors.
30140 (search_image_cache): Check if saved and current frame colors match.
30141
30142 2007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
30143
30144 * regex.c (regex_compile): Remove the `regnum' counter.
30145 Use bufp->re_nsub instead. Add support for \(?N:RE\).
30146
30147 2007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
30148
30149 * term.c: Include intervals.h to declare Fget_text_property.
30150
30151 2007-06-10 Jason Rumney <jasonr@gnu.org>
30152
30153 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
30154
30155 2007-06-08 Juanma Barranquero <lekktu@gmail.com>
30156
30157 * callint.c (Fcall_interactively):
30158 * editfns.c (Fdelete_and_extract_region):
30159 * fileio.c (Fread_file_name):
30160 * fns.c (Fmapconcat):
30161 * keyboard.c (cmd_error_internal):
30162 * keymap.c (Fkey_description):
30163 * lread.c (openp):
30164 * minibuf.c (read_minibuf):
30165 * search.c (wordify):
30166 * sunfns.c (sel_read):
30167 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
30168 * xfns.c (x_default_scroll_bar_color_parameter):
30169 * xmenu.c (menu_help_callback):
30170 * xselect.c (Fx_get_atom_name):
30171 * xterm.c (x_term_init): Use empty_unibyte_string.
30172
30173 2007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
30174
30175 * alloc.c (init_strings): Initialize canonical empty strings.
30176 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
30177 canonical empty string when the requested size is 0.
30178
30179 * emacs.c (empty_unibyte_string): Rename from empty_string.
30180 (empty_multibyte_string): New canonical empty string.
30181 (syms_of_emacs): Don't initialize empty_string.
30182
30183 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
30184 string, if appropriate.
30185 (empty_unibyte_string, empty_multibyte_string): New externs.
30186 (empty_string): Remove extern.
30187
30188 * lread.c (syms_of_lread): Use empty_unibyte_string.
30189
30190 2007-06-07 Jason Rumney <jasonr@gnu.org>
30191
30192 * s/ms-w32.h: Don't define HAVE_TZNAME.
30193
30194 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
30195
30196 2007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30197
30198 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
30199
30200 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
30201 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
30202
30203 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
30204 Don't call next handler.
30205 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
30206 Remove argument. Install handler to application.
30207 (set_frame_menubar): Don't change deep_p.
30208 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
30209 FRAME_OUTER_TO_INNER_DIFF_Y.
30210 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
30211 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
30212 [HAVE_DIALOGS]: New macros.
30213 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
30214 Use them.
30215 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
30216
30217 * macselect.c [MAC_OSX] (install_service_handler): Rename from
30218 init_service_handler. All callers changed. Return OSStatus value.
30219
30220 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
30221 All callers changed so as not to call SetPortWindowPort.
30222 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
30223 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
30224 mac_draw_string_common.
30225 (mac_draw_image_string_qd): Likewise.
30226 (mac_draw_string_common): Use them. Add INLINE.
30227 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
30228 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
30229 GetGlobalMouse.
30230 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
30231 and FRAME_OUTER_TO_INNER_DIFF_Y.
30232 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
30233 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
30234 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
30235 repositioning window to mac_handle_window_event.
30236 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
30237 saving window location to mac_handle_window_event
30238 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
30239 (install_menu_target_item_handler): Remove argument in extern.
30240 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
30241 Also accept command events.
30242 (do_keystroke): New function created from XTread_socket.
30243 (init_command_handler): Remove functions.
30244 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
30245 and save window location by kEventWindowShowing and kEventWindowHiding
30246 handlers here. Don't call next handler for window state change and
30247 focus events.
30248 (mac_handle_application_event, mac_handle_keyboard_event)
30249 [TARGET_API_MAC_CARBON]: New functions.
30250 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
30251 kEventWindowShowing and kEventWindowHiding events. Move installation
30252 of mouse, font, text input and menu target item handlers to
30253 install_application_handler.
30254 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
30255 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
30256 New function.
30257 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
30258 Register it.
30259 (XTread_socket) [TARGET_API_MAC_CARBON]:
30260 Consolidate SendEventToEventTarget calls.
30261 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
30262 Move application activation handler to mac_handle_application_event.
30263 Move keyboard handler to mac_handle_keyboard_event.
30264 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
30265 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
30266 init_command_handler. Call install_application_handler.
30267
30268 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
30269 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
30270
30271 2007-06-07 Glenn Morris <rgm@gnu.org>
30272
30273 * emacs.c (main): Use `emacs-copyright' in --version output.
30274
30275 2007-06-06 Chong Yidong <cyd@stupidchicken.com>
30276
30277 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
30278
30279 2007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30280
30281 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
30282
30283 * macgui.h: Replace WindowPtr with WindowRef.
30284
30285 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
30286 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
30287 Replace ControlHandle with ControlRef.
30288 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
30289
30290 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
30291 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
30292 Replace ControlHandle with ControlRef.
30293 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
30294 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
30295
30296 * macterm.h (struct scroll_bar): Rename member control_handle_low
30297 and control_handle_high to control_ref_low and control_ref_high.
30298 All uses changed.
30299 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
30300 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
30301 respectively. All uses changed.
30302 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
30303 (install_window_handler, remove_window_handler): Replace WindowPtr
30304 with WindowRef in externs.
30305
30306 2007-06-05 Juanma Barranquero <lekktu@gmail.com>
30307
30308 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
30309
30310 2007-06-03 Nick Roberts <nickrob@snap.net.nz>
30311
30312 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
30313
30314 * frame.c (Fmouse_position, Fmouse_pixel_position):
30315 Condition on HAVE_GPM too.
30316
30317 * term.c (term_mouse_highlight): Remove unused variables.
30318 (Fterm_open_connection): Set gpm_zerobased to 1.
30319 (term_mouse_movement, term_mouse_click, handle_one_term_event):
30320 Use zero based co-ordinates.
30321 (handle_one_term_event): Report a drag as mouse movement too.
30322
30323 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
30324
30325 2007-06-03 Chong Yidong <cyd@stupidchicken.com>
30326
30327 * image.c (search_image_cache): New function. Require background
30328 color match if background color is unspecified in the image spec.
30329 (uncache_image, lookup_image): Use it.
30330
30331 2007-06-01 Juanma Barranquero <lekktu@gmail.com>
30332
30333 * window.c (Fshrink_window): Reflow docstring.
30334
30335 2007-06-02 Chong Yidong <cyd@stupidchicken.com>
30336
30337 * Version 22.1 released.
30338
30339 2007-06-01 Richard Stallman <rms@gnu.org>
30340
30341 * xfns.c (x_encode_text): Add GCPRO.
30342
30343 2007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30344
30345 * xfns.c (x_set_name_internal): Save encoded name before
30346 x_encode_text in case string data is relocated.
30347
30348 2007-05-31 Richard Stallman <rms@gnu.org>
30349
30350 * buffer.c (syms_of_buffer): Doc fix.
30351
30352 2007-05-30 Nick Roberts <nickrob@snap.net.nz>
30353
30354 * sysdep.c (init_sys_modes): Add rather than replace with
30355 O_NONBLOCK.
30356
30357 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
30358 term_mouse_moveto.
30359
30360 * termhooks.h (term_mouse_moveto): New extern.
30361
30362 * term.c (mouse_face_window): Rename...
30363 (Qmouse_face_window): ...to this.
30364 (term_show_mouse_face, term_clear_mouse_face)
30365 (term_mouse_highlight): Use Qmouse_face_window.
30366 (term_mouse_moveto): New function.
30367 (term_mouse_position): Make it work.
30368 (syms_of_term): Uncomment assignment to mouse_position_hook.
30369 Staticpro Qmouse_face_window.
30370
30371 2007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30372
30373 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
30374 around current_column call.
30375
30376 2007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
30377
30378 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
30379 * xdisp.c (next_element_from_buffer):
30380 * window.c (delete_window):
30381 * term.c (term_mouse_highlight):
30382 * msdos.c (getdefdir):
30383 * macterm.c (mac_create_bitmap_from_bitmap_data)
30384 (init_font_name_table):
30385 * fns.c (Fsxhash):
30386 * data.c (Fmake_local_variable):
30387 * ccl.c (ccl_driver): Likewise.
30388
30389 2007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30390
30391 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
30392 Call mac_wakeup_from_rne on window size change.
30393
30394 2007-05-25 Chong Yidong <cyd@stupidchicken.com>
30395
30396 * image.c (uncache_image): Fix typo.
30397
30398 2007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
30399
30400 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
30401
30402 2007-05-22 Richard Stallman <rms@gnu.org>
30403
30404 * xterm.c (x_connection_closed): Remove NO_RETURN.
30405
30406 2007-05-22 Martin Rudalics <rudalics@gmx.at>
30407
30408 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
30409
30410 2007-05-21 Chong Yidong <cyd@stupidchicken.com>
30411
30412 * image.c (uncache_image): New function.
30413 (Fimage_refresh): New function.
30414
30415 2007-05-20 Jan Djärv <jan.h.d@swipnet.se>
30416
30417 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
30418
30419 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
30420
30421 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
30422 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
30423
30424 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
30425
30426 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
30427 conditional on [HAVE_GPM_H].
30428
30429 2007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
30430
30431 * syntax.c (skip_chars): Update syntax-table only after we checked that
30432 the new location is valid.
30433
30434 2007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30435
30436 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
30437 mac_get_window_bounds.
30438
30439 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
30440
30441 * Makefile.in (LIBGPM): Allow it to be set from configure.
30442 If set then link Emacs with it.
30443
30444 * config.in: Regenerate.
30445
30446 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
30447 New externs.
30448
30449 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
30450 Include gpm.h.
30451 (handle_one_term_event, term_gpm): New externs.
30452
30453 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
30454 and allow it to be interrupted by SIGIO.
30455
30456 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
30457 (wait_reading_process_output): Wait on gpm_fd too.
30458 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
30459 (add_gpm_wait_descriptor_called_flag): New variable.
30460 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
30461
30462 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
30463 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
30464 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
30465 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
30466 (make_lispy_event): Add case GPM_CLICK_EVENT.
30467 (read_avail_input): Handle mouse input.
30468
30469 * term.c (write_glyphs_with_face): New function.
30470 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
30471 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
30472 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
30473 (mouse_face_face_id, term_gpm, pos_x, pos_y)
30474 (last_mouse_x, last_mouse_y): New variables.
30475 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
30476 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
30477 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
30478 (Fterm_close_connection): New functions.
30479 (term_init): Initialise mouse_face_window.
30480
30481 2007-05-19 Chong Yidong <cyd@stupidchicken.com>
30482
30483 * xdisp.c (redisplay_window): If first window line is a
30484 continuation line, recompute the new window start instead of
30485 recentering.
30486
30487 2007-05-18 Glenn Morris <rgm@gnu.org>
30488
30489 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
30490 Suggested by Alfred M. Szmidt <ams@gnu.org>.
30491
30492 2007-05-17 Glenn Morris <rgm@gnu.org>
30493
30494 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
30495
30496 2007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30497
30498 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
30499 dead key repeat and up events.
30500
30501 2007-05-14 Chong Yidong <cyd@stupidchicken.com>
30502
30503 * image.c (pbm_load): Check image size for monochrome pbm.
30504
30505 2007-05-13 Chong Yidong <cyd@stupidchicken.com>
30506
30507 * xterm.c (XTread_socket): Revert last change.
30508
30509 2007-05-12 Chong Yidong <cyd@stupidchicken.com>
30510
30511 * image.c (pbm_load): Correctly check image size for greyscale pbm.
30512
30513 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
30514
30515 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
30516
30517 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
30518 mixup (YAILOM).
30519
30520 2007-05-07 Andreas Schwab <schwab@suse.de>
30521
30522 * keymap.c (Flookup_key): Fix typo in last change.
30523
30524 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
30525
30526 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
30527 mapping for unibyte strings.
30528
30529 2007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30530
30531 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
30532 (Fx_popup_dialog) [MAC_OSX]: Likewise.
30533
30534 2007-04-29 Richard Stallman <rms@gnu.org>
30535
30536 * insdel.c (replace_range): For undo, record insertion first.
30537
30538 2007-04-29 Andreas Schwab <schwab@suse.de>
30539
30540 * lisp.h (VECSIZE): Use OFFSETOF.
30541
30542 2007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30543
30544 * xdisp.c (try_window_reusing_current_matrix): Fix number of
30545 disabled lines.
30546
30547 2007-04-28 Richard Stallman <rms@gnu.org>
30548
30549 * lread.c (read_escape): In a string, \s is always space.
30550
30551 2007-04-27 Jan Djärv <jan.h.d@swipnet.se>
30552
30553 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
30554
30555 * gtkutil.c (xg_update_menubar, create_menus): Create empty
30556 submenu for menu bar items.
30557
30558 See ChangeLog.10 for earlier changes.
30559
30560 ;; Local Variables:
30561 ;; coding: utf-8
30562 ;; End:
30563
30564 Copyright (C) 2007-2011 Free Software Foundation, Inc.
30565
30566 This file is part of GNU Emacs.
30567
30568 GNU Emacs is free software: you can redistribute it and/or modify
30569 it under the terms of the GNU General Public License as published by
30570 the Free Software Foundation, either version 3 of the License, or
30571 (at your option) any later version.
30572
30573 GNU Emacs is distributed in the hope that it will be useful,
30574 but WITHOUT ANY WARRANTY; without even the implied warranty of
30575 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
30576 GNU General Public License for more details.
30577
30578 You should have received a copy of the GNU General Public License
30579 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.