gnus-overrides.texi: Renamed from overrides.texi and all the relevant manuals use...
[bpt/emacs.git] / src / ChangeLog
CommitLineData
233ba4d9 12011-02-05 Glenn Morris <rgm@gnu.org>
95838641
GM
2
3 * xfaces.c (Finternal_set_lisp_face_attribute):
4 Try to clarify some error messages. (Bug#2659)
5
233ba4d9 62011-02-05 Stefan Monnier <monnier@iro.umontreal.ca>
aca092ac
SM
7
8 * editfns.c (save_restriction_restore): Don't forget to invalidate the
9 current_column cache (bug#7946).
10
233ba4d9 112011-02-05 Kenichi Handa <handa@m17n.org>
ea2460a0
KH
12
13 * ftfont.c (ftfont_open): Use FC_DUAL only when it is defined.
14
15 * xftfont.c (xftfont_open): Likewise.
16
233ba4d9 172011-02-05 Andreas Schwab <schwab@linux-m68k.org>
29feb0e9
AS
18
19 * window.c (Fselect_window): Add missing return value.
20
d67985d3
PE
212011-02-05 Paul Eggert <eggert@cs.ucla.edu>
22
25a48bd0
PE
23 xstrcasecmp: conform to C89 pointer rules
24 * xfaces.c (xstrcasecmp): Change args from const unsigned char *
25 to const char *, since they're usually low-level C strings, and
26 this stays compatible with C89 pointer rules. All callers changed.
27
dfb6afda
PE
28 * charset.c: conform to C89 pointer rules
29 (define_charset_internal): Switch between char * and unsigned char *.
30
cc618f4e
PE
31 * xmenu.c: conform to C89 const rules
32 (xmenu_show, xdialog_show): Declare local var as char *, not
33 const char *, to stay compatible with C89 const rules.
34
9bcaafce
PE
35 * xdisp.c: conform to C89 pointer rules
36 (store_mode_line_noprop, display_string, reseat_to_string):
37 (c_string_pos, number_of_chars, message_dolog):
38 (message_log_check_duplicate, set_message_1, store_mode_line_noprop):
39 (display_mode_element, display_string):
40 Switch between char * and unsigned char * to stay compatible wth
41 C89 pointer rules.
42
5b0534c8
PE
43 * regex.c: conform to C89 pointer rules
44 (re_wctype): Add cast, as C89 does not allow assigning between
45 char * and unsigned char *.
46 (regex_compile): Likewise.
47
d67985d3
PE
48 sync from gnulib to remove HAVE_STDBOOL_H
49 * config.in: Regenerate.
50
a5d733f5
EZ
512011-02-04 Eli Zaretskii <eliz@gnu.org>
52
f90e08f5
EZ
53 * makefile.w32-in (LISP_H, PROCESS_H): New variables.
54 Replace all uses of lisp.h with $(LISP_H), and all uses of
55 process.h with $(PROCESS_H).
56 ($(BLD)/editfns.$(O)): Depend on ../lib/strftime.h.
57 ($(BLD)/print.$(O)): Depend on ../lib/ftoastr.h and ../lib/intprops.h.
58
be50df37
EZ
59 * deps.mk: Update for recent changes: gnutls support, gnulib
60 imports, addition of globals.h.
61
f90e08f5
EZ
62 * makefile.w32-in ($(BLD)/sysdep.$(O)): Depend on
63 ../lib/ignore-value.h.
a5d733f5 64
67342916
PE
652011-02-03 Paul Eggert <eggert@cs.ucla.edu>
66
67 allow C code to suppress warnings about ignored return values
68
69 We need to go through the code and for each such warning, either
70 fix the code to pay attention to the returned value, or tell GCC
71 that we really do want to ignore the returned value. Here is one
72 example of how to do the latter.
73 * sysdep.c: Include <ignore-value.h>.
74 (sys_subshell): Suppress an undesirable warning about not checking
75 the returned value of 'write', as there's nothing useful one can
76 do with that returned value.
77
36941b32
JD
782011-02-03 Jan Djärv <jan.h.d@swipnet.se>
79
80 * xterm.c (x_connection_closed): Remove all calls that calls
81 XSync (Bug#7949).
82
3082f617
EZ
832011-02-01 Eli Zaretskii <eliz@gnu.org>
84
85 * image.c (tiff_load): Avoid compiler warning in 2nd arg to
86 TIFFClientOpen.
87
4df0af9b
JD
882011-02-01 Jan Djärv <jan.h.d@swipnet.se>
89
90 * xsmfns.c (ice_connection_closed): Call delete_read_fd.
91 (x_session_check_input): Change args and return type so it can be used
92 as argument to add_read_fd. Make static. Remove call to select.
93 Call kbd_buffer_store_event for emacs_event.
94 (smc_save_yourself_CB): Also store initial argv to SmRestartCommand.
95 (ice_conn_watch_CB): Call add_read_fd.
96
97 * xterm.c (XTread_socket): Remove HAVE_X_SM block with call to
98 x_session_check_input.
99 (x_session_initialized): Remove definition.
100 (x_initialize): Remove setting of x_session_initialized.
101
102 * xterm.h (x_session_check_input): Remove declaration.
103
a4180391
PE
1042011-02-01 Paul Eggert <eggert@cs.ucla.edu>
105
106 format-time-string now supports subsecond time stamp resolution
107 * editfns.c (emacs_nmemftime): Renamed from emacs_memftimeu,
108 for consistency with its new argument and with gnulib nstrftime.
109 All callers changed. New argument NS.
110 (Fformat_time_string): Check that the time argument's microseconds
111 component, if any, is in range; this avoids integer overflow and
112 also nstrftime needs this. Document %N.
113
14beddf4 1142011-01-31 Andreas Schwab <schwab@linux-m68k.org>
df61c790
AS
115
116 * image.c (DEF_IMGLIB_FN): Add parameter rettype, use it instead
117 of int. All uses adjusted.
118 (PNG_JMPBUF, png_load, jpeg_load, tiff_load, gif_load)
119 (svg_load_image): Remove casts.
120
14beddf4 1212011-01-31 Chong Yidong <cyd@stupidchicken.com>
7f9c5df9
CY
122
123 * image.c (fn_png_longjmp, fn_png_set_longjmp_fn): New png
124 function definitions for compiling with libpng-1.5.
125 (PNG_LONGJMP, PNG_JMPBUF): New macros for libpng-1.5.
126 (my_png_error, png_load): Use them. Suggested by Thomas Klausner
127 (Bug#7908).
128
70b0d280
EZ
1292011-01-31 Eli Zaretskii <eliz@gnu.org>
130
8b3c625b
EZ
131 * s/ms-w32.h (HAVE_STRFTIME): Don't define.
132
70b0d280
EZ
133 * makefile.w32-in (OBJ2): Remove strftime.$(O).
134 ($(BLD)/strftime.$(O)): Remove prerequisites.
135
16fab143
PE
1362011-01-31 Paul Eggert <eggert@cs.ucla.edu>
137
138 src/emacs.c now gets version number from configure.in
139 * emacs.c (emacs_version): Set to VERSION so that it
140 is determined automatically from ../configure.in.
141
546961a9
JM
1422011-01-31 Jim Meyering <meyering@redhat.com>
143
144 * charset.c (load_charset_map): Don't deref NULL on failed malloc.
145 Use xmalloc rather than malloc.
146
42a5b22f
PE
1472011-01-30 Paul Eggert <eggert@cs.ucla.edu>
148
16c3e636
PE
149 strftime: import from gnulib
150 * Makefile.in (obj): Remove strftime.o, as gnulib now does this for us.
151 * deps.mk (strftime.o): Remove.
152 * editfns.c: Include <strftime.h>, supplied by gnulib.
153 (emacs_strftimeu): Remove decl.
154 (emacs_memftimeu): Use nstrftime (the gnulib name) rather than
155 emacs_strftimeu.
156 * config.in: Regenerate.
157 * strftime.c: Remove; we now use strftime from gnulib.
158
42a5b22f
PE
159 Use SSDATA when the context wants char *.
160 * alloc.c, buffer.c, bytecode.c, callproc.c, dired.c:
161 * dispnew.c, doc.c, editfns.c, emacs.c, fileio.c, filelock.c:
162 * fns.c, font.c, frame.c, image.c, indent.c, keyboard.c:
163 * lread.c, minibuf.c, print.c, process.c, search.c, widget.c:
164 * xdisp.c, xfaces.c, xfns.c, xml.c, xselect.c, xterm.c:
165 Use SSDATA (not SDATA) when the context of the expression wants
166 char * (not unsigned char *).
167
2787bba3
JD
1682011-01-30 Jan Djärv <jan.h.d@swipnet.se>
169
170 * .gdbinit: Read global lisp variables as globals.f_V*.
171
4ec88040
AS
1722011-01-30 Andreas Schwab <schwab@linux-m68k.org>
173
174 * font.c (PROP_MATCH): Remove parameter N and use strlen instead.
175 All uses changed.
176 (PROP_SAVE): Likewise.
177
b6bcd048
CY
1782011-01-29 Chong Yidong <cyd@stupidchicken.com>
179
180 * keyboard.c (make_lispy_position): Fix typo in last change
181 (Bug#7935).
182
f915f0f7
EZ
1832011-01-29 Eli Zaretskii <eliz@gnu.org>
184
185 * s/ms-w32.h (HAVE_MKTIME): Remove.
186
187 * makefile.w32-in (LOCAL_FLAGS): Add -I../lib.
188 (GNULIB): New variable.
189 (LIBS): Add $(GNULIB).
190 $(TEMACS): Depend on $(GNULIB).
191 <top-level>: Fix font-lock disrupted by a lone `"'.
192
497a1925
JD
1932011-01-29 Jan Djärv <jan.h.d@swipnet.se>
194
195 * nsselect.m (ns_string_from_pasteboard): Get length of string
196 and use make_string instead of build_string (Bug#7934).
197 (ns_string_to_pasteboard_internal): Use initWithBytesNoCopy
198 instead of stringWithUTF8String (Bug#7934).
199
481ae085
JD
2002011-01-29 Anders Lindgren <andlind@gmail.com> (tiny change)
201
202 * nsfont.m (nsfont_open): Ensure that fonts with inexact
203 descenders would not become one pixel too tall (Bug#7887).
204
6b918613
CY
2052011-01-28 Chong Yidong <cyd@stupidchicken.com>
206
207 * keyboard.c (make_lispy_position): For clicks on right fringe or
208 margin, compute text position using the X coordinate relative to
209 the left of the text area (Bug#7839).
210
9e269017
KH
2112011-01-28 Kenichi Handa <handa@m17n.org>
212
213 * ftfont.c (ftfont_spec_pattern): Check each extra property
214 value.
215
17dd1fc8
SM
2162011-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
217
218 * xdisp.c (safe_eval_handler): Distinguish symbols and strings.
219
372fb76b
CY
2202011-01-27 Chong Yidong <cyd@stupidchicken.com>
221
222 * font.c (font_parse_fcname): Undefine a temporary macro.
223
e7f7fbaa
SM
2242011-01-26 Stefan Monnier <monnier@iro.umontreal.ca>
225
226 Let the debugger continue to the normal handler (bug#7825).
227 * eval.c (maybe_call_debugger): Declare before new use.
228 (find_handler_clause): Don't call debugger any more.
229 Ignore Vstack_trace_on_error.
230 Use XCAR/XCDR.
231 (syms_of_eval): Remove Vstack_trace_on_error.
232 (Fsignal): Only modify handlerlist when we know we need to do it.
233 Call the debugger when necessary.
234 * globals.h (Vstack_trace_on_error): Remove.
235
6608a7d8
CY
2362011-01-26 Chong Yidong <cyd@stupidchicken.com>
237
238 * font.c (font_parse_fcname): Rewrite GTK font name parser.
239
06d8ace5 2402011-01-25 Stefan Monnier <monnier@iro.umontreal.ca>
f996bbcb
SM
241
242 * xdisp.c (handle_fontified_prop): Be careful with font-lock changing
243 the buffer's point-max (bug#7876).
244
06d8ace5 2452011-01-25 Chong Yidong <cyd@stupidchicken.com>
19634648
CY
246
247 * lisp.h (XPNTR): Obey DATA_SEG_BITS in all non-USE_LSB_TAG cases.
06d8ace5 248 Remove unused case (Bug#6811).
19634648 249
8ab70320
JD
2502011-01-23 Jan Djärv <jan.h.d@swipnet.se>
251
252 * nsterm.m (x_set_offset): Set dont_constrain to 0 so the call to
253 setFrameTopLeftPoint is constrained.
254
51b59d79
PE
2552011-01-23 Paul Eggert <eggert@cs.ucla.edu>
256
9055082e
PE
257 Check return values of some library calls.
258 * emacs.c (main): Check dup result.
259 * frame.c: Include <limits.h>, for INT_MIN and INT_MAX.
260 (frame_name_fnn_p): Check strtol result.
261
5c7d01a5 262 * image.c (x_create_bitmap_from_xpm_data): Add cast to fix type clash
f77fabaf
PE
263 when calling XpmCreatePixmapFromData.
264
51b59d79
PE
265 Promote SSDATA macro from gtkutil.c and xsmfns.c to lisp.h.
266 * lisp.h (SSDATA): New macro.
267 All uses of (char *) SDATA (x) replaced with SSDATA (x),
268 and all uses of (unsigned char *) SDATA (x) replaced with SDATA (x).
269 * gtkutil.c (SSDATA): Remove, as lisp.h now defines this.
270 * xsmfns.c (SSDATA): Likewise.
271
e6b84b30
MR
2722011-01-22 Martin Rudalics <rudalics@gmx.at>
273
274 * window.c (select_window): New function.
275 (Fselect_window): Call it.
276 (inhibit_point_swap): Variable deleted.
277 (Fset_window_configuration): Call select_window directly.
278
3fb69558
JD
2792011-01-22 Jan Djärv <jan.h.d@swipnet.se>
280
281 * nsterm.m (constrainFrameRect): Only constrain the first time called.
282
449ab399
JD
2832011-01-21 Jan Djärv <jan.h.d@swipnet.se>
284
e2f79c8d
JD
285 * nsterm.m (x_set_offset, windowDidMove): When calculating y, use first
286 screen, not the window screen.
287 (x_set_window_size): Remove constraints.
288 Calculate origin.y only if zooming is 0 and without referring to a
289 screen.
290 (windowWillResize): Don't modify frameSize.
291 (windowDidBecomeKey, mouseDown): Set dont_constrain to 1.
292 (initFrameFromEmacs): Initialize ns_userRect.
293 (windowShouldZoom): Set zooming to one. Remove all other code.
294 (windowWillUseStandardFrame): Move static ns_userRect to EmacsView.
295 Zero it after restore.
296 (constrainFrameRect): New method for EmacsWindow.
297 (mouseDragged): Always post NSWindowDidResizeNotification after call to
298 windowWillResize.
299
300 * nsterm.h (ns_output): Add dont_constrain and zooming.
301 (EmacsView): Add ns_userRect.
302
449ab399
JD
303 * nsterm.m (keyDown): If ns_right_alternate_modifier is Qleft, check
304 if ns_alternate_modifier is none.
305
e885315d
JD
3062011-01-20 Jan Djärv <jan.h.d@swipnet.se>
307
308 * unexmacosx.c: Add comment about include order.
309
bb1c6663
GM
3102011-01-20 Glenn Morris <rgm@gnu.org>
311
c11136ec
GM
312 * minibuf.c (syms_of_minibuf) <read-expression-history>:
313 Give it a doc string.
314 * globals.h: Add Vread_expression_history.
315
bb1c6663
GM
316 * macros.c (syms_of_macros) <kbd-macro-termination-hook>:
317 Give it a doc string.
318 * globals.h: Add Vkbd_macro_termination_hook.
319
9aea757b
CY
3202011-01-20 Chong Yidong <cyd@stupidchicken.com>
321
322 * fns.c (Fyes_or_no_p): Revert 2011-01-07 change, removing ARGS.
323
e1ef0dac
PE
3242011-01-19 Paul Eggert <eggert@cs.ucla.edu>
325
326 Fix X11 compilation failure.
327 * globals.h (struct emacs_globals): Document f_Vselection_alist.
328 * xselect.c (Vselection_alist): Remove declaration, moving its
329 documentation to globals.h. This fixes a compilation failure
330 induced by the earlier change to globals.h today.
331
fb9d0f5a
JD
3322011-01-19 Jan Djärv <jan.h.d@swipnet.se>
333
8beb828a
JD
334 * unexmacosx.c: Include config.h before unistd.h (Bug#7859).
335
fb9d0f5a
JD
336 * nsterm.m (ns_input_file, ns_input_font, ns_input_fontsize)
337 (ns_input_line, ns_input_color, ns_input_text, ns_working_text)
338 (ns_input_spi_name, ns_input_spi_arg)
339 (ns_alternate_modifier, ns_right_alternate_modifier)
340 (ns_command_modifier, ns_right_command_modifier, ns_control_modifier)
341 (ns_right_control_modifier, ns_function_modifier)
342 (ns_antialias_text, ns_confirm_quit): Move to globals.h.
343 (Vx_toolkit_scroll_bars, x_use_underline_position_properties)
344 (x_underline_at_descent_line): Remove declaration.
345 (syms_of_nsterm): Remove & from DEFVAR_LISP and DEFVAR_BOOL.
346
347 * nsselect.m (Vns_sent_selection_hooks, Vns_lost_selection_hooks
348 (Vselection_alist, Vselection_converter_alist): Move to globals.h.
349 (syms_of_nsselect): Remove & from DEFVAR_LISP.
350
351 * nsmenu.m (Voverriding_local_map, Voverriding_local_map_menu_flag):
352 Remove declaration.
353
354 * nsfont.m (Vns_reg_to_script, ns_antialias_text): Move to
355 globals.h.
356 (syms_of_nsfont): Remove & from DEFVAR_LISP.
357
358 * nsfns.m (Vmenu_bar_mode, Vtool_bar_mode): Remove declaration.
359 (Vns_icon_type_alist, Vns_version_string): Move to globals.h.
360 (syms_of_nsfns): Remove & from DEFVAR_LISP calls.
361
362 * globals.h (struct emacs_globals): Add f_ns_input_file,
363 f_ns_input_font, f_ns_input_fontsize, f_ns_input_line,
364 f_ns_input_color, f_ns_input_text, f_ns_working_text,
365 f_ns_input_spi_name, f_ns_input_spi_arg, f_ns_alternate_modifier,
366 f_ns_right_alternate_modifier, f_ns_command_modifier,
367 f_ns_right_command_modifier, f_ns_control_modifier,
368 f_ns_right_control_modifier, f_ns_function_modifier,
369 f_ns_antialias_text, f_ns_confirm_quit, f_Vns_icon_type_alist,
370 f_Vns_version_string, f_Vns_sent_selection_hooks,
371 f_Vns_lost_selection_hooks, f_Vselection_alist, f_Vns_reg_to_script
372 and corresponding defines.
373
374
4e55715e
SS
3752011-01-19 Sam Steingold <sds@gnu.org>
376
377 * w32.c (check_windows_init_file): Remove declarations of
378 Vwindow_system, Vload_path, Qfile_exists_p to fix compilation.
817a735d 379 * w32fns.c: Fix an error introduced by the previous patch.
4e55715e 380
ef79d2fa
TT
3812011-01-19 Tom Tromey <tromey@redhat.com>
382
383 * window.c: Fix error introduced by previous patch.
384
29208e82
TT
3852011-01-18 Tom Tromey <tromey@parfait>
386
387 * globals.h: New file.
388 * xterm.h (Vx_pixel_size_width_font_regexp): Remove declaration.
389 * window.h (Vinitial_window_system, Vminibuf_scroll_window)
390 (Vwindow_system_version): Remove declaration.
391 * w32term.h (Vw32_enable_palette)
392 (Vx_pixel_size_width_font_regexp): Remove declaration.
393 * w32menu.c (Voverriding_local_map)
394 (Voverriding_local_map_menu_flag): Remove declaration.
395 * w32inevt.c (Vw32_alt_is_meta, Vw32_apps_modifier)
396 (Vw32_capslock_is_shiftlock, Vw32_enable_caps_lock)
397 (Vw32_enable_num_lock, Vw32_lwindow_modifier)
398 (Vw32_pass_lwindow_to_system, Vw32_pass_rwindow_to_system)
399 (Vw32_phantom_key_code, Vw32_recognize_altgr)
400 (Vw32_rwindow_modifier, Vw32_scroll_lock_modifier)
401 (w32_use_full_screen_buffer): Remove declaration.
402 * w32.c (Vsystem_configuration, Vw32_downcase_file_names)
403 (Vw32_generate_fake_inodes, Vw32_get_true_file_attributes)
404 (w32_num_mouse_buttons, w32_pipe_read_delay): Remove declaration.
405 * termopts.h (Vtruncate_partial_width_windows, inverse_video)
406 (no_redraw_on_reenter, visible_bell): Remove declaration.
407 * sysdep.c (Vsystem_name): Remove declaration.
408 * syntax.h (parse_sexp_lookup_properties): Remove declaration.
409 * menu.h (Vmenu_updating_frame): Remove declaration.
410 * macros.h (Vexecuting_kbd_macro, executing_kbd_macro_index):
411 Remove declaration.
412 * lisp.h (Vafter_init_time, Vafter_load_alist)
413 (Vauto_save_list_file_name, Vbefore_init_time, Vcommand_history)
414 (Vcompletion_regexp_list, Vcurrent_load_list)
415 (Vcurrent_prefix_arg, Vdata_directory, Vdebug_on_error)
416 (Vdoc_directory, Vdoc_file_name, Vdynamic_library_alist)
417 (Vexec_directory, Vexec_path, Vexec_suffixes)
418 (Vface_font_rescale_alist, Vface_ignored_fonts, Vfeatures)
419 (Vhelp_form, Vhistory_length, Vinhibit_field_text_motion)
420 (Vinhibit_quit, Vinhibit_read_only, Vinhibit_redisplay)
421 (Vinstallation_directory, Vinvocation_directory)
422 (Vinvocation_name, Vload_file_rep_suffixes, Vload_history)
423 (Vload_suffixes, Vmark_even_if_inactive, Vmemory_full)
424 (Vmessage_log_max, Vobarray, Vprint_length, Vprint_level)
425 (Vpurify_flag, Vquit_flag, Vsaved_region_selection)
426 (Vscalable_fonts_allowed, Vselect_active_regions)
427 (Vshell_file_name, Vstandard_input, Vstandard_output)
428 (Vsystem_name, Vtemporary_file_directory, Vthrow_on_input)
429 (Vtop_level, Vtty_erase_char, Vundo_outer_limit)
430 (Vuser_login_name, Vwindow_scroll_functions)
431 (Vwindow_system_version, Vx_no_window_manager)
432 (Vx_resource_class, Vx_resource_name, baud_rate)
433 (completion_ignore_case, debug_on_next_call, gc_cons_threshold)
434 (history_delete_duplicates, inhibit_x_resources)
435 (last_nonmenu_event, load_in_progress, max_specpdl_size)
436 (minibuffer_auto_raise, print_escape_newlines, scroll_margin)
437 (use_dialog_box, use_file_dialog): Remove declaration. Include
438 globals.h.
439 * keymap.h (Voverriding_local_map)
440 (Voverriding_local_map_menu_flag, meta_prefix_char): Remove
441 declaration.
442 * keyboard.h (Vdouble_click_time, Vfunction_key_map)
443 (Vinput_method_function, Vkey_translation_map)
444 (Vlucid_menu_bar_dirty_flag, Vthis_original_command)
445 (do_mouse_tracking, extra_keyboard_modifiers)
446 (num_nonmacro_input_events): Remove declaration.
447 * intervals.h (Vchar_property_alias_alist)
448 (Vdefault_text_properties, Vinhibit_point_motion_hooks)
449 (Vtext_property_default_nonsticky): Remove declaration.
450 * gtkutil.h (x_gtk_file_dialog_help_text)
451 (x_gtk_show_hidden_files, x_gtk_use_old_file_dialog)
452 (x_gtk_whole_detached_tool_bar): Remove declaration.
453 * frame.h (Vdefault_frame_alist, Vframe_alpha_lower_limit)
454 (Vmenu_bar_mode, Vmouse_highlight, Vterminal_frame)
455 (Vtool_bar_mode, Vx_resource_class, Vx_resource_name)
456 (focus_follows_mouse): Remove declaration.
457 * fontset.h (Valternate_fontname_alist, Vfontset_alias_alist)
458 (Vignore_relative_composition, Votf_script_alist)
459 (Vuse_default_ascent, Vvertical_centering_font_regexp): Remove
460 declaration.
461 * font.h (Vfont_log): Remove declaration.
462 * dosfns.h (Vdos_display_scancodes, Vdos_version)
463 (Vdos_windows_version, dos_codepage, dos_country_code)
464 (dos_decimal_point, dos_hyper_key, dos_keyboard_layout)
465 (dos_keypad_mode, dos_super_key, dos_timezone_offset): Remove
466 declaration.
467 * disptab.h (Vglyph_table, Vstandard_display_table): Remove
468 declaration.
469 * dispextern.h (Vface_remapping_alist, Vglyphless_char_display)
470 (Vmouse_autoselect_window, Voverflow_newline_into_fringe)
471 (Vshow_trailing_whitespace, Vtool_bar_button_margin)
472 (Vtool_bar_style, cursor_in_echo_area, display_hourglass_p)
473 (inverse_video, mode_line_in_non_selected_windows)
474 (tool_bar_button_relief, tool_bar_max_label_size)
475 (underline_minimum_offset)
476 (unibyte_display_via_language_environment, x_stretch_cursor_p):
477 Remove declaration.
478 * composite.h (Vauto_composition_function)
479 (Vcomposition_function_table): Remove declaration.
480 * commands.h (Vexecuting_kbd_macro)
481 (Vminibuffer_local_completion_map)
482 (Vminibuffer_local_filename_completion_map)
483 (Vminibuffer_local_filename_must_match_map)
484 (Vminibuffer_local_map, Vminibuffer_local_must_match_map)
485 (Vminibuffer_local_ns_map, Vthis_command)
486 (Vunread_command_events, cursor_in_echo_area)
487 (last_command_event, last_nonmenu_event, unread_command_char):
488 Remove declaration.
489 * coding.h (Vcoding_system_for_read, Vcoding_system_for_write)
490 (Vdefault_file_name_coding_system)
491 (Vdefault_process_coding_system, Vfile_name_coding_system)
492 (Vlast_coding_system_used, Vlocale_coding_system)
493 (Vselect_safe_coding_system_function)
494 (Vtranslation_table_for_input, coding_system_require_warning)
495 (eol_mnemonic_dos, eol_mnemonic_mac, eol_mnemonic_undecided)
496 (eol_mnemonic_unix, inherit_process_coding_system): Remove
497 declaration.
498 * charset.h (Vcharset_list, Vcurrent_iso639_language): Remove
499 declaration.
500 * character.h (Vauto_fill_chars, Vchar_direction_table)
501 (Vchar_script_table, Vchar_width_table, Vprintable_chars)
502 (Vscript_representative_chars, Vtranslation_table_vector)
503 (Vunicode_category_table): Remove declaration.
504 * ccl.h (Vfont_ccl_encoder_alist): Remove declaration.
505 * buffer.h (Vafter_change_functions, Vbefore_change_functions)
506 (Vdeactivate_mark, Vfirst_change_hook, Vtransient_mark_mode)
507 (inhibit_modification_hooks): Remove declaration.
508 * xterm.c (syms_of_xterm): Update.
509 (Vx_alt_keysym, Vx_hyper_keysym, Vx_keysym_table)
510 (Vx_meta_keysym, Vx_super_keysym, Vx_toolkit_scroll_bars)
511 (x_mouse_click_focus_ignore_position)
512 (x_underline_at_descent_line)
513 (x_use_underline_position_properties): Remove.
514 * xsmfns.c (syms_of_xsmfns): Update.
515 (Vx_session_id, Vx_session_previous_id): Remove.
516 * xsettings.c (syms_of_xsettings): Update.
517 (Vxft_settings, use_system_font): Remove.
518 * xselect.c (syms_of_xselect): Update.
519 (Vselection_converter_alist, Vx_lost_selection_functions)
520 (Vx_sent_selection_functions, x_selection_timeout): Remove.
521 * xfns.c (syms_of_xfns): Update.
522 (Vgtk_version_string, Vmotif_version_string)
523 (Vx_cursor_fore_pixel, Vx_hourglass_pointer_shape)
524 (Vx_max_tooltip_size, Vx_mode_pointer_shape)
525 (Vx_no_window_manager, Vx_nontext_pointer_shape)
526 (Vx_pixel_size_width_font_regexp, Vx_pointer_shape)
527 (Vx_sensitive_text_pointer_shape)
528 (Vx_window_horizontal_drag_shape, x_gtk_file_dialog_help_text)
529 (x_gtk_show_hidden_files, x_gtk_use_old_file_dialog)
530 (x_gtk_use_system_tooltips, x_gtk_whole_detached_tool_bar):
531 Remove.
532 * xfaces.c (syms_of_xfaces): Update.
533 (Vface_default_stipple, Vface_font_rescale_alist)
534 (Vface_ignored_fonts, Vface_new_frame_defaults)
535 (Vface_remapping_alist, Vfont_list_limit)
536 (Vscalable_fonts_allowed, Vtty_defined_color_alist): Remove.
537 * xdisp.c (syms_of_xdisp): Update.
538 (Vauto_resize_tool_bars, Vblink_cursor_alist)
539 (Vdisplay_pixels_per_inch, Vfontification_functions)
540 (Vframe_title_format, Vglobal_mode_string)
541 (Vglyphless_char_display, Vhourglass_delay, Vhscroll_step)
542 (Vicon_title_format, Vinhibit_redisplay)
543 (Vline_number_display_limit, Vline_prefix)
544 (Vmax_mini_window_height, Vmenu_bar_update_hook)
545 (Vmenu_updating_frame, Vmessage_log_max)
546 (Vmouse_autoselect_window, Vnobreak_char_display)
547 (Voverlay_arrow_position, Voverlay_arrow_string)
548 (Voverlay_arrow_variable_list, Vredisplay_end_trigger_functions)
549 (Vresize_mini_windows, Vshow_trailing_whitespace)
550 (Vtool_bar_border, Vtool_bar_button_margin, Vtool_bar_style)
551 (Vtruncate_partial_width_windows, Vvoid_text_area_pointer)
552 (Vwindow_scroll_functions, Vwindow_size_change_functions)
553 (Vwindow_text_change_functions, Vwrap_prefix)
554 (auto_raise_tool_bar_buttons_p, automatic_hscrolling_p)
555 (debug_end_pos, display_hourglass_p, emacs_scroll_step)
556 (highlight_nonselected_windows, hscroll_margin)
557 (inhibit_eval_during_redisplay, inhibit_free_realized_faces)
558 (inhibit_menubar_update, inhibit_try_cursor_movement)
559 (inhibit_try_window_id, inhibit_try_window_reusing)
560 (line_number_display_limit_width)
561 (make_cursor_line_fully_visible_p, message_truncate_lines)
562 (mode_line_inverse_video, multiple_frames, overline_margin)
563 (scroll_conservatively, scroll_margin, tool_bar_button_relief)
564 (tool_bar_max_label_size, underline_minimum_offset)
565 (unibyte_display_via_language_environment, x_stretch_cursor_p):
566 Remove.
567 * window.c (syms_of_window): Update.
568 (Vminibuf_scroll_window, Vother_window_scroll_buffer)
569 (Vrecenter_redisplay, Vscroll_preserve_screen_position)
570 (Vtemp_buffer_show_function, Vwindow_configuration_change_hook)
571 (Vwindow_point_insertion_type, auto_window_vscroll_p)
572 (mode_line_in_non_selected_windows, next_screen_context_lines)
573 (window_min_height, window_min_width): Remove.
574 (scroll_margin): Remove declaration.
575 * w32term.c (syms_of_w32term): Update.
576 (Vw32_capslock_is_shiftlock, Vw32_grab_focus_on_raise)
577 (Vw32_recognize_altgr, Vw32_swap_mouse_buttons)
578 (Vx_toolkit_scroll_bars, w32_num_mouse_buttons)
579 (w32_use_visible_system_caret, x_underline_at_descent_line)
580 (x_use_underline_position_properties): Remove.
581 (Vcommand_line_args, Vsystem_name, extra_keyboard_modifiers):
582 Remove declaration.
583 * w32select.c (syms_of_w32select): Update.
584 (Vnext_selection_coding_system, Vselection_coding_system): Remove.
585 * w32proc.c (syms_of_ntproc): Update.
586 (Vw32_downcase_file_names, Vw32_generate_fake_inodes)
587 (Vw32_get_true_file_attributes, Vw32_quote_process_args)
588 (Vw32_start_process_inherit_error_mode)
589 (Vw32_start_process_share_console)
590 (Vw32_start_process_show_window, w32_pipe_read_delay): Remove.
591 (Vsystem_name): Remove declaration.
592 * w32font.c (syms_of_w32font): Update.
593 (Vw32_charset_info_alist): Remove.
594 * w32fns.c (globals_of_w32fns, syms_of_w32fns): Update.
595 (Vw32_alt_is_meta, Vw32_apps_modifier, Vw32_bdf_filename_alist)
596 (Vw32_color_map, Vw32_enable_caps_lock, Vw32_enable_num_lock)
597 (Vw32_enable_palette, Vw32_lwindow_modifier)
598 (Vw32_pass_alt_to_system, Vw32_pass_lwindow_to_system)
599 (Vw32_pass_rwindow_to_system, Vw32_phantom_key_code)
600 (Vw32_rwindow_modifier, Vw32_scroll_lock_modifier)
601 (Vx_cursor_fore_pixel, Vx_hourglass_pointer_shape)
602 (Vx_max_tooltip_size, Vx_mode_pointer_shape)
603 (Vx_no_window_manager, Vx_nontext_pointer_shape)
604 (Vx_pixel_size_width_font_regexp, Vx_pointer_shape)
605 (Vx_sensitive_text_pointer_shape)
606 (Vx_window_horizontal_drag_shape, w32_ansi_code_page)
607 (w32_enable_synthesized_fonts, w32_mouse_button_tolerance)
608 (w32_mouse_move_interval)
609 (w32_pass_extra_mouse_buttons_to_system)
610 (w32_pass_multimedia_buttons_to_system, w32_quit_key)
611 (w32_strict_fontnames, w32_strict_painting): Remove.
612 (Vhourglass_delay, Vmenu_bar_mode, Vtool_bar_mode)
613 (Vw32_recognize_altgr, Vwindow_system_version)
614 (w32_num_mouse_buttons, w32_use_visible_system_caret): Remove
615 declaration.
616 * w32console.c (syms_of_ntterm): Update.
617 (w32_use_full_screen_buffer): Remove.
618 (Vtty_defined_color_alist): Remove declaration.
619 * w16select.c (syms_of_win16select): Update.
620 (Vnext_selection_coding_system, Vselection_coding_system): Remove.
621 * undo.c (syms_of_undo): Update.
622 (Vundo_outer_limit, Vundo_outer_limit_function)
623 (undo_inhibit_record_point, undo_limit, undo_strong_limit):
624 Remove.
625 * textprop.c (syms_of_textprop): Update.
626 (Vchar_property_alias_alist, Vdefault_text_properties)
627 (Vinhibit_point_motion_hooks, Vtext_property_default_nonsticky):
628 Remove.
629 * terminal.c (syms_of_terminal): Update.
630 (Vdelete_terminal_functions, Vring_bell_function): Remove.
631 * term.c (syms_of_term): Update.
632 (Vresume_tty_functions, Vsuspend_tty_functions)
633 (no_redraw_on_reenter, system_uses_terminfo, visible_cursor):
634 Remove.
635 * syntax.c (syms_of_syntax): Update.
636 (Vfind_word_boundary_function_table, multibyte_syntax_as_symbol)
637 (open_paren_in_column_0_is_defun_start)
638 (parse_sexp_ignore_comments, parse_sexp_lookup_properties)
639 (words_include_escapes): Remove.
640 * search.c (syms_of_search): Update.
641 (Vinhibit_changing_match_data, Vsearch_spaces_regexp): Remove.
642 * process.c (syms_of_process): Update.
643 (Vprocess_adaptive_read_buffering, Vprocess_connection_type)
644 (delete_exited_processes): Remove.
645 * print.c (syms_of_print): Update.
646 (Vfloat_output_format, Vprint_charset_text_property)
647 (Vprint_circle, Vprint_continuous_numbering, Vprint_gensym)
648 (Vprint_length, Vprint_level, Vprint_number_table)
649 (Vstandard_output, print_escape_multibyte)
650 (print_escape_newlines, print_escape_nonascii, print_quoted):
651 Remove.
652 * msdos.c (syms_of_msdos): Update.
653 (Vdos_unsupported_char_glyph): Remove.
654 (unibyte_display_via_language_environment): Remove declaration.
655 * minibuf.c (syms_of_minibuf): Update.
656 (Vcompletion_regexp_list, Vhistory_add_new_input)
657 (Vhistory_length, Vminibuffer_completing_file_name)
658 (Vminibuffer_completion_confirm)
659 (Vminibuffer_completion_predicate, Vminibuffer_completion_table)
660 (Vminibuffer_exit_hook, Vminibuffer_help_form)
661 (Vminibuffer_history_position, Vminibuffer_history_variable)
662 (Vminibuffer_prompt_properties, Vminibuffer_setup_hook)
663 (Vread_buffer_function, Vread_expression_map)
664 (completion_ignore_case, enable_recursive_minibuffers)
665 (history_delete_duplicates, minibuffer_allow_text_properties)
666 (minibuffer_auto_raise, read_buffer_completion_ignore_case):
667 Remove.
668 * marker.c (syms_of_marker): Update.
669 (byte_debug_flag): Remove.
670 * macros.c (syms_of_macros): Update.
671 (Vexecuting_kbd_macro, executing_kbd_macro_index): Remove.
672 * lread.c (syms_of_lread): Update.
673 (Vafter_load_alist, Vbyte_boolean_vars)
674 (Vbytecomp_version_regexp, Vcurrent_load_list)
675 (Veval_buffer_list, Vload_file_name, Vload_file_rep_suffixes)
676 (Vload_history, Vload_path, Vload_read_function)
677 (Vload_source_file_function, Vload_suffixes, Vobarray)
678 (Vold_style_backquotes, Vpreloaded_file_list, Vread_circle)
679 (Vread_symbol_positions_list, Vread_with_symbol_positions)
680 (Vsource_directory, Vstandard_input, Vuser_init_file, Vvalues)
681 (force_load_messages, load_convert_to_unibyte)
682 (load_dangerous_libraries, load_force_doc_strings)
683 (load_in_progress): Remove.
684 * keymap.c (syms_of_keymap): Update.
685 (Vdefine_key_rebound_commands, Vemulation_mode_map_alists)
686 (Vminibuffer_local_completion_map)
687 (Vminibuffer_local_filename_completion_map)
688 (Vminibuffer_local_filename_must_match_map)
689 (Vminibuffer_local_map, Vminibuffer_local_must_match_map)
690 (Vminibuffer_local_ns_map, Vminor_mode_map_alist)
691 (Vminor_mode_overriding_map_alist, Vwhere_is_preferred_modifier):
692 Remove.
693 * keyboard.c (syms_of_keyboard): Update.
694 (Vauto_save_timeout, Vcommand_error_function)
695 (Vcommand_hook_internal, Vdeactivate_mark)
696 (Vdeferred_action_function, Vdeferred_action_list)
697 (Vdisable_point_adjustment, Vdouble_click_time)
698 (Vecho_keystrokes, Venable_disabled_menus_and_buttons)
699 (Vfunction_key_map, Vglobal_disable_point_adjustment)
700 (Vhelp_char, Vhelp_event_list, Vhelp_form)
701 (Vinput_method_function, Vinput_method_previous_message)
702 (Vkey_translation_map, Vlast_event_frame)
703 (Vlucid_menu_bar_dirty_flag, Vmenu_bar_final_items)
704 (Vminibuffer_message_timeout, Voverriding_local_map)
705 (Voverriding_local_map_menu_flag, Vpost_command_hook)
706 (Vpre_command_hook, Vprefix_help_command)
707 (Vsaved_region_selection, Vselect_active_regions)
708 (Vshow_help_function, Vspecial_event_map, Vsuggest_key_bindings)
709 (Vthis_command, Vthis_command_keys_shift_translated)
710 (Vthis_original_command, Vthrow_on_input, Vtimer_idle_list)
711 (Vtimer_list, Vtool_bar_separator_image_expression, Vtop_level)
712 (Vtty_erase_char, Vunread_command_events)
713 (Vunread_input_method_events, Vunread_post_input_method_events)
714 (auto_save_interval, cannot_suspend, do_mouse_tracking)
715 (double_click_fuzz, extra_keyboard_modifiers)
716 (inhibit_local_menu_bar_menus, last_command_event)
717 (last_input_event, last_nonmenu_event, menu_prompt_more_char)
718 (menu_prompting, meta_prefix_char, num_input_keys)
719 (num_nonmacro_input_events, polling_period, unread_command_char):
720 Remove.
721 * insdel.c (syms_of_insdel): Update.
722 (Vcombine_after_change_calls, check_markers_debug_flag): Remove.
723 * indent.c (syms_of_indent): Update.
724 (indent_tabs_mode): Remove.
725 * image.c (syms_of_image): Update.
726 (Vimage_cache_eviction_delay, Vimage_types)
727 (Vimagemagick_render_type, Vmax_image_size, Vx_bitmap_file_path)
728 (cross_disabled_images): Remove.
729 * fringe.c (syms_of_fringe): Update.
730 (Vfringe_bitmaps, Voverflow_newline_into_fringe): Remove.
731 * frame.c (syms_of_frame): Update.
732 (Vdefault_frame_alist, Vdefault_frame_scroll_bars)
733 (Vdelete_frame_functions, Vframe_alpha_lower_limit)
734 (Vmake_pointer_invisible, Vmenu_bar_mode, Vmouse_highlight)
735 (Vmouse_position_function, Vterminal_frame, Vtool_bar_mode)
736 (Vx_resource_class, Vx_resource_name, focus_follows_mouse):
737 Remove.
738 * fontset.c (syms_of_fontset): Update.
739 (Valternate_fontname_alist, Vfont_encoding_charset_alist)
740 (Vfontset_alias_alist, Vignore_relative_composition)
741 (Votf_script_alist, Vuse_default_ascent)
742 (Vvertical_centering_font_regexp): Remove.
743 * font.c (syms_of_font): Update.
744 (Vfont_encoding_alist, Vfont_log, Vfont_slant_table)
745 (Vfont_weight_table, Vfont_width_table): Remove.
746 * fns.c (syms_of_fns): Update.
747 (Vfeatures, use_dialog_box, use_file_dialog): Remove.
748 * filelock.c (syms_of_filelock): Update.
749 (Vtemporary_file_directory): Remove.
750 * fileio.c (syms_of_fileio): Update.
751 (Vafter_insert_file_functions, Vauto_save_include_big_deletions)
752 (Vauto_save_list_file_name, Vauto_save_visited_file_name)
753 (Vdefault_file_name_coding_system, Vfile_name_coding_system)
754 (Vfile_name_handler_alist, Vinhibit_file_name_handlers)
755 (Vinhibit_file_name_operation, Vset_auto_coding_function)
756 (Vwrite_region_annotate_functions)
757 (Vwrite_region_annotations_so_far)
758 (Vwrite_region_post_annotation_function)
759 (delete_by_moving_to_trash, write_region_inhibit_fsync): Remove.
760 (Vw32_get_true_file_attributes): Remove declaration.
761 * eval.c (syms_of_eval): Update.
762 (Vdebug_ignored_errors, Vdebug_on_error, Vdebug_on_signal)
763 (Vdebugger, Vinhibit_quit, Vmacro_declaration_function)
764 (Vquit_flag, Vsignal_hook_function, Vstack_trace_on_error)
765 (debug_on_next_call, debug_on_quit, debugger_may_continue)
766 (max_lisp_eval_depth, max_specpdl_size): Remove.
767 * emacs.c (syms_of_emacs): Update.
768 (Vafter_init_time, Vbefore_init_time, Vcommand_line_args)
769 (Vdynamic_library_alist, Vemacs_copyright, Vemacs_version)
770 (Vinstallation_directory, Vinvocation_directory)
771 (Vinvocation_name, Vkill_emacs_hook, Vpath_separator)
772 (Vprevious_system_messages_locale, Vprevious_system_time_locale)
773 (Vsystem_configuration, Vsystem_configuration_options)
774 (Vsystem_messages_locale, Vsystem_time_locale, Vsystem_type)
775 (inhibit_x_resources, noninteractive1): Remove.
776 * editfns.c (syms_of_editfns): Update.
777 (Vbuffer_access_fontified_property)
778 (Vbuffer_access_fontify_functions, Vinhibit_field_text_motion)
779 (Voperating_system_release, Vsystem_name, Vuser_full_name)
780 (Vuser_login_name, Vuser_real_login_name): Remove.
781 * dosfns.c (syms_of_dosfns): Update.
782 (Vdos_display_scancodes, Vdos_version, Vdos_windows_version)
783 (dos_codepage, dos_country_code, dos_decimal_point)
784 (dos_hyper_key, dos_keyboard_layout, dos_keypad_mode)
785 (dos_super_key, dos_timezone_offset): Remove.
786 * doc.c (syms_of_doc): Update.
787 (Vbuild_files, Vdoc_file_name): Remove.
788 * dispnew.c (syms_of_display): Update.
789 (Vglyph_table, Vinitial_window_system)
790 (Vredisplay_preemption_period, Vstandard_display_table)
791 (Vwindow_system_version, baud_rate, cursor_in_echo_area)
792 (inverse_video, redisplay_dont_pause, visible_bell): Remove.
793 * dired.c (syms_of_dired): Update.
794 (Vcompletion_ignored_extensions): Remove.
795 (Vw32_get_true_file_attributes): Remove declaration.
796 * dbusbind.c (syms_of_dbusbind): Update.
797 (Vdbus_debug, Vdbus_registered_buses)
798 (Vdbus_registered_objects_table): Remove.
799 * data.c (syms_of_data): Update.
800 (Vmost_negative_fixnum, Vmost_positive_fixnum): Remove.
801 * composite.c (syms_of_composite): Update.
802 (Vauto_composition_function, Vauto_composition_mode)
803 (Vcompose_chars_after_function, Vcomposition_function_table):
804 Remove.
805 * coding.c (syms_of_coding): Update.
806 (Vcharset_revision_table, Vcoding_category_list)
807 (Vcoding_system_alist, Vcoding_system_for_read)
808 (Vcoding_system_for_write, Vcoding_system_list)
809 (Vdefault_process_coding_system, Venable_character_translation)
810 (Vfile_coding_system_alist, Vlast_code_conversion_error)
811 (Vlast_coding_system_used, Vlatin_extra_code_table)
812 (Vlocale_coding_system, Vnetwork_coding_system_alist)
813 (Vprocess_coding_system_alist)
814 (Vselect_safe_coding_system_function)
815 (Vstandard_translation_table_for_decode)
816 (Vstandard_translation_table_for_encode)
817 (Vtranslation_table_for_input, coding_system_require_warning)
818 (eol_mnemonic_dos, eol_mnemonic_mac, eol_mnemonic_undecided)
819 (eol_mnemonic_unix, inherit_process_coding_system)
820 (inhibit_eol_conversion, inhibit_iso_escape_detection)
821 (inhibit_null_byte_detection): Remove.
822 * cmds.c (syms_of_cmds): Update.
823 (Vpost_self_insert_hook): Remove.
824 * charset.c (syms_of_charset): Update.
825 (Vcharset_list, Vcharset_map_path, Vcurrent_iso639_language)
826 (inhibit_load_charset_map): Remove.
827 * character.c (syms_of_character): Update.
828 (Vauto_fill_chars, Vchar_direction_table, Vchar_script_table)
829 (Vchar_width_table, Vprintable_chars)
830 (Vscript_representative_chars, Vtranslation_table_vector)
831 (Vunicode_category_table): Remove.
832 * ccl.c (syms_of_ccl): Update.
833 (Vcode_conversion_map_vector, Vfont_ccl_encoder_alist)
834 (Vtranslation_hash_table_vector): Remove.
835 * category.c (syms_of_category): Update.
836 (Vword_combining_categories, Vword_separating_categories): Remove.
837 * callproc.c (syms_of_callproc): Update.
838 (Vconfigure_info_directory, Vdata_directory, Vdoc_directory)
839 (Vexec_directory, Vexec_path, Vexec_suffixes)
840 (Vinitial_environment, Vprocess_environment)
841 (Vshared_game_score_directory, Vshell_file_name): Remove.
842 * callint.c (syms_of_callint): Update.
843 (Vcommand_debug_status, Vcommand_history, Vcurrent_prefix_arg)
844 (Vmark_even_if_inactive, Vmouse_leave_buffer_hook): Remove.
845 * bytecode.c (syms_of_bytecode): Update.
846 (Vbyte_code_meter, byte_metering_on): Remove.
847 * buffer.c (syms_of_buffer): Update.
848 (Vafter_change_functions, Vbefore_change_functions)
849 (Vchange_major_mode_hook, Vfirst_change_hook)
850 (Vinhibit_read_only, Vkill_buffer_query_functions)
851 (Vtransient_mark_mode, inhibit_modification_hooks): Remove.
852 * alloc.c (syms_of_alloc): Update.
853 (Vgc_cons_percentage, Vgc_elapsed, Vmemory_full)
854 (Vmemory_signal_data, Vpost_gc_hook, Vpurify_flag)
855 (cons_cells_consed, floats_consed, garbage_collection_messages)
856 (gc_cons_threshold, gcs_done, intervals_consed)
857 (misc_objects_consed, pure_bytes_used, string_chars_consed)
858 (strings_consed, symbols_consed, vector_cells_consed): Remove.
859
860 * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
861 (DEFVAR_INT): Assume global is in `globals'.
862 * alloc.c (globals): Define.
863
448c0820
TT
8642011-01-18 Tom Tromey <tromey@redhat.com>
865
866 * image.c (Vimagemagick_render_type): Remove redundant
867 definition.
868
8442d95d
TT
8692011-01-18 Tom Tromey <tromey@redhat.com>
870
871 * xdisp.c (emacs_scroll_step): Rename from scroll_step.
872 (try_scrolling): Rename argument to 'arg_scroll_conservatively'.
873 (redisplay_window): Update.
874 (syms_of_xdisp): Update.
875
cab0ba98
TT
8762011-01-18 Tom Tromey <tromey@redhat.com>
877
878 * gtkutil.h (x_gtk_use_old_file_dialog, x_gtk_show_hidden_files)
879 (x_gtk_file_dialog_help_text, x_gtk_whole_detached_tool_bar):
880 Declare.
881 * gtkutil.c (xg_uses_old_file_dialog):
882 (xg_get_file_with_chooser):
883 (xg_tool_bar_detach_callback): Don't redeclare globals.
884
422745d0
TT
8852011-01-18 Tom Tromey <tromey@redhat.com>
886
887 * lisp.h (DEFVAR_BUFFER_DEFAULTS): New macro.
888 * buffer.c (syms_of_buffer): Use DEFVAR_BUFFER_DEFAULTS.
889
7cae64b4
PE
8902011-01-18 Paul Eggert <eggert@cs.ucla.edu>
891
892 * lisp.h (DECL_ALIGN): Define if HAVE_ATTRIBUTE_ALIGNED, not if
893 defined __GNUC__. ../configure now checks for this GCC feature,
894 which is now also supported by IBM and Oracle compilers.
895 (USE_LSB_TAG) [defined DECL_ALIGN]: Also define if defined __sun,
896 since Solaris malloc returns mult-of-8.
897
a9faac5c 8982011-01-18 Stefan Monnier <monnier@iro.umontreal.ca>
0514b4be
SM
899
900 * image.c (syms_of_image): Don't access XSYMBOL's internals directly.
901
a3e44e79 9022011-01-17 Paul Eggert <eggert@cs.ucla.edu>
fa2c4f56 903
6e8e6bf2
PE
904 Give a name FLOAT_TO_STRING_BUFSIZE to the constant 350.
905 * lisp.h (FLOAT_TO_STRING_BUFSIZE): New macro.
906 * data.c (Fnumber_to_string): Use it.
907 * print.c (float_to_string, print_object): Likewise.
908
4004364e
PE
909 Include <unistd.h> unilaterally.
910 * alloc.c, atimer.c, buffer.c, callproc.c, dired.c, dispnew.c, doc.c:
911 * doprnt.c, editfns.c, emacs.c, fileio.c, filelock.c, fns.c:
912 * getloadavg.c, getpagesize.h, gmalloc.c, image.c, keyboard.c:
913 * lread.c, process.c, process.h, ralloc.c, regex.c, sysdep.c:
914 * systty.h, term.c, termcap.c, xfns.c, xrdb.c, xselect.c, xsmfns.c:
915 * xterm.c:
916 Include <unistd.h> without worrying about HAVE_UNISTD_H, since
917 unistd.h is always present now, possibly supplied by gnulib.
918
e84aba69
PE
919 * mktime.c: Remove; moving to ../lib.
920
1e11dbe3
PE
921 Use gnulib's mktime module.
922 * deps.mk (mktime.o): Remove rule.
923
fa2c4f56
PE
924 Use gnulib's ftoastr module.
925 * print.c: Include ftoastr.h.
926 (FLT_RADIX, DBL_MANT_DIG, DBL_DIG, DBL_MIN, DOUBLE_DIGITS_BOUND):
927 Remove; no longer needed.
928 (float_to_string): Use dtoastr rather than rolling our own code,
929 which had an off-by-one bug on non-IEEE hosts.
930
9a514d4a
PE
931 Automate syncing from gnulib.
932 * Makefile.in (lib): New macro.
933 (ALL_CFLAGS): Add -I$(lib) -I$(srcdir)/../lib.
934 ($(lib)/libgnu.a): New rule.
935 (temacs$(EXEEXT)): Also link $(lib)/libgnu.a.
936
717c30e0
PE
937 * xfns.c (x_real_positions): Fix signedness of local var 'ign'.
938 XGetGeometry wants unsigned int *, not int *, for its last 4 args,
939 so change the type of 'ign' to unsigned int from int.
940
8865d794
PE
941 * regex.c (analyse_first): Remove unreachable 'continue' statement.
942
4ef36a7b
PE
943 * xterm.h (struct x_display_info): Remove stray semicolon.
944 The extra semicolon didn't conform to the C standard.
945 Problem reported by Sun cc.
946
6df4097e
PE
947 * lisp.h: Redo flags and XSET slightly to avoid overflow diagnostics.
948 These changes make compilation easier to follow with Sun cc.
949 (ARRAY_MARK_FLAG): Make it signed, so that it can be assigned to
950 EMACS_INT values without provoking overflow diagnostics.
951 (PSEUDOVECTOR_FLAG): Likewise, for consistency.
952 (XSET) [! USE_LSB_TAG]: Use unsigned left shift to avoid overflow
953 diagnostic with signed left shift.
9fba3563 954
410ed5c3
PE
955 * fileio.c (make_temp_name): Remove unreachable code.
956
97be3ce3
PE
957 * fontset.c (free_realized_fontset): Mark unreachable code with if (0).
958 Previously it was marked by preceding it with "return;", but
959 Sun cc complains about this.
960
9fba3563
PE
961 * coding.c (decode_coding_emacs_mule): Remove unreachable code.
962 This is a typo left over from 2009-03-06T07:51:52Z!handa@m17n.org,
963 which fixed Bug#2370. Caught by Sun cc.
964
6dc1d2d3
MR
9652011-01-15 Martin Rudalics <rudalics@gmx.at>
966
967 * window.c (inhibit_point_swap): New variable.
968 (Fselect_window): If inhibit_point_swap is nonzero, avoid swapping
969 point this time.
970 (Fset_window_configuration): Set inhibit_point_swap to 1 instead
971 of setting selected_window to nil (Bug#7728).
972
f853f599
TH
9732011-01-11 Tassilo Horn <tassilo@member.fsf.org>
974
8dabbfd6
SM
975 * image.c (imagemagick_load_image, Finit_image_library):
976 Free intermediate image after creating a MagickWand from it.
977 Terminate MagickWand environment after image loading.
f853f599 978
2bc92a93
MA
9792011-01-10 Michael Albinus <michael.albinus@gmx.de>
980
981 * dbusbind.c (Fdbus_register_service): Raise an error in case of
982 unexpected return values.
983 (Fdbus_register_method): Remove connection initialization.
984
9852011-01-10 Jan Moringen <jan.moringen@uni-bielefeld.de>
5b83ba18
MA
986
987 * dbusbind.c (QCdbus_request_name_allow_replacement): New symbol;
988 used by Fdbus_register_service.
989 (QCdbus_request_name_replace_existing): Likewise.
990 (QCdbus_request_name_do_not_queue): Likewise.
991 (QCdbus_request_name_reply_primary_owner): Likewise.
992 (QCdbus_request_name_reply_in_queue): Likewise.
993 (QCdbus_request_name_reply_exists): Likewise.
994 (QCdbus_request_name_reply_already_owner): Likewise.
995 (Fdbus_register_service): New function.
996 (Fdbus_register_method): Use Fdbus_register_service to do the name
997 registration.
998 (syms_of_dbusbind): Add symbols dbus-register-service,
999 :allow-replacement, :replace-existing, :do-not-queue,
1000 :primary-owner, :existing, :in-queue and :already-owner.
1001
21a76236
CY
10022011-01-09 Chong Yidong <cyd@stupidchicken.com>
1003
1004 * gtkutil.c (update_frame_tool_bar): Don't advance tool-bar index
1005 when removing extra buttons.
1006
3d91e302
CY
10072011-01-08 Chong Yidong <cyd@stupidchicken.com>
1008
1009 * fns.c (Fyes_or_no_p): Doc fix.
1010
0d23ffb5
AS
10112011-01-08 Andreas Schwab <schwab@linux-m68k.org>
1012
1013 * fns.c (Fyes_or_no_p): Add usage.
1014
9dc3366b
GM
10152011-01-08 Glenn Morris <rgm@gnu.org>
1016
d0981f82
GM
1017 * makefile.w32-in ($(EMACS)):
1018 * Makefile.in (emacs$(EXEEXT)): -batch implies -q.
1019
9dc3366b
GM
1020 * xdisp.c (syms_of_xdisp) <Qrisky_local_variable>: Move from here...
1021 * emacs.c (syms_of_emacs) <Qrisky_local_variable>: ...to here.
1022
466cbae9
AS
10232011-01-07 Andreas Schwab <schwab@linux-m68k.org>
1024
1025 * image.c (imagemagick_load_image): Fix some resource leaks and
1026 error handling.
1027
8c51d2a2
CY
10282011-01-07 Chong Yidong <cyd@stupidchicken.com>
1029
1030 * fns.c (Fyes_or_no_p): Accept format string args.
1031
66b7b0fe
GM
10322011-01-07 Glenn Morris <rgm@gnu.org>
1033
1034 * emacs.c (no_site_lisp): New int.
1035 (USAGE1): Add --no-site-lisp, mention -Q uses it.
1036 (main): Set no_site_lisp.
1037 (standard_args): Add --no-site-lisp.
1038 * lisp.h (no_site_lisp): New int.
1039 * lread.c (init_lread): If no_site_lisp, don't re-add site-lisp
1040 directories to Vload_path.
1041
2018939f
AS
10422011-01-05 Andreas Schwab <schwab@linux-m68k.org>
1043
1044 * alloc.c (mark_stack): Use __builtin_unwind_init if available.
1045
6ed843e5
MA
10462011-01-04 Jan Moringen <jan.moringen@uni-bielefeld.de>
1047
8dabbfd6 1048 * dbusbind.c (Fdbus_register_method): Add optional parameter
6ed843e5
MA
1049 dont_register_service. Updated docstring accordingly.
1050
3f9b7090
GM
10512011-01-04 Glenn Morris <rgm@gnu.org>
1052
1053 * emacs.c (emacs_copyright): Update short copyright year to 2011.
1054
d82bce4a
EZ
10552011-01-03 Eli Zaretskii <eliz@gnu.org>
1056
1057 * image.c (png_jmpbuf): Remove definition.
1058 (my_png_error, png_load): Don't use png_jmpbuf.
1059
7c420169
CY
10602011-01-02 Eli Zaretskii <eliz@gnu.org>
1061
1062 * keyboard.c (Vselect_active_regions): Doc fix. (Bug#7702)
1063
10642011-01-02 Eli Zaretskii <eliz@gnu.org>
5be1c984
EZ
1065
1066 * image.c <Qlibpng_version>: New variable.
1067 (syms_of_image): Intern and staticpro it. Set its value to the
1068 version of PNG library we were compiled with.
1069 (my_png_error, png_load): Avoid GCC warnings about direct access
1070 to png_ptr->jmpbuf. (Bug#7716)
18da2e74
EZ
1071 (png_jmpbuf): New macro.
1072 (my_png_error, png_load): Use it instead of #ifdef'ing according
1073 to PNG_LIBPNG_VER_MAJOR and PNG_LIBPNG_VER_MINOR.
5be1c984 1074
7c420169 10752011-01-02 Stefan Monnier <monnier@iro.umontreal.ca>
cf07311b
SM
1076
1077 * .gdbinit (xgetptr): Fix the union+lsb case.
1078 (xbacktrace): Fix the union case.
1079
7c420169 10802011-01-02 Stefan Monnier <monnier@iro.umontreal.ca>
794b75c7
SM
1081
1082 * window.c (Fmove_to_window_line): Avoid abort when called in a buffer
1083 different from selected-window's.
1084
7c420169 10852011-01-02 Eli Zaretskii <eliz@gnu.org>
2e4ab211 1086
71fe378d
EZ
1087 * keyboard.c (parse_menu_item): Prepend " " to the key sequence
1088 equivalent of a menu item when the key sequence is given by the
1089 `:keys' attribute. (Bug#7662)
1090
2e4ab211
EZ
1091 * xdisp.c (Fformat_mode_line): Doc fix: no need to state that only
1092 the basic faces are supported.
1093
7c420169 10942011-01-02 Jan Djärv <jan.h.d@swipnet.se>
84595ff0
JD
1095
1096 * xterm.c (x_check_fullscreen): Fix pixel/character mixup.
1097
7c420169 10982011-01-02 Eli Zaretskii <eliz@gnu.org>
30d621a2
EZ
1099
1100 * xdisp.c (Fformat_mode_line): Fix last change.
1101
7c420169 11022011-01-02 Chong Yidong <cyd@stupidchicken.com>
4bf3e46e
CY
1103
1104 * xdisp.c (Fformat_mode_line): Restrict the FACE argument to basic
1105 faces (Bug#7587).
1106
7c420169 11072011-01-02 Eli Zaretskii <eliz@gnu.org>
1b2a627f
EZ
1108
1109 * fileio.c (Fexpand_file_name): One more doc fix.
1110
3afff00e
CY
11112011-01-01 Chong Yidong <cyd@stupidchicken.com>
1112
1113 * gtkutil.c (xg_get_tool_bar_widgets): Use NULL for a missing
1114 image or label in the container.
1115 (xg_make_tool_item): Replace VERT_ONLY arg with HORIZ, TEXT_IMAGE.
1116 (xg_show_toolbar_item): Function deleted.
1117 (xg_tool_item_stale_p): New function.
1118 (update_frame_tool_bar): Calculate tool-bar style once per call.
1119 Instead of hiding text labels, omit them. Don't use
1120 xg_show_toolbar_item; create new GtkToolItems from scratch if
1121 necessary, instead of trying to re-use them. This avoids an
1122 annoying animation when changing tool-bars.
1123
aeb7e951
JD
11242010-12-31 Jan Djärv <jan.h.d@swipnet.se>
1125
1126 * nsfns.m (ns_set_name_as_filename): Always use buffer name for
1127 title and buffer filename only for RepresentedFilename.
1128 Handle bad UTF-8 in buffer name (Bug#7517).
1129
5bbb4727
JD
11302010-12-30 Jan Djärv <jan.h.d@swipnet.se>
1131
1132 * coding.h (ENCODE_UTF_8): Remove "Used by ..." comment.
1133
1134 * nsfns.m (ns_set_name_iconic): Remove.
1135 (ns_set_name_internal): New function (Bug#7517).
1136 (Vicon_title_format): Extern declare.
1137 (ns_set_name): Call ns_set_name_internal.
1138 (x_explicitly_set_name): Remove call to ns_set_name_iconic.
1139 (x_implicitly_set_name): Ditto.
1140 (x_set_title): Remove commet about EXPLICIT. Call ns_set_name_internal.
1141 (ns_set_name_as_filename): Encode name with ENCODE_UTF_8 (Bug#7517).
1142
f1aab3ff
ŠN
11432010-12-29 Štěpán Němec <stepnem@gmail.com> (tiny change)
1144
1145 * window.c (syms_of_window): Add missing defsubr for
1146 window-use-time.
1147
365525b3
AS
11482010-12-28 Andreas Schwab <schwab@linux-m68k.org>
1149
1150 * xterm.h (x_alloc_lighter_color_for_widget): Restore declaration.
1151 * xterm.c (x_alloc_lighter_color_for_widget): Restore.
1152
59fc5cf9
AS
11532010-12-27 Andreas Schwab <schwab@linux-m68k.org>
1154
2f7c71a1
AS
1155 * buffer.c: Remove unused declarations.
1156 * buffer.h: Likewise.
1157 * charset.h: Likewise.
1158 * composite.h: Likewise.
1159 * dispextern.h: Likewise.
1160 * dispnew.c: Likewise.
1161 * font.h: Likewise.
1162 * fontset.c: Likewise.
1163 * fontset.h: Likewise.
1164 * intervals.h: Likewise.
1165 * keymap.h: Likewise.
1166 * lisp.h: Likewise.
1167 * syntax.c: Likewise.
1168 * syntax.h: Likewise.
1169 * termhooks.h: Likewise.
1170 * window.h: Likewise.
1171 * xsettings.h: Likewise.
1172 * xterm.c: Likewise.
1173 * xterm.h: Likewise.
1174
1175 * chartab.c (sub_char_table_ref): Make static.
1176 * dispnew.c (line_hash_code, required_matrix_height)
1177 (required_matrix_width): Likewise.
1178 * eval.c (interactive_p, apply_lambda): Likewise.
1179 * fns.c (string_make_multibyte, copy_hash_table, hash_clear):
1180 Likewise.
1181 * font.c (QCadstyle, QCregistry, font_make_spec)
1182 (font_parse_fcname, font_encode_char, font_at): Likewise.
1183 * frame.c (x_frame_get_arg): Likewise.
1184 * keymap.c (get_keyelt): Likewise.
1185 * lread.c (read_filtered_event): Likewise.
1186 * print.c (write_string_1): Likewise.
1187 * window.c (delete_window, window_height, window_width)
1188 (foreach_window): Likewise.
1189 * xrdb.c (x_get_customization_string, x_get_resource): Likewise.
1190 * xterm.c (x_scroll_bar_clear, xembed_set_info)
1191 (xembed_send_message): Likewise.
1192
1193 * eval.c (run_hook_list_with_args): Delete.
1194 * font.c (font_unparse_gtkname, font_update_lface): Likewise.
1195 * terminal.c (get_terminal_param): Likewise.
1196 * xterm.c (x_alloc_lighter_color_for_widget): Likewise.
1197
c4b607ed
AS
1198 * scroll.c: Fix comment.
1199
59fc5cf9
AS
1200 * dispnew.c (add_window_display_history)
1201 (add_frame_display_history, glyph_row_slice_p)
1202 (find_glyph_row_slice, flush_stdout)
1203 (check_matrix_pointer_lossage, matrix_row)
1204 (check_matrix_invariants, check_window_matrix_pointers)
1205 (check_matrix_pointers, window_to_frame_vpos)
1206 (window_to_frame_hpos): Prototize.
1207 * textprop.c (erase_properties): Likewise.
1208
a65b85b5
SM
12092010-12-22 Stefan Monnier <monnier@iro.umontreal.ca>
1210
17870c01
SM
1211 * print.c (PRINT_NUMBER_OBJECT, PRINT_NUMBER_STATUS): Remove.
1212 (print_preprocess): Fix handling of uninterned symbols in last change.
1213
a65b85b5
SM
1214 * print.c (print, print_preprocess, print_object): Use a hash table
1215 rather than a linear table for Vprint_number_table.
1216
f13183cf
CY
12172010-12-20 Chong Yidong <cyd@stupidchicken.com>
1218
1219 * frame.c (focus_follows_mouse): Default to 0 (Bug#7269).
1220
94975270
CY
12212010-12-20 Chong Yidong <cyd@stupidchicken.com>
1222
1223 * keyboard.c (Vtool_bar_separator_image_expression): New variable.
1224 (parse_tool_bar_item): Use it to obtain image separators for
1225 displays not using native tool-bar separators.
1226
1227 * xdisp.c (build_desired_tool_bar_string): Don't handle separators
1228 specially, since this is now done in parse_tool_bar_item.
1229
ef1b0ba7
SM
12302010-12-19 Stefan Monnier <monnier@iro.umontreal.ca>
1231
1232 Minor clean up to silence some gcc warnings.
1233 * window.c (Fset_window_buffer):
1234 * xterm.c (x_set_frame_alpha): Restructure code to silence
1235 compiler warning.
1236 (handle_one_xevent): Remove unused var `p'.
1237 (do_ewmh_fullscreen): Remove unused var `lval'.
1238 (xembed_set_info): Remove unused var `atom'.
1239 * textprop.c (Fremove_list_of_text_properties): Add braces to silence
1240 compiler warning.
1241 * fontset.c (fontset_id_valid_p, dump_fontset):
1242 * ftfont.c (ftfont_drive_otf): Modernize k&r declaration.
1243 * eval.c (Feval, Ffuncall): Avoid unneeded gotos.
1244 * dispnew.c (update_frame, update_frame_1): Compile the `do_pause'
1245 label only when it's used.
1246 * image.c (x_create_bitmap_from_xpm_data):
1247 * dispextern.h (x_create_bitmap_from_xpm_data): Use const char** like
1248 its callers.
1249 * coding.c (detect_coding_utf_16): Remove unused vars `src_base' and
1250 `consumed_chars'.
1251 (DECODE_EMACS_MULE_21_COMPOSITION): Remove unused var `charbuf_base'.
1252 (decode_coding_emacs_mule): Remove unused label `retry'.
1253 (detect_eol): Add parens to silence compiler warning.
1254 * alloc.c (bytes_used_when_reconsidered): Move to the #ifdef where
1255 it's used to silence the compiler.
1256 (make_number): Modernize k&r declaration.
1257 (mark_char_table): Add parens to silence compiler warning.
1258
4039c786
CY
12592010-12-17 Chong Yidong <cyd@stupidchicken.com>
1260
1261 * keyboard.c (parse_tool_bar_item): Allow menu separators in
1262 tool-bar maps.
1263 (menu_separator_name_p): New function, from gtkutil.c.
1264 (separator_names): Move from gtkutil.c.
1265
1266 * keyboard.h (menu_separator_name_p): Add prototype.
1267
1268 * gtkutil.c (XG_BIN_CHILD): New macro.
1269 (xg_get_menu_item_label, xg_update_menubar)
1270 (xg_update_menu_item, xg_tool_bar_menu_proxy)
1271 (xg_show_toolbar_item, update_frame_tool_bar): Use it.
1272 (separator_names, xg_separator_p): Move to keyboard.c.
ef1b0ba7
SM
1273 (create_menus, xg_update_submenu, update_frame_tool_bar):
1274 Use menu_separator_name_p.
4039c786
CY
1275
1276 * nsmenu.m (name_is_separator): Function deleted.
1277 (addItemWithWidgetValue): Use menu_separator_name_p.
1278
1279 * w32menu.c (name_is_separator): Function deleted.
1280 (add_menu_item): Use menu_separator_name_p.
1281
aa936e8e
JD
12822010-12-16 Jan Djärv <jan.h.d@swipnet.se>
1283
1284 * nsterm.m (ns_draw_window_cursor): If the cursor color is the
1285 same as the background, use the face forground as cursor.
1286
f49d1f52 12872010-12-13 Eli Zaretskii <eliz@gnu.org>
15579471
EZ
1288
1289 * fileio.c (Fexpand_file_name): Doc fix. (Bug#7617)
1290
f49d1f52 12912010-12-13 Eli Zaretskii <eliz@gnu.org>
76feb864 1292
f0559026
EZ
1293 * xdisp.c (string_pos_nchars_ahead, c_string_pos)
1294 (face_before_or_after_it_pos, next_element_from_string)
1295 (next_element_from_c_string, produce_stretch_glyph): Remove unused
1296 calculations of maximum string length before calling
1297 string_char_and_length and STRING_CHAR_AND_LENGTH.
1298 (string_char_and_length): Update commentary: MAXLEN is no longer
1299 needed.
1300
f49d1f52 13012010-12-13 Jan Djärv <jan.h.d@swipnet.se>
0b9fc69a
JD
1302
1303 * keyboard.c (kbd_buffer_get_event): Construct SAVE_SESSION_EVENT
1304 as (Qsave_session arg).
1305
1306 * xsmfns.c (smc_interact_CB): Set arg to Qnil.
1307 (smc_die_CB): Make an event with arg Qt.
1308 (Fhandle_save_session): If event has Qt as argument,
1309 call Fkill_emacs (Bug#7552).
1310
f49d1f52
SM
13112010-12-13 Chong Yidong <cyd@stupidchicken.com>
1312
1313 * buffer.c (transient-mark-mode): Doc fix (Bug#7465).
1314
13152010-12-13 Jan Djärv <jan.h.d@swipnet.se>
2b815743
JD
1316
1317 * xsmfns.c (smc_die_CB): Call Fkill_emacs (Bug#7552).
1318
f49d1f52 13192010-12-13 Chong Yidong <cyd@stupidchicken.com>
d8b2a962
CY
1320
1321 * dispextern.h (struct it): New member overlay_strings_charpos.
1322
1323 * xdisp.c (next_overlay_string, load_overlay_strings): Record the
1324 charpos where we computed n_overlay_strings.
1325 (next_overlay_string): Load overlay strings at recorded position,
1326 which may not be the same as the iterator's charpos (Bug#7016).
1327
f49d1f52 13282010-12-13 Chong Yidong <cyd@stupidchicken.com>
77f1ed6c
CY
1329
1330 * xdisp.c (try_scrolling): Avoid infloop if the first line is
1331 obscured due to a vscroll (Bug#7537).
1332
f49d1f52 13332010-12-13 Jan Djärv <jhd@zeplinf.localdomain>
2a91a0b5
JD
1334
1335 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
1336
1337 * nsterm.m (x_set_window_size, windowWillResize, initFrameFromEmacs):
1338 Use FRAME_TOOLBAR_HEIGHT.
1339 (x_set_offset): Handle XNegative and YNegative in
1340 f->size_hint_flags (Bug#7510).
1341
39321b94
EZ
13422010-12-11 Eli Zaretskii <eliz@gnu.org>
1343
1344 * w32fns.c (Fx_show_tip): Call try_window with last argument
1345 TRY_WINDOW_IGNORE_FONTS_CHANGE. Delete the TODO ifdef: problem
1346 solved. Round up the tip height to an integral multiple of the
1347 frame's line height. Add FRAME_COLUMN_WIDTH to the tip width.
1348 (Bug#7398)
1349
ec1b9b17
GM
13502010-12-08 Glenn Morris <rgm@gnu.org>
1351
1352 * fileio.c (Fverify_visited_file_modtime): Default to current buffer.
1353
3c2317e8
LMI
13542010-12-06 Lars Magne Ingebrigtsen <larsi@gnus.org>
1355
1356 * xml.c (parse_region): Ignore blank HTML nodes.
1357 (make_dom): Return CDATA sections (like <style>foo</style>) as
1358 text nodes.
1359
bba3e508
SM
13602010-12-06 Stefan Monnier <monnier@iro.umontreal.ca>
1361
1362 * lread.c (read1): Allow newstyle unquote outside of backquote.
1363 Disallow old-style backquotes inside new-style backquotes.
1364 Don't count unquotes to figure out when we're "syntactically inside
1365 but semantically outside of a backquote" any more.
1366 Extend the restriction no-unescaped-commas-and-backquotes-in-symbols
1367 to all contexts.
1368
d23d8608
CY
13692010-12-05 Chong Yidong <cyd@stupidchicken.com>
1370
1371 * process.c: Remove checks for HAVE_SYS_IOCTL_H (Bug#7484).
1372
d6a003a8
AS
13732010-12-04 Andreas Schwab <schwab@linux-m68k.org>
1374
1375 * Makefile.in (M_FILE): Substitute @M_FILE@ instead of @machfile@.
1376 (S_FILE): Substitute @S_FILE@ instead of @opsysfile@.
1377 * m/arm.h, m/sh3.h, m/xtensa.h: Remove files.
1378
201ef780
AS
13792010-12-03 Andreas Schwab <schwab@linux-m68k.org>
1380
1381 * lisp.h (union Lisp_Object): Explicitly declare signedness of
1382 bit-field.
1383 (XINT): Remove variant for EXPLICIT_SIGN_EXTEND.
1384 * m/alpha.h (EXPLICIT_SIGN_EXTEND): Don't define.
1385 * m/amdx86-64.h (EXPLICIT_SIGN_EXTEND): Likewise.
1386 * m/ia64.h (EXPLICIT_SIGN_EXTEND): Likewise.
1387 * m/ibms390.h (EXPLICIT_SIGN_EXTEND): Likewise.
1388 * m/ibms390x.h (EXPLICIT_SIGN_EXTEND): Likewise.
1389 * m/iris4d.h (EXPLICIT_SIGN_EXTEND): Likewise.
1390 * m/m68k.h (EXPLICIT_SIGN_EXTEND): Likewise.
1391 * m/sparc.h (EXPLICIT_SIGN_EXTEND): Likewise.
1392 * m/template.h (EXPLICIT_SIGN_EXTEND): Likewise.
1393 * m/hp800.h: Remove file.
1394 * m/mips.h: Remove file.
1395
146490c3
JD
13962010-12-03 Jan Djärv <jan.h.d@swipnet.se>
1397
1398 * nsterm.m (ns_dumpglyphs_image): If drawing cursor, fill background
1399 with cursor color and draw a rectangle around the image (Bug#7412).
1400
babc8f0d
AS
14012010-12-03 Andreas Schwab <schwab@linux-m68k.org>
1402
1403 * frame.c (x_set_font): Remove unused variable.
1404
9583e9a0
JD
14052010-12-02 Jan Djärv <jan.h.d@swipnet.se>
1406
dd723bbd
JD
1407 * nsmenu.m (update_frame_tool_bar): Remove NSLog on invalid image.
1408
9583e9a0
JD
1409 * nsterm.m (ns_draw_glyph_string): Switch fore- and background if
1410 drawing text under filled box cursor (Bug#7479).
1411
07976ae3 14122010-11-27 Kenichi Handa <handa@m17n.org>
b84ae584
KH
1413
1414 * charset.c (emacs_mule_charset): Make it an array of charset ID;
1415 i.e. integer.
bba3e508 1416 (Fdefine_charset_internal): Adjust for the above change.
b84ae584
KH
1417 (init_charset_once): Likewise.
1418
bba3e508
SM
1419 * charset.h (emacs_mule_charset): Adjust the prototype.
1420 Delete duplicated extern.
b84ae584
KH
1421
1422 * coding.c (emacs_mule_char): Adjust for the change of
1423 emacs_mule_charset.
1424
1425 * lread.c (read_emacs_mule_char): Adjust for the change of
1426 emacs_mule_charset.
1427
07976ae3 14282010-11-27 Eli Zaretskii <eliz@gnu.org>
b8e5cf1d
EZ
1429
1430 * w32.c (_PROCESS_MEMORY_COUNTERS_EX): Don't define with versions
1431 of w32api >= 3.15. (Bug#6989) (Bug#7452)
1432
07976ae3 14332010-11-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
96ad0af7
YM
1434
1435 * alloc.c (mark_terminals): Ensure that the image cache is marked
1436 even if the terminal object was marked earlier (Bug#6301).
1437
35f1de62
CY
14382010-11-21 Chong Yidong <cyd@stupidchicken.com>
1439
1440 * editfns.c (Fbyte_to_string): Signal an error arg is not a byte.
1441
07976ae3 14422010-11-27 Jan Djärv <jan.h.d@swipnet.se>
8d7f026f
JD
1443
1444 * gtkutil.c (menubar_map_cb): New function (Bug#7425).
1445 (xg_update_frame_menubar): Connect signal map to menubar_map_cb.
1446 Use 23 as menubar height if 0. (Bug#7425).
1447
8547874a
EZ
14482010-11-26 Eli Zaretskii <eliz@gnu.org>
1449
228482b2
EZ
1450 * xdisp.c (set_message_1): Force paragraph direction in echo area
1451 be left-to-right.
1452
8547874a
EZ
1453 * keyboard.c (make_lispy_position): Put a meaningful value in yret
1454 when the click is on the header or mode line.
1455
1e2dddbe
EZ
14562010-11-25 Eli Zaretskii <eliz@gnu.org>
1457
1458 * xdisp.c (set_cursor_from_row): Don't forget to consider the
1459 `cursor' property of the first character in overlay strings.
12365240 1460 (Bug#7474) (Bug#7481)
1e2dddbe 1461
50795d1f
JD
14622010-11-24 Jan Djärv <jan.h.d@swipnet.se>
1463
1464 * nsterm.m (NSLeftControlKeyMask, NSLeftCommandKeyMask)
1465 (NSLeftAlternateKeyMask): New defines.
c80c6166
JD
1466 (keyDown): Parse left and right keys separately (Bug#7458).
1467 Compare Left key masks exactly (Bug#7458).
50795d1f 1468
f8ab8c1f
EZ
14692010-11-23 Eli Zaretskii <eliz@gnu.org>
1470
1471 * intervals.c (temp_set_point_both): Define before calling, to
1472 avoid GCC warnings.
1473
2e8a4797
DN
14742010-11-23 Dan Nicolaescu <dann@ics.uci.edu>
1475
b29116ef
DN
1476 * nsmenu.m: Use #include <config.h> instead of "config.h".
1477
b932f8b1
DN
1478 * term.c (Qglyphless_char,last_glyphless_glyph_frame)
1479 (last_glyphless_glyph_face_id. last_glyphless_glyph_merged_face_id):
1480 Move declarations ...
1481 * lisp.h (Qglyphless_char,last_glyphless_glyph_frame)
1482 (last_glyphless_glyph_face_id. last_glyphless_glyph_merged_face_id):
1483 ... here.
1484
42c8bc9b
DN
1485 * emacs.c (gdb_use_union, gdb_valbits,gdb_gctypebits)
1486 (gdb_data_seg_bits, gdb_array_mark_flag, PVEC_FLAG)
1487 (gdb_pvec_type):
1488 * print.c (print_output_debug_flag):
1489 * lisp.h (debug_print): Mark as EXTERNALLY_VISIBLE.
1490 (safe_debug_print): New declaration.
1491
2e8a4797
DN
1492 * xterm.c:
1493 * systty.h:
1494 * sound.c: Include <sys/ioctl.h> unconditionally.
1495
b609f591
YM
14962010-11-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1497
1498 * alloc.c (mark_maybe_object): Return early if given a Lisp
1499 integer (Bug#6301).
1500
731e263a
KB
15012010-11-21 Ken Brown <kbrown@cornell.edu>
1502
1503 * sheap.c (STATIC_HEAP_SIZE): Revert previous change.
1504
b7d1e144
JD
15052010-11-21 Jan Djärv <jan.h.d@swipnet.se>
1506
1507 * nsterm.m (ns_right_command_modifier, ns_right_control_modifier):
1508 Define (Bug#7458).
1509 (NSRightCommandKeyMask, NSRightControlKeyMask): Define (Bug#7458).
1510 (EV_MODIFIERS): Check for NSRightCommandKeyMask and
1511 NSRightControlKeyMask also (Bug#7458).
1512 (keyDown): Ditto (Bug#7458).
1513 (syms_of_nsterm): Defvar ns-right-command-modifier and
1514 ns-right-control-modifier (Bug#7458).
1515
b7982059
DN
15162010-11-21 Dan Nicolaescu <dann@ics.uci.edu>
1517
bee3419f
DN
1518 * sysdep.c (sys_subshell): Remove SET_EMACS_PRIORITY.
1519 * emacs.c (emacs_priority, syms_of_emacs): Remove emacs_priority.
1520
b7982059
DN
1521 * intervals.h (temp_set_point, temp_set_point_both):
1522 * buffer.h (offset_intervals, copy_intervals): Remove INLINE.
1523
01664ed1
KB
15242010-11-20 Ken Brown <kbrown@cornell.edu>
1525
1526 * sheap.c (STATIC_HEAP_SIZE): Increase to 13MB.
1527
7c2d713b
EZ
15282010-11-20 Eli Zaretskii <eliz@gnu.org>
1529
1530 * term.c (produce_glyphless_glyph): Use \uNNNN, \UNNNNNN, or
1531 \xNNNNNN for hex-code display of glyphless characters.
1532
d2bd5189
JD
15332010-11-20 Jan Djärv <jan.h.d@swipnet.se>
1534
1535 * gtkutil.c (xg_make_tool_item): Take vert_only as argument.
1536 Set important to ! vert_only.
1537 (xg_show_toolbar_item): Don't show label horizontally if
1538 tool item isn't important.
1539 (update_frame_tool_bar): Get TOOL_BAR_ITEM_VERT_ONLY and pass it to
1540 xg_make_tool_item, or update important on existing tool item.
1541
1542 * keyboard.c (QCvert_only): New variable.
1543 (parse_tool_bar_item): Check for QCvert_only.
1544 (syms_of_keyboard): Initialize QCvert_only.
1545
1546 * dispextern.h (tool_bar_item_idx): Add TOOL_BAR_ITEM_VERT_ONLY.
1547
d9a95e67
EZ
15482010-11-20 Eli Zaretskii <eliz@gnu.org>
1549
1550 * msdos.c (dos_rawgetc): Use gen_help_event, instead of doing the
1551 same in-line.
1552
b6557553
AS
15532010-11-20 Andreas Schwab <schwab@linux-m68k.org>
1554
1555 * xfaces.c (lookup_face): Make static.
1556 * dispnew.c (copy_row_except_pointers): Likewise.
1557 * syntax.c (dec_bytepos): Likewise.
1558 (inc_bytepos): Remove.
1559 * dispextern.h (lookup_face): Remove declaration.
1560
f48fe1f0
EZ
15612010-11-19 Eli Zaretskii <eliz@gnu.org>
1562
1563 * xdisp.c (set_cursor_from_row): Display cursor after all the
1564 glyphs that come from an overlay. Don't overstep the last glyph
1565 when skipping glyphs from an overlay. (Bug#6687)
1566
654ef137
DN
15672010-11-18 Dan Nicolaescu <dann@ics.uci.edu>
1568
84dfc8a7
DN
1569 * alloc.c (refill_memory_reserve): Move declaration ...
1570 * lisp.h (refill_memory_reserve): ... here.
1571
94fa3833
DN
1572 * strftime.c (_strftime_copytm): Add declaration.
1573
dde990a0
DN
1574 * callproc.c (syms_of_callproc): Use intern_c_string.
1575
50c77428
DN
1576 Move declarations from .c files to .h files.
1577 * process.c (timers_run):
1578 * minibuf.c (quit_char):
1579 * lread.c (read_emacs_mule_char):
1580 * keyboard.c (minibuf_level, message_enable_multibyte)
1581 (pending_malloc_warning):
1582 * insdel.c (Vselect_active_regions, Vsaved_region_selection)
1583 (Qonly): Remove declarations.
1584 * lisp.h (pending_malloc_warning, Vsaved_region_selection)
1585 (Vselect_active_regions):
1586 * keyboard.h (timers_run): Add declarations.
1587
654ef137
DN
1588 * strftime.c (my_strftime_gmtime_r, my_strftime_localtime_r)
1589 (tm_diff): Convert definitions to standard C.
1590 (extra_args_spec_iso): Remove, unused.
1591
4a47c275 15922010-11-18 Jan Djärv <jan.h.d@swipnet.se>
37de8fd0
J
1593
1594 * xsettings.c (init_gconf): Check HAVE_G_TYPE_INIT.
1595
1596 * config.in (HAVE_G_TYPE_INIT): New symbol.
1597
4a47c275 15982010-11-18 Eli Zaretskii <eliz@gnu.org>
c7926fe2
EZ
1599
1600 * lread.c (Fload): Mention `load-in-progress' and
1601 `load-file-name'. (Bug#7346)
1602
86520d8c
EZ
1603 * keyboard.c (kbd_buffer_nr_stored): Define only ifdef subprocesses.
1604 (kbd_buffer_store_event_hold, kbd_buffer_get_event)
1605 (tty_read_avail_input): Call kbd_buffer_nr_stored only ifdef
1606 subprocesses. Use buffer_free only ifdef subprocesses.
1607
1608 * process.c (init_process) [subprocesses]: Init kbd_is_on_hold in
1609 the subprocesses version, not in the non-subprocesses one.
1610
794a4b6d
EZ
1611 * Makefile.in: Don't use ## comment, it breaks the MSDOS build.
1612
146d267b
EZ
16132010-11-17 Eli Zaretskii <eliz@gnu.org>
1614
1615 * xdisp.c (set_cursor_from_row): Fix cursor positioning in empty
1616 lines on text-mode terminals. (bug#7417)
1617
fad0d565
SM
16182010-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
1619
1620 * xterm.c (get_current_wm_state): Rename from get_current_vm_state.
1621 (do_ewmh_fullscreen, x_handle_net_wm_state): Update callers.
1622
6b4bb703
KH
16232010-11-17 Kenichi Handa <handa@m17n.org>
1624
1625 * coding.c (Fset_terminal_coding_system_internal): Fix previous
1626 change (set charset-ID list instead of charset-symbol list).
1627
9173a8fb
CY
16282010-11-16 Chong Yidong <cyd@stupidchicken.com>
1629
1630 * keyboard.c (make_lispy_position): For text area clicks, record Y
1631 pixel position relative to the text area, excluding header line.
1632 Also change X and Y to Lisp_Objects, not pointers; don't return
1633 coordinate values via pointers. Pass ON_TEXT_AREA coordinate to
1634 buffer_posn_from_coords counting from the start of the text area.
1635 (Fposn_at_x_y, make_lispy_event): Callers changed.
1636
1637 * window.c (coordinates_in_window): Change X and Y to ints rather
1638 than pointers; don't return coordinates via pointers.
1639 (struct check_window_data): Change X and Y from pointers to ints.
1640 (window_from_coordinates): Remove args WX and WY; don't return
1641 coordinates via pointers.
1642 (Fcoordinates_in_window_p, window_from_coordinates):
1643 (check_window_containing, Fwindow_at): Callers changed.
1644 (window_relative_x_coord): New function.
1645
1646 * window.h (window_from_coordinates, window_relative_x_coord):
1647 Update prototypes.
1648
1649 * dispnew.c (buffer_posn_from_coords): Assume that X counts from
1650 the start of the text area.
1651
1652 * xdisp.c (remember_mouse_glyph): Change window_from_coordinates
1653 call. Use window_relative_x_coord.
1654 (note_mouse_highlight): Change window_from_coordinates call.
1655
1656 * w32term.c (w32_read_socket):
1657 * msdos.c (dos_rawgetc):
1658 * xterm.c (handle_one_xevent): Likewise.
1659
d2762c86
DN
16602010-11-16 Dan Nicolaescu <dann@ics.uci.edu>
1661
1662 * strftime.c (LOCALE_PARAM_DECL): Update for standard C.
1663 (LOCALE_PARAM, LOCALE_PARAM_PROTO): Remove, unused.
1664 (memcpy_lowcase, so_week_days, extra_args_spec, emacs_strftimeu):
1665 Convert definitions to standard C.
1666 * regex.c: Do not include <stdlib.h>, config.h does it.
1667 Include unistd.h.
1668 (xrealloc, init_syntax_once, re_match, regcomp, regexec)
1669 (regerror, regfree): Convert definitions to standard C.
1670 * mktime.c (my_mktime_localtime_r, ydhms_tm_diff, ranged_convert)
1671 (__mktime_internal): Convert definitions to standard C.
1672
c2f0866a
DN
16732010-11-15 Dan Nicolaescu <dann@ics.uci.edu>
1674
42a7e7f1
DN
1675 * w32proc.c:
1676 * w32inevt.c:
1677 * w32heap.c:
1678 * w32.c: Remove config.h include guards.
1679
67802943
DN
1680 * callproc.c (child_setup): Reorder code to simplify #ifdefs.
1681 No code changes.
1682
f0e1af46
DN
1683 * process.c: Include <sys/ioctl.h> unconditionally,
1684 keyboard.c already does it.
1685
c2f0866a
DN
1686 * keyboard.c (pending_malloc_warning): Add const to match
1687 definition in alloc.c.
1688 (Fset_input_interrupt_mode): Simplify #ifdefs.
1689
92d3ab7e
DN
16902010-11-15 Dan Nicolaescu <dann@ics.uci.edu>
1691
12e610e8
DN
1692 Clean up systty.h macros.
1693 * systty.h (EMACS_GET_TTY_PGRP, EMACS_SET_TTY_PGRP, EMACS_GET_TTY)
1694 (EMACS_SET_TTY): Remove unneeded abstraction, instead inline the
1695 definition in all uses.
1696 (EMACS_TTY_TABS_OK): Remove, it has a single user.
1697 * sysdep.c (discard_tty_input, child_setup_tty)
1698 (init_sys_modes, tabs_safe_p, reset_sys_modes):
1699 * emacs.c (shut_down_emacs):
1700 * callproc.c (child_setup):
1701 * term.c (dissociate_if_controlling_tty): Inline removed macros.
1702
92d3ab7e
DN
1703 * data.c (sign_extend_temp, sign_extend_lisp_int): Remove, unused.
1704
a3e6bad4
CY
17052010-11-14 Chong Yidong <cyd@stupidchicken.com>
1706
1707 * w32fns.c (Fx_create_frame):
1708 * nsfns.m (Fx_create_frame): Don't check for the cursorColor
1709 resource here; it's now done at startup.
1710
5a232ffb
J
17112010-11-14 Jan Djärv <jan.h.d@swipnet.se>
1712
1713 * xterm.c (set_wm_state): Add Qnil to final cons.
1714
1715 * xselect.c (x_send_client_event): Remove unused variables cons and
1716 size.
1717
24021b38
YM
17182010-11-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1719
1720 * keyboard.c (modify_event_symbol) : Add const to array elements of
1721 arg NAME_TABLE.
1722 (lispy_accent_keys, lispy_function_keys, lispy_multimedia_keys)
1723 (lispy_kana_keys, iso_lispy_function_keys, lispy_wheel_names)
1724 (lispy_wheel_names, lispy_drag_n_drop_names, modifier_names):
1725 Add const to array elements.
1726 (scroll_bar_parts): Make static. Fix position of const.
1727
1728 * w32fns.c (lispy_function_keys): Add const to extern.
1729
1730 * w32inevt.c (lispy_function_keys): Likewise.
1731
afa42fe3
CY
17322010-11-14 Chong Yidong <cyd@stupidchicken.com>
1733
1734 * xfns.c (Fx_create_frame): Don't check for the cursorColor
1735 resource here; it's now done at startup.
1736
53260a94
DN
17372010-11-13 Dan Nicolaescu <dann@ics.uci.edu>
1738
c865c575 1739 * xmenu.c: Make it clear that ../lwlib/lwlib.h is only needed for Motif.
ff2e8052 1740
c865c575 1741 Fix compilation on Solaris.
ff2e8052
DN
1742 * sysdep.c: Do not #include <term.h>.
1743 (tputs): Add declaration, similar to what cm.c does. (Bug#7178)
1744
53260a94
DN
1745 * s/ms-w32.h (HAVE_TERMIOS_H): Do not undef, not used anymore.
1746
933e29ff
J
17472010-11-13 Jan Djärv <jan.h.d@swipnet.se>
1748
1749 * xterm.c (set_wm_state): Don't put Atom in cons, call
1750 make_fixnum_or_float on them first.
1751 (x_term_init): Initialize Xatom_net_supporting_wm_check and
1752 Xatom_net_supported correctly.
1753
1754 * xselect.c (x_send_client_event): Move CHECK_STRING ...
1755 (Fx_send_client_event): to here.
1756
a048073e
MR
17572010-11-13 Martin Rudalics <rudalics@gmx.at>
1758
1759 * window.c (Fwindow_use_time): New function.
1760
0eb025fb
EZ
17612010-11-13 Eli Zaretskii <eliz@gnu.org>
1762
1763 * xdisp.c (set_cursor_from_row): Fix cursor positioning on
1764 zero-width characters.
1765
1766 * .gdbinit (pgx): Adapt to latest changes in `struct glyph'.
1767
1768 * w32term.c (x_draw_glyphless_glyph_string_foreground): Draw the
1769 box before drawing the glyphs inside it.
1770
1771 * xdisp.c (syms_of_xdisp) <glyphless-char-display>: Doc fix.
1772
bba3e508
SM
1773 * dispextern.h (enum glyphless_display_method):
1774 Rename GLYPHLESS_DISPLAY_HEXA_CODE to GLYPHLESS_DISPLAY_HEX_CODE.
1775 All users changed.
0eb025fb 1776
bba3e508
SM
1777 * term.c (append_glyphless_glyph, produce_glyphless_glyph):
1778 Fix comments.
0eb025fb
EZ
1779 (produce_glyphless_glyph): Enclose "U+nnnn" and "empty box"
1780 whitespace in "[]", to simulate a box. Don't use uninitialized
1781 variable `width'.
1782
c869cc37
JD
17832010-11-11 Julien Danjou <julien@danjou.info>
1784
2d9074ba
JD
1785 * xsettings.c (init_xsettings): Use already fetch atoms.
1786
1787 * xsmfns.c (create_client_leader_window): Use SM_CLIENT_ID atom
1788 from dpyinfo.
1789
1790 * xselect.c (Fx_send_client_event): Split and create
1791 x_send_client_event.
1792
1793 * lisp.h: Do not EXFUN Fx_send_client_event.
1794
1795 * xterm.c (x_set_frame_alpha): Use _NET_WM_WINDOW_OPACITY atom
1796 from dpyinfo.
1797 (wm_supports): Use atoms from dpyinfo.
1798 (do_ewmh_fullscreen): Use atoms from dpyinfo.
1799 (x_ewmh_activate_frame): Use atoms from dpyinfo.
1800 (xembed_set_info): Use atoms from dpyinfo.
1801 (x_term_init): Fetch _XEMBED_INFO, _NET_SUPPORTED,
1802 _NET_SUPPORTING_WM_CHECK, _NET_WM_WINDOW_OPACITY and
1803 _NET_ACTIVE_WINDOW, XSETTINGS atoms.
1804 Get all atoms in one round-trip.
1805 (set_wm_state): Use x_send_client_event rather than
1806 Fx_send_client_event, using Atom directly.
1807 (x_ewmh_activate_frame): Ditto.
1808 (x_set_sticky): Pass atoms to set_wm_state.
1809 (do_ewmh_fullscreen): Ditto.
1810
1811
1812 * xterm.h (x_display_info): Add Xatom_net_supported,
1813 Xatom_net_supporting_wm_check, Xatom_net_active_window,
1814 Xatom_net_wm_window_opacity, Xatom_XEMBED_INFO, SM_CLIENT_ID.
1815
c869cc37
JD
1816 * xfns.c (Fx_show_tip): Fix typo in docstring.
1817
1a4236ea
SM
18182010-11-11 Stefan Monnier <monnier@iro.umontreal.ca>
1819
1820 * cmds.c (Fself_insert_command): Don't call XFASTINT without checking
1821 it's not negative.
1822
3106121c
YM
18232010-11-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1824
1825 * font.c (font_filter_properties): Add const to array elements of
1826 properties args.
1827
1828 * font.h (font_filter_properties): Likewise.
1829
1830 * ftfont.c (ftfont_booleans, ftfont_non_booleans): Add const to array
1831 elements.
1832
1833 * w32font.c (w32font_booleans, w32font_non_booleans): Likewise.
1834
da1fec2b
MA
18352010-11-10 Michael Albinus <michael.albinus@gmx.de>
1836
1837 * dbusbind.c (QCdbus_type_unix_fd): New Lisp object.
1838 (XD_BASIC_DBUS_TYPE, xd_symbol_to_dbus_type, xd_signature)
1839 (xd_append_arg, xd_retrieve_arg): Support DBUS_TYPE_UNIX_FD.
1840 (Fdbus_call_method): Add DBUS_TYPE_UNIX_FD type mapping to doc string.
1841 (syms_of_dbusbind): Initialize QCdbus_type_unix_fd).
1842
bd6bc222
GM
18432010-11-10 Glenn Morris <rgm@gnu.org>
1844
1845 * emacs.c (syms_of_emacs) <system-type>: Doc fix.
1846
c0098065
EZ
18472010-11-09 Eli Zaretskii <eliz@gnu.org>
1848
bd6bc222 1849 * xfns.c (x_real_positions): Fix declaration-after-statement problem.
c0098065 1850
d607b96b 18512010-11-09 Chong Yidong <cyd@stupidchicken.com>
be3faa80
CY
1852
1853 * image.c (free_image): Don't garbage the frame here, since this
1854 function can be called while redisplaying (Bug#7210).
1855 (uncache_image): Garbage the frame here (Bug#6426).
1856
d607b96b 18572010-11-09 Jan Djärv <jan.h.d@swipnet.se>
184765cc 1858
d607b96b
SM
1859 * xfns.c (x_real_positions): Only use _NET_FRAME_EXTENTS if our
1860 parent is the root window. Check this after traversing window tree.
184765cc 1861
d607b96b 1862 * xterm.c (x_term_init): Initialize Xatom_net_frame_extents.
bd80a886 1863
d607b96b 1864 * xterm.h (struct x_display_info): Xatom_net_frame_extents is new.
bd80a886 1865
d607b96b
SM
1866 * xfns.c (x_real_positions): Try to get _NET_FRAME_EXTENTS first
1867 before traversing window tree (Bug#5721).
c2e124a9 1868
27f92be7
J
18692010-11-07 Jan Djärv <jan.h.d@swipnet.se>
1870
66b16767
J
1871 * xfns.c (set_machine_and_pid_properties): Let X set WM_CLIENT_MACHINE.
1872
25f38310
SM
1873 * xdisp.c (note_mode_line_or_margin_highlight):
1874 Initialize Cursor to No_Cursor for HAVE_WINDOW_SYSTEM also.
27f92be7 1875
a971c0a7
EZ
18762010-11-06 Eli Zaretskii <eliz@gnu.org>
1877
1878 * xfns.c (Fx_show_tip): If any of the tool-tip text lines is R2L,
1879 adjust width of tool-tip frame to the width of text, excluding the
1880 stretch glyph at the beginning of R2L glyph rows.
1881
1882 * w32fns.c (Fx_show_tip): Likewise.
1883
80417b95
JD
18842010-11-06 Jan Djärv <jan.h.d@swipnet.se>
1885
1886 * nsfont.m: Include termchar for new mouse-highlight.
6dc61cf1 1887 (nsfont_draw): Use MOUSE_HL_INFO.
80417b95 1888
28118eb6
EZ
18892010-11-05 Eli Zaretskii <eliz@gnu.org>
1890
c1fc2d3a 1891 Unify mouse-highlight code for all GUI and TTY sessions.
cf482c50
EZ
1892
1893 * term.c: Remove static mouse_face_* variables. All users
1894 changed.
1895 (term_show_mouse_face, term_clear_mouse_face)
1896 (fast_find_position, term_mouse_highlight): Functions deleted.
1897 (tty_draw_row_with_mouse_face): New function.
1898 (term_mouse_movement): Call note_mouse_highlight instead of
1899 term_mouse_highlight.
1900
bbf534ce
EZ
1901 * nsterm.m (ns_update_window_begin, ns_update_window_end)
1902 (ns_update_end, x_destroy_window, ns_frame_up_to_date)
1903 (ns_dumpglyphs_box_or_relief, ns_maybe_dumpglyphs_background)
1904 (ns_dumpglyphs_image, ns_dumpglyphs_stretch)
1905 (ns_initialize_display_info, keyDown, mouseMoved, mouseExited):
1906 Replace Display_Info with Mouse_HLInfo everywhere where
1907 mouse_face_* members were accessed for mouse highlight purposes.
1908
1909 * xterm.c (x_update_window_begin, x_update_window_end)
1910 (x_update_end, XTframe_up_to_date, x_set_mouse_face_gc)
bba3e508
SM
1911 (handle_one_xevent, x_free_frame_resources, x_term_init):
1912 Replace Display_Info with Mouse_HLInfo everywhere where mouse_face_*
bbf534ce
EZ
1913 members were accessed for mouse highlight purposes.
1914
1915 * w32term.c (x_update_window_begin, x_update_window_end)
1916 (x_update_end, w32_read_socket, x_free_frame_resources)
1917 (w32_initialize_display_info): Replace Display_Info with
1918 Mouse_HLInfo everywhere where mouse_face_* members were accessed
1919 for mouse highlight purposes.
1920
1921 * xdisp.c (show_mouse_face, note_mode_line_or_margin_highlight)
1922 (note_mouse_highlight) [HAVE_WINDOW_SYSTEM]: Don't run GUI code
1923 unless the frame is on a window-system.
c1fc2d3a 1924 (get_tool_bar_item, handle_tool_bar_click)
7ea692f6
EZ
1925 (note_tool_bar_highlight, draw_glyphs, erase_phys_cursor)
1926 (show_mouse_face, clear_mouse_face, coords_in_mouse_face_p)
1927 (note_mode_line_or_margin_highlight, note_mouse_highlight)
1928 (x_clear_window_mouse_face, cancel_mouse_face, expose_frame):
1929 Replace Display_Info with Mouse_HLInfo everywhere where
1930 mouse_face_* members were accessed for mouse highlight purposes.
c1fc2d3a 1931 (coords_in_mouse_face_p): Move prototype out of the
d009ae66
EZ
1932 HAVE_WINDOW_SYSTEM conditional.
1933 (x_y_to_hpos_vpos, frame_to_window_pixel_xy): Move out of the
1934 HAVE_WINDOW_SYSTEM block.
bba3e508
SM
1935 (try_window_id) [HAVE_GPM || MSDOS]:
1936 Call x_clear_window_mouse_face.
d009ae66 1937 (draw_row_with_mouse_face): Implementation for HAVE_WINDOW_SYSTEM
c1fc2d3a
EZ
1938 systems. Call tty_draw_row_with_mouse_face for TTY systems.
1939 (show_mouse_face): Call draw_row_with_mouse_face, instead of
1940 calling draw_glyphs directly.
d009ae66
EZ
1941 (show_mouse_face, clear_mouse_face, coords_in_mouse_face_p)
1942 (cursor_in_mouse_face_p, rows_from_pos_range)
1943 (mouse_face_from_buffer_pos, mouse_face_from_string_pos)
1944 (note_mode_line_or_margin_highlight, note_mouse_highlight)
1945 (x_clear_window_mouse_face, cancel_mouse_face): Move out of the
1946 HAVE_WINDOW_SYSTEM block. Ifdef away window-system specific
1947 fragments.
1948 (note_mouse_highlight): Call popup_activated for MSDOS as well.
1949 Clear mouse highlight if pointer is over glyphs whose OBJECT is an
1950 integer.
1951 (mouse_face_from_buffer_pos): Add parentheses around && within ||.
bba3e508
SM
1952 (x_consider_frame_title, tool_bar_lines_needed):
1953 Move prototypes to HAVE_WINDOW_SYSTEM-only part.
c1fc2d3a
EZ
1954 (get_window_cursor_type): Move inside a HAVE_WINDOW_SYSTEM-only
1955 part. Remove "#ifdef HAVE_WINDOW_SYSTEM" from body of function.
1956 (null_glyph_slice): Move declaration into HAVE_WINDOW_SYSTEM-only
1957 part.
d009ae66
EZ
1958
1959 * dispnew.c (mirror_make_current): Set Y coordinate of the
1960 mode-line and header-line rows.
c1fc2d3a
EZ
1961 (init_display): Setup initial frame's output_data for text
1962 terminal frames.
d009ae66 1963
c1fc2d3a
EZ
1964 * xmenu.c (popup_activated): Don't define on MSDOS, which now has
1965 its own definition on msdos.c.
d009ae66
EZ
1966
1967 * msdos.c (show_mouse_face, clear_mouse_face)
1968 (fast_find_position, IT_note_mode_line_highlight)
1969 (IT_note_mouse_highlight): Functions deleted.
1970 (IT_frame_up_to_date, dos_rawgetc): Call note_mouse_highlight
1971 instead of IT_note_mouse_highlight.
1972 (draw_row_with_mouse_face, popup_activated): New functions.
c1fc2d3a
EZ
1973 (dos_set_window_size, draw_row_with_mouse_face, IT_update_begin)
1974 (IT_update_end, IT_frame_up_to_date, internal_terminal_init)
1975 (dos_rawgetc): Replace Display_Info with Mouse_HLInfo everywhere
1976 where mouse_face_* members were accessed for mouse highlight
1977 purposes.
1978
1979 * msdos.h (initialize_msdos_display): Add prototype.
1980
1981 * frame.h (MOUSE_HL_INFO): New macro.
1982
1983 * lisp.h (Mouse_HLInfo): New data type.
1984
1985 * xterm.h (struct x_display_info):
1986 * w32term.h (struct w32_display_info):
1987 * nsterm.h (struct ns_display_info):
1988 * termchar.h (struct tty_display_info): Use it instead of
1989 mouse_face_* members.
1990
1991 * dispextern.h (show_mouse_face, clear_mouse_face): Update type of
1992 1st argument.
1993 (frame_to_window_pixel_xy, note_mouse_highlight)
1994 (x_clear_window_mouse_face, cancel_mouse_face, clear_mouse_face)
1995 (show_mouse_face, cursor_in_mouse_face_p): Move prototypes out of
1996 HAVE_WINDOW_SYSTEM conditional.
1997 (draw_row_with_mouse_face): Declare prototype.
1998 (tty_draw_row_with_mouse_face): Declare prototype.
1999
6e8d7c47
EZ
20002010-11-05 Eli Zaretskii <eliz@gnu.org>
2001
bba3e508
SM
2002 * term.c (append_glyphless_glyph, produce_glyphless_glyph):
2003 Remove unused variables.
6e8d7c47 2004
f31ba3f0
AR
20052010-11-05 Adrian Robert <Adrian.B.Robert@gmail.com>
2006
2007 * nsterm.m (EmacsView-mouseExited:): Correct error in conditional
2008 logic pointed out by Eli Zaretskii.
2009
448e17d6
LMI
20102010-11-04 Lars Magne Ingebrigtsen <larsi@gnus.org>
2011
0c3a9a9f
GM
2012 * coding.c (coding-category-list): Refer to set-coding-system-priority
2013 instead of the obsolete set-coding-priority in the doc string.
448e17d6 2014
f31ba3f0 2015
3fdebbf9 20162010-11-04 Adrian Robert <Adrian.B.Robert@gmail.com>
f31ba3f0
AR
2017
2018 * nsfont.m (nsfont_draw): Correct previous patch to return
2019 correct value.
2020 * nsimage.m (EmacsImage-setXBMColor:): Correct previous patch:
2021 don't change the method signature, change the return.
2022
20232010-11-04 Ismail Donmez <ismail@namtrac.org> (tiny change)
3fdebbf9
AR
2024
2025 * nsfont.m (nsfont_draw)
2026 * nsimage.m (EmacsImage-setXBMColor:)
f31ba3f0 2027 * nsterm.m (EmacsView-performDragOperation:): Correct empty return.
3fdebbf9 2028
17c0c952
JD
20292010-11-03 Julien Danjou <julien@danjou.info>
2030
2031 * image.c (gif_load): Add support for transparency and specified
2032 :background.
2033
b18fad6d
KH
20342010-11-01 Kenichi Handa <handa@m17n.org>
2035
2036 * dispextern.h (lookup_glyphless_char_display): Extern it.
2037
2038 * termhooks.h (struct terminal): New member charset_list.
2039
2040 * coding.c (Fset_terminal_coding_system_internal): Set the
2041 `charset_list' member of struct terminal.
2042
a8039db1 2043 * term.c (produce_glyphs): Handle the case it->what == IT_GLYPHLESS.
b18fad6d
KH
2044 (append_glyphless_glyph, produce_glyphless_glyph): New functions.
2045
2046 * xdisp.c (lookup_glyphless_char_display): Make it non-static.
2047 (lookup_glyphless_char_display): Set it->what at the end.
2048 (last_glyphless_glyph_frame, last_glyphless_glyph_face_id)
2049 (last_glyphless_glyph_merged_face_id): Make them non-static.
2050
a8039db1
JB
2051 * w32term.c (x_draw_glyphless_glyph_string_foreground):
2052 Fix the arg with_background for font->driver->draw.
65b6b59a 2053
a8039db1 20542010-11-01 Kenichi Handa <handa@m17n.org>
0269bd90 2055
a8039db1
JB
2056 * w32gui.h (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2):
2057 Surround chp by parentheses.
0269bd90 2058
a8039db1 20592010-11-01 Kenichi Handa <handa@m17n.org>
b2cca856
KH
2060
2061 Implement various display methods for glyphless characters.
2062
2063 * xdisp.c (Qglyphless_char, Vglyphless_char_display)
2064 (Qglyphless_char_display, Qhexa_code, Qempty_box, Qthin_space)
2065 (Qzero_width): New variables.
2066 (THIN_SPACE_WIDTH): New macro.
2067 (lookup_glyphless_char_display): New funciton.
2068 (last_glyphless_glyph_frame, last_glyphless_glyph_face_id)
2069 (last_glyphless_glyph_merged_face_id): New variables.
2070 (get_next_display_element): Check glyphless characters.
2071 (redisplay_internal): Initialize last_glyphless_glyph_frame and
2072 last_glyphless_glyph_face_id.
2073 (fill_glyphless_glyph_string): New function.
2074 (BUILD_GLYPHLESS_GLYPH_STRING): New macro.
2075 (BUILD_GLYPH_STRINGS): Handle the case GLYPHLESS_GLYPH.
2076 (append_glyphless_glyph, produce_glyphless_glyph): New functions.
2077 (x_produce_glyphs): If a suitable font is not found, produce a
2078 glyphless glyph. Handle the case it->what == IT_GLYPHLESS.
2079 (syms_of_xdisp): Intern and staticpro Qglyphless_char,
2080 Qglyphless_char_display, Qhexa_code, Qempty_box, Qthin_space, and
2081 Qzero_width.
2082 (Vglyphless_char_display): Declare it as a Lisp variable.
2083
2084 * dispextern.h (enum glyph_type): Add GLYPHLESS_GLYPH.
a8039db1
JB
2085 (struct glyph): Change the size of the member "type" to 3.
2086 Add glyphless to the union slice and u.
b2cca856
KH
2087 (enum display_element_type): Add IT_GLYPHLESS.
2088 (enum glyphless_display_method): New enum.
2089 (struct it): New member glyphless_method.
2090 (Vglyphless_char_display): Extern it.
2091
2092 * xterm.c (x_draw_glyphless_glyph_string_foreground): New function.
2093 (x_draw_glyph_string): Handle the case GLYPHLESS_GLYPH.
2094
a8039db1 2095 * w32term.c (x_draw_glyphless_glyph_string_foreground): New function.
b2cca856
KH
2096 (x_draw_glyph_string): Handle the case GLYPHLESS_GLYPH.
2097
2098 * nsterm.m (ns_draw_glyph_string): Handle the case
2099 GLYPHLESS_GLYPH (the detail is not yet implemented).
2100
c8c59954
GM
21012010-10-31 Glenn Morris <rgm@gnu.org>
2102
80696982
GM
2103 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]: Fix merge, maybe.
2104
c8c59954
GM
2105 * frame.c (syms_of_frame) <tool-bar-mode>:
2106 Default to nil if !HAVE_WINDOW_SYSTEM. (Bug#7299)
2107
46eadc7a
CY
21082010-10-31 Chong Yidong <cyd@stupidchicken.com>
2109
2110 * xterm.c (x_connection_closed): Print informative error message
2111 when aborting on GTK. This requires using shut_down_emacs
2112 directly instead of Fkill_emacs.
2113
ffe75e6b
EZ
21142010-10-29 Eli Zaretskii <eliz@gnu.org>
2115
2116 * emacs.c (main): Call syms_of_filelock unconditionally.
2117
2118 * filelock.c (syms_of_filelock): Move out of #ifdef CLASH_DETECTION
2119 clause, but keep part of it conditioned on CLASH_DETECTION.
2120
9d794026
GM
21212010-10-29 Glenn Morris <rgm@gnu.org>
2122
4f4f2973
GM
2123 * nsfns.m (Fx-display-save-under, Fx-open-connection)
2124 (Fxw-color-defined-p, Fxw-display-color-p, Fx-show-tip):
2125 * w32fns.c (Fxw_color_defined_p, Fx_open_connection):
2126 * xfns.c (Fxw_color_defined_p, Fx_open_connection):
2127 Sync docs between X, W32, NS.
2128
9d794026
GM
2129 * buffer.c (syms_of_buffer) <abbrev-mode, transient-mark-mode>:
2130 * frame.c (syms_of_frame) <tool-bar-mode>: Move doc here from Lisp.
2131
d46f6bbb
JB
21322010-10-26 Juanma Barranquero <lekktu@gmail.com>
2133
2134 * eval.c (init_eval_once): Set max_lisp_eval_depth to 600;
2135 otherwise, bootstrapping on Windows fails to compile macroexp.el.
2136
2e35f1a2
EZ
21372010-10-26 Eli Zaretskii <eliz@gnu.org>
2138
2139 * cmds.c (internal_self_insert): Don't insert if argument N is
84b28888 2140 zero or negative. (Bug#7281)
2e35f1a2 2141
8daaeda6
J
21422010-10-26 Jan Djärv <jan.h.d@swipnet.se>
2143
2144 * gtkutil.c (qttip_cb): Set title to empty for ATK (Bug#7278).
2145
6a5c2175
GM
21462010-10-25 Glenn Morris <rgm@gnu.org>
2147
2148 * Makefile.in (SOME_MACHINE_LISP): Remove easymenu.elc.
2149
7c051dd8
GM
21502010-10-24 Glenn Morris <rgm@gnu.org>
2151
2152 * w32fns.c (Fx_synchronize, Fx_change_window_property)
2153 (Fx_window_property, Fx_file_dialog):
2154 * xfns.c (Fx_synchronize, Fx_change_window_property)
2155 (Fx_window_property, Fx_file_dialog): Sync docs between w32 and X.
2156
23c261f5
CY
21572010-10-24 Chong Yidong <cyd@stupidchicken.com>
2158
2159 * xterm.c (x_connection_closed): Kill Emacs unconditionally.
2160
d414c713 21612010-10-24 Eli Zaretskii <eliz@gnu.org>
89baa1df
EZ
2162
2163 * frame.c (Fframep, Fwindow_system): Deprecate use as a predicate.
2164
2165 * dispnew.c (syms_of_display) <initial-window-system, window-system>:
2166 Deprecate use as a boolean flag.
2167
947f5e01
JM
21682010-10-24 Jim Meyering <jim@meyering.net>
2169
2170 * emacs.c (argmatch): Don't treat "--" as "--chdir".
2171
65807d73
GM
21722010-10-24 Glenn Morris <rgm@gnu.org>
2173
f5f25615
GM
2174 * w16select.c (syms_of_win16select) <selection-coding-system>:
2175 <next-selection-coding-system>:
2176 * w32select.c (syms_of_w32select) <selection-coding-system>:
2177 <next-selection-coding-system>:
3646b86d
GM
2178 Sync docs with select.el.
2179
46710489
GM
2180 * xfaces.c (syms_of_xfaces) <tty-defined-color-alist>: Sync doc with
2181 Lisp version.
2182
ea883883
GM
2183 * w32term.c (syms_of_w32term) <x-use-underline-position-properties>:
2184 Sync doc with the xterm.c version.
2185
65807d73
GM
2186 * w32term.c (syms_of_w32term) <x-toolkit-scroll-bars>:
2187 * xterm.c (syms_of_xterm) <x-toolkit-scroll-bars>: Sync docs.
2188
f3d87560
GM
21892010-10-23 Glenn Morris <rgm@gnu.org>
2190
66c6abf0 2191 * buffer.c (syms_of_buffer) <cursor-in-non-selected-windows>:
e1fd756b 2192 * frame.c (syms_of_frame) <menu-bar-mode>:
6e82cf1a 2193 * xdisp.c (syms_of_xdisp) <auto-hscroll-mode, display-hourglass>:
a102db1e 2194 <hourglass-delay>: Sync docs with Lisp.
f3d87560 2195
7b7e2c18
EZ
21962010-10-23 Eli Zaretskii <eliz@gnu.org>
2197
d1d6801e 2198 Implement mouse highlight for bidi-reordered lines.
d0010be5
EZ
2199
2200 * xdisp.c (fast_find_string_pos): #ifdef away, not used anymore.
2201 (mouse_face_from_string_pos): New function, replaces
2202 fast_find_string_pos.
2203 (note_mouse_highlight): Call it instead of fast_find_string_pos.
d1d6801e
EZ
2204 (note_mode_line_or_margin_highlight): Support bidi-reordered
2205 strings and R2L glyph rows. Fix comments.
2f3f89b3
EZ
2206 (note_mouse_highlight): When bidi reordering is turned on in a
2207 buffer, call next-single-property-change and
ef1b0ba7
SM
2208 previous-single-property-change with last argument nil.
2209 Clear mouse highlight when mouse pointer is in a R2L row on the stretch
d1d6801e 2210 glyph that stands for no text beyond the line end.
1f382a02
EZ
2211 (row_containing_pos): Don't return too early when CHARPOS is in a
2212 bidi-reordered continued line. Return immediately when the first
2213 hit is found in a line that is not continued, or when an exact
2214 match for CHARPOS is found.
d1d6801e
EZ
2215 (rows_from_pos_range): New function.
2216 (mouse_face_from_buffer_pos): Use it instead of calling
2217 row_containing_pos for START_CHARPOS and END_CHARPOS. Rewrite the
2218 function to support mouse highlight in bidi-reordered lines and
2219 not to assume that START_CHARPOS is always in mouse_face_beg_row.
2220 If necessary, swap mouse_face_beg_row and mouse_face_end_row so
2221 that the former is always above the latter or identical to it.
1554d88e 2222 (show_mouse_face): Support drawing highlighted R2L lines.
1b5a721b
EZ
2223 (coords_in_mouse_face_p): New function, bidi-aware.
2224 (cursor_in_mouse_face_p, note_mouse_highlight, erase_phys_cursor):
2225 Call it instead of comparing with mouse-face members of dpyinfo.
2226 (note_mode_line_or_margin_highlight): Fix confusingly swapped
2227 usage of hpos and vpos.
544bbc31 2228
dee186b6
J
22292010-10-22 Jan Djärv <jan.h.d@swipnet.se>
2230
2231 * xrdb.c: Include keyboard.h for MOTIF.
2232
2233 * xmenu.c: Revert 2010-07-27 change: lwlib.h is needed for
2234 MOTIF (Bug#7263).
2235
2236 * xfns.c: Include Xm/TextF and Xm/List.
bba3e508
SM
2237 (file_dialog_cb, file_dialog_unmap_cb, clean_up_file_dialog):
2238 Make ANSI prototypes.
dee186b6 2239
5fb59edb
GM
22402010-10-22 Glenn Morris <rgm@gnu.org>
2241
2242 * Makefile.in (SOME_MACHINE_LISP): Add w32-vars.
2243 Remove ccl and duplicate mouse.
2244
8b78d5e3
CY
22452010-10-21 Chong Yidong <cyd@stupidchicken.com>
2246
2247 * insdel.c (prepare_to_modify_buffer): Don't set
2248 saved-region-selection if modification hooks are disabled.
2249
b8a47412
CY
22502010-10-19 Chong Yidong <cyd@stupidchicken.com>
2251
2252 * cmds.c (Fdelete_char): Doc fix.
2253
ca3fa302 22542010-10-19 Ken Brown <kbrown@cornell.edu>
5419963b
KB
2255
2256 * s/cygwin.h (SIGNALS_VIA_CHARACTERS): New define (bug#7225).
2257
ca3fa302 22582010-10-19 Kenichi Handa <handa@m17n.org>
31daa5e1
KH
2259
2260 Fix incorrect font metrics when the same font is opened with
2261 different pixelsizes.
2262
2263 * xftfont.c: Include composite.h.
2264 (xftfont_shape): New function.
2265 (syms_of_xftfont): Set xftfont_driver.shape.
2266
c978536f
JD
22672010-10-18 Julien Danjou <julien@danjou.info>
2268
2269 * frame.c (Fframe_pointer_visible_p):
2270 Add `frame-pointer-visible-p' to get the pointer visibility.
2271
4b2d9ec2
LMI
22722010-10-18 Lars Magne Ingebrigtsen <larsi@gnus.org>
2273
2274 * gnutls.c (emacs_gnutls_read): Return 0 if we get a
2275 non-"EAGAIN"-like error to signal to Emacs that the socket should
2276 be closed.
2277
9cf66cf2
EZ
22782010-10-15 Eli Zaretskii <eliz@gnu.org>
2279
c3911ead
EZ
2280 * unexcoff.c (make_hdr): Fix prototype according to changes in
2281 2010-10-03T13:59:56Z!dann@ics.uci.edu.
2282
9cf66cf2
EZ
2283 * image.c (tiff_load): Cast 3rd argument to avoid compiler warning.
2284
be98da05
TH
22852010-10-15 Tassilo Horn <tassilo@member.fsf.org>
2286
2287 * Makefile.in (really-oldXMenu): Fix typo in variable name that
2288 made building the X menu fail.
cc98b256 2289 (really-oldXMenu): Fix my previous fix.
be98da05 2290
220d91b8 22912010-10-14 Damyan Pepper <damyanp@gmail.com>
9fa82824
DP
2292
2293 Fix handling of font properties on Windows (bug#6303).
2294 * font.c (font_filter_properties): New function, refactored from
2295 ftfont_filter_properties.
2296 * font.h (font_filter_properties): Declare.
2297 * ftfont.c (ftfont_filter_properties): Use font_filter_properties.
2298 * w32font.c (w32font_booleans, w32font_non_booleans): New variables.
2299 (w32font_filter_properties): New function.
2300 (w32font_driver): Add w32font_filter_properties.
2301
220d91b8 23022010-10-14 Juanma Barranquero <lekktu@gmail.com>
51e4f4a8 2303
c0943d3d 2304 * font.c (Ffont_variation_glyphs):
51e4f4a8
JB
2305 * ccl.c (Fccl_execute_on_string): Fix typo in docstring.
2306
24f981c9
JB
23072010-10-14 Juanma Barranquero <lekktu@gmail.com>
2308
2309 * w32fns.c (w32_wnd_proc, file_dialog_callback):
2310 * w32font.c (w32_generic_family):
2311 * w32inevt.c (key_event):
2312 * w32menu.c (fill_in_menu):
2313 * w32proc.c (reader_thread, w32_executable_type, compare_env)
2314 (merge_and_sort_env, int_from_hex, enum_locale_fn, enum_codepage_fn):
2315 * w32term.c (w32_read_socket): Make static.
2316
850690cc
JB
23172010-10-13 Juanma Barranquero <lekktu@gmail.com>
2318
2319 * image.c (DEF_IMGLIB_FN): Add argument to adapt to strict
2320 prototypes; all callers changed.
2321
5e371708
JB
23222010-10-13 Juanma Barranquero <lekktu@gmail.com>
2323
2324 * makefile.w32-in (TLIB2): Rename from TLIBW32.
2325 (OBJ2): New macro.
2326 (WIN32OBJ, FONTOBJ): Remove.
2327 (OBJ1): Redistribute object files with OBJ2.
2328 (LIBS, $(TEMACS)): Use TLIB2.
2329 (make-buildobj-CMD, make-buildobj-SH): Use OBJ2.
2330 ($(TLIB2), TAGS, TAGS-LISP, TAGS-gmake): Depend on OBJ2.
2331
2e288d54
JB
23322010-10-13 Juanma Barranquero <lekktu@gmail.com>
2333
2334 * emacs.c (Vdynamic_library_alist)
2335 (syms_of_emacs) <dynamic-library-alist>: Move from image.c and rename.
2336 Doc fix.
2337
2338 * lisp.h (Vdynamic_library_alist): Declare extern.
2339
2340 * image.c (Vimage_library_alist)
2341 (syms_of_image) <image-library-alist>: Move to emacs.c and rename.
2342 (lookup_image_type): Use Vdynamic_library_alist.
2343 (Finit_image_library): Doc fix.
2344
aba1381b
DN
23452010-10-12 Dan Nicolaescu <dann@ics.uci.edu>
2346
2347 * Makefile.in (lispsource, libsrc, etc, oldxmenudir, lwlibdir)
2348 (lispdir): Remove trailing /, update all uses.
2349
4c14013d 23502010-10-12 Jan Djärv <jan.h.d@swipnet.se>
a2e35ef5
JD
2351
2352 * nsterm.m (Qleft): Declare.
2353 (ns_right_alternate_modifier): New variable
2354 (NSRightAlternateKeyMask): New define.
2355 (EV_MODIFIERS): Parse NSRightAlternateKeyMask if
2356 ns_right_alternate_modifier isn't Qleft.
2357 (keyDown): If ns_right_alternate_modifier isn't Qleft, use it
2358 as emacs modifier for NSRightAlternateKeyMask.
2359 (syms_of_nsterm): DEFVAR_LISP ns-right-alternate-modifier.
2360
355cdaf3
LMI
23612010-10-10 Lars Magne Ingebrigtsen <larsi@gnus.org>
2362
2363 * gnutls.c (emacs_gnutls_write): If we're trying to write before
2364 gnutls is ready, return EAGAIN as the errno.
2365
4c620157
DN
23662010-10-10 Dan Nicolaescu <dann@ics.uci.edu>
2367
edfd76ce
DN
2368 * vm-limit.c:
2369 * unexhp9k800.c:
2370 * unexelf.c:
2371 * unexaix.c:
2372 * termcap.c: Remove #ifdef emacs / #ifndef emacs code, unused.
2373
a4daeecf
DN
2374 * Makefile.in (temacs): Use $(ALL_CFLAGS) on the link line.
2375 (PROFILING_LDFLAGS): Remove, not needed anymore.
2376
2cb72a75 2377 * Makefile.in: Use $(...) everywhere instead of ${...}
4cf3ad30
DN
2378 (CRT_DIR): Move near potential user.
2379 (START_FILE): Move near CRT_DIR, it might use it.
2cb72a75 2380
4c620157
DN
2381 * sysdep.c (LPASS8): Remove, unused.
2382 (emacs_ospeed): Change from being a global to a local in the only
2383 user: init_baud_rate.
2384
b845653d
LMI
23852010-10-09 Lars Magne Ingebrigtsen <larsi@gnus.org>
2386
2387 * gnutls.c (syms_of_gnutls): All the bootprops are keywords.
bda6d2bd 2388 (emacs_gnutls_write): Remove the debuggin fsync call.
b845653d 2389 (emacs_gnutls_read): Return -1 if we got an error from
bda6d2bd 2390 gnutls_read. This allows us to actually read lots of data from
b845653d 2391 the GnuTLS stream.
2e6c74c5
LMI
2392 (emacs_gnutls_write): Check for GNUTLS_E_AGAIN and not EINTR.
2393 According to the documentation, this is correct, and it seems to
2394 make things work.
b845653d 2395
3625b3e2
CY
23962010-10-09 Chong Yidong <cyd@stupidchicken.com>
2397
2398 * xterm.c (x_draw_relief_rect): Clear corner pixels.
2399
8b1c619f
MA
24002010-10-08 Michael Albinus <michael.albinus@gmx.de>
2401
2402 * keyboard.c: Revert last change; it was not intended to be
2403 synchronized with the trunk.
2404
93d50df8
KH
24052010-10-08 Kenichi Handa <handa@m17n.org>
2406
2b7c9342 2407 * coding.c (complement_process_encoding_system): Fix previous change.
5886ec9c 2408
4628bef1 24092010-10-08 Michael Albinus <michael.albinus@gmx.de>
a79b0f28
MA
2410
2411 * dbusbind.c (syms_of_dbusbind): Move putenv call ...
2412 (Fdbus_init_bus): ... here. (Bug#7113)
2413
4628bef1 24142010-10-08 Glenn Morris <rgm@gnu.org>
7b2bf907
GM
2415
2416 * buffer.c (before-change-functions, after-change-functions):
2417 Three-year overdue doc fix following 2007-08-13 change.
2418
4628bef1 24192010-10-08 Kenichi Handa <handa@m17n.org>
1911a33b
KH
2420
2421 * coding.c (coding_inherit_eol_type): If parent doesn't specify
2422 eol-format, inherit from the system's default.
2423 (complement_process_encoding_system): Make a new coding system
2424 inherit the original eol-format.
2425
4628bef1 24262010-10-08 Kenichi Handa <handa@m17n.org>
fcaf8878
KH
2427
2428 * coding.c (complement_process_encoding_system): New function.
2429
2430 * coding.h (complement_process_encoding_system): Extern it.
2431
2432 * callproc.c (Fcall_process): Complement the coding system for
2433 encoding arguments.
2434 (Fcall_process_region): Complement the coding system for encoding
2435 the input to the process.
2436
2437 * process.c (Fstart_process): Complement the coding system for
2438 encoding arguments.
2439 (send_process): Complement the coding system for encoding what
2440 sent to the process.
2441
4628bef1 24422010-10-08 Kenichi Handa <handa@m17n.org>
18acb5ad
KH
2443
2444 * xfont.c (xfont_open): Fix setting of font->average_width from
2445 :avgwidth property (Bug#7123).
2446
4628bef1 24472010-10-08 Michael Albinus <michael.albinus@gmx.de>
dec83468
MA
2448
2449 * dbusbind.c (syms_of_dbusbind): Use putenv instead of setenv, it
2450 is more portable.
2451
2452 * keyboard.c (gobble_input): Move call of xd_read_queued_messages ...
2453 (kbd_buffer_get_event): ... here. This is needed for cygwin, which
2454 has not defined SIGIO.
2455
389454fb
CY
24562010-10-08 Chong Yidong <cyd@stupidchicken.com>
2457
2458 * xterm.c (x_draw_relief_rect): If box width is larger than 1,
2459 draw the outermost line using the black relief, for legibility.
2460 Omit drawing the four corner pixels.
2461
51b403bd
CY
24622010-10-04 Chong Yidong <cyd@stupidchicken.com>
2463
2464 * keyboard.c (echo_prompt): Function moved into read_key_sequence.
2465 (read_key_sequence): Inline echo_prompt.
2466 (echo_dash): Add a dash only if key is continued (Bug#7137).
2467
3e6ae1a4
DN
24682010-10-04 Dan Nicolaescu <dann@ics.uci.edu>
2469
2470 Remove O_RDONLY, O_WRONLY definitions, not needed.
2471 * unexcoff.c:
2472 * lread.c:
2473 * fileio.c:
2474 * doc.c:
2475 * callproc.c:
2476 * alloc.c:
2477 * termcap.c: Remove O_RDONLY O_WRONLY definitions.
2478
c1ae068b
LMI
24792010-10-03 Teodor Zlatanov <tzz@lifelogs.com>
2480
2481 * gnutls.h (GNUTLS_LOG2): Convenience macro.
2482
2483 * gnutls.c: Add property list symbol holders.
2484 (emacs_gnutls_handshake): Clarify how sockets are passed to
2485 GnuTLS.
2486 (gnutls_log_function2): Convenience function using GNUTLS_LOG2.
2487 (Fgnutls_boot): Get all parameters from a plist. Require trustfiles
2488 and keyfiles to be a list of file names. Default to "NORMAL" for
2489 the priority string. Improve logging.
2490
e2afe435
GM
24912010-10-03 Glenn Morris <rgm@gnu.org>
2492
2493 * fileio.c (Vdirectory_sep_char): Remove.
2494
dd5ecd6b
DN
24952010-10-03 Dan Nicolaescu <dann@ics.uci.edu>
2496
b5437a05
DN
2497 * termhooks.h: Remove #ifdef CONSP.
2498
4777478a
DN
2499 * xterm.c (NO_INLINE, noinline): Move definitions to ../configure.in.
2500
a3d5088d
DN
2501 Include <fcntl.h> unconditionally.
2502 * termcap.c:
2503 * sysdep.c:
2504 * lread.c:
2505 * keyboard.c:
2506 * filelock.c:
2507 * fileio.c:
2508 * doc.c:
2509 * callproc.c:
2510 * alloc.c: Remove include guards for <fcntl.h>, process.c already
2511 does it.
2512
82719735
DN
2513 * process.c: Do not include <sys/wait.h>, syswait.h does it.
2514
9de940b5
DN
2515 * sysdep.c (flush_pending_output): Remove code, does not do
2516 anything on any platform.
2517
57507bf8 2518 Remove unused code.
bba3e508
SM
2519 * sysdep.c (select_alarm, sys_select, read_input_waiting):
2520 Remove select emulation, all systems support select.
57507bf8
DN
2521 (set_exclusive_use): Remove, the only user is in an #if 0 block.
2522 * process.c (create_process): Remove #if 0 code.
2523
dd5ecd6b
DN
2524 Remove unused arguments for unexec.
2525 The third one is never used, and the last two are always passed as zero.
2526 * emacs.c (unexec): Add declaration.
2527 (Fdump_emacs): Only pass the first two arguments to unexec.
2528 Simplify #ifdef.
2529 * unexw32.c (unexec):
2530 * unexsol.c (unexec):
2531 * unexhp9k800.c (unexec):
2532 * unexcw.c (unexec): Remove the last 3 arguments, unused.
2533 * unexelf.c (unexec): Remove the last 3 arguments, unused.
2534 (find_section): Use const.
2535 * unexmacosx.c (unexec): Remove the last 3 arguments, unused.
2536 (unexec_error): Declare it NO_RETURN.
2537 * unexcoff.c (make_hdr): Assume bss_start is always zero, remove
2538 it as an argument, remove data_start and entry_address arguments, unused.
2539 (unexec): Remove bss_start, data_start and
2540 entry_address arguments.
2541 * unexaix.c (make_hdr): Assume bss_start is always zero, remove
2542 it as an argument, remove data_start and entry_address arguments, unused.
2543 (unexec): Remove bss_start, data_start and
2544 entry_address arguments.
2545
74f1829d
JB
25462010-10-03 Juanma Barranquero <lekktu@gmail.com>
2547
7f467e14
JB
2548 * makefile.w32-in (TAGS, TAGS-LISP, TAGS-gmake): Add $(FONTOBJ).
2549
74f1829d
JB
2550 * gnutls.c (emacs_gnutls_handshake, gnutls_make_error)
2551 (gnutls_emacs_global_init, gnutls_emacs_global_deinit): Make static.
2552 (Fgnutls_get_initstage, Fgnutls_deinit, Fgnutls_boot, Fgnutls_bye):
2553 Fix typos in docstrings.
2554 (Fgnutls_error_fatalp, Fgnutls_error_string): Doc fixes.
2555 (Fgnutls_errorp): Doc fix; use ERR for the argument name.
2556
6926550f
CY
25572010-10-03 Chong Yidong <cyd@stupidchicken.com>
2558
2559 * keyboard.c (command_loop_1): Make sure the mark is really alive
2560 before using it (Bug#7044).
2561
54b65f7b
JB
25622010-10-02 Juanma Barranquero <lekktu@gmail.com>
2563
2564 * makefile.w32-in (tags): Rename target to full-tags.
2565
383ebd15
EZ
25662010-10-02 Eli Zaretskii <eliz@gnu.org>
2567
2568 * emacs.c (main): Remove !WINDOWSNT conditional.
2569 (Fkill_emacs): Don't mention exemption on MS-Windows.
2570
9c524fcb
GM
25712010-10-02 Glenn Morris <rgm@gnu.org>
2572
3226d6ca
GM
2573 * character.c (Fchar_bytes): Remove obsolete function.
2574 (syms_of_character): Remove Schar_bytes.
2575
9c524fcb
GM
2576 * emacs.c (fatal_error_signal): Also run Fkill_emacs on SIGINT.
2577 (main) [!WINDOWSNT]: Handle SIGINT with fatal_error_signal
2578 in batch-mode.
2579 (Fkill_emacs): Doc fix. Also run the hook in batch mode.
2580 (kill-emacs-hook): Doc fix.
2581
1b217849
LMI
25822010-10-02 Lars Magne Ingebrigtsen <larsi@gnus.org>
2583
2584 * xml.c (Flibxml_parse_xml_region, Flibxml_parse_html_region)
bba3e508 2585 (parse_region): Rework to take regions instead of strings, and
1b217849
LMI
2586 renamed to reflect that these are the libxml functions.
2587
54cc6a83
EZ
25882010-10-01 Eli Zaretskii <eliz@gnu.org>
2589
0ebf79de
EZ
2590 * term.c (init_tty) [DOS_NT]: Don't call Wcm_clear after setting
2591 screen dimensions in tty->Wcm.
2592
54cc6a83
EZ
2593 * xdisp.c (set_cursor_from_row): When the row is truncated and
2594 point is outside the range of displayed characters, position the
2595 cursor inside the scroll margin. (Bug#6349)
2596
321401d1
DN
25972010-10-01 Dan Nicolaescu <dann@ics.uci.edu>
2598
4cacd822
DN
2599 Do not include stdlib.h and string.h, config.h does it.
2600 * xfont.c:
2601 * w32term.c:
2602 * w32reg.c:
2603 * w32inevt.c:
2604 * w32heap.c:
2605 * w32console.c:
2606 * w16select.c:
2607 * unexsol.c:
2608 * term.c:
2609 * sound.c:
2610 * scroll.c (m):
2611 * gtkutil.c:
2612 * font.c:
2613 * filelock.c:
2614 * fileio.c:
2615 * dosfns.c:
2616 * dbusbind.c:
2617 * bidi.c:
2618 * callproc.c:
2619 * process.c:
2620 * msdos.c:
2621 * charset.c: Do not include stdlib.h and string.h, config.h does it.
2622
bba3e508
SM
2623 * callproc.c (SIGCHLD): Remove conditional definition, syssignal.h
2624 defines it.
0781e7ab 2625
9bf58201
DN
2626 * process.c: Move #include <pty.h> earlier.
2627 (SIGCHLD): Remove conditional definition, syssignal.h defines it.
2628 (pty_name): Move definition later.
2629
088dcc3e
DN
2630 * nsselect.m (syms_of_nsselect):
2631 * nsmenu.m (syms_of_nsmenu):
2632 * nsfns.m (syms_of_nsfns):
2633 * msdos.c (syms_of_msdos):
4cacd822 2634
088dcc3e
DN
2635 * image.c (syms_of_image):
2636 * charset.c (syms_of_charset): Use intern_c_string instead of intern.
2637
321401d1
DN
2638 * point.h: Remove, unused.
2639
73077a9a
EZ
26402010-10-01 Eli Zaretskii <eliz@gnu.org>
2641
2642 * makefile.w32-in (TAGS, frc, TAGS-LISP, ../nt/TAGS, tags)
2643 (TAGS-gmake, TAGS-nmake, TAGS-LISP-gmake, TAGS-LISP-nmake)
2644 (nt-TAGS-gmake, nt-TAGS-nmake): New targets.
2645
55e572ef
DN
26462010-09-30 Dan Nicolaescu <dann@ics.uci.edu>
2647
2648 * xml.c (parse_string): Use const.
2649
d4b6d95d
LMI
26502010-09-30 Lars Magne Ingebrigtsen <larsi@gnus.org>
2651
ef1b0ba7
SM
2652 * eval.c (Fbacktrace): Don't overwrite print-level on exit.
2653 Also only override Vprint_level if it isn't already bound, and increase
d4b6d95d
LMI
2654 the level to 8 to produce more useful backtraces for bug reports.
2655
e4b6db12
DN
26562010-09-30 Dan Nicolaescu <dann@ics.uci.edu>
2657
2658 * Makefile.in: ecrt0.c does not exist anymore, do not mention it.
2659
1becef93
JB
26602010-09-30 Juanma Barranquero <lekktu@gmail.com>
2661
2662 * w32console.c (vga_stdcolor_name): Remove unused function;
2663 presumed dead after 2007-11-30T13:57:21Z!jasonr@gnu.org.
2664
df7fcaff
LMI
26652010-09-29 Lars Magne Ingebrigtsen <larsi@gnus.org>
2666
bac5cef8
LMI
2667 * gnutls.c (emacs_gnutls_handshake): Made into internal function.
2668 (Fgnutls_boot): Start the handshake.
2669 (emacs_gnutls_read): Perform the handshake from the reader loop.
e6059fa2
LMI
2670 (Fgnutls_boot): Remove some debugging messages.
2671 Change indentation throughout to use the Emacs style.
2672 (emacs_gnutls_handshake): Cast the fds to something that's
2673 possibly the expected length.
2674 (emacs_gnutls_write): Return -1 if we try to write before handshake.
bac5cef8 2675
df7fcaff
LMI
2676 * process.h (Lisp_Process): Add a gnutls_p field to Lisp_Process.
2677
2678 * process.c (make_process): Set the gnutls_p field to zero by
2679 default.
2680 (read_process_output): Always call the gnutls_read function if the
2681 stream is a gnutls stream.
2682 (send_process): Ditto for writes.
2683
2684 * gnutls.c (emacs_gnutls_write, emacs_gnutls_read): Refuse to read
2685 or write anything until the state is GNUTLS_STAGE_READY.
2686 (Fgnutls_boot): Mark the stream as being a gnutls stream.
2687
d585695f
EZ
26882010-09-29 Eli Zaretskii <eliz@gnu.org>
2689
af7ef32d
EZ
2690 * xdisp.c (reseat_1): Initialize bidi_it.paragraph_dir to
2691 NEUTRAL_DIR.
2692 (handle_invisible_prop, iterate_out_of_display_property)
2693 (next_element_from_buffer): If bidi_it.first_elt is set, call
2694 bidi_paragraph_init with NO_DEFAULT_P argument non-zero.
2695 (Bug#7128)
2696
d585695f
EZ
2697 * print.c (print_object): Fix format string and argument types for
2698 printing a Lisp_Misc_Marker.
2699
2700 * xdisp.c (pos_visible_p, c_string_pos, number_of_chars)
2701 (load_overlay_strings, get_overlay_strings_1)
2702 (get_overlay_strings, forward_to_next_line_start)
2703 (back_to_previous_visible_line_start, reseat, reseat_to_string)
2704 (get_next_display_element, next_element_from_string)
2705 (next_element_from_c_string, next_element_from_buffer)
2706 (move_it_vertically_backward, move_it_by_lines, add_to_log)
2707 (message_dolog, message_log_check_duplicate, message2_nolog)
2708 (message3, message3_nolog, vmessage, set_message, set_message_1)
2709 (hscroll_window_tree, text_outside_line_unchanged_p)
2710 (set_cursor_from_row, set_vertical_scroll_bar, redisplay_window)
2711 (find_last_unchanged_at_beg_row)
2712 (find_first_unchanged_at_end_row, row_containing_pos)
2713 (trailing_whitespace_p, display_mode_element, decode_mode_spec)
bba3e508
SM
2714 (display_count_lines, x_produce_glyphs, note_mouse_highlight):
2715 Use EMACS_INT for buffer and string positions.
d585695f
EZ
2716
2717 * dispextern.h (struct it) <string_nchars>: Declare EMACS_INT.
2718 (row_containing_pos): Adjust prototype.
2719
2720 * lisp.h (pos_visible_p, message2, message2_nolog, message3)
2721 (message2_nolog, set_message): Adjust prototypes.
2722
a6f3211f
SM
27232010-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
2724
2725 * gnutls.c (Fgnutls_boot): Remove unused vars `data' and `srp_cred'.
2726 (Fgnutls_boot): Use SDATA.
2727 (Fgnutls_handshake): Remove unused var `max_log_level'.
2728
e0720500
MA
27292010-09-27 Michael Albinus <michael.albinus@gmx.de>
2730
11a5af7c 2731 * dbusbind.c (syms_of_dbusbind): Set $DBUS_FATAL_WARNINGS to "0".
e0720500
MA
2732 (Bug#7113)
2733
d8a4b27a
J
27342010-09-27 Jan Djärv <jan.h.d@swipnet.se>
2735
42d3022b
J
2736 * xgselect.c (xg_select): Clear file descriptors not set from
2737 rfds and wfds.
2738
d8a4b27a
J
2739 * process.c (wait_reading_process_output): Add missing FD_CLR
2740 for write_mask (must mirror connect_wait_mask).
2741
8ed70bf3
LMI
27422010-09-27 Teodor Zlatanov <tzz@lifelogs.com>
2743
2744 * gnutls.c (gnutls_log_function): Show level and "gnutls.c"
2745 prefix.
2746 (Fgnutls_boot): Use changed process members. Use log level with a
2747 function parameter to set it. Bring back Emacs-level debugging
2748 messages at log level 1 and 2.
2749
2750 * process.c (make_process): Initialize gnutls_log_level.
2751
2752 * process.h: Add gnutls_log_level and rename x509_cred and
2753 anon_cred to have the gnutls_ prefix for consistency.
2754
2755 * gnutls.h (GNUTLS_LOG): Add convenience macro.
2756
bedf4aab
JB
27572010-09-27 Juanma Barranquero <lekktu@gmail.com>
2758
2759 * w32.c (g_b_init_get_sid_identifier_authority)
2760 (GetSidIdentifierAuthority_Proc, get_sid_identifier_authority):
2761 Remove, not used.
2762 (globals_of_w32): Don't set g_b_init_get_sid_identifier_authority.
2763 (init_winsock): Remove useless assignment.
2764 (open_process_token, get_token_information, lookup_account_sid)
2765 (get_sid_sub_authority, get_sid_sub_authority_count, get_file_security)
2766 (get_security_descriptor_owner, get_security_descriptor_group)
2767 (is_valid_sid, equal_sid, get_length_sid, copy_sid)
2768 (get_native_system_info, get_system_times, init_user_info, crlf_to_lf)
2769 (is_unc_volume, GetCachedVolumeInformation, get_volume_info)
2770 (is_fat_volume, open_unc_volume, read_unc_volume, close_unc_volume)
2771 (unc_volume_file_attributes, convert_from_time_t)
2772 (create_toolhelp32_snapshot, process32_first, process32_next)
2773 (open_thread_token, impersonate_self, revert_to_self)
2774 (get_process_memory_info, get_process_working_set_size)
2775 (global_memory_status, global_memory_status_ex, socket_to_fd)
2776 (shutdown_handler): Make static.
2777
08609ffd
MA
27782010-09-27 Michael Albinus <michael.albinus@gmx.de>
2779
2780 * dbusbind.c (dbus_fd_cb, xd_get_dispatch_status)
2781 (xd_pending_messages): Functions removed.
2782 (xd_read_queued_messages): Add parameters fd, *data, for_read in
2783 order to be compatible with add_read_fd. Determine bus from data,
2784 and call xd_read_message just for this bus.
2785 (xd_add_watch): Use xd_read_queued_messages as callback function.
2786 Add data.
2787
2788 * lisp.h (xd_pending_messages, xd_read_queued_messages): Remove.
2789
d2e9d0bb
LMI
27902010-09-27 Lars Magne Ingebrigtsen <larsi@gnus.org>
2791
ef1b0ba7 2792 * gnutls.c (gnutls_log_function): Add more debugging.
ec9f09be 2793 (emacs_gnutls_read): Don't infloop while reading.
d2e9d0bb 2794
4be9765d
KH
27952010-09-27 Kenichi Handa <handa@m17n.org>
2796
2797 These changes are to remove restriction on the number of glyphs in
2798 one composition.
2799
2800 * dispextern.h (struct glyph): Change the member "slice" to union.
2801 Remove u.cmp.from and u.cmp.to. Give more bits to u.cmp.id.
bba3e508 2802 (GLYPH_SLICE_EQUAL_P): Adjust for the above change.
4be9765d
KH
2803
2804 * dispnew.c (buffer_posn_from_coords): Use glyph->slice.img
2805 instead of glyph->slice.
2806 (marginal_area_string): Likewise.
2807
2808 * term.c (encode_terminal_code): Use glyph->slice.cmp instead of
2809 glyph->u.cmp.
2810 (append_composite_glyph): Likewise.
2811
2812 * xdisp.c (dump_glyph): Use glyph->slice.cmp instead of
2813 glyph->u.cmp.
2814 (fill_gstring_glyph_string, x_get_glyph_overhangs)
2815 (append_composite_glyph): Likewise.
2816 (fill_image_glyph_string): Use glyph->slice.img instead of
2817 glyph->slice.
2818 (append_glyph, produce_image_glyph, append_stretch_glyph)
2819 (note_mouse_highlight): Likewise.
2820
3fad2ad2
J
28212010-09-26 Jan Djärv <jan.h.d@swipnet.se>
2822
bf05eed6
J
2823 * process.c (add_keyboard_wait_descriptor)
2824 (delete_keyboard_wait_descriptor): Reinstate ifdef subprocesses.
82d6e50b
J
2825 (wait_reading_process_output): Don't pass write_mask to select
2826 if SELECT_CANT_DO_WRITE_MASK is defined.
2827 (SELECT_CANT_DO_WRITE_MASK): Define if SELECT_CANT_DO_WRITE_MASK.
bf05eed6 2828
3fad2ad2
J
2829 * process.h (add_read_fd, delete_read_fd, add_write_fd)
2830 (delete_write_fd): Declare.
2831
2832 * process.c (gpm_wait_mask, max_gpm_desc): Remove.
2833 (write_mask): New variable.
ef1b0ba7 2834 (max_input_desc): Rename from max_keyboard_desc.
3fad2ad2 2835 (fd_callback_info): New variable.
70e31436
JB
2836 (add_read_fd, delete_read_fd, add_write_fd, delete_write_fd):
2837 New functions.
3fad2ad2
J
2838 (Fmake_network_process): FD_SET write_mask.
2839 (deactivate_process): FD_CLR write_mask.
2840 (wait_reading_process_output): Connecting renamed to Writeok.
70e31436
JB
2841 check_connect removed. check_write is new. Remove references to gpm.
2842 Use Writeok/check_write unconditionally (i.e. no #ifdef
3fad2ad2
J
2843 NON_BLOCKING_CONNECT) instead of Connecting.
2844 Loop over file descriptors and call callbacks in fd_callback_info
2845 if file descriptor is ready for I/O.
2846 (add_gpm_wait_descriptor): Just call add_keyboard_wait_descriptor.
2847 (delete_gpm_wait_descriptor): Just call delete_keyboard_wait_descriptor.
2848 (keyboard_bit_set): Use max_input_desc.
70e31436
JB
2849 (add_keyboard_wait_descriptor, delete_keyboard_wait_descriptor):
2850 Remove #ifdef subprocesses. Use max_input_desc.
3fad2ad2
J
2851 (init_process): Initialize write_mask and fd_callback_info.
2852
2853 * keyboard.c (readable_events, gobble_input): Remove DBUS code.
2854
2855 * dbusbind.c: Include process.h.
2856 (dbus_fd_cb, xd_find_watch_fd, xd_toggle_watch)
2857 (xd_read_message_1): New functions.
70e31436
JB
2858 (xd_add_watch, xd_remove_watch): Call xd_find_watch_fd.
2859 Handle watch for both read and write.
3fad2ad2
J
2860 (Fdbus_init_bus): Also register xd_toggle_watch.
2861 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
2862 (Fdbus_method_error_internal, Fdbus_send_signal): Remove call
2863 to dbus_connection_flush.
70e31436 2864 (xd_read_message): Move most of the code to xd_read_message_1.
3fad2ad2
J
2865 Call xd_read_message_1 until status is COMPLETE.
2866
dce4c2ac
DN
28672010-09-26 Dan Nicolaescu <dann@ics.uci.edu>
2868
2869 * term.c: Do not include sys/ioctl.h, not needed.
70e31436
JB
2870 (init_tty): Reorder code to reduce the number of #ifdefs.
2871 No code changes.
dce4c2ac 2872
8af55556
TZ
28732010-09-26 Teodor Zlatanov <tzz@lifelogs.com>
2874
2875 * process.h: Set up GnuTLS support.
2876
2877 * process.c (make_process, Fstart_process)
2878 (read_process_output, send_process): Set up GnuTLS support for
2879 process input/output file descriptors.
2880
2881 * gnutls.h: The GnuTLS glue for Emacs, macros and enums.
2882
2883 * gnutls.c: The source code for GnuTLS support in Emacs.
2884
2885 * emacs.c: Set up GnuTLS support and call syms_of_gnutls.
2886
2887 * config.in: Set up GnuTLS support.
2888
2889 * Makefile.in (LIBGNUTLS_LIBS, LIBGNUTLS_CFLAGS, ALL_CFLAGS)
2890 (obj, LIBES): Set up GnuTLS support.
2891
83e245c4
JB
28922010-09-26 Juanma Barranquero <lekktu@gmail.com>
2893
2894 * w32.c (get_emacs_configuration_options): Fix previous change.
2895
d24ec09a
CY
28962010-09-25 Chong Yidong <cyd@stupidchicken.com>
2897
2898 * insdel.c (prepare_to_modify_buffer): Ensure the mark marker is
2899 alive before using it (Bug#6977).
2900
b7bdc47c
LMI
29012010-09-25 Lars Magne Ingebrigtsen <larsi@gnus.org>
2902
a952d5f3
LMI
2903 * xdisp.c (face_before_or_after_it_pos): EMACS_INT/int fixup.
2904
2905 * dispextern.h: EMACS_INT/int fixup.
2906
2907 * xdisp.c (string_pos_nchars_ahead, init_iterator): EMACS_INT/int
2908 fixup.
2909
b7bdc47c
LMI
2910 * xrdb.c (magic_file_p): EMACS_INT/int fixup.
2911
41118bd3
EZ
29122010-09-25 Eli Zaretskii <eliz@gnu.org>
2913
2452438f
EZ
2914 * window.c (Fpos_visible_in_window_p, Fdelete_other_windows)
2915 (Fselect_window, window_scroll_pixel_based)
2916 (window_scroll_line_based, Frecenter, Fset_window_configuration):
2917 Use EMACS_INT for buffer positions.
2918
2919 * textprop.c (validate_interval_range, interval_of)
2920 (property_change_between_p, Fadd_text_properties)
2921 (set_text_properties_1, Fremove_text_properties)
2922 (Fremove_list_of_text_properties, Ftext_property_any)
2923 (Ftext_property_not_all, copy_text_properties)
2924 (text_property_list, extend_property_ranges)
2925 (verify_interval_modification): Use EMACS_INT for buffer
2926 positions.
2927
f877c546
EZ
2928 * term.c (fast_find_position, term_mouse_highlight): Use EMACS_INT
2929 for buffer positions.
2930
2931 * process.c (read_process_output, send_process)
2932 (Fprocess_send_region, status_notify): Use EMACS_INT for buffer
2933 and string positions and size.
2934
da43f021
EZ
2935 * print.c (print_object, print_string, strout): Use EMACS_INT for
2936 string indices.
2937
2938 * minibuf.c (string_to_object): Use EMACS_INT for string position
2939 and size.
2940
2941 * marker.c (verify_bytepos): Use EMACS_INT for buffer positions.
2942
2943 * lread.c <read_from_string_index, read_from_string_index_byte>
2944 <read_from_string_limit, readchar_count>: Define EMACS_INT.
2945 (readchar, unreadchar, read_internal_start): Use EMACS_INT for
2946 buffer positions and string length.
2947
41118bd3
EZ
2948 * keyboard.c <last_point_position, last_non_minibuf_size>: Declare
2949 EMACS_INT.
2950 (echo_truncate, adjust_point_for_property, read_char)
2951 (gen_help_event, make_lispy_event, modify_event_symbol)
2952 (Fexecute_extended_command, stuff_buffered_input): Use EMACS_INT
2953 for buffer positions and string length.
2954
2955 * keyboard.h (gen_help_event): Adjust prototype.
2956
2957 * termhooks.h <struct input_event>: Make `code' member EMACS_INT.
2958
2959 * commands.h <last_point_position>: Declare EMACS_INT.
2960
2961 * xdisp.c <help_echo_pos>: Define as EMACS_INT.
2962 (truncate_echo_area): Accept EMACS_INT argument.
2963
2964 * dispextern.h <help_echo_pos>: Declare EMACS_INT.
2965
2966 * lisp.h (truncate_echo_area): Adjust prototype.
2967
2968 * composite.c (composition_adjust_point): Return EMACS_INT.
2969
2970 * composite.h (composition_adjust_point): Adjust prototype.
2971
ba3033ee
JB
29722010-09-25 Juanma Barranquero <lekktu@gmail.com>
2973
2974 * process.c (Fmake_network_process): When arg :host is 'local,
2975 use address 127.0.0.1, not name "localhost". (Bug#6781)
2976
4f3a2f8d
EZ
29772010-09-24 Eli Zaretskii <eliz@gnu.org>
2978
5816888b
EZ
2979 * indent.c (Fcurrent_indentation, indented_beyond_p)
2980 (compute_motion): Use EMACS_INT for buffer position variables.
2981
2982 * lisp.h (indented_beyond_p): Adjust prototype.
2983
2984 * buffer.c (overlay_strings): Return EMACS_INT.
2985
2986 * buffer.h (overlay_strings): Adjust prototype.
2987
2988 * region-cache.c (pp_cache): Adjust format to arguments.
2989
2990 * eval.c <specpdl_size, lisp_eval_depth>: Declare EMACS_INT.
2991 (call_debugger): Use EMACS_INT for specpdl_size related variables.
2992 (verror): Use EMACS_INT for size of allocated buffer.
2993
ace1712c
EZ
2994 * keyboard.c (make_lispy_position): Use EMACS_INT for buffer
2995 positions.
2996
2997 * xdisp.c (redisplay_internal, try_window_id)
bba3e508
SM
2998 (set_cursor_from_row, find_first_unchanged_at_end_row):
2999 Use EMACS_INT for buffer positions.
ace1712c 3000
f5276b75 3001 * dispextern.h (set_cursor_from_row): Adjust prototype.
ace1712c
EZ
3002
3003 * dispnew.c (increment_matrix_positions)
3004 (increment_row_positions, copy_glyph_row_contents)
3005 (mode_line_string, marginal_area_string): Use EMACS_INT for buffer
3006 positions.
3007
3008 * dispextern.h (mode_line_string, marginal_area_string)
bba3e508
SM
3009 (increment_matrix_positions, increment_row_positions):
3010 Adjust prototypes.
ace1712c
EZ
3011
3012 * data.c (Faref, Faset): Use EMACS_INT for string length and
3013 positions.
3014
3015 * cmds.c (internal_self_insert): Use EMACS_INT for the count of
3016 characters to insert.
3017
3018 * ccl.c (Fccl_execute_on_string): Use EMACS_INT for string
3019 position and size.
3020
4f3a2f8d
EZ
3021 * syntax.c (scan_words, update_syntax_table)
3022 (prev_char_comend_first, back_comment, skip_chars)
bba3e508
SM
3023 (skip_syntaxes, Fforward_comment, Fbackward_prefix_chars):
3024 Use EMACS_INT for buffer and string positions.
4f3a2f8d
EZ
3025
3026 * syntax.h (scan_words, update_syntax_table): Adjust prototypes.
3027
3028 * casefiddle.c (operate_on_word): Use EMACS_INT for buffer
3029 positions.
3030
db063399
LMI
30312010-09-24 Lars Magne Ingebrigtsen <larsi@gnus.org>
3032
f0812d35
LMI
3033 * scroll.c (calculate_scrolling, line_ins_del)
3034 (calculate_direct_scrolling, scroll_cost): Fix EMACS_INT/int
3035 conversion.
3036
f5c7fc27
LMI
3037 * region-cache.c (move_cache_gap, set_cache_region, pp_cache)
3038 (region_cache_backward, region_cache_forward)
3039 (revalidate_region_cache, set_cache_region): FIX EMACS_INT/int
3040 conversion.
3041
db063399
LMI
3042 * xdisp.c (message_dolog): Fix EMACS_INT/int conversion.
3043
3044 * eval.c (verror): Fix EMACS_INT/int conversion.
3045
07914cd0 3046 * print.c (PRINTDECLARE, PRINTPREPARE, strout, print_string)
db063399
LMI
3047 (print_preprocess, print_check_string_charset_prop)
3048 (print_object): Fix EMACS_INT/int conversion.
3049
3050 * xdisp.c (message_dolog): Fix EMACS_INT/int conversion.
3051
e6d4aefa
EZ
30522010-09-24 Eli Zaretskii <eliz@gnu.org>
3053
69481da7
EZ
3054 * callproc.c (Fcall_process): Use EMACS_INT for count of
3055 characters read from the subprocess.
3056
61bfec98
EZ
3057 * bidi.c (struct bidi_paragraph_info): Use EMACS_INT for buffer
3058 positions.
3059 (bidi_cache_search, bidi_cache_find): Use EMACS_INT for buffer
3060 positions.
3061
145582a0
EZ
3062 * buffer.c (struct sortvec): Use EMACS_INT for buffer positions.
3063 (struct sortstrlist, overlay_str_len): Use EMACS_INT for string
3064 length.
3065 (advance_to_char_boundary, Fset_buffer_multibyte)
3066 (overlays_at, overlays_in, mouse_face_overlay_overlaps)
3067 (overlay_touches_p, record_overlay_string, overlay_strings)
3068 (recenter_overlay_lists, fix_start_end_in_overlays)
3069 (modify_overlay, Fmove_overlay, report_overlay_modification)
3070 (evaporate_overlays): Use EMACS_INT for buffer positions.
3071
bba3e508
SM
3072 * lisp.h (fix_start_end_in_overlays, overlay_touches_p):
3073 Adjust prototypes.
145582a0 3074
446470a9
EZ
3075 * dispextern.h (struct bidi_saved_info): Use EMACS_INT for buffer
3076 positions.
3077
e6d4aefa
EZ
3078 * fns.c (Fcompare_strings, Fstring_lessp, concat)
3079 (string_make_unibyte, Fstring_as_unibyte, Fsubstring)
3080 (Fsubstring_no_properties, substring_both, Ffillarray)
3081 (Fclear_string, mapcar1, Fmapconcat, Fmapcar, Fmapc)
3082 (Fbase64_encode_region, Fbase64_encode_string, base64_encode_1)
3083 (Fbase64_decode_region, Fbase64_decode_string, base64_decode_1)
3084 (Fmd5): Use EMACS_INT for buffer and string positions and length
3085 variables and arguments.
3086
3087 * lisp.h (substring_both): Adjust prototype.
3088
eb652396
JB
30892010-09-24 Juanma Barranquero <lekktu@gmail.com>
3090
3091 Remove W32 API function pointer unused since 2005-02-15 (revno 2005-02-15T23:19:26Z!jasonr@gnu.org).
3092 * w32fns.c (clipboard_sequence_fn): Don't declare.
3093 (globals_of_w32fns): Don't initialize it.
3094
266a86bd 30952010-09-23 Stefan Monnier <monnier@iro.umontreal.ca>
fbb3da77
SM
3096
3097 * syntax.c (back_comment): Detect the case where a 1-char comment
3098 starter is also the 2nd char of a 2-char comment ender.
3099
266a86bd 31002010-09-23 Jan Djärv <jan.h.d@swipnet.se>
2b5b82db
J
3101
3102 * gtkutil.c (xg_tool_bar_menu_proxy): Set gtk-menu-items to TRUE.
3103
40283062
LMI
31042010-09-23 Lars Magne Ingebrigtsen <larsi@gnus.org>
3105
db063399
LMI
3106 * eval.c (verror): EMACS_INT/int cleanup.
3107
faf8b5bc
LMI
3108 * lisp.h (SPECPDL_INDEX): Cast to int, since we're not going to
3109 unwind_protect more than 2GB worth of functions.
3110
3111 * editfns.c (Finsert_char): EMACS_INT/int cleanup.
3112
40283062
LMI
3113 * lisp.h: Have oblookup take EMACS_INT to allow interning big
3114 string and avoid compiler warnings.
3115 (USE_SAFE_ALLOCA): Cast to int to avoid compilation warnings in
3116 all users.
3117
3118 * lread.c (oblookup): EMACS_INT/int cleanup.
3119
3120 * cmds.c (Fforward_line, Fdelete_char): EMACS_INT/int cleanup.
3121
fe3537c3
EZ
31222010-09-23 Eli Zaretskii <eliz@gnu.org>
3123
3124 * editfns.c (clip_to_bounds): Return an EMACS_INT value.
3125
3126 * lisp.h (clip_to_bounds): Adjust prototype.
3127
3128 * intervals.c (adjust_for_invis_intang): Return EMACS_INT value.
3129
0350982f
LMI
31302010-09-23 Lars Magne Ingebrigtsen <larsi@gnus.org>
3131
84c9ce05
LMI
3132 * lisp.h: doprnt.c EMACS_INT/int cleanup.
3133
3134 * doprnt.c (doprnt): EMACS_INT/int cleanup.
3135
3136 * doc.c (Fsnarf_documentation, get_doc_string): EMACS_INT/int
3137 cleanup.
3138
0350982f
LMI
3139 * lisp.h: Change the definition of all marker.c functions that
3140 take and return buffer stuff to be EMACS_INT instead of int.
3141
3142 * marker.c (buf_charpos_to_bytepos, CONSIDER, set_marker_both)
3143 (buf_charpos_to_bytepos, bytepos_to_charpos)
3144 (buf_bytepos_to_charpos, Fbuffer_has_markers_at)
3145 (set_marker_restricted, set_marker_both): Convert int to EMACS_INT
3146 for all buffer positions.
3147
c50bd0d2
CY
31482010-09-23 Chong Yidong <cyd@stupidchicken.com>
3149
3150 * intervals.c (traverse_intervals, rotate_right, rotate_left)
3151 (split_interval_right, find_interval, next_interval)
3152 (delete_node, delete_interval, interval_deletion_adjustment)
3153 (adjust_intervals_for_deletion, merge_interval_right)
3154 (merge_interval_left, graft_intervals_into_buffer)
3155 (copy_intervals): Convert EMACS_UINTs to EMACS_INT.
3156
3157 * intervals.h (traverse_intervals): Update prototype.
3158
14162469
EZ
31592010-09-23 Eli Zaretskii <eliz@gnu.org>
3160
c098fdb8
EZ
3161 * indent.c (compute_motion): Use EMACS_INT for arguments to
3162 region_cache_forward.
3163
bba3e508
SM
3164 * region-cache.c (struct boundary, struct region_cache):
3165 Use EMACS_INT for positions.
c098fdb8
EZ
3166 (find_cache_boundary, move_cache_gap, insert_cache_boundary)
3167 (delete_cache_boundaries, set_cache_region)
3168 (invalidate_region_cache, know_region_cache)
bba3e508
SM
3169 (region_cache_forward, region_cache_backward, pp_cache):
3170 Use EMACS_INT for buffer positions.
c098fdb8
EZ
3171
3172 * region-cache.h (know_region_cache, invalidate_region_cache)
3173 (region_cache_forward, region_cache_backward): Adjust prototypes.
3174
3175 * search.c (string_match_1, fast_c_string_match_ignore_case)
3176 (looking_at_1, scan_buffer, scan_newline)
3177 (find_next_newline_no_quit, find_before_next_newline)
3178 (search_command, trivial_regexp_p, search_buffer, simple_search)
3179 (boyer_moore, wordify, Freplace_match): Use EMACS_INT for buffer
3180 and string positions and length.
3181
caefdbe7
EZ
3182 * lisp.h (scan_buffer, scan_newline, find_next_newline_no_quit)
3183 (find_before_next_newline): Adjust prototypes.
c098fdb8 3184
29cdc13e
EZ
3185 * editfns.c (transpose_markers, update_buffer_properties)
3186 (buildmark, clip_to_bounds, Fgoto_char, overlays_around)
3187 (get_pos_property, Fconstrain_to_field)
3188 (Fline_beginning_position, Fline_end_position, Fprevious_char)
3189 (Fchar_after, Fchar_before, Finsert_char)
3190 (Finsert_buffer_substring, Fcompare_buffer_substrings)
bba3e508
SM
3191 (Fsubst_char_in_region, Fformat, Ftranspose_regions):
3192 Use EMACS_INT for buffer and string position variables.
c098fdb8 3193 (Finsert_char): Protect against too large insertions.
29cdc13e
EZ
3194
3195 * lisp.h (clip_to_bounds): Adjust prototype.
3196
e79123aa
EZ
3197 * intervals.c (traverse_intervals, rotate_right, rotate_left)
3198 (balance_an_interval, split_interval_right, split_interval_left)
3199 (find_interval, next_interval, update_interval)
3200 (adjust_intervals_for_insertion, delete_node, delete_interval)
3201 (interval_deletion_adjustment, adjust_intervals_for_deletion)
3202 (offset_intervals, merge_interval_right, merge_interval_left)
3203 (graft_intervals_into_buffer, adjust_for_invis_intang)
3204 (move_if_not_intangible, get_local_map, copy_intervals)
3205 (copy_intervals_to_string, compare_string_intervals)
3206 (set_intervals_multibyte_1): Use EMACS_INT for buffer positions
6e48267a 3207 and for interval tree size.
e79123aa
EZ
3208
3209 * intervals.h (traverse_intervals, split_interval_right)
3210 (split_interval_left, find_interval, offset_intervals)
3211 (graft_intervals_into_buffer, copy_intervals)
3212 (copy_intervals_to_string, move_if_not_intangible, get_local_map)
3213 (update_interval): Adjust prototypes.
3214
579c18d0
EZ
3215 * xdisp.c (check_point_in_composition, reconsider_clip_changes):
3216 Use EMACS_INT for buffer position variables and arguments.
3217
3218 * composite.c (get_composition_id, find_composition)
3219 (run_composition_function, compose_text)
3220 (composition_gstring_width, autocmp_chars)
3221 (composition_update_it, Ffind_composition_internal): Use EMACS_INT
3222 for buffer positions and string length variables and arguments.
3223
3224 * composite.h (get_composition_id, find_composition, compose_text)
3225 (composition_gstring_width): Adjust prototypes.
3226
3227 * editfns.c (Fformat): Use EMACS_INT for string size variables.
3228
bba3e508
SM
3229 * xdisp.c (store_mode_line_noprop, display_mode_element):
3230 Use EMACS_INT for string positions.
579c18d0
EZ
3231
3232 * intervals.c (get_property_and_range): Use EMACS_INT for buffer
3233 position arguments.
3234
3235 * intervals.h (get_property_and_range): Adjust prototype.
14162469
EZ
3236
3237 * character.c (parse_str_as_multibyte, str_as_multibyte)
3238 (parse_str_to_multibyte, str_to_multibyte, str_as_unibyte)
579c18d0 3239 (string_count_byte8, string_escape_byte8, c_string_width)
bba3e508
SM
3240 (strwidth, lisp_string_width, multibyte_chars_in_text):
3241 Use EMACS_INT for string length variables and arguments.
14162469
EZ
3242
3243 * character.h (parse_str_as_multibyte, str_as_multibyte)
579c18d0 3244 (parse_str_to_multibyte, str_to_multibyte, str_as_unibyte)
bba3e508
SM
3245 (c_string_width, strwidth, lisp_string_width):
3246 Adjust prototypes.
14162469 3247
579c18d0
EZ
3248 * font.c (font_intern_prop): Use EMACS_INT for string length
3249 variables.
3250
3251 * font.c (font_intern_prop): Use EMACS_INT for string length
3252 variables.
3253
14162469
EZ
3254 * fns.c (Fstring_as_multibyte): Use EMACS_INT for string length
3255 variables.
3256
3257 * alloc.c <total_string_size>: Declare as EMACS_INT, not int.
3258 (Fmake_string): Protect against too large strings.
3259 (live_string_p, live_cons_p, live_symbol_p, live_float_p)
3260 (live_misc_p): Use ptrdiff_t instead of int for pointer
3261 differences.
3262 (string_bytes, check_sblock, check_string_free_list)
3263 (allocate_string_data, compact_small_strings, Fmake_string)
3264 (Fmake_bool_vector, make_string, make_unibyte_string)
3265 (make_multibyte_string, make_string_from_bytes)
bba3e508
SM
3266 (make_specified_string_string, Fmake_list, Fmake_vector):
3267 Use EMACS_INT for string length variables and arguments.
14162469
EZ
3268 (find_string_data_in_pure, make_pure_string, make_pure_c_string)
3269 (Fpurecopy): Use EMACS_INT for string size.
3270 (mark_vectorlike, mark_char_table, mark_object): Use EMACS_UINT
3271 for vector size.
3272
3273 * lisp.h (make_string, make_unibyte_string, make_multibyte_string)
3274 (make_string_from_bytes, make_specified_string_string)
579c18d0
EZ
3275 (make_pure_string, string_bytes, check_point_in_composition):
3276 Adjust prototypes.
14162469 3277
c8a66ab8
EZ
32782010-09-22 Eli Zaretskii <eliz@gnu.org>
3279
3280 * editfns.c (Fsubst_char_in_region, Ftranslate_region_internal)
3281 (check_translation): Use EMACS_INT for buffer positions and
3282 length.
3283
3284 * undo.c (record_marker_adjustment, record_delete)
3285 (record_change, record_point, record_insert)
3286 (record_property_change, Fprimitive_undo): Use EMACS_INT for
3287 buffer positions.
3288
3289 * lisp.h (record_marker_adjustment, record_delete)
3290 (record_change, record_point, record_insert)
3291 (record_property_change, Fprimitive_undo): Adjust prototypes.
3292
38c54d9d
JB
32932010-09-22 Juanma Barranquero <lekktu@gmail.com>
3294 Eli Zaretskii <eliz@gnu.org>
3295
3296 * w32.c (get_emacs_configuration_options): Fix buffer overrun.
3297
413d18e7
EZ
32982010-09-22 Eli Zaretskii <eliz@gnu.org>
3299
3300 * minibuf.c (Fminibuffer_contents)
3301 (Fminibuffer_contents_no_properties)
3302 (Fminibuffer_completion_contents): Use EMACS_INT for minibuffer
3303 positions.
3304
3305 * keyboard.c (command_loop_1): Use EMACS_INT to compare point with
3306 mark.
3307
3308 * alloc.c (make_uninit_string, make_uninit_multibyte_string)
3309 (allocate_string_data): Accept EMACS_INT for string length.
3310
3311 * editfns.c (Ffield_string, Ffield_string_no_properties)
3312 (make_buffer_string, make_buffer_string_both, Fbuffer_substring)
3313 (Fbuffer_substring_no_properties, find_field, Fdelete_field)
3314 (Ffield_string, Ffield_string_no_properties, Ffield_beginning)
3315 (Ffield_end): Use EMACS_INT for buffer positions.
3316
3317 * insdel.c (prepare_to_modify_buffer): Use EMACS_INT to compare
3318 point with mark.
3319
3320 * lisp.h (allocate_string_data, make_uninit_string)
3321 (make_uninit_multibyte_string, make_buffer_string)
3322 (make_buffer_string_both): Adjust prototypes.
3323
4b9832a6
CY
33242010-09-22 Chong Yidong <cyd@stupidchicken.com>
3325
3326 * xml.c: Switch to GNU indentation.
3327 (make_dom): Change parse tree format to match xml.el.
3328 (Fxml_parse_html_string_internal): Rename from html-parse-string.
3329 (Fxml_parse_string_internal): Rename from xml-parse-string.
3330
86282aab
KH
33312010-09-22 Kenichi Handa <handa@m17n.org>
3332
3333 * xdisp.c (compute_stop_pos): Call composition_compute_stop_pos
3334 only if we are not at a composition.
3335 (set_iterator_to_next): Give it->end_charpos to
3336 composition_compute_stop_pos.
3337 (set_iterator_to_next, next_element_from_buffer): Likewise.
3338
3339 * dispnew.c (buffer_posn_from_coords): Fix position when the
3340 current display element is a grapheme cluster in bidi-reordered
3341 region.
3342
840b985a
AR
33432010-09-21 Ari Roponen <ari.roponen@gmail.com> (tiny change)
3344
3345 * doc.c (Fsnarf_documentation): Use memmove instead of memcpy as
3346 the regions may overlap.
3347
5bc88f4b
JB
33482010-09-21 Juanma Barranquero <lekktu@gmail.com>
3349
3350 * makefile.w32-in ($(BLD)/sysdep.$(O)): Update dependencies.
3351
92bc9a36
DN
33522010-09-21 Dan Nicolaescu <dann@ics.uci.edu>
3353
d19e096e
DN
3354 * emacs.c: Do not include sys/ioctl.h, not needed.
3355
92bc9a36
DN
3356 * doprnt.c: Do not include stdlib.h, config.h does it.
3357 Move #include before macro definition.
3358
15f844ac
DN
33592010-09-20 Dan Nicolaescu <dann@ics.uci.edu>
3360
48e24408
DN
3361 * Makefile.in (temacs): Link using $(CC) not $(LD).
3362 (LD_FIRSTFLAG): Define using autoconf.
3363 (LD): Remove.
3364
65539506
DN
3365 Remove HAVE_TERMIOS definitions.
3366 * s/usg5-4-common.h (HAVE_TERMIOS):
3367 * s/template.h (HAVE_TERMIOS):
3368 * s/gnu-linux.h (HAVE_TERMIOS):
3369 * s/darwin.h (HAVE_TERMIOS):
3370 * s/cygwin.h (HAVE_TERMIOS):
3371 * s/bsd-common.h (HAVE_TERMIOS):
3372 * s/aix4-2.h (HAVE_TERMIOS):
3373 * s/hpux10-20.h (HAVE_TERMIOS): Do not define, it is assumed
3374 defined on all non-MS platforms.
3375 (HAVE_PSTAT_GETDYNAMIC): Do not define, autoconf does it.
3376
15f844ac
DN
3377 * xterm.c (xt_action_hook): Use const.
3378
7d701334
JB
33792010-09-20 Juanma Barranquero <lekktu@gmail.com>
3380
3381 Don't make W32 code conditional on HAVE_SOCKETS, it's always defined.
3382 * w32.c: Remove top-level uses of #ifdef HAVE_SOCKETS.
3383 (gethostname) [!HAVE_SOCKETS]: Remove.
3384 (SOCK_REPLACE_HANDLE): Remove macro.
3385 (socket_to_fd, sys_close, _sys_read_ahead, sys_read, sys_write)
3386 (term_ntproc, init_ntproc): Don't conditionalize on HAVE_SOCKETS.
3387 * w32proc.c: Remove top-level uses of #ifdef HAVE_SOCKETS.
3388 (syms_of_ntproc): Don't conditionalize on HAVE_SOCKETS.
3389
f3ec267a
EZ
33902010-09-18 Eli Zaretskii <eliz@gnu.org>
3391
3392 * deps.mk (xml.o): Add dependencies.
3393
93acd23d
JB
3394 * xdisp.c (Fcurrent_bidi_paragraph_direction):
3395 Call bidi_paragraph_init with NO_DEFAULT_P non-zero. (Bug#7038)
bea4f10c
EZ
3396
3397 * bidi.c (bidi_paragraph_init): Accept an additional argument
3398 NO_DEFAULT_P; all callers changed. If NO_DEFAULT_P is non-zero,
3399 search back until a paragraph with a strong directional character
3400 is found, and use that to determine paragraph's base direction.
3401
3402 * dispextern.h (bidi_paragraph_init): Update prototype.
3403
69e847be
EZ
34042010-09-17 Eli Zaretskii <eliz@gnu.org>
3405
3406 * w32.c (_PROCESS_MEMORY_COUNTERS_EX): Don't define with versions
3407 of w32api >= 3.15. (Bug#6989)
3408
283357a7
LMI
34092010-09-17 Lars Magne Ingebrigtsen <larsi@gnus.org>
3410
3411 * process.c (wait_reading_process_output): Don't message about
3412 accept-process-output unless the time limit really is zero.
3413
4ddb20d6
SM
34142010-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
3415
3416 * frame.c (Ftool_bar_pixel_width): YAILOM (Yet another
3417 int/Lisp_Object mixup).
3418
e24ad6dd
J
34192010-09-17 Jan Djärv <jan.h.d@swipnet.se>
3420
3421 * keyboard.c (parse_tool_bar_item): For QClabel, set TOOL_BAR_ITEM_LABEL
3422 not HELP.
3423
fb0cf781
J
34242010-09-17 Stephen Berman <stephen.berman@gmx.net>
3425
3426 * frame.c (Ftool_bar_pixel_width): New function to expose tool
3427 bar's pixel width to Lisp (Bug#7048).
3428
4ddb20d6
SM
34292010-09-14 Juanma Barranquero <lekktu@gmail.com>
3430
3431 * cmds.c (syms_of_cmds) <post-self-insert-hook>: Fix typos in docstring.
fb0cf781 3432
318a04c6
J
34332010-09-17 Jan Djärv <jan.h.d@swipnet.se>
3434
3435 * gtkutil.c (xg_pack_tool_bar): Call gtk_handle_box_set_handle_position
3436 with argument top/left if tool bar is vertical/horizontal (Bug#7051).
3437
78a21772
KH
34382010-09-17 Kenichi Handa <handa@m17n.org>
3439
3440 * ftfont.c (ftfont_check_otf): Fix previous change.
3441
fa3f6039
KH
34422010-09-14 Kenichi Handa <handa@m17n.org>
3443
3444 * ftfont.c (ftfont_check_otf): Fix the case of checking just
3445 existence of GSUB or GPOS.
3446
2b5491fa
JB
34472010-09-14 Juanma Barranquero <lekktu@gmail.com>
3448
3449 * cmds.c (syms_of_cmds) <post-self-insert-hook>: Fix typos in docstring.
3450
c97c655f
LMI
34512010-09-14 Lars Magne Ingebrigtsen <larsi@gnus.org>
3452
ef1b0ba7 3453 * xml.c (parse_buffer): Rename to parse_string(), since that's
c97c655f
LMI
3454 what it does.
3455 (parse_string): Return nil when the document can't be parsed.
3456
6664fc59 34572010-09-14 Jan Djärv <jan.h.d@swipnet.se>
5f61a25c
J
3458
3459 * xterm.c (get_current_vm_state): New function.
3460 (do_ewmh_fullscreen): Call get_current_vm_state and compare with
3461 want_fullscreen so set_wm_state calls are few (Bug#7013).
3462 (x_handle_net_wm_state): Move code to get_current_vm_state and
3463 call that function.
3464
6664fc59 34652010-09-14 Courtney Bane <emacs-bugs-7626@cbane.org> (tiny change)
65b3d997
A
3466
3467 * term.c (tty_set_terminal_modes): Don't initialize twice (bug#7002).
3468
6664fc59 34692010-09-14 Kenichi Handa <handa@m17n.org>
a552b35a
KH
3470
3471 * coding.c (encode_coding_iso_2022): Don't optimize for ASCII if
3472 we may use designation or locking-shift.
3473
6664fc59 34742010-09-14 Kenichi Handa <handa@m17n.org>
396475b7
KH
3475
3476 * coding.c (detect_coding_emacs_mule): Fix checking of multibyte
3477 sequence when the source is multibyte.
3478
1da70e99
AS
34792010-09-14 Andreas Schwab <schwab@linux-m68k.org>
3480
6664fc59
JB
3481 * xml.c (Fxml_parse_string, Fxml_parse_string): Revert last change.
3482 Don't make first argument optional. Doc fix.
1da70e99 3483
26632d8d
LMI
34842010-09-14 Leo <sdl.web@gmail.com> (tiny change)
3485
3486 * xml.c (Fxml_parse_string, Fhtml_parse_string): Fix up the
3487 parameters for the doc string.
3488
21fa8e37
LMI
34892010-09-12 Lars Magne Ingebrigtsen <larsi@gnus.org>
3490
3491 * xml.c (Fhtml_parse_string, Fxml_parse_string): Mention BASE-URL.
3492
5616cc54
SM
34932010-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
3494
3495 * fns.c (Fy_or_n_p): Move to lisp/subr.el.
3496 (syms_of_fns): Don't defsubr Sy_or_n_p.
3497 * lisp.h: Don't declare Fy_or_n_p.
3498 * fileio.c (barf_or_query_if_file_exists): Fy_or_n_p -> y-or-n-p.
3499
381408e2
LMI
35002010-09-09 Lars Magne Ingebrigtsen <larsi@gnus.org>
3501
3502 * xml.c (Fxml_parse_buffer): New function to parse XML files.
3503
35042010-09-08 Lars Magne Ingebrigtsen <larsi@gnus.org>
3505
3506 * xml.c: New file.
3507 (Fhtml_parse_buffer): New function to interface to the libxml2
3508 html parsing function.
3509
733946e7
JB
35102010-09-05 Juanma Barranquero <lekktu@gmail.com>
3511
3512 * biditype.h: Regenerate.
3513
7574650a
AS
35142010-09-04 Andreas Schwab <schwab@linux-m68k.org>
3515
3516 * nsimage.m (ns_load_image): Check argument types.
3517
3518 * image.c: Remove all uses of gcpro.
3519 (xpm_load): Check all lisp types.
3520 (pbm_load): Likewise.
3521 (png_load): Likewise.
3522 (jpeg_load): Likewise.
3523 (tiff_load): Likewise.
3524 (gif_load): Likewise.
3525 (imagemagick_load_image): Likewise.
3526 (imagemagick_load): Likewise.
3527 (svg_load): Likewise.
3528 (gs_load): Likewise.
3529
6e6b8e25
EZ
35302010-09-04 Eli Zaretskii <eliz@gnu.org>
3531
bba3e508
SM
3532 * w32uniscribe.c (uniscribe_shape): Update commentary.
3533 Don't try to reorder grapheme clusters, since LGSTRING should always
6e6b8e25
EZ
3534 hold them in the logical order.
3535 (uniscribe_encode_char, uniscribe_shape): Force ScriptShape to
3536 return glyph codes in the logical order.
3537
dbfe4532
AS
35382010-09-04 Andreas Schwab <schwab@linux-m68k.org>
3539
3540 * image.c (imagemagick_image_p): Replace bcopy by memcpy.
b7d187f8 3541 (imagemagick_load_image): Fix type mismatch.
5e5992c2 3542 (Fimagemagick_types): Likewise. Doc fix.
dbfe4532 3543
6d7cc563
JD
35442010-09-02 Jan Djärv <jan.h.d@swipnet.se>
3545
3546 * xterm.h (struct dpyinfo): Remove cut_buffers_initialized.
3547
3548 * xterm.c (x_term_init): Don't set dpyinfo->cut_buffers_initialized.
3549
3550 * xselect.c: Remove declaration of cut-buffer objects and functions.
3551 (symbol_to_x_atom): Remove mapping to XA_CUT_BUFFERn.
3552 (x_atom_to_symbol): Remove mapping to QCUT_BUFFERn.
3553 (Fx_get_cut_buffer_internal, Fx_store_cut_buffer_internal)
3554 (Fx_rotate_cut_buffers_internal): Remove.
3555 (syms_of_xselect): Remove defsubr of above.
3556 Remove intern of QCUT_BUFFERn.
3557
8f4e9110
SM
35582010-09-01 Stefan Monnier <monnier@iro.umontreal.ca>
3559
3560 * cmds.c (Vblink_paren_function): Remove.
3561 (internal_self_insert): Make it insert N chars at a time.
3562 Don't call blink-paren-function.
3563 (Fself_insert_command): Adjust accordingly.
3564 (syms_of_cmds): Don't declare blink-paren-function.
3565
d419e1d9
KH
35662010-08-31 Kenichi Handa <handa@m17n.org>
3567
3568 * dispextern.h (FACE_FOR_CHAR): Use an ASCII face for 8-bit
3569 characters.
3570
3571 * term.c (encode_terminal_code): Fix the previous change.
5616cc54
SM
3572 (produce_glyphs): Don't set it->char_to_display here.
3573 Don't handle unibyte-display-via-language-environment here.
d419e1d9
KH
3574 (produce_special_glyphs): Set temp_it.char_to_display before
3575 calling produce_glyphs.
3576
3577 * xdisp.c (get_next_display_element): Set it->char_to_display
3578 here. Convert all 8-bit bytes from unibyte buffer/string to 8-bit
3579 characters.
3580 (get_overlay_arrow_glyph_row): Set it.char_to_display too before
3581 calling PRODUCE_GLYPHS.
3582 (append_space_for_newline): Save and store it->char_to_display.
3583 Set it->char_to_display before calling PRODUCE_GLYPHS.
3584 (extend_face_to_end_of_line): Set it->char_to_display before
3585 calling PRODUCE_GLYPHS.
3586 (get_glyph_face_and_encoding): Set the glyph code an 8-bit
3587 character to its byte value.
3588 (get_char_glyph_code): New function.
3589 (produce_stretch_glyph): Set it2.char_to_display too before
3590 calling x_produce_glyphs.
3591 (x_produce_glyphs): Simplify by using the same code for ASCII and
65b3d997
A
3592 non-ASCII characters. Don't set it->char_to_display here.
3593 Don't handle unibyte-display-via-language-environment here. For a
2b5491fa 3594 character of no glyph, use font->space_width instead of FONT_WIDTH.
d419e1d9 3595
b819f760
SM
35962010-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
3597
3598 * keyboard.c (Fwindow_system): Fix compilation for USE_LISP_UNION_TYPE.
3599
07fa68a7
CY
36002010-08-31 Chong Yidong <cyd@stupidchicken.com>
3601
3602 * keyboard.c (command_loop_1): Don't call x-set-selection on tty.
3603
cd196f12
SM
36042010-08-30 Stefan Monnier <monnier@iro.umontreal.ca>
3605
3606 * marker.c (Fcopy_marker): Make the first arg optional.
3607
49a752bb
KH
36082010-08-30 Kenichi Handa <handa@m17n.org>
3609
3610 * composite.c (composition_update_it): Fix computing of
3611 cmp_it->width.
3612
769ae9e1
KH
36132010-08-29 Kenichi Handa <handa@m17n.org>
3614
9e69cb05 3615 * term.c (encode_terminal_code): Encode byte chars to the
5616cc54 3616 corresponding bytes.
9e69cb05 3617
4520b858
J
36182010-08-29 Jan Djärv <jan.h.d@swipnet.se>
3619
3620 * nsterm.m (ns_draw_window_cursor): Draw BAR_CURSOR correct for R2L.
3621
fe50eb41
KH
36222010-08-26 Kenichi Handa <handa@m17n.org>
3623
3624 * xdisp.c (compute_stop_pos): Pay attention to bidi scan direction
3625 on calling composition_compute_stop_pos.
3626
f6aa6ec6
KH
36272010-08-25 Kenichi Handa <handa@m17n.org>
3628
9dfdbc0a
KH
3629 * fontset.c (reorder_font_vector): Prefer a font-spec specifying
3630 :otf.
3631
f6aa6ec6
KH
3632 * composite.c (composition_compute_stop_pos): Don't break
3633 composition at PT.
3634 (composition_reseat_it): Likewise. Fix calculation of character
3635 position starting a composition.
3636 (Fcomposition_get_gstring): Don't limit the number of components
3637 for automatic composition.
3638
ff94e32c
KH
36392010-08-25 Kenichi Handa <handa@m17n.org>
3640
3641 * composite.c (composition_compute_stop_pos): In forward search,
3642 pay attention to the possibility that some character after ENDPOS
3643 will be composed with charactrs before ENDPOS.
3644
1c409d0b
CY
36452010-08-24 Chong Yidong <cyd@stupidchicken.com>
3646
3647 * keyboard.c (command_loop_1): Don't clobber primary selection
3648 during handle-switch-frame (Bug#6872).
3649
0c372655
MA
36502010-08-23 Michael Albinus <michael.albinus@gmx.de>
3651
3652 * dbusbind.c: Accept UNIX domain sockets as bus address.
3653 (Fdbus_close_bus): New function.
3654 (Vdbus_registered_buses): New variable.
3655 (xd_initialize): Implement string as bus address.
3656 (Fdbus_init_bus): Add bus to Vdbus_registered_buses).
3657 (Fdbus_get_unique_name, Fdbus_call_method)
3658 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
3659 (Fdbus_method_error_internal, Fdbus_send_signal)
3660 (Fdbus_register_signal, Fdbus_register_method): Remove bus type
3661 check. This is done in xd_initialize_bus. Adapt doc string, if
3662 necessary.
3663 (xd_pending_messages, xd_read_queued_messages): Loop over buses in
3664 Vdbus_registered_buses.
3665 (Vdbus_registered_objects_table): Create hash.
3666
7133b7ee
JL
36672010-08-22 Juri Linkov <juri@jurta.org>
3668
3669 * keyboard.c (Fexecute_extended_command): Move reading a command name
3670 with `completing-read' to a new Elisp function `read-extended-command'.
3671 Call it to read a command to `function' (bug#5364, bug#5214).
3672
198a7a97
CY
36732010-08-22 Chong Yidong <cyd@stupidchicken.com>
3674
3675 * emacs.c (main): Remove handling of --unibyte arg (Bug#6886).
3676
b0126eac 36772010-08-22 Andreas Schwab <schwab@linux-m68k.org>
b72e0717
AS
3678
3679 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA_LISP
3680 instead of SAFE_ALLOCA.
3681
b0126eac 36822010-08-22 Chong Yidong <cyd@stupidchicken.com>
3a7a9129
CY
3683
3684 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA
3685 (Bug#6214).
3686
b0126eac 36872010-08-22 Jan Djärv <jan.h.d@swipnet.se>
983b8302
J
3688
3689 * doc.c (Fsnarf_documentation): Set skip_file only if p[1] is S.
3690
b0126eac
CY
36912010-08-22 Jan Djärv <jan.h.d@swipnet.se>
3692
3693 * doc.c (Fsnarf_documentation): Initialize skip_file before
3694 build-files test.
3695
692f3ddc 36962010-08-22 Peter O'Gorman <pogma@thewrittenword.com> (tiny change)
b0126eac 3697
692f3ddc
JB
3698 * s/hpux10-20.h (HAVE_TERMIOS, NO_TERMIO, ORDINARY_LINK):
3699 New definitions.
b0126eac
CY
3700 (HAVE_TERMIO): Remove.
3701
5f2f0bc1
EZ
37022010-08-22 Eli Zaretskii <eliz@gnu.org>
3703
b613941b
EZ
3704 * deps.mk (sysdep.o, msdos.o): Depend on sysselect.h.
3705
a583bbef
EZ
3706 * sysselect.h [WINDOWSNT]: Don't define the FD_* and select stuff
3707 for w32.
3708
3709 * s/ms-w32.h (HAVE_SYS_TIMEB_H): Don't #undef HAVE_SYS_SELECT_H,
3710 it's done in nt/config.nt.
3711
3712 * makefile.w32-in ($(BLD)/sysdep.$(O)): Depend on sysselect.h.
3713
5f2f0bc1
EZ
3714 * unexcoff.c (report_error, make_hdr, write_segment)
3715 (copy_text_and_data, copy_sym, mark_x, adjust_lnnoptrs, unexec):
3716 Convert argument lists and prototypes to ANSI C.
3717 (make_hdr, write_segment): Remove unused variables.
3718 (unexec): Remove commented-out line. Initialize `new' to shut up
3719 compiler warnings.
3720
a7ebc409
DN
37212010-08-22 Dan Nicolaescu <dann@ics.uci.edu>
3722
3723 Simplify termio code.
3724 All non-MSDOS non-WINDOWSNT platforms define HAVE_TERMIOS, so
3725 HAVE_TERMIO code is obsolete.
3726 Replace HAVE_TERMIOS conditionals with !DOS_NT.
3727 * systty.h: Do not define HAVE_TCATTR.
3728 Remove HAVE_TERMIO, HAVE_LTCHARS and HAVE_TCHARS code.
3729 Do not define EMACS_HAVE_TTY_PGRP. Only define
3730 EMACS_GET_TTY_PGRP for !DOS_NT.
3731 * sysdep.c: Include sysselect.h unconditionally. Do not include
bba3e508
SM
3732 sys/ioctl.h and termios.h, systty.h does it.
3733 Use HAVE_SYS_UTSNAME_H instead of USG as an include guard.
a7ebc409
DN
3734 (init_baud_rate): Remove HAVE_TERMIO code.
3735 (child_setup_tty): Remove HAVE_TERMIO code.
3736 (emacs_get_tty, emacs_set_tty): Remove HAVE_TERMIO, HAVE_TCHARS
3737 and HAVE_LTCHARS code. Use !DOS_NT instead of HAVE_TCATTR.
3738 (new_ltchars, new_tchars): Remove, unused.
3739 (init_sys_modes): Remove HAVE_TERMIO, HAVE_TCHARS and HAVE_LTCHARS
bba3e508
SM
3740 code. Remove special casing for __mips__, it was a no-op.
3741 Remove HAVE_TCATTR conditional, it is implied by HAVE_TERMIOS.
a7ebc409
DN
3742 (init_sys_modes): Remove HPUX special case.
3743 * process.c: Include stdlib.h unconditionally. Do not include
3744 fcntl.h, systty.h does it. Remove conditional code for
3745 HAVE_SERIAL, it is always true.
3746 (process_send_signal): Remove HAVE_TERMIOS conditional, it's
3747 always true when SIGNALS_VIA_CHARACTERS is true.
3748 (Fcontinue_process, Fprocess_send_eof): Simplify conditionals:
3749 !WINDOWSNT means HAVE_TERMIOS.
3750 (create_process): Remove HAVE_TERMIOS, it's inside a HAVE_PTYS
3751 conditional, which is true for all HAVE_TERMIOS systems.
3752 * keyboard.c (init_keyboard): Do not use HAVE_TERMIO, use !DOS_NT
3753 instead of HAVE_TERMIOS.
3754 * emacs.c (shut_down_emacs): Use !defined DOS_NT instead of
3755 EMACS_HAVE_TTY_PGRP.
3756 * callproc.c (child_setup): Move EMACS_SET_TTY_PGRP use to the
3757 non-MSDOS, non-WINDOWSNT code, it's only defined for such systems
3758 anyway.
3759
914f049b 37602010-08-21 Eli Zaretskii <eliz@gnu.org>
40629f17
EZ
3761
3762 * dispnew.c (buffer_posn_from_coords): Fix off-by-one error in
3763 mirroring pixel positions.
3764
d931da8c
DN
37652010-08-20 Dan Nicolaescu <dann@ics.uci.edu>
3766
b5c76d0c
DN
3767 * alloc.c (malloc_sbrk_used, malloc_sbrk_unused): Remove,
3768 write only.
3769 (init_alloc_once): Remove writes to malloc_sbrk_unused, and
3770 malloc_sbrk_used, nothing uses them.
3771
74815588
DN
3772 * puresize.h: Remove code assuming PNTR_COMPARISON_TYPE is not
3773 defined, unconditionally defined in lisp.h.
3774
f5817d1c
DN
3775 * term.c: Do not include <termios.h>, systty.h does it.
3776
d931da8c
DN
3777 * s/unixware.h (HAVE_TCATTR):
3778 * s/aix4-2.h (HAVE_TCATTR): Remove definitions, not needed.
3779 systty.h defines it when HAVE_TERMIOS is defined.
3780
ff2de6d2 37812010-08-20 Eli Zaretskii <eliz@gnu.org>
491a1546 3782
b43c883c 3783 * dispnew.c (buffer_posn_from_coords): Fix last change for text
00c53994 3784 terminals: add one-character offset for R2L lines.
b43c883c 3785
491a1546
EZ
3786 * emacs.c <emacs_version>: Add a comment regarding
3787 msdos/mainmake.v2's dependency on the syntax of this declaration.
3788
2396cbba
EZ
37892010-08-20 Eli Zaretskii <eliz@gnu.org>
3790
3791 * dispnew.c (buffer_posn_from_coords): Fix calculation of buffer
3792 position for R2L lines by mirroring the pixel position wrt the
3793 text are box. Improve commentary.
3794
7df6150a
AS
37952010-08-20 Andreas Schwab <schwab@linux-m68k.org>
3796
3797 * image.c (imagemagick_clear_image): Remove debugging output.
3798
a2e5caf7
SM
37992010-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
3800
3801 * cmds.c (Vself_insert_face, Vself_insert_face_command): Remove.
3802 (Qpost_self_insert_hook, Vpost_self_insert_hook): New vars.
3803 (internal_self_insert): Run Qpost_self_insert_hook rather than handle
3804 self-insert-face.
3805 (syms_of_cmds): Initialize the new vars.
3806
20d60baf
JR
38072010-08-19 Jason Rumney <jasonr@gnu.org>
3808
cc477da7
JR
3809 * w32menu.c (set_frame_menubar): Remove call to undefined function.
3810
20d60baf
JR
3811 * w32fns.c (w32_wnd_proc): Don't check context before initializing.
3812
2c0ac867
J
38132010-08-19 Jan Djärv <jan.h.d@swipnet.se>
3814
3815 * nsselect.m (nxatoms_of_nsselect): Use "Selection" and "Secondary".
3816
93352106
EZ
38172010-08-18 Eli Zaretskii <eliz@gnu.org>
3818
3819 * xterm.c (x_draw_bar_cursor):
3820 * w32term.c (x_draw_bar_cursor): If the character under cursor is
3821 R2L, draw the bar cursor on its right rather than on its left.
3822
c785836d
SM
38232010-08-18 Stefan Monnier <monnier@iro.umontreal.ca>
3824
0193499f
SM
3825 * eval.c (Fdefmacro): Only obey one declaration.
3826
c785836d
SM
3827 * casefiddle.c (casify_region): Setup gl_state.
3828
9cb728a5
J
38292010-08-18 Jan Djärv <jan.h.d@swipnet.se>
3830
3831 * nsterm.m (ns_define_frame_cursor): Call x_update_cursor (Bug#6868).
3832
e1e18511
J
38332010-08-18 Jan Djärv <jan.h.d@swipnet.se>
3834
1d77b63e 3835 * gtkutil.c (update_frame_tool_bar): Literal strings are const char*.
e1e18511 3836
64cb6c78
J
38372010-08-18 David De La Harpe Golden <david@harpegolden.net>
3838
3839 * nsselect.m (QCLIPBOARD, NXPrimaryPboard): Define.
3840 (symbol_to_nsstring): Map QCLIPBOARD => NSGeneralPboard,
3841 QPRIMARY => NXPrimaryPboard.
3842 (ns_string_to_symbol): NSGeneralPboard => QCLIPBOARD,
3843 NXPrimaryPboard => QPRIMARY.
3844 (nxatoms_of_nsselect): NXPrimaryPboard = PrimarySelection,
3845 NXSecondaryPboard = SecondarySelection.
3846 (syms_of_nsselect): Intern QCLIPBOARD (Bug#6677).
3847
0c9b8993
GM
38482010-08-18 Joakim Verona <joakim@verona.se>
3849
3850 * image.c: Add support for ImageMagick. When HAVE_IMAGEMAGICK is
3851 defined:
3852 (imagemagick_image_p): New function to test for ImageMagic image.
3853 (imagemagick_load): New function to load ImageMagick image.
3854 (imagemagick_load_image): New function, helper for imagemagick_load.
3855 (imagemagick-types): New function.
3856 (Qimagemagick): New Lisp_object.
3857 (imagemagick-render-type): New variable, decides which renderer to use.
ccd80618 3858
c3554f68
SM
38592010-08-17 Stefan Monnier <monnier@iro.umontreal.ca>
3860
3861 * gtkutil.c (update_frame_tool_bar): Don't assume TOOL_BAR_ITEM_LABEL
3862 is a string.
3863
1ff2e434
J
38642010-08-17 Jan Djärv <jan.h.d@swipnet.se>
3865
3866 * nsfns.m (ns_frame_parm_handlers): Add a slot for the
3867 x_set_tool_bar_position handler.
3868
0cc56427
EZ
38692010-08-17 Eli Zaretskii <eliz@gnu.org>
3870
3871 * w32fns.c <w32_frame_parm_handlers>: Add a slot for the
3872 x_set_tool_bar_position handler, needed to support changes from
3873 2010-07-29T16:49:59Z!jan.h.d@swipnet.se for positioning the tool bar. (Bug#6796)
3874
e45a249b
JD
38752010-08-16 Jan Djärv <jan.h.d@swipnet.se>
3876
921242c6
J
3877 * nsselect.m: include keyboard.h for QPRIMARY, remove its
3878 declaration (Bug#6863).
573d150b 3879 (syms_of_nsselect): Don't intern QPRIMARY.
921242c6 3880
e45a249b
JD
3881 * xselect.c: Remove declaration of QPRIMARY (Bug#6864).
3882
3883 * keyboard.h (QPRIMARY): Declare (Bug#6864).
3884
7c23dd44
CY
38852010-08-16 Chong Yidong <cyd@stupidchicken.com>
3886
3887 * keyboard.c (command_loop_1): Avoid setting selection twice,
3888 since it's done in deactivate-mark as well.
3889 (Vselect_active_regions): Change default to t. Replace `lazy'
3890 with non-default value `only', meaning only set PRIMARY for
3891 temporarily active regions.
3892
3893 * insdel.c (prepare_to_modify_buffer): Handle `only' value of
3894 select-active-regions.
3895
0005830c
J
38962010-08-15 Jan Djärv <jan.h.d@swipnet.se>
3897
3898 * keyboard.c (parse_tool_bar_item): Put in a bad label if :label
3899 isn't a string.
3900
603dfc72
AS
39012010-08-15 Andreas Schwab <schwab@linux-m68k.org>
3902
3903 * keyboard.c (parse_tool_bar_item): Avoid excessive use of strlen.
3904
c25ce9d0
J
39052010-08-15 Jan Djärv <jan.h.d@swipnet.se>
3906
c3554f68
SM
3907 * keyboard.c (parse_tool_bar_item): malloc buf.
3908 Set TOOL_BAR_ITEM_LABEL to empty string if not set to
3909 new_lbl (Bug#6855).
c25ce9d0 3910
5872c762
EZ
39112010-08-14 Eli Zaretskii <eliz@gnu.org>
3912
b236615c
EZ
3913 * xterm.c (x_draw_stretch_glyph_string):
3914 * w32term.c (x_draw_stretch_glyph_string): In R2L rows, display
3915 the cursor on the right edge of the stretch glyph.
3916
c3554f68
SM
3917 * xdisp.c (window_box_right_offset, window_box_right):
3918 Fix commentary.
b236615c 3919
5872c762
EZ
3920 * xdisp.c (Fcurrent_bidi_paragraph_direction): Fix paragraph
3921 direction when point is inside a run of whitespace characters.
3922
3923 * bidi.c (bidi_at_paragraph_end): Remove obsolete comment.
3924
e66f9a1b
JR
39252010-08-14 Jason Rumney <jasonr@gnu.org>
3926
3927 * keyboard.c (lispy_function_keys): Do not define VK_PACKET (bug#4836)
3928
79d6f59e
CY
39292010-08-14 Chong Yidong <cyd@stupidchicken.com>
3930
3931 * fns.c (Fmake_hash_table): Doc fix (Bug#6851).
3932
1c9b4129
JR
39332010-08-13 Jason Rumney <jasonr@gnu.org>
3934
3935 * w32menu.c (simple_dialog_show): Use unicode message box if available.
3936 (MessageBoxW_Proc): New function typedef.
3937 (unicode-message-box): New function pointer.
3938 (globals_of_w32menu): Import it from user32.dll. (Bug#5629)
3939
2b4e6277
J
39402010-08-13 Jan Djärv <jan.h.d@swipnet.se>
3941
3942 * frame.h (Qtool_bar_position): Declare.
3943
3944 * xfns.c (Fx_create_frame): Call x_default_parameter for
3945 Qtool_bar_position.
3946
94c97d85
EZ
39472010-08-13 Eli Zaretskii <eliz@gnu.org>
3948
8ee81892
EZ
3949 * unexcoff.c: Remove the parts used when "emacs" is not defined.
3950 (report_error, report_error_1): Ditto.
3951 (write_segment): Remove "#if 0" unused code.
3952 (make_hdr): Remove code that was "#ifndef NO_REMAP" before
3953 NO_REMAP was removed (in 2010-07-29T03:25:08Z!dann@ics.uci.edu).
3954 (start_of_text): Remove unused function (was used only if NO_REMAP
3955 was NOT defined).
3956
891ef8f7
EZ
3957 * msdos.c (IT_set_face): Fix format string to match argument
3958 types.
3959 (IT_write_glyphs, IT_note_mode_line_highlight)
3960 (IT_set_frame_parameters): Remove unused variables.
3961 (x_set_menu_bar_lines): Declare set_menu_bar_lines.
3962 (IT_set_terminal_modes): Disambiguate expression in if clause.
3963 (Fmsdos_remember_default_colors): Return Qnil.
3964 (IT_set_frame_parameters): Add parens to disambiguate boolean
3965 expression for logging the cursor type to termscript.
3966 (keyboard_layout_list, keypad_translate_map)
3967 (grey_key_translate_map): Add braces in inner initializers.
3968 (dos_rawgetc): Add parens in condition for mouse-3 button-press.
3969 (dos_rawgetc): Remove unused label.
3970 (XMenuActivate): Add braces to remove ambiguous `else'.
3971 (dos_ttraw): Always return a value.
3972 (spawnve): Declare.
3973 (run_msdos_command): Cast 3rd arg of spawnve to "char **".
3974
3975 * dosfns.h (x_set_title): Declare.
3976
3977 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
3978 Remove unused variables.
3979
3980 * dosfns.c (Fint86, Fdos_memget, Fdos_memput): Remove unused
3981 variables.
3982 (init_dosfns): Declare get_lim_data.
3983 (system_process_attributes): Declare Fget_internal_run_time.
3984
38e41e0e
EZ
3985 * xmenu.c (xmenu_show) [!USE_X_TOOLKIT && !USE_GTK]: Fix argument
3986 list to be consistent with menu.h.
3987
94c97d85
EZ
3988 * w32menu.c (add_menu_item, name_is_separator): Shut up compiler
3989 warnings due to mixing of "char *" and "const char *".
3990
c5683ceb
SM
39912010-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
3992
3993 Introduce a new comment style "c" flag.
3994 * syntax.c (SYNTAX_FLAGS_COMMENT_STYLEB)
3995 (SYNTAX_FLAGS_COMMENT_STYLEC): New macros.
3996 (SYNTAX_FLAGS_COMMENT_STYLE): Use them, add an argument.
3997 (syntax_prefix_flag_p): New function.
3998 (Fstring_to_syntax): Understand new "c" flag.
3999 (Finternal_describe_syntax_value): Recognize new flag; use the
4000 SYNTAX_FLAGS_* macros.
4001 (scan_sexps_forward, Fparse_partial_sexp): Change representation of
4002 comment style to accomodate the new styles.
4003 (back_comment, forw_comment, Fforward_comment, scan_lists)
4004 (scan_sexps_forward): Update code to obey the new comment style flag.
4005
4006 * syntax.h: Move SYNTAX_FLAGS_FOO() macros to syntax.c.
4007
4008 * casefiddle.c (casify_region): Use the new syntax_prefix_flag_p.
4009
7aee76f4
J
40102010-08-11 Jan Djärv <jan.h.d@swipnet.se>
4011
3a46642b
J
4012 * xfns.c (x_defined_color): If USE_GTK, call xg_check_special_colors
4013 first.
94dff98f 4014 (Fx_hide_tip): Check FRAME_LIVE_P (f) before calling xg_hide_tooltip.
3a46642b
J
4015
4016 * gtkutil.h (xg_check_special_colors): Declare.
4017
4018 * gtkutil.c (xg_check_special_colors, style_changed_cb): New functions.
4019 (xg_create_frame_widgets): Connect theme name changes to
4020 style_changed_cb.
4021
42ca4633
J
4022 * xterm.c (emacs_class): New char[] for EMACS_CLASS.
4023 (xim_open_dpy, xim_initialize, xim_close_dpy): Use emacs_class.
4024 (x_term_init): Use char[] display_opt and name_opt instead of
93acd23d 4025 string literal. file is const char*.
42ca4633
J
4026
4027 * xsmfns.c (NOSPLASH_OPT): Change to char[].
4028 (smc_save_yourself_CB): Do xstrdup on all ->type and ->name for
4029 props. Free them at the end.
4030
4031 * xselect.c (Fx_get_atom_name): Use char empty[] instead of literal "".
4032
c5683ceb
SM
4033 * xrdb.c (get_system_app): Make path const and use char *p for
4034 non-const char.
42ca4633
J
4035
4036 * xmenu.c (Fx_popup_dialog): error_name is const char*.
93acd23d 4037 (xmenu_show): error parameter is const char **. pane_string is const
42ca4633
J
4038 char *.
4039 (button_names): Is const char *.
4040 (xdialog_show): error_name and pane_string is const.
4041
4042 * process.h (synch_process_death): Is const char*.
4043
4044 * w32menu.c (w32_menu_show):
4045 * nsmenu.m (ns_menu_show): error parameter is const char **.
4046
4047 * menu.h (w32_menu_show, ns_menu_show, xmenu_show): error parameter
4048 is const char **.
4049
4050 * menu.c (Fx_popup_menu): error_name is const.
4051
4052 * keyboard.h (_widget_value): Add defined USE_GTK. Replace Boolean
4053 with unsigned char and XtPointer with void *.
4054
4055 * gtkutil.h: Replace widget_value with struct _widget_value.
4056 (enum button_type, struct _widget_value): Remove and use the one from
4057 keyboard.h.
4058
4059 * gtkutil.c (get_utf8_string): Always return an allocated string.
4060 Parameter is const.
4061 (create_dialog, xg_create_one_menuitem, create_menus)
4062 (xg_item_label_same_p, xg_update_menu_item): Free result from
4063 get_utf8_string.
4064 (xg_separator_p, xg_item_label_same_p): label is const.
4065
4066 * font.h (font_open_by_name): Make name const.
4067
4068 * font.c (font_open_by_name): Make name const.
4069
4070 * floatfns.c (matherr): Use a const char* variable for x->name.
4071
4072 * emacs.c (main): Pass char[] to putenv instead of literal.
4073
4074 * callproc.c (synch_process_death): Make const.
4075 (Fcall_process): Make signame const.
4076
9c5bd55a
J
4077 * nsterm.h (parseKeyEquiv, addSubmenuWithTitle)
4078 (addDisplayItemWithImage): Use const char*.
4079
4080 * nsmenu.m (parseKeyEquiv, addSubmenuWithTitle)
4081 (addDisplayItemWithImage, update_frame_tool_bar): Use const char*.
4082
4083 * nsfont.m (ns_descriptor_to_entity): Use const char*.
4084
4085 * keyboard.h (_widget_value): name, value and key are const char*.
4086
7aee76f4
J
4087 * unexmacosx.c (unexec_error): Use const char *.
4088
09d93395
DN
40892010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
4090
4091 * font.h (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
c5683ceb 4092 (font_parse_name, font_open_by_name):
09d93395 4093 * font.c (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
c5683ceb 4094 (font_parse_name, font_open_by_name): Remove const.
09d93395 4095
671d409f
AS
40962010-08-09 Andreas Schwab <schwab@linux-m68k.org>
4097
4098 Use autoconf determined WORDS_BIGENDIAN instead of hardcoded
4099 definition.
4100
4101 * m/alpha.h: Don't define/undef WORDS_BIG_ENDIAN.
4102 * m/amdx86-64.h: Likewise.
4103 * m/arm.h: Likewise.
4104 * m/hp800.h: Likewise.
4105 * m/ia64.h: Likewise.
4106 * m/ibmrs6000.h: Likewise.
4107 * m/ibms390.h: Likewise.
4108 * m/intel386.h: Likewise.
4109 * m/iris4d.h: Likewise.
4110 * m/m68k.h: Likewise.
4111 * m/macppc.h: Likewise.
4112 * m/mips.h: Likewise.
4113 * m/sh3.h: Likewise.
4114 * m/sparc.h: Likewise.
4115 * m/template.h: Likewise.
4116 * m/vax.h: Likewise.
4117 * m/xtensa.h: Likewise.
4118 * fringe.c (init_fringe_bitmap): Test WORDS_BIGENDIAN instead of
4119 WORDS_BIG_ENDIAN.
4120 * lisp.h: Likewise.
4121 * md5.c: Likewise.
4122 * sound.c (le2hl, le2hs, be2hl, be2hs): Likewise.
4123
8ea90aa3
DN
41242010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
4125
4126 Use const char* instead of char*.
4127 Reduce the number of warnings with -Wwrite-strings.
4128 * xrdb.c (get_environ_db, get_system_name):
4129 * unexelf.c (find_section):
4130 * term.c (string_cost, string_cost_one_line, per_line_cost)
4131 (get_named_tty, init_tty):
4132 * sysdep.c (sys_subshell):
4133 * sound.c (sound_perror, sound_warning, vox_open, vox_init)
4134 (alsa_sound_perror, alsa_open, alsa_configure, alsa_init):
4135 * search.c (Freplace_match):
4136 * process.c (Fmake_network_process, send_process, init_process):
4137 * lread.c (Fload, init_lread):
4138 * keymap.c (Fdescribe_buffer_bindings, describe_map_tree):
4139 * keyboard.c (parse_tool_bar_item, struct event_head):
4140 * gtkutil.h (xg_get_font_name):
4141 * gtkutil.c (get_dialog_title, create_dialog, xg_get_font_name)
4142 (make_widget_for_menu_item, make_menu_item, create_menus)
4143 (xg_make_tool_item):
4144 * font.c (parse_matrix, font_parse_name):
4145 * floatfns.c (rounding_driver, float_error_fn_name):
4146 * filelock.c (get_boot_time_1, lock_file_1):
4147 * fileio.c (barf_or_query_if_file_exists, check_writable):
4148 * editfns.c (get_system_name, get_operating_system_release)
4149 (Fencode_time, Fset_time_zone_rule):
4150 * dispextern.h (string_cost, per_line_cost, get_named_tty, init_tty):
4151 * buffer.c (defvar_per_buffer): Use const.
4152
7815fe19 41532010-08-08 Kenichi Handa <handa@m17n.org>
7a84eee5 4154
692f3ddc 4155 * charset.c: Include <stdlib.h>.
7a84eee5
KH
4156 (struct charset_sort_data): New struct.
4157 (charset_compare): New function.
692f3ddc 4158 (Fsort_charsets): New function.
7a84eee5
KH
4159 (syms_of_charset): Declare Fsort_charsets as a Lisp function.
4160
4161 * coding.c (decode_coding_iso_2022): Fix checking of dimension
4162 number in CTEXT extended segment.
4163
7815fe19 41642010-08-08 Juanma Barranquero <lekktu@gmail.com>
f5f6c0e0
JB
4165
4166 * w32fns.c (syms_of_w32fns) <x-max-tooltip-size>: Fix typo in docstring.
4167 * xfns.c (syms_of_xfns) <x-max-tooltip-size>: Reflow docstring.
4168
7815fe19 41692010-08-08 Juanma Barranquero <lekktu@gmail.com>
b756c005
JB
4170
4171 * fns.c (Fsubstring_no_properties, Fnthcdr, Ffeaturep)
4172 (Fhash_table_size): Fix typos in docstrings.
4173 (Fmake_hash_table): Doc fix.
4174
7815fe19 41752010-08-08 Juanma Barranquero <lekktu@gmail.com>
b4f588fa
JB
4176
4177 * minibuf.c (syms_of_minibuf) <read-buffer-function>:
4178 Doc fix (bug#5625).
4179
7815fe19 41802010-08-08 Ken Brown <kbrown@cornell.edu>
9f8c08a7
KB
4181
4182 * dired.c (DIRENTRY_NONEMPTY) [cygwin]: Use d_ino instead of
4183 the MSDOS definition.
4184
1b6d8cf0
DN
41852010-08-08 Dan Nicolaescu <dann@ics.uci.edu>
4186
675e2c69
DN
4187 Use const char* instead of char*.
4188 * xterm.c (x_create_toolkit_scroll_bar):
4189 * xfont.c (xfont_list_pattern):
4190 * xfns.c (x_default_scroll_bar_color_parameter)
4191 (xic_create_fontsetname, x_default_font_parameter)
4192 (x_screen_planes):
4193 * xdisp.c (c_string_pos, number_of_chars, reseat_to_string)
4194 (store_mode_line_string, decode_mode_spec, display_string):
4195 * menu.c (digest_single_submenu):
4196 * keymap.h (initial_define_key, initial_define_lispy_key):
4197 * keymap.c (initial_define_key, initial_define_lispy_key):
4198 * image.c (image_error, image_keyword):
4199 * gtkutil.h (xg_create_widget, xg_create_scroll_bar):
4200 * gtkutil.c (xg_create_widget, xg_create_scroll_bar):
4201 * ftfont.c (struct fc_charset_table, ftfont_spec_pattern)
4202 (ftfont_list, ftfont_match):
4203 * frame.c (frame_parm_table):
4204 * font.h (font_intern_prop, font_parse_xlfd, font_parse_fcname)
4205 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
4206 (font_add_log, font_deferred_log):
4207 * font.c (font_intern_prop, font_parse_xlfd, font_parse_fcname)
4208 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
4209 (font_add_log, font_deferred_log):
4210 * emacs.c (argmatch):
4211 * dispextern.h (struct it):
4212 * coding.c (ENCODE_DESIGNATION):
4213 * charset.c (define_charset_internal): Use const.
4214
25717ca1
DN
4215 * s/freebsd.h (DECLARE_GETPWUID_WITH_UID_T): Remove, unused.
4216
c5683ceb
SM
4217 * xrdb.c: Remove include guard.
4218 Remove DECLARE_GETPWUID_WITH_UID_T conditional it had no effect.
1b6d8cf0
DN
4219 Remove #if 0 code. Replace malloc->xmalloc, free->xfree,
4220 realloc->xrealloc instead of using #defines.
4221
efb41e21
EZ
42222010-08-08 Eli Zaretskii <eliz@gnu.org>
4223
cd21226d 4224 * cmds.c (Fforward_line, Fbeginning_of_line, Fend_of_line):
c5683ceb
SM
4225 * editfns.c (Fline_beginning_position, Fline_end_position):
4226 State in the doc strings that start and end of line are in the
4227 logical order.
cd21226d 4228
efb41e21
EZ
4229 * xdisp.c (display_line): Move the handling of overlay arrow after
4230 the call to find_row_edges. (Bug#6699)
4231
746812d9
CY
42322010-08-07 Chong Yidong <cyd@stupidchicken.com>
4233
4234 * keyboard.c (command_loop_1):
4235 * insdel.c (prepare_to_modify_buffer): Don't call validate_region.
4236
9852377f
CY
42372010-08-07 Chong Yidong <cyd@stupidchicken.com>
4238
4239 * insdel.c (prepare_to_modify_buffer): Save active region text to
4240 Vsaved_region_selection.
4241
4242 * xselect.c (QPRIMARY): Move to keyboard.c.
4243
4244 * keyboard.c (Vselect_active_regions): Move from simple.el.
8d9e03e4
JB
4245 (Vsaved_region_selection, Qx_set_selection, QPRIMARY, Qlazy): New vars.
4246 (command_loop_1): Set window selection prior to deactivating the mark.
9852377f 4247
0e9c8657
JB
42482010-08-07 Juanma Barranquero <lekktu@gmail.com>
4249
4250 * alloc.c (lisp_malloc):
4251 * buffer.c (set_buffer_internal, set_buffer_internal_1):
4252 * charset.h (emacs_mule_charset):
4253 * dispextern.h (inhibit_free_realized_faces, redraw_frame)
4254 (redraw_garbaged_frames, scroll_cost, update_frame, scrolling)
4255 (bitch_at_user):
4256 * lisp.h (Fcheck_coding_system, Fget_text_property)
4257 (Qfunction, Qcompletion_ignore_case, QCwidth, QCsize):
4258 Remove duplicate declarations.
4259
648801d1
DN
42602010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
4261
32bc6709
DN
4262 * process.c: Simplify include logic.
4263
3ef1d108
DN
4264 * keyboard.h (quit_char): Add declaration.
4265 * process.h (QCport, QCspeed, QCprocess, QCbytesize, QCstopbits)
8d9e03e4
JB
4266 (QCparity, Qodd, Qeven, QCflowcontrol, Qhw, Qsw, QCsummary):
4267 Add declarations.
3ef1d108
DN
4268 * sysdep.c:
4269 * w32.c: Remove the above declarations.
4270
97ec208f
DN
4271 Remove extern declarations in .c files, .h files have them.
4272 * xterm.c:
4273 * xdisp.c:
97ec208f
DN
4274 * msdos.c:
4275 * image.c:
4276 * gtkutil.c:
4277 * fileio.c:
4278 * eval.c: Remove declarations.
4279
94eed851
DN
4280 * frame.c (frame_params): Make const.
4281
36e053eb
DN
4282 * lisp.h (fatal_error_signal, emacs_root_dir): Add declaration.
4283
0e843971
DN
4284 * emacs.c (emacs_copyright, emacs_version): Make static.
4285 (Vinitial_window_system, Vauto_save_list_file_name)
4286 (Vinhibit_redisplay): Remove declarations.
4287 (main): Remove HAVE_SHM code, unused. Remove _I386 conditional
4288 for AIX.
4289
648801d1
DN
4290 Use const for some arrays and functions.
4291 * xterm.h (xg_set_icon_from_xpm_data):
4292 * xfns.c (xg_set_icon_from_xpm_data):
4293 * term.c (fkeys):
4294 * keyboard.c (lispy_accent_keys, lispy_function_keys)
4295 (lispy_multimedia_keys, lispy_kana_keys, iso_lispy_function_keys)
4296 (lispy_drag_n_drop_names, scroll_bar_parts, modify_event_symbol)
4297 (frame.c frame_parms):
4298 * emacs-icon.h (gnu_xpm_bits):
4299 * callint.c (callint_argfuns): Use const.
4300
8646d999
J
43012010-08-06 Jan Djärv <jan.h.d@swipnet.se>
4302
4303 * sysdep.c: Move include term.h last of includes (Bug#6812).
4304
cb4545ad
EZ
43052010-08-06 Eli Zaretskii <eliz@gnu.org>
4306
4307 * dispnew.c (realloc_glyph_pool): Zero out newly allocated glyphs.
4308
4309 * msdos.c (IT_display_cursor): Log cursor position on termscript.
4310
4311 * .gdbinit (pgx): Display the avoid_cursor_p flag.
4312
da7e2be6
JB
43132010-08-06 Juanma Barranquero <lekktu@gmail.com>
4314
4315 * makefile.w32-in ($(BLD)/xdisp.$(O)): Update dependencies.
4316
3d608a86
J
43172010-08-06 Jan Djärv <jan.h.d@swipnet.se>
4318
7908fb60
J
4319 * xterm.h (x_get_focus_frame): Declare.
4320
4321 * keyboard.h (poll_for_input_1): Unconditionally declare.
4322
4094bf36
J
4323 * nsterm.h (x_set_menu_bar_lines): Declare.
4324
4325 * window.c: Don't include menu.h, it depends on lots of other .h-files.
4326
3d608a86
J
4327 * xfaces.c (x_create_gc, x_free_gc): Convert to ANSI C prototypes.
4328
4329 * window.c: Include menu.h.
4330
4331 * unexmacosx.c (print_region_list, print_regions)
4332 (build_region_list, find_emacs_zone_regions)
4333 (unexec_regions_merge, read_load_commands, dump_it)
4334 (unexec_init_emacs_zone): Convert to ANSI C prototypes.
4335
4336 * term.c: Check HAVE_SYS_IOCTL_H.
4337
686b968e 4338 * sysdep.c: Check HAVE_TERM_H.
3d608a86 4339
686b968e 4340 * process.c: Check HAVE_UTIL_H. Include nsterm.h if HAVE_NS.
3d608a86
J
4341
4342 * nsterm.m (ns_init_paths, ns_alloc_autorelease_pool)
4343 (ns_ring_bell, ns_defined_color, hide_hourglass)
4344 (x_display_pixel_height, x_display_pixel_width, syms_of_nsterm):
4345 Convert to ANSI C prototypes.
4346 (x_set_window_size, ns_draw_fringe_bitmap, judge): Move declarations
4347 before code.
4348
4349 * nsterm.h : Include sysselect.h.
4350 (x_sync, x_get_focus_frame, x_set_mouse_position)
4351 (x_set_mouse_pixel_position, x_make_frame_visible)
4352 (x_make_frame_invisible, x_iconify_frame, x_char_width, x_char_height)
4353 (x_pixel_width, x_pixel_height, x_set_frame_alpha, x_set_tool_bar_lines)
4354 (x_activate_menubar, free_frame_menubar, ns_init_paths, ns_select)
4355 (syms_of_nsterm, syms_of_nsfns, syms_of_nsmenu, syms_of_nsselect):
686b968e 4356 Declare.
3d608a86
J
4357
4358 * nsmenu.m (popup_activated, name_is_separator)
4359 (syms_of_nsmenu): Convert to ANSI C prototypes.
4360 (runMenuAt): Prototypes and move declarations before code.
4361
4362 * nsimage.m (ns_load_image): Move NSTRACE after declarations.
4363
4364 * nsfont.m (ns_fallback_entity, syms_of_nsfont): Convert to ANSI C
4365 prototypes.
4366
4367 * nsfns.m (have_menus_p, ns_display_info_for_name)
4368 (x_set_cursor_type, ns_appkit_version_str)
4369 (ns_appkit_version_int, ns_do_applescript)
4370 (x_set_scroll_bar_default_width, x_sync, compute_tip_xy)
4371 (syms_of_nsfns): Convert to ANSI C prototypes.
4372
4373 * menu.h (x_set_menu_bar_line): Declare.
4374 (free_menubar_widget_value_tree et.al): Add HAVE_NS for these functions.
4375
4376 * lisp.h (fmod_float): Declare.
4377
4378 * image.c (xpm_scan, xpm_make_color_table_v)
4379 (xpm_put_color_table_v, xpm_get_color_table_v)
4380 (xpm_make_color_table_h, xpm_put_color_table_h)
4381 (xpm_get_color_table_h, xpm_str_to_color_key, xpm_load_image)
4382 (xpm_load): Convert to ANSI C prototypes.
4383
4384 * emacs.c: Include nsterm.h if HAVE_NS.
4385
4386 * bidi.c (bidi_dump_cached_states): Fix fprintf warning.
4387
fce70521
DN
43882010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
4389
4390 * process.c: Remove HAVE_SOCKETS #ifdefs inside #ifdef
4391 subprocesses, only MSDOS does not define HAVE_SOCKETS.
4392 (socket_options): Use const char* for name.
4393
a11889ab
JB
43942010-08-06 Juanma Barranquero <lekktu@gmail.com>
4395
4396 Fix changes in 2010-08-05T23:15:24Z!dann@ics.uci.edu..2010-08-05T23:34:12Z!dann@ics.uci.edu for Windows build.
4397
4398 * xmenu.c [USE_X_TOOLKIT || USE_GTK]:
4399 Don't declare xmalloc_widget_value and digest_single_submenu.
4400
4401 * w32font.c (Qlatin): Remove declaration.
4402
4403 * menu.h (xmalloc_widget_value, digest_single_submenu): Declare.
4404
c95b508f 4405 * dired.c (compile_pattern): Restore declaration.
a11889ab 4406
6254cdda
DN
44072010-08-05 Dan Nicolaescu <dann@ics.uci.edu>
4408
04bab72c
DN
4409 Remove extern declarations in .c files, .h files have them.
4410 * data.c:
4411 * dired.c:
4412 * editfns.c:
4413 * filelock.c:
4414 * fns.c:
4415 * font.c:
4416 * fontset.c:
4417 * frame.c:
4418 * fringe.c:
4419 * ftfont.c:
4420 * gtkutil.c:
4421 * indent.c:
4422 * keyboard.c:
4423 * keymap.c:
4424 * lread.c:
4425 * menu.c:
4426 * print.c:
4427 * search.c:
4428 * sound.c:
4429 * window.c:
4430 * xdisp.c:
4431 * xfaces.c:
4432 * xfns.c:
4433 * xfont.c:
4434 * xftfont.c:
4435 * xmenu.c:
4436 * xterm.c: Remove declarations.
4437
dff94ed5
DN
4438 Cleanup syssignal.h.
4439 * syssignal.h (sighold, sigrelse, RETSIGTYPE): Remove, unused.
4440 (main_thread): Move down to remove #ifdef.
4441 (SIGMASKTYPE, SIGEMPTYMASK, SIGFULLMASK, sigmask, sigunblock):
4442 Remove conditional definition following unconditional ones.
4443
99f3388e
DN
4444 * lisp.h: Remove HAVE_SHM code, unused.
4445 (QCmap, QCrehash_size, QCrehash_threshold, QCsize, QCtest)
4446 (QCweakness, Qabove_handle, Qbackquote, Qbar, Qbelow_handle)
4447 (Qborder, Qbottom, Qbox, Qcircular_list, Qcomma, Qcomma_at)
4448 (Qcomma_dot, Qcursor, Qdefault, Qdown, Qend_scroll, Qeq, Qeql)
4449 (Qequal, Qfile_exists_p, Qfont_param, Qfringe, Qfunction)
4450 (Qfunction_documentation, Qhandle, Qhbar, Qheader_line, Qhollow)
4451 (Qidentity, Qleft_margin, Qmenu, Qmenu_bar_update_hook)
4452 (Qmode_line_inactive, Qmouse, Qoverriding_local_map)
4453 (Qoverriding_terminal_local_map, Qratio, Qregion, Qright_margin)
4454 (Qscroll_bar, Qtool_bar, Qtop, Qup, Qvertical_border, Qwhen)
4455 (Qwindow_scroll_functions, Vafter_load_alist)
4456 (Vauto_save_list_file_name, Vface_alternative_font_family_alist)
4457 (Vface_alternative_font_registry_alist, Vface_font_rescale_alist)
4458 (Vface_ignored_fonts, Vinhibit_redisplay, Vminibuffer_list)
4459 (Vprint_length, Vprint_level, Vscalable_fonts_allowed)
4460 (Vshell_file_name, Vsystem_name, Vwindow_scroll_functions)
4461 (Vwindow_system_version, Vx_no_window_manager, initial_argc)
4462 (initial_argv, last_nonmenu_event, load_in_progress)
4463 (noninteractive_need_newline, scroll_margin): Add declarations.
4464
bba3e508
SM
4465 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
4466 Remove declarations, menu.h has them.
99f3388e
DN
4467 (QCbutton, QCtoggle, QCradio, QClabel, extra_keyboard_modifiers)
4468 (Vinput_method_function, Qinput_method_function)
4469 (Qevent_symbol_element_mask, last_event_timestamp):
4470 * dispextern.h (Voverflow_newline_into_fringe):
4471 * font.h (QCantialias, Qp, syms_of_ftfont, syms_of_xfns)
4472 (syms_of_ftxfont, syms_of_xftfont, syms_of_bdffont)
4473 (syms_of_w32font, syms_of_nsfont):
4474 * fontset.h (find_font_encoding, Qlatin):
4475 * frame.h (Qtooltip, Qrun_hook_with_args, Vmenu_bar_mode)
4476 (Vtool_bar_mode, set_frame_menubar):
4477 * ftfont.h (ftfont_font_format, ftfont_get_fc_charset):
4478 * xterm.h (Qx_gtk_map_stock):
4479 * keymap.h (meta_prefix_char): Add declarations.
4480
9f5dd6f2
DN
4481 * term.c: Remove dead code.
4482
6254cdda
DN
4483 Fix emacs -Q -f server-start & emacsclient -t on GNU/Linux.
4484 * term.c (dissociate_if_controlling_tty): Use USG5 instead of
4485 USG. This is equivalent to defined (USG) && !defined (BSD_PGRPS),
4486 which is what was there before BSD_PGRPS was removed.
4487
29cf3e20
EZ
44882010-08-05 Eli Zaretskii <eliz@gnu.org>
4489
4490 * deps.mk (unexcoff.o): Rename unexec.[co] => unexcoff.[co].
4491
4492 * unexcoff.c: Renamed from unexec.c.
4493
aaa0a19a
SM
44942010-08-04 Stefan Monnier <monnier@iro.umontreal.ca>
4495
4496 * sysdep.c (child_setup_tty): Comment-out left-over non-ICANON code.
4497
8d1d9587
JB
44982010-08-03 Johan Bockgård <bojohan@gnu.org>
4499
4500 * data.c (Flocal_variable_p): Handle variable aliases correctly.
e0d62a9b 4501 (Bug#6744)
8d1d9587 4502
9a747ba6
JD
45032010-08-02 Jan Djärv <jan.h.d@swipnet.se>
4504
4d464ae4
JD
4505 * xterm.c (x_create_toolkit_scroll_bar): Only set XtNbeNiceToColormap
4506 to TRUE if depth of screen is < 16.
4507
ac01763e
JD
4508 * gtkutil.c (hierarchy_ch_cb, qttip_cb): Do not define unless
4509 USE_GTK_TOOLTIP.
e0d62a9b
JB
4510 (xg_prepare_tooltip): Return 0 unless USE_GTK_TOOLTIP.
4511 (xg_show_tooltip, xg_hide_tooltip): Do nothing unless USE_GTK_TOOLTIP.
4d464ae4 4512 (xg_create_frame_widgets): Surround tooltip-related code with ifdef
ac01763e
JD
4513 USE_GTK_TOOLTIP.
4514 (xg_free_frame_widgets): Don't delete ttip_* unless USE_GTK_TOOLTIP.
4515
4516 * xterm.h (USE_GTK_TOOLTIP): New define.
4517 (struct x_output): Put ttip_* inside ifdef USE_GTK_TOOLTIP.
4518
9a747ba6
JD
4519 * sysdep.c (child_setup_tty): Enable ICANON in lflags and set VEOF
4520 to Control-D (Bug#6771).
4521
7b0815ba
JB
45222010-08-02 Juanma Barranquero <lekktu@gmail.com>
4523
4524 * editfns.c (Fregion_beginning, Fregion_end): Doc fixes (bug#6493).
4525 Wording by Drew Adams <drew.adams@oracle.com>.
4526
aa1859f5
J
45272010-08-01 Jan Djärv <jan.h.d@swipnet.se>
4528
4529 * xterm.h (struct x_output): Add ttip_widget, ttip_window and
4530 ttip_lbl.
4531
4532 * xterm.c (x_clear_frame): Check FRAME_GTK_WIDGET (f) before
4533 calling gtk_widget_queue_draw.
4534 (x_free_frame_resources): Call xg_free_frame_widgets.
4535
4536 * xfns.c (x_gtk_use_system_tooltips): New variable.
4537 (Fx_show_tip): If USE_GTK and x_gtk_use_system_tooltips, call
4538 new gtkutil tooltip functions to show the tooltip.
4539 (Fx_hide_tip): Call xg_hide_tooltip.
4540 (syms_of_xfns): Defvar x-gtk-use-system-tooltips.
4541
4542 * gtkutil.h (xg_free_frame_widgets, xg_prepare_tooltip)
4543 (xg_show_tooltip, xg_hide_tooltip): Declare.
4544
4545 * gtkutil.c (hierarchy_ch_cb, qttip_cb, xg_prepare_tooltip)
e0d62a9b
JB
4546 (xg_show_tooltip, xg_hide_tooltip, xg_free_frame_widgets):
4547 New functions.
aa1859f5
J
4548 (xg_create_frame_widgets): Set ttip_* to 0. Set a dummy tooltip
4549 text so qttip_cb is called. Connect query-tooltip to qttip_cb.
4550 Remove code that is commented out.
4551
76417ef4
SM
45522010-08-01 Stefan Monnier <monnier@iro.umontreal.ca>
4553
4554 * keymap.c (Fdefine_key, Flookup_key): Say what event is invalid.
4555
16041401
CY
45562010-07-31 Chong Yidong <cyd@stupidchicken.com>
4557
4558 * xselect.c (x_own_selection): Use list4.
4559
2c09a58f
DN
45602010-07-30 Dan Nicolaescu <dann@ics.uci.edu>
4561
4562 * buffer.c (Qwindow): Do not define, already defined in data.c.
4563 (syms_of_buffer): Do not intern and staticpro Qwindow. (Bug#6760)
4564
59df9fdd 45652010-07-29 Chad Brown <yandros@mit.edu>
1c97e857 4566
59df9fdd
JB
4567 Replace tests for SYSV_SYSTEM_DIR with HAVE_DIRENT_H, set via autoconf.
4568 * dired.c, sysdep.c: Test HAVE_DIRENT_H instead of SYSV_SYSTEM_DIR.
4569 * config.in: Undef HAVE_DIRENT_H.
1c97e857 4570 * s/aix4-2.h, s/bsd-common.h, s/cygwin.h, s/gnu-linux.h,
59df9fdd 4571 * s/msdos.h, s/usg5-4.h: Don't define SYSV_SYSTEM_DIR.
1c97e857 4572
1b231651
DN
45732010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
4574
4575 Rename s/usg5-4.h -> s/usg5-4-common.h.
4576 * s/usg5-4.h: Rename file to ...
4577 * s/usg5-4-common.h: ... this for consistency with what we do for BSD.
4578 * s/unixware.h:
4579 * s/sol2-6.h:
4580 * s/irix6-5.h: Update includes accordingly.
4581
bfeabdc3
JD
45822010-07-29 Jan Djärv <jan.h.d@swipnet.se>
4583
2ebf1083
J
4584 * xfns.c (x_set_tool_bar_position): Remove debug fprintf.
4585
bfeabdc3 4586 * xterm.h (struct x_output): Add toolbar_top_height,
e0d62a9b
JB
4587 toolbar_bottom_height, toolbar_left_width, toolbar_right_width.
4588 Remove toolbar_height.
4589 If USE_GTK: Add hbox_widget and toolbar_in_hbox.
bfeabdc3
JD
4590 (FRAME_TOOLBAR_TOP_HEIGHT, FRAME_TOOLBAR_BOTTOM_HEIGHT)
4591 (FRAME_TOOLBAR_LEFT_WIDTH, FRAME_TOOLBAR_RIGHT_WIDTH): New macros.
4592 (FRAME_TOOLBAR_HEIGHT): Is now TOP_HEIGHT + BOTTOM_HEIGHT.
4593
4594 * xterm.c (x_set_window_size_1): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
4595
4596 * xfns.c (x_set_tool_bar_position): New function.
4597 (xic_set_statusarea): Use FRAME_TOOLBAR_TOP_HEIGHT.
4598 (x_frame_parm_handlers): Add x_set_tool_bar_position.
e0d62a9b 4599 (syms_of_xfns): If USE_GTK, provide move-toolbar.
bfeabdc3
JD
4600
4601 * window.c (calc_absolute_offset): Check for FRAME_TOOLBAR_TOP_HEIGHT
4602 and FRAME_TOOLBAR_LEFT_WIDTH.
4603
4604 * gtkutil.h (xg_change_toolbar_position): Declare.
4605
4606 * gtkutil.c (FRAME_TOTAL_PIXEL_WIDTH): New macro.
4607 (xg_frame_set_char_size): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
4608 (xg_height_or_width_changed): Use FRAME_TOTAL_PIXEL_WIDTH.
4609 (xg_create_frame_widgets): Create a hobox for placing widgets
4610 vertically. Use gtk_box_pack_start.
ef1b0ba7 4611 (xg_height_or_width_changed): Rename from xg_height_changed.
bfeabdc3
JD
4612 (x_wm_set_size_hint): Add FRAME_TOOLBAR_WIDTH to base_width.
4613 (xg_update_frame_menubar, free_frame_menubar): Change to
4614 xg_height_or_width_changed.
4615 (xg_tool_bar_detach_callback): Update left/right/top/bottom tool bar
4616 size correctly. Remove hardcoded 4, instead use handlebox size -
4617 toolbar size.
4618 (xg_tool_bar_attach_callback): Update left/right/top/bottom tool bar
e0d62a9b 4619 size correctly. Use handlebox size + toolbar size as additional size.
bfeabdc3
JD
4620 (xg_pack_tool_bar): POS is a new parameter.
4621 Set orientation of tool bar based on pos.
4622 Only make handlebox_widget if NULL.
4623 Check if tool bar goes to vbox or hbox depending on pos.
4624 (xg_update_tool_bar_sizes): New function.
686b968e 4625 (update_frame_tool_bar): Remove old_req, new_req. Do not get tool bar
bfeabdc3
JD
4626 height, call xg_update_tool_bar_sizes instead.
4627 (free_frame_tool_bar): Remove from hbox or vbox depending on
4628 toolbar_in_hbox, Set all FRAME_TOOLBAR_*_(WIDTH|HEIGHT) to zero.
4629 (xg_change_toolbar_position): New function.
4630
4631 * frame.h (struct frame): Add tool_bar_position.
4632 (Qbottom): Declare.
4633
4634 * frame.c (Qtool_bar_position): New variable.
4635 (make_frame): Set tool_bar_position to Qtop.
4636 (frame_parms): Add tool-bar-position.
4637 (x_report_frame_params): Store tool_bar_position.
4638 (x_set_fringe_width): Reset wm size hint after fringe changes.
4639
26469a38
DN
46402010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
4641
4642 Make lisp_time_argument declaration work on all systems.
4643 * lisp.h (lisp_time_argument): Move declaration ...
4644 * systime.h (lisp_time_argument): ... here
4645 * editfns.c (lisp_time_argument): Remove declaration. (Bug#6751)
4646
8848b728
JD
46472010-07-29 Jan Djärv <jan.h.d@swipnet.se>
4648
4649 * vm-limit.c (POINTER): Add typedef for it.
4650 (start_of_data): Change return type from POINTER to char *.
4651
4652 * frame.h (Qtty_color_mode): Move declaration out of ifdef
4653 HAVE_WINDOW_SYSTEM.
4654
76fd1ee9
DN
46552010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
4656
0441987e
DN
4657 * vm-limit.c: Do not include sys/resource.h, mem-limits.h does it.
4658 Remove reference to __osf__, unused.
4659
56a000c7
DN
4660 * mem-limits.h: Remove duplicated includes.
4661 (NULL): Remove definition, unused.
4662 (POINTER): Remove definition.
4663 (start_of_data): Use char* in prototype, as the function
4664 definition does.
4665
e6cba650
DN
4666 Remove extern declarations from .c files, and them to .h files.
4667 * keyboard.h (Qhelp_echo, waiting_for_input)
4668 (input_available_clear_time, ignore_mouse_drag_p)
4669 (Vdouble_click_time, real_this_command, Vthis_original_command):
4670 * keymap.h (Qremap, Qmenu_item, Voverriding_local_map)
4671 (Voverriding_local_map_menu_flag):
4672 * lisp.h (Qinteractive_form, use_file_dialog)
4673 (Qcursor_in_echo_area, QCascent, QCmargin, QCrelief, Qcount)
4674 (Qextension_data, QCconversion, QCcolor_symbols, QCheuristic_mask)
4675 (QCindex, QCmatrix, QCcolor_adjustment, QCmask)
4676 (Qrisky_local_variable, map_char_table_for_charset, Vprint_level)
4677 (Qfunction, debug_on_next_call, Qfield)
4678 (Vinhibit_field_text_motion, Vuser_login_name, lisp_time_argument)
4679 (Qpriority, Qwindow, Qevaporate, Qbefore_string, Qafter_string)
4680 (Qfile_directory_p, Qinsert_file_contents)
4681 (Qcompletion_ignore_case, Qcompletion_ignore_case)
4682 (Vcompletion_regexp_list, Vhistory_length, completion_ignore_case)
4683 (history_delete_duplicates, minibuffer_auto_raise, Qonly)
4684 (Qfile_name_handler_alist, Qfront_sticky, Qrear_nonsticky)
4685 (Qminibuffer_prompt)
4686 (Vtemporary_file_directory,char_ins_del_vector, Qface):
4687 * xterm.h (gray_bitmap_width, gray_bitmap_height)
4688 (gray_bitmap_bits, xic_create_fontsetname):
4689 * coding.h (Vtranslation_table_for_input): Add extern declarations.
4690
4691 * xsmfns.c (Vuser_login_name):
4692 * xrdb.c (Vdouble_click_time):
4693 * xfaces.c (xic_create_fontsetname):
4694 * w32select.c (waiting_for_input):
4695 * print.c (minibuffer_auto_raise):
4696 * msdos.c (Qhelp_echo):
4697 * macros.c (real_this_command):
4698 * keymap.c (Voverriding_local_map):
4699 * xterm.c (poll_for_input_1, gray_bitmap_width)
4700 (gray_bitmap_height, gray_bitmap_bits;
4701 * xmenu.c ( Voverriding_local_map)
4702 (Voverriding_local_map_menu_flag; Qmenu_item; use_dialog_box)
4703 (use_file_dialog, Xt_app_con):
4704 * xdisp.c (minibuffer_auto_raise, Voverriding_local_map)
4705 (Voverriding_local_map_menu_flag, Qmenu_item, Qface, Qinvisible)
4706 (Qwidth, Qinvisible, Qwindow, Qpriority, Qtool_bar_lines)
4707 (Qtool_bar_lines, ignore_mouse_drag_p):
4708 * minibuf.c (Voverriding_local_map, Qfield, Qfront_sticky)
4709 (Qrear_nonsticky, nconc2):
4710 * keyboard.c (current_global_map, minibuf_level, Qmenu_item)
4711 (Vhistory_length, Vtranslation_table_for_input, Qcomposition)
4712 (Qdisplay, Qafter_string, Qbefore_string, Qundefined):
4713 * fileio.c (use_dialog_box, use_file_dialog, Vuser_login_name)
4714 (minibuf_level, minibuffer_auto_raise, lisp_time_argument):
4715 * eval.c (Qinteractive_form, Qrisky_local_variable, Qfunction)
4716 (gc_in_progress):
4717 * doc.c (Voverriding_local_map, Qremap):
4718 * dired.c (completion_ignore_case, Qcompletion_ignore_case)
4719 (Vcompletion_regexp_list):
4720 * coding.c (Qmac, Qinsert_file_contents, Qwrite_region)
4721 (Qcompletion_ignore_case):
4722 * callint.c (Qcursor_in_echo_area, Qfile_directory_p, Qonly)
4723 (Vhistory_length, Vthis_original_command, real_this_command)
4724 (Qface, Qminibuffer_prompt, history_delete_duplicates):
4725 * image.c (Qrisky_local_variable):
4726 * fontset.c (QCname):
4727 * fns.c (minibuffer_auto_raise, QCname):
4728 * dispnew.c (char_ins_del_cost):
4729 * composite.c (font_fill_lglyph_metrics):
4730 * cmds.c (Qface, Vtranslation_table_for_input):
4731 * charset.c (map_char_table_for_charset, Qfile_name_handler_alist):
4732 * ccl.c (charset_unicode):
4733 * callproc.c (Vtemporary_file_directory):
4734 * buffer.c (emacs_strerror): Remove extern declarations.
4735
4736 * data.c (Qwindow): Make non-static, used from other files too.
4737 * frame.c (validate_x_resource_name): Remove shadow definition for i.
4738
76fd1ee9
DN
4739 * unexec.c (make_hdr): Remove references to NO_REMAP, COFF,
4740 SEGMENT_MASK, SECTION_ALIGNMENT, ADJUST_EXEC_HEADER.
4741 * s/usg5-4.h (COFF):
4742 * s/template.h:
4743 * s/msdos.h (COFF, NO_REMAP):
4744 * s/ms-w32.h (NO_REMAP):
4745 * s/hpux10-20.h (NO_REMAP):
4746 * m/sparc.h (SEGMENT_MASK):
4747 * m/m68k.h (NO_REMAP):
4748 * m/intel386.h (SEGMENT_MASK):
4749 * m/arm.h (NO_REMAP):
4750 * m/alpha.h (COFF):
4751 * m/template.h: Remove references to unused defines.
4752
8a52f00a
JD
47532010-07-28 Jan Djärv <jan.h.d@swipnet.se>
4754
4755 * xsettings.c (Ftool_bar_get_system_style): Also check for
4756 Qtext_image_horiz.
4757
4758 * xdisp.c (Qtext_image_horiz): Define.
4759 (syms_of_xdisp): Initialize Qtext_image_horiz. Add text-image-horiz
087b38a0 4760 to documentation of tool-bar-style.
8a52f00a
JD
4761
4762 * lisp.h (Qtext_image_horiz): Declare.
4763
4764 * gtkutil.c (xg_make_tool_item, xg_show_toolbar_item): Handle tool bar
4765 style text_image_horiz.
4766
89dc303e
DN
47672010-07-27 Dan Nicolaescu <dann@ics.uci.edu>
4768
60799703
DN
4769 * emacs.c (Fkill_emacs): Remove return statement.
4770
37254dc1
DN
4771 * term.c (Qspace, QCalign_to, QCwidth): Remove declarations.
4772 (encode_terminal_code, produce_composite_glyph): Remove unused variables.
bba3e508
SM
4773 (set_tty_color_mode, term_mouse_highlight, term_get_fkeys):
4774 Remove local extern declarations.
37254dc1 4775
71c7345a
DN
4776 * xmenu.c: Do not included lwlib.h, not needed.
4777
6ba577cb
DN
4778 * m/iris4d.h (XUINT, XSET): Remove, not needed.
4779
fdb183d6
DN
4780 * process.c: Move definitions earlier to minimize #ifdefs.
4781
4782 * xterm.h (x_get_customization_string, x_load_resources)
4783 (x_get_resource, x_text_icon, x_text_icon, x_check_errors)
4784 (x_check_errors, x_property_data_to_lisp, defined_color)
4785 (xic_set_xfontset, x_defined_color): Use const.
4786
4787 * xterm.c (xlwmenu_window_p, xlwmenu_redisplay): Remove declarations.
4788 (x_text_icon, x_check_errors, x_connection_closed): Use const.
4789
4790 * xselect.c (selection_data_to_lisp_data)
4791 (x_property_data_to_lisp):
4792 * xrdb.c (x_get_string_resource, file_p)
4793 (x_get_customization_string, magic_file_p, search_magic_path)
4794 (get_system_app, get_user_app, x_load_resources, x_get_resource)
4795 (x_get_string_resource): Use const.
4796
4797 * xfns.c: Include xlwmenu.h when USE_LUCID.
4798 (x_defined_color, xic_set_xfontset): Use const.
4799 (Fx_hide_tip): Remove local extern declaration.
4800
4801 * xfaces.c (Qmouse_face): Remove declaration.
4802 (face_color_gray_p, tty_defined_color, defined_color)
686b968e 4803 (face_color_gray_p, face_color_supported_p): Add const.
fdb183d6
DN
4804
4805 * xdisp.c (do_mouse_tracking): Remove declaration.
4806 (add_to_log): Use const.
4807
4808 * minibuf.c (Qmouse_face): Remove declaration.
4809
4810 * msdos.c (IT_note_mouse_highlight): Remove local extern declaration.
4811
4812 * keyboard.h (do_mouse_tracking): Add declaration.
4813
4814 * image.c (QCwidth, QCheight, QCforeground, QCbackground, QCfile)
4815 (QCdata, QCtype, Qcenter): Remove declarations.
4816
4817 * frame.c (x_get_resource_string, x_get_string_resource)
4818 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
4819 (x_default_parameter): Use const.
4820
4821 * font.c (Qnormal, QCtype, QCfamily, QCweight, QCslant, QCwidth)
4822 (QCheight, QCsize, QCname): Remove declarations.
4823
4824 * emacs.c (main): Remove local extern declaration.
4825
4826 * editfns.c (region_limit, syms_of_editfns): Remove local extern
4827 declarations.
4828
4829 * dispnew.c: Remove duplicate #include <unistd.h>.
4830 (update_window, update_frame_1, init_display): Remove local extern
4831 declarations.
4832
4833 * dispextern.h (add_to_log): Remove declaration.
4834 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
4835 (x_frame_get_and_record_arg, x_default_parameter): Add const.
4836
4837 * dired.c (scmp): Add const.
4838 (directory_files_internal): Remove local extern declaration.
4839
4840 * data.c (Finteractive_form): Use const.
4841
4842 * composite.c (syms_of_composite): Remove local extern declarations.
4843
4844 * charset.c (add_to_log): Remove declaration.
4845
4846 * character.c (strwidth, parse_str_to_multibyte): Add const.
4847
4848 * character.h (strwidth, parse_str_to_multibyte): Likewise.
4849
4850 * buffer.c (Fset_buffer_multibyte): Remove local extern declaration.
4851
89dc303e 4852 * lisp.h (Fkill_emacs): Mark as NO_RETURN.
fdb183d6
DN
4853 (Lisp_Subr): Make doc and intspec constant.
4854 (QCsize, Qspace, Qcenter, QCalign_to, QCdata, QCfile, QCtype)
4855 (Qlocal, Qapply, Qnormal, QCfamily, QCweight, QCslant, QCwidth)
4856 (QCheight, QCsize, QCname, QCwidth, QCforeground)
4857 (QCbackground, add_to_log, stack_base, Vmark_even_if_inactive)
4858 (display_arg): Add declarations.
89dc303e 4859
0ed082fe 48602010-07-27 Christoph Scholtes <cschol2112@gmail.com>
a2a0d36b
CS
4861
4862 * minibuf.c (Fread_buffer): Doc fix (bug#6528).
4863
0ed082fe
JB
4864 * window.c (Fwindow_height): Doc fix (bug#6518).
4865
48662010-07-27 Juanma Barranquero <lekktu@gmail.com>
4867
4868 * buffer.c (syms_of_buffer) <fringe-indicator-alist>: Doc fix.
4869
ccaf0336
DN
48702010-07-26 Dan Nicolaescu <dann@ics.uci.edu>
4871
977105dc
DN
4872 * keyboard.c (Ftop_level, Fexit_recursive_edit)
4873 (Fabort_recursive_edit): Remove return statements in NO_RETURN
4874 functions.
4875
f5ada890
DN
4876 * frame.h (Qtty_color_mode): Add declaration.
4877
ccaf0336
DN
4878 * lisp.h (Ftop_level, Fexit_recursive_edit)
4879 (Fabort_recursive_edit): Mark as NO_RETURN.
4880
dfe3c90f
KH
48812010-07-26 Kenichi Handa <handa@m17n.org>
4882
4883 * font.c (Ffont_shape_gstring): Terminate GSTRING by nil if the
e29eb8cf 4884 number of glyphs gets smaller than the original length. (Bug#6621)
dfe3c90f 4885
7d383292
JB
48862010-07-26 Juanma Barranquero <lekktu@gmail.com>
4887
4888 * lread.c (unreadpure, mapatoms_1): Make static.
4889
da31e629
JB
48902010-07-25 Juanma Barranquero <lekktu@gmail.com>
4891
4892 * terminfo.c (tparam): Fix prototype of tparm.
4893
7bfa6d77
AS
48942010-07-25 Andreas Schwab <schwab@linux-m68k.org>
4895
dcc19aac
AS
4896 * emacs.c (main) [PROFILING]: Use __executable_start if defined to
4897 find start of text segment.
4898 * dispnew.c (safe_bcopy): Don't define if HAVE___EXECUTABLE_START
4899 is defined.
4900
7bfa6d77
AS
4901 * callproc.c (set_initial_environment): Avoid unbalanced braces.
4902
63f9a672
KB
49032010-07-25 Ken Brown <kbrown@cornell.edu>
4904
4905 * vm-limit.c (check_memory_limits): Fix previous change;
4906 accidentally reverted an earlier change.
4907
24933075
KB
49082010-07-25 Ken Brown <kbrown@cornell.edu>
4909
4910 * mem-limits.h (BSD4_2) [cygwin]: Don't define here; instead...
4911 * vm-limit.c: ...add 'defined (CYGWIN)' here (Bug#6715).
4912
361358ea
JB
49132010-07-25 Juanma Barranquero <lekktu@gmail.com>
4914
4915 * callproc.c (relocate_fd): Set inside #ifndef WINDOWSNT.
4916 * dired.c (opendir, readdir): Fix prototypes.
4917 * editfns.c (w32_get_internal_run_time): Fix prototypes.
4918 * keyboard.c (input_available_signal): Declare inside #ifdef SIGIO.
4919 * ndir.h (opendir, readdir, seekdir, closedir): Fix prototypes.
4920 (telldir): Remove declaration.
4921 * ralloc.c (real_morecore, __morecore): Fix prototypes.
4922 * sound.c (alsa_sound_perror): Declare inside #ifdef HAVE_ALSA.
4923 * syssignal.h (strsignal): Fix prototype.
4924 * term.c (tparam): Fix prototype.
4925 (term_get_fkeys_address, term_get_fkeys_kboard, term_get_fkeys_1)
4926 (term_get_fkeys): Set inside "#ifndef DOS_NT".
4927 * vm-limit.c (check_memory_limits): Fix prototypes of real_morecore
4928 and __morecore.
4929 * w32gui.h (XParseGeometry): Fix prototype.
4930 * w32heap.h (get_data_start, get_data_end, init_heap): Fix prototypes.
4931 * w32term.c (my_set_focus): Declare inside #if 0.
4932 * w32term.h (x_window_to_frame, x_display_info_for_name, w32_term_init)
4933 (w32_fill_rect, w32_clear_window, init_crit, delete_crit, signal_quit)
4934 (drain_message_queue, get_next_msg, post_msg, parse_button)
4935 (ClipboardSequence_Proc): Fix prototypes.
4936 (wait_for_sync): Remove declaration.
4937
630b9592
JB
49382010-07-24 Juanma Barranquero <lekktu@gmail.com>
4939
4940 * w32fns.c (w32_to_x_color): Remove, unused.
4941
6a0d6611
AS
49422010-07-24 Andreas Schwab <schwab@linux-m68k.org>
4943
4944 * lisp.h: Remove leftover P_.
4945
4e8608ff
DN
49462010-07-24 Dan Nicolaescu <dann@ics.uci.edu>
4947
4948 * ecrt0.c, unexalpha.c: Remove files, unused.
4949
c8197983
AS
49502010-07-24 Andreas Schwab <schwab@linux-m68k.org>
4951
4952 * cmds.c (internal_self_insert): Make static.
4953 * lisp.h (internal_self_insert): Remove declaration.
4954
97b372d7
JB
49552010-07-23 Juanma Barranquero <lekktu@gmail.com>
4956
33ac0414
JB
4957 * alloc.c (free_float):
4958 * font.c [ENABLE_CHECKING] (font_match_xlfd, font_check_xlfd_parse):
4959 * frame.c (delete_frame_handler):
4960 * ralloc.c (reorder_bloc):
4961 * w32menu.c (menubar_id_to_frame, add_left_right_boundary):
4962 Remove unused static functions.
4963
94da8397
JB
4964 * menu.c (cleanup_popup_menu): Set inside "#ifdef HAVE_NS";
4965 it is called only from NS code.
4966
2e6c8532
JB
4967 * w32term.c (my_set_focus): #ifdef away; it is called only from
4968 "#ifdef 0" code.
4969
97b372d7
JB
4970 * w32fns.c (x_edge_detection):
4971 * xfaces.c (may_use_scalable_font_p):
4972 Remove obsolete static declarations.
4973
7c3320d8
JB
49742010-07-20 Juanma Barranquero <lekktu@gmail.com>
4975
4976 * alloc.c (emacs_blocked_free, emacs_blocked_malloc)
4977 (emacs_blocked_realloc, uninterrupt_malloc):
4978 * fringe.c (w32_reset_fringes):
4979 * image.c (convert_mono_to_color_image, lookup_rgb_color)
4980 (init_color_table, XPutPixel, jpeg_resync_to_restart_wrapper):
4981 * sound.c (be2hs, do_play_sound):
4982 * vm-limit.c (get_lim_data, ret_lim_data):
4983 * w32term.c (x_free_frame_resources):
4984 * xfaces.c (x_create_gc, x_free_gc):
4985 Convert definitions to standard C.
4986
d5273788
SM
49872010-07-20 Stefan Monnier <monnier@iro.umontreal.ca>
4988
4989 * eval.c (Feval, Ffuncall): Use the new names.
4990
4991 * lisp.h (struct Lisp_Subr): Rename `am' to aMANY and add aUNEVALLED.
4992 (DEFUN): Add braces around the union initialisation and use ## to
4993 specify the right union alternative and avoid a cast.
4994
8d16a259
JB
49952010-07-18 Juanma Barranquero <lekktu@gmail.com>
4996
4997 * makefile.w32-in ($(BLD)/keyboard.$(O)): Update dependencies.
4998
3b8eff32
CY
49992010-07-17 Chong Yidong <cyd@stupidchicken.com>
5000
5001 * frame.c (make_initial_frame): Use set_menu_bar_lines (Bug#6660).
5002
499322ce
J
50032010-07-17 Jan Djärv <jan.h.d@swipnet.se>
5004
5005 * gtkutil.c (xg_event_is_for_menubar): Also check that event window
5006 is related to the menu bar (Bug#6499).
a628ad9d 5007 (xg_frame_resized): GTK_IS_MAPPED => gtk_widget_get_mapped, for Gtk 3.0.
499322ce 5008
f6003da5 50092010-07-16 Jan Djärv <jan.h.d@swipnet.se>
b78f9767
J
5010
5011 * xterm.h (x_menubar_window_to_frame): Second parameter is XEvent*.
5012
5013 * xterm.c (handle_one_xevent): Pass event to x_menubar_window_to_frame.
5014
5015 * xmenu.c (x_activate_menubar): Revert previous fix for Bug#6499,
5016 i.e. don't put back ButtonRelease (Bug#6608).
5017
5018 * xfns.c (x_menubar_window_to_frame): Take XEvent as second parameter
5019 instead of Window. Call xg_event_is_for_menubar when
5020 USE_GTK (Bug#6499).
5021
5022 * gtkutil.h (xg_event_is_for_menubar): Declare.
5023
5024 * gtkutil.c (xg_event_is_for_menubar): New function (Bug#6499).
5025
f6003da5 50262010-07-16 Eli Zaretskii <eliz@gnu.org>
1f60c16a
EZ
5027
5028 * w32fns.c (x_set_foreground_color): Fix setting the cursor color
5029 when it's the same as the old foreground. (Bug#6609)
5030
23243f29
J
50312010-07-16 Jan Djärv <jan.h.d@swipnet.se>
5032
5033 * xmenu.c (free_frame_menubar): Only call x_set_window_size if
5034 widget is non-null (Bug#6645).
5035
2b23d2a6
AS
50362010-07-15 Andreas Schwab <schwab@linux-m68k.org>
5037
01b564ff
AS
5038 * xterm.c (x_fully_uncatch_errors, x_trace_wire, x_check_font):
5039 Convert old-style definition.
5040
2b23d2a6
AS
5041 * xmenu.c (create_and_show_popup_menu, xmenu_show): Fix type of
5042 timestamp argument.
5043
c4affd2c
EZ
50442010-07-15 Eli Zaretskii <eliz@gnu.org>
5045
5046 * fringe.c (update_window_fringes): Restore mistakenly reverted
5047 code from 2010-04-17T12:33:05Z!eliz@gnu.org merged in 2010-04-20T13:31:28Z!eliz@gnu.org.
5048
cf28cebc
J
50492010-07-14 Jan Djärv <jan.h.d@swipnet.se>
5050
5051 * xterm.c (xm_scroll_callback, x_process_timeouts): K&R => prototype.
5052 (SET_SAVED_KEY_EVENT): Remove (not used).
5053 (SET_SAVED_MENU_EVENT): Rename to SET_SAVED_BUTTON_EVENT and
5054 remove size parameter.
5055 (handle_one_xevent): Check popup_activated () for menu for Xt also.
5056 Remove #ifdef USE_GTK around finish = X_EVENT_DROP.
5057 Remove #ifdef USE_MOTIF code that did SET_SAVED_BUTTON_EVENT for
5058 ButtonRelease.
6b2c4bd9
J
5059 (x_set_window_size_1): scroll_bar_actual_width is always
5060 SCROLL_BAR_COLS * COLUMN_WIDTH for the purpose of frame sizing.
cf28cebc
J
5061
5062 * xdisp.c (pending_menu_activation): Remove extern declaration.
5063 (prepare_menu_bars): Remove setting of pending_menu_activation.
5064
5065 * xmenu.c (pending_menu_activation): Remove.
f6003da5
JB
5066 (x_activate_menubar): Set popup_activated_flag for Xt also.
5067 Remove setting of pending_menu_activation.
cf28cebc
J
5068 (set_frame_menubar): Remove check of pending_menu_activation.
5069 Declare menubar_size before code. Correct spelling in comment.
5070
f6c1c771
KH
50712010-07-14 Kenichi Handa <handa@m17n.org>
5072
5073 * font.c (font_open_entity): Cancel previous change.
5074 (Ffont_get): Don't check FONT_ENTITY_INDEX of a font-object.
5075
20477505
EZ
50762010-07-13 Eli Zaretskii <eliz@gnu.org>
5077
77defa9a
EZ
5078 Remove subprocesses #ifdefs.
5079 * process.c <inhibit_sentinels>: Move to the common part.
5080 (Fwaiting_for_user_input_p): Move to the common part; return nil
5081 if async subprocesses aren't supported.
5082 * sysdep.c (wait_for_termination) [!MSDOS]: Don't compile on
5083 MS-DOS. Remove "#ifdef subprocesses".
5084 (sys_subshell, sys_select): Remove "#ifdef subprocesses".
5085 (gettimeofday): Remove "#ifdef subprocesses".
5086 (wait_without_blocking): Remove function.
5087 (flush_pending_output, child_setup_tty): Don't compile on MS-DOS.
5088 Remove "#ifdef subprocesses".
5089 (child_setup_tty): Use WINDOWSNT instead of DOS_NT, since not
5090 compiled on MS-DOS.
5091 * callproc.c (Fcall_process) [!MSDOS]: Don't call
5092 wait_for_termination on MS-DOS.
5093 * emacs.c (shut_down_emacs): Remove "#ifndef subprocesses" from
5094 initialization of inhibit_sentinels.
5095 * keyboard.c (record_asynch_buffer_change): Remove "#ifdef
5096 subprocesses" conditional.
5097 * callproc.c (Fcall_process) [!subprocesses]: Don't call
5098 wait_for_termination, since `buffer' cannot be an integer when
5099 async subprocesses are not supported
5100 * xdisp.c (decode_mode_spec): Use `MSDOS' instead of `subprocesses'
5101 for ifdefing away the call to Fprocess_status.
5102
20477505
EZ
5103 * process.c (add_keyboard_wait_descriptor) [!subprocesses]: Ifdef
5104 away the entire body of the function.
5105
b3ffc17c
DN
51062010-07-13 Dan Nicolaescu <dann@ics.uci.edu>
5107
01faa934
DN
5108 Remove subprocesses #ifdefs from term.c.
5109 * process.c (add_keyboard_wait_descriptor)
5110 (delete_keyboard_wait_descriptor): Move to common section, do
5111 nothing when subprocesses is not defined.
a628ad9d
JB
5112 * term.c (Fsuspend_tty, Fresume_tty, init_tty):
5113 Remove subprocesses #ifdefs.
01faa934 5114
b3ffc17c
DN
5115 Convert maybe_fatal to standard C.
5116 * lisp.h (verror): Declare.
5117 * eval.c (verror): New function containing the code from ...
5118 (error): ... this. Call verror.
5119 * term.c (vfatal): New function containing the code from ...
5120 (fatal): ... this. Call vfatal.
5121 (maybe_fatal): Convert to standard C, use variable number of
5122 arguments. Declare as non-return.
5123 (init_tty): Fix maybe_fatal call.
5124
0521f580
DN
51252010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
5126
5127 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_expose)
5128 (_scroll_bar_note_movement): Convert definitions to standard C.
5129 * xmenu.c (menu_help_callback, pop_down_menu, xmenu_show):
5130 * xfns.c (hack_wm_protocols, x_window, x_window): Likewise.
5131
ebd15611
DN
51322010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
5133
5134 * xterm.c (x_frame_of_widget, x_alloc_nearest_color_for_widget)
5135 (x_alloc_lighter_color_for_widget, cvt_string_to_pixel)
5136 (cvt_pixel_dtor, x_window_to_menu_bar, xt_action_hook)
5137 (xaw_jump_callback, xaw_scroll_callback)
5138 (x_create_toolkit_scroll_bar, x_set_toolkit_scroll_bar_thumb)
bba3e508
SM
5139 (x_wm_set_size_hint, x_activate_timeout_atimer):
5140 Convert definitions to standard C.
ebd15611
DN
5141 * xmenu.c (menubar_id_to_frame, popup_get_selection)
5142 (popup_activate_callback, popup_deactivate_callback)
5143 (menu_highlight_callback, menubar_selection_callback)
5144 (apply_systemfont_to_dialog, apply_systemfont_to_menu)
5145 (free_frame_menubar, popup_selection_callback, as)
5146 (create_and_show_popup_menu, dialog_selection_callback)
5147 (create_and_show_dialog):
5148 * xfns.c (hack_wm_protocols, x_window):
5149 * xfaces.c (x_update_menu_appearance):
5150 * widget.c (get_default_char_pixel_size, pixel_to_char_size)
5151 (char_to_pixel_size, round_size_to_char, get_wm_shell)
5152 (set_frame_size, update_wm_hints, setup_frame_gcs)
5153 (update_various_frame_slots, update_from_various_frame_slots)
5154 (EmacsFrameInitialize, EmacsFrameRealize, EmacsFrameResize)
5155 (EmacsFrameSetValues, EmacsFrameQueryGeometry)
5156 (EmacsFrameSetCharSize, widget_store_internal_border): Likewise.
5157
de06a2dd
AS
51582010-07-12 Andreas Schwab <schwab@linux-m68k.org>
5159
a628ad9d 5160 * dbusbind.c (xd_initialize): Don't compare boolean with a constant.
de06a2dd 5161
fc549af9
EZ
51622010-07-12 Eli Zaretskii <eliz@gnu.org>
5163
5164 * process.c (setup_process_coding_systems): Move to the part
5165 shared by non-subprocesses systems, and make its body empty when
5166 subprocesses is not defined.
5167 (close_process_descs): Move to the part shared by non-subprocesses
5168 systems.
1408902e
EZ
5169 (wait_reading_process_output) [!subprocesses]: Convert arg list to
5170 ANSI C.
fc549af9 5171
d5a3eaaf
AS
51722010-07-12 Andreas Schwab <schwab@linux-m68k.org>
5173
5174 * editfns.c (transpose_markers): Convert old-style definition.
5175 * emacs.c (abort, shut_down_emacs, fixup_locale)
5176 (synchronize_system_time_locale)
5177 (synchronize_system_messages_locale, syms_of_emacs): Likewise.
5178 * floatfns.c (extract_float, matherr, init_floatfns)
5179 (syms_of_floatfns): Likewise.
5180 * fns.c (make_hash_table): Likewise.
5181 * ftfont.c (ftfont_get_otf, ftfont_otf_features)
5182 (ftfont_otf_capability, ftfont_get_glyph_id, ftfont_get_metrics)
5183 (ftfont_drive_otf, ftfont_shape_by_flt, ftfont_shape)
5184 (ftfont_variation_glyphs): Likewise.
5185 * gtkutil.c (xg_create_widget, xg_modify_menubar_widgets): Likewise.
5186 * keymap.c (describe_map_tree, describe_map, describe_vector): Likewise.
5187 * lread.c (read_filtered_event): Likewise.
5188 * minibuf.c (read_minibuf_noninteractive, read_minibuf): Likewise.
5189 * process.c (wait_reading_process_output): Likewise.
5190 * scroll.c (do_line_insertion_deletion_costs): Likewise.
5191 * search.c (search_buffer, boyer_moore): Likewise.
5192 * syntax.c (scan_sexps_forward): Likewise.
5193 * xdisp.c (try_scrolling): Likewise.
5194 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
5195 (face_at_string_position): Likewise.
5196 * xfns.c (x_default_scroll_bar_color_parameter): Likewise.
5197 * xselect.c (x_get_window_property, receive_incremental_selection)
5198 (x_get_window_property_as_lisp_data, lisp_data_to_selection_data):
5199 Likewise.
5200 * xterm.c (x_draw_relief_rect, x_draw_box_rect): Likewise.
5201
6f704c76
DN
52022010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
5203
ded80a25
DN
5204 * callproc.c (child_setup): Remove subprocesses conditional.
5205 Remove code dealing with SET_EMACS_PRIORITY, unused.
5206
49d937f4 5207 * buffer.c (Fset_buffer_multibyte): Remove subprocesses conditional.
2e31d424
DN
5208 * process.c (close_process_descs): Use DOS_NT instead of WINDOWSNT.
5209
5210 * emacs.c (__do_global_ctors, __do_global_ctors_aux)
5211 (__do_global_dtors, __main): Use void in definition.
5212 (main): Remove code dealing with SET_EMACS_PRIORITY, unused.
5213 Remove SYMS_MACHINE code, unused. Remove SYMS_SYSTEM, inline
5214 the only users from ...
5215 * s/ms-w32.h (SYMS_SYSTEM): ... here and ...
5216 * s/msdos.h (SYMS_SYSTEM): ... here. Remove.
5217 (HAVE_VOLATILE): Remove, unused.
5218
6f704c76
DN
5219 Convert more function definitions to standard C.
5220 * xdisp.c (window_box_edges, handle_single_display_spec)
5221 (display_string): Convert definition to standard C.
5222 * scroll.c (do_direct_scrolling, scrolling_1):
5223 * dispnew.c (allocate_matrices_for_frame_redisplay)
5224 (mirrored_line_dance):
5225 * coding.c (code_convert_string):
5226 * charset.c (map_charset_chars):
5227 * ccl.c (Fccl_program_p, Fccl_execute, Fccl_execute_on_string)
5228 (Fregister_ccl_program, Fregister_code_conversion_map):
5229 * keyboard.c (kbd_buffer_nr_stored): Likewise.
5230 (head_table): Make static and const.
5231
e6cfa7c3
AS
52322010-07-12 Andreas Schwab <schwab@linux-m68k.org>
5233
5234 * Makefile.in (C_WARNINGS_SWITCH, PROFILING_CFLAGS)
5235 (PROFILING_LDFLAGS): Set from substitution.
5236 (ALL_CFLAGS): Add C_WARNINGS_SWITCH and PROFILING_CFLAGS, put
5237 CFLAGS last.
5238
892dd565
KH
52392010-07-12 Kenichi Handa <handa@m17n.org>
5240
6f2cdcd1
KH
5241 * Makefile.in (lisp): Change hebrew.el to hebrew.elc.
5242 (shortlisp): Likewise.
5243
892dd565
KH
5244 * font.h (enum font_property_index): New member FONT_ENTITY_INDEX.
5245
5246 * font.c (font_open_entity): Record ENTITY in FONT_OBJECT's slot
5247 of FONT_ENTITY_INDEX.
5248 (Ffont_get): If KEY is :otf and the font-object doesn't have the
5249 property, get the property value dynamically.
5250 (Ffont_put): Accept font-entity and font-object too.
ef1b0ba7 5251 (Ffont_get_glyhphs): Rename from Fget_font_glyphs. Arguments and
892dd565 5252 return value changed.
bba3e508 5253 (syms_of_font): Adjust for the above change.
892dd565 5254
ae96d47a
AS
52552010-07-11 Andreas Schwab <schwab@linux-m68k.org>
5256
c8fc18ee
AS
5257 * blockinput.h: Remove obsolete comment.
5258
89887d67
AS
5259 * lisp.h: Include <stddef.h>.
5260 (OFFSETOF): Don't define.
5261 (VECSIZE): Use offsetof instead of OFFSETOF.
5262 (PSEUDOVECSIZE): Likewise.
5263 * process.c (conv_sockaddr_to_lisp): Likewise.
5264 * alloc.c: Don't include <stddef.h>.
5265 * buffer.h (PER_BUFFER_VAR_OFFSET): Use offsetof.
5266
ae96d47a
AS
5267 * process.c: Remove obsolete comment.
5268
635c0aa1
CY
52692010-07-11 Chong Yidong <cyd@stupidchicken.com>
5270
5271 * xfaces.c (Vface_remapping_alist): Doc fix (Bug#6091).
5272
a64df650
AS
52732010-07-11 Andreas Schwab <schwab@linux-m68k.org>
5274
8966b757
AS
5275 * callint.c (Fcall_interactively): Use strchr, strrchr instead of
5276 index, rindex.
5277 * doc.c (get_doc_string, Fsnarf_documentation): Likewise.
5278 * editfns.c (Fuser_full_name, Fformat): Likewise.
5279 * emacs.c (argmatch, sort_args, decode_env_path): Likewise.
5280 * fileio.c (Ffile_symlink_p): Likewise.
5281 * filelock.c (current_lock_owner): Likewise.
5282 * font.c (font_parse_name, font_parse_family_registry): Likewise.
5283 * fontset.c (fontset_pattern_regexp): Likewise.
5284 * lread.c (read1): Likewise.
5285 * sysdep.c (init_system_name): Likewise.
5286 * xfns.c (select_visual): Likewise.
5287 * s/hpux10-20.h (index, rindex): Don't define.
5288 * s/ms-w32.h (index): Likewise.
5289 * s/usg5-4.h: Likewise.
5290
cf237e27
AS
5291 * callproc.c (relocate_fd): Use F_DUPFD if defined.
5292
a8fe7202
AS
5293 * alloc.c (pending_malloc_warning, malloc_warning): Add const.
5294 * callproc.c (relocate_fd, getenv_internal_1, getenv_internal)
5295 (egetenv): Likewise.
5296 * doprnt.c (doprnt): Likewise.
5297 * editfns.c (set_time_zone_rule, format2): Likewise.
5298 * emacs.c (decode_env_path): Likewise.
5299 * eval.c (signal_error, error): Likewise.
5300 * insdel.c (replace_range_2): Likewise.
5301 * keyboard.c (cmd_error_internal): Likewise.
5302 * lread.c (isfloat_string, make_symbol, dir_warning): Likewise.
5303 * print.c (write_string, write_string_1, print_error_message):
5304 Likewise.
5305 * vm-limit.c (warn_function, memory_warnings): Likewise.
5306 * xdisp.c (message1, message1_nolog, message_with_string)
5307 (vmessage, message, message_nolog): Likewise.
5308 * emacs.c: Remove duplicate declaration.
5309 * keyboard.h: Likewise.
5310 * lisp.h: Update prototypes.
5311
bb8e180f
AS
5312 * eval.c: Fix indentation problem.
5313
83380e65
AS
5314 * keyboard.c: Include "process.h"
5315
a64df650
AS
5316 * eval.c: Remove obsolete noinline declaration.
5317 * fns.c: Likewise.
5318
6a8033e1
KR
53192010-07-11 Ken Raeburn <raeburn@raeburn.org>
5320
5321 * doprnt.c (doprnt): Take a va_list argument instead of count and
5322 pointer.
5323 * eval.c (error): Change to a standard-C variadic function.
ef1b0ba7 5324 * xdisp.c (vmessage): Rename from message, made static, and
6a8033e1
KR
5325 changed to take a va_list argument.
5326 (message): New variadic wrapper.
5327 (message_nolog): Now a variadic function, calling vmessage.
5328 * lisp.h: Include stdarg.h for va_list.
5329 (doprnt, error, message, message_nolog): Decls updated.
5330
462aa963
EZ
53312010-07-11 Eli Zaretskii <eliz@gnu.org>
5332
5333 * process.c (syms_of_process) <delete-exited-processes>: Define
5334 even if !subprocesses.
5335 (delete_exited_processes): Ditto.
5336
5337 * msdos.c (syms_of_msdos) <delete-exited-processes>: Remove DEFVAR.
5338 (delete_exited_processes): Don't define.
5339
48104462
CY
53402010-07-10 Chong Yidong <cyd@stupidchicken.com>
5341
5342 * frame.c (make_frame): Initialize menu_bar_lines and
5343 tool_bar_lines members.
bba3e508
SM
5344 (make_initial_frame, make_terminal_frame):
5345 Initialize menu_bar_lines using value of menu-bar-mode.
48104462
CY
5346
5347 * msdos.c (IT_set_frame_parameters): Don't set menu-bar-lines.
5348
f388c88a
EZ
53492010-07-10 Eli Zaretskii <eliz@gnu.org>
5350
5351 * process.c: Reshuffle #include's. Condition some of the global
5352 and static variables on `subprocesses'.
5353 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
5354 Leave only one implementation.
5355 (Fget_buffer_process, Fprocess_inherit_coding_system_flag)
5356 (kill_buffer_processes, Flist_system_processes)
5357 (Fprocess_attributes, init_process, syms_of_process): Unify the
5358 implementations for with subprocesses and without them.
5359
723f5a07
J
53602010-07-09 Jan Djärv <jan.h.d@swipnet.se>
5361
5362 * xmenu.c (set_frame_menubar): Must realize menubar_widget to get the
5363 correct size for Motif.
5364 (free_frame_menubar): Call x_set_window_size to update frame size.
5365
5366 * xfns.c (x_window): Set borderWidth to 0 for pane and
5367 EmacsFrame. Frame size calculation is wrong otherwise.
5368
2536a4b7
MA
53692010-07-09 Michael Albinus <michael.albinus@gmx.de>
5370
5371 * dbusbind.c (xd_initialize): Add new argument RAISE_ERROR, which
5372 allows to suppress errors when polling in Emacs' main loop.
5373 (Fdbus_init_bus, Fdbus_get_unique_name, Fdbus_call_method)
5374 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
5375 (Fdbus_method_error_internal, Fdbus_send_signal)
5376 (xd_get_dispatch_status, xd_read_message, Fdbus_register_signal)
5377 (Fdbus_register_method): Use it. (Bug#6579)
5378
5842a27b
DN
53792010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
5380
5381 * alloc.c: Convert DEFUNs to standard C.
5382 * buffer.c:
5383 * bytecode.c:
5384 * callint.c:
5385 * callproc.c:
5386 * casefiddle.c:
5387 * casetab.c:
5388 * category.c:
5389 * character.c:
5390 * charset.c:
5391 * chartab.c:
5392 * cmds.c:
5393 * coding.c:
5394 * composite.c:
5395 * data.c:
5396 * dbusbind.c:
5397 * dired.c:
5398 * dispnew.c:
5399 * doc.c:
5400 * dosfns.c:
5401 * editfns.c:
5402 * emacs.c:
5403 * eval.c:
5404 * fileio.c:
5405 * filelock.c:
5406 * floatfns.c:
5407 * fns.c:
5408 * font.c:
5409 * fontset.c:
5410 * frame.c:
5411 * fringe.c:
5412 * image.c:
5413 * indent.c:
5414 * insdel.c:
5415 * keyboard.c:
5416 * keymap.c:
5417 * lread.c:
5418 * macros.c:
5419 * marker.c:
5420 * menu.c:
5421 * minibuf.c:
5422 * msdos.c:
5423 * nsfns.m:
5424 * nsmenu.m:
5425 * nsselect.m:
5426 * print.c:
5427 * process.c:
5428 * search.c:
5429 * sound.c:
5430 * syntax.c:
5431 * term.c:
5432 * terminal.c:
5433 * textprop.c:
5434 * undo.c:
5435 * w16select.c:
5436 * w32console.c:
5437 * w32fns.c:
5438 * w32font.c:
5439 * w32menu.c:
5440 * w32proc.c:
5441 * w32select.c:
5442 * window.c:
5443 * xdisp.c:
5444 * xfaces.c:
5445 * xfns.c:
5446 * xmenu.c:
5447 * xselect.c:
5448 * xsettings.c:
5449 * xsmfns.c: Likewise.
5450
d568829b
EZ
54512010-07-08 Eli Zaretskii <eliz@gnu.org>
5452
5453 * process.c (kbd_is_on_hold, hold_keyboard_input)
5454 (unhold_keyboard_input, kbd_on_hold_p) [!subprocesses]: Define.
5455
52214050
J
54562010-07-08 Jan Djärv <jan.h.d@swipnet.se>
5457
5458 * xmenu.c (set_frame_menubar, create_and_show_popup_menu)
5459 (create_and_show_dialog): Don't call apply_systemfont_to_(menu|dialog)
5460 unless USE_LUCID.
5461
313d9eb2
DN
54622010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
5463
a628ad9d
JB
5464 * xdisp.c (store_mode_line_noprop_char): Remove K&R alternative
5465 declaration.
d8825aa3 5466
295d0d8f
DN
5467 Clean up include guards.
5468 * tparam.c: Remove include guards for config.h, string.h and code
5469 that assumes #ifndef emacs.
5470 * termcap.c:
5471 * unexalpha.c:
5472 * sysdep.c:
5473 * filemode.c:
5474 * filelock.c:
5475 * bidi.c: Likewise.
5476
49d9e6b0
DN
5477 Remove prefix-args.c
5478 * prefix-args.c: Remove file.
5479 * autodeps.mk (ALLOBJS): Remove reference to prefix-args.
5480 * Makefile.in (temacs${EXEEXT}): Remove references to
5481 PRE_EDIT_LDFLAGS and POST_EDIT_LDFLAGS.
5482 (mostlyclean): Remove reference to prefix-args.
5483 (prefix-args): Remove.
5484
313d9eb2
DN
5485 Simplify cstart_of_data, start_of_code and related code.
5486 * mem-limits.h: Remove !emacs and _LIBC conditional code.
5487 (start_of_data): Merge into start_of_data function.
5488 * sysdep.c (start_of_text): Remove. Move simplified versions of
5489 it in the only users: unexaix.c and unexec.c.
5490 (read_input_waiting): Remove local declaration of quit_char.
5491 (start, etext): Remove declarations.
5492 (start_of_data): Merge with the version in mem-limits.h and move
5493 to vm-limits.c.
5494 * vm-limit.c (start_of_data): Merged and simplified version of the
5495 code formerly in mem-limits.h and sysdep.c.
5496 * unexec.c (start): New declaration, moved from sysdep.c.
5497 (start_of_text): Simplified version of the code formerly in sysdep.c.
5498 * unexaix.c (start_of_text): Simplified version of the code
5499 formerly in sysdep.c.
5500 * m/alpha.h (HAVE_TEXT_START): Remove.
5501 (TEXT_START): Move ...
5502 * unexalpha.c (TEXT_START): ... here.
5503 * s/hpux10-20.h (TEXT_START): Remove.
5504 * s/darwin.h (TEXT_START):
5505 * m/mips.h (TEXT_START):
5506 * m/macppc.h (HAVE_TEXT_START):
5507 * m/m68k.h (TEXT_START):
5508 * m/iris4d.h (TEXT_START):
5509 * m/intel386.h (TEXT_START):
5510 * m/ibmrs6000.h (TEXT_START):
5511 * m/ia64.h (HAVE_TEXT_START):
5512 * s/msdos.h (TEXT_START): Likewise.
5513
72af86bd
AS
55142010-07-07 Andreas Schwab <schwab@linux-m68k.org>
5515
5516 * alloc.c (overrun_check_malloc, overrun_check_realloc)
5517 (overrun_check_free, xstrdup, allocate_string)
5518 (allocate_string_data, compact_small_strings, Fmake_string)
5519 (make_unibyte_string, make_multibyte_string)
5520 (make_string_from_bytes, make_specified_string, make_float)
5521 (Fcons, allocate_terminal, allocate_frame, make_pure_string)
5522 (Fgarbage_collect): Replace bcopy, safe_bcopy, bzero, bcmp by
5523 memcpy, memmove, memset, memcmp.
5524 * atimer.c (start_atimer, set_alarm): Likewise.
5525 * buffer.c (clone_per_buffer_values, report_overlay_modification)
5526 (mmap_realloc, init_buffer_once): Likewise.
5527 * callint.c (Fcall_interactively): Likewise.
5528 * callproc.c (Fcall_process, Fcall_process_region, child_setup)
5529 (getenv_internal_1): Likewise.
5530 * casefiddle.c (casify_object): Likewise.
5531 * ccl.c (ccl_driver): Likewise.
5532 * character.c (str_as_multibyte, str_to_multibyte): Likewise.
5533 * charset.c (load_charset_map_from_file)
5534 (load_charset_map_from_file, load_charset_map_from_vector)
5535 (Fdefine_charset_internal): Likewise.
5536 * cm.c (Wcm_clear): Likewise.
5537 * coding.c (decode_eol, decode_coding_object)
5538 (Fset_coding_system_priority, make_subsidiaries): Likewise.
5539 * data.c (Faset): Likewise.
5540 * dired.c (directory_files_internal, file_name_completion_stat):
5541 Likewise.
5542 * dispnew.c (new_glyph_matrix, adjust_glyph_matrix)
5543 (clear_glyph_row, copy_row_except_pointers)
5544 (copy_glyph_row_contents, new_glyph_pool, realloc_glyph_pool)
5545 (save_current_matrix, restore_current_matrix)
5546 (build_frame_matrix_from_leaf_window, mirrored_line_dance)
5547 (mirror_line_dance, scrolling_window): Likewise.
5548 * doc.c (Fsnarf_documentation, Fsubstitute_command_keys):
5549 Likewise.
5550 * doprnt.c (doprnt): Likewise.
5551 * editfns.c (Fuser_full_name, make_buffer_string_both)
5552 (Fmessage_box, Fformat, Ftranspose_regions): Likewise.
5553 * emacs.c (sort_args): Likewise.
5554 * eval.c (Fapply, Ffuncall): Likewise.
5555 * fileio.c (Ffile_name_directory, make_temp_name)
5556 (Fexpand_file_name, search_embedded_absfilename)
5557 (Fsubstitute_in_file_name, Ffile_symlink_p, Finsert_file_contents)
5558 (auto_save_error): Likewise.
5559 * fns.c (Fstring_equal, Fcopy_sequence, concat)
5560 (string_to_multibyte, Fstring_as_unibyte, Fstring_as_multibyte)
5561 (internal_equal, Fclear_string, larger_vector, copy_hash_table)
5562 (Fmake_hash_table): Likewise.
5563 * fringe.c (Fdefine_fringe_bitmap): Likewise.
5564 * ftfont.c (ftfont_text_extents): Likewise.
5565 * getloadavg.c (getloadavg): Likewise.
5566 * image.c (define_image_type, make_image, make_image_cache)
5567 (x_create_x_image_and_pixmap, xbm_image_p)
5568 (w32_create_pixmap_from_bitmap_data, xbm_load, xpm_lookup_color)
5569 (xpm_image_p, x_create_bitmap_from_xpm_data, xpm_load)
5570 (init_color_table, x_build_heuristic_mask, pbm_image_p, pbm_load)
5571 (png_image_p, png_read_from_memory, png_load, jpeg_image_p)
5572 (tiff_image_p, tiff_read_from_memory, gif_image_p)
5573 (gif_read_from_memory, gif_load, svg_image_p, gs_image_p):
5574 Likewise.
5575 * indent.c (scan_for_column, compute_motion): Likewise.
5576 * insdel.c (gap_left, gap_right, make_gap_smaller, copy_text)
5577 (insert_1_both, insert_from_gap, replace_range_2): Likewise.
5578 * intervals.c (reproduce_tree, reproduce_tree_obj): Likewise.
5579 * keyboard.c (echo_char, save_getcjmp, restore_getcjmp)
5580 (kbd_buffer_store_event_hold, apply_modifiers_uncached)
5581 (store_user_signal_events, menu_bar_items, tool_bar_items)
5582 (process_tool_bar_item, append_tool_bar_item)
5583 (read_char_minibuf_menu_prompt, read_key_sequence)
5584 (Fread_key_sequence, Fread_key_sequence_vector, Frecent_keys):
5585 Likewise.
5586 * keymap.c (current_minor_maps, Fdescribe_buffer_bindings):
5587 Likewise.
5588 * lisp.h (STRING_COPYIN): Likewise.
5589 * lread.c (Fload, read1, oblookup): Likewise.
5590 * msdos.c (Frecent_doskeys): Likewise.
5591 * nsfns.m (Fx_create_frame): Likewise.
5592 * nsfont.m (nsfont_open, nsfont_text_extents, ns_glyph_metrics):
5593 Likewise.
5594 * nsimage.m (EmacsImage-initFromSkipXBM:width:height:)
5595 (EmacsImage-initForXPMWithDepth:width:height:flip:length:):
5596 Likewise.
5597 * nsmenu.m (ns_update_menubar): Likewise.
5598 * nsterm.m (ns_draw_fringe_bitmap, ns_term_init): Likewise.
5599 * print.c (print_unwind, printchar, strout, print_string)
5600 (print_error_message): Likewise.
5601 * process.c (conv_lisp_to_sockaddr, set_socket_option)
5602 (Fmake_network_process, Fnetwork_interface_list)
5603 (Fnetwork_interface_info, read_process_output, Fprocess_send_eof)
5604 (init_process): Likewise.
5605 * ralloc.c (resize_bloc, r_alloc_sbrk, r_alloc_init): Likewise.
5606 * regex.c (init_syntax_once, regex_compile, re_compile_fastmap):
5607 Likewise.
5608 * scroll.c (do_scrolling, do_direct_scrolling)
5609 (scrolling_max_lines_saved): Likewise.
5610 * search.c (search_buffer, wordify, Freplace_match): Likewise.
5611 * sound.c (wav_init, au_init, Fplay_sound_internal): Likewise.
5612 * syntax.c (skip_chars, skip_syntaxes): Likewise.
5613 * sysdep.c (child_setup_tty, sys_subshell, emacs_get_tty)
5614 (emacs_set_tty): Likewise.
5615 * term.c (encode_terminal_code, calculate_costs)
5616 (produce_special_glyphs, create_tty_output, init_tty, delete_tty):
5617 Likewise.
5618 * termcap.c (tgetst1, gobble_line): Likewise.
5619 * termhooks.h (EVENT_INIT): Likewise.
5620 * tparam.c (tparam1): Likewise.
5621 * unexalpha.c (unexec): Likewise.
5622 * unexec.c (write_segment): Likewise.
5623 * unexmacosx.c (unexec_write_zero): Likewise.
5624 * w32fns.c (w32_wnd_proc, Fx_create_frame, x_create_tip_frame)
5625 (Fx_file_dialog, Fsystem_move_file_to_trash): Likewise.
5626 * w32font.c (w32font_list_family, w32font_text_extents)
5627 (w32font_list_internal, w32font_match_internal)
5628 (w32font_open_internal, compute_metrics, Fx_select_font):
5629 Likewise.
5630 * w32menu.c (set_frame_menubar, add_menu_item)
5631 (w32_menu_display_help, w32_free_submenu_strings): Likewise.
5632 * w32term.c (XCreateGC, w32_initialize_display_info): Likewise.
5633 * w32uniscribe.c (uniscribe_list_family): Likewise.
5634 * w32xfns.c (get_next_msg, post_msg, prepend_msg): Likewise.
5635 * window.c (make_window, replace_window, set_window_buffer)
5636 (Fsplit_window): Likewise.
5637 * xdisp.c (init_iterator, RECORD_OVERLAY_STRING, reseat_to_string)
5638 (add_to_log, message3, x_consider_frame_title)
5639 (append_space_for_newline, extend_face_to_end_of_line)
5640 (decode_mode_spec_coding, init_glyph_string): Likewise.
5641 * xfaces.c (x_create_gc, get_lface_attributes_no_remap)
5642 (Finternal_copy_lisp_face, Finternal_merge_in_global_face)
5643 (face_attr_equal_p, make_realized_face, make_face_cache)
5644 (free_realized_faces, lookup_named_face, smaller_face)
5645 (face_with_height, lookup_derived_face)
5646 (x_supports_face_attributes_p, Finternal_set_font_selection_order)
5647 (Finternal_set_font_selection_order, realize_default_face)
5648 (compute_char_face, face_at_buffer_position)
5649 (face_for_overlay_string, face_at_string_position, merge_faces):
5650 Likewise.
5651 * xfns.c (xic_create_fontsetname, Fx_create_frame)
5652 (Fx_window_property, x_create_tip_frame)
5653 (Fx_backspace_delete_keys_p): Likewise.
5654 * xfont.c (xfont_list, xfont_match, xfont_list_family)
5655 (xfont_text_extents): Likewise.
5656 * xmenu.c (set_frame_menubar, xmenu_show): Likewise.
5657 * xrdb.c (magic_file_p, x_get_resource): Likewise.
5658 * xselect.c (x_queue_event, x_get_window_property)
5659 (receive_incremental_selection): Likewise.
5660 * xsmfns.c (x_session_check_input): Likewise.
5661 * xterm.c (x_send_scroll_bar_event, SET_SAVED_MENU_EVENT)
5662 (handle_one_xevent, x_check_errors, xim_initialize, x_term_init):
5663 Likewise.
5664 * character.h (BCOPY_SHORT): Removed.
5665 * config.in: Regenerate.
5666 * dispnew.c (safe_bcopy): Only define as dummy if PROFILING.
5667 * emacs.c (main) [PROFILING]: Don't declare
5668 dump_opcode_frequencies.
5669 * lisp.h (safe_bcopy): Remove declaration.
5670 (memset) [!HAVE_MEMSET]: Declare.
5671 (memcpy) [!HAVE_MEMCPY]: Likewise.
5672 (memmove) [!HAVE_MEMMOVE]: Likewise.
5673 (memcmp) [!HAVE_MEMCMP]: Likewise.
5674 * s/ms-w32.h (bzero, bcopy, bcmp, GAP_USE_BCOPY)
5675 (BCOPY_UPWARD_SAFE, BCOPY_DOWNWARD_SAFE, HAVE_BCOPY, HAVE_BCMP):
5676 Don't define.
5677 (HAVE_MEMCMP, HAVE_MEMCPY, HAVE_MEMMOVE, HAVE_MEMSET): Define.
5678 * s/msdos.h (GAP_USE_BCOPY, BCOPY_UPWARD_SAFE)
5679 (BCOPY_DOWNWARD_SAFE): Don't define.
5680 * sysdep.c (memset) [!HAVE_MEMSET]: Define.
5681 (memcpy) [!HAVE_MEMCPY]: Define.
5682 (memmove) [!HAVE_MEMMOVE]: Define.
5683 (memcmp) [!HAVE_MEMCMP]: Define.
5684
cb768704
J
56852010-07-07 Jan Djärv <jan.h.d@swipnet.se>
5686
5687 * process.c (kbd_is_on_hold): New variable.
a628ad9d
JB
5688 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
5689 New functions.
cb768704
J
5690 (wait_reading_process_output): If kbd_on_hold_p returns non-zero,
5691 select on empty input mask.
5692 (init_process): Initialize kbd_is_on_hold to 0.
5693
5694 * process.h (hold_keyboard_input, unhold_keyboard_input)
5695 (kbd_on_hold_p): Declare.
5696
5697 * keyboard.c (input_available_signal): Declare.
5698 (kbd_buffer_nr_stored): New function.
5699 (kbd_buffer_store_event_hold): If kbd_buffer_nr_stored returns
5700 more than KBD_BUFFER_SIZE/2, stop reding input (Bug#6571).
5701 (kbd_buffer_get_event): If input is suspended and kbd_buffer_nr_stored
5702 returns less than KBD_BUFFER_SIZE/4, resume reding input (Bug#6571).
5703 (tty_read_avail_input): If input is on hold, return.
5704 Don't read more that free slots in kbd_buffer (Bug#6571).
5705
3a8ce822
EZ
57062010-07-07 Eli Zaretskii <eliz@gnu.org>
5707
5708 * msdos.h:
5709 * msdos.c:
5710 * dosfns.c:
5711 * w16select.c: Convert function definitions to ANSI C.
5712
a628ad9d
JB
5713 * msdos.h (ctrl_break_func, install_ctrl_break_check):
5714 Remove unused prototypes.
3a8ce822 5715
cf84bb53
JB
57162010-07-07 Juanma Barranquero <lekktu@gmail.com>
5717
5718 * coding.c, sysdep.c: Convert some more functions to standard C.
5719
1a4990fb
JB
57202010-07-07 Juanma Barranquero <lekktu@gmail.com>
5721
5722 * coding.c (decode_coding_gap, encode_coding_gap, decode_coding_object)
5723 (encode_coding_object): Use SPECPDL_INDEX.
5724 (syms_of_coding): Use DOS_NT.
5725
c0f2f16b
DN
57262010-07-07 Dan Nicolaescu <dann@ics.uci.edu>
5727
48fb6855
DN
5728 * intervals.h (interval): Use EMACS_UINT instead of unsigned EMACS_INT.
5729
c0f2f16b
DN
5730 Make the function member of Lisp_Subr use standard C prototypes.
5731 * lisp.h (struct Lisp_Subr): Use a union for the function member.
5732 (DECL_ALIGN): Add a cast for the function.
5733 * eval.c (Feval, Ffuncall): Use the proper type for each type
5734 function call.
5735
67aecef9
CY
57362010-07-06 Chong Yidong <cyd@stupidchicken.com>
5737
5738 * fringe.c (draw_fringe_bitmap_1): Use lookup_named_face to get
5739 fringe face id, so face-remapping-alist works (Bug#6091).
5740
b56ceb92
JB
57412010-07-06 Juanma Barranquero <lekktu@gmail.com>
5742
5743 * w32.c, w32console.c, w32fns.c, w32font.c, w32heap.c, w32inevt.c
5744 * w32menu.c, w32proc.c, w32reg.c, w32select.c, w32term.c
5745 * w32uniscribe.c, w32xfns.c: Convert function definitions to standard C.
5746
7af07b96
AS
57472010-07-06 Andreas Schwab <schwab@linux-m68k.org>
5748
5749 * xterm.c (x_get_keysym_name): Change type of parameter to int.
5750 * lisp.h: Declare x_get_keysym_name.
5751 * keyboard.c (modify_event_symbol): Don't declare
5752 x_get_keysym_name here.
5753
69e24e34
DN
57542010-07-06 Dan Nicolaescu <dann@ics.uci.edu>
5755
5756 * ecrt0.c: Revert conversion to standard C.
5757
d3da34e0 57582010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
d2aa42f8
DN
5759
5760 * vm-limit.c (memory_warnings):
5761 * keyboard.c (modify_event_symbol):
5762 * floatfns.c (rounding_driver, ceiling2, floor2, truncate2)
5763 (round2, emacs_rint):
5764 * process.c (send_process, old_sigpipe): Convert function
5765 definitions and declarations to standard C.
5766
57672010-07-05 Juanma Barranquero <lekktu@gmail.com>
d3da34e0
JB
5768
5769 * buffer.c, cm.c, eval.c, keyboard.c, process.c, term.c, vm-limit.c,
5770 * xdisp.c: Convert function definitions to standard C.
5771
5772 * cm.c (cmputc): Arg C is now int, not char.
5773 * process.c (Fmake_network_process): Cast sockaddr_in* to sockaddr*.
5774
00be444c
J
57752010-07-05 James Cloos <cloos@jhcloos.com>
5776
5777 * xterm.h (Xatom_net_wm_name, Xatom_net_wm_icon_name): New.
5778
5779 * xterm.c (x_term_init): Intern the _NET_WM_NAME and
5780 _NET_WM_ICON_NAME atoms.
5781
5782 * xfns.c (x_set_name_internal): Set the EWMH _NET_WM_NAME
5783 and _NET_WM_ICON_NAME properties, too, matching what is
5784 done in the Gtk+ case.
5785
e4c8d29a
J
57862010-07-05 Jan Djärv <jan.h.d@swipnet.se>
5787
ff919460
J
5788 * xterm.c (XTring_bell, XTset_terminal_window): Fix wrong prototype.
5789
e4c8d29a
J
5790 * xsmfns.c (SSDATA): New macro.
5791 (smc_save_yourself_CB, x_session_initialize): Use SSDATA for strings
5792 passed to strlen/strcpy/strcat.
bba3e508
SM
5793 (create_client_leader_window): Surround with #ifndef USE_GTK.
5794 Cast 7:th arg to XChangeProperty to (unsigned char *).
e4c8d29a
J
5795
5796 * xsettings.c (something_changedCB, parse_settings)
5797 (apply_xft_settings): Reformat prototype.
5798 (something_changedCB, init_gconf): Remove unused variable i.
5799 (read_settings): Remove unused variable long_len.
5800
5801 * gtkutil.c (xg_get_pixbuf_from_pix_and_mask)
5802 (xg_get_image_for_pixmap, create_dialog)
5803 (xg_get_file_with_selection, xg_get_file_name, update_cl_data)
5804 (menuitem_highlight_callback, make_menu_item)
5805 (xg_create_one_menuitem, create_menus, xg_update_menu_item)
5806 (xg_create_scroll_bar, xg_update_scrollbar_pos)
5807 (xg_set_toolkit_scroll_bar_thumb, xg_tool_bar_button_cb)
5808 (xg_tool_bar_proxy_help_callback, xg_tool_bar_detach_callback)
5809 (xg_tool_bar_attach_callback, xg_tool_bar_help_callback)
5810 (xg_tool_bar_item_expose_callback): Reformat prototype.
5811 (xg_update_menubar): GList *group => GSList *group.
5812 (xg_modify_menubar_widgets): Initialize witem to 0, check witem != 0
5813 before use.
5814 (update_frame_tool_bar): 4:th param to xg_get_image_for_pixmap changed
5815 to GTK_IMAGE (wimage).
5816
dd4c5104
DN
58172010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
5818
898b4c5c
DN
5819 * atimer.c: Use "" instead of <> for local includes for
5820 consistency with the rest of the code.
5821
dd4c5104
DN
5822 * xsmfns.c (smc_save_yourself_CB, smc_error_handler):
5823 * xrdb.c (get_system_name):
5824 * window.c (shrink_windows):
5825 * syntax.c (forw_comment):
5826 * scroll.c (calculate_scrolling, calculate_direct_scrolling)
5827 (ins_del_costs):
5828 * mem-limits.h (start_of_data):
5829 * lread.c (readevalloop):
5830 * gtkutil.c (xg_dialog_response_cb, xg_get_file_with_chooser)
5831 (xg_get_file_with_selection, xg_update_menubar, xg_update_submenu):
5832 * frame.c (x_get_focus_frame):
5833 * floatfns.c (fmod_float):
5834 * fileio.c (choose_write_coding_system):
5835 * emacs.c (fatal_error_signal, init_cmdargs, argmatch)
5836 (malloc_initialize_hook, sort_args, synchronize_locale):
5837 * doprnt.c (doprnt):
5838 * dired.c (compile_pattern):
5839 * data.c (fmod_float):
5840 * chartab.c (map_sub_char_table, map_sub_char_table_for_charset)
5841 (map_char_table_for_charset):
5842 * charset.c (define_charset_internal):
5843 * alloc.c (Fgarbage_collect): Convert declarations or definitions
5844 to standard C.
5845
9a39b306 58462010-07-04 Tetsurou Okazaki <okazaki@be.to> (tiny change)
9c8a2331 5847 Stefan Monnier <monnier@iro.umontreal.ca>
9a39b306
TO
5848
5849 * lread.c (read1): Fix up last change to not mess up `c'.
5850
e6cb2cbb
JB
58512010-07-04 Juanma Barranquero <lekktu@gmail.com>
5852
5853 * strftime.c: Revert conversion to standard C (2010-07-04T07:50:25Z!dann@ics.uci.edu).
5854
438105ed
JB
58552010-07-04 Juanma Barranquero <lekktu@gmail.com>
5856
5857 Fix prototypes.
5858
e5447b22 5859 * atimer.c (start_atimer): Use EMACS_TIME, not struct timeval.
438105ed 5860 * dired.c (file_name_completion_stat): Use DIRENTRY, not struct dirent.
9c8a2331
JB
5861 * fileio.c (read_non_regular, read_non_regular_quit): Add Lisp_Object
5862 arg, as required by internal_condition_case_1.
dcc7404b 5863 * print.c (strout): Use const char* for arg PTR.
438105ed
JB
5864 * regex.c (bcmp_translate): Use RE_TRANSLATE_TYPE, not Lisp_Object.
5865 (analyse_first): Fix "const const".
e5447b22 5866 * sysdep.c (set_file_times): Use EMACS_TIME, not struct timeval.
b9503078 5867 * unexelf.c (round_up, find_section): Use ElfW macro for arguments.
e5447b22 5868 * xgselect.c (xg_select): Use SELECT_TYPE, EMACS_TIME.
438105ed 5869
971de7fb
DN
58702010-07-04 Dan Nicolaescu <dann@ics.uci.edu>
5871
5872 * alloc.c: Convert function definitions to standard C.
5873 * atimer.c:
5874 * bidi.c:
5875 * bytecode.c:
5876 * callint.c:
5877 * callproc.c:
5878 * casefiddle.c:
5879 * casetab.c:
5880 * category.c:
5881 * ccl.c:
5882 * character.c:
5883 * charset.c:
5884 * chartab.c:
5885 * cmds.c:
5886 * coding.c:
5887 * composite.c:
5888 * data.c:
5889 * dbusbind.c:
5890 * dired.c:
5891 * dispnew.c:
5892 * doc.c:
5893 * doprnt.c:
5894 * ecrt0.c:
5895 * editfns.c:
5896 * fileio.c:
5897 * filelock.c:
5898 * filemode.c:
5899 * fns.c:
5900 * font.c:
5901 * fontset.c:
5902 * frame.c:
5903 * fringe.c:
5904 * ftfont.c:
5905 * ftxfont.c:
5906 * gtkutil.c:
5907 * indent.c:
5908 * insdel.c:
5909 * intervals.c:
5910 * keymap.c:
5911 * lread.c:
5912 * macros.c:
5913 * marker.c:
5914 * md5.c:
5915 * menu.c:
5916 * minibuf.c:
5917 * prefix-args.c:
5918 * print.c:
5919 * ralloc.c:
5920 * regex.c:
5921 * region-cache.c:
5922 * scroll.c:
5923 * search.c:
5924 * sound.c:
5925 * strftime.c:
5926 * syntax.c:
5927 * sysdep.c:
5928 * termcap.c:
5929 * terminal.c:
5930 * terminfo.c:
5931 * textprop.c:
5932 * tparam.c:
5933 * undo.c:
5934 * unexelf.c:
5935 * window.c:
5936 * xfaces.c:
5937 * xfns.c:
5938 * xfont.c:
5939 * xftfont.c:
5940 * xgselect.c:
5941 * xmenu.c:
5942 * xrdb.c:
5943 * xselect.c:
5944 * xsettings.c:
5945 * xsmfns.c:
5946 * xterm.c: Likewise.
5947
ae492bec
EZ
59482010-07-03 Eli Zaretskii <eliz@gnu.org>
5949
76ea4cc9
EZ
5950 * msdos.c (IT_set_frame_parameters): Fix setting of colors in
5951 frames other than the initial one. Fix reversal of colors when
bba3e508
SM
5952 `reverse' is specified in the frame parameters.
5953 Call update_face_from_frame_parameter instead of
76ea4cc9
EZ
5954 internal-set-lisp-face-attribute. Initialize screen colors from
5955 initial_screen_colors[] when f->default_face_done_p is zero,
5956 instead of depending on being called with default-frame-alist as
5957 the alist argument.
5958
5959 * xfaces.c (update_face_from_frame_parameter): Move out of
5960 HAVE_WINDOW_SYSTEM portion. Condition window-system only parts
5961 with HAVE_WINDOW_SYSTEM.
5962
1e6255ae
EZ
5963 * msdos.c (IT_set_frame_parameters): Set menu-bar-lines according
5964 to menu-bar-mode, if not set in the frame parameters or in
5965 default-frame-alist.
5966
ae492bec
EZ
5967 * w32console.c (sys_tputs): Adjust argument list to prototype in
5968 term.c.
5969
3a35a84c
JB
59702010-07-03 Juanma Barranquero <lekktu@gmail.com>
5971
5972 * lisp.h (memory_warnings): Fix prototype.
5973
5974 * cm.h (evalcost): Fix prototype.
5975
5976 * cm.c (evalcost): Fix arg type.
5977
c532d349
DN
59782010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
5979
5980 * term.c (term_clear_mouse_face, Fidentity):
5981 * syssignal.h (signal_handler_t):
5982 * lisp.h (memory_warnings):
5983 * coding.h (preferred_coding_system):
5984 * cm.h (evalcost):
5985 * blockinput.h (reinvoke_input_signal): Convert to standard C prototypes.
5986
c0b36d46
EZ
59872010-07-02 Eli Zaretskii <eliz@gnu.org>
5988
5989 * dosfns.h (msdos_stdcolor_idx, msdos_stdcolor_name): Remove P_
5990 from prototypes.
5991
5992 * msdos.h (load_pixmap): Don't define away.
5993
383e0970
J
59942010-07-02 Jan Djärv <jan.h.d@swipnet.se>
5995
f57e2426
J
5996 * lisp.h:
5997 * atimer.h: Remove define for P_.
5998
5999 * alloc.c: Remove __P and P_ from .c and .m files.
6000 * atimer.c:
6001 * buffer.c:
6002 * callint.c:
6003 * category.c:
6004 * charset.c:
6005 * chartab.c:
6006 * cm.c:
6007 * coding.c:
6008 * composite.c:
6009 * data.c:
6010 * dired.c:
6011 * dispnew.c:
6012 * doc.c:
6013 * editfns.c:
6014 * emacs.c:
6015 * eval.c:
6016 * fileio.c:
6017 * filelock.c:
6018 * fns.c:
6019 * font.c:
6020 * fontset.c:
6021 * frame.c:
6022 * ftfont.c:
6023 * ftxfont.c:
6024 * gmalloc.c:
6025 * gtkutil.c:
6026 * image.c:
6027 * indent.c:
6028 * intervals.c:
6029 * keyboard.c:
6030 * keymap.c:
6031 * lread.c:
6032 * marker.c:
6033 * menu.c:
6034 * minibuf.c:
6035 * print.c:
6036 * process.c:
6037 * scroll.c:
6038 * search.c:
6039 * sound.c:
6040 * strftime.c:
6041 * syntax.c:
6042 * sysdep.c:
6043 * term.c:
6044 * terminal.c:
6045 * textprop.c:
6046 * unexalpha.c:
6047 * w32console.c:
6048 * w32fns.c:
6049 * w32font.c:
6050 * w32menu.c:
6051 * w32term.c:
6052 * w32uniscribe.c:
6053 * window.c:
6054 * xdisp.c:
6055 * xfaces.c:
6056 * xfns.c:
6057 * xfont.c:
6058 * xftfont.c:
6059 * xmenu.c:
6060 * xselect.c:
6061 * xterm.c: Likewise.
6062
383e0970 6063 Remove P_ and __P macros.
f57e2426
J
6064 * atimer.h: Remove P_ and __P macros.
6065 * buffer.h:
383e0970
J
6066 * category.h:
6067 * ccl.h:
6068 * character.h:
6069 * charset.h:
6070 * cm.h:
6071 * coding.h:
6072 * composite.h:
6073 * dispextern.h:
6074 * disptab.h:
9e892c8d 6075 * dosfns.h:
383e0970
J
6076 * font.h:
6077 * fontset.h:
6078 * frame.h:
6079 * gtkutil.h:
6080 * indent.h:
6081 * intervals.h:
6082 * keyboard.h:
6083 * keymap.h:
6084 * lisp.h:
6085 * macros.h:
6086 * md5.h:
6087 * menu.h:
6088 * msdos.h:
6089 * nsterm.h:
6090 * puresize.h:
6091 * region-cache.h:
6092 * syntax.h:
6093 * syssignal.h:
6094 * systime.h:
6095 * termhooks.h:
9e892c8d 6096 * w32font.h:
383e0970
J
6097 * w32term.h:
6098 * widget.h:
6099 * window.h:
6100 * xgselect.h:
6101 * xsettings.h:
6102 * xterm.h: Likewise.
6103
98601119
DN
61042010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
6105
d9170db5
DN
6106 * lisp.h: Document that USE_LISP_UNION_TYPE is now enabled using autoconf.
6107
98601119
DN
6108 Cleanup old code.
6109 * dired.c (BSD4_3): Remove all uses, redundant with BSD4_2.
6110 * syssignal.h: Remove code for Lynx, not supported anymore.
6111 * vm-limit.c: Remove unused code the depends on emacs not being
6112 defined and NO_LIM_DATA being defined.
6113 * mem-limits.h: Remove dead code.
6114
1f984e12
J
61152010-07-01 Jan Djärv <jan.h.d@swipnet.se>
6116
c49d071a
J
6117 * window.c (Fwindow_absolute_pixel_edges): Doc fix.
6118
9d5405ec
J
6119 * window.c (calc_absolute_offset, Fwindow_absolute_pixel_edges)
6120 (Fwindow_inside_absolute_pixel_edges): New functions (bug#5721).
6121
7a18115b
J
6122 * nsfns.m (compute_tip_xy): Do not convert coordinates from frame
6123 parameters, they are already absolute.
6124
a628ad9d
JB
6125 * nsterm.m (x_set_window_size, initFrameFromEmacs):
6126 Rename FRAME_NS_TOOLBAR_HEIGHT to FRAME_TOOLBAR_HEIGHT.
581a8100 6127
a628ad9d 6128 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
581a8100 6129
a628ad9d
JB
6130 * nsmenu.m (update_frame_tool_bar, free_frame_tool_bar):
6131 Update FRAME_TOOLBAR_HEIGHT.
581a8100 6132
a628ad9d
JB
6133 * nsmenu.m (free_frame_tool_bar, update_frame_tool_bar):
6134 Add BLOCK/UNBLOCK_INPUT so asserts don't trigger.
1f984e12 6135
c1ef4455
CY
61362010-06-30 Chong Yidong <cyd@stupidchicken.com>
6137
bba3e508
SM
6138 * frame.c (get_future_frame_param, Fmake_terminal_frame):
6139 Don't check default-frame-alist.
c1ef4455 6140
ce8f5a9a
AS
61412010-06-30 Andreas Schwab <schwab@linux-m68k.org>
6142
6143 * process.c (create_process): Avoid using invalid file descriptors.
6144
6145 * callproc.c (child_setup): Avoid closing a file descriptor twice.
6146
bf935339
J
61472010-06-30 Jan Djärv <jan.h.d@swipnet.se>
6148
6149 * xsettings.c (Ffont_get_system_normal_font, Ffont_get_system_font):
6150 Improve documentation. Return font regardless of use_system_font.
6151 (syms_of_xsettings): Improve documentation for font-use-system-font.
6152
7c33a057
CY
61532010-07-10 Chong Yidong <cyd@stupidchicken.com>
6154
2ec1b5ee
CY
6155 * xfaces.c (realize_face): Garbage the frame if a face is removed
6156 (Bug#6593).
6157
61582010-07-05 Andreas Schwab <schwab@linux-m68k.org>
6159
6160 * keyboard.c: Remove duplicate <setjmp.h>.
6161 (read_key_sequence): Remove volatile qualifiers.
6162
61632010-07-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6164
6165 * dispextern.h (FRINGE_HEIGHT_BITS): New define.
6166 (struct glyph_row): New members left_fringe_offset and
6167 right_fringe_offset.
6168
6169 * xterm.c (x_draw_fringe_bitmap): Don't clip bottom aligned bitmap
6170 specially.
6171 * w32term.c (w32_draw_fringe_bitmap): Likewise.
6172 * nsterm.m (ns_draw_fringe_bitmap): Likewise.
6173
6174 * fringe.c (draw_fringe_bitmap_1): Don't clip bitmap here.
f6003da5 6175 Take account of bitmap offset.
2ec1b5ee
CY
6176 (draw_window_fringes): Take account of window vscroll.
6177 (update_window_fringes): Likewise. Extend top-aligned top indicator
6178 or bottom-aligned bottom indicator to adjacent rows if it doesn't fit
6179 in one row. Don't set redraw_fringe_bitmaps_p outside row comparison.
6180 Set left_fringe_offset and right_fringe_offset (Bug#5634, Bug#6325).
6181
61822010-07-04 Juanma Barranquero <lekktu@gmail.com>
6183
6184 * w32fns.c (Qtooltip): Declare.
6185 Suggested by Andy Moreton <andrewjmoreton@gmail.com>.
6186
61872010-07-03 Jan Djärv <jan.h.d@swipnet.se>
6188
6189 * xmenu.c (x_activate_menubar): Send Press/Release for Gtk+ to avoid
6190 grab on just Press (Bug#6499).
6191
61922010-07-02 Chong Yidong <cyd@stupidchicken.com>
6193
6194 * frame.c (Qtooltip): New var.
6195 (delete_frame): Use it. Fix faulty if statement. Don't update
6196 mode line for tooltip frames. Suggested by Martin Rudalics.
6197
6198 * xfns.c (x_create_tip_frame):
6199 * w32fns.c (x_create_tip_frame): Use it.
6200
62012010-06-17 Naohiro Aota <naota@elisp.net> (tiny change)
769e9d47
KH
6202
6203 * xftfont.c (xftfont_open): Check font width one by one also when
6204 spacing is dual.
6205
6206 * ftfont.c (ftfont_open): Ditto.
6207
6259c2ec
GM
62082010-06-30 Glenn Morris <rgm@gnu.org>
6209
a46007e9
GM
6210 * s/sol2-6.h (INHIBIT_X11R6_XIM): Remove, handled by configure now.
6211
6259c2ec
GM
6212 * Makefile.in (CANNOT_DUMP): Update for configure name change.
6213
6214 * s/freebsd.h (USE_MMAP_FOR_BUFFERS):
6215 * s/irix6-5.h (USE_MMAP_FOR_BUFFERS):
6216 * s/darwin.h (SYSTEM_MALLOC):
6217 * s/sol2-10.h (SYSTEM_MALLOC): Move to configure.
6218
5d1d3d04
J
62192010-06-29 Jan Djärv <jan.h.d@swipnet.se>
6220
6221 * nsfns.m: extern declare Vmenu_bar_mode, Vtool_bar_mode.
6222 (ns_get_screen): Don't assign integer to f.
6223 (Fx_display_color_cells): Declarations before statements.
6224
e547b051
J
62252010-06-28 Jan Djärv <jan.h.d@swipnet.se>
6226
5fc8e5bc
J
6227 * xfns.c (x_default_font_parameter): Remove got_from_system
6228 (Bug#6526).
6229
e547b051 6230 * xterm.h (gtk_widget_get_window, gtk_widget_get_mapped)
bba3e508
SM
6231 (gtk_adjustment_get_page_size, gtk_adjustment_get_upper):
6232 New defines based on what configure finds.
e547b051
J
6233
6234 * xterm.c (XTflash): Use gtk_widget_get_window.
6235 (xg_scroll_callback): Use gtk_adjustment_get_upper and
6236 gtk_adjustment_get_page_size.
6237 (handle_one_xevent): Use gtk_widget_get_mapped.
6238 (x_term_init): Remove HAVE_GTK_MULTIDISPLAY and associated error
6239 messages.
6240
6241 * xmenu.c (create_and_show_popup_menu): Call gtk_widget_get_mapped.
6242
6243 * gtkutil.h: Replace HAVE_GTK_FILE_BOTH with
6244 HAVE_GTK_FILE_SELECTION_NEW.
6245
bba3e508
SM
6246 * gtkutil.c (xg_display_open, xg_display_close):
6247 Remove HAVE_GTK_MULTIDISPLAY, it is always defined.
e547b051
J
6248 (xg_display_open): Return type is void.
6249 (gtk_widget_set_has_window)
6250 (gtk_dialog_get_action_area, gtk_dialog_get_content_area)
6251 (gtk_widget_get_sensitive, gtk_adjustment_set_page_size)
6252 (gtk_adjustment_set_page_increment)
6253 (gtk_adjustment_get_step_increment): #define these if not found
6254 by configure.
6255 (remove_submenu): New define based on Gtk+ version.
bba3e508
SM
6256 (xg_set_cursor, xg_frame_resized, xg_event_is_for_scrollbar):
6257 Use gtk_widget_get_window.
e547b051
J
6258 (xg_frame_resized, xg_update_frame_menubar): Use gtk_widget_get_mapped.
6259 (xg_create_frame_widgets): Use gtk_widget_set_has_window.
6260 (create_dialog): Use gtk_dialog_get_action_area and
6261 gtk_dialog_get_content_area.
6262 (xg_uses_old_file_dialog, xg_get_file_name): Remove HAVE_GTK_FILE_BOTH
6263 and HAVE_GTK_FILE_CHOOSER_DIALOG_NEW. File chooser is always
6264 available, so checking for HAVE_GTK_FILE_SELECTION_NEW is enough.
bba3e508
SM
6265 (xg_update_menubar, xg_update_submenu, xg_show_toolbar_item):
6266 Use g_object_ref and g_object_unref.
6267 (xg_update_menu_item, xg_tool_bar_menu_proxy):
6268 Use gtk_widget_get_sensitive.
e547b051
J
6269 (xg_update_submenu): Use remove_submenu.
6270 (xg_update_scrollbar_pos): Don't use GtkFixedChild, use child
6271 properties instead to get old x and y position.
6272 (xg_set_toolkit_scroll_bar_thumb): Use gtk_adjustment_get_page_size,
6273 gtk_adjustment_get_step_increment, gtk_adjustment_set_page_size,
2b7e356a 6274 gtk_adjustment_set_step_increment and gtk_adjustment_set_page_increment.
e547b051
J
6275 (xg_get_tool_bar_widgets): New function.
6276 (xg_tool_bar_menu_proxy, xg_show_toolbar_item)
6277 (update_frame_tool_bar): Call xg_get_tool_bar_widgets.
6278 (toolbar_set_orientation): New #define based on if configure
6279 finds gtk_orientable_set_orientation.
6280 (xg_create_tool_bar): Call toolbar_set_orientation.
6281 (xg_make_tool_item, xg_show_toolbar_item): Call gtk_box_pack_start
6282 instead of gtk_box_pack_start_defaults.
6283
b9229673
CY
62842010-06-28 Chong Yidong <cyd@stupidchicken.com>
6285
6286 * cmds.c (Fdelete_backward_char): Move into Lisp.
6287
bbc803b0
DN
62882010-06-27 Dan Nicolaescu <dann@ics.uci.edu>
6289
6290 * s/freebsd.h (BSD4_2): Remove redundant definition.
6291 bsd-common.h defines it already.
6292
6431f2e6
CY
62932010-06-27 Chong Yidong <cyd@stupidchicken.com>
6294
6295 * xfns.c (Fx_create_frame): Don't consult X resouces when setting
6296 menu-bar-lines and tool-bar-lines. Use menu-bar-mode and
6297 tool-bar-mode, which are now set using these X resources at
6298 startup, to determine the defaults (Bug#2249).
6299
6300 * w32fns.c (Fx_create_frame):
6301 * nsfns.m (Fx_create_frame): Likewise.
6302
6303 * frame.c (Vmenu_bar_mode, Vtool_bar_mode): New vars.
6304
8c079ebb
JB
63052010-06-24 Juanma Barranquero <lekktu@gmail.com>
6306
6307 * gtkutil.c (xg_update_scrollbar_pos):
6308 Avoid C99 mid-block variable declaration.
6309
e9b7ab96
JD
63102010-06-22 Jan Djärv <jan.h.d@swipnet.se>
6311
bc869eca
JD
6312 * xterm.c (x_scroll_bar_create): Remove call to xg_show_scroll_bar.
6313
2b7e356a 6314 * gtkutil.h (xg_show_scroll_bar): Remove.
bc869eca
JD
6315
6316 * gtkutil.c (xg_update_scrollbar_pos): Show/hide scroll bar as needed
6317 if height is less than scroll bar min size.
6318 (xg_show_scroll_bar): Remove, show moved to xg_update_scrollbar_pos.
6319
e9b7ab96
JD
6320 * xfns.c (x_default_font_parameter): Try to open font from system
6321 before using it (bug#6478). Rename got_from_gconf to got_from_system.
6322
a628ad9d 63232010-06-22 Keith Packard <keithp@keithp.com> (tiny change)
32a679fd
JD
6324
6325 * font.c (font_parse_fcname): Allow . for sizes like 7.5 (bug#6437).
6326
70c4cfbb
EZ
63272010-06-20 Eli Zaretskii <eliz@gnu.org>
6328
6329 * xdisp.c (try_scrolling): When scroll-conservatively is set to
6330 most-positive-fixnum, be extra accurate when scrolling window
6331 start, to avoid missing the cursor line.
6332
ad5a12b5
EZ
63332010-06-19 Eli Zaretskii <eliz@gnu.org>
6334
6335 * xdisp.c (try_scrolling): Compute the limit for searching point
6336 in forward scroll from scroll_max, instead of an arbitrary limit
ef1b0ba7
SM
6337 of 10 screen lines.
6338 See http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00766.html
ad5a12b5
EZ
6339 and
6340 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00773.html
6341 for details.
6342
2a64315a 63432010-06-16 Glenn Morris <rgm@gnu.org>
6fda6a0c
GM
6344
6345 * editfns.c (Fbyte_to_string): Pacify compiler.
6346
288cf4e9
SM
63472010-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
6348
6349 * lread.c (read1): Phase out old-style backquotes a bit more.
6350
6e6e5760
EZ
63512010-06-12 Eli Zaretskii <eliz@gnu.org>
6352
cbc4fd20
EZ
6353 * makefile.w32-in ($(BLD)/bidi.$(O)): Depend on biditype.h and
6354 bidimirror.h.
6355
6356 * deps.mk (bidi.o): Depend on biditype.h and bidimirror.h.
6357
317fbf33
EZ
6358 * bidi.c (bidi_initialize): Remove explicit initialization of
6359 bidi_type_table; include biditype.h instead. Don't support
288cf4e9 6360 entries whose second codepoint is zero. Initialize bidi_mirror_table.
cbc4fd20 6361 (bidi_mirror_char): Use bidi_mirror_table.
317fbf33
EZ
6362
6363 * biditype.h: New file.
6364
cbc4fd20
EZ
6365 * bidimirror.h: New file.
6366
6e6e5760
EZ
6367 * window.c (syms_of_window): Doc fix (bug#6409).
6368
4176cba2
RF
63692010-06-12 Romain Francoise <romain@orebokech.com>
6370
6371 * Makefile.in (lisp, shortlisp): Use new location of vc-hooks and
6372 ediff-hook.
6373
cb4bfcb5
GM
63742010-06-10 Glenn Morris <rgm@gnu.org>
6375
64c60c2f
GM
6376 * editfns.c (Fbyte_to_string): Pacify compiler.
6377
cb4bfcb5
GM
6378 * m/ibms390x.h: Rather than duplicating ibms390.h, just include it.
6379
2ec1b5ee
CY
63802010-06-26 Andreas Schwab <schwab@linux-m68k.org>
6381
6382 * alloc.c (Fmake_byte_code): Don't access undefined argument
6383 (Bug#6517).
6384
63852010-06-25 Chong Yidong <cyd@stupidchicken.com>
6386
6387 * xdisp.c (next_element_from_image): Ensure that after-strings are
6388 read the next time we hit handle_stop (Bug#1336).
6389
63902010-06-23 Andreas Schwab <schwab@linux-m68k.org>
6391
6392 * lread.c (read1): Signal error if #s is not followed by paren.
6393
63942010-06-19 Chong Yidong <cyd@stupidchicken.com>
6395
6396 * image.c (free_image): Mark frame as garbaged (Bug#6426).
6397
6398 * keymap.c (Fdefine_key): Doc fix (Bug#6460).
6399
64002010-06-15 Glenn Morris <rgm@gnu.org>
6401
6402 * editfns.c (Fbyte_to_string): Pacify compiler.
6403
e454a4a3
SM
64042010-06-09 Stefan Monnier <monnier@iro.umontreal.ca>
6405
6406 * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
6407 Check `object's type before accessing its guts.
6408
c1b1acc2
DN
64092010-06-09 Dan Nicolaescu <dann@ics.uci.edu>
6410
6411 * s/usg5-4.h: Fix previous change.
6412 Suggested by Lawrence Mitchell <wence@gmx.li>
6413
657d4c0b
AS
64142010-06-08 Andreas Schwab <schwab@linux-m68k.org>
6415
6416 * minibuf.c (Fall_completions): Add more checks.
6417
9b27fd9f
JB
64182010-06-08 Juanma Barranquero <lekktu@gmail.com>
6419
6420 * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
6421
a99ebb40
DN
64222010-06-08 Dan Nicolaescu <dann@ics.uci.edu>
6423
d7c5d87d
DN
6424 * lread.c (X_OK): Remove, unused.
6425
0263a941
DN
6426 * dispnew.c: Remove obsolete comment.
6427
a99ebb40
DN
6428 Remove INCLUDED_FCNTL.
6429 * xterm.c (INCLUDED_FCNTL):
6430 * callproc.c (INCLUDED_FCNTL):
6431 * alloc.c (INCLUDED_FCNTL):
6432 * systty.h (INCLUDED_FCNTL): Remove all uses, not needed anymore.
6433 (emacs_get_tty, emacs_set_tty): Declare unconditionally.
6434
13b5221f
MR
64352010-06-07 Martin Rudalics <rudalics@gmx.at>
6436
6437 * window.c (Fselect_window): Move `record_buffer' up to the
6438 beginning of this function, so the buffer gets recorded
6439 even if the selected window does not change.
6440 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00137.html
6441
5220357f
JB
64422010-06-07 Juanma Barranquero <lekktu@gmail.com>
6443
6444 * cmds.c (Fforward_char, Fbackward_char): Fix typos in docstrings.
6445 (Fforward_line, Fbeginning_of_line): Reflow docstrings.
6446
3085237c
DN
64472010-06-06 Dan Nicolaescu <dann@ics.uci.edu>
6448
6449 Remove BSTRING related code, all platforms define it.
6450 * s/usg5-4.h (BSTRING): Remove definition.
6451 * s/template.h (BSTRING):
6452 * s/msdos.h (BSTRING):
6453 * s/ms-w32.h (BSTRING):
6454 * s/hpux10-20.h (BSTRING):
6455 * s/gnu-linux.h (BSTRING):
6456 * s/darwin.h (BSTRING):
6457 * s/cygwin.h (BSTRING):
6458 * s/bsd-common.h (BSTRING):
6459 * s/aix4-2.h (BSTRING): Likewise.
6460 * sysdep.c: Remove code depending on BSTRING not being defined.
6461
409f2919
JB
64622010-06-05 Juanma Barranquero <lekktu@gmail.com>
6463
6464 Remove obsolete macro BASE_LEADING_CODE_P.
6465 * character.h (BASE_LEADING_CODE_P): Remove.
6466 * regex.c [!emacs] (BASE_LEADING_CODE_P): Remove.
6467 * buffer.c (Fset_buffer_multibyte):
6468 * indent.c (scan_for_column, compute_motion):
6469 * insdel.c (count_combining_before, count_combining_after):
6470 Use LEADING_CODE_P instead of BASE_LEADING_CODE_P.
6471
087fc47a
JB
64722010-06-04 Juanma Barranquero <lekktu@gmail.com>
6473
6474 Turn `directory-sep-char' into a noop.
6475
6476 * lisp.h [WINDOWSNT] (Vdirectory_sep_char): Don't declare.
6477 (DIRECTORY_SEP): Define unconditionally.
6478
6479 * s/ms-w32.h (DIRECTORY_SEP): Remove.
6480
6481 * emacs.c (decode_env_path): Don't check DIRECTORY_SEP,
6482 call dostounix_filename directly.
6483
6484 * fileio.c (CORRECT_DIR_SEPS): Remove.
6485 (Ffile_name_directory, directory_file_name, Fexpand_file_name)
6486 (Fsubstitute_in_file_name): Use dostounix_filename instead.
6487 (file_name_as_directory): Use dostounix_filename, DIRECTORY_SEP.
6488 (syms_of_fileio) <directory-sep-char>: Move to subr.el.
6489
6490 * w32proc.c (CORRECT_DIR_SEPS): Remove.
6491 (Fw32_short_file_name, Fw32_long_file_name): Use dostounix_filename.
6492
0eb7675e
AS
64932010-06-03 Andreas Schwab <schwab@linux-m68k.org>
6494
a628ad9d
JB
6495 * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4 address.
6496 (Bug#6346)
0eb7675e 6497
78edd3b7
JB
64982010-06-03 Juanma Barranquero <lekktu@gmail.com>
6499
6500 * ccl.c (Fccl_program_p): Fix typo in docstring.
6501
eb697db5
DN
65022010-06-03 Dan Nicolaescu <dann@ics.uci.edu>
6503
6504 Move UNEXEC definition to autoconf.
6505 * s/usg5-4.h (UNEXEC): Remove, move to configure.in.
6506 * s/sol2-10.h (UNEXEC):
6507 * s/irix6-5.h (UNEXEC):
6508 * s/hpux10-20.h (UNEXEC):
6509 * s/gnu-linux.h (UNEXEC):
6510 * s/darwin.h (UNEXEC):
6511 * s/cygwin.h (UNEXEC):
6512 * s/bsd-common.h (UNEXEC):
6513 * s/aix4-2.h (UNEXEC):
6514 * m/alpha.h (UNEXEC): Likewise.
6515 * Makefile.in (UNEXEC_OBJ): Define using @UNEXEC_OBJ@.
6516
aa3830c4
JB
65172010-06-03 Juanma Barranquero <lekktu@gmail.com>
6518
6519 Remove obsolete pre-unicode2 macros.
6520 * character.h (MULTIBYTE_FORM_LENGTH, PARSE_MULTIBYTE_SEQ): Remove.
6521 * composite.c (composition_reseat_it):
6522 * data.c (Faset):
6523 * fns.c (Ffillarray):
6524 * regex.c (re_search_2): Use BYTES_BY_CHAR_HEAD.
6525 [!emacs] (BYTES_BY_CHAR_HEAD): Define instead of MULTIBYTE_FORM_LENGTH.
6526
d234d13e
JL
65272010-06-03 Juri Linkov <juri@jurta.org>
6528
6529 * buffer.c (Fother_buffer): Add CHECK_FRAME.
6530 (Fswitch_to_buffer): Remove unused variable `err'.
6531
0d4bcf4d
GM
65322010-06-03 Glenn Morris <rgm@gnu.org>
6533
e23dc1e2
GM
6534 * m/template.h (NO_SOCK_SIGIO): Remove, no longer used.
6535
05b09564
GM
6536 * m/hp800.h (alloca) [__NetBSD__ && __GNUC__]: No need to define it,
6537 now that AH_BOTTOM does it.
6538
824e2978
GM
6539 * m/hp800.h (HAVE_ALLOCA):
6540 * m/ibms390x.h (HAVE_ALLOCA): Do not define, no longer needed.
6541
0d4bcf4d
GM
6542 * m/ia64.h, s/gnu-linux.h, s/gnu.h, s/netbsd.h, s/usg5-4.h:
6543 Remove NOT_C_CODE tests, it is always true now.
6544
c55d2abf
DN
65452010-06-02 Dan Nicolaescu <dann@ics.uci.edu>
6546
08a494a3
DN
6547 Fix config.h includes.
6548 * xsettings.c:
6549 * xgselect.c:
6550 * nsterm.m:
6551 * nsselect.m:
6552 * nsimage.m:
6553 * nsfont.m:
6554 * nsfns.m:
6555 * dbusbind.c: Use #include <config.h> instead of "config.h" as all
6556 other files do.
6557
75934b1d
DN
6558 * gmalloc.c: Remove BROKEN_PROTOTYPES reference, unused.
6559
9f32a766
DN
6560 * s/sol2-6.h: Remove obsolete comments.
6561
c55d2abf
DN
6562 Remove unnecessary alloca.h includes.
6563 * keymap.c: Do not include alloca.h, config.h does that.
6564 * sysdep.c: Likewise. Do not define fwrite, not used.
6565
06ac62b4
SM
65662010-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
6567
6568 * sysdep.c (child_setup_tty): Move the non-canonical initialization to
6569 the HAVE_TERMIO where it belongs (bug#6149).
6570
1ab8293c
SM
65712010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
6572
6573 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
6574 of bug#6305).
6575
6dcfd253
EZ
65762010-05-30 Eli Zaretskii <eliz@gnu.org>
6577
6578 * bidi.c (bidi_move_to_visually_next): Make sure the sentinel
6579 state is always cached (bug#6306).
6580
6d26bbb2
EZ
65812010-05-29 Eli Zaretskii <eliz@gnu.org>
6582
06fa4a23
EZ
6583 Fix cursor motion in bidi-reordered continued lines.
6584 * xdisp.c (try_cursor_movement): Backup to non-continuation line
6585 only after finding point's row. Fix the logic. Rewrite the loop
ef1b0ba7
SM
6586 over continuation lines in bidi-reordered buffers.
6587 Return CURSOR_MOVEMENT_MUST_SCROLL upon failure to find a suitable row,
6d26bbb2
EZ
6588 rather than CURSOR_MOVEMENT_CANNOT_BE_USED.
6589
f5783df3
MA
65902010-05-28 Michael Albinus <michael.albinus@gmx.de>
6591
6592 * fileio.c (Fdelete_file): Pass TRASH arg to handler call.
6593
7d56b2dd
KH
65942010-05-28 Kenichi Handa <handa@m17n.org>
6595
6596 * font.c (font_delete_unmatched): Check Vface_ignored_fonts.
6597 Don't sheck SPEC if it is nil.
6598 (font_list_entities): Call font_delete_unmatched if
b925d231 6599 Vface_ignored_fonts is non-nil. (Bug#6287)
7d56b2dd 6600
e58d4ff7
GM
66012010-05-28 Glenn Morris <rgm@gnu.org>
6602
6603 * Makefile.in (LIBES): Remove $LOADLIBES, it is never set.
6604
f1a5d776
CY
66052010-05-27 Chong Yidong <cyd@stupidchicken.com>
6606
6607 * fileio.c (Fdelete_file): Change meaning of optional arg to mean
6608 whether to trash.
6609 (internal_delete_file, Frename_file): Callers changed.
6610 (delete_by_moving_to_trash): Doc fix.
6611 (Fdelete_directory_internal): Don't move to trash.
6612
6613 * callproc.c (delete_temp_file):
6614 * buffer.c (Fkill_buffer): Callers changed.
6615
6616 * lisp.h: Update prototype.
6617
f44a59e6
CY
66182010-05-27 Chong Yidong <cyd@stupidchicken.com>
6619
6620 * xdisp.c (redisplay_window): After redisplay, check if point is
6621 still valid before setting it (Bug#6177).
6622
81ac4f35
GM
66232010-05-27 Glenn Morris <rgm@gnu.org>
6624
6625 * Makefile.in, autodeps.mk, deps.mk, ns.mk:
6626 Convert comments to Makefile format.
6627
6628 * Makefile.in (bootstrap-clean): No more Makefile.c.
6629
ccd89fb3
GM
66302010-05-26 Glenn Morris <rgm@gnu.org>
6631
90278cb6
GM
6632 * Makefile.in (YMF_PASS_LDFLAGS): Remove.
6633 (temacs${EXEEXT}): Use PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS.
6634
ccd89fb3
GM
6635 * Makefile.in (NS_IMPL_GNUSTEP_INC, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
6636 Remove.
6637 (TEMACS_LDFLAGS): Do not use NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
6638
b7050583
KH
66392010-05-26 Kenichi Handa <handa@m17n.org>
6640
6641 * composite.c (composition_compute_stop_pos): Fix condition for
6642 backward scanning.
6643
e5458003
GM
66442010-05-25 Glenn Morris <rgm@gnu.org>
6645
c345fe90
GM
6646 * Makefile.in (@NS_IMPL_GNUSTEP_INC@, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
6647 Move before TEMACS_LDFLAGS.
6648 (TEMACS_LDFLAGS): Use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
6649 (temacs${EXEEXT}): Do not use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
6650
2e0689ab
GM
6651 * Makefile.in (NOT_C_CODE): No longer define.
6652 (config.h): No longer include.
6653
8009a5e8
GM
6654 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): Move definition after some
6655 variables it may reference.
6656
e5458003
GM
6657 * Makefile.in (LD_SWITCH_SYSTEM_EXTRA): Remove.
6658 (TEMACS_LDFLAGS): Remove LD_SWITCH_SYSTEM_EXTRA.
6659
10f72a37
KH
66602010-05-25 Kenichi Handa <handa@m17n.org>
6661
6662 * dispextern.h (struct composition_it): New members rule_idx and
6663 charpos.
6664
6665 * xdisp.c (set_iterator_to_next): While scanning backward, assume
6666 that the character positions of IT point the last character of the
6667 current grapheme cluster.
6668 (next_element_from_composition): Don't change character positions
6669 of IT.
6670 (append_composite_glyph): Set glyph->charpos to
6671 it->cmp_it.charpos.
6672
6673 * composite.c (autocmp_chars): Change the first argument to RULE,
6674 and try composition with RULE only.
6675 (composition_compute_stop_pos): Record the index number of the
6676 composition rule in CMP_IT->rule_idx.
6677 (composition_reseat_it): Call autocmp_chars repeatedly until the
6678 correct rule of the composition is found.
6679 (composition_update_it): Set CMP_IT->charpos. Assume the CHARPOS
6680 is at the last character of the current grapheme cluster when
6681 CMP_IT->reversed_p is nonzero.
6682
171eda53 66832010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
f5b416d2 6684
171eda53
SM
6685 * editfns.c (Fbyte_to_string): New function.
6686
66a9f7f4
SM
66872010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
6688
6689 * process.c (Fmake_network_process): Set :host to nil if it's not used.
6690 Suggested by Masatake YAMATO <yamato@redhat.com>.
6691
d8c315d1
EZ
66922010-05-23 Eli Zaretskii <eliz@gnu.org>
6693
171eda53 6694 * dispextern.h (init_iterator): Sync prototype with changed definition.
d8c315d1 6695
f5b416d2 66962010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
6697
6698 * s/netbsd.h: If terminfo is found, use it in preference to
6699 termcap. (Bug#6190) [Backport from trunk]
6700
0416466c
EZ
67012010-05-19 Eli Zaretskii <eliz@gnu.org>
6702
11117830 6703 Redesign and reimplement bidi-aware edge positions of glyph rows.
d36fe237
EZ
6704
6705 * dispextern.h (struct glyph_row): New members minpos and maxpos.
6706 (MATRIX_ROW_START_CHARPOS, MATRIX_ROW_START_BYTEPOS)
6707 (MATRIX_ROW_END_CHARPOS, MATRIX_ROW_END_BYTEPOS): Reference minpos
6708 and maxpos members instead of start.pos and end.pos, respectively.
6709
6710 * xdisp.c (display_line): Compare IT_CHARPOS with the position in
6711 row->start.pos, rather than with MATRIX_ROW_START_CHARPOS.
6712 (cursor_row_p): Use row->end.pos rather than MATRIX_ROW_END_CHARPOS.
66a9f7f4
SM
6713 (try_window_reusing_current_matrix, try_window_id):
6714 Use ROW->minpos rather than ROW->start.pos.
d36fe237
EZ
6715 (init_from_display_pos, init_iterator): Use EMACS_INT for
6716 character and byte positions.
66a9f7f4 6717 (find_row_edges): Rename from find_row_end. Accept additional
d36fe237
EZ
6718 arguments for minimum and maximum buffer positions seen by
6719 display_line for this row. Don't use iterator to find the
6720 position following the maximum one; instead, increment the
11117830
EZ
6721 position found by display_line directly. Fix logic; eol_pos
6722 should be tested before the rest. Handle the case of characters
6723 delivered from display vector (bug#6036). Fix tests related to
6724 it->method. Handle the truncated_on_right_p rows.
6725 (RECORD_MAX_MIN_POS): New macro.
6726 (display_line): Use it to record the minimum and maximum buffer
6727 positions for glyphs in the row being assembled. Record the
6728 position of the newline that terminates the line. If word wrap is
6729 in effect, restore minimum and maximum positions seen up to the
6730 wrap point, when iterator returns to it.
6731 (try_window_reusing_current_matrix): Give up if in bidi-reordered
6732 row and cursor not already at point. Restore original pre-bidi
6733 code for unidirectional buffers.
d36fe237
EZ
6734
6735 * dispnew.c (increment_row_positions, check_matrix_invariants):
6736 Increment and check row->start.pos and row->end.pos, in addition
6737 to MATRIX_ROW_START_CHARPOS and MATRIX_ROW_END_CHARPOS.
6738
11117830
EZ
6739 * .gdbinit (prowlims): Display row->minpos and row->maxpos.
6740 Display truncated_on_left_p and truncated_on_right_p flags.
6741 Formatting fixes.
6742 (pmtxrows): Display the ordinal number of each row. Don't display
6743 rows beyond the last one.
6744
6745 * bidi.c (bidi_cache_iterator_state): Don't zero out new_paragraph:
6746 it is not copied by bidi_copy_it.
6747
6e83d800
EZ
67482010-05-22 Eli Zaretskii <eliz@gnu.org>
6749
6750 * w32.c (sys_write): Break writes into chunks smaller than 32MB.
6751 (Bug#6237)
6752
110683ad
CY
67532010-05-22 Chong Yidong <cyd@stupidchicken.com>
6754
6755 * image.c (Fimage_flush): Rename from image-refresh.
6756
98fe5161
CY
67572010-05-21 Chong Yidong <cyd@stupidchicken.com>
6758
6759 * xdisp.c (redisplay_internal): Clear caches even if redisplaying
6760 just one window.
6761
6762 * image.c (Vimage_cache_eviction_delay): Decrease to 300.
6763 (clear_image_cache): If the number of cached images is unusually
6764 large, decrease the cache eviction delay (Bug#6230).
6765
e8752c66
GM
67662010-05-21 Glenn Morris <rgm@gnu.org>
6767
66dbf213
GM
6768 * Makefile.in (${ns_appdir}, ${ns_appbindir}Emacs, ns-app):
6769 Move these rules to ns.mk.
6770 * ns.mk: New file.
6771
04384b2d
GM
6772 * Makefile.in (../src/$(OLDXMENU), $(OLDXMENU)): Always define rules.
6773
e8752c66
GM
6774 * Makefile.in (CANNOT_DUMP): New, set by configure.
6775 (emacs${EXEEXT}, bootstrap-emacs${EXEEXT}): Use $CANNOT_DUMP.
6776
2e2bbddb
JL
67772010-05-20 Juri Linkov <juri@jurta.org>
6778
6779 * fileio.c (Fdelete_file): Change interative spec to use
6780 `read-file-name' like in `find-file-read-args' where the default
6781 value is `default-directory' instead of `buffer-file-name'.
6782 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00533.html
6783
31c4aaf6
KR
67842010-05-20 Kevin Ryde <user42@zip.com.au>
6785
6786 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
6787 (Voverriding_terminal_local_map, Vsystem_key_alist)
6788 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
6789
9d5cf9b6
GM
67902010-05-20 Glenn Morris <rgm@gnu.org>
6791
6792 * Makefile.in (DEPDIR): New constant.
6793 (DEPFLAGS): Set with configure, not cpp.
6794 (MKDEPDIR): New, set by configure.
6795 (.c.o, .m.o, ecrt0.o): Use $MKDEPDIR.
6796 (clean): Use $DEPDIR.
6797 (deps_frag): Include from configure.
6798 Move static/dynamic dependency stuff to deps.mk/autodeps.mk.
6799 * deps.mk, autodeps.mk: New files, extracted from Makefile.in.
6800
bba3e508
SM
6801 * bidi.c (bidi_cache_shrink, bidi_cache_iterator_state):
6802 Fix reallocation of the cache. (Bug#6210)
ead6f8f5 6803
7f34aec3
GM
68042010-05-19 Glenn Morris <rgm@gnu.org>
6805
d494e8f2
GM
6806 * s/msdos.h (ORDINARY_LINK): Move to sed2v2.inp.
6807
c1d0dcfd
GM
6808 * Makefile.in (LD, YMF_PASS_LDFLAGS): Set with configure, not cpp.
6809 (GNULIB_VAR): Remove.
6810 (LIBES): Use LIB_GCC instead of GNULIB_VAR.
6811
6812 * m/ibms390x.h (LINKER):
6813 * m/macppc.h (LINKER) [GNU_LINUX]:
6814 * s/aix4-2.h (ORDINARY_LINK):
6815 * s/cygwin.h (LINKER):
6816 * s/darwin.h (ORDINARY_LINK):
6817 * s/gnu.h (ORDINARY_LINK):
6818 * s/netbsd.h (LINKER):
6819 * s/usg5-4.h (ORDINARY_LINK):
6820 Move to configure.
6821
7f34aec3
GM
6822 * s/aix4-2.h (LINKER): Remove; this file sets ORDINARY_LINK.
6823
754790b6
CY
68242010-05-18 Chong Yidong <cyd@stupidchicken.com>
6825
6826 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
6827 prevent stack overflow if number of arguments is too large
6828 (Bug#6214).
6829
161e44d1
JB
68302010-05-18 Juanma Barranquero <lekktu@gmail.com>
6831
6832 * charset.c (load_charset_map_from_file): Don't call close after fclose.
6833
be4ff9da
GM
68342010-05-18 Glenn Morris <rgm@gnu.org>
6835
9539dc5d
GM
6836 * s/gnu-linux.h: Combine two conditionals.
6837
6838 * Makefile.in (otherobj): Include $(VMLIMIT_OBJ) separately from
6665f4c5
GM
6839 $(POST_ALLOC_OBJ).
6840
40dc6bf4
GM
6841 * Makefile.in (RALLOC_OBJ): New, set by configure.
6842 (rallocobj): Replace with the previous variable.
6843 (otherobj): Use $RALLOC_OBJ.
6844
6845 * s/gnu.h (REL_ALLOC) [DOUG_LEA_MALLOC]:
6846 * s/gnu-linux.h (REL_ALLOC) [DOUG_LEA_MALLOC]: Move undef to configure.
6847
be4ff9da
GM
6848 * Makefile.in (GMALLOC_OBJ, VMLIMIT_OBJ): New, set by configure.
6849 (gmallocobj, vmlimitobj): Replace with previous two variables.
6850 (otherobj): Use $GMALLOC_OBJ, $VMLIMIT_OBJ.
6851
16455a85
GM
68522010-05-17 Glenn Morris <rgm@gnu.org>
6853
6854 * Makefile.in (OLDXMENU_DEPS): New, set by configure.
6855 (stamp-oldxmenu): Use $OLDXMENU_DEPS.
6856
5fdb7468
GM
68572010-05-16 Glenn Morris <rgm@gnu.org>
6858
7ca1f3f9
GM
6859 * Makefile.in (${ns_appbindir}Emacs, ns-app): Always define these rules.
6860
7541dad5
GM
6861 * Makefile.in (clean): Get rid of HAVE_NS conditional.
6862
da53fab9
GM
6863 * Makefile.in (ns_appdir, ns_appbindir): Now configure adds the
6864 trailing "/".
6865
b02a6645
GM
6866 * Makefile.in (TEMACS_LDFLAGS2): New, set by configure.
6867 (temacs${EXEEXT}): Combine the NS_IMPL_GNUSTEP case with the default.
6868
8877ca0f
GM
6869 * Makefile.in (GNUSTEP_SYSTEM_LIBRARIES): Remove, unused.
6870 (NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): New, set by configure.
6871 (LD) [NS_IMPL_GNUSTEP]: Set to $(CC) -rdynamic.
6872 (temacs${EXEEXT}): Remove $LOCALCPP, never defined or referenced.
6873 Make most of the NS_IMPL_GNUSTEP case the same as the default case.
6874
5fdb7468
GM
6875 * Makefile.in (temacs${EXEEXT}) [!NS_IMPL_GNUSTEP]:
6876 Remove ${STARTFLAGS}, nothing ever sets it.
6877
95adb4b1
DN
68782010-05-16 Dan Nicolaescu <dann@ics.uci.edu>
6879
6880 * m/ia64.h (UNEXEC): Remove, set in s/*.h.
6881
676b6304
GM
68822010-05-16 Glenn Morris <rgm@gnu.org>
6883
9beab9ce
GM
6884 * Makefile.in (LIBX_BASE): Always define.
6885
8a95f0e7
GM
6886 * Makefile.in (LIBX_OTHER): Move out of cpp section.
6887
676b6304
GM
6888 * Makefile.in (LIBXT): Always define.
6889
6e546d18
GM
68902010-05-15 Glenn Morris <rgm@gnu.org>
6891
4235ca47 6892 * Makefile.in (OLDXMENU, LIBXMENU, LIBX_OTHER): Always define.
02d4ac0e 6893
6e546d18
GM
6894 * Makefile.in (FONT_DRIVERS): Remove, replace with $FONT_OBJ.
6895 (obj, SOME_MACHINE_OBJECTS): Use $FONT_OBJ.
6896
8c5ff6dd
KR
68972010-05-15 Ken Raeburn <raeburn@raeburn.org>
6898
560bb7ae 6899 * lisp.h (XFLOAT_DATA): Use "0?x:x" to generate an rvalue. (Bug#5916)
52766425
KR
6900 (LISP_MAKE_RVALUE) [!USE_LISP_UNION_TYPE && !__GNUC__]: Likewise.
6901
8b4eb796
KR
6902 * emacs.c (main): Initialize initial-environment and
6903 process-environment before generating from env, not after.
6904
8c5ff6dd
KR
6905 Handle --version reasonably in CANNOT_DUMP configuration.
6906 * emacs.c (emacs_version, emacs_copyright): New string variables.
6907 (Vemacs_version, Vemacs_copyright): New Lisp_Object variables.
6908 (syms_of_emacs): Defvar them, and initialize them from the C
6909 string variables.
6910 (main): If initialization hasn't been done, print initial version
6911 info from the C strings, instead of starting an interactive session.
6912
dbd3f723
EZ
69132010-05-15 Eli Zaretskii <eliz@gnu.org>
6914
d20e1419
EZ
6915 * bidi.c (bidi_paragraph_init): Don't leave alone garbage values
6916 of bidi_it->paragraph_dir. Call bidi_initialize if needed.
2e9abc3d
EZ
6917 (bidi_paragraph_init): Remove redundant assertion that we are at
6918 the beginning of a line after call to bidi_find_paragraph_start.
d20e1419
EZ
6919
6920 * xdisp.c (Fcurrent_bidi_paragraph_direction): New function.
6921 (syms_of_xdisp): Defsubr it.
6922
d36fe237
EZ
6923 * cmds.c (Fforward_char, Fbackward_char): Doc fix.
6924
dbd3f723
EZ
6925 * Makefile.in: Fix MSDOS-related comments.
6926
02be533b
GM
69272010-05-15 Glenn Morris <rgm@gnu.org>
6928
1a82cca9
GM
6929 * Makefile.in (OLDXMENU_TARGET): New, set by configure.
6930 (really-lwlib, really-oldXMenu): Always define.
6931 ($OLDXMENU): Depend on $OLDXMENU_TARGET.
6932
3df7b338
GM
6933 * Makefile.in: Simplify cpp conditional.
6934
2b5f541b
GM
6935 * Makefile.in (${ns_appdir}): Simplify using umask.
6936
02be533b
GM
6937 * Makefile.in (${ns_appdir}): Remove references to CVS-related files.
6938
4e2db1fe
SM
69392010-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
6940
6941 * eval.c (specbind): Remove left-over duplicate test.
6942 Disallow let-binding frame-local vars. Add comment.
6943
4b292a22
EZ
69442010-05-14 Eli Zaretskii <eliz@gnu.org>
6945
2fe72643 6946 Make the cache of bidi iterator states dynamically allocated.
1edbd309 6947 * bidi.c (bidi_cache_shrink): New function.
2fe72643
EZ
6948 (bidi_init_it): Call it.
6949 (bidi_cache_iterator_state): Enlarge the cache if needed.
6950
4e2db1fe 6951 * bidi.c (bidi_move_to_visually_next): Rename from
4b292a22
EZ
6952 bidi_get_next_char_visually. All callers changed.
6953
82ebc97b
KH
69542010-05-14 Kenichi Handa <handa@m17n.org>
6955
6956 * dispextern.h (struct composition_it): New member reversed_p.
6957
6958 * composite.c (composition_compute_stop_pos): Search backward if
6959 ENDPOS < CHARPOS.
6960 (composition_reseat_it): Handle the case that ENDPOS < CHARPOS.
6961 Set CMP_IT->reversed_p.
b4b6e17e 6962 (composition_update_it): Pay attention to CMP_IT->reversed_p.
82ebc97b 6963
4e2db1fe
SM
6964 * xdisp.c (set_iterator_to_next):
6965 Call composition_compute_stop_pos with negative ENDPOS if we are
82ebc97b
KH
6966 scanning backward. Call composition_compute_stop_pos if scan
6967 direction is changed.
6968 (next_element_from_buffer): Call composition_compute_stop_pos with
6969 negative ENDPOS if we are scanning backward.
6970 (next_element_from_composition): Pay attention to
6971 IT->cmp_it.reversed_p.
6972
0e5d7800
KH
69732010-05-14 Kenichi Handa <handa@m17n.org>
6974
560bb7ae 6975 * font.c (font_range): Return the range for the font found at first.
0e5d7800 6976
cb027b32
GM
69772010-05-14 Glenn Morris <rgm@gnu.org>
6978
177b0288
GM
6979 * Makefile.in (ns_appdir, ns_appbindir, ns_appsrc): Always define.
6980
fbc00890
GM
6981 * Makefile.in (mktime, X11, register): Move undefs to configure.
6982
f14d1dfd
GM
6983 * Makefile.in (MSDOS_OBJ): Default to empty, let msdos scripts set it.
6984 (MSDOS_X_OBJ): New variable.
6985 (MSDOS_SUPPORT_REAL): New constant.
6986 (MSDOS_SUPPORT): Set as a variable, not with cpp.
6987 (obj): Use MSDOS_X_OBJ.
6988 (lisp): Use MSDOS_SUPPORT as a variable.
6989
11842bd8
GM
6990 * Makefile.in (REAL_MOUSE_SUPPORT): New constant.
6991 (GPM_MOUSE_SUPPORT): Now it's a constant.
6992 (MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): Set with configure,
6993 not cpp.
6994
489d31a4 6995 * Makefile.in (@NS_IMPL_GNUSTEP_INC@): Use in place of #ifdef.
845612ac 6996 (ns_appresdir): Remove, unused.
e20f1f07 6997
489d31a4
GM
6998 * Makefile.in (SHELL): Move outside cpp section.
6999
cb027b32
GM
7000 * s/netbsd.h (AMPERSAND_FULL_NAME): Remove (defined in AH_BOTTOM).
7001
5a903aa9
GM
70022010-05-13 Glenn Morris <rgm@gnu.org>
7003
3369c79f
GM
7004 * Makefile.in (FONT_DRIVERS): Place with other HAVE_X_WINDOWS stuff.
7005 (TOOLTIP_SUPPORT): Place with other HAVE_WINDOW_SYSTEM stuff.
7006
d5e982a6
GM
7007 * Makefile.in (FONT_DRIVERS): If HAVE_X_WINDOWS is defined,
7008 HAVE_WINDOW_SYSTEM must be too.
7009
6192e163
GM
7010 * Makefile.in (WINNT_SUPPORT): Remove, nt build does not use this file.
7011 (lisp): Remove WINNT_SUPPORT.
7012
472c5d6b
GM
7013 * Makefile.in (OLDXMENU, LIBXMENU) [!HAVE_MENUS]:
7014 Let configure set these variables (to empty) in this case as well.
7015
0116466b
GM
7016 * Makefile.in (LD_SWITCH_X_SITE): Define as a variable, not via cpp.
7017 (LIBX_BASE): Use $LD_SWITCH_X_SITE.
7018
5a903aa9
GM
7019 * Makefile.in (C_SWITCH_X_SYSTEM, C_SWITCH_X_SITE, LIB_STANDARD)
7020 (LIB_MATH, FONTCONFIG_CFLAGS, FONTCONFIG_LIBS, FREETYPE_CFLAGS)
7021 (FREETYPE_LIBS, LIBOTF_CFLAGS, LIBOTF_LIBS, M17N_FLT_CFLAGS)
7022 (M17N_FLT_LIBS, GNU_OBJC_CFLAGS, GNUSTEP_SYSTEM_LIBRARIES, LIBGPM)
7023 (LIBRESOLV, UNEXEC_OBJ): For clarity, define variables to hold
c0a2b70a 7024 the values output by configure.
5a903aa9
GM
7025 (ALL_CFLAGS, obj, LIBES, temacs${EXEEXT}): Use the above variables.
7026
1a0d7c06
GM
70272010-05-12 Glenn Morris <rgm@gnu.org>
7028
b5457f14
GM
7029 * Makefile.in (YMF_PASS_LDFLAGS, LD, LINKER): Simplify the logic.
7030 (LINKER_WAS_SPECIFIED): Remove.
7031
1a0d7c06
GM
7032 * Makefile.in (LIB_GCC): Set using configure, not cpp.
7033 (GNULIB_VAR) [!ORDINARY_LINK]: Always set to $LIB_GCC.
7034 * m/arm.h (LIB_GCC) [GNU_LINUX]:
7035 * s/cygwin.h (LIB_GCC):
7036 * s/freebsd.h (LIB_GCC):
7037 * s/gnu-linux.h (LIB_GCC):
7038 * s/msdos.h (LIB_GCC):
7039 * s/netbsd.h (LIB_GCC):
7040 Move to configure.
7041
d1ddd1d0 70422010-05-11 Karel Klíč <kklic@redhat.com>
c90ca7b7
KH
7043
7044 * ftfont.c: Fix incorrect parentheses of #if condition for
7045 definining M17N_FLT_USE_NEW_FEATURE.
7046
acddf8ae
GM
70472010-05-11 Glenn Morris <rgm@gnu.org>
7048
7049 * Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset.
7050 * s/msdos.h (MSDOS_LIBS_SYSTEM): Remove.
7051
ae5e04fa
EZ
70522010-05-10 Eli Zaretskii <eliz@gnu.org>
7053
7054 * xdisp.c (init_iterator): Don't turn on bidi reordering in
7055 unibyte buffers. See
7056 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00263.html.
7057
7490175b
GM
70582010-05-10 Glenn Morris <rgm@gnu.org>
7059
97efb629
GM
7060 * Makefile.in (LIBS_SYSTEM): Set using configure, not cpp.
7061 (LIBS_SYSTEM) [MSDOS]: Reset with MSDOS_LIBS_SYSTEM.
7062 (LIBES): Use LIBS_SYSTEM as a variable.
7063 * s/msdos.h (LIBS_SYSTEM): Rename to MSDOS_LIBS_SYSTEM. Always define.
7064 * s/aix4-2.h (LIBS_SYSTEM):
7065 * s/freebsd.h (LIBS_SYSTEM):
7066 * s/hpux10-20.h (LIBS_SYSTEM):
7067 * s/sol2-6.h (LIBS_SYSTEM):
7068 * s/unixware.h (LIBS_SYSTEM):
7069 Move to configure.
7070
7490175b
GM
7071 * s/aix4-2.h (MAIL_USE_LOCKF):
7072 * s/bsd-common.h (MAIL_USE_FLOCK):
7073 * s/darwin.h (MAIL_USE_FLOCK):
7074 * s/gnu-linux.h (MAIL_USE_FLOCK):
7075 * s/irix6-5.h (MAIL_USE_FLOCK):
7076 * s/template.h (MAIL_USE_FLOCK):
7077 Move to configure.
7078
0235128c 70792010-05-08 Chong Yidong <cyd@stupidchicken.com>
61a808e8
CY
7080
7081 * Version 23.2 released.
7082
0235128c 70832010-05-08 Andreas Schwab <schwab@linux-m68k.org>
5dcde606
AS
7084
7085 * composite.c (autocmp_chars): Save point as marker before calling
7086 auto-composition-function (Bug#5984).
7087
7088 * lisp.h (restore_point_unwind): Add prototype.
7089
7090 * fileio.c (restore_point_unwind): Remove static attribute.
7091
0235128c 70922010-05-08 Kenichi Handa <handa@m17n.org>
c4170e32
KH
7093
7094 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
7095 new feature of libotf and m17n-flt.
0235128c
SM
7096 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
7097 Call OTF_check_features even if no specific feature is given.
c4170e32
KH
7098 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
7099 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
7100 that OUT is NULL. Use OTF_drive_gsub_with_log and
7101 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
7102 OTF_drive_gpos.
7103 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
0235128c
SM
7104 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
7105 Setup mflt_enable_new_feature and mflt_try_otf.
7106
4721152c
J
71072010-05-08 Jan Djärv <jan.h.d@swipnet.se>
7108
7109 * xsettings.c (Ftool_bar_get_system_style): Correct comment.
7110
7111 * gtkutil.c (xg_pack_tool_bar): Change show_all to show for handle
7112 box and toolbar (Bug #6139).
7113 (xg_create_tool_bar): Remove comment (Bug #6139).
7114 (xg_make_tool_item): Remove gtk_widget_show_all (Bug #6139).
7115 (xg_show_toolbar_item): Add gtk_widget_show for weventbox (Bug #6139).
7116
ee0a16cf
JB
71172010-05-08 Juanma Barranquero <lekktu@gmail.com>
7118
7119 * makefile.w32-in ($(BLD)/eval.$(O), $(BLD)/w32fns.$(O)):
7120 Update dependencies.
7121
96d79611
EZ
71222010-05-08 Eli Zaretskii <eliz@gnu.org>
7123
7124 * fringe.c (update_window_fringes): Set up truncation bitmaps for
7125 R2L lines.
7126
40c17879
GM
71272010-05-08 Glenn Morris <rgm@gnu.org>
7128
7b42b29f
GM
7129 * Makefile.in (THIS_IS_MAKEFILE): Remove, unused.
7130
40c17879
GM
7131 * Makefile.in (LIBS_TERMCAP): Set with configure, not cpp.
7132 (TERMCAP_OBJ): New, set by configure, replacing termcapobj.
7133 (termcapobj): Replace with TERMCAP_OBJ.
7134 (otherobj): Use $TERMCAP_OBJ instead of $termcapobj.
7135 (LIBES): Use LIBS_TERMCAP as a variable.
7136
7137 * s/freebsd.h (osreldate.h): No longer include, since this file
7138 does not use __FreeBSD_version any more.
7139
7140 * s/aix4-2.h (TERMINFO):
7141 * s/cygwin.h (TERMINFO):
7142 * s/darwin.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
7143 * s/freebsd.h (TERMINFO, LIBS_TERMCAP):
7144 * s/gnu-linux.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
7145 * s/gnu.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
7146 * s/hpux10-20.h (TERMINFO, LIBS_TERMCAP):
7147 * s/irix6-5.h (TERMINFO):
7148 * s/netbsd.h (LIBS_TERMCAP):
7149 * s/openbsd.h (TERMINFO, LIBS_TERMCAP):
7150 * s/sol2-6.h (LIBS_TERMCAP) [!TERMINFO]:
7151 * s/usg5-4.h (TERMINFO):
7152 Move to configure.
7153
94b612ad
SM
71542010-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
7155
7156 * eval.c (unbind_to): Don't unbind a local binding into the global
7157 binding when the local binding disappeared. Inversely, don't unbind
7158 a global binding into a newly created local binding.
7159 * data.c (set_internal): Make its `buf' arg into a `where' arg so we
7160 can specify the frame to use, when applicable. Adjust callers.
7161
15e12598 71622010-05-07 Vincent Belaïche <vincent.belaiche@gmail.com>
acd0102a 7163 Stefan Monnier <monnier@iro.umontreal.ca>
15e12598
VB
7164
7165 * floatfns.c (Fisnan, Fcopysign, Ffrexp, Fldexp): New functions.
7166
f724825e
EZ
71672010-05-07 Eli Zaretskii <eliz@gnu.org>
7168
5cba3209
EZ
7169 * w32fns.c: Include w32.h.
7170 (Fw32_shell_execute): Decode the error message before passing it
7171 to `error'. (Bug#6126)
7172
d16bdfc3
EZ
7173 * msdos.c (dos_set_window_size):
7174 * w16select.c (Fx_selection_exists_p): Use `Fsymbol_value (foo)'
7175 instead of `XSYMBOL (foo)->value'.
7176
59d93e87
EZ
71772010-05-07 Eli Zaretskii <eliz@gnu.org>
7178
9fdec8bc
EZ
7179 Fix the MS-DOS build, broken by autoconfiscation.
7180
7181 * Makefile.in: Don't use Make-style comments past the "start of
7182 cpp stuff" line.
7183 (MSDOS_OBJ): Remove xmenu.o (it is now defined by XMENU_OBJ).
7184
7185 * s/msdos.h (UNEXEC): Don't define (@unexec@ in Makefile.in is
7186 edited directly by msdos/sed1v2.inp).
f724825e 7187
2f86b22b
GM
71882010-05-07 Glenn Morris <rgm@gnu.org>
7189
7190 * Makefile.in (LD_SWITCH_SYSTEM): Set with configure, not cpp.
7191 (LD_SWITCH_SYSTEM_EXTRA): New variable, set by configure.
7192 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM and $LD_SWITCH_SYSTEM_EXTRA,
7193 move out of cpp section.
7194 * s/freebsd.h (LD_SWITCH_SYSTEM):
7195 * s/gnu-linux.h (LD_SWITCH_SYSTEM):
7196 * s/netbsd.h (LD_SWITCH_SYSTEM):
7197 * s/openbsd.h (LD_SWITCH_SYSTEM): Move to configure.in.
7198
49ebbd65
DN
71992010-05-07 Dan Nicolaescu <dann@ics.uci.edu>
7200
7201 Define LIB_STANDARD and START_FILES using autoconf.
7202 * s/usg5-4.h (LIB_STANDARD):
7203 * s/netbsd.h (START_FILES):
7204 * s/irix6-5.h (LIB_STANDARD):
7205 * s/hpux10-20.h (LIB_STANDARD, START_FILES):
7206 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
7207 * s/freebsd.h (START_FILES):
7208 * s/darwin.h (START_FILES):
7209 * s/cygwin.h (START_FILES):
7210 * s/aix4-2.h (LIB_STANDARD):
7211 * m/ibmrs6000.h (START_FILES): Remove, move logic to configure.in.
7212 * Makefile.in (STARTFILES): Rename to START_FILES, define using
7213 autoconf, not cpp.
7214
d43c06d6
DN
72152010-05-06 Dan Nicolaescu <dann@ics.uci.edu>
7216
28823648
DN
7217 Remove NEED_BSDTTY and NEED_UNISTD_H.
7218 * s/hpux10-20.h (NEED_BSDTTY): Remove.
7219 * s/aix4-2.h (NEED_UNISTD_H): Remove.
7220 * systty.h: Simplify conditionals for including <sys/bsdtty.h>,
7221 <sys/ptyio.h> and <unistd.h>.
7222
aca00430
DN
7223 * emacs.c (main): Remove NO_DIR_LIBRARY conditional, unused.
7224
d43c06d6
DN
7225 * Makefile.in (STARTFILES): Conditionally define to make the usage clear.
7226 * s/gnu.h (START_FILES): Remove empty definition.
7227
3e56b11d
JD
72282010-05-06 Jan Djärv <jan.h.d@swipnet.se>
7229
7230 * xterm.c (x_draw_image_relief): Move declaration of extra to beginning.
7231
e3cf0cde
GM
72322010-05-06 Glenn Morris <rgm@gnu.org>
7233
7234 * Makefile.in (CPP, LN_S): Remove unused variables.
7235
774b9a60
SM
72362010-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
7237
7238 * syntax.c (Fchar_syntax): Check the arg is a character (bug#6080).
7239
4ab92842
LM
72402010-05-05 Lawrence Mitchell <wence@gmx.li>
7241
7242 * m/sparc.h: Fix typo in earlier change.
7243
178f2507
SM
72442010-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
7245
7246 Misc tweaks.
7247 * eval.c (Fdefvaralias): Remove unintended nested if.
7248 (internal_condition_case_2, internal_condition_case_n): Use ANSI type.
7249
80f00217 72502010-05-04 Bernhard Herzog <bh@intevation.de> (tiny change)
991be6d4
JD
7251
7252 * xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
7253
ef03a4e6
DN
72542010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
7255
58eb6cf0
DN
7256 Remove BSD_PGRPS.
7257 * s/bsd-common.h (BSD_PGRPS): Remove undef.
7258 * s/gnu-linux.h (BSD_PGRPS): Remove.
7259 * term.c (dissociate_if_controlling_tty):
7260 * sysdep.c (narrow_foreground_group, widen_foreground_group)
7261 (init_sys_modes, reset_sys_modes):
7262 * emacs.c (main):
7263 * callproc.c (Fcall_process, child_setup): Remove code depending
7264 on BSD_PGRPS.
7265
ef03a4e6
DN
7266 Remove POSIX_SIGNALS.
7267 * s/usg5-4.h (POSIX_SIGNALS):
7268 * s/netbsd.h (POSIX_SIGNALS):
7269 * s/msdos.h (POSIX_SIGNALS):
7270 * s/ms-w32.h (POSIX_SIGNALS):
7271 * s/hpux11.h (POSIX_SIGNALS):
7272 * s/gnu.h (POSIX_SIGNALS):
7273 * s/gnu-linux.h (POSIX_SIGNALS):
7274 * s/freebsd.h (POSIX_SIGNALS):
7275 * s/darwin.h (POSIX_SIGNALS):
7276 * s/cygwin.h (POSIX_SIGNALS):
7277 * s/aix4-2.h (POSIX_SIGNALS): Remove definition.
7278 * s/unixware.h:
7279 * s/sol2-6.h: Remove comments on POSIX_SIGNALS.
7280 * process.c (create_process):
7281 * syssignal.h:
7282 * sysdep.c (wait_for_termination, init_signals):
7283 * process.c (create_process):
7284 * msdos.c: POSIX_SIGNALS is always defined on all platforms,
7285 remove all code that assumes the contrary.
7286
49628785
GM
72872010-05-04 Glenn Morris <rgm@gnu.org>
7288
27a2cdfc
GM
7289 * s/gnu-linux.h (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX as a shell
7290 variable.
7291 * s/netbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
7292 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH.
7293 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
7294 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH instead of
7295 LD_SWITCH_SYSTEM_tmp.
7296 * Makefile.in (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH):
7297 New variables, set by configure.
7298
eb21eab5
GM
7299 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
7300 * s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
7301 (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
7302 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
7303 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.
7304
49628785
GM
7305 * s/aix4-2.h (C_SWITCH_SYSTEM):
7306 * m/alpha.h (C_SWITCH_MACHINE):
7307 Move to configure.in.
7308 * Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
7309 New variables, set by configure.
7310 (ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
7311 $c_switch_machine and $c_switch_system.
7312
7dff330b
DN
73132010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
7314
7315 * s/hpux10-20.h (LIB_STANDARD): New definition.
7316 * Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
7317 on it, not used anymore.
7318
53967e09
CY
73192010-05-03 Chong Yidong <cyd@stupidchicken.com>
7320
7321 * eval.c (internal_condition_case_n): Rename from
7322 internal_condition_case_2.
7323 (internal_condition_case_2): New function.
7324
7325 * xdisp.c (safe_call): Use internal_condition_case_n.
7326
7327 * fileio.c (Fdelete_file, internal_delete_file): New arg FORCE.
7328 (internal_delete_file, Frename_file): Callers changed.
7329
7330 * buffer.c (Fkill_buffer):
7331 * callproc.c (delete_temp_file): Callers changed (Bug#6070).
7332
7333 * lisp.h: Update prototypes.
7334
3dee6fdb
GM
73352010-05-03 Glenn Morris <rgm@gnu.org>
7336
7337 * Makefile.in (LIBX_EXTRA, LIBX_BASE): New variables.
7338 (LIBXT_OTHER, LIBX_OTHER): New, set by configure.
7339 (LIBXT): Set with configure, not cpp.
7340 (LIBX): Remove.
7341 (LIBES): Replace $LIBX with $LIBX_BASE and $LIBX_OTHER.
7342
a101e0fb
DN
73432010-05-02 Dan Nicolaescu <dann@ics.uci.edu>
7344
7345 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove.
7346 The FreeBSD is not needed, the default works, Solaris version is
7347 not needed, and the remaining case is not supported by configure.
7348
f63d0028
JD
73492010-05-02 Jan Djärv <jan.h.d@swipnet.se>
7350
7351 * xsmfns.c (CHDIR_OPT): New define.
7352 (smc_save_yourself_CB): Add CHDIR_OPT to options to use when
7353 restarting emacs.
7354
7355 * xterm.c (x_connection_closed): Call Fkill_emacs instead of
7356 shut_down_emacs.
7357
7358 * emacs.c (USAGE1): Mention --chdir.
7359 (main): Handle --chdir.
7360 (standard_args): Add --chdir.
7361 (fatal_error_signal): Call Fkill_emacs for SIGTERM and SIGHUP (Bug
7362 #5552).
7363
e4814a9f
DN
73642010-05-01 Dan Nicolaescu <dann@ics.uci.edu>
7365
cd03c74a
DN
7366 Remove LD_SWITCH_MACHINE.
7367 * Makefile.in (LD_SWITCH_MACHINE): Remove definition, unused.
7368 (TEMACS_LDFLAGS): Do not use LD_SWITCH_MACHINE.
7369
c3a398a1
DN
7370 Clean up IRIX code.
7371 * m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
7372 * s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.
7373
87e7285c
DN
7374 Clean up AIX code.
7375 * m/ibmrs6000.inp: Remove file, unused.
7376 * m/ibmrs6000.h (IBMR2AIX): Remove, unused.
7377 (LD_SWITCH_MACHINE): Rename to LD_SWITCH_SYSTEM_TEMACS, and move
7378 definition ...
7379 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): ... here.
7380
80f00217
JB
7381 * sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code,
7382 unused.
e4814a9f 7383
59ca28de
EZ
73842010-05-01 Eli Zaretskii <eliz@gnu.org>
7385
197daef4
EZ
7386 Emulate POSIX_SIGNALS on MS-Windows.
7387
7388 * s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
7389 (SIG_SETMASK, SIG_UNBLOCK): Define.
d6dae14b
EZ
7390
7391 * sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
7392 (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
7393 from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
7394
80f00217
JB
7395 * w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask):
7396 New stubs.
197daef4 7397
af7c7572
EZ
7398 Miscellaneous fixes of bidi display.
7399
59ca28de
EZ
7400 * xdisp.c (find_row_end): New function, refactored from display_line.
7401 (display_line): Use it.
017ea819
EZ
7402 (extend_face_to_end_of_line): In almost-filled rows, extend only
7403 if the row is R2L and not continued.
166e930d 7404 (display_line): Fix prepending of truncation glyphs to R2L rows.
af7c7572 7405 Preserve overlay and string info in row->end.
166e930d
EZ
7406 (insert_left_trunc_glyphs): Support addition of left truncation
7407 glyphs to R2L rows.
b47e0dcf 7408 (set_cursor_from_row): Don't place cursor on the vertical border
af7c7572
EZ
7409 glyph between adjacent windows. Fix a crash when a display string
7410 is continued to the next line. Don't return zero if cursor was
7411 found by `cursor' property of a display string.
b47e0dcf
EZ
7412 (try_cursor_movement): Don't assume that row->end == (row+1)->start,
7413 test for that explicitly.
59ca28de 7414
7acac9f4
GM
74152010-05-01 Glenn Morris <rgm@gnu.org>
7416
7417 * Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null,
7418 for clarity.
7419 (OTHER_OBJ): Remove.
7420 (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure.
7421 (otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ.
7422
45841e65
KK
74232010-05-01 Karel Klíč <kklic@redhat.com>
7424
7425 * fileio.c (Ffile_selinux_context): Context functions may return null.
7426
afc61943
DN
74272010-04-30 Dan Nicolaescu <dann@ics.uci.edu>
7428
80f00217 7429 * s/gnu.h (POSIX_SIGNALS, START_FILES): New definitions.
afc61943 7430
5a1bb006
GM
74312010-04-30 Glenn Morris <rgm@gnu.org>
7432
7433 * Makefile.in (vmlimitobj) [!SYSTEM_MALLOC]: New variable. (Bug#6065)
7434 (OTHER_OBJ): Define as a separate variable, for clarity.
7435
210af043
J
74362010-04-30 Jan Djärv <jan.h.d@swipnet.se>
7437
7438 * xsettings.c: include limits.h and update file comment.
7439
0a7df391
GM
74402010-04-30 Glenn Morris <rgm@gnu.org>
7441
d5096f16
GM
7442 * Makefile.in (OLDXMENU, LIBXMENU) [HAVE_MENUS]:
7443 Set with configure, not cpp.
7444 (LIBW): Remove, replace with $TOOLKIT_LIBW.
7445
7eb1ac33
GM
7446 * Makefile.in (mallocobj): Remove.
7447 (otherobj): Simplify using @OTHER_OBJ@.
7448
517d086b
GM
7449 * Makefile.in (dispnew.o, frame.o, fringe.o, font.o, fontset.o)
7450 (keyboard.o, window.o, xdisp.o, xfaces.o, menu.o):
7451 Don't bother making nsgui.h dependency platform-specific.
7452
0a7df391
GM
7453 * Makefile.in (nsfns.o): Remove duplicate nsgui.h dependency.
7454
d6d23852
SM
74552010-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
7456
d2630aef
SM
7457 * process.c (read_process_output, exec_sentinel): Don't burp if the
7458 sentinel/filter kills the current buffer (bug#6060).
7459
f9dddf52 7460 Fix wrong-docstring problem introduced with hash-consing. (Bug#6008)
d6d23852
SM
7461 * eval.c (Fautoload): Set doc to a unique number rather than to 0.
7462 Remove unused var `args'.
7463 * lisp.h (XSETCARFASTINT, XSETCDRFASTINT): Remove.
7464 (LOADHIST_ATTACH): Wrap with do...while to avoid surprises for callers.
7465 * doc.c (store_function_docstring): Use XSETCAR.
7466
f1e3642a
GM
74672010-04-28 Glenn Morris <rgm@gnu.org>
7468
faf535f8
GM
7469 * Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
7470 (WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.
7471
c40f9449
GM
7472 * Makefile.in (CYGWIN_OBJ): Set with configure, not cpp.
7473
658f86ca
GM
7474 * Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure.
7475 (MOUSE_SUPPORT) [!HAVE_MOUSE]: Use $GPM_MOUSE_SUPPORT.
7476
bc0b5f61
GM
7477 * Makefile.in (FONT_OBJ): New, set by configure.
7478 (FONT_DRIVERS): Use $FONT_OBJ.
7479
294c50a0
GM
7480 * Makefile.in (LIBXMU): Set with configure, not cpp.
7481 * s/aix4-2.h (LIBXMU):
7482 * s/hpux10-20.h (LIBXMU):
7483 Remove definition, now set in configure.
7484
e6ec4e99
GM
7485 * Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.
7486
f1e3642a
GM
7487 * m/amdx86-64.h [i386]: Move this test to configure.in.
7488
c6ea2936
GM
74892010-04-27 Glenn Morris <rgm@gnu.org>
7490
8fdac2c3
GM
7491 * Makefile.in (LIBXTR6): Set with configure, not cpp.
7492 * s/unixware.h (NEED_LIBW): Remove definition.
7493
986fb647
GM
7494 * Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
7495 (TOOLKIT_LIBW): New, set by configure.
7496 (@X_TOOLKIT_TYPE@): No longer define it.
7497
c6ea2936
GM
7498 * Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
7499 (MOTIF_LIBW): Set with configure, not cpp.
7500 * s/aix4-2.h (LIB_MOTIF):
7501 * s/gnu-linux.h (LIB_MOTIF):
7502 * s/unixware.h (LIB_MOTIF): Move to configure.in.
7503
aaa36002
DN
75042010-04-27 Dan Nicolaescu <dann@ics.uci.edu>
7505
7506 Reduce CPP usage.
7507 * Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
7508 (obj): Use autoconf for unexec instead of cpp.
bba3e508
SM
7509 (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE):
7510 Remove definitions and undefs. Inline definitions in the only user.
ed6281b0 7511 (ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.
aaa36002 7512
b678dd8b
GM
75132010-04-27 Glenn Morris <rgm@gnu.org>
7514
76cda504
GM
7515 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
7516 since the defaults (set by the system file) are fine in most cases.
7517 [GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
7518 * m/ibms390x.h (START_FILES, LIB_STANDARD):
7519 * m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
7520 * m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
7521 Remove definitions, since they are set correctly in s/gnu-linux.h.
7522 * s/freebsd.h (START_FILES, LIB_STANDARD):
7523 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
7524 * s/hpux10-20.h (START_FILES):
7525 * s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
7526 Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
7527
b678dd8b
GM
7528 * Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
7529 (MOTIF_LIBW): Use $LIBXP.
7530 (otherobj): Use $WIDGET_OBJ.
7531
9452ded1
DN
75322010-04-26 Dan Nicolaescu <dann@ics.uci.edu>
7533
7e10844c
DN
7534 * Makefile.in (LIBS_MACHINE): Remove, unused.
7535
9452ded1
DN
7536 Use autoconf instead of cpp for LIB_MATH.
7537 * s/darwin.h (LIB_MATH): Do not define here, move to configure.
7538 * s/cygwin.h (LIB_MATH): Likewise.
7539 * Makefile.in (LIB_MATH): Do not define with cpp.
7540 (LIBES): Use autoconf for LIB_MATH.
7541
fcebfc6a
KH
75422010-04-26 Kenichi Handa <handa@m17n.org>
7543
7544 * composite.c (Ffind_composition_internal): Fix the return value
7545 for an automatic composition.
7546
39e2ad1b
DN
75472010-04-25 Dan Nicolaescu <dann@ics.uci.edu>
7548
7549 Remove all NO_ARG_ARRAY uses.
7550 * fns.c (concat2, concat3, nconc2):
7551 * eval.c (apply1, call1, call2, call3, call4, call5, call6)
7552 (call7): Remove NO_ARG_ARRAY usage, assume it's always true.
7553 * m/xtensa.h (NO_ARG_ARRAY):
7554 * m/template.h (NO_ARG_ARRAY):
7555 * m/sparc.h (NO_ARG_ARRAY):
7556 * m/sh3.h (NO_ARG_ARRAY):
7557 * m/mips.h (NO_ARG_ARRAY):
7558 * m/macppc.h (NO_ARG_ARRAY):
7559 * m/iris4d.h (NO_ARG_ARRAY):
7560 * m/intel386.h (NO_ARG_ARRAY):
7561 * m/ibms390x.h (NO_ARG_ARRAY):
7562 * m/ibms390.h (NO_ARG_ARRAY):
7563 * m/ibmrs6000.h (NO_ARG_ARRAY):
7564 * m/ia64.h (NO_ARG_ARRAY):
7565 * m/hp800.h (NO_ARG_ARRAY):
7566 * m/arm.h (NO_ARG_ARRAY):
7567 * m/amdx86-64.h (NO_ARG_ARRAY):
7568 * m/alpha.h (NO_ARG_ARRAY): Remove definition.
7569
adf4f59c
EZ
75702010-04-25 Eli Zaretskii <eliz@gnu.org>
7571
6bdf5d65
EZ
7572 * xdisp.c (display_line): Don't assume 2nd call to
7573 get_next_display_element cannot return zero. (Bug#6030)
f538fcec
EZ
7574 (iterate_out_of_display_property): New function, body from pop_it.
7575 (pop_it): Use it.
adf4f59c 7576
dfbbda83
GM
75772010-04-24 Glenn Morris <rgm@gnu.org>
7578
7579 * m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]:
7580 For clarity, revert to using fixed /usr/lib rather than $CRT_DIR.
7581 (START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case,
7582 since CRT_DIR defaults to /usr/lib. Suggested by Dan Nicolaescu.
7583
2d4018aa
EZ
75842010-04-24 Eli Zaretskii <eliz@gnu.org>
7585
a49884a6
EZ
7586 * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
7587 use `get_next_display_element' and `set_iterator_to_next' to
7588 advance to the next character, when looking for the character that
7589 begins the next row.
7590
76db6fcc 7591 * .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
2d4018aa
EZ
7592 definition of "struct Lisp_Symbol".
7593
70eab5c1
GM
75942010-04-24 Glenn Morris <rgm@gnu.org>
7595
7596 * Makefile.in (CRT_DIR): New variable, set by configure.
7597 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
7598 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
7599
1ad4cc3d
DN
76002010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
7601
e769f484
DN
7602 * Makefile.in: Remove C_SWITCH_X_MACHINE, unused.
7603
4196ff33
DN
7604 * s/cygwin.h (LIBS_DEBUG): Remove, unused.
7605
879b0ee4
DN
7606 Remove redundant flags.
7607 * s/freebsd.h (C_SWITCH_SYSTEM):
7608 * s/hpux10-20.h (C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
7609 * s/netbsd.h (C_SWITCH_SYSTEM):
7610 * s/openbsd.h (LD_SWITCH_X_DEFAULT): Remove, configure takes care
7611 of these.
7612
03cbbcb8
DN
7613 Simplify m/intel386.h.
7614 * m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
7615 user: ecrt0.c.
7616 (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
7617 (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
7618 the only user: s/unixware.h.
7619 * ecrt0.c: Remove #ifndef static. Inline CRT0_DUMMIES definition
7620 from m/intel386.h.
bba3e508
SM
7621 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE):
7622 Definitions moved here from m/intel386.h.
03cbbcb8 7623
1ad4cc3d
DN
7624 * m/mips.h: Remove #if 0 code.
7625
8785b888
EZ
76262010-04-23 Eli Zaretskii <eliz@gnu.org>
7627
728588cc
EZ
7628 Fix display of composed characters from L2R scripts in bidi buffers.
7629 * xdisp.c (set_iterator_to_next, next_element_from_composition):
7630 After advancing IT past the composition, resync the bidi iterator
7631 with IT's position. (Bug#5977)
7632
a63f80b4
DN
76332010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
7634
7635 * Makefile.in (LD_SWITCH_MACHINE_TEMACS): Remove, unused.
7636 (TEMACS_LDFLAGS): Don't use LD_SWITCH_SYSTEM_TEMACS.
7637
ff5dec5c
SM
76382010-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
7639
7640 * gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.
7641
8785b888
EZ
76422010-04-23 Eli Zaretskii <eliz@gnu.org>
7643
58ccf243 7644 Support `display' text properties and overlay strings in bidi buffers.
8785b888
EZ
7645 * xdisp.c (pop_it): When the stack is popped after displaying
7646 from a string, bidi-iterate to exit from the text portion covered
7647 by the `display' property or overlay. (Bug#5988, bug#5920)
7648
feeb1604
DN
76492010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
7650
8e324eb6
DN
7651 * m/macppc.h (LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
7652 (LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.
7653
809fcaba
DN
7654 * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
7655 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
7656
ed710380
DN
7657 Simplify STARTFILES definition.
7658 * s/hpux10-20.h (START_FILES): Explicitly define here instead of
7659 relying on Makefile.in to define it.
7660 * s/cygwin.h (START_FILES): Likewise.
7661 * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
7662
feeb1604
DN
7663 Clean up Solaris code.
7664 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
7665 (LIB_MOTIF): Remove, configure takes care of this.
7666 (NOT_USING_MOTIF): Remove, unused.
7667 * xrdb.c: Remove #if 0-ed #include.
7668 (SYSV): Remove conditional for old SysV.
7669 * sysdep.c (closedir): Remove conditional code for Solaris,
7670 Solaris has closedir.
7671
a0d0b563
JD
76722010-04-22 Jan Djärv <jan.h.d@swipnet.se>
7673
7674 * xsettings.c (read_and_apply_settings): Check if current_font is
7675 NULL before strcmp (Bug#6001).
7676
56bae7c7
DN
76772010-04-21 Dan Nicolaescu <dann@ics.uci.edu>
7678
7679 Clean up HP-UX files.
7680 * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
7681 (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
7682 (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
7683 * s/hpux10-20.h: ... to the only user, here.
7684
372b7a95
EZ
76852010-04-21 Eli Zaretskii <eliz@gnu.org>
7686
7687 * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
7688 use buffer-local values of paragraph-start and paragraph-separate.
7689 <paragraph_start_re, paragraph_separate_re>: Rename from
7690 fallback_paragraph_start_re and fallback_paragraph_separate_re.
7691 (Bug#5992)
7692
f904c0f9
JD
76932010-04-21 Jan Djärv <jan.h.d@swipnet.se>
7694
7695 * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
7696 current_tool_bar_style are new.
7697 (store_config_changed_event): Rename from store_font_changed_event.
7698 (XSETTINGS_TOOL_BAR_STYLE): New define.
7699 (SEEN_FONT, SEEN_TB_STYLE): New enum values.
7700 (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
7701 HAVE_XFT.
7702 (something_changedCB): store_font_changed_event is now
c4cc8b9a 7703 store_config_changed_event.
bba3e508
SM
7704 (parse_settings): Rename from parse_xft_settings.
7705 Read non-xft xsettings outside #ifdef HAVE_XFT.
ef1b0ba7 7706 (read_settings): Rename from read_xft_settings.
f904c0f9
JD
7707 (apply_xft_settings): Take current settings as parameter. Do not
7708 call read_(xft)_settings.
7709 (read_and_apply_settings): New function.
bba3e508
SM
7710 (xft_settings_event): Do non-xft stuff out of HAVE_XFT.
7711 Call read_and_apply_settings if there are settings to be read.
ef1b0ba7 7712 (init_xsettings): Rename from init_xfd_settings.
f904c0f9
JD
7713 Call read_and_apply_settings unconditionally.
7714 (xsettings_initialize): Call init_xsettings.
7715 (Ftool_bar_get_system_style): New function.
7716 (syms_of_xsettings): Define Qmonospace_font_name and
7717 Qtool_bar_style. Initialize current_tool_bar_style to nil.
f9dddf52 7718 defsubr Stool_bar_get_system_style. Fprovide on
f904c0f9 7719 dynamic-setting.
31a01b90 7720 Move misplaced HAVE_GCONF
f904c0f9
JD
7721
7722 * xsettings.h (Ftool_bar_get_system_style): Declare.
7723
7724 * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
7725 Qtext, Qboth, Qboth_horiz are new.
7726 (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
7727 Vtool_bar_style, tool_bar_max_label_size.
7728
7729 * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
7730
7731 * keyboard.c: QClabel is new.
7732 (parse_tool_bar_item): Take out QClabel from tool bar items.
7733 Try to construct a label if ther is no QClabel.
7734 (syms_of_keyboard): Intern :label as QClabel.
7735
7736 * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
7737 (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
7738 New.
7739
7740 * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
7741 dynamic-setting.el.
7742
7743 * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
7744 (xg_make_tool_item, xg_show_toolbar_item): New function.
7745 (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
7746 Call xg_make_tool_item to make a tool bar item.
7747 Call xg_show_toolbar_item. Use wtoolbar instead of x->toolbar_widget.
7748
7749 * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
7750 into account for toolbars.
7751
c632dfda
JD
77522010-04-21 Jan Djärv <jan.h.d@swipnet.se>
7753
7754 * data.c (make_blv): Declarations before code (Bug#5993).
7755
10efe302
GM
77562010-04-21 Glenn Morris <rgm@gnu.org>
7757
7758 * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
7759 Define using autoconf, not cpp.
7760 (LIBXSM): New variable, set by autoconf.
7761 (LIBXT): Use $LIBXSM.
7762
4285ac5a
DN
77632010-04-21 Dan Nicolaescu <local_user@dannlt>
7764
3ec759e7
DN
7765 Remove NOMULTIPLEJOBS, unused.
7766 * s/template.h (NOMULTIPLEJOBS):
7767 * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
7768
4285ac5a
DN
7769 Simplify LD_SWITCH_SYSTEM_TEMACS usage.
7770 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
7771 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
7772 detects -znocombreloc and passes it to the linker
7773 * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
7774
2807228d
GM
77752010-04-21 Glenn Morris <rgm@gnu.org>
7776
7777 * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
7778
574c05e2
KK
77792010-04-21 Karel Klíč <kklic@redhat.com>
7780
7781 * Makefile.in (LIBSELINUX_LIBS): New.
7782 (LIBES): Add $LIBSELINUX_LIBS.
7783 * eval.c, lisp.h (call7): New function.
7784 * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
7785 (Ffile_selinux_context, Fset_file_selinux_context):
7786 New functions.
7787 (Fcopy_file): New parameter preserve-selinux-context.
7788 (Frename_file): Preserve selinux context when renaming by copy-file.
7789
91eac4bb 77902010-04-21 Juanma Barranquero <lekktu@gmail.com>
acd0102a 7791 Eli Zaretskii <eliz@gnu.org>
91eac4bb 7792
50426a04
JB
7793 Don't depend on cm.c or termcap.c on Windows, use stubs.
7794 * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
7795 ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
7796 * w32console.c (current_tty, cost): New vars; lifted from cm.c.
7797 (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
7798 (sys_tputs, sys_tgetstr): New stubs.
7799 * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
7800 (tputs, tgetstr): New; define to sys_*.
91eac4bb 7801
938efb77
JB
78022010-04-20 Juanma Barranquero <lekktu@gmail.com>
7803
7804 * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
7805
b4bf28b7
SM
78062010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
7807
8b1e1112
SM
7808 * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
7809 Just signal a warning rather than an error when inside a let.
7810 (Fmake_variable_frame_local): Add the same test.
7811
933ac235
SM
7812 * font.c (syms_of_font): Make the style table vars read-only.
7813
b4bf28b7
SM
7814 * buffer.h (struct buffer): Remove unused var `direction_reversed'.
7815 * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
7816
7817 * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
7818
93d68d0c
EZ
78192010-04-20 Eli Zaretskii <eliz@gnu.org>
7820
7821 Fix R2L paragraph display on TTY.
7822
7823 * xdisp.c (unproduce_glyphs): New function.
7824 (display_line): Use it when produced glyphs are discarded from R2L
7825 glyph rows.
7826 (append_composite_glyph): In R2L rows, prepend the glyph rather
7827 than appending it.
7828
7829 * term.c (append_composite_glyph): In R2L rows, prepend the glyph
7830 rather than append it. Set up the resolved_level and bidi_type
7831 attributes of the appended glyph.
283ccc18
EZ
7832 (produce_special_glyphs): Mirror the backslash continuation
7833 character in R2L lines.
93d68d0c 7834
283ccc18 7835 Implement display of R2L paragraphs in GUI sessions.
26cdf528 7836
283ccc18
EZ
7837 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
7838 append_stretch_glyph.
bba3e508
SM
7839 (set_cursor_from_row) <cursor_x>: Remove unused variable.
7840 Fix off-by-one error in computing x at end of text in the row.
283ccc18
EZ
7841 (append_stretch_glyph): In reversed row, prepend the glyph rather
7842 than append it. Set resolved_level and bidi_type of the glyph.
7843 (extend_face_to_end_of_line): If the row is reversed, prepend a
7844 stretch glyph whose width is such that the rightmost glyph will be
7845 drawn at the right margin of the window. Fix off-by-one error on
bba3e508
SM
7846 TTY frames in testing whether a line needs face extension.
7847 Fix face extension at ZV. If this is the last glyph row, use
283ccc18
EZ
7848 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
7849 region face.
bba3e508
SM
7850 (set_cursor_from_row, display_line):
7851 Use MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
26cdf528 7852 row->continuation_lines_width.
283ccc18
EZ
7853 (next_element_from_buffer): Don't call bidi_paragraph_init if we
7854 are at ZV. Fixes a crash when reseated to ZV by
7855 try_window_reusing_current_matrix.
45903529
EZ
7856 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
7857 which happens with R2L glyph rows. Fixes a crash when inserting a
7858 character at end of an R2L line.
283ccc18
EZ
7859 (set_cursor_from_row): Don't be fooled by truncated rows: don't
7860 treat them as having zero-width characters. Improve comments.
7861 Don't reverse pos_before and pos_after for reversed glyph rows.
7862 Set cursor.x to negative value when the cursor might be on the
7863 left fringe.
7864 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
7865 left fringe, not the right one.
f951a506
EZ
7866 (notice_overwritten_cursor, draw_phys_cursor_glyph)
7867 (erase_phys_cursor): For reversed cursor_row, support cursor on
7868 the left fringe.
7869
283ccc18
EZ
7870 * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
7871 of continuation indicators on the fringes.
7872 (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
7873 left fringe.
7874
f951a506
EZ
7875 * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
7876 draw cursor on the left fringe.
7877
7878 * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
7879 cursor on the left fringe.
7880
f951a506
EZ
7881 * dispnew.c (update_text_area): Handle reversed desired rows when
7882 the cursor is on the left fringe.
7883 (set_window_cursor_after_update): Limit cursor's hpos by -1 from
7884 below, not by 0, for when the cursor is on the left fringe.
7885
3bb49aaf
JD
78862010-04-20 Jan Djärv <jan.h.d@swipnet.se>
7887
7888 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
7889 widget is a scrollbar.
7890
c0be27fd
KH
78912010-04-20 Kenichi Handa <handa@m17n.org>
7892
7893 * charset.c (char_charset): Consider Vcharset_non_preferred_head
7894 only when the arg CHARSET_LIST is nil.
7895
ce5b453a
SM
78962010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
7897
7898 Make variable forwarding explicit rather the using special values.
7899 Basically, this makes the structure of buffer-local values and object
7900 forwarding explicit in the type of Lisp_Symbols rather than use
7901 special Lisp_Objects for that. This tends to lead to slightly more
7902 verbose code, but is more C-like, simpler, and makes it easier to make
7903 sure we handled all cases, among other things by letting the compiler
7904 help us check it.
7905 * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
7906 Removing forwarding objects.
7907 (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
7908 (struct Lisp_Symbol): Make the various forms of variable-forwarding
7909 explicit rather than hiding them inside Lisp_Object "values".
7910 (XFWDTYPE): New macro.
7911 (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
7912 (XBUFFER_LOCAL_VALUE): Remove.
7913 (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
7914 (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
7915 (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
7916 (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
7917 (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
7918 Remove the Lisp_Misc_* header.
7919 (struct Lisp_Buffer_Local_Value): Redefine.
7920 (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
7921 (struct Lisp_Misc_Any): Add filler to get the right size.
7922 (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
7923 Lisp_Intfwd.
7924 (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
7925 (DEFVAR_KBOARD): Allocate a forwarding object.
7926 * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
7927 (let_shadows_global_binding_p): New function.
7928 (union Lisp_Val_Fwd): New type.
7929 (make_blv): New function.
7930 (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
7931 (store_symval_forwarding, swap_in_global_binding, Fboundp)
7932 (swap_in_symval_forwarding, find_symbol_value, Fset)
7933 (let_shadows_buffer_binding_p, set_internal, default_value)
7934 (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
7935 (Fkill_local_variable, Fmake_variable_frame_local)
7936 (Flocal_variable_p, Flocal_variable_if_set_p)
7937 (Fvariable_binding_locus):
7938 * xdisp.c (select_frame_for_redisplay):
7939 * lread.c (Fintern, Funintern, init_obarray, defvar_int)
7940 (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
7941 * frame.c (store_frame_param):
7942 * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
7943 * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
7944 value structure.
7945 * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
7946 (clone_per_buffer_values): Only adjust markers into the current buffer.
7947 (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
7948 (Fbuffer_local_value, set_buffer_internal_1)
7949 (swap_out_buffer_local_variables):
7950 Adapt to the new symbol value structure.
7951 (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
7952 (defvar_per_buffer): Take a new arg for the fwd object.
7953 (buffer_lisp_local_variables): Return a proper alist (different fix
7954 for bug#4138).
7955 * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
7956 (Fgarbage_collect): Don't handle buffer_defaults specially.
7957 (mark_object): Handle new symbol value structure rather than the old
7958 special Lisp_Misc_* objects.
7959 (gc_sweep) <symbols>: Free also the buffer-local-value objects.
7960 * term.c (set_tty_color_mode):
7961 * bidi.c (bidi_initialize): Don't access the ->value field directly.
7962 * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
7963 a buffer_local_flags.
7964 * print.c (print_object): Get rid of impossible forwarding objects.
7965
fd3998ff
EZ
79662010-04-19 Eli Zaretskii <eliz@gnu.org>
7967
7968 * bidi.c (bidi_get_type, bidi_get_category)
7969 (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
ce5b453a
SM
7970 (bidi_type_of_next_char, bidi_level_of_next_char):
7971 Declare static. Use `INLINE' rather than `inline'.
fd3998ff 7972
e42cd1a7
JB
79732010-04-19 Juanma Barranquero <lekktu@gmail.com>
7974
7975 * dired.c (Ffile_attributes): Fix typo in docstring.
7976
6e104790 79772010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
79353a53
AR
7978
7979 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
7980 NSInteger (Bug#5811).
7981
6e104790 79822010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
658b9b93
YM
7983
7984 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
7985 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
7986
6e104790 79872010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16009a0e
YM
7988
7989 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
7990
6e104790
SM
79912010-04-19 Chong Yidong <cyd@stupidchicken.com>
7992
7993 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
7994 terminal frames (Bug#5837).
7995
37dcfea0
EZ
79962010-04-19 Eli Zaretskii <eliz@gnu.org>
7997
d1da276f
EZ
7998 * .gdbinit (xsubchartable): New command.
7999
37dcfea0
EZ
80002010-04-19 Eli Zaretskii <eliz@gnu.org>
8001
8002 * xdisp.c (display_line): Don't write beyond the last glyph row in
9166b0f3 8003 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
37dcfea0
EZ
8004 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
8005 and
8006 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
8007
e9515805
SM
80082010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
8009
8010 * alloc.c (Fpurecopy): Hash-cons if requested.
8011 (syms_of_alloc): Update purify-flag docstring.
8012
22aa44a8
JD
80132010-04-18 Jan Djärv <jan.h.d@swipnet.se>
8014
8015 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
8016 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
8017
ebb5722e
EZ
80182010-04-17 Eli Zaretskii <eliz@gnu.org>
8019
8020 Fix a crash when an NSM character is inserted at BEGV.
8021
8022 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
8023 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
8024 NEUTRAL_B or UNKNOWN_BT.
8025
0f4442ef
EZ
80262010-04-16 Eli Zaretskii <eliz@gnu.org>
8027
8028 * xdisp.c (set_cursor_from_row): Don't consider possibility of
8029 other rows with cursor unless they are different from this row and
8030 this row is part of a continued line. (Bug#5943)
8031
7d4e45f8
DN
80322010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
8033
8034 * s/freebsd.h: Restore osreldate.h include.
8035 Suggested by Naohiro Aota.
8036
5ba5ec85
J
80372010-04-16 Jan Djärv <jan.h.d@swipnet.se>
8038
8039 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
8040
20af301d
CY
80412010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
8042
8043 * s/cygwin.h: Avoid linking against static libgcc.
8044
a4b000fb
JL
80452010-04-15 Juri Linkov <juri@jurta.org>
8046
8047 * window.c: Add Qscroll_command.
8048 Remove Vscroll_preserve_screen_position_commands.
8049 (window_scroll_pixel_based, window_scroll_line_based): Check the
8050 `scroll-command' property on the last command instead of searching
8051 the last command in Vscroll_preserve_screen_position_commands.
8052 (syms_of_window): Initialize and staticpro `Qscroll_command'.
8053 Put Qscroll_command property on Qscroll_up and Qscroll_down.
8054 (scroll-preserve-screen-position): Doc fix.
8055 (Vscroll_preserve_screen_position_commands): Remove variable.
8056
bc319ba4
DN
80572010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
8058
6bb24457
DN
8059 * xdisp.c (message): Do not use NO_ARG_ARRAY.
8060
19d4c244
DN
80612010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
8062
8063 Reduce cpp use in Makefile.in.
8064 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
8065 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
8066 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
8067 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
8068 (CRT0_COMPILE): Remove, inline it in the only user.
8069
32129746
JL
80702010-04-14 Juri Linkov <juri@jurta.org>
8071
8072 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
8073 `scroll-up-command' and `M-v' from `scroll-down' to
8074 `scroll-down-command'.
8075
9013a7f8
JL
80762010-04-14 Juri Linkov <juri@jurta.org>
8077
8078 * window.c (Vscroll_preserve_screen_position_commands): New variable
8079 with the default value as the list of Qscroll_down and Qscroll_up.
8080 (window_scroll_pixel_based, window_scroll_line_based): Search the
8081 last command in the list Vscroll_preserve_screen_position_commands
8082 instead of comparing with Qscroll_up and Qscroll_down.
8083
4bef8d26
JD
80842010-04-13 Jan Djärv <jan.h.d@swipnet.se>
8085
92848133
JD
8086 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
8087 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
8088 does that.
8089
4bef8d26
JD
8090 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
8091 to zero.
8092
58b963f7
SM
80932010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
8094
84164a0d
SM
8095 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
8096
2b0a91e7
SM
8097 Try to solve the problem of spurious EOF chars in long lines of text
8098 sent to interactive subprocesses.
8099 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
8100 (system_process_attributes): Remove unused var `ttotal'.
8101 * process.c (send_process): Don't bother breaking long line with EOF
8102 chars when talking to ttys any more.
8103 (wait_reading_process_output): Output a warning when called in such
8104 a way that it could block without being interruptible.
8105
58b963f7
SM
8106 Try to detect file modification within the same second.
8107 * buffer.h (struct buffer): New field modtime_size.
8108 * buffer.c (reset_buffer): Initialize it.
8109 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
8110 (Fverify_visited_file_modtime): Check it.
8111 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
8112 (Fset_visited_file_modtime): Set (or clear) it.
8113
01f5787b
SM
81142010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
8115
8116 * process.c (status_notify): Remove unused var `ro'.
8117
83725342
JD
81182010-04-12 Jan Djärv <jan.h.d@swipnet.se>
8119
8120 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
8121 more than one visual (Bug#5938).
8122
b9465836
DN
81232010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
8124
50426a04
JB
8125 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
8126 Undefine.
b9465836 8127
8d9c8ece
DN
81282010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
8129
b1f52161
DN
8130 Remove C_SWITCH_SYSTEM_TEMACS.
8131 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
8132 (malloc, realloc, free): Use emacs, not temacs for conditional
8133 definition.
8134
8135 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
8136 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
8137
8d9c8ece
DN
8138 Use autoconf, not cpp for some variables.
8139 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
8140 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
8141 (ALL_CFLAGS): Use them as make variables.
8142 (really-lwlib, really-oldXMenu): Do not pass them.
8143
1ecb2d3f
JD
81442010-04-11 Jan Djärv <jan.h.d@swipnet.se>
8145
8146 * xmenu.c (apply_systemfont_to_dialog): New.
8147 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
8148
3a4fa2f2
SM
81492010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
8150
97e53006
SM
8151 * process.c (exec_sentinel): Preserve current-buffer.
8152
3a4fa2f2
SM
8153 * process.c (read_process_output): Move the save-current-buffer to
8154 apply to both the filter and the non-filter branches.
8155
88df7221
DN
81562010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
8157
8158 * s/msdos.h (UNEXEC): New definition.
8159
5634ff85
YM
81602010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8161
6eff5c3d
YM
8162 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
8163 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
8164
8165 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
8166 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
8167 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
8168 TRY_WINDOW_CHECK_MARGINS.
8169
8170 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
5b253e9c
YM
8171 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
8172 width only when it is for padding.
5634ff85 8173
b13aef54
J
81742010-04-09 Jan Djärv <jan.h.d@swipnet.se>
8175
8176 * xfns.c (Fx_show_tip): Call try_window in a loop until
8177 fonts_changed_p is zero (Bug#2423).
8178
21d28484
EZ
81792010-04-08 Eli Zaretskii <eliz@gnu.org>
8180
8181 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
8182 the end of TEXT_AREA. (Bug#5856)
8183
0269ef77
JD
81842010-04-08 Jan Djärv <jan.h.d@swipnet.se>
8185
8186 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
8187 HAVE_GCONF.
8188
5930fe97
EZ
81892010-04-08 Eli Zaretskii <eliz@gnu.org>
8190
8191 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
8192 prev.orig_type, for resolving type of NSM. (Bug#5858)
8193
99852628
JD
81942010-04-08 Jan Djärv <jan.h.d@swipnet.se>
8195
8196 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
8197 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
8198 in current_font.
8199 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
50426a04
JB
8200 (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
8201 New functions.
8202 (syms_of_xsettings): Initialize current_font.
8203 defsubr Sfont_get_system_normal_font.
99852628 8204
686b968e
JB
8205 * xsettings.h (Ffont_get_system_normal_font)
8206 (xsettings_get_system_normal_font): Declare.
99852628
JD
8207
8208 * xfns.c (extern xlwmenu_default_font): Remove.
8209 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
8210 to xlwmenu.c.
8211
8212 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
8213 menu items in UTF-8.
8214
8215 * xmenu.c: include xsettings.h and xlwmenu.h if USE_LUCID.
8216 (apply_systemfont_to_menu): New function.
bba3e508
SM
8217 (set_frame_menubar, create_and_show_popup_menu):
8218 Call apply_systemfont_to_menu.
99852628 8219
7fc874c4
J
82202010-04-07 Jan Djärv <jan.h.d@swipnet.se>
8221
8222 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
8223 FRAME_LINE_TO_PIXEL_Y.
8224
8225 * xterm.c (x_set_window_size_1): Don't add border_width/height to
8226 pixelwidth/height.
8227
863bf481
DN
82282010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
8229
5e5a3b92
DN
8230 Simplify code for HP machines.
8231 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
8232 for GNU_LINUX, not needed.
8233 (UNEXEC, NEED_BSDTTY): Move definitions...
8234 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
8235
863bf481
DN
8236 * m/iris4d.h (UNEXEC): Move definition ...
8237 * s/irix6-5.h (UNEXEC): ... here.
8238
3e6bec3b
JD
82392010-04-04 Jan Djärv <jan.h.d@swipnet.se>
8240
8241 * xfns.c (set_machine_and_pid_properties): New function.
8242 (Fx_create_frame): Call set_machine_and_pid_properties.
8243
2912322b
SM
82442010-04-03 Eli Zaretskii <eliz@gnu.org>
8245
bba3e508
SM
8246 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char):
8247 Check bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
1502b819
EZ
8248 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
8249
2912322b
SM
8250 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
8251 in this function. (Bug#5703)
8252
82532010-04-03 Chong Yidong <cyd@stupidchicken.com>
8254
8255 * nsterm.h: Fix last change.
8256
c435b432
DN
82572010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
8258
a568f507
DN
8259 * m/intel386.h (NO_REMAP): Move definition ...
8260 * s/msdos.h (NO_REMAP): ... here.
8261
4cd9f6c2
DN
8262 * m/vax.h (CRT0_DUMMIES): Remove, unused.
8263
c435b432
DN
8264 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
8265 used on those platforms.
8266
42a2c622
DN
82672010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
8268
8269 Remove extern errno declarations.
8270 * xterm.c:
8271 * xrdb.c:
8272 * w32term.c:
8273 * unexec.c:
8274 * unexaix.c:
8275 * sysdep.c:
8276 * process.c:
8277 * lread.c:
8278 * keyboard.c:
8279 * floatfns.c:
8280 * filelock.c:
8281 * fileio.c:
8282 * emacs.c (main):
8283 * ecrt0.c:
8284 * dispnew.c:
8285 * callproc.c:
8286 * buffer.c: Remove errno extern declarations.
8287 * s/netbsd.h (NEED_ERRNO): Remove.
8288
8224f93d
DN
82892010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
8290
8291 Remove all uses of LIBX11_SYSTEM.
8292 * Makefile.in (LIBX11_SYSTEM): Remove.
8293 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
8294 instead.
8295
814062c7
EZ
82962010-04-01 Eli Zaretskii <eliz@gnu.org>
8297
ed68db4d
EZ
8298 Remove support for DJGPP v1.x (bug#5813).
8299
8300 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
8224f93d
DN
8301 * s/msdos.h:
8302 * unexec.c (make_hdr, copy_text_and_data):
8303 * sysdep.c (wait_for_termination, sys_subshell):
ed68db4d 8304 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
52f4d8d5
EZ
8305 (IT_set_terminal_modes, __write, _rename, gethostname)
8306 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
8307 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
8308 the value of __DJGPP__.
ed68db4d
EZ
8309 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
8310 compatibility code.
8224f93d
DN
8311 * lread.c:
8312 * gmalloc.c (memalign):
8313 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
8314 * emacs.c (main):
8315 * dosfns.c (init_dosfns):
ed68db4d
EZ
8316 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
8317
52f4d8d5
EZ
83182010-04-01 Eli Zaretskii <eliz@gnu.org>
8319
814062c7
EZ
8320 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
8321 string with `cursor' property comes from an `after-string'
8322 overlay. (Bug#5816)
8323
0dc2e11d
GM
83242010-04-01 Glenn Morris <rgm@gnu.org>
8325
8326 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
8327 Define as Makefile variables.
8328 (LIBX): Use above variables rather than directly using autoconf.
8329
1d29df59
DN
83302010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
8331
8332 Clean up BSD_SYSTEM use.
8333 * xterm.c:
8334 * process.c:
8335 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
8336 for including <sys/ioctl.h>.
8337 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
8338 code is only used for MSDOS.
8339
1546c559
JL
83402010-03-31 Juri Linkov <juri@jurta.org>
8341
8342 * image.c: Add `Qextension_data'.
8343 (syms_of_image): Initialize and staticpro `Qextension_data'.
8344 (Fimage_metadata): Rename from `Fimage_extension_data'.
8345 (gif_load): Put GIF extension data to the property
8346 `Qextension_data'.
8347
6521c534
CY
83482010-03-31 Chong Yidong <cyd@stupidchicken.com>
8349
8350 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
8351 * nsterm.h: Fix prototype.
8352
52c30783
EZ
83532010-03-31 Eli Zaretskii <eliz@gnu.org>
8354
8355 * xdisp.c (highlight_trailing_whitespace): Support highlight of
8356 trailing whitespace in right-to-left rows.
8357
855a0da7
SM
83582010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
8359
8360 Get rid of the direct_output optimizations.
8361 * keyboard.c (nonundocount): Remove extern declaration.
8362 (command_loop_1): Remove brittle optimisation for cheap and
8363 common operations.
8364 * xdisp.c (redisplay_internal): Don't bother checking
8365 redisplay_performed_directly_p any more.
8366 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
8367 any more.
8368 * dispnew.c (redisplay_performed_directly_p)
8369 (direct_output_for_insert, direct_output_forward_char):
8370 * dispextern.h (redisplay_performed_directly_p)
8371 (direct_output_for_insert, direct_output_forward_char): Remove.
8372 * cmds.c (nonundocount): Make it static.
8373
85738751 83742010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
a6d676d9
CY
8375
8376 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
8377
85738751 83782010-03-31 Jan Djärv <jan.h.d@swipnet.se>
67fee863
JD
8379
8380 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
8381 invisible (Bug#5766).
8382
85738751 83832010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
9ae6e189 8384
855a0da7
SM
8385 * xdisp.c (x_consider_frame_title, update_window_cursor):
8386 Remove HAVE_NS conditionals.
194d44e7 8387 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
9ae6e189
CY
8388
8389 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
8390 filename for the title.
8391 (ns_set_doc_edited): Do nothing if the selected window is a
8392 minibuffer window.
8393
8394 * nsterm.h: Add prototypes for ns_set_name_as_filename and
8395 ns_set_doc_edited.
8396
8397 * nsterm.m: Remove unneeded prototype.
8398
85738751 83992010-03-31 Glenn Morris <rgm@gnu.org>
25c72475
GM
8400
8401 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
8402 in the DOC file. (Bug#5336)
8403
85738751 84042010-03-31 Chong Yidong <cyd@stupidchicken.com>
f79a01db
CY
8405
8406 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
8407
75d1428c
SM
84082010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
8409
8410 * window.c (keys_of_window): Remove redundant/overridden bindings.
8411
82043cfb
EZ
84122010-03-30 Eli Zaretskii <eliz@gnu.org>
8413
8414 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
8415 Restore original behavior when the iterator is not bidi_p.
8416
b5dd0ae7
DN
84172010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
8418
8419 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
8420
bd924a5d
EZ
84212010-03-30 Eli Zaretskii <eliz@gnu.org>
8422
8423 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
8424 are outside the range of cached character positions.
8425
3580374b
JB
84262010-03-30 Juanma Barranquero <lekktu@gmail.com>
8427
8428 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
8429
a7b02820
EZ
84302010-03-30 Eli Zaretskii <eliz@gnu.org>
8431
8432 Initial support for bidirectional editing.
8433
8434 * Makefile.in (obj): Include bidi.o.
8435 (bidi.o): New target.
8436
8437 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
8438 ($(BLD)/bidi.$(O)): New target.
8439
8440 * bidi.c: New file.
8441
8442 * buffer.h (struct buffer): New members bidi_display_reordering
8443 and bidi_paragraph_direction.
8444
8445 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
8446 and bidi_paragraph_direction.
8447 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
8448 and bidi-paragraph-direction.
8449 (Fbuffer_swap_text): Swap the values of
8450 bidi_display_reordering and bidi_paragraph_direction.
8451
8452 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
8453 (bidi_type_t, bidi_dir_t): New types.
8454 (bidi_saved_info, bidi_stack, bidi_it): New structures.
8455 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
8456 prev_stop, base_level_stop, and eol_pos.
8457 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
8458 (IT_STACK_SIZE): Enlarge to 5.
8459 (struct glyph_row): New member reversed_p.
8460 <string_buffer_position>: Update prototype.
8461 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
8462 glyph_row if bidi_it.paragraph_dir == R2L.
8463 (struct glyph): New members resolved_level and bidi_type.
8464
8465 * dispnew.c (direct_output_forward_char): Give up if we need bidi
8466 processing or buffer's direction is right-to-left.
8467 (prepare_desired_row): Preserve the reversed_p flag.
8468 (row_equal_p): Compare the reversed_p attributes as well.
8469
bba3e508
SM
8470 * xdisp.c (init_iterator): Initialize it->bidi_p.
8471 Call bidi_init_it and set it->paragraph_embedding from the current
a7b02820
EZ
8472 buffer's value of bidi_paragraph_direction.
8473 (reseat_1): Initialize bidi_it.first_elt.
8474 (set_iterator_to_next, next_element_from_buffer): Use the value of
8475 paragraph_embedding to determine the paragraph direction.
8476 (set_iterator_to_next): Under bidi reordering, call
8477 bidi_get_next_char_visually. Call bidi_paragraph_init if the
8478 new_paragraph flag is set in the bidi iterator.
8479 (next_element_from_buffer): If bidi_it.first_elt is set,
8480 initialize paragraph direction and find the first character to
8481 display in the visual order. If reseated to a middle of a line,
bba3e508
SM
8482 prime the bidi iterator starting at the line's beginning.
8483 Handle the situation where we overstepped stop_charpos due to
a7b02820
EZ
8484 non-linearity of the bidi iteration. Likewise for when we back up
8485 beyond the previous stop_charpos. When moving across stop_charpos,
8486 record it in prev_stop.
8487 (display_line): Set row->end and it->start for the next row to the
8488 next character in logical order. Always extend reversed_p rows to
8489 the end of line, even if they end at ZV. Copy the reversed_p flag
8490 to the next glyph row. Keep calling set_cursor_from_row for
8491 bidi-reordered rows even if we already have a possible candidate
8492 for cursor position. Set row_end after all the row's glyphs have
8493 been produced, by looping over the glyphs. Record the position
8494 after EOL in it->eol_pos, and use it to set end_pos of the last
8495 row produced for a continued line.
8496 <Qright_to_left, Qleft_to_right>: New variables.
8497 (syms_of_xdisp): Initialize and staticpro them.
8498 (string_buffer_position_lim): New function.
8499 (string_buffer_position): Most of code moved to
8500 string_buffer_position_lim. Last argument and return value are
8501 now EMACS_INT; all callers changed.
8502 (set_cursor_from_row): Rewritten to support bidirectional text and
8503 reversed glyph rows.
bba3e508
SM
8504 (text_outside_line_unchanged_p, try_window_id):
8505 Disable optimizations if we are reordering bidirectional text and the
a7b02820
EZ
8506 paragraph direction can be affected by the change.
8507 (append_glyph, append_composite_glyph)
8508 (produce_image_glyph, append_stretch_glyph): Set the
8509 resolved_level and bidi_type members of each glyph.
8510 (append_glyph): If the glyph row is reversed, prepend the glyph
8511 rather than appending it.
8512 (handle_stop_backwards): New function.
8513 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
8514 (reseat): call handle_stop_backwards to recompute prev_stop and
8515 base_level_stop for the new position.
8516 (handle_invisible_prop): Under bidi iteration, skip invisible text
8517 using bidi_get_next_char_visually. If we are `reseat'ed, init the
8518 paragraph direction. Update IT->prev_stop after skipping
8519 invisible text.
8520 (move_it_in_display_line_to): New variables prev_method
8521 and prev_pos. Compare for strict equality in
8522 BUFFER_POS_REACHED_P.
8523 (try_cursor_movement): Examine all the candidate rows that occlude
8524 point, to return the best match. If rows are bidi-reordered
8525 and point moved backwards, back up to the row that is not a
8526 continuation line, and start looking for a suitable row from
8527 there.
8528
8529 * term.c (append_glyph): Reverse glyphs by pre-pending them,
8530 rather than appending, if the glyph_row's reversed_p flag is set.
8531 Set the resolved_level and bidi_type members of each glyph.
8532
8533 * .gdbinit (pbiditype): New command.
8534 (pgx): Use it to display bidi level and type of the glyph.
8535 (pitx): Display some bidi information about the iterator.
8536 (prowlims, pmtxrows): New commands.
8537
32a8894e
DN
85382010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
8539
8540 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
8541 * s/usg5-4.h (LIBS_DEBUG):
8542 * s/irix6-5.h (C_DEBUG_SWITCH):
8543 * s/gnu-linux.h (LIBS_DEBUG):
8544 * s/darwin.h (LIBS_DEBUG):
8545 * s/bsd-common.h (LIBS_DEBUG):
8546 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
8547 * m/iris4d.h (LIBS_DEBUG):
8548 * m/hp800.h (LIBS_DEBUG): Remove definitions.
8549
8550 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
8551 (LIBS_DEBUG): Remove definition.
8552
649dbf36
CY
85532010-03-27 Chong Yidong <cyd@stupidchicken.com>
8554
8555 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
8556 Windows.
8557
cad4261f
YM
85582010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8559
8560 * process.c (Fmake_network_process): Don't call turn_on_atimers around
8561 `connect' (Bug#5723).
8562
cd591dbc
HE
85632010-03-25 Helmut Eller <eller.helmut@gmail.com>
8564
8565 * process.c (Fmake_network_process): Call `select' for interrupted
8566 `connect' rather than creating new socket (Bug#5173).
8567
e867cb5d 85682010-03-24 Jan Djärv <jan.h.d@swipnet.se>
93318cbd
JD
8569
8570 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
8571
8572 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
8573
8574 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
8575
e867cb5d 85762010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ad13a3ee
YM
8577
8578 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
8579 XLoadQueryFont.
8580
e867cb5d 85812010-03-24 Kenichi Handa <handa@m17n.org>
fbdc1721
KH
8582
8583 * coding.c (decode_coding_ccl): Fix previous change for the
8584 multibyte case.
fb608df3
KH
8585 (encode_coding_ccl): Don't setup ccl program here. Fix for the
8586 case that the output buffer is fullfilled.
8587 (encode_coding): Setup ccl program here.
fbdc1721 8588
5845f0ed
DN
85892010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
8590
814fb708
DN
8591 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
8592
5845f0ed
DN
8593 Simplify LIBS_MACHINE definitions.
8594 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
8595 * m/iris4d.h (LIBS_MACHINE): Likewise.
8596 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
8597 * s/aix4-2.h (LIBS_SYSTEM): ... here.
38e3487c 8598 * s/netbsd.h: Remove commented out code.
5845f0ed 8599
b7064064
DN
86002010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
8601
df7734b2
DN
8602 Remove dead code dealing with POSIX_SIGNALS.
8603 * atimer.c (set_alarm): Remove dead code, all USG systems define
8604 POSIX_SIGNALS.
8605 * data.c (arith_error): Likewise.
8606 * keyboard.c (input_available_signal, handle_user_signal)
8607 (interrupt_signal): Likewise.
8608 * process.c (sigchld_handler): Likewise.
8609 (create_process): Remove if 0 code. Remove HPUX conditional when
8610 !defined (POSIX_SIGNALS), it cannot be true.
8611 * syssignal.h: Remove USG5_4 and USG conditionals when
8612 !POSIX_SIGNALS, they cannot be true.
8613
b7064064
DN
8614 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
8615 NO_SOCK_SIGIO, not used anymore.
8616
55da5ee3
DN
86172010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
8618
0be96e3a
DN
8619 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
8620 support vax on BSDs.
8621
55da5ee3
DN
8622 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
8623 * s/aix4-2.h (ORDINARY_LINK): ... here.
8624
c0282183
AS
86252010-03-21 Andreas Schwab <schwab@linux-m68k.org>
8626
82c3d67a
AS
8627 * Makefile.in (abs_builddir): Define.
8628 (bootstrap_exe): Use it.
8629 (VPATH): Use $(srcdir) instead of @srcdir@.
c0282183 8630
3613edce
SM
86312010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
8632
8633 * Makefile.in (bootstrap_exe): Use an absolute name.
8634
7f110ddc
DN
86352010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
8636
22e87574
DN
8637 Remove support for old GNU/Linux using libc version 5.
8638 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
8639 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
8640
05a670e6
DN
8641 Consolidate redundant definitions in s/bsd-common.h.
8642 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
8643 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
8644 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
8645 doing it in all files that include this one.
8646 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
8647 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
8648 (LDAV_SYMBOL, KERNEL_FILE): Remove.
8649 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
8650 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
8651 (LDAV_SYMBOL, KERNEL_FILE): Remove.
8652 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
8653 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
8654 (LDAV_SYMBOL, KERNEL_FILE): Remove.
8655
2968f561
DN
8656 Consolidate redundant definitions.
8657 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
8658 it's undefined in all files that include this one.
8659 (POSIX_SIGNALS): Define here instead of doing it in all files that
8660 include this one.
8661 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
8662 (POSIX_SIGNALS): Do not define.
8663 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
8664 (POSIX_SIGNALS): Do not define.
8665 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
8666 (POSIX_SIGNALS): Do not define.
8667
15d25dc0
DN
8668 Remove support for old UNIX System V systems.
8669 * s/unixware.h: Add the contents of s/usg-5-4-2.h.
8670 * s/usg-5-4-2.h: Remove.
8671
07e339e4
DN
8672 Remove support for Solaris on PPC and for old versions.
8673 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
8674 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
8675 that cancel each other.
8676 * s/sol2-3.h:
8677 * s/sol2-4.h:
8678 * s/sol2-5.h: Remove.
8679 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
8680 (NO_REMAP): Remove, unused.
8681 (UNEXEC): Move definition ...
8682 * s/aix4-2.h (UNEXEC): ... here.
8683
7f110ddc
DN
8684 * s/openbsd.h: Remove support for non-ELF and for systems that do
8685 not support shared libraries.
8686 * s/netbsd.h:
8687 * s/freebsd.h: Likewise.
8688
605f35cd
DN
86892010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
8690
8691 Remove non-working support for lynxos 3.0.
8692 * s/lynxos.h: Remove file.
8693
8694 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
8695 COFF_BSD_SYMBOLS, nothing defines it anymore.
8696
aed71cf4
DN
86972010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
8698
8699 Remove obsolete uses of HAVE_SHM.
8700 * emacs.c (standard_args):
8701 (Fdump_emacs):
8702 (syms_of_emacs): Remove code depending on HAVE_SHM.
8703
8704 * alloc.c: Remove HAVE_SHM dependent definition.
8705
8706 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
8707
aded53ff
GM
87082010-03-18 Glenn Morris <rgm@gnu.org>
8709
17284745
GM
8710 * emacs.c (USAGE4): Hard-code bug address.
8711 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
8712 (bug_reporting_address): Remove.
8713 (main): Don't call bug_reporting_address.
8714
aded53ff
GM
8715 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
8716 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
8717
303500aa
CY
87182010-03-15 Chong Yidong <cyd@stupidchicken.com>
8719
8720 * xfns.c (Fx_create_frame):
8721 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
8722 on left.
8723
cef3058f
CY
87242010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
8725
8726 * editfns.c (Fformat): Account for string precision when computing
8727 field width (Bug#5710).
8728
a647d59d
CY
87292010-03-12 Chong Yidong <cyd@stupidchicken.com>
8730
4fa42018
CY
8731 * xfns.c (Fx_create_frame): Set default to Qright.
8732
a647d59d
CY
8733 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
8734 all window systems.
8735
6da23aaa
EZ
87362010-03-12 Eli Zaretskii <eliz@gnu.org>
8737
a96f6398 8738 These changes remove termcap.c from the build on Posix platforms.
83d02def 8739 * Makefile.in (termcapobj): Move termcap.o from here...
6da23aaa
EZ
8740 (MSDOS_OBJ): ...to here.
8741 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
8742 now identical to when LIBS_TERMCAP is defined.
8743
8744 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
8745
8746 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
8747
a96f6398 8748 * config.in: Regenerated. (See top-level ChangeLog.)
6da23aaa 8749
288f9fc0
CY
87502010-03-10 Chong Yidong <cyd@stupidchicken.com>
8751
8752 * Branch for 23.2.
8753
d48cd3f4
SM
87542010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
8755
8756 Cleanup setup of gl_state in various parts of the code.
8757 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
8758 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
8759 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
8760 (skip_chars):
8761 * regex.c (regex_compile): Use it.
8762 (re_compile_pattern): Don't set gl_state.current_syntax_table since
8763 it's now set in regex_compile when/if we need it.
8764
618db430
SM
87652010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
8766
c0335e02
SM
8767 Make it possible to C-g in a tight bytecode loop again (bug#5680).
8768 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
8769 (QUIT): Use it to consolidate code and remove redundancy.
8770 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
8771
254c06a8
SM
8772 * regex.c (regex_compile): Setup gl_state as well.
8773
618db430
SM
8774 * syntax.c (skip_chars): Setup gl_state (bug#3823).
8775 (in_classes): Use CONSP before XCAR/XCDR.
8776
233f0c9f
CY
87772010-03-03 Chong Yidong <cyd@stupidchicken.com>
8778
8779 * keymap.c (Fwhere_is_internal): Use Fequal to compare
8780 definitions, so that keyboard macros are correctly handled
8781 (Bug#5481).
8782
75f80e63
EZ
87832010-03-02 Eli Zaretskii <eliz@gnu.org>
8784
8785 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
8786 text that could be relocated inside the call to emacs_mule_char.
8787 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
8788 (CODING_DECODE_CHAR): Add a comment describing its purpose.
8789
dcfb9bc4
KH
87902010-03-02 Kenichi Handa <handa@m17n.org>
8791
fc9a17bc
KH
8792 * character.c (parse_str_as_multibyte): Fix handling of the
8793 multibyte form of raw-bytes.
8794 (str_as_multibyte): Likewise.
8795
dcfb9bc4
KH
8796 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
8797 form of raw-bytes.
8798
412c01b6
CY
87992010-02-28 Chong Yidong <cyd@stupidchicken.com>
8800
8801 * charset.c (load_charset_map_from_file)
8802 (load_charset_map_from_vector): Zero out allocated
8803 charset_map_entries before using them.
8804
df7e1ea0
AS
88052010-02-27 Andreas Schwab <schwab@linux-m68k.org>
8806
8807 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
8808
fe69a722
CY
88092010-02-27 Chong Yidong <cyd@stupidchicken.com>
8810
4ed28cf4
CY
8811 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
8812 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
fe69a722 8813
7379cfce
KH
88142010-02-26 Kenichi Handa <handa@m17n.org>
8815
f88cc4d6
KH
8816 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
8817
7379cfce
KH
8818 * xdisp.c (reseat_to_string): Fix previous change.
8819
cf2fdcfb
CY
88202010-02-26 David Reitter <david.reitter@gmail.com>
8821
8822 * nsfont.m (nsfont_draw): ns_antialias_text should be a
8823 Lisp_Object (Bug#4736).
8824
cc6c7c75
KH
88252010-02-25 Kenichi Handa <handa@m17n.org>
8826
8827 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
8828
32e737d7
JD
88292010-02-24 Jan Djärv <jan.h.d@swipnet.se>
8830
8831 * xterm.c (XTflash): Move declarations before statements.
8832
8833 * gtkutil.c (xg_get_gdk_display): Remove (unused).
8834 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
8835 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
8836 (xg_create_tool_bar): Remove unused variables.
8837 (x_wm_set_size_hint): Move declarations before statements.
a73f9c9d 8838 (xg_create_frame_widgets): Remove variable grav.
32e737d7 8839
676cae9f
CY
88402010-02-21 Chong Yidong <cyd@stupidchicken.com>
8841
8842 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
8843
886cc2b8
SM
88442010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
8845
8846 * term.c (fatal): Add a final \n if needed (bug#5596).
8847
ddb2d8e2
CY
88482010-02-18 Chong Yidong <cyd@stupidchicken.com>
8849
8850 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
8851
2a4f8d3d
GM
88522010-02-18 Glenn Morris <rgm@gnu.org>
8853
8854 * callint.c (Finteractive): Doc fix.
8855
ebaf11b6
KH
88562010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
8857
886cc2b8
SM
8858 * coding.c (record_conversion_result):
8859 Handle CODING_RESULT_INSUFFICIENT_DST.
ebaf11b6
KH
8860 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
8861 memory allocation error.
8862
d0396581
KH
88632010-02-17 Kenichi Handa <handa@m17n.org>
8864
886cc2b8
SM
8865 * coding.c (decode_coding_ccl): Don't setup ccl program here.
8866 Fix for the case that the output buffer is fullfilled.
d0396581
KH
8867 (decode_coding): Setup ccl program here. Keep looping when the
8868 decoder stopped because the output buffer is
8869 fullfilled (bug#5534).
8870
8871 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
8872
98599f74
JD
88732010-02-13 Jan Djärv <jan.h.d@swipnet.se>
8874
471e4f04 8875 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
98599f74 8876 bug #5571.
886cc2b8 8877 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
471e4f04 8878 overdrawn.
98599f74 8879
182659ae
JD
88802010-02-10 Jan Djärv <jan.h.d@swipnet.se>
8881
8882 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
8883 doing_interact here.
8884 (ice_connection_closed): New function.
8885 (x_session_check_input, smc_die_CB, ice_io_error_handler)
8886 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
8887 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
8888 returns I/O error.
8889 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
8890 bug #5512.
8891
9be32c4e 88922010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
14a225f9
CY
8893
8894 * nsfont.m (nsfont_open): The system's value for the font descent
8895 is negative, so round it down to avoid clipping.
8896
a2f3eb19
CY
88972010-02-06 Chong Yidong <cyd@stupidchicken.com>
8898
8899 * charset.c (load_charset_map_from_file)
8900 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
953d248c 8901 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
a2f3eb19 8902
3088147c
CY
89032010-02-05 Chong Yidong <cyd@stupidchicken.com>
8904
8905 * charset.c (load_charset_map_from_file): Allocate large
8906 charset_map_entries structure on the heap rather than the stack.
8907 (Bug#5526).
8908
b57d9029
KH
89092010-01-31 Kenichi Handa <handa@m17n.org>
8910
8911 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
115e4fd3 8912 size in NAME is invalid, return -1 (Bug#5396).
b57d9029 8913
c67d885b
CY
89142010-01-31 Chong Yidong <cyd@stupidchicken.com>
8915
8916 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
8917 <deactivated@gmail.com> (Bug#3605).
8918
8fab2362
CY
89192010-01-31 David De La Harpe Golden <david@harpegolden.net>
8920
8921 * fileio.c (Frename_file): Correctly rename symlinks to
8922 directories (Bug#5496).
8923
cb2a62f2
CY
89242010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
8925
8926 * nsterm.m (ns_ring_bell): Handle visible bell like X.
8927
944c7a26
AS
89282010-01-30 Andreas Schwab <schwab@linux-m68k.org>
8929
8930 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
8931
c024ac08
CY
89322010-01-29 Chong Yidong <cyd@stupidchicken.com>
8933
8934 * frame.c (DEFAULT_ROWS): Change default to 35.
8935
8936 * xfns.c (x_default_font_parameter): Change default XFT font to
8937 monospace-10 (Bug#3643).
8938
af93af83
EZ
89392010-01-29 Eli Zaretskii <eliz@gnu.org>
8940
8941 * w32inevt.c (key_event): Remove unnecessary comparison of
8942 event->uChar.AsciiChar with 128.
8943
ca0eb708
CY
89442010-01-28 Chong Yidong <cyd@stupidchicken.com>
8945
b242dbfc
CY
8946 * fileio.c (Frename_file): Fix last change (Bug#5487).
8947
ca0eb708
CY
8948 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
8949
8950 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
8951
45d45af5
JD
89522010-01-28 Jan Djärv <jan.h.d@swipnet.se>
8953
8954 * xfns.c (Fx_create_frame): Remove window size matching code from
8955 2010-01-15.
a73f9c9d 8956 (x_get_current_desktop, x_get_desktop_workarea): Remove.
45d45af5 8957
7e233730
JR
89582010-01-27 Jason Rumney <jasonr@gnu.org>
8959
8960 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
a292592c 8961 (key_event): Use unicode for characters 128 and higher (Bug#4567).
7e233730 8962
86e893e3
KH
89632010-01-27 Kenichi Handa <handa@m17n.org>
8964
8965 * regex.c (analyse_first): Fix setting of fastmap for unibyte
c8b96b2a 8966 pattern string (Bug#4209).
86e893e3 8967
8719abec
CY
89682010-01-27 David De La Harpe Golden <david@harpegolden.net>
8969
8970 * fileio.c (Frename_file): Call copy-directory and
8971 delete-directory for directories, in order to handle cross-device
8972 renaming (Bug#3353).
8973
844794c8
JD
89742010-01-25 Jan Djärv <jan.h.d@swipnet.se>
8975
aa3e13b5 8976 * xfns.c (Fx_create_frame): If frame height is too big, try
ac146f82 8977 sizes 24 and 10. Bug #3643.
844794c8 8978
bd4b5750
SM
89792010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
8980
8dc1adf6 8981 Try and fix bug#788, hopefully for real this time.
bd4b5750
SM
8982 * keymap.c (shadow_lookup): Add `remap' arg.
8983 (describe_map, describe_vector): Update calls to shadow_lookup.
8984 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
8985 `remapped' so this flag is applicable to `sequence'. Be careful to
8dc1adf6
SM
8986 perform remapping during shadow_lookup check of remapped_sequences.
8987
285d07e2
CY
89882010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
8989
8990 * image.c (png_load): Use png_sig_cmp instead of the obsolete
8991 png_check_sig, which has been removed in libpng 1.4.
8992
c6d09b8d
CY
89932010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
8994
8995 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
8996 lacks this header file).
8997
3d782998
YM
89982010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8999
9000 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
9001 as in Emacs 22.
9002
2aff7c53
YM
90032010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9004
9005 * lisp.h (make_pure_string): String pointer arg now points to const.
9006
9007 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
9008 args now point to const.
9009
74327f7a
EZ
90102010-01-22 Eli Zaretskii <eliz@gnu.org>
9011
9012 * lread.c (Fload): Don't treat files without .elc extension as
9013 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
9014 them. (bug#5303)
9015
4d1e6632
KH
90162010-01-20 Kenichi Handa <handa@m17n.org>
9017
9018 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
9019 treat the source as actual byte sequence.
9020
1fdede8f
AM
90212010-01-19 Alan Mackenzie <acm@muc.de>
9022
9023 Fix spurious before-change-functions invocation from (insert ?\n).
194d44e7 9024 * textprop.c (set_text_properties): Rename parameter
1fdede8f
AM
9025 `signal_after_change_p' to `coherent_change_p', and make the
9026 invocation of `modify_region' conditional on it.
9027
67477f30
JD
90282010-01-19 Jan Djärv <jan.h.d@swipnet.se>
9029
9030 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
9031 for debug purpose.
9032 (syms_of_xsettings): Declare xft-settings.
9033
244b023e
CY
90342010-01-18 Chong Yidong <cyd@stupidchicken.com>
9035
9036 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
9037
617364fe
CY
90382010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
9039
9040 * xterm.c (event_handler_gdk): Block input (Bug#5037).
9041
4fe22cdf
CY
90422010-01-16 Chong Yidong <cyd@stupidchicken.com>
9043
9044 * emacs.c (standard_args): Adjust arg priorities to reflect how
9045 they are processed in startup.el.
9046
e118d2be
AS
90472010-01-16 Andreas Schwab <schwab@linux-m68k.org>
9048
9049 * Makefile.in (lisp, shortlisp): Update.
9050
523ae620
SM
90512010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
9052
9053 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
9054 code, link the new kboard into all_kboard before running Lisp code,
9055 and protect the new terminal with GCPRO (Bug#5365).
9056 (x_term_init): Remove unused var `atom'.
9057 (x_delete_display, x_delete_terminal): Remove unused var `i'.
9058
f0d13888
JD
90592010-01-15 Jan Djärv <jan.h.d@swipnet.se>
9060
9061 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
9062 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
9063 to find out usable size of the desktop. Don't make frames larger than
ac146f82 9064 this. Bug #3643.
f0d13888 9065
cc320f07
KH
90662010-01-15 Kenichi Handa <handa@m17n.org>
9067
9068 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
9069
7ffdf101
CY
90702010-01-15 Chong Yidong <cyd@stupidchicken.com>
9071
9072 * nsterm.m (Qnone): Define.
9073
9074 * nsfns.m (Qnone): Move definition to nsterm.m.
9075
d12bd917
KH
90762010-01-14 Kenichi Handa <handa@m17n.org>
9077
9078 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
9079 systems.
9080
d9a7c140
KH
90812010-01-14 Kenichi Handa <handa@m17n.org>
9082
9083 Make auto-composition work on all buffers even if they are
9084 fundamental mode.
9085
9086 * composite.c (Vauto_composition_mode): New variable.
9087 (composition_compute_stop_pos): Check Vauto_composition_mode
9088 instead of Vauto_composition_function.
9089 (composition_adjust_point, Ffind_composition_internal): Likewise.
9090 (syms_of_composite): Declare Lisp variable
9091 "auto-composition-mode" here.
9092
63286bb2
CY
90932010-01-13 Chong Yidong <cyd@stupidchicken.com>
9094
9095 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
9096 during call to vendor-specific-keysyms (Bug#5365).
9097
c2623ee7
YM
90982010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9099
9100 * keyboard.c (input_available_signal) [SYNC_INPUT]:
9101 Call SIGNAL_THREAD_CHECK (Bug#5333).
9102
9103 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
9104 Call SIGNAL_THREAD_CHECK.
9105
0b5397c2
SM
91062010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
9107
9108 Try to fix bug#5314. This is probably not the final word, tho.
9109 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
9110 recent-auto-save-p as a side-effect.
9111 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
9112 * buffer.c (Fkill_buffer, reset_buffer):
9113 * editfns.c (Fsubst_char_in_region):
9114 * fileio.c (Finsert_file_contents, Fdo_auto_save)
9115 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
9116
dc954cb2
KH
91172010-01-13 Kenichi Handa <handa@m17n.org>
9118
9119 Display buffer name, etc. in mode line by composing correctly.
9120
9121 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
9122 STRING is not nil.
0b5397c2 9123 (display_mode_element): Adjust for the change of
dc954cb2
KH
9124 decode_mode_spec and display_line.
9125 (decode_mode_spec): Change arg MULTIBYTE to STRING.
9126 (display_string): Handle the case that STRING is non-null and
9127 LISP_STRING is not nil.
9128
0b5397c2
SM
9129 * xterm.c (x_draw_composite_glyph_string_foreground):
9130 Pay attention to s->face->overstrike.
dc954cb2
KH
9131
9132 * composite.c (composition_reseat_it): Don't check PT if STRING is
9133 non nil.
9134
4a00eaca
YM
91352010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9136
9137 * keyboard.c (read_char): Don't apply previous change when current
9138 buffer is unchanged by command execution.
9139
60abb287
JD
91402010-01-12 Jan Djärv <jan.h.d@swipnet.se>
9141
9142 * keyboard.c (read_char): Return after executing from special map.
9143
893db5bc
GM
91442010-01-12 Glenn Morris <rgm@gnu.org>
9145
9146 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
9147 bug-gnu-emacs rather than emacs-pretest-bug.
9148
4d03ece0
CY
91492010-01-11 Chong Yidong <cyd@stupidchicken.com>
9150
9151 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
9152 initializing the Lisp variables that depend on them.
9153
1df47e38
YM
91542010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9155
9156 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
9157 Clear areas that will not be updated after change of menu bar lines.
9158 Clear the menu bar window's current matrix when the window gets empty.
9159
2f1c6384
CY
91602010-01-09 Chong Yidong <cyd@stupidchicken.com>
9161
e398c61c
CY
9162 * intervals.h, textprop.c (extend_property_ranges): Return value
9163 and args changed. Discard properties that begin at or after the
9164 new end (Bug#5306).
9165
9166 * editfns.c (Fformat): Caller changed.
9167
e5a29a10
CY
9168 * nsterm.m (ns_set_default_prefs): Delete function.
9169 (syms_of_nsterm): Initialize ns_command_modifier,
9170 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
9171 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
9172
2f1c6384
CY
9173 * xdisp.c (pos_visible_p): Check for invisible text at the correct
9174 position (Bug#4040).
9175
d427a9fa
EZ
91762010-01-09 Eli Zaretskii <eliz@gnu.org>
9177
9178 * editfns.c (Ffloat_time): Doc fix.
9179
21b9df2f
JD
91802010-01-09 Jan Djärv <jan.h.d@swipnet.se>
9181
9182 * xfns.c (Fx_create_frame): Don't create frame larger than display
9183 by default bug#3643.
9184
4b00d3b1
YM
91852010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9186
9187 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
9188 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
9189 windows above internal border.
9190
9191 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
9192 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
9193 windows above internal border.
9194
9195 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
9196 tool bar windows specially.
9197
9198 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
9199
9200 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
9201 specially.
9202 (XTflash): Take account of menu bar height.
9203
9204 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
9205 specially.
9206
5075d853
JD
92072010-01-08 Jan Djärv <jan.h.d@swipnet.se>
9208
ac146f82 9209 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
5075d853
JD
9210 also be true before we can return early (bug #5339).
9211
474217c8
CY
92122010-01-06 David Reitter <david.reitter@gmail.com>
9213
9214 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
9215 (Fns_display_usable_bounds): Rewrite, computing bounds properly
9216 (Bug#3233).
9217
c0e6d47d
JD
92182010-01-06 Jan Djärv <jan.h.d@swipnet.se>
9219
d0cf45b7
JD
9220 * font.c (font_open_entity): Enable chache and call cached_font_ok
9221 for the driver if defined.
9222 (QCuser_spec): New symbol.
9223 (font_spec_from_name): Save name as user-spec.
9224 (font_load_for_lface): Keep user-spec instead of name.
9225 (font_open_by_name): Save name as user-spec.
9226 (syms_of_font): Initialize QCuser_spec.
b7f8e4f5 9227 (font_clear_prop): Clear name if it exists in font (bug#5157).
d0cf45b7
JD
9228
9229 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
9230 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
9231 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
9232
9233 * font.h (struct font_driver): Add cached_font_ok.
9234
c0e6d47d
JD
9235 * xterm.c (x_clear_frame): Queue draw for scroll bars.
9236
7c583cd8
JD
92372010-01-05 Jan Djärv <jan.h.d@swipnet.se>
9238
9239 * xterm.c (x_new_font): Move code for setting rows/cols before
9240 resizing ...
ac146f82 9241 (x_set_window_size): ... to here. Bug #2568.
7c583cd8
JD
9242
9243 * gtkutil.c (xg_clear_under_internal_border): New function.
0b5397c2
SM
9244 (xg_frame_resized, xg_frame_set_char_size):
9245 Call xg_clear_under_internal_border.
7c583cd8 9246 (xg_update_scrollbar_pos): Clear under old scroll bar position.
69e2f185 9247
03f77f0a
CY
92482010-01-05 Chong Yidong <cyd@stupidchicken.com>
9249
9250 * keyboard.c (read_key_sequence): Catch keyboard switch after
9251 making a new tty frame (Bug#5095).
9252
2a1ef5be
KH
92532010-01-05 Kenichi Handa <handa@m17n.org>
9254
9255 * fontset.c (fontset_find_font): Fix getting the frame pointer.
9256
e3eb1dae
SM
92572010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
9258
9259 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
9260 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
9261 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
9262
777013f2
MA
92632010-01-03 Michael Albinus <michael.albinus@gmx.de>
9264
9265 * dbusbind.c (xd_add_watch): Improve debug message.
9266 (xd_remove_watch): Improve debug message. If DATA is the session
9267 bus, unset D-Bus session environment.
9268 (Fdbus_init_bus): Pass the bus as argument to
9269 dbus_connection_set_watch_functions. (Bug#5283)
7c583cd8 9270
8932b1c2
CY
92712010-01-01 Chong Yidong <cyd@stupidchicken.com>
9272
87231e2c
CY
9273 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
9274
4801c5fa
CY
9275 * lread.c (syms_of_lread): Make it clearer that these are the
9276 names of loaded files (Bug#5068).
9277
8932b1c2
CY
9278 * eval.c (run_hook_with_args): Handle the case where the global
9279 value has the obsolete single-function form (Bug#5026).
9280
11e3c684
CY
92812009-12-27 Chong Yidong <cyd@stupidchicken.com>
9282
9283 * minibuf.c (Fall_completions): Minor optimization.
9284
5b28ce35
EZ
92852009-12-26 Eli Zaretskii <eliz@gnu.org>
9286
5ce6e4f4
JB
9287 * .gdbinit (pgx): Fix display of composite glyphs.
9288 Display cmp.from and cmp.to as well.
9289 (pitx): Fix last change.
5b28ce35 9290
bcffff46
KH
92912009-12-25 Kenichi Handa <handa@m17n.org>
9292
9293 * composite.h (composition_adjust_point): Update prototype.
9294
9295 * composite.c (composition_reseat_it): Don't make a composition
9296 spanning over point.
9297 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
9298 composable characters.
9299 (composition_adjust_point): New arg NEW_PT. Callers changed.
9300
9301 * keyboard.c (command_loop_1): Force redisplay if the last point
9302 was within a composition.
9303 (adjust_point_for_property): Don't adjust point for automatic
9304 composition when called after buffer modification.
9305
3f670e9a
EZ
93062009-12-19 Eli Zaretskii <eliz@gnu.org>
9307
5ce6e4f4
JB
9308 * .gdbinit (pitx): Don't use enum names, use their values.
9309 Remove reference to non-existing value GET_FROM_COMPOSITION.
be996d82
EZ
9310 (pgx): Don't use enum names, use their values.
9311 (pitmethod): New helper command.
9312 (pitx): Use it to display iteration method.
9313 (pgrowit): New command.
9314
ad903955
EZ
9315 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
9316
3f670e9a
EZ
9317 Update dependencies in Makefile.in.
9318
9319 * Makefile.in (alloc.o): Depend on termhooks.h.
9320 (atimer.o): Depend on blockinput.h.
9321 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
9322 and frame.h.
9323 (callint.o): Depend on systime.h, coding.h, and composite.h.
9324 (callproc.o): Depend on buffer.h.
9325 (casefiddle.o): Don't depend on charset.h.
9326 (casetab.o): Depend on character.h.
9327 (ccl.o): Depend on composite.h.
9328 (chartab.o): Depend on ccl.h.
9329 (cm.o): Depend on dispextern.h.
9330 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
9331 (coding.o): Don't depend on $(INTERVALS_H).
9332 (composite.o): Don't depend on dispextern.h explicitly (it's in
9333 $(INTERVALS_H)). Depend on ccl.h.
9334 (data.o): Depend on systime.h, coding.h, composite.h,
9335 dispextern.h, font.h, and ccl.h.
9336 (dired.o): Depend on composite.h.
9337 (dispnew.o): Depend on coding.h. Don't depend explicitly on
9338 composite.h (it's in $(INTERVALS_H)).
9339 (doc.o): Depend on systime.h, coding.h, and composite.h.
9340 (editfns.o): Don't depend explicitly on dispextern.h.
9341 (emacs.o): Depend on frame.h and coding.h.
9342 (eval.o): Depend on coding.h, composite.h, and xterm.h.
9343 (fileio.o): Depend on frame.h and commands.h. Don't depend
9344 explicitly on dispextern.h.
9345 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
9346 composite.h.
9347 (fns.o): Don't depend on termhooks.h.
9348 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
9349 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
9350 coding.h, $(INTERVALS_H), window.h, xterm.h.
9351 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
9352 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
9353 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
9354 fontset.h, ccl.h, and ftfont.h.
9355 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
9356 (gtkutil.o): Depend on dispextern.h and composite.h.
9357 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
9358 termhooks.h, and ccl.h.
9359 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
9360 (intervals.o): Depend on systime.h and coding.h.
9361 (keyboard.o): Depend on composite.h and coding.h.
9362 (keymap.o): Depend on coding.h and frame.h.
9363 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
9364 (macros.o): Depend on systime.h, coding.h, and composite.h.
9365 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
9366 and atimer.h.
9367 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
9368 dispextern.h explicitly.
0b5397c2
SM
9369 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
9370 Don't depend explicitly on dispextern.h and composite.h.
3f670e9a
EZ
9371 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
9372 (regex.o): Don't depend on charset.h.
9373 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
9374 (search.o): Don't depend explicitly on composite.h.
9375 (sound.o): Depend on atimer.h and systime.h.
9376 (syntax.o): Don't depend explicitly on composite.h.
9377 (sysdep.o): Depend on coding.h and composite.h.
9378 (term.o): Depend on xterm.h and buffer.h.
9379 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
9380 (textprop.o): Don't depend on dispextern.h explicitly.
9381 (undo.o): Depend on dispextern.h.
9382 (window.o): Depend on coding.h and termhooks.h. Don't depend on
9383 dispextern.h and composite.h explicitly.
9384 (xdisp.o): Depend on ccl.h.
9385 (xfaces.o): Depend on coding.h and ccl.h.
9386 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
9387 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
9388 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
9389 ftfont.h.
9390 (xgselect.o): New dependency.
9391 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
9392 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
9393 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
9394 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
9395 (xsmfns.o): Depend on frame.h and dispextern.h.
9396 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
9397 sysselect.h.
9398
7a6f7fea
AS
93992009-12-19 Andreas Schwab <schwab@linux-m68k.org>
9400
9401 * font.c (Fclear_font_cache): Pass correct cache argument to
9402 font_clear_cache.
9403
f4c21026
AS
94042009-12-16 Andreas Schwab <schwab@linux-m68k.org>
9405
9406 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
9407 twice.
9408
f7ab0997
CY
94092009-12-15 Chong Yidong <cyd@stupidchicken.com>
9410
9411 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
9412 calling file-remote-p. Reported by Jim Meyering.
9413
fa8e045a
MA
94142009-12-15 Michael Albinus <michael.albinus@gmx.de>
9415
9416 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
777013f2 9417 avoid compiler warnings. (Bug #5217)
fa8e045a 9418
a63dba42
KH
94192009-12-14 Kenichi Handa <handa@m17n.org>
9420
9421 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
9422 in 8-bit encoding.
9423
5ce6e4f4 94242009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
36acb2a7
JD
9425
9426 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
9427 tooltip windows.
9428
223e5fc6
JD
94292009-12-13 Jan Djärv <jan.h.d@swipnet.se>
9430
36acb2a7
JD
9431 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
9432 Xatom_net_window_type.
9433
9434 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
9435 Xatom_net_window_type.
9436
b8f00677
JD
9437 * xterm.c (my_log_handler): New function.
9438 (x_term_init): Set my_log_handler as log handler during gtk_init
5ce6e4f4 9439 so we can filter out buggy messages. (Bug #5120).
b8f00677 9440
e5f0bc9a
JD
9441 * xterm.c (xg_scroll_callback): Parameter list changed,
9442 use parameter GtkScrollType to determine scroll/line/page.
9443 Only allow dragging if a button < 4 is grabbed (bug #5177).
9444 (xg_end_scroll_callback): New function.
9445 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
9446 xg_create_scroll_bar.
9447
9448 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
9449 (scroll_end_callback): Remove.
9450 (xg_create_scroll_bar): Add parameter end_callback, bind it to
9451 button-release-event. Replace value-changed event with change-value,
c4cc8b9a 9452 bug #5177.
e5f0bc9a
JD
9453 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
9454 bug #5177.
9455
9456 * gtkutil.h (XG_LAST_SB_DATA): Remove.
9457 (xg_create_scroll_bar): Add GCallback end_callback.
9458
223e5fc6
JD
9459 * xftfont.c (QClcdfilter): New variable.
9460 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
9461 (syms_of_xftfont): Initialize QClcdfilter.
9462
3c055b77
JD
94632009-12-12 Jan Djärv <jan.h.d@swipnet.se>
9464
9465 * xsettings.c (struct xsettings): Add member seen.
9466 (parse_xft_settings): Update member seen with what we have read.
ba68c0b0 9467 Return non-zero if Xft-settings have been parsed, 0 otherwise.
3c055b77
JD
9468 (apply_xft_settings): Only update Xft settings with what member seen
9469 indicates as new.
9470
05fe33ff
EZ
94712009-12-12 Eli Zaretskii <eliz@gnu.org>
9472
c4cc8b9a 9473 * dispextern.h (struct text_pos): Use EMACS_INT.
05fe33ff
EZ
9474 (struct glyph): Use EMACS_INT for charpos.
9475 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
9476 region_beg_charpos, region_end_charpos,
9477 redisplay_end_trigger_charpos, and also for
9478 iterator_stack_entry.end_charpos and
9479 iterator_stack_entry.stop_charpos.
9480
e8d7886a
JD
94812009-12-12 Jan Djärv <jan.h.d@swipnet.se>
9482
5ce6e4f4 9483 * gtkutil.c (scroll_end_callback): New function (bug #5177).
e8d7886a
JD
9484 (xg_create_scroll_bar): Call scroll_end_callback on button release
9485 event (bug #5177).
9486 (xg_event_is_for_scrollbar): != replaced with ==.
9487
d0db2ec8
KH
94882009-12-12 Kenichi Handa <handa@m17n.org>
9489
9490 * ftfont.c (struct ftfont_info): New member matrix.
9491 (ftfont_open): Setup xftfont_info->matrix.
9492 (MFLTFontFT): New member matrix.
9493 (FLOOR, CEIL, ROUND): New macros.
9494 (ftfont_get_metrics): Handle matrix transformation.
9495 (ftfont_shape_by_flt): New arg matrix. Callers changed.
9496
9497 * xftfont.c (struct xftfont_info): New member matrix.
9498 (xftfont_open): Setup xftfont_info->matrix.
9499
95002009-12-10 Kenichi Handa <handa@m17n.org>
9501
9502 * xdisp.c (append_space_for_newline): Consider face-remapping.
9503
2cc7b62f
AS
95042009-12-09 Andreas Schwab <schwab@linux-m68k.org>
9505
b87dd913
AS
9506 * xsettings.c: Include "keyboard.h".
9507
eba5eb94
AS
9508 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
9509
2cc7b62f
AS
9510 Fix implicit function declarations.
9511 * cmds.c: Include "frame.h".
9512 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
9513 * frame.h: Move declaration of delete_frame outside of
9514 HAVE_WINDOW_SYSTEM.
9515
a4ef73c8
CY
95162009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
9517
9518 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
9519
9520 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
9521 GTK builds.
9522
944a300c
AS
95232009-12-07 Andreas Schwab <schwab@linux-m68k.org>
9524
9525 * unexelf.c (unexec): Don't search for .data twice.
9526
022eef62
CY
95272009-12-05 Chong Yidong <cyd@stupidchicken.com>
9528
426ac949
CY
9529 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
9530 if push failed.
9531 (handle_line_prefix): Set avoid_cursor_p here. Check return value
9532 of push_display_prop (Bug#5000).
9533
022eef62
CY
9534 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
9535 value of font_list_entities (Bug#5085).
9536
be95bee9
JB
95372009-12-04 Juanma Barranquero <lekktu@gmail.com>
9538
9539 Fix `string-to-number' to deal consistently with integers and floats.
9540 * lread.c (isfloat_string): New argument ignore_trailing to accept all
9541 trailing characters, not just whitespace.
9542 (read1): Pass new arg 0 to keep old behavior.
9543 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
9544 trailing chars, as it is already done for integers. Doc fixes.
9545 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
9546
24c2d7ce
EZ
95472009-12-04 Eli Zaretskii <eliz@gnu.org>
9548
0b5397c2
SM
9549 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
9550 Delete unused enumeration value.
24c2d7ce 9551
7e694795
EZ
95522009-12-03 Eli Zaretskii <eliz@gnu.org>
9553
9554 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
9555
84b31826
SM
95562009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
9557
9558 * process.c (Fmake_network_process): Fix up the tests for
9559 "connectionless socket", so they DTRT for seqpacket sockets as well.
9560
f00c449b
SM
95612009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
9562
9563 * process.c (Qseqpacket): New symbol.
9564 (HAVE_SEQPACKET): New macro.
9565 (Fmake_network_process): Accept new :type `seqpacket'.
9566 (init_process): Add `seqpacket' feature when applicable.
9567 (syms_of_process): Initialize Qseqpacket.
9568
8096a0ff
YM
95692009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9570
9571 * font.c (font_load_for_lface, font_open_by_name): Don't store name
9572 if entity is Qnil.
9573
3e0de07f
SM
95742009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
9575
9576 * print.c (print_preprocess): Preprocess the key_and_value table of
9577 hashtables, even tho they're "hidden" (bug#5082).
9578
abeafb2a
JD
95792009-11-29 Jan Djärv <jan.h.d@swipnet.se>
9580
9581 * frame.c (frame_make_pointer_invisible)
9582 (frame_make_pointer_visible): Declare f before statements.
9583
4bf47195
EZ
95842009-11-28 Eli Zaretskii <eliz@gnu.org>
9585
9586 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
9587 omitted dependencies on lisp.h.
9588
c525b3f2
JD
95892009-11-27 Jan Djärv <jan.h.d@swipnet.se>
9590
ece2d4ed
JD
9591 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
9592 is NULL.
9593
9594 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
9595
9596 * frame.c (frame_make_pointer_invisible)
3e0de07f 9597 (frame_make_pointer_visible): Just return if there isn't any selected
ece2d4ed
JD
9598 frame.
9599
c525b3f2
JD
9600 * search.c (simple_search): Remove warning by making *p const.
9601
2f00e299
DN
96022009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
9603
9604 * xdisp.c (power_letter): Remove duplicate const.
9605
084b049b
JD
96062009-11-25 Jan Djärv <jan.h.d@swipnet.se>
9607
a1fadc6f
JD
9608 * term.c (delete_tty): Remove check for last terminal (bug#4970).
9609
5ce6e4f4 9610 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
084b049b
JD
9611 defaults (bug #5025).
9612
28259cac
SM
96132009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
9614
9615 * insdel.c (adjust_markers_for_delete): Move it in the
9616 right direction! (bug#4803)
9617
e8e14166
YM
96182009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9619
9620 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
9621
9622 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
9623
86677b58
GM
96242009-11-24 Glenn Morris <rgm@gnu.org>
9625
9626 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
9627
581e51e8
JD
96282009-11-23 Jan Djärv <jan.h.d@swipnet.se>
9629
cfc86c7a
JD
9630 * Makefile.in: Must create deps for ecrt0.o in its rule.
9631
581e51e8
JD
9632 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
9633 because that is what Gtk+ font dialog understands.
9634
9635 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
9636 of Fcopy_sequence.
9637 (font_open_by_name): Put name given into QCname for font-object returned.
9638
9639 * frame.c (x_set_font): Save original font name as frame parameter
9640 font-parameter.
9641
9642 * xsettings.c (set_default_xft_settings): New function.
9643 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
9644 is found.
9645
8b264ecb
AS
96462009-11-22 Andreas Schwab <schwab@linux-m68k.org>
9647
9648 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
9649 searching backwards through multibyte buffer.
9650
872870b2
JD
96512009-11-21 Jan Djärv <jan.h.d@swipnet.se>
9652
9653 * xterm.c: #include xgselect.h.
9654 (x_initialize): Call xgselect_initialize.
9655
9656 * xsettings.c (something_changedCB): C++ comments => C comments.
9657 (init_gconf): Do not deal with any GLib file descriptors, xg_select
9658 does that now.
9659
9660 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
9661 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
9662 (scroll_bar_button_cb): Remove.
5ce6e4f4 9663 (create_menus): C++ comments => C comments. Don't bind grab-notify
872870b2
JD
9664 event.
9665 (xg_create_scroll_bar): Don't bind button-press-event and
9666 button-release-event.
9667
9668 * process.c: Include xgselect.h if defined (USE_GTK) ||
9669 defined (HAVE_GCONF).
9670 (wait_reading_process_output): Call xg_select for the same condition.
9671
9672 * xgselect.c (xg_select): New function to better integrate with
9673 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
9674
9675 * xgselect.h: New file, declare xg_select, xgselect_initialize.
9676
9677 * Makefile.in (XOBJ): Add xgselect.o.
9678
62a6e103
AS
96792009-11-21 Andreas Schwab <schwab@linux-m68k.org>
9680
0b5397c2
SM
9681 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
9682 Remove ignored second argument. All callers changed.
62a6e103
AS
9683 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
9684 (RE_STRING_CHAR_AND_LENGTH): Likewise.
9685 * xdisp.c (string_char_and_length): Likewise.
9686
b0ca0f33
DN
96872009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
9688
9689 * xterm.c (x_new_font):
9690 * print.c (print_object):
9691 * cmds.c (Fself_insert_command): Move declarations before statements.
9692
dd5a6279
CY
96932009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
9694
9695 * s/cygwin.h: Remove unneeded linker flags.
9696
4a8e097d
JD
96972009-11-20 Jan Djärv <jan.h.d@swipnet.se>
9698
0d1d0d26
JD
9699 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
9700
9701 * xsettings.h: Declare xsettings_get_system_font.
9702
9703 * xsettings.c (xsettings_get_system_font): New function.
9704 (init_gconf): No use initiating gconf unless we have Xft also.
9705 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
9706 HAVE_GCONF.
9707
4a8e097d
JD
9708 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
9709 add a blank entry so it doesn't collapse into nothing.
9710
8ab1650e
SM
97112009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
9712
9713 * lread.c (Funintern): Comment out last change.
9714
82c602f0
RS
97152009-11-19 Richard Stallman <rms@gnu.org>
9716
9717 * lread.c (Funintern): Error if symbol is t or nil.
9718
87e32266
SM
97192009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
9720
9721 * insdel.c (make_gap_larger): Don't make as many assumptions about the
9722 representation of Lisp integers.
9723 Reported by MJ Chan <mjchan.inbox@gmail.com>.
9724
1b9ac145
AS
97252009-11-17 Andreas Schwab <schwab@linux-m68k.org>
9726
9727 * lisp.h: Remove declaration of Ffont_get_system_font.
9728 * xfns.c: Move include of "xsettings.h".
9729 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
9730
dfb3c4c6
JD
97312009-11-17 Jan Djärv <jan.h.d@swipnet.se>
9732
87e32266
SM
9733 * xsettings.c (something_changedCB, Ffont_get_system_font):
9734 Check use_system_font.
dfb3c4c6
JD
9735 (syms_of_xsettings): DEFVAR font-use-system-font.
9736
9370c1d8
AS
97372009-11-17 Andreas Schwab <schwab@linux-m68k.org>
9738
25fe851a
AS
9739 * xfns.c (x_default_font_parameter): Remove dead assignment.
9740
9370c1d8
AS
9741 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
9742
637fa988
JD
97432009-11-17 Jan Djärv <jan.h.d@swipnet.se>
9744
87e32266 9745 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
21050de1 9746 not have FC_LCD_*. #define them if not there.
a6eb20d8 9747
87e32266 9748 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
a6eb20d8 9749
637fa988
JD
9750 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
9751
9752 * xterm.c (handle_one_xevent): Call xft_settings_event for
9753 ClientMessage, PropertyNotify and DestroyNotify.
9754 (x_term_init): If we have XFT, get DPI from Xft.dpi.
9755 Call xsettings_initialize.
9756
9757 * xftfont.c (xftfont_fix_match): New function.
9758 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
9759 Call xftfont_fix_match after XftFontMatch.
9760
9761 * xfont.c (xfont_driver): Initialize all members.
9762
87e32266
SM
9763 * xfns.c (x_default_font_parameter):
9764 Try font from Ffont_get_system_font.
637fa988
JD
9765 Do not get font from x_default_parameter if we got one from
9766 Ffont_get_system_font.
87e32266 9767 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
637fa988
JD
9768
9769 * w32font.c (w32font_driver): Initialize all members.
9770
9771 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
9772
9773 * lisp.h: Declare syms_of_xsettings.
9774
87e32266
SM
9775 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
9776 Handle CONFIG_CHANGED_EVENT.
637fa988
JD
9777
9778 * ftfont.c (ftfont_filter_properties): New function.
9779
9780 * frame.c (x_set_font): Remove unused variable lval.
9781
87e32266 9782 * font.h (struct font_driver): Add filter_properties.
637fa988
JD
9783
9784 * font.c (font_put_extra): Don't return if val is nil, it means
9785 boolean option is off.
9786 (font_parse_fcname): Collect all extra properties in extra_props
9787 and call filter_properties for all drivers with extra_props and
9788 font as parameter.
87e32266
SM
9789 (font_open_entity): Do not use cache, it does not pick up new
9790 fontconfig settings like hinting.
637fa988
JD
9791 (font_load_for_lface): If spec had a name in it, store it in entity.
9792
a73f9c9d 9793 * emacs.c (main): Call syms_of_xsettings.
637fa988
JD
9794
9795 * config.in: HAVE_GCONF is new.
9796
9797 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
9798 xsettings.o is new.
9799
5a942932
KH
98002009-11-17 Kenichi Handa <handa@m17n.org>
9801
9802 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
9803 back to the default font in case that no suitable font is found.
9804
b7c7a4d1
SM
98052009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
9806
9807 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
9808 Suggested by Chad Brown <yandros@mit.edu>.
9809 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
9810
072f1e39
JD
98112009-11-16 Jan Djärv <jan.h.d@swipnet.se>
9812
9813 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
9814
5d1e70a2
AS
98152009-11-14 Andreas Schwab <schwab@linux-m68k.org>
9816
87e32266 9817 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5d1e70a2 9818
a53cfbe5
JD
98192009-11-14 Jan Djärv <jan.h.d@swipnet.se>
9820
473a99b7
JD
9821 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
9822 has a parent.
9823
a53cfbe5 9824 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
5ce6e4f4 9825 dependency files in deps/. Include those files into Makefile.
a53cfbe5
JD
9826
9827 * config.in: Generated (AUTO_DEPEND).
9828
f04bb9b2
MA
98292009-11-13 Michael Albinus <michael.albinus@gmx.de>
9830
b7c7a4d1 9831 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
9832 Vdbus_registered_functions_table, because it contains also
9833 properties. Fix docstring.
b7c7a4d1 9834 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 9835
8f11f7ec
SM
98362009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
9837
9838 * alloc.c (mark_object): Don't reprocess marked strings.
9839 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
9840 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
9841
8a605fe8
KH
98422009-11-13 Kenichi Handa <handa@m17n.org>
9843
8f11f7ec 9844 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
9845 semantics of Vword_combining_categories.
9846 (Vword_combining_categories): Describe the slight change of the
9847 semantics.
9848
241c4680
EZ
98492009-11-13 Eli Zaretskii <eliz@gnu.org>
9850
9851 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
9852
9853 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
9854
5d58e44c
SM
98552009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
9856
9857 * xdisp.c (syms_of_xdisp): Fix typo in last change.
9858
5e13f9d3
JB
98592009-11-12 Juanma Barranquero <lekktu@gmail.com>
9860
9861 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
9862
cf54c754
DR
98632009-11-11 David Reitter <david.reitter@gmail.com>
9864
9865 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
9866 variables to fix 2009-11-09 change.
9867
a4ada374
DN
98682009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
9869
91433552
DN
9870 * process.c (ifflag_def): Make flag_sym constant.
9871 (Fnetwork_interface_info): Use a constant pointer.
9872 (ifflag_table):
9873 * xfns.c (cursor_bits):
9874 * xdisp.c (power_letter):
9875 * termcap.c (speeds, esctab):
9876 * sysdep.c (baud_convert):
9877 * keyboard.c (lispy_accent_codes, modifier_names):
9878 * image.c (xbm_format, xpm_format, pbm_format, png_format)
9879 (jpeg_format, tiff_format, gif_format, svg_format)
9880 (interlace_start, interlace_increment, gs_format):
9881 * gtkutil.c (separator_names):
9882 * fringe.c (swap_nibble):
9883 * fns.c (base64_value_to_char, base64_char_to_value):
9884 * fileio.c (make_temp_name_tbl):
9885 * coding.c (suffixes): Make constant.
9886
f4265f6c
DN
9887 * frame.c (make_initial_frame):
9888 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
9889 build_string.
9890 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
9891
04420943
DN
9892 * s/freebsd.h:
9893 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
9894
0a5d24ae
DN
9895 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
9896 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
9897
a4ada374
DN
9898 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
9899 * xterm.c (syms_of_xterm):
9900 * xfaces.c (syms_of_xfaces):
9901 * xdisp.c (syms_of_xdisp):
9902 * lread.c (syms_of_lread):
9903 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
9904 build_string.
91433552 9905
a4ada374
DN
9906 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
9907
af98fc7f
SM
99082009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
9909
8ab1650e 9910 * fns.c (Fplist_get): Merge the active and the commented out code.
af98fc7f 9911
e90292a9
JD
99122009-11-10 Jan Djärv <jan.h.d@swipnet.se>
9913
9914 * keyboard.h: Declare timer_check.
9915
9916 * keyboard.c (timer_check_2): New function that does what the old
9917 timer_check did.
9918 (timer_check): Call timer_check_2 until -1 or a non-zero time is
9919 returned, i.e. don't return -1 with timers pending.
9920
9921 * process.c: Remove extern declaration of timer_check.
9922
9923 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
9924 even if timer_check returned -1.
9925
af98fc7f
SM
9926 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
9927 xg_dialog_data.
e90292a9
JD
9928 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
9929 the event loop.
9930 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
9931 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
9932 Destroy the dialog after xg_dialog_run.
9933
045b83c0
SM
99342009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
9935
9936 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
9937
1fb99a3a
JD
99382009-11-10 Jan Djärv <jan.h.d@swipnet.se>
9939
9940 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
9941
04e452cb
JB
99422009-11-09 Juanma Barranquero <lekktu@gmail.com>
9943
9944 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
9945
ef7417fd
SM
99462009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
9947
9948 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
9949 w32menu.c, and nsmenu.m.
9950 Simplify the obsolete case where position is nil.
9951 (cleanup_popup_menu): New function, moved from nsmenu.m.
9952 (struct skp): Remove slot `notreal'.
9953 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
9954 adjust callers.
9955 (single_menu_item): Adjust call to parse_menu_item.
9956 (syms_of_menu): Defsubr x-popup-menu.
9957 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
9958 (keymap_panes): Don't export any more.
9959 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
9960 (xmenu_show): Declare.
9961 * keyboard.c (parse_menu_item): Remove arg `notreal'.
9962 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
9963 * keyboard.h (parse_menu_item): Update declaration.
9964 * xmenu.c (Fx_popup_menu): Remove.
9965 (syms_of_xmenu): Don't defsubr x-popup-menu.
9966 * w32menu.c (Fx_popup_menu): Remove.
9967 (syms_of_w32menu): Don't defsubr x-popup-menu.
9968 * nsmenu.m (cleanup_popup_menu): Remove.
9969 (ns_menu_show): Rename from ns_popup_menu and remove all the code
9970 moved to menu.c's Fx_popup_menu.
9971 (Fx_popup_menu): Remove.
9972 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
9973 menu_items (it's done in menu.c already).
9974
424d6179
SM
99752009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
9976
9977 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
9978 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
9979
c0df13a6 99802009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
9981
9982 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 9983 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
9984 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
9985 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
9986
2de9f71c
SM
99872009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
9988
9989 Let integers use up 2 tags to give them one extra bit and thus double
9990 their range.
9991 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
9992 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
9993 New macros.
9994 (enum Lisp_Type): Use them. Give explicit values.
9995 (Lisp_Type_Limit): Remove.
9996 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
9997 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
9998 Pay attention to USE_2_TAGS_FOR_INTS.
9999 (INTEGERP): Use LISP_INT_TAG_P.
10000 * fns.c (internal_equal): Simplify the default case.
10001 (sxhash): Use case_Lisp_Int.
10002 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
10003 any more.
10004 (Ftype_of): Use case_Lisp_Int.
10005 (store_symval_forwarding): Take into account the fact that Ints can
10006 now have more than one tag.
10007 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
686b968e 10008 (buffer_slot_type_mismatch):
2de9f71c
SM
10009 * xfaces.c (face_attr_equal_p):
10010 * print.c (print_object):
10011 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
10012 Use case_Lisp_Int.
10013
323637a2
EZ
100142009-11-06 Eli Zaretskii <eliz@gnu.org>
10015
7ac65b38
EZ
10016 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
10017
323637a2
EZ
10018 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
10019 warning.
10020
e511451f
JD
100212009-11-06 Jan Djärv <jan.h.d@swipnet.se>
10022
10023 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
10024
10025 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
10026
10027 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
10028 ButtonPressRelease and MotionNotify (bug#4870).
10029
5e2327cf
DN
100302009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
10031
5adc433e
DN
10032 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
10033
d67b4f80
DN
10034 * xterm.c (syms_of_xterm):
10035 * xselect.c (syms_of_xselect):
10036 * xmenu.c (syms_of_xmenu):
10037 * xfns.c (syms_of_xfns):
10038 * xfaces.c (syms_of_xfaces):
10039 * xdisp.c (syms_of_xdisp):
10040 * window.c (syms_of_window):
10041 * w32fns.c (syms_of_w32fns):
10042 * undo.c (syms_of_undo):
10043 * textprop.c (syms_of_textprop):
10044 * terminal.c (syms_of_terminal):
10045 * syntax.c (syms_of_syntax):
10046 * sound.c (syms_of_sound):
10047 * search.c (syms_of_search):
10048 * print.c (syms_of_print):
10049 * minibuf.c (syms_of_minibuf):
10050 * macros.c (syms_of_macros):
10051 * keymap.c (syms_of_keymap, initial_define_key)
10052 (initial_define_lispy_key):
10053 * keyboard.c (syms_of_keyboard):
10054 * insdel.c (syms_of_insdel):
10055 * image.c (syms_of_image):
10056 * fringe.c (syms_of_fringe):
10057 * frame.c (syms_of_frame):
10058 * fontset.c (syms_of_fontset):
10059 * fns.c (syms_of_fns):
10060 * fns.c (syms_of_fns):
10061 * fileio.c (syms_of_fileio):
10062 * fileio.c (syms_of_fileio):
10063 * eval.c (syms_of_eval):
10064 * doc.c (syms_of_doc):
10065 * dispnew.c (syms_of_display):
10066 * dired.c (syms_of_dired):
10067 * dbusbind.c (syms_of_dbusbind):
10068 * data.c (syms_of_data):
10069 * composite.c (syms_of_composite):
10070 * coding.c (syms_of_coding):
10071 * cmds.c (syms_of_cmds):
10072 * charset.c (define_charset_internal, syms_of_character):
10073 * ccl.c (syms_of_ccl):
10074 * category.c (syms_of_category, init_category_once):
10075 * casetab.c (syms_of_casetab):
10076 * casefiddle.c (syms_of_casefiddle):
10077 * callint.c (syms_of_callint):
10078 * bytecode.c (syms_of_bytecode):
10079 * buffer.c (keys_of_buffer, syms_of_buffer):
10080 * alloc.c (syms_of_alloc):
10081 * process.c (syms_of_process, init_process):
10082 * lread.c (syms_of_lread, init_obarray):
10083 * font.c (build_style_table):
10084 * emacs.c (syms_of_emacs, main): Replace calls to intern with
10085 intern_c_string, calls to make_pure_string with
10086 make_pure_c_string. Use pure_cons instead of Fcons.
10087
5e2327cf
DN
10088 * process.c (socket_options): Make it const.
10089 (set_socket_option, init_process): Use a const pointer.
10090
10091 * lread.c (intern_c_string): New function.
10092 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
10093 (defvar_int): Uset it. Make the name const char*.
10094
10095 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
10096 (defvar_int): Update prototypes.
10097 (DEFUN, EXFUN): Support for prototypes is now required.
10098 (intern_c_string): New prototype.
10099 (struct Lisp_Subr): Make symbol_name constant.
10100
10101 * font.c (struct table_entry): Remove unused member. Make NAMES
10102 constant.
10103 (weight_table, slant_table, width_table): Make constant.
10104
10105 * emacs.c (struct standard_args): Make name and longname constant.
10106
10107 * character.h (DEFSYM): Use intern_c_string.
10108
a56eaaef
DN
101092009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
10110
10111 * alloc.c (make_pure_c_string): New function.
10112
10113 * eval.c (Fautoload): Purecopy all arguments.
10114
f6a07420
KH
101152009-11-05 Kenichi Handa <handa@m17n.org>
10116
10117 * fileio.c (Finsert_file_contents): Be sure set coding-system of
10118 the buffer in case of replace.
10119
5d28d4b1
DN
101202009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
10121
10122 * puresize.h (BASE_PURESIZE): Increase to 1620000.
10123
b349d111
SM
101242009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
10125
d528b1ce
SM
10126 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
10127 when applicable (bug#4851).
10128
b349d111
SM
10129 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
10130 (P_): Support for prototypes is now required.
10131
c38eb027
CY
101322009-10-31 Chong Yidong <cyd@stupidchicken.com>
10133
10134 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
10135 (Bug#4827).
10136
0405f8d9
EZ
101372009-10-30 Eli Zaretskii <eliz@gnu.org>
10138
d528b1ce 10139 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 10140
ca0a881a
DN
101412009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
10142
10143 * puresize.h (BASE_PURESIZE): Increase to 1470000.
10144
d528b1ce
SM
10145 * lread.c (Fload): Purecopy the file name when building
10146 Vpreloaded_file_list.
ca0a881a 10147
47e0e0e4
JR
101482009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
10149
10150 * w32fns.c (syms_of_w32fns): Change default value of
10151 w32-scroll-lock-modifier to nil. (Bug#2827)
10152
057bce6f
JB
101532009-10-26 Juanma Barranquero <lekktu@gmail.com>
10154
782a943e 10155 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 10156
242bc74c
AS
101572009-10-26 Andreas Schwab <schwab@redhat.com>
10158
10159 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
10160
522d013a
JB
101612009-10-26 Juanma Barranquero <lekktu@gmail.com>
10162
10163 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
10164 For delta < 0, skip check that only makes sense when the mini-window
10165 is going to be enlarged. (Bug#4534)
10166
18060980
CY
101672009-10-25 Chong Yidong <cyd@stupidchicken.com>
10168
10169 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
10170 string in menu maps (Bug#4471).
10171
fec8f0fe
CY
101722009-10-24 Chong Yidong <cyd@stupidchicken.com>
10173
10174 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
10175 FRAME_NS_VIEW on terminal frames (Bug#4765).
10176
10d66ec0
AS
101772009-10-24 Andreas Schwab <schwab@linux-m68k.org>
10178
1cae01f7
AS
10179 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
10180 DBUS_TYPE_UINTnn separately to get proper sign extension.
10181
58a12889
AS
10182 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
10183 can properly handle unsigned types.
d528b1ce 10184 (make_uid, make_gid): Remove.
58a12889 10185
987c9327
AS
10186 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
10187 types again.
10188
522d013a 10189 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
10190 (system_process_attributes): Likewise.
10191
905a9ed3
DN
101922009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
10193
10194 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
10195
10196 * eval.c (Fautoload): Purecopy the filename. Simplify.
10197
10198 * category.c (Fdefine_category): Purecopy docstring.
10199
a599b3e8
AS
102002009-10-23 Andreas Schwab <schwab@linux-m68k.org>
10201
7b792fc9
AS
10202 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
10203
a599b3e8
AS
10204 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
10205
b35ac83e
CY
102062009-10-23 Chong Yidong <cyd@stupidchicken.com>
10207
10208 * window.c (Fwindow_edges, Fwindow_pixel_edges)
10209 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
10210 (Bug#4775).
10211
e8903e00
SM
102122009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
10213
10214 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
10215 (init_fileio_once):
10216 * lisp.h (init_fileio_once): Remove.
10217 * emacs.c (main): Don't call init_fileio_once.
10218
8f43cbf3
DN
102192009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
10220
10221 * puresize.h (BASE_PURESIZE): Increase to 1430000.
10222
26898943
AS
102232009-10-21 Andreas Schwab <schwab@linux-m68k.org>
10224
10225 * doprnt.c (doprnt): Fix overflow check.
10226
5c646d5a
JD
102272009-10-21 Jan Djärv <jan.h.d@swipnet.se>
10228
3132a7ea
JD
10229 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
10230
5c646d5a
JD
10231 * xterm.h (x_wait_for_event): Declare it.
10232
10233 * xterm.c (pending_event_wait): New variable.
10234 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
10235 see pending_event_wait.eventtype.
10236 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
10237 (x_new_font): Call change_frame_size with new rows/columns before we
10238 try to resize the frame.
5c646d5a 10239 (x_wait_for_event): New function.
d528b1ce
SM
10240 (x_set_window_size_1): Don't change gravity unless change_gravity
10241 is set.
5c646d5a
JD
10242 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
10243 don't change frame size, instead wait for the ConfigureNotify.
10244 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
10245 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
10246 (x_initialize): Initialize pending_event_wait.
10247
10248 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
10249 size.
10250
10251 * widget.c (EmacsFrameSetValues): Add comment.
10252 (EmacsFrameSetCharSize): Just call x_set_window_size.
10253
10254 * gtkutil.c (xg_frame_set_char_size): Flush events and call
10255 x_wait_for_event.
d528b1ce 10256 (flush_and_sync): Remove again.
5c646d5a
JD
10257 (xg_get_font_name): Suggest monospace if no previous font is known.
10258
e9c1637d
SM
102592009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
10260
10261 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 10262 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 10263
5a72cccb
YM
102642009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10265
10266 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
10267 processing pending events when event is filtered for input method.
ab04798f 10268 (Bug#3681)
5a72cccb 10269
2629aa37
JB
102702009-10-20 Juanma Barranquero <lekktu@gmail.com>
10271
10272 * fns.c: Add #endif accidentally removed in previous change.
10273
c3417a74
DN
102742009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
10275
10276 * fns.c: Remove code for unsupported system: MAC_OS.
10277 * image.c: Likewise. Include setjmp.h.
10278
9685cef2
JD
102792009-10-19 Jan Djärv <jan.h.d@swipnet.se>
10280
10281 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
10282 pixel -1 (bug #4742).
10283
d7306fe6
DN
102842009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
10285
019d2c4c
DN
10286 * process.c (create_pty): Remove conditionals for no longer
10287 supported systems: UNIPLUS and RTU.
10288
ee6bacd4
DN
10289 * xterm.c:
10290 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
10291
d7306fe6
DN
10292 * alloc.c: Do not define struct catchtag.
10293 * eval.c: Move struct catchtag definition ...
10294 * lisp.h: ... here.
10295
10296 * image.c: Move png.h #include earlier to avoid warnings.
10297
10298 * xterm.c:
10299 * xsmfns.c:
10300 * xselect.c:
10301 * xrdb.c:
10302 * xmenu.c:
10303 * xftfont.c:
10304 * xfont.c:
10305 * xfns.c:
10306 * xfaces.c:
10307 * xdisp.c:
10308 * window.c:
10309 * widget.c:
10310 * w32xfns.c:
10311 * w32uniscribe.c:
10312 * w32term.c:
10313 * w32select.c:
10314 * w32reg.c:
10315 * w32proc.c:
10316 * w32menu.c:
10317 * w32inevt.c:
10318 * w32heap.c:
10319 * w32font.c:
10320 * w32fns.c:
10321 * w32console.c:
10322 * w32.c:
10323 * w16select.c:
10324 * vm-limit.c:
10325 * unexsol.c:
10326 * unexec.c:
10327 * unexcw.c:
10328 * unexaix.c:
10329 * undo.c:
10330 * tparam.c:
10331 * textprop.c:
10332 * terminfo.c:
10333 * terminal.c:
10334 * termcap.c:
10335 * term.c:
10336 * syntax.c:
10337 * sound.c:
10338 * sheap.c:
10339 * search.c:
10340 * scroll.c:
10341 * region-cache.c:
10342 * regex.c:
10343 * ralloc.c:
10344 * process.c:
10345 * print.c:
b024548b
DN
10346 * nsterm.m:
10347 * nsselect.m:
10348 * nsmenu.m:
10349 * nsimage.m:
10350 * nsfont.m:
10351 * nsfns.m:
d7306fe6
DN
10352 * msdos.c:
10353 * minibuf.c:
10354 * menu.c:
10355 * marker.c:
10356 * macros.c:
10357 * keymap.c:
10358 * keyboard.c:
10359 * intervals.c:
10360 * insdel.c:
10361 * indent.c:
10362 * gtkutil.c:
10363 * ftxfont.c:
10364 * ftfont.c:
10365 * fringe.c:
10366 * frame.c:
10367 * fontset.c:
10368 * font.c:
10369 * fns.c:
10370 * floatfns.c:
10371 * filelock.c:
10372 * fileio.c:
10373 * emacs.c:
10374 * editfns.c:
10375 * dosfns.c:
10376 * doprnt.c:
10377 * doc.c:
10378 * dispnew.c:
10379 * dired.c:
10380 * dbusbind.c:
10381 * data.c:
10382 * composite.c:
10383 * coding.c:
10384 * cmds.c:
10385 * cm.c:
10386 * chartab.c:
10387 * charset.c:
10388 * character.c:
10389 * ccl.c:
10390 * category.c:
10391 * casetab.c:
10392 * casefiddle.c:
10393 * callproc.c:
10394 * callint.c:
10395 * bytecode.c:
10396 * buffer.c:
10397 * atimer.c: Include setjmp.h. (Bug#4643)
10398
fd5f21e6
SM
103992009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
10400
4c0354d7
SM
10401 Remove leftover table unibyte_to_multibyte_table.
10402 * character.c (unibyte_to_multibyte_table): Remove.
10403 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
10404 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
10405 * character.h (UNIBYTE_TO_CHAR): New macro.
10406 (MAKE_CHAR_MULTIBYTE): Use it.
10407 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
10408 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
10409 (message_dolog, set_message_1):
10410 * search.c (Freplace_match):
10411 * editfns.c (Fcompare_buffer_substrings):
10412 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
10413 (concat):
10414 * insdel.c (copy_text, count_size_as_multibyte):
10415 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
10416 * term.c (produce_glyphs):
10417 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
10418 * regex.c (RE_CHAR_TO_MULTIBYTE):
10419 * cmds.c (internal_self_insert):
10420 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
10421
fd5f21e6
SM
10422 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
10423
4418646e
DN
104242009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
10425
10426 * puresize.h (BASE_PURESIZE): Increase to 1310000.
10427
35f5c1d2
JB
104282009-10-16 Juanma Barranquero <lekktu@gmail.com>
10429
10430 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
10431
a0cd8f6b
AR
104322009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
10433
10434 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
10435 still needed under Tiger.
10436
10437 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
10438
10439 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
10440 __Apple__.
10441
10442 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
10443
01a8d3fa
KH
104442009-10-15 Kenichi Handa <handa@m17n.org>
10445
10446 * print.c (print_object): Escape a symbol like "2E10" too.
10447
bf6c75c9 104482009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
10449
10450 Cleanups and changes for 64-bit compile under Snow Leopard.
10451 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
10452
10453 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
10454
c5959062 10455 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
10456 (ns_findfonts, nsfont_list_family): Use long format in printf, and
10457 cast argument.
10458 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 10459 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
10460
10461 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
10462
10463 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
10464 where appropriate.
10465
10466 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
10467 where appropriate.
6e4780c5
JB
10468 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
10469 Use stringWithUTF8String.
bf6c75c9
AR
10470 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
10471
6e4780c5
JB
10472 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
10473 Add formal protocol mention to inheritance.
bf6c75c9
AR
10474 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
10475
6e4780c5
JB
10476 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
10477 Fix printf format.
bf6c75c9
AR
10478 (ns_query_color): Use CGFloat where appropriate.
10479 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
ac146f82 10480 (EmacsScroller-mouseDown:): Use long format in printf, and cast
bf6c75c9
AR
10481 argument.
10482
3d87f118
AR
10483 * config.in (NS_HAVE_NSINTEGER): Drop.
10484
a95c8102
AR
10485 * dbusbind.c (dbus-method-return-internal)
10486 (dbus-method-error-internal): Use long format in printf, and cast
10487 argument.
10488
10489 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
10490 in printf, and cast argument.
10491
6873acca 10492 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
10493 cast argument.
10494
9ec6f100
GM
104952009-10-11 Glenn Morris <rgm@gnu.org>
10496
10497 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
10498
5be883cd
JD
104992009-10-08 Jan Djärv <jan.h.d@swipnet.se>
10500
10501 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
10502 menu bar with a small width so it doesn't enlarge the frame.
10503
d7a39b51
JB
105042009-10-08 Juanma Barranquero <lekktu@gmail.com>
10505
10506 * fontset.c (Fset_fontset_font): Fix typos in error messages.
10507
0c2b6f8e
GM
105082009-10-06 Glenn Morris <rgm@gnu.org>
10509
10510 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
10511 SOME_MACHINE_LISP (this enters indirectly via DOC).
10512
e02131a2
EZ
105132009-10-05 Eli Zaretskii <eliz@gnu.org>
10514
10515 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
10516
b4744254
EZ
105172009-10-04 Eli Zaretskii <eliz@gnu.org>
10518
10519 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
10520 Doc fix.
10521
dbf64827
JB
105222009-10-03 Martin Rudalics <rudalics@gmx.at>
10523
10524 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
10525
e9a0aef8
MA
105262009-10-02 Michael Albinus <michael.albinus@gmx.de>
10527
d528b1ce 10528 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
10529 used anymore outside fileio.c.
10530
10531 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
10532
64eb2b56
JB
105332009-10-01 Juanma Barranquero <lekktu@gmail.com>
10534
10535 * lisp.h (Qdelete_directory_internal):
10536 Declare, instead of Qdelete_directory.
10537
10538 * w32fns.c (Fsystem_move_file_to_trash): Use it.
10539
9d28c33e
SM
105402009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
10541
10542 * eval.c (Fcalled_interactively_p): Add `kind' argument.
10543
9d8f3bd9
MA
105442009-10-01 Michael Albinus <michael.albinus@gmx.de>
10545
9d28c33e 10546 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
10547 Fdelete_directory. It is not a command anymore. It has no file
10548 name handler.
10549
9694740b
SM
105502009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
10551
10552 * xdisp.c (get_next_display_element): Use an enum in last change.
10553
748e162f
KH
105542009-09-28 Kenichi Handa <handa@m17n.org>
10555
9694740b 10556 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
10557 unibyte_display_via_language_environment in handling
10558 Vnobreak_char_display.
10559
17efd58d
AR
105602009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
10561
10562 * nsterm.h (ns_app_name): New extern variable.
10563
10564 * nsterm.m (ns_app_name): New variable.
10565 (ns_term_init): Set and use it.
10566 (ns_term_shutdown): Use it.
10567
10568 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
10569 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
10570
10571 * nsfns.m (ns_set_name_iconic, ns_set_name)
10572 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
10573 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
10574
9694740b
SM
10575 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
10576 Remove double-casting in client_data comparison.
31c2d412 10577
3208cb35
YM
105782009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10579
10580 * keyboard.c (make_lispy_event): Remember last wheel direction.
10581 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
10582
b7d552d6
GM
105832009-09-26 Glenn Morris <rgm@gnu.org>
10584
10585 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
10586 internal.elc. Add term/pc-win.elc.
10587 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
10588 term/x-win.elc.
10589 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
10590 term/w32-win.elc.
10591 (NS_SUPPORT): New.
10592 (lisp): Add NS_SUPPORT.
10593 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
10594
4ff670a8
DR
105952009-09-25 David Reitter <david.reitter@gmail.com>
10596
10597 * nsmenu.m (EmacsMenu-clear): Recognize application menu
10598 on Mac OS X 10.6+ (bug#4513).
10599
feabfb6c
JB
106002009-09-24 Juanma Barranquero <lekktu@gmail.com>
10601
10602 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
10603 some parts of Emacs code (like font selection) don't grok them.
10604 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 10605
de59072a
AS
106062009-09-24 Andreas Schwab <schwab@redhat.com>
10607
10608 * coding.c (decode_coding_iso_2022): Fix operator precedence.
10609
a489517b
JB
106102009-09-24 Juanma Barranquero <lekktu@gmail.com>
10611
10612 * dired.c (Fdirectory_files): Fix typo in docstring.
10613
0592970c
AR
106142009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
10615
10616 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
10617 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
10618 (EmacsScroller-setPosition:portion:whole:): Remove -display call
10619 under GNUstep.
10620 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
10621
10622 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
10623 glyph advancement.
10624
48e8a88b
AR
106252009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
10626
10627 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 10628 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
10629
10630 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
10631 deleted (bug #4492).
10632
e14f0a78
AR
10633 * nsfont.m (Vns_reg_to_script): New lisp variable.
10634 (syms_of_nsfont): Declare it.
10635 (ns_registry_to_script): New function.
10636 (ns_get_req_script): Call it.
10637 (ns_findfonts): Don't give up on non-unicode registry.
10638
10639 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
10640
5b650faa
SM
106412009-09-20 Tom Tromey <tromey@redhat.com>
10642
10643 * eval.c (find_handler_clause): Make stack-trace-on-error work in
10644 batch mode (bug#4228).
10645
a489517b 106462009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
10647
10648 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 10649 carefully. (Bug #4339)
0bae4e09 10650
fcfe06f3
CY
106512009-09-18 Chong Yidong <cyd@stupidchicken.com>
10652
d798ba87 10653 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 10654
31642728
AR
106552009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
10656
10657 * emacs.c (inhibit_x_resources): Update doc string for NS.
bba3e508
SM
10658 (main) [HAVE_NS]: Don't process --no-init-file option.
10659 Remove legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
10660
10661 * nsterm.h (ns_no_defaults): Remove.
10662
10663 * nsterm.m (ns_no_defaults): Remove.
10664 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
10665 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
10666 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
10667 don't update the NSWindow itself.
bba3e508
SM
10668 (EmacsView-windowWillUseStandardFrame:defaultFrame:):
10669 Improve state detection and store user rect ourselves. (Bug #3581)
31642728
AR
10670
10671 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
10672 ns_use_qd_smoothing.
10673
10674 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
10675 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 10676 (x-close-connection): Drop PSFlush() under OS X.
a489517b 10677 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 10678
8686ac71
JB
106792009-09-17 Juanma Barranquero <lekktu@gmail.com>
10680
10681 * emacs.c (inhibit_x_resources): New variable.
10682 (main) [HAVE_NS]: Don't process --quick command line option.
10683 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
10684
10685 * lisp.h (inhibit_x_resources): Declare it extern.
10686
10687 * w32reg.c (x_get_string_resource):
10688 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
10689
e227ba05
EZ
106902009-09-17 Eli Zaretskii <eliz@gnu.org>
10691
362654a6
JB
10692 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
10693 Add lisp/term/internal.elc.
e227ba05 10694
742d40e8
SM
106952009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
10696
10697 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
10698 (bug#4461).
10699
005bd5a2
DN
107002009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
10701
10702 * puresize.h (BASE_PURESIZE): Increase to 1290000.
10703
10704 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
10705 (OBJECTS_MACHINE): Remove, unused.
10706
f9af9719
SM
107072009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
10708
10709 * frame.c (x_get_resource_string): Remove unused.
10710
0307c7d2
JD
107112009-09-15 Jan Djärv <jan.h.d@swipnet.se>
10712
10713 * xterm.c (x_new_font): Call change_frame_size before calling
10714 x_set_window_size, in case frame size won't change.
10715
10716 * frame.c (x_set_font): Remove dead code.
10717
428b13d6
SM
107182009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
10719
10720 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
10721
5766c380
SM
107222009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
10723
10724 * lread.c (Fload): Don't output a message after loading an obsolete
10725 package any more (done in Lisp now).
10726
2fd0161b
CY
107272009-09-12 Chong Yidong <cyd@stupidchicken.com>
10728
10729 * fns.c (syms_of_fns): Doc fix (Bug#4227).
10730
bc5e75b6
SM
107312009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
10732
10733 * keymap.c (Fwhere_is_internal): Use nconc2.
10734
c31c985e
AM
107352009-09-11 Alan Mackenzie <acm@muc.de>
10736
10737 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
10738 batch mode.
10739
78012bd2
AS
107402009-09-11 Andreas Schwab <schwab@linux-m68k.org>
10741
10742 * xdisp.c (display_mode_element): Detect cycles.
10743
9d889332
SM
107442009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
10745
10746 * keymap.c (where_is_internal): Don't erroneously return nil right after
10747 filling the cache.
10748 (where_is_internal_1): Fix up typo.
10749
7ab5d780
GM
107502009-09-11 Glenn Morris <rgm@gnu.org>
10751
10752 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
10753 share a common doc-string.
10754
5238a749
SM
107552009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
10756
66d77eda
SM
10757 * keymap.c (get_keymap): Return the actual keymap symbol rather than
10758 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
10759
5238a749
SM
10760 * keymap.c (QCadvertised_binding): New constant.
10761 (syms_of_keymap): Initialize it.
10762 (Fwhere_is_internal): Try and use bindings from :advertised-binding
10763 if applicable.
10764
19f48442
SM
107652009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
10766
50d4ba39
SM
10767 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
10768 (parse_menu_item): Streamline since bindings are recomputed all the
10769 time anyway. Don't bother checking Vdefine_key_rebound_commands any
10770 more and don't support lmenu's menu-alias any more either.
10771
a88a5372
SM
10772 * keymap.c (where_is_internal_data): Make noindirect a boolean.
10773 (where_is_internal): Strip it down to only traverse the keymaps.
10774 Move the cache handling from Fwhere_is_internal to here.
10775 (Fwhere_is_internal): Move the handling of remapping and the choice of
10776 the best binding from where_is_internal to here.
10777 Unify the cached/noncached paths, so remapping is also handled
10778 correctly when the cache is used, and so the cache can be used to
10779 speed up remap-handling when applicable.
10780 Give preference to non-remapped bindings.
10781 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
10782 non-remapped bindings.
10783 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
10784 command remapping.
10785
19f48442
SM
10786 * xdisp.c (display_mode_element): Move list length limit from 50 to
10787 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
10788
599498c3 107892009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
10790
10791 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
10792
f9b7b5ac
SM
107932009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
10794
a53af587
JB
10795 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
10796 (Bug#4334)
10797
f9b7b5ac
SM
10798 * keymap.c (where_is_internal): Filter out shadowed remappings.
10799 Assume that where_is_internal returns unshadowed bindings to simplify
10800 the code and get rid of the gotos. Use ASIZE.
10801
04f4b72d
JD
108022009-09-04 Jan Djärv <jan.h.d@swipnet.se>
10803
4da146f2
JD
10804 * xterm.c (x_focus_changed): If we get a focusout and pointer
10805 is invisible, make it visible.
10806
04f4b72d
JD
10807 * xterm.h: Remove condition for declaration of
10808 x_*_window_to_frame.
10809
7cef7ce3
SM
108102009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
10811
10812 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
10813 initial terminal as well.
10814
a54fa5b7
JD
108152009-09-02 Jan Djärv <jan.h.d@swipnet.se>
10816
10817 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 10818 x_menubar_window_to_frame.
a54fa5b7 10819
50426a04 10820 * xterm.c: Remove declarations also in xterm.h.
a54fa5b7
JD
10821 (XTmouse_position): Do not return valid positions
10822 for clicks in the menubar and the toolbar for Gtk+.
10823
10824 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
10825 if the widget for the event has the same top level as a frame,
10826 return the frame.
10827 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
10828 internal windows, bug #4122.
10829 (x_non_menubar_window_to_frame): Remove.
10830
5a021dd0
GM
108312009-09-02 Glenn Morris <rgm@gnu.org>
10832
10833 * buffer.c (default-major-mode): Move most of the doc from here...
10834 (major-mode): ... to here.
10835
548fe2f3
NR
108362009-08-30 Nick Roberts <nickrob@snap.net.nz>
10837
10838 * process.c (wait_reading_process_output): Keep the descriptor
10839 when pty is used by a non-child process, e.g., in I/O buffer of
10840 GDB this allows inferior to be restarted.
10841
e0840eef
EZ
108422009-08-29 Eli Zaretskii <eliz@gnu.org>
10843
10844 * xdisp.c (redisplay_internal): Remove redundant test and collapse
10845 both branches into one.
10846
82e98df4
SM
108472009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
10848
10849 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
10850 (main): Use enable-multibyte-characters rather than
10851 default-enable-multibyte-characters. Output a warning message when
10852 running a unibyte session.
10853
890617cb
YM
108542009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10855
10856 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
10857 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
10858 (copy_data_segment): Also copy __program_vars section.
10859 (copy_dyld_info) [LC_DYLD_INFO]: New function.
10860 (dump_it) [LC_DYLD_INFO]: Use it.
10861
10862 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
10863
e7adeadc
EZ
108642009-08-28 Eli Zaretskii <eliz@gnu.org>
10865
10866 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
10867 $(SRC)/buildobj.h.
ef1b0ba7 10868 (buildobj.h): Rename from $(SRC)/buildobj.h.
e7adeadc
EZ
10869 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
10870 $(SRC)/buildobj.h.
10871 (clean): Add buildobj.h.
10872
3ed8bbdc
TZ
108732009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
10874
10875 * print.c (print_object): Set escapeflag to 1 when printing
10876 hashtable keys and values.
10877
155a6764
SM
108782009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
10879
10880 * lread.c (read_integer): Use doubles (and potentially return a float
10881 number) as we do in string-to-number.
10882 (read1): Use strtol to read integers, signal errors on strtol's
10883 overflow and use floats if strtol's output is too large for
10884 Elisp integers.
10885
877610de
EZ
108862009-08-27 Eli Zaretskii <eliz@gnu.org>
10887
10888 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
10889 (make-buildobj-SH): Fix last change.
10890 (SRC): Move to before where it's first used.
10891
ef73e7be
KH
108922009-08-27 Kenichi Handa <handa@m17n.org>
10893
550c8289
KH
10894 * process.c (send_process): Use encode_coding_object instead of
10895 encode_coding_string to perform eol-conversion even if the string
10896 is unibyte.
10897
60afa08d
KH
10898 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
10899 character.
10900
ef73e7be 10901 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 10902 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 10903
7b3a82d7
DN
109042009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
10905
5654bf63
DN
10906 * callproc.c (Fcall_process): Remove always true #if.
10907
7b3a82d7
DN
10908 * lisp.h: Replace #if 0 code for checking with text pointing to
10909 the --enable-checking configure flag.
10910
10911 * emacs.c (main): Mention the --enable-profiling configure flag
10912 instead of using CFLAGS.
10913
878bde49
KR
109142009-08-26 Ken Raeburn <raeburn@raeburn.org>
10915
10916 * Makefile.in (buildobj.h): New target.
10917 (doc.o): Depend on it.
10918 (temacs${EXEEXT}): Don't generate buildobj.lst.
10919 (mostlyclean): Delete buildobj.h, not buildobj.lst.
10920 * makefile.w32-in ($(SRC)/buildobj.h): New target.
10921 ($(BLD)/doc.$(O)): Depend on it.
10922 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
10923 provided by Eli Zaretskii.)
10924 ($(TEMACS)): Don't generate buildobj.lst.
10925 * doc.c: Include buildobj.h.
10926 (buildobj): New static variable.
10927 (Fsnarf_documentation): Use it, instead of opening and reading
10928 buildobj.lst.
10929
1574224c
MA
109302009-08-25 Michael Albinus <michael.albinus@gmx.de>
10931
10932 * dbusbind.c (Fdbus_call_method)
10933 (Fdbus_call_method_asynchronously): Use English numeric format for
10934 timeout values in doc string.
10935
d9da2f45
KH
109362009-08-25 Kenichi Handa <handa@m17n.org>
10937
ef73e7be
KH
10938 * alloc.c (mark_char_table): New function.
10939 (mark_object): Use mark_char_table for a char-table.
10940
d9da2f45
KH
10941 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
10942 (CHAR_TABLE_REF): Use it.
10943
c8edcc01
KR
109442009-08-23 Ken Raeburn <raeburn@raeburn.org>
10945
10946 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
10947 before invoking the newly build emacs to check for load-path
10948 shadowing.
10949
7763401b
GM
109502009-08-22 Glenn Morris <rgm@gnu.org>
10951
10952 * Makefile.in (bootstrap_exe): New variable.
10953 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
10954 Use ${bootstrap_exe}.
10955
729eadda
EZ
109562009-08-22 Eli Zaretskii <eliz@gnu.org>
10957
10958 * coding.h (encode_coding_string): Don't encode unibyte strings.
10959 (Bug#4047)
10960
eb4c6ace
MA
109612009-08-22 Michael Albinus <michael.albinus@gmx.de>
10962
10963 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
10964
10965 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
10966 intended as hotfix only.
10967 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
10968
36e34d1b
AR
109692009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
10970
10971 * nsterm.m (ns_get_color): Update documentation properly for last
bba3e508
SM
10972 change, and clean up loose ends in the code left by it.
10973 Fix longstanding bug with 16-bit hex parsing, and add support for
36e34d1b
AR
10974 yet another X11 format (rgb:r/g/b) for compatibility.
10975 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
10976 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
10977
f983eb8a
SM
109782009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
10979
10980 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
10981
3f56d3c6
MA
109822009-08-20 Michael Albinus <michael.albinus@gmx.de>
10983
10984 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
10985 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
10986 (xd_initialize, xd_pending_messages): Check, whether
10987 $DBUS_SESSION_BUS_ADDRESS is set.
10988
fb641d68
YM
109892009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10990
10991 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
10992
10993 * nsterm.m (ns_get_color): Remove incompatible color formats again.
10994
cf59a374
GM
109952009-08-20 Glenn Morris <rgm@gnu.org>
10996
10997 * emacs.c (system-type): Doc fix.
10998
1373f3be
SM
109992009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
11000
11001 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
11002 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
11003
058ed861
MA
110042009-08-18 Michael Albinus <michael.albinus@gmx.de>
11005
1373f3be
SM
11006 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
11007 New functions.
058ed861
MA
11008 (xd_initialize): Revert change from 2009-08-16.
11009
563a866e 110102009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
11011
11012 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 11013 font-group vector, return nil.
5fc05db0 11014
e42bdf01
CY
110152009-08-17 Chong Yidong <cyd@stupidchicken.com>
11016
11017 * process.c (status_notify): Don't perform redisplay.
11018 (Fdelete_process, list_processes_1, process_send_signal):
11019 Expliticly perform redisplay.
11020 (wait_reading_process_output): Always check process status, but
11021 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
11022
4230ab74
KR
110232009-08-17 Ken Raeburn <raeburn@raeburn.org>
11024
1373f3be 11025 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
11026 (XFLOAT_INIT): New macro for storing a float value.
11027 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
11028 * fns.c (sxhash): Copy out the value of a float in order to
11029 examine its bytes.
11030 * dbusbind.c (xd_append_arg): Likewise.
11031
4230ab74
KR
11032 * emacs.c (main): Don't call syms_of_data twice.
11033
a0645cdd
MA
110342009-08-16 Michael Albinus <michael.albinus@gmx.de>
11035
11036 * dbusbind.c (xd_initialize): Add connection file descriptor to
11037 input_wait_mask, in order to let select() detect, whether a new
11038 message has been arrived.
ca4f31ea 11039 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 11040
485db0ba
MA
110412009-08-15 Michael Albinus <michael.albinus@gmx.de>
11042
1373f3be
SM
11043 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
11044 New functions.
485db0ba
MA
11045
11046 * lisp.h (xd_pending_messages): Declare.
11047
11048 * keyboard.c (readable_events): Call xd_pending_messages.
11049
b5b98ff4
CY
110502009-08-15 Chong Yidong <cyd@stupidchicken.com>
11051
1373f3be 11052 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 11053
f8354c6e
CY
11054 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
11055
b5b98ff4
CY
11056 * buffer.c (set_buffer_internal_1)
11057 (swap_out_buffer_local_variables): Check for unbound local
11058 variables (Bug#4138).
11059
8b9fc636
EZ
110602009-08-14 Eli Zaretskii <eliz@gnu.org>
11061
11062 * process.c (create_pty): Fix last change.
11063
ce959360
CY
110642009-08-13 Chong Yidong <cyd@stupidchicken.com>
11065
11066 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
11067 (xbm_load_image): Caller changed.
64b807c9 11068 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 11069
c7baf7e9
NR
110702009-08-13 Nick Roberts <nickrob@snap.net.nz>
11071
11072 * process.c (create_pty): New function.
11073 (Fstart_process): Use it to allow Emacs to just associate a pty
11074 with the buffer. See associated change in gdb-mi.el.
11075 (list_processes_1): Deal with no program name.
11076 (start_process_unwind): Use pid == -2 to mean no process.
11077
1ac9108a
SM
110782009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
11079
11080 * cmds.c (nonundocount): New global variable.
11081 (keys_of_cmds): Initialize it.
11082 (Fself_insert_command): Use it to combine upto 20 sequential chars
11083 into a single undo entry, just like the Qself_insert_command code in
11084 keyboard.c does.
11085 Call frame_make_pointer_invisible, also like the Qself_insert_command
11086 code in keyboard.c does.
11087 * keyboard.c (command_loop_1): Use the new global nonundocount rather
11088 than its own local replacement for it.
11089
e267324c
KR
110902009-08-10 Ken Raeburn <raeburn@raeburn.org>
11091
1ac9108a 11092 * fns.c (concat): Don't re-set string length to its current value.
77437343 11093
1ac9108a
SM
11094 * coding.h (decode_coding_string, encode_coding_string):
11095 Use SBYTES macro.
f0bed503 11096
1ac9108a 11097 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
11098 (doprnt): Merge with doprnt1, discarding lispstrings code.
11099 * lisp.h (doprnt_lisp): Don't declare.
11100
416e006d
JL
111012009-08-07 Juri Linkov <juri@jurta.org>
11102
11103 * puresize.h (BASE_PURESIZE): Increase to 1270000.
11104
6f7d5780
DN
111052009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
11106
11107 * print.c (syms_of_print): Undo previous change.
11108
f19a0f5b
TZ
111092009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
11110
11111 * lread.c (read1, syms_of_lread): Read hashtables back from the
11112 readable format.
11113
11114 * print.c (print_preprocess, print_object): Print hashtables fully
11115 and readably.
11116 (syms_of_print): Provide 'hashtable-print-readable.
11117
b9173dc2
AR
111182009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
11119
11120 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
11121 no family set.
11122 (nsfont_open): Handle case when entity has no family.
11123
1586503c
AR
111242009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
11125
11126 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
11127 element, not a list, for match case.
11128
087048cd
KH
111292009-07-28 Kenichi Handa <handa@m17n.org>
11130
11131 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
11132 rigidly.
11133
11134 * xfont.c (xfont_list_pattern): Don't ignore the return value of
11135 font_parse_xlfd. Check font properties more rigidly.
11136
780c2506
DN
111372009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
11138
31fd7c5c
JB
11139 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
11140 bsd-common.h.
780c2506 11141
a8c0cc18
KH
111422009-07-27 Kenichi Handa <handa@m17n.org>
11143
11144 * xfaces.c (face_with_height): Call font_clear_prop.
11145
4fbe2306
CY
111462009-07-26 Chong Yidong <cyd@stupidchicken.com>
11147
111d9af3
CY
11148 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
11149
11150 * xterm.c (x_term_init): Use Qx.
11151
4fbe2306
CY
11152 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
11153
1ac9108a 11154 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
11155 (ns_get_color): Revert 2009-07-16 change.
11156
beb0b7f9
EZ
111572009-07-25 Eli Zaretskii <eliz@gnu.org>
11158
11159 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 11160 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 11161
2baf5e76
KR
111622009-07-25 Ken Raeburn <raeburn@raeburn.org>
11163
1ac9108a
SM
11164 * coding.h (decode_coding_string, encode_coding_string):
11165 Use SCHARS macro.
8890e5f5 11166
2baf5e76 11167 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 11168 (load_depth): Delete.
2baf5e76
KR
11169 (Qload_in_progress): New variable.
11170 (load_unwind): Don't reference load_depth or load_in_progress.
11171 (Fload): Likewise; specbind Qload_in_progress instead.
11172 (init_lread): Don't initialize load_depth.
11173 (syms_of_lread): Initialize and protect Qload_in_progress.
11174
1395c6f5
AR
111752009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
11176
11177 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
11178
4e2f36cf
AR
111792009-07-23 Yavor Doganov <yavor@gnu.org>
11180
11181 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
11182
5dd9a6f7
AR
111832009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
11184
11185 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
11186 Bugs 3792, 3720, 2402.
11187 (ns_lookup_indexed_color): Check for bad index.
11188 (ns_index_color): Init unused slot to 0.
11189 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
11190 Bug 3714, possibly 3082.
5dd9a6f7 11191
c902b920
JR
111922009-07-22 Jason Rumney <jasonr@gnu.org>
11193
1ac9108a
SM
11194 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
11195 Position IME window at cursor (Bug#2570).
c902b920
JR
11196 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
11197 (globals_of_w32fns): Dynamically load functions required above.
11198
11199 * w32term.c (w32_draw_window_cursor): Send message to reposition
11200 any IME window.
11201
090101cf
CY
112022009-07-21 Chong Yidong <cyd@stupidchicken.com>
11203
11204 * fileio.c: Revert 2009-07-16 changes.
11205 (Vauto_save_include_big_deletions): New variable.
11206 (Fdo_auto_save): Disable auto-save only if
11207 auto-save-include-big-deletions is nil.
11208
e6583e3d
CY
112092009-07-21 Chong Yidong <cyd@stupidchicken.com>
11210
11211 * xdisp.c (move_it_to): For continued lines ending in a tab, take
11212 the overflowed pixels into account (Bug#3879).
11213
ece435a5
KR
112142009-07-21 Ken Raeburn <raeburn@raeburn.org>
11215
11216 * lread.c (load_depth): New variable.
11217 (Fload, load_unwind, init_lread): Set it to the load recursion
11218 depth; set load_in_progress as a simple boolean based on the
11219 current load_depth. (Bug#3892)
11220
40b2d973
AR
112212009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
11222
11223 * nsfont.m (ns_has_attribute): Remove.
11224 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
11225
10be7e0d
JL
112262009-07-18 Juri Linkov <juri@jurta.org>
11227
11228 * process.c (Fset_process_query_on_exit_flag): Mention killing
11229 a buffer in docstring.
11230
fa055055
KH
112312009-07-17 Kenichi Handa <handa@m17n.org>
11232
11233 * casetab.c (shuffle): Fix the logic of setting up the cycle.
11234
042f7b69
YM
112352009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11236
11237 * nsfns.m (Fns_set_alpha): Remove function.
11238 (syms_of_nsfns): Don't defsubr it.
11239
11240 * nsterm.m (ns_get_color): Remove incompatible color formats.
11241 (ns_color_to_lisp): Generate #rrggbb color format string.
11242
4be941e3
RS
112432009-07-16 Richard Stallman <rms@gnu.org>
11244
11245 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
11246 (Fset_buffer_auto_saved): Handle save_length = -2.
11247
4e6b227d
CY
112482009-07-16 Chong Yidong <cyd@stupidchicken.com>
11249
11250 * xterm.c (Qx_gtk_map_stock): New var.
11251
11252 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
11253 of calling intern each time.
11254
a1856973
YM
112552009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11256
11257 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
11258 does tiling.
11259
11260 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
11261
497e54d8
KH
112622009-07-14 Kenichi Handa <handa@m17n.org>
11263
72d36834
KH
11264 * font.c (font_vconcat_entity_vectors): New function.
11265 (struct font_sort_data): New member font_driver_preference.
11266 (font_compare): Check font_driver_preference.
11267 (font_sort_entities): The format of the first argument changed.
11268 (font_delete_unmatched): Likewise.
11269 (font_list_entities): The return type changed.
11270 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
11271 (font_find_for_lface): Adjuste for the above changes.
11272 Don't suppress the checking of C even if the repertory supports it.
11273 (Flist_fonts): Adjust for the above changes.
72d36834 11274
1ac9108a
SM
11275 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
11276 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
11277 Reject a font who has adstyle property that is different from a
11278 langname derived from registry property.
1ac9108a 11279 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 11280
b6046155
EZ
112812009-07-13 Eli Zaretskii <eliz@gnu.org>
11282
11283 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
11284 local copy of dirfilename.
11285
fb6b6049
KH
112862009-07-13 Kenichi Handa <handa@m17n.org>
11287
e2402a5e
KH
11288 * chartab.c (sub_char_table_ref_and_range): Fix the range check
11289 against max_char.
11290
fb6b6049
KH
11291 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
11292 calling XSYMBOL (sym).
11293
65156807
EZ
112942009-07-11 Eli Zaretskii <eliz@gnu.org>
11295
1ac9108a
SM
11296 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
11297 New function.
11298 (directory_files_internal) [WINDOWSNT]:
11299 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
11300 the filesystem of the directory is fast or slow.
11301
11302 * w32.c (logon_network_drive): Don't assume PATH is an absolute
11303 file name.
11304 (is_slow_fs): New function.
11305 (stat): Use it to determine whether to issue more system calls to
11306 get accurate file attributes, when w32-get-true-file-attributes is
11307 `local'.
11308
e0ab5fcf
JD
113092009-07-10 Jan Djärv <jan.h.d@swipnet.se>
11310
11311 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 11312 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
11313 parameter font-parameter as default to the font dialog.
11314
784ceded
KH
113152009-07-10 Kenichi Handa <handa@m17n.org>
11316
11317 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
11318
fb8edc0b
EZ
113192009-07-09 Eli Zaretskii <eliz@gnu.org>
11320
1ac9108a 11321 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 11322
fb8edc0b
EZ
11323 * w32.c (stat): Treat UNC file names as residing on remote
11324 drives. (Bug#3542)
11325
635c75b1
KH
113262009-07-09 Kenichi Handa <handa@m17n.org>
11327
11328 * fontset.c (fontset_find_font): Fix previous change.
11329
c1d5ce94
MA
113302009-07-08 Michael Albinus <michael.albinus@gmx.de>
11331
11332 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
11333 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
11334 error flag.
11335
edb61b39
KH
113362009-07-08 Kenichi Handa <handa@m17n.org>
11337
374bf7e4
KH
11338 * fontset.c (fontset_find_font): Fix the logic of handling
11339 charset_matched.
11340 (font_for_char): Delete unused var.
11341 (generate_ascii_font_name): Delete it.
11342
edb61b39
KH
11343 * coding.h (JIS_TO_SJIS2): Fix the code range check.
11344
11345 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
11346 (encode_coding_sjis): Fix the code range check.
11347
0f3f018c
CY
113482009-07-07 Chong Yidong <cyd@stupidchicken.com>
11349
11350 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
11351 (Fexpand_file_name): Copy string data properly (Bug#3772).
11352
fcaf6f3a
JD
113532009-07-07 Jan Djärv <jan.h.d@swipnet.se>
11354
11355 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
11356 first MapNotify.
11357
6809ca75
KH
113582009-07-07 Kenichi Handa <handa@m17n.org>
11359
11360 * character.h (unibyte_has_multibyte_table): Delete extern.
11361 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
11362
11363 * charset.c (Fset_charset_priority): Update charset_unibyte.
11364 (syms_of_charset): Initialize charset_unibyte.
11365
11366 * character.c (unibyte_has_multibyte_table): Delete it.
11367 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
11368 charset_unibyte.
11369 (multibyte_char_to_unibyte_safe): Likewise.
11370 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
11371
1ac9108a 11372 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
11373 (x_produce_glyphs): Likewise.
11374
11375 * .gdbinit (xcharset): Fix the treating $arg0.
11376
ad9e2d54
EZ
113772009-07-04 Eli Zaretskii <eliz@gnu.org>
11378
11379 Emulation of `getloadavg' on MS-Windows.
50426a04 11380 * w32.c: Include float.h.
ad9e2d54
EZ
11381 (g_b_init_get_native_system_info, g_b_init_get_system_times)
11382 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
11383 (get_native_system_info, get_system_times): New functions.
11384 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
11385 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
11386 (globals_of_w32): Initialize g_b_init_get_native_system_info,
11387 g_b_init_get_system_times, and num_of_processors.
11388
0a3472c7
JR
113892009-07-03 Jason Rumney <jasonr@gnu.org>
11390
11391 * w32term.c (w32_initialize): Use standard types.
11392
80904120
EZ
113932009-07-03 Eli Zaretskii <eliz@gnu.org>
11394
11395 * dired.c (Ffile_attributes): Decode user and group names by the
11396 locale's encoding. (Bug#3443)
11397
6978862d
DN
113982009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
11399
f8d23104
DN
11400 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
11401 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
11402
11403 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
11404
11405 * term.c (init_tty): Remove spurious #ifdef.
11406
6978862d
DN
11407 * m/mips.h: Mention this file is also used for netbsd.
11408 * m/pmax.h: Remove file.
11409
e044e4fc
JD
114102009-07-03 Jan Djärv <jan.h.d@swipnet.se>
11411
11412 * xterm.h (struct x_display_info): Add invisible_cursor.
11413 (struct x_output): Add current_cursor.
11414
11415 * xterm.c (XTtoggle_invisible_pointer): New function.
11416 (x_define_frame_cursor): Don't define cursor if invisible or the
11417 same as before. Set current_cursor.
11418 (x_create_terminal): Set toggle_invisible_pointer_hook.
11419
11420 * xfns.c (make_invisible_cursor): New function.
11421 (x_set_mouse_color): Call make_invisible_cursor.
11422 Set current_cursor.
11423 (x_window): Set current_cursor.
11424
11425 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
11426
11427 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
11428 inserting a character.
11429 (read_avail_input): Call frame_make_pointer_visible.
11430
11431 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
11432 (frame_make_pointer_invisible, frame_make_pointer_visible):
11433 New functions.
e044e4fc
JD
11434 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
11435
11436 * frame.h: Declare frame_make_pointer_invisible and
11437 frame_make_pointer_visible.
11438 (struct frame): Add pointer_invisible.
11439
574c8efa
JD
114402009-07-02 Jan Djärv <jan.h.d@swipnet.se>
11441
7b507248
JD
11442 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
11443 frame isn't visible.
11444 (xg_frame_resized): If width/height is -1, get size of window
11445 from X server.
11446
11447 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
11448 for MapNotify.
11449
835bdaa7 11450 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 11451 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 11452 (flush_and_sync): Reintroduce.
574c8efa 11453
3f1c6666 114542009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 11455
31fd7c5c 11456 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
11457
11458 * xterm.c (x_handle_net_wm_state): Also look for sticky.
11459 (x_term_init): Initialize Xatom_net_wm_state_sticky.
11460
11461 * frame.h: Declare Qsticky.
11462
cad9ef74
JD
11463 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
11464
11465 * nsfns.m (ns_frame_parm_handlers): Ditto.
11466
11467 * frame.c: Declare Qsticky.
11468 (frame_parms): Add sticky.
11469
11470 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
11471
11472 * xterm.h: Declare x_set_sticky.
11473
11474 * xterm.c (x_set_sticky): New function.
11475
69b16610
JD
11476 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
11477 (xg_tool_bar_menu_proxy): Attach enter/leave events to
11478 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
11479
11480 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
11481
11482 * frame.c: Qmaximized is new.
11483 (x_set_frame_parameters): Do not handle fullscreen specially.
11484 Only set width and height if explicitly set.
11485 (x_set_fullscreen): Handle Qmaximized.
11486 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
11487 (syms_of_frame): Initialize Qmaximized.
11488
1ac9108a
SM
11489 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
11490 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
11491
11492 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
11493 for Expose event. Add call to x_check_fullscreen for MapNotify event.
11494 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
11495 set gravity to NorthWestGravity when USE_GTK.
11496 (set_wm_state): New function.
31fd7c5c 11497 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
11498 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
11499 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 11500 or the case when no window manager is running. That means remove calls
3f1c6666
JD
11501 to x_real_positions and x_fullscreen_adjust.
11502
11503 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
11504 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
11505 flush_and_sync.
11506 (xg_height_changed): New function.
11507 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
11508 and gtk_window_set_policy. Set frame gravity after parsing the
11509 geometry string.
3f1c6666
JD
11510 (xg_update_frame_menubar, free_frame_menubar)
11511 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
11512 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
11513 Remove calls to xg_frame_set_char_size.
11514
fd503d99
KH
115152009-07-01 Kenichi Handa <handa@m17n.org>
11516
11517 * keyboard.c (decode_keyboard_code): New function.
11518 (tty_read_avail_input): Decode the input bytes if necessary.
11519
1ac9108a
SM
11520 * coding.c (setup_coding_system):
11521 Initialize coding->carryover_bytes to 0.
fd503d99
KH
11522 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
11523 use Qno_conversion.
11524
24ed93fb
YM
115252009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11526
11527 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
11528
99061dfc
CY
115292009-06-30 Chong Yidong <cyd@stupidchicken.com>
11530
1ac9108a 11531 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 11532
ff90fbde
JR
115332009-06-30 Jason Rumney <jasonr@gnu.org>
11534
11535 * w32term.c (w32_initialize): Use GetModuleHandle for library that
11536 is already loaded.
11537 Set user model ID if supported (bug#1849).
11538
5f445726
JM
115392009-06-29 Jim Meyering <meyering@redhat.com>
11540
11541 Remove useless if-before-xfree test.
11542 * nsfont.m (nsfont_close): Remove useless test.
11543 * term.c (delete_tty): Likewise.
11544 * w32.c (system_process_attributes): Likewise.
11545 * w32font.c (w32font_close): Likewise.
11546 * xfaces.c (x_free_gc): Likewise.
11547 * xselect.c (buffer): Likewise.
11548
b9607587
AS
115492009-06-28 Andreas Schwab <schwab@linux-m68k.org>
11550
11551 * process.c (send_process): Keep decoded string in a local
11552 variable and protect it from GC. (Bug#3521)
11553
89ba96f4
EZ
115542009-06-28 Eli Zaretskii <eliz@gnu.org>
11555
11556 * term.c (create_tty_output) [MSDOS]: #ifdef away.
11557 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
11558
098a1589
CY
115592009-06-28 Chong Yidong <cyd@stupidchicken.com>
11560
485422be
CY
11561 * xdisp.c (start_display, handle_face_prop)
11562 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
11563 (redisplay_window, try_window_id, produce_image_glyph):
11564 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 11565
098a1589
CY
11566 * xterm.c (x_update_window_begin, x_new_focus_frame)
11567 (x_scroll_bar_handle_click, handle_one_xevent)
11568 (handle_one_xevent, XTread_socket, x_focus_on_frame)
11569 (x_make_frame_visible, x_make_frame_invisible)
11570 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
11571 code chunks that are now obsolete.
11572
78c38319
MA
115732009-06-28 Michael Albinus <michael.albinus@gmx.de>
11574
11575 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
11576 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
11577 for hours, when optimzation is enabled.
11578 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
11579 (xd_read_message): Make them static.
11580
4189ed40
CY
115812009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
11582
11583 * term.c (turn_on_face): Allow simultaneously bold and dim
11584 terminal faces (Bug#3530).
11585
cd9b5e16
CY
115862009-06-27 Chong Yidong <cyd@stupidchicken.com>
11587
4e23bedb
CY
11588 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
11589
cd9b5e16
CY
11590 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
11591 truncation glyphs (Bug#3686).
11592
07cc3c35
GM
115932009-06-27 Glenn Morris <rgm@gnu.org>
11594
11595 * m/pmax.h: Restore file, with only netbsd portions.
11596
31fd7c5c 115972009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 11598
cd9b5e16 11599 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 11600
42d4a64f
KH
116012009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
11602
11603 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
11604 the arg FORCE_SYMBOL.
11605
930fe55b 116062009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
11607
11608 * fontset.c (fontset_find_font): When a usable rfont_def is found
11609 in a fallback font-group, make it the first element of the group.
11610
57ebc3fd
CY
116112009-06-24 Chong Yidong <cyd@stupidchicken.com>
11612
11613 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
11614
f084f942
KH
116152009-06-24 Kenichi Handa <handa@m17n.org>
11616
11617 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
11618 set for C.
11619 (fontset_font): Record the availability of a font for C both in
11620 the realized fontsets of the current one and the default one.
11621
2f686c87
DN
116222009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
11623
11624 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
11625 conditional, it is always defined on AIX.
11626
666e158e
MB
116272009-06-23 Miles Bader <miles@gnu.org>
11628
11629 * window.c (Vrecenter_redisplay): New variable.
11630 (syms_of_window): Initialize it.
11631 (Qtty): New extern declaration.
11632 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
11633
c6da7cd2
JM
116342009-06-23 Jim Meyering <meyering@redhat.com>
11635
1ac9108a
SM
11636 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
11637 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 11638 pointer dereferences are guaranteed to be valid.
c6da7cd2 11639
678dca3d
KH
116402009-06-23 Kenichi Handa <handa@m17n.org>
11641
74d75424
KH
11642 * emacs.c (main): Call init_font ().
11643
11644 * font.h (Vfont_log): Extern it.
11645 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
11646
11647 * font.c (font_sort_entities, font_list_entities)
11648 (font_matching_entity, font_open_entity)
11649 (font_close_object): Change font_add_log to FONT_ADD_LOG.
11650 (Vfont_log): Delete static.
11651 (font_log_env_checked): Delete this variable.
11652 (font_add_log): Don't check font_log_env_checked.
11653 (font_deferred_log): Check Vfont_log.
11654 (init_font): New function.
11655
678dca3d
KH
11656 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
11657
11658 * w32font.c: Change font_add_log to FONT_ADD_LOG.
11659
11660 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
11661
11662 * xfont.c: Change font_add_log to FONT_ADD_LOG.
11663
11664 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
11665 (face_for_char): Don't call font_deferred_log here.
11666 (font_for_char): Likewise.
11667
8a668709
CY
116682009-06-22 Chong Yidong <cyd@stupidchicken.com>
11669
9a01ee33
CY
11670 * w32term.c (x_draw_glyph_string): Use the glyph string's width
11671 rather than its background_width for drawing the overline and
11672 underline (Bug#489).
11673
11674 * xterm.c (x_draw_glyph_string): Use the glyph string's width
11675 rather than its background_width for drawing the overline and
11676 underline (Bug#489).
ec7c9926
CY
11677 (xg_default_icon_file): New variable.
11678 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
11679 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 11680
8a668709
CY
11681 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
11682 (load_overlay_strings): Remove externs.
11683 (fast_find_position): Function deleted.
11684 (mouse_face_from_buffer_pos): New function, based on
11685 fast_find_position. Correctly handle before-strings,
11686 display-strings, and after-strings (Bug#1220).
11687 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
11688
4d4c02d8
CY
116892009-06-21 Chong Yidong <cyd@stupidchicken.com>
11690
1ac9108a 11691 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
11692 (move_it_in_display_line_to, move_it_in_display_line_to)
11693 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
11694
70243478
CY
116952009-06-21 Chong Yidong <cyd@stupidchicken.com>
11696
11697 * Branch for 23.1.
11698
13087e59
JR
116992009-06-21 Jason Rumney <jasonr@gnu.org>
11700
11701 * w32term.c (keyboard_codepage): New static variable.
11702 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
11703 (w32_read_socket) [WM_CHAR]: Use it to decode character
11704 input (bug#3237).
11705 (w32_initialize): Initialize it.
11706 (codepage_for_locale): New function.
11707
4735b74e
KR
117082009-06-20 Ken Raeburn <raeburn@raeburn.org>
11709
11710 * process.c (status_message): Pass Faset index argument as a lisp
11711 object, so as to work with USE_LISP_UNION_TYPE.
11712
0e727afa
YM
117132009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11714
11715 * coding.c (Ffind_coding_systems_region_internal):
11716 Cache checked characters.
11717
cf299835
KH
117182009-06-18 Kenichi Handa <handa@m17n.org>
11719
1ac9108a 11720 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 11721
90f20d94
AS
117222009-06-18 Andreas Schwab <aschwab@redhat.com>
11723
11724 * xdisp.c (redisplay_internal): Check that the frame is still
11725 live after redisplay of its windows.
11726 (redisplay_windows): Check that the window is still live.
11727
7f1faf1c
KH
117282009-06-17 Andreas Schwab <schwab@linux-m68k.org>
11729
11730 * coding.c (detect_coding_utf_16): Fix previous change.
11731
cc13543e
KH
117322009-06-16 Kenichi Handa <handa@m17n.org>
11733
11734 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
11735 UTF-16 by checking the dispersion of Eth and Oth bytes.
11736
977b85f4
AS
117372009-06-15 Andreas Schwab <schwab@linux-m68k.org>
11738
11739 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
11740
66bd43d1
KH
117412009-06-15 Kenichi Handa <handa@m17n.org>
11742
11743 * process.c (status_message): Fix previous change. Be sure to
11744 decode a localized string.
11745
cb5ca9c5
YM
117462009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11747
11748 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
11749 add comment explaining why.
11750
ec7709ba 117512009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 11752
ec7709ba 11753 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 11754
4b7f335c
AR
117552009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
11756
11757 * nsfont.m (ns_attribute_value): Remove.
11758 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
11759 (ns_has_attribute): Shrink the normal range.
11760 (ns_findfonts): Don't worry about requested spec in determining
11761 need for synthItal.
e41820ee 11762 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 11763
73b26103
SZ
117642009-06-14 Seiji Zenitani <zenitani@mac.com>
11765
11766 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
11767
5753e4da
KH
117682009-06-11 Kenichi Handa <handa@m17n.org>
11769
11770 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
11771 overhang for the static composition case.
11772
3561b671
KH
117732009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11774
5753e4da
KH
11775 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
11776 overhang for the automatic composition case.
11777
3561b671
KH
11778 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
11779 composition case.
11780
852bbd41
CY
117812009-06-10 Chong Yidong <cyd@stupidchicken.com>
11782
11783 * xdisp.c (get_next_display_element): When handling wrap-prefix
11784 and line-prefix, treat \n as a control character (bug#3502).
11785
9903d1e6
KH
117862009-06-10 Kenichi Handa <handa@m17n.org>
11787
11788 * font.c (font_parse_family_registry): Fix for one-char foundry.
11789 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
11790
0bcbaaaa
CY
117912009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
11792
11793 * process.c (status_message): Fix handling of multibyte signal
11794 string (Bug#3499).
11795
40aa3f13
JM
117962009-06-09 Jim Meyering <meyering@redhat.com>
11797
1f80c7e2
CY
11798 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
11799 color name is missing.
40aa3f13 11800
72d51285
KH
118012009-06-09 Kenichi Handa <handa@m17n.org>
11802
11803 * charset.c (Fmap_charset_chars): In docstring, state clearly that
11804 FROM-CODE and TO-CODE are codepoints of CHARSET.
11805
c1d04d84
AR
118062009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
11807
11808 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
11809
118102009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
11811
11812 Changes to support :script/:lang/:otf in NS font driver.
11813 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
11814 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
11815 indicate not part of font driver interface, and change callers.
11816 (ns_get_family): Remove pointless null check.
11817 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
11818 ns_spec_to_descriptor, ns_descriptor_to_entity.
11819 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
11820 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
11821 (ns_spec_to_descriptor, ns_descriptor_to_entity)
11822 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
11823 (ns_get_req_script, ns_accumulate_script_ranges)
11824 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
11825 New functions.
11826 (nsfont_list, nsfont_match): Use ns_findfonts.
11827 (nsfont_open): Use font descriptor instead of traits.
11828 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
11829 (dump_glyphstring): Rename to ns_dump_glyphstring.
11830
c7eb9816
AR
11831 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
11832
c1d04d84
AR
11833 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
11834
11835 * fontset.c (fontset_from_font): Remove NS-specific code.
11836
ec7709ba 118372009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
11838
11839 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
11840 nonactive windows.
11841
31fd7c5c 118422009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 11843
1ac9108a 11844 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 11845
68852c13 118462009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
11847
11848 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
11849
6756cd1d
CY
118502009-06-07 Chong Yidong <cyd@stupidchicken.com>
11851
11852 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
11853 account for the overflowing of newlines into the last glyph on the
11854 display line (Bug#3482).
11855
28bf482a
DR
118562009-06-05 David Reitter <david.reitter@gmail.com>
11857
ec7709ba
JB
11858 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
11859 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
11860 Fns_selection_exists_p, Fns_selection_owner_p.
11861
fdb55376
JR
118622009-06-03 Jason Rumney <jasonr@gnu.org>
11863
11864 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
11865 available. (Bug#3379)
11866
05129fbe
KH
118672009-05-29 Kenichi Handa <handa@m17n.org>
11868
1ac9108a
SM
11869 * coding.c (get_translation_table):
11870 Check Venable_character_translation.
05129fbe 11871
ec7709ba 118722009-05-26 David Reitter <david.reitter@gmail.com>
15891144 11873
ec7709ba
JB
11874 * nsterm.m (ns_raise_frame): Only raise frame if visible.
11875 (x_make_frame_visible): Move frame to front rather than calling
15891144 11876 ns_raise_frame().
ec7709ba 11877 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 11878 isn't key window.
ec7709ba 11879 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
11880 drawRect may be called by NSView even if the frame is hidden.
11881
ec7709ba
JB
11882 * nsfns.m (Fx_create_frame): Follow other ports in
11883 determining visibility; default to t. Ensure async_visible is set.
15891144 11884
21f73755
EZ
118852009-05-23 Eli Zaretskii <eliz@gnu.org>
11886
11887 * dired.c (Ffile_attributes): Doc fix.
11888
34001e41
CY
118892009-05-22 Chong Yidong <cyd@stupidchicken.com>
11890
11891 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
11892
46306a17
SM
118932009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
11894
11895 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
11896 and xfont_scratch_props.
11897 (syms_of_xfont): Do it here instead.
11898 (xfont_find_ccl_program): Delete, unused.
11899 (xfont_open): Delete unused var `i'.
11900
ef6e0694
KH
119012009-05-21 Kenichi Handa <handa@m17n.org>
11902
11903 * fontset.c (Qlatin): Don't make it static.
11904
46306a17
SM
11905 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
11906 New functions.
ef6e0694
KH
11907 (xfont_scripts_cache, xfont_scratch_props): New variables.
11908 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
11909 (xfont_list_pattern): Argument changed. Callers changed.
11910 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
11911 (xfont_list): Don't reject a font spec with :script property.
11912 (xfont_has_char): Fix setting of encoding.
11913 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
11914 xfont_scratch_props.
11915
119162009-05-19 Kenichi Handa <handa@m17n.org>
11917
46306a17 11918 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
11919 Callers changed.
11920
119212009-05-18 Kenichi Handa <handa@m17n.org>
11922
11923 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
11924
ac71ced7
SM
119252009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
11926
11927 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
11928 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
11929
1c6d1051
YM
119302009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11931
11932 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
11933 (x_delete_terminal): Dissociate resource database from display and
11934 then call XrmDestroyDatabase before closing display.
11935
9b9b779c
AR
119362009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
11937
11938 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
11939 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
11940 whether selected frame is viable before raising it (based on patch
11941 by David Reitter), and improve commentary.
11942 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 11943
cccd42d5
KH
119442009-05-15 Kenichi Handa <handa@m17n.org>
11945
11946 * font.c (Ffont_spec): Check arguments.
11947
337fbd17
CY
119482009-05-14 Chong Yidong <cyd@stupidchicken.com>
11949
11950 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
11951 weight when testing attributes (Bug#3282).
11952
47a6002f
JD
119532009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11954
11955 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
11956 what we expect to get in the next ConfigureNotify event.
11957
9cb363db
YM
11958 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
11959 before Xft one (Bug#1696).
11960
b9126609
CY
119612009-05-07 David Reitter <david.reitter@gmail.com>
11962
11963 * nsfns.m (Fx_display_planes): Compute bitplanes using
11964 NSBitsPerPixelFromDepth (Bug#3207).
11965
27a69fd9
CY
119662009-05-10 Chong Yidong <cyd@stupidchicken.com>
11967
11968 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
11969
00f37552
TTN
119702009-05-10 Ulrich Mueller <ulm@gentoo.org>
11971
11972 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
11973
2d82a920
DR
119742009-05-07 David Reitter <david.reitter@gmail.com>
11975
ec7709ba
JB
11976 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
11977 Respect mouse face background.
2d82a920 11978
46b0d52d
DR
119792009-05-07 David Reitter <david.reitter@gmail.com>
11980
ec7709ba
JB
11981 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
11982 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
11983 in ns_update_begin and ns_update_end.
11984
ce1b23bb
SM
119852009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
11986
5996e1b7
SM
11987 * nsfns.m (ns_get_screen): Rewrite.
11988 Don't presume selected-frame is of type `ns'.
11989
ba98e3a0
SM
11990 * font.c (font_update_drivers): Sanity fallback to avoid disabling
11991 all drivers.
11992
ce1b23bb
SM
11993 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
11994
bcda200f
YM
119952009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11996
11997 * keyboard.h (add_user_signal): Fix typo in extern.
11998
11999 * lisp.h (add_user_signal): Remove extern.
12000
12001 * unexelf.c (unexec): Consider a section to precede the .bss section
12002 if its addresses overlap that of .bss.
12003 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
12004 instead of dumping process.
12005
864660a2
SM
120062009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
12007
12008 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
12009
50da4e56
SM
120102009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
12011
12012 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
12013
51520a1a
DN
120142009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
12015
12016 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
12017 any statements.
12018
409ea3a1
AS
120192009-05-02 Andreas Schwab <schwab@linux-m68k.org>
12020
59c4c60f
AS
12021 * process.c (read_process_output): Make sure the current buffer is
12022 always restored.
12023
409ea3a1
AS
12024 * coding.c (record_conversion_result): Don't modify
12025 Vlast_code_conversion_error for successful result.
12026 (alloc_destination): Don't clobber conversion result. (Bug#1650)
12027
56f00ed2
KH
120282009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
12029
12030 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 12031 (load_charset_map): Remove unnecessary code.
56f00ed2 12032
4491c9d2
DR
120332009-04-30 David Reitter <david.reitter@gmail.com>
12034
35f5b128 12035 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
12036 through f24.
12037
6970f632
CY
120382009-04-30 Chong Yidong <cyd@stupidchicken.com>
12039
12040 * xfaces.c (face_at_buffer_position): New arg base_face_id.
12041
12042 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
12043 face_at_buffer_position.
12044 (face_before_or_after_it_pos, get_next_display_element)
12045 (note_mouse_highlight): Update face_at_buffer_position call.
12046
12047 * term.c (term_mouse_highlight):
12048 * msdos.c (IT_note_mouse_highlight):
12049 * fontset.c (Finternal_char_font):
35f5b128 12050 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
12051
12052 * dispextern.h (face_at_buffer_position): Update prototype.
12053
0c616f63
KH
120542009-04-30 Kenichi Handa <handa@m17n.org>
12055
35f5b128 12056 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 12057
ad3aaf33
AS
120582009-04-29 Andreas Schwab <schwab@linux-m68k.org>
12059
12060 * callproc.c (Fcall_process): Fix GC protection. Make sure
12061 current buffer is always restored.
12062
c3c963a0
YM
120632009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12064
12065 * atimer.c (init_atimer): Also clear stopped_atimers.
12066
12067 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
12068
7e3386cb
YM
12069 * process.c (create_process): Clean up merger residues of
12070 2008-07-17 change.
12071
91f68422
CY
120722009-04-29 Ulrich Mueller <ulm@gentoo.org>
12073
12074 * lread.c (Vread_circle): New variable.
12075 (read1): Disable recursive read if Vread_circle is nil.
12076
24b34550
KH
120772009-04-29 Kenichi Handa <handa@m17n.org>
12078
12079 * fontset.h (set_default_ascii_font): Delete extern.
12080
12081 * fontset.c (set_default_ascii_font): Delete this unused function.
12082
12083 * frame.c (x_set_font): When ARG is a font-object, check if the
12084 font-object matches with the ASCII font-spec of the frame's
9c358bda 12085 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 12086
77bf07e1
AS
120872009-04-28 Andreas Schwab <schwab@linux-m68k.org>
12088
12089 * fns.c (Flocale_info): Protect vector from GC during decoding.
12090
12091 * process.c (Fstart_process): Protect argv strings from GC during
12092 encoding.
12093
2c55aacf
AS
120942009-04-27 Andreas Schwab <schwab@linux-m68k.org>
12095
12096 * sysdep.c: Include <ctype.h>.
12097
b892d3c9
DR
120982009-04-27 David Reitter <david.reitter@gmail.com>
12099
35f5b128 12100 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
12101 Remove commented-out code.
12102
9d0644c4
JB
121032009-04-26 Johan Bockgård <bojohan@gnu.org>
12104
12105 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
12106
b7053016
JR
121072009-04-25 Jason Rumney <jasonr@gnu.org>
12108
12109 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
12110
4e8231f3
YM
121112009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12112
12113 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
12114 Swap bytes in short integer if fringe bitmap width > 8.
12115
493dcf2c
KH
121162009-04-23 Kenichi Handa <handa@m17n.org>
12117
12118 * xfaces.c (Fx_list_fonts): If a font size is specified in
12119 PATTERN, set it in returned scalable fonts.
12120
401e9e57
CY
121212009-04-22 Chong Yidong <cyd@stupidchicken.com>
12122
708e05dc
CY
12123 * keyboard.c (Fset_input_meta_mode): Doc fix.
12124
12125 * dispnew.c (Fsend_string_to_terminal): Doc fix.
12126
1ac9108a 12127 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
12128
12129 * coding.c (Fterminal_coding_system): Doc fix.
12130
12131 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
12132 (Fx_display_pixel_height, Fx_display_planes)
12133 (Fx_display_color_cells, Fx_server_max_request_size)
12134 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
12135 (Fx_display_mm_height, Fx_display_mm_width)
12136 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
12137 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
12138 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
12139 (check_x_display_info): Handle terminal objects instead of
12140 terminal ids.
12141
401e9e57
CY
12142 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
12143 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
12144 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
12145 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 12146
df80c7f0
KH
121472009-04-21 Kenichi Handa <handa@m17n.org>
12148
5a8f12af 12149 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 12150 (font_score): Check AVGWIDTH too.
908567ef 12151
df80c7f0
KH
12152 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
12153 worst case.
1ac9108a
SM
12154 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
12155 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 12156
705af33f
JR
121572009-04-19 Jason Rumney <jasonr@gnu.org>
12158
12159 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 12160 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
12161
12162 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
12163 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
12164 get_phys_cursor_geometry.
12165
b71ac3dd 12166 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
12167 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
12168 using get_phys_cursor_geometry.
12169
12170 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
12171 correctly calculated.
12172
dc2933eb
JD
121732009-04-19 Jan Djärv <jan.h.d@swipnet.se>
12174
1ac9108a
SM
12175 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
12176 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
12177 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
12178 is deprecated.
12179
973e7849
AS
121802009-04-18 Andreas Schwab <schwab@linux-m68k.org>
12181
12182 * font.c (font_put_frame_data): Use xfree instead of free.
12183
314d66f4
JB
121842009-04-17 Juanma Barranquero <lekktu@gmail.com>
12185
12186 * w32font.c (Qja, Qko): Remove declarations.
12187 (syms_of_w32font): Don't DEFSYM them.
12188
cf702558
CY
121892009-04-17 Chong Yidong <cyd@stupidchicken.com>
12190
12191 * font.c (Qja, Qko): Move definitions here from ftfont.c.
12192
12193 * font.h (Qja, Qko): Extern them.
12194
12195 * ftfont.c (Qja, Qko): Remove declarations.
12196
12197 * xfont.c (Qja, Qko): Remove declarations.
12198
b50504f5
KH
121992009-04-17 Kenichi Handa <handa@m17n.org>
12200
bde25748
KH
12201 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
12202 string from a vector to handle Latin-1 characters correctly.
12203
b50504f5
KH
12204 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
12205 entity even if the cache hits.
12206
f4646fff
AS
122072009-04-16 Andreas Schwab <schwab@linux-m68k.org>
12208
12209 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 12210 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 12211
e7deaab0
AS
12212 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
12213 * lisp.h: Adjust prototypes.
12214
0a0e7d49
CY
122152009-04-16 Chong Yidong <cyd@stupidchicken.com>
12216
12217 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
12218 change (Bug#3003).
12219
3c908a57
KH
122202009-04-16 Kenichi Handa <handa@m17n.org>
12221
1ac9108a 12222 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
12223
12224 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
12225 adstyle.
12226
12227 * ftfont.c (Qja, Qko): Don't make them static.
12228 (enum ftfont_cache_for): New enum.
12229 (fc_charset_table): Undo the previous change.
12230 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
12231 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
12232 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
12233 non-scarable font, try to get AVERAGE_WIDTH.
12234 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
12235 Change ft_face_cache from a list of a hash-table. Don't check
12236 `ja' and `ko' adstyle here.
12237 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
12238 FTFONT_CACHE_FOR_CHARET.
12239 (ftfont_get_charset): Undo the previous change.
1ac9108a 12240 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
12241 (ftfont_close): Likewise.
12242 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
12243
12244 * font.c (font_sort_entites): Change the meaning of the arg
12245 BEST-ONLY. Don't optimize for VEC of lenght 1.
12246 (font_select_entity): Just return the value of font_sort_entites.
12247
12248 * xfaces.c (merge_face_vectors): Reflect font properties in
12249 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
12250 font_clear_prop if a face attribute doesn't change.
12251
3c908a57
KH
12252 * charset.h (charset_ksc5601): Extern it.
12253
12254 * charset.c (charset_ksc5601): New variable.
12255 (Fdefine_charset_internal): Set charset_ksc5601.
12256 (init_charset_once): Initialize charset_ksc5601 to -1.
12257
d65859c3
DN
122582009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
12259
12260 * fileio.c (history_delete_duplicates): Remove unused declaration.
12261
12262 * callint.c (history_delete_duplicates): New declaration.
12263 (Fcall_interactively): Remove command history duplicates when
12264 history_delete_duplicates is true.
12265
3ba010e5
EZ
122662009-04-14 Eli Zaretskii <eliz@gnu.org>
12267
12268 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
12269
06f19b91
KH
122702009-04-14 Kenichi Handa <handa@m17n.org>
12271
12272 * font.c (Ffont_info): Fix docstring. Fix the second element of
12273 the returned value (bug#2949).
12274
2cce8bfc
CY
122752009-04-14 Chong Yidong <cyd@stupidchicken.com>
12276
12277 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
12278
d156542d
KH
122792009-04-14 Kenichi Handa <handa@m17n.org>
12280
12281 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
12282 encoding charset is ascii_compatible.
12283
12284 * charset.c (Fdefine_charset_internal): Make charset
12285 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
12286 code_offset is 0, and covers all ASCII characters.
12287
86fa089e
SM
122882009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
12289
12290 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
12291 (ns_string_to_pasteboard_internal):
12292 * nsmenu.m (process_dialog):
12293 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
12294 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
12295 * lisp.h (Fx_load_color_file): Declare.
12296
a8a3728b
KH
122972009-04-13 Kenichi Handa <handa@m17n.org>
12298
1ac9108a 12299 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
12300 (font_select_entity): Suppress the code to optimize for the same
12301 kind of fonts.
12302 (font_load_for_lface): Get a font that supports at least ASCII
12303 characters.
12304
12305 * ftfont.c (Qja, Qko): New variables.
12306 (fc_charset_table): Delete uniquifier data for iso8859-1.
12307 (ftfont_get_latin1_charset): New function.
12308 (get_adstyle_property): New function.
12309 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
12310 bitmap fonts.
12311 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
12312 Delete iso-8859-1 range from the charset of fonts whose adstyle is
12313 `ko' or `ja'.
12314 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 12315 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
12316 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
12317 property.
12318 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
12319 (syms_of_ftfont): DEFSYM Qja and Qko.
12320
483670b5
KH
123212009-04-09 Kenichi Handa <handa@m17n.org>
12322
12b55765
KH
12323 * charset.c (map_charset_chars): For a charset of `superset'
12324 method, fix calculation of code range.
12325
483670b5
KH
12326 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
12327 from the list of extra properties.
12328 (font_clear_prop): Be sure to delete `:name' font property.
12329
57d3b93b
KH
123302009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12331
b4b2c2ca
YM
12332 * dispnew.c (redraw_overlapping_rows): Fix detection of
12333 overlapping for topmost and bottommost rows.
12334
1ac9108a 12335 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 12336
472c3609
JR
123372009-04-06 Jason Rumney <jasonr@gnu.org>
12338
12339 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
12340
ab193662
KH
123412009-04-06 Kenichi Handa <handa@m17n.org>
12342
12343 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
12344
12345 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
12346
0c26f026
KH
123472009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12348
12349 * ftfont.c (ftfont_open): Fix checking of the return value of
12350 FT_Load_Char. Fix setting font->underline_thickness.
12351
e173bbce
CY
123522009-04-04 Chong Yidong <cyd@stupidchicken.com>
12353
12354 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
12355 (Fterminal_parameters, Fterminal_parameter)
12356 (Fset_terminal_parameter): In doc string, refer to terminal
12357 objects rather than terminal ids.
12358
693a2698
EZ
123592009-04-04 Eli Zaretskii <eliz@gnu.org>
12360
12361 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
12362 ret_lim_data. (Bug#2867)
12363
d5221487
CY
123642009-04-03 Chong Yidong <cyd@stupidchicken.com>
12365
12366 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
12367 so they don't get wider than the window, matching 2006-01-23
12368 change to the partner function in xdisp.c (Bug#2800).
12369
223509a3
KH
123702009-04-03 Kenichi Handa <handa@m17n.org>
12371
12372 * print.c (print_object): Make each lowest sub_char_table start a
12373 new line (Bug#2866).
12374
74fcd0b1
KH
123752009-04-02 Kenichi Handa <handa@m17n.org>
12376
12377 * fontset.c (fontset_font): Record no-font when a fontset
12378 explicitly tells not to try another font-specs.
12379
c542407d
SM
123802009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
12381
12382 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
12383
e3869731
KH
123842009-03-30 Kenichi Handa <handa@m17n.org>
12385
d8d2f142
KH
12386 * fontset.c (fontset_from_font): Specify only registry in a
12387 font-spec for all characters supported by that registry.
12388
e3869731
KH
12389 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
12390 even if HAVE_M17N_FLT is not defined.
12391
5da5f805
CY
123922009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
12393
12394 * ftfont.c: Conditionalize prototyping and use of
12395 ftfont_variation_glyphs.
12396
ab226c50
SM
123972009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
12398
9628fed7
SM
12399 * frame.c (delete_frame): Work around compiler bug.
12400
12401 * editfns.c (general_insert_function): Adjust to insdel.c changes.
12402 * insdel.c (prepare_to_modify_buffer, signal_before_change):
12403 Some more EMACS_INT.
12404 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
12405
12406 * xdisp.c (dump_glyph): Fix typo.
12407
ae19ba7c
SM
12408 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
12409 (adjust_markers_gap_motion, adjust_markers_for_delete)
12410 (adjust_markers_for_insert, adjust_point)
12411 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
12412 (make_gap, copy_text, count_size_as_multibyte, insert)
12413 (insert_and_inherit, insert_before_markers)
12414 (insert_before_markers_and_inherit, insert_1)
12415 (count_combining_before, count_combining_after, insert_1_both)
12416 (insert_from_string, insert_from_string_before_markers)
12417 (insert_from_string_1, insert_from_gap, insert_from_buffer)
12418 (insert_from_buffer_1, adjust_after_replace)
12419 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
12420 (replace_range_2, del_range, del_range_1, del_range_byte)
12421 (del_range_both, del_range_2, modify_region)
12422 (prepare_to_modify_buffer, signal_before_change)
12423 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
12424 for buffer positions and sizes.
12425 * lisp.h: Adjust prototypes accordingly.
12426
12427 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
12428 (non_regular_inserted, non_regular_nbytes, read_non_regular)
12429 (Finsert_file_contents): Use EMACS_INT for buffer positions.
12430
ab226c50
SM
12431 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
12432
46dfb8fb
JD
124332009-03-27 Jan Djärv <jan.h.d@swipnet.se>
12434
12435 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
12436 lines and columns so we keep the same pixel height and width.
12437
12438 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
12439 the property _NET_WM_STATE has changed.
46dfb8fb
JD
12440 (x_handle_net_wm_state): New function to update frame parameter
12441 fullscreen.
12442 (x_term_init): Initialize atoms for _NET_WM_STATE.
12443
12444 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
12445
d347e494
SM
124462009-03-27 Kevin Ryde <user42@zip.com.au>
12447
12448 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
12449 Gpm_GetEvent as an error that justifies closing the filedescriptor.
12450 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
12451 (Fgpm_mouse_stop): Pass that new parameter.
12452 * termhooks.h (close_gpm): Adjust prototype.
12453
84db11d6
SM
124542009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
12455
c95a5008
SM
12456 * lisp.h (Fx_focus_frame): Declare.
12457
84db11d6
SM
12458 * callint.c (Fcall_interactively): For '^' just delegate the work to
12459 handle-shift-selection.
12460 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
12461
0a1958d6
CY
124622009-03-24 Chong Yidong <cyd@stupidchicken.com>
12463
0bfdff23
CY
12464 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
12465
0a1958d6
CY
12466 * data.c (Qinteractive_form): New variable.
12467 (Finteractive_form): Use it.
12468
12469 * eval.c (Fcommandp): Use Qinteractive_form.
12470
58aec0d6
JR
124712009-03-24 Jason Rumney <jasonr@gnu.org>
12472
12473 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
12474 Calculate total size precisely. Decode environment variables
12475 before substituting. (Bug#38)
12476
553dd618
KH
124772009-03-24 Kenichi Handa <handa@m17n.org>
12478
12479 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 12480 encoding (Bug#2722).
553dd618 12481
c39ea606
JD
124822009-03-23 Jan Djärv <jan.h.d@swipnet.se>
12483
12484 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
12485 that gdpy is set.
12486
bc9b2b5e
AM
124872009-03-22 Alan Mackenzie <acm@muc.de>
12488
12489 * callint.c (Finteractive): Clarify the doc string - even
12490 promptless elements need \n separators.
12491
9f995a76
JR
124922009-03-22 Jason Rumney <jasonr@gnu.org>
12493
12494 * w32term.c (syms_of_w32term): Doc fix for
12495 x-use-underline-position-properties.
12496
22749e9a
EZ
124972009-03-21 Eli Zaretskii <eliz@gnu.org>
12498
12499 * w32.c (getpwuid): Change argument type to unsigned.
12500 (struct w32_id): Change type of `rid' member to unsigned.
12501 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
12502 argument ID to unsigned. All callers changed.
12503 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
12504
e00553bf
EZ
125052009-03-20 Eli Zaretskii <eliz@gnu.org>
12506
12507 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
12508 negative, produce a float value.
12509
12510 * dired.c (make_uid, make_gid): New functions.
12511 (Ffile_attributes): Use them to avoid negative UID and GID.
12512
f761d6b6
JB
125132009-03-20 Juanma Barranquero <lekktu@gmail.com>
12514
12515 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
12516 (syms_of_keyboard) <command-hook-internal, input-method-function>:
12517 Fix typos in docstrings.
12518
d507f8d7
KH
125192009-03-19 Kenichi Handa <handa@m17n.org>
12520
12521 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
12522 changed, use font_load_for_lface to get a new font object.
12523 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
12524
12525 * frame.c (x_set_font): Handle the case that ARG is a cons.
12526
c68845e0
GM
125272009-03-19 Glenn Morris <rgm@gnu.org>
12528
12529 * fileio.c (Fsubstitute_in_file_name): Doc fix.
12530
bfa49dd1
CY
125312009-03-19 Chong Yidong <cyd@stupidchicken.com>
12532
12533 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
12534
8458d4c1
KH
125352009-03-19 Kenichi Handa <handa@m17n.org>
12536
12537 * charset.c (load_charset_map_from_file): When a mapfile can't be
12538 loaded, signal an error.
12539
78e7d1fe
EZ
125402009-03-18 Eli Zaretskii <eliz@gnu.org>
12541
12542 * dired.c (Ffile_attributes): Make sure UID and GID are always
12543 positive, even if the value is too large for a positive EMACS_INT.
12544 Doc fix.
12545
12546 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
12547
5da9fdfa
YM
125482009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12549
12550 * xmenu.c (xdialog_show): Move Fredisplay call ...
12551 (Fx_popup_dialog): ... here.
12552
7519c40d
SM
125532009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
12554
12555 * dired.c (file_name_completion): Disable the first optimization just
12556 installed, since it is not implemented correctly.
12557
2cd298e2
SM
125582009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
12559
12560 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 12561 only if the entry can affect bestmatch.
2cd298e2
SM
12562 Stop the search early, as Ftry_completion already does.
12563
48d37adf
CY
125642009-03-17 Chong Yidong <cyd@stupidchicken.com>
12565
e10c9c93 12566 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 12567
9286b16a
CY
125682009-03-15 Chong Yidong <cyd@stupidchicken.com>
12569
12570 * keyboard.c (parse_menu_item): Don't display remappings as menu
12571 equivalent bindings (Bug#788).
12572
f7b146dc
JR
125732009-03-15 Jason Rumney <jasonr@gnu.org>
12574
12575 * w32term.h (WM_EMACS_PAINT): New message.
12576 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
12577 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
12578 before passing to lisp thread. (Bug#950)
12579
f761d6b6 125802009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 12581
d93f9575
CY
12582 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
12583 variable as it was never reset.
12584 (ns_term_init): Remove initialization of Lisp-settable defaults
12585 and ns_expand_space.
12586 (-setPanelFromDefaultValues): Remove ns_expand_space.
12587 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
12588 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
12589 i.e. no additional spacing, similar to Carbon port.
12590
d93f9575
CY
12591 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
12592 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 12593
305018ec
JD
125942009-03-14 Jan Djärv <jan.h.d@swipnet.se>
12595
12596 * sound.c (alsa_configure): Remove call to deprecated
12597 snd_pcm_sw_params_set_xfer_align.
12598
f761d6b6 125992009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
12600
12601 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
12602 after clicking in a detached tool bar.
12603 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
12604
46e722a9
SM
126052009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
12606
348db3dd
SM
12607 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
12608 int/Lisp_Object mixup).
46e722a9 12609
a3d16f39
KH
126102009-03-13 Kenichi Handa <handa@m17n.org>
12611
12612 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 12613 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
12614 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
12615 (set_fontset_font): Change ARG to a vector. Handle range_list in
12616 ARG correctly.
12617 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 12618 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
12619 the above change.
12620 (fontset_from_font): Fix previous change.
fe24f56a 12621 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
12622 entry. If FONTSET is the default fontset, don't set the extra
12623 slot of the returning char-table.
12624
b066e6b6
JB
126252009-03-12 Juanma Barranquero <lekktu@gmail.com>
12626
12627 * nsfns.m (Fx_close_connection): Doc fix.
12628 (Fns_do_applescript): Reflow docstring.
12629 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
12630 (Fx_display_pixel_width, Fx_display_pixel_height)
12631 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
12632 Fix typos in docstrings.
12633 (Fns_set_alpha): Fix typos in error messages.
12634
d472514e 126352009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 12636
d472514e 12637 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
12638 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
12639 were used for such events.
12640
d472514e
JB
12641 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
12642 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 12643
d472514e 12644 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
12645 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
12646
fb930676
KH
126472009-03-11 Kenichi Handa <handa@m17n.org>
12648
ff85581a
KH
12649 * font.h (font_open_by_spec): Extern it.
12650
c50b7e98
KH
12651 * font.c (font_open_by_spec): New function.
12652 (font_open_by_name): Use font_open_by_spec.
12653
fb930676
KH
12654 * frame.c (x_set_font): When ARG is a font-object, don't alter the
12655 fontset of the frame.
12656
12657 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
12658 modify the default font of frames that use this fontset.
12659 (num_auto_fontsets): New variable.
12660 (fontset_from_font): Use num_auto_fontsets to decide a fontset
12661 name. Be sure to set FONTSET_ASCII to the correct font name.
12662 (update_auto_fontset_alist): New function.
12663
df4e8455
JB
126642009-03-11 Juanma Barranquero <lekktu@gmail.com>
12665
12666 * makefile.w32-in: Update dependencies.
12667
0a375797
AR
126682009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
12669
12670 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
12671
61313fa3
SM
126722009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
12673
12674 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
12675
b55103fb
CY
126762009-03-10 Chong Yidong <cyd@stupidchicken.com>
12677
12678 * lread.c (Feval_buffer): Doc fix.
12679
dde2559c
KH
126802009-03-09 Kenichi Handa <handa@m17n.org>
12681
12682 * charset.c (Qfile_name_handler_alist): Extern it.
12683 (load_charset_map_from_file): Temporarily bind
12684 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
12685
df4e8455 126862009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 12687
47f588bb
GM
12688 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
12689 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 12690
4ddf94bd
AR
126912009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
12692
4c9bdfc2
AR
12693 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
12694 (x_set_window_size): Change back to calculated method of setting
12695 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
12696 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
12697 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
12698
fe41ae9e
AR
12699 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
12700
4c9bdfc2
AR
12701 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
12702 accelerator in parens under GNUstep.
12703
825d0875
KH
127042009-03-06 Kenichi Handa <handa@m17n.org>
12705
12706 These changes are to detect incorrect composition sequence without
f3b3be74 12707 looking ahead the source. (Bug#2370)
825d0875
KH
12708
12709 * coding.h: Include "composite.h".
12710 (enum compisition_state): New enum.
12711 (struct compisition_status): New struct.
12712 (struct iso_2022_spec): New member cmp_status.
12713 (struct emacs_mule_spec): New struct.
12714 (struct coding_system): New members ctext_extended_segment_len and
12715 embedded_utf_8. Change the union member
12716 spec.emacs_mule_full_support to spec.emacs_mule.
12717
12718 * coding.c (CODING_ISO_CMP_STATUS): New macro.
12719 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 12720 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
12721 (ADD_COMPOSITION_DATA): New arg nbytes.
12722 (emacs_mule_char): New arg cmp_status.
12723 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
12724 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
12725 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
12726 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
12727 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
12728 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
12729 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
12730 (EMACS_MULE_COMPOSITION_END): New macro.
12731 (emacs_mule_finish_composition): New function.
12732 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
12733 (decode_coding_emacs_mule): Avoid long looking ahead while
12734 handling composition.
12735 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
12736 (ENCODE_COMPOSITION_RULE): New macro.
12737 (finish_composition): New function.
12738 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
12739 (DECODE_COMPOSITION_START): New implementation.
12740 (DECODE_COMPOSITION_END): Likewise.
12741 (STORE_COMPOSITION_RULE): New macro.
12742 (decode_coding_iso_2022): Avoid long looking ahead while handling
12743 composition, CTEXT extended segment, and embedded UTF-8.
12744 (setup_coding_system): For a coding of type iso-2022, reset
12745 CODING_ISO_EXTSEGMENT_LEN (coding) and
12746 CODING_ISO_EMBEDDED_UTF_8 (coding).
12747 (get_translation): Delete arguments last_block, from_nchars,
12748 to_nchars. Callers changed.
12749 (produce_chars): Don't modify charbuf. Adjusted for the change of
12750 get_translation.
98a326f7 12751 (produce_composition): Adjust for the new annotation sequence.
825d0875 12752 (handle_composition_annotation): Likewise.
98a326f7 12753 (consume_chars): Adjust for the change of get_translation.
825d0875 12754
ccbc4452
AR
127552009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
12756
4ddf94bd 12757 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 12758
988a7ddb
KH
127592009-03-05 Kenichi Handa <handa@m17n.org>
12760
12761 * font.c (font_select_entity): New function.
12762 (font_find_for_lface): Use font_select_entity to select a font.
12763
12764 * fontset.c (fontset_find_font): If a font found without
a8a3728b 12765 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
12766 font with C restriction.
12767
98a326f7 127682009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 12769
be1bce46 12770 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 12771
10ea2b82
JR
127722009-03-04 Jason Rumney <jasonr@gnu.org>
12773
2c93b248 12774 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 12775 characters that have already been read. (Bug#2569)
2c93b248 12776
10ea2b82
JR
12777 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
12778 Log an error message if check_image_size failed.
12779 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 12780 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 12781
71a0c011
EZ
127822009-03-02 Eli Zaretskii <eliz@gnu.org>
12783
12784 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
12785 when decoding process output.
12786
2f63bba8
RS
127872009-03-01 Richard M Stallman <rms@gnu.org>
12788
12789 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
12790
12791 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
12792
0a9564cb
EZ
127932009-02-28 Eli Zaretskii <eliz@gnu.org>
12794
12795 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
12796 (decode_coding_emacs_mule, decode_coding_iso_2022)
12797 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
12798 (decode_coding_raw_text, decode_coding_charset)
12799 (setup_coding_system, decode_eol, decode_coding, consume_chars):
12800 Honor inhibit-eol-conversion. (Bug #2186)
12801
449148b3
JR
128022009-02-28 Jason Rumney <jasonr@gnu.org>
12803
12804 * coding.c (detect_coding_charset): If not checking latin extra,
12805 fail on characters between 0x80 and 0xA0. (Bug#2354)
12806
a4aee864
EZ
128072009-02-28 Eli Zaretskii <eliz@gnu.org>
12808
12809 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 12810 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 12811
d88bee5a
GM
128122009-02-27 Glenn Morris <rgm@gnu.org>
12813
12814 * callint.c (Finteractive): Doc fix.
12815
a808f22d
KH
128162009-02-27 Kenichi Handa <handa@m17n.org>
12817
12818 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
12819
caf8d60c
CY
128202009-02-27 Chong Yidong <cyd@stupidchicken.com>
12821
12822 * font.c (font_style_to_value): Set value for unknown symbols to
12823 100 instead of 255.
b61137ea
CY
12824 (weight_table, slant_table, width_table): Treat "unspecified" as
12825 the default value.
caf8d60c 12826
1a0de25c
JB
128272009-02-26 Juanma Barranquero <lekktu@gmail.com>
12828
12829 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
12830
8fc45744
JB
128312009-02-25 Juanma Barranquero <lekktu@gmail.com>
12832
107bd7d1
JB
12833 * lread.c (Fload): Stop checking Vloads_in_progress and signal
12834 error as soon as a recursive load is detected.
8fc45744 12835
f097e223
AR
128362009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
12837
12838 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
12839 before caching.
12840
8810a12f
KH
128412009-02-24 Kenichi Handa <handa@m17n.org>
12842
12843 * fontset.c (fontset_find_font): Fix the condition for checking
12844 unavailable font.
12845
2c7d1565
GM
128462009-02-24 Glenn Morris <rgm@gnu.org>
12847
12848 * xfaces.c (Finternal_set_font_selection_order): Remove leading
12849 whitespace that confuses documentation.
12850
a20878b6
MB
128512009-02-23 Miles Bader <miles@gnu.org>
12852
12853 * process.c (Flist_system_processes, Fprocess_attributes)
12854 (syms_of_process): Rename `system-process-attributes' to
12855 `process-attributes'.
12856
b3b58c01
AS
128572009-02-22 Andreas Schwab <schwab@linux-m68k.org>
12858
1b3b981b
AS
12859 * coding.h (struct coding_system): Make safe_charsets a pointer to
12860 unsigned char.
12861 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
12862 being 255.
12863 (SAFE_CHARSET_P): Likewise.
12864 (setup_iso_safe_charsets): Properly setup safe_charsets.
12865 (Fdefine_coding_system_internal): Likewise.
12866 (setup_coding_system): Likewise. Remove unneeded casts.
12867 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
bba3e508
SM
12868 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS.
12869 Remove unneeded casts.
1b3b981b 12870
b3b58c01
AS
12871 * insdel.c (del_range_2): Don't modify gap contents when called
12872 from decode_coding_object. (Bug#1809)
12873
0b6f228c
CY
128742009-02-21 Chong Yidong <cyd@stupidchicken.com>
12875
12876 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
12877 Qfont_object.
12878 (Ftype_of): Recognize font objects.
12879
12880 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
12881
bba3e508
SM
12882 * font.c (Qfont_spec, Qfont_entity, Qfont_object):
12883 Definitions moved to data.c.
0b6f228c 12884
52f8870b
AR
128852009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
12886
12887 * nsterm.m (x_make_frame_invisible): Unset async_visible,
12888 async_iconified. Based on a patch by Christian Lynbech
12889 <christian.lynbech@tieto.com>.
12890 (EmacsView-windowDidMiniaturize:): Unset async_visible.
12891
7087d5e9
GM
128922009-02-20 Glenn Morris <rgm@gnu.org>
12893
12894 * syntax.c (Fskip_chars_forward): Fix doc typo.
12895
41d2ceef
CY
128962009-02-20 Chong Yidong <cyd@stupidchicken.com>
12897
12898 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
12899
1a3b7ca6
CY
129002009-02-19 Chong Yidong <cyd@stupidchicken.com>
12901
12902 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
12903
73cce38d
KH
129042009-02-19 Kenichi Handa <handa@m17n.org>
12905
12906 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 12907 Don't overflow coding->carryover. (Bug#2370)
73cce38d 12908
a51092ee
DN
129092009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
12910
12911 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
12912
c423ecca
KH
129132009-02-18 Kenichi Handa <handa@m17n.org>
12914
12915 * font.c (font_check_otf_features): Fix handling of `nil' element.
12916 (Ffont_spec): Describe :lang and :otf in the docstring.
12917
4c1958f4
AS
129182009-02-16 Andreas Schwab <schwab@suse.de>
12919
12920 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
12921 string.
12922
5704f39a
KH
129232009-02-16 Kenichi Handa <handa@m17n.org>
12924
12925 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 12926 (Bug#1723)
5704f39a 12927
8f0085aa
CY
129282009-02-14 Chong Yidong <cyd@stupidchicken.com>
12929
a057d86a 12930 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
12931
12932 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
12933 (handle_line_prefix): Suppress wrapping of wrap prefixes.
12934
aff01dd9
EZ
129352009-02-14 Eli Zaretskii <eliz@gnu.org>
12936
12937 * msdos.c (MAX_SCREEN_BUF): New macro.
12938 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
12939 Encode the entire run of glyphs sharing the same face, instead of
12940 doing that one glyph at a time (fixes a bug with displaying
12941 double-size characters).
12942
ba301db3
AR
129432009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
12944
12945 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
12946
12947 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
12948 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 12949 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
12950
12951 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 12952 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 12953
51d861de
SM
129542009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
12955
ac146f82 12956 * keyboard.c (adjust_point_for_property): Allow stopping between two
51d861de
SM
12957 invisible areas.
12958
7fed8996
JR
129592009-02-12 Jason Rumney <jasonr@gnu.org>
12960
631ea4fb
JR
12961 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
12962 (add_font_entity_to_list): Call check_face_name even when family
12963 is unspecified.
12964
cb4a3e42
JR
12965 * w32term.c (x_display_pixel_height, x_display_pixel_width):
12966 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 12967 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 12968
7fed8996 12969 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 12970 raster fonts. (Bug#2219)
7fed8996 12971
895416e3
KH
129722009-02-12 Kenichi Handa <handa@m17n.org>
12973
12974 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
12975 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
12976 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 12977 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
12978 (find_automatic_composition): While looking forward and backward,
12979 check static composition. Fix where to stop looking forward.
12980 (composition_adjust_point): Fix checking of static composition.
12981 (Fcomposition_get_gstring): Pay attention to
1dacf998 12982 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
12983
12984 * lisp.h (fast_looking_at): Extern it.
12985
12986 * search.c (fast_looking_at): New function.
12987
51d861de 12988 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
12989 <struct glyph>.u.cmp.to.
12990 (append_composite_glyph): Likewise.
12991
51d861de 12992 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
12993 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
12994 composition.
51d861de 12995 (append_composite_glyph): Adjust for the change of
895416e3
KH
12996 <strcut glyph>.u.cmp.to.
12997
8510724d
JB
129982009-02-11 Juanma Barranquero <lekktu@gmail.com>
12999
13000 * casetab.c (init_casetab_once):
13001 * coding.c (ALLOC_CONVERSION_WORK_AREA):
13002 * font.c (font_update_lface):
13003 * fontset.c (Fnew_fontset):
13004 * ftfont.c (ftfont_drive_otf):
13005 * xfont.c (xfont_open):
13006 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
13007
294fa707
SM
130082009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
13009
13010 * fileio.c (Fwrite_region): !NILP -> CONSP.
13011
b5bfebec
AS
130122009-02-10 Andreas Schwab <schwab@suse.de>
13013
13014 * process.c (send_process): Properly relocate pointer into data
adab88bd 13015 when using encoded data. (Bug#2272)
b5bfebec 13016
cb84a2be
KH
130172009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
13018
13019 * coding.c (detect_coding_charset): Fix previous change.
13020
89e09428
JR
130212009-02-08 Jason Rumney <jasonr@gnu.org>
13022
13023 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 13024 disappeared while hourglass was displayed. (Bug #2193)
89e09428 13025
4470a277
AS
130262009-02-07 Andreas Schwab <schwab@suse.de>
13027
13028 * unexelf.c (unexec): Fix error message.
13029
3175b12a
AR
130302009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
13031
13032 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 13033 when modal window is active. (Bug #2152)
3175b12a
AR
13034 (applicationShouldTerminate:): Remove now-unneeded while loop
13035 around NSRunAlertPanel.
13036
13037 * nsmenu.m (popupSession): New file-global variable.
13038 (pop_down_menu): End the popupSession before closing dialog.
13039 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
13040 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
13041 don't query NSApp for events (just sleep instead).
13042
8434d0b8
EZ
130432009-02-07 Eli Zaretskii <eliz@gnu.org>
13044
51d861de
SM
13045 * coding.c (syms_of_coding) <translation-table-for-input>:
13046 Modify doc string to discourage use for character code unification.
8434d0b8 13047
aa82edfd
CY
130482009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13049
13050 * atimer.c (run_timers): Update pending_atimers.
13051
2d283c7c
CY
130522009-02-06 Chong Yidong <cyd@stupidchicken.com>
13053
eb306cab
CY
13054 * image.c (svg_load_image): Fix last change.
13055
2d283c7c
CY
13056 * xfns.c (Fx_create_frame): Signal an error if no font is
13057 found (Bug#2147).
13058
4d8e170e
JB
130592009-02-05 Juanma Barranquero <lekktu@gmail.com>
13060
13061 * character.c (syms_of_character) <script-representative-chars>:
13062 Fix typo in docstring.
13063
c96169a0
AR
130642009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
13065
13066 * nsmenu.m (pop_down_menu): New function.
13067 (ns_popup_dialog): Call it on unwind.
13068 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
13069 call timer_check() (Bug#2154).
13070 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
13071 handling_signal is set.
13072 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
13073
31fd7c5c 13074 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
13075
13076 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
13077
13078 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
13079
51d861de
SM
13080 * keyboard.c (poll_for_input_1, handle_async_input):
13081 Set handling_signal under HAVE_NS.
c96169a0 13082
aacd8ba1
GM
130832009-02-04 Glenn Morris <rgm@gnu.org>
13084
13085 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
13086
4cb75c4b
KH
130872009-02-04 Kenichi Handa <handa@m17n.org>
13088
13089 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
13090
13091 * charset.c (Fchar_charset): New optional arg restriction.
13092
13093 * coding.h (coding_system_charset_list): Extern it.
13094
13095 * coding.c (coding_system_charset_list): New function.
13096
13097 * composite.c: Include coding.h and termhooks.h.
13098 (composition_gstring_p): Fix for the terminal case.
13099 (composition_gstring_width): Likewise.
13100 (fill_gstring_body): Likewise.
13101 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
13102 the frame.
13103 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
13104 is within a composition.
867d4bb3 13105 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
13106
13107 * term.c (encode_terminal_code): Fix handling of composition.
13108 (produce_composite_glyph): For static composition, get pixel_width
13109 from struct composition.
13110
826ba17e
AS
131112009-02-02 Andreas Schwab <schwab@suse.de>
13112
13113 * unexelf.c (unexec): Handle unaligned bss offset.
13114
8ad093db
AR
131152009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
13116
13117 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
13118 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 13119
8ad093db
AR
13120 * keyboard.c (handle_interrupt): Don't call
13121 quit_throw_to_read_char() under NS.
d0a76a6e 13122
8ad093db
AR
13123 * blockinput.h: Remove NS-specific code.
13124
4d18a7a2
DN
131252009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
13126
db878925
DN
13127 * dispnew.c (window_change_signal): Don't try to get the size of a
13128 suspended tty frame.
13129 * term.c (Fresume_tty): Resize if the size has changed while the
13130 tty was suspended.
13131
4d18a7a2
DN
13132 * alloc.c (mark_stack): Properly conditionalize previous change.
13133
8984df7c
JB
131342009-01-30 Juanma Barranquero <lekktu@gmail.com>
13135
13136 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
13137 * w32term.c (w32_read_socket) [SYNC_INPUT]:
13138 Remove; this code is not used on Windows.
13139
75f4f1ac
EZ
131402009-01-30 Eli Zaretskii <eliz@gnu.org>
13141
13142 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
13143 EOLs that also has stray ^M characters.
13144
07a1e794
JB
131452009-01-30 Juanma Barranquero <lekktu@gmail.com>
13146
13147 * atimer.c (run_timers, alarm_signal_handler):
13148 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
13149 * w32inevt.c (w32_console_read_socket):
13150 * w32term.c (w32_read_socket):
13151 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
13152
a8b11cc9
CY
131532009-01-30 Chong Yidong <cyd@stupidchicken.com>
13154
13155 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
13156 Initialize it as a relative filename pattern.
13157 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
13158 (Fcall_process_region): Simplify temp file creation using
13159 temporary-file-directory.
13160
c279587b
EZ
131612009-01-29 Eli Zaretskii <eliz@gnu.org>
13162
13163 * msdos.c: Rename pending_signals to msdos_pending_signals.
13164 (sig_suspender, sigprocmask): Adjust.
13165
a8fe3242
CY
131662009-01-29 Chong Yidong <cyd@stupidchicken.com>
13167
13168 * keyboard.c (pending_signals): New var.
13169 (poll_for_input, input_available_signal, init_keyboard): Set it.
13170 (process_pending_signals): New function.
13171
13172 * lisp.h (QUIT): Check pending_signals instead of
13173 interrupt_input_pending. Use process_pending_signals.
13174
51d861de 13175 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 13176
51d861de 13177 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
13178
13179 * sysdep.c (emacs_write): Use process_pending_signals.
13180
13181 * xterm.c (XTread_socket): Update pending_signals.
13182
13183 * w32term.c (w32_read_socket): Update pending_signals.
13184
13185 * w32inevt.c (w32_console_read_socket): Update pending_signals.
13186
6570a1c4
KH
131872009-01-29 Kenichi Handa <handa@m17n.org>
13188
13189 * xftfont.c (xftfont_has_char): New function.
13190 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
13191
d72a4afa
AR
131922009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
13193
13194 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
13195 under GNUstep.
13196 (ns_query_color): New declaration.
13197
13198 * nsterm.m (ns_confirm_quit): New variable.
13199 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
13200 (EmacsApp-applicationShouldTerminate:): Use it.
13201 (EmacsPrefsController): Let user set it.
13202 (ns_query_color): New function.
13203 (ns_defined_color): Use it.
13204 (ns_initialize): Drop.
13205 (ns_term_init): Add two lines from ns_initialize(), and set
13206 input_interrupt_mode to nil.
13207
13208 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 13209 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 13210
9fe78804
KH
132112009-01-28 Kenichi Handa <handa@m17n.org>
13212
13213 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
13214 (fontset_get_font_group): Remember that no font-group is specified
13215 for C.
9fe78804 13216
fa57de36
CY
132172009-01-27 Chong Yidong <cyd@stupidchicken.com>
13218
930600e9
CY
13219 * fns.c (concat): Check for string overflow (bug#1787).
13220
fa57de36
CY
13221 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
13222 Quadruple undo limits (bug#1501).
13223
7179ce7b
KH
132242009-01-27 Kenichi Handa <handa@m17n.org>
13225
13226 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
13227 directly use GT_Get_Char_index.
13228
13229 * xftfont.c (struct xftfont_info): New member `index'.
13230
13231 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 13232 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 13233
5be8fcc0
CY
132342009-01-26 Kenichi Handa <handa@m17n.org>
13235
13236 * fontset.c (fontset_find_font): Fix handling of non-cons return
13237 value of fontset_get_font_group.
13238 (fontset_font): Revert last change.
13239
19ae3e61
JR
132402009-01-26 Jason Rumney <jasonr@gnu.org>
13241
13242 * w32font.c (w32font_list_internal): Return quickly if registry is
13243 unknown. Simplify final return.
13244 (add_font_entity_to_list): Break complex logic down into more
13245 manageable chunks. Move unknown registry check to
13246 w32font_list_internal.
13247
8612b71a
AR
132482009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
13249
13250 Changes to remove Feval calls from GUI under NS.
13251
d8038940
JB
13252 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
13253 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
13254 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
13255
13256 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
13257 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
13258 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
13259 instead of NON_ASCII_KEYSTROKE_EVENT.
13260 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
13261 (EmacsApp-applicationShouldTerminate:): Query user.
13262 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
13263 instead of Feval.
13264
13265 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
13266
13267 * keyboard.c (kbd_buffer_get_event): Check for it.
13268 (keys_of_keyboard): Define lispy keys for
13269 ns-put/unput-working-text.
13270
13271 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
13272 versions.
13273 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
13274
6288ae55
CY
132752009-01-25 Chong Yidong <cyd@stupidchicken.com>
13276
13277 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 13278 setting current_buffer directly. (Bug#2044)
6288ae55 13279
289e7f8f
CY
132802009-01-24 Chong Yidong <cyd@stupidchicken.com>
13281
5ce87308 13282 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 13283 any work. (Bug#1952, bug#1990).
5ce87308 13284
64cc3cf6 13285 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 13286
b3243e6f
AR
132872009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
13288
13289 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
13290 (ns_no_defaults): New declaration.
13291 (main): Use it.
e0d2e69a 13292
d900b2af 13293 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 13294
d900b2af 13295 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 13296
d900b2af
AR
13297 * nsterm.m (ns_no_defaults): New variable.
13298 (ns_initialize): Don't read defaults when ns_no_defaults.
13299 (EmacsView-readSelectionFromPasteboard:)
13300 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 13301 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
13302 (ns_dumpglyphs_stretch): New function.
13303 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 13304 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 13305
e0d2e69a
AR
13306 * nsimage.m (setPixmapData:): Set to ignore image DPI.
13307
3ac71f5d
CY
133082009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
13309
13310 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
13311 call for Sparc64.
13312
3fe53a83
AR
133132009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
13314
13315 * nsfns.m:
13316 * nsgui.h:
13317 * nsmenu.m:
13318 * nsselect.m:
13319 * nsterm.h:
13320 * nsterm.m: Remove '23' comments that indicated code added during
13321 update from emacs-20 -> emacs-23.
13322
10f87c6f 133232009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
13324
13325 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 13326 ns_alternate_modifier. (Bug#1217)
a3b53a85 13327
c7cef62d
AR
13328 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
13329 Display all shortcuts, including those w/o super modifier.
13330
575fb8bd
AR
13331 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
13332
918b848b
CY
133332009-01-22 Chong Yidong <cyd@stupidchicken.com>
13334
13335 * fileio.c (Vwrite_region_post_annotation_function)
13336 (Vwrite_region_annotation_buffers): New vars.
13337 (build_annotations_unwind): Just reset
13338 Vwrite_region_annotation_buffers.
13339 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
13340 Call write-region-post-annotation-function.
13341 (build_annotations): Add to Vwrite_region_annotation_buffers if
13342 buffer changes.
13343
a39e2539
AR
133442009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
13345
13346 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
13347 Tiger.
51d861de
SM
13348 * nsfns.m (ns_do_applescript):
13349 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 13350
35ed44db
AR
133512009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
13352
13353 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
13354
cbe0b5bf
AR
133552009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
13356
13357 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 13358
6049d3a0
AR
13359 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
13360
13361 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
13362 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
13363 handle Ctrl-tab. (Bug#1841)
13364 (ns_get_color): Use unsigned long long for scanned hex string value.
13365 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 13366 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 13367 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 13368 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 13369 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 13370 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 13371 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 13372
d3810c21 13373 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 13374 DPI. (Bug#1316)
d3810c21
AR
13375 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
13376 values in onTiger section.
4c7077c3 13377
e301e634
CY
133782009-01-19 Chong Yidong <cyd@stupidchicken.com>
13379
7f82490b
CY
13380 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
13381 Check return value of font_spec_from_name.
64cc3cf6 13382 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
13383
13384 * font.c (font_spec_from_name): Return Qnil if font name could not
13385 be parsed.
13386 (font_parse_name): Treat a `?' character as part of an XLFD.
13387
e301e634
CY
13388 * fns.c (Fsubstring): Doc fix.
13389
1c0db158
KH
133902009-01-19 Kenichi Handa <handa@m17n.org>
13391
51d861de 13392 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
13393 (ftfont_list): Likewise.
13394
acf20901
JB
133952009-01-18 Juanma Barranquero <lekktu@gmail.com>
13396
fff4e459
JB
13397 * dbusbind.c (Fdbus_register_signal):
13398 * process.c (conv_sockaddr_to_lisp):
13399 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
13400
acf20901
JB
13401 * callproc.c (Fgetenv_internal): Doc fix.
13402
e7abcdfb
CY
134032009-01-16 Chong Yidong <cyd@stupidchicken.com>
13404
13405 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
13406 it is not even used.
13407
b60861e6
GM
134082009-01-16 Glenn Morris <rgm@gnu.org>
13409
13410 * font.c (Ffont_variation_glyphs): Silence compiler.
13411
8db52afe
JB
134122009-01-15 Juanma Barranquero <lekktu@gmail.com>
13413
13414 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
13415 Reported by David Robinow <drobinow@gmail.com>.
13416
4cddb209
KH
134172009-01-15 Kenichi Handa <handa@m17n.org>
13418
51d861de 13419 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 13420
f247f67b
JR
134212009-01-14 Jason Rumney <jasonr@gnu.org>
13422
13423 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 13424 never a fontset. (Bug#1562)
f247f67b 13425
f56a4450
KH
134262009-01-14 Kenichi Handa <handa@m17n.org>
13427
13428 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 13429 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 13430
4e99855e
CY
134312009-01-13 Chong Yidong <cyd@stupidchicken.com>
13432
13433 * font.c (font_clear_prop): If clearing the family, clear the font
13434 width index too.
13435
fff4e459 13436 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 13437
24f01470
JB
134382009-01-12 Juanma Barranquero <lekktu@gmail.com>
13439
13440 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
13441 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
13442 functions, use sizeof.
13443
a41240a3
MR
134442009-01-12 Martin Rudalics <rudalics@gmx.at>
13445
13446 * keyboard.c (read_char): Fix case where last_nonmenu_event
13447 returned a bad value with submenus. (Bug#447)
13448
944636b8
CY
134492009-01-12 Chong Yidong <cyd@stupidchicken.com>
13450
13451 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
13452 family, clear the font width index too.
13453
0dad7c6f
JR
134542009-01-11 Jason Rumney <jasonr@gnu.org>
13455
13456 * keyboard.c (cmd_error_internal): Exit when errors occur before
13457 frame creation and not in daemon mode. (Bug#1836)
13458
7c2363af
CY
134592009-01-10 Chong Yidong <cyd@stupidchicken.com>
13460
13461 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
13462 of a display vector, backtrack.
13463 (try_window_reusing_current_matrix): Check glyph type before
13464 referencing charpos member.
13465
97b1b294
EZ
134662009-01-10 Eli Zaretskii <eliz@gnu.org>
13467
13468 Fix Bug #876:
13469
13470 * coding.c (inhibit_null_byte_detection): New variable.
13471 (detect_coding, detect_coding_system): Don't pay attention to null
13472 bytes if inhibit_null_byte_detection is non-zero.
51d861de 13473 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
13474 <inhibit-iso-escape-detection>: Doc fix.
13475
4624b6e3
JR
134762009-01-09 Jason Rumney <jasonr@gnu.org>
13477
13478 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 13479 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
13480 Only report Unicode Plane 2 fonts as unicode-sip.
13481
323b840c
CY
134822009-01-09 Chong Yidong <cyd@stupidchicken.com>
13483
51d861de
SM
13484 * xfaces.c (Fx_font_family_list): Delete function.
13485 Move compatibility version to faces.el.
323b840c 13486
51d861de 13487 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 13488
eba7400d
MR
134892009-01-09 Martin Rudalics <rudalics@gmx.at>
13490
13491 * frame.c (x_set_frame_parameters): Remember requested value for
13492 fullscreen before it's reset by the parameter handler.
13493
4b09796d
GM
134942009-01-09 Glenn Morris <rgm@gnu.org>
13495
13496 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 13497 (last_command_event): ... and update all users.
4b09796d
GM
13498 (last_input_char): For clarity, rename to...
13499 (last_input_event): ... and update all users.
13500 (last-command-char, last-input-char): Move to subr.el as aliases.
13501 * cmds.c, commands.h: Update for last_command_char rename.
13502
14ccea62
CY
135032009-01-08 Chong Yidong <cyd@stupidchicken.com>
13504
51d861de 13505 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 13506
5f004711
JR
135072009-01-08 Jason Rumney <jasonr@gnu.org>
13508
13509 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
13510 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
13511 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
13512 Don't declare.
fff4e459 13513 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
13514 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
13515
b71f6f73
KH
135162009-01-07 Kenichi Handa <handa@m17n.org>
13517
50b06221 13518 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 13519 remember the coding system used for decoding in
50b06221
KH
13520 coding_system (Bug#1039).
13521
b71f6f73 13522 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 13523 breaking the loop. (Bug#870)
b71f6f73
KH
13524 (decode_coding_utf_16, decode_coding_emacs_mule)
13525 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
13526 (decode_coding_charset): Likewise.
13527
56f668f7
MR
135282009-01-05 Martin Rudalics <rudalics@gmx.at>
13529
13530 * frame.c (x_set_frame_parameters): Make sure height (width) get
13531 applied when fullwidth (fullheight) is set. (Bug#1522)
13532
5da9424d
JB
135332009-01-04 Juanma Barranquero <lekktu@gmail.com>
13534
13535 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
13536 (utc_base): Declare as ULONGLONG, not long double.
13537 (convert_time_raw): Delete.
13538 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
13539 (initialize_utc_base): New function.
13540 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
13541 (convert_from_time_t): Use initialize_utc_base; compute result with
13542 64-bit arithmetic.
13543 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
13544
c4605e09
EZ
135452009-01-03 Eli Zaretskii <eliz@gnu.org>
13546
9acef61c 13547 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
13548 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
13549 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
13550 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
13551 [!subprocesses]: Define.
13552 (syms_of_process) [!subprocesses]: Intern and staticpro them.
13553 (Flist_system_processes, Fsystem_process_attributes)
13554 [!subprocesses]: Call list_system_processes and
13555 system_process_attributes instead of returning Qnil.
13556
9acef61c
JB
13557 * dosfns.c (system_process_attributes, list_system_processes):
13558 New functions.
c4605e09
EZ
13559
13560 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
13561
13562 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
13563 Don't use the default (no-op) implementation.
13564
8b7d0a16
JR
135652009-01-03 Jason Rumney <jasonr@gnu.org>
13566
a6d46bc1
JR
13567 * keyboard.c (parse_modifiers_uncached): Wheel events are
13568 clicks (bug#687).
13569
8b7d0a16
JR
13570 * w32term.c (x_query_colors, x_query_color): New functions.
13571
13572 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
13573 (svg_load_image): Cast returned pointers from dynamically loaded
13574 functions. Eliminate W32 specific code.
13575
bfe11752
DN
135762009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
13577
89e2438a
DN
13578 * nsfns.m (x_set_foreground_color, x_set_background_color)
13579 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
13580 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
13581 x_ prefix instead of ns_. Update references.
13582 (syms_of_nsfns): Add a FIXME comment.
13583
13584 * nsterm.m (x_set_cursor_type): New prototype.
13585 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
13586
bfe11752
DN
13587 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
13588 for Solaris instead of incorrectly providing Qutime and Qcutime.
13589
031da700
EZ
135902009-01-02 Eli Zaretskii <eliz@gnu.org>
13591
13592 * w32.c (process_times): Compute sum of utime and stime.
13593 (system_process_attributes): Add Qtime to the alist.
13594
13595 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
13596 and add them to the alist.
13597
13598 * process.c (top level) <Qtime, Qctime>: New variables.
13599 (syms_of_process): staticpro them.
13600 (Fsystem_process_attributes): Add their documentation to the doc
13601 string.
13602
13603 * process.h: Declare Qtime and Qctime.
13604
df23bf08
JR
136052009-01-02 Jason Rumney <jasonr@gnu.org>
13606
9acef61c 13607 * image.c (Qgobject): New symbol.
df23bf08
JR
13608 (syms_of_image): Initialize it.
13609 (init_svg_functions): Load some functions from gobject library.
13610
5bbdf7aa
DN
136112009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
13612
13613 * frame.c (make_terminal_frame): Remove redundant code and useless
13614 block.
13615
63136da6
AS
136162009-01-01 Andreas Schwab <schwab@suse.de>
13617
13618 * process.c (conv_sockaddr_to_lisp): Add workaround for
13619 getsockname bug on BSD.
13620
9ef69046
CY
136212009-01-01 Chong Yidong <cyd@stupidchicken.com>
13622
d6fafbe0
CY
13623 * xfns.c (x_create_tip_frame): Set border width of the X window.
13624
51d861de 13625 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 13626
f9c34147
JR
136272009-01-01 Jason Rumney <jasonr@gnu.org>
13628
9acef61c 13629 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
13630 Don't block input, as per earlier xterm.c changes.
13631
f5497e45
AR
136322008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
13633
13634 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
13635 (ns_appkit_version_int): New function.
13636 (x-server-version): Use ns_appkit_version_int and follow 21+
13637 convention of returning 3 integers.
13638
c19cab20
KH
136392008-12-30 Kenichi Handa <handa@m17n.org>
13640
13641 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
13642 (CHAR_SURROGATE_PAIR_P): New macro.
13643
13644 * font.h (struct font_driver): New member get_variation_glyphs.
13645
9acef61c 13646 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
13647 (Ffont_variation_glyphs): New function.
13648 (syms_of_font): Defsubr it.
13649
13650 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
13651 ftfont_variation_glyphs.
13652 (setup_otf_gstring): New function.
13653 (ftfont_drive_otf): Use it.
13654 (ftfont_shape_by_flt): Handle variation selector.
13655 (ftfont_variation_glyphs): New function.
13656
28cd591f
MR
136572008-12-30 Martin Rudalics <rudalics@gmx.at>
13658
13659 * frame.c (Vemacs_iconified): Remove.
13660
7f714baf
JR
136612008-12-30 Jason Rumney <jasonr@gnu.org>
13662
13663 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 13664 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 13665
9d2d22ab
CY
136662008-12-30 Chong Yidong <cyd@stupidchicken.com>
13667
13668 * indent.c (Fvertical_motion): Don't advance iterator if we have
13669 reseated to the desired position.
13670
13671 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
13672 checking for pos match.
13673
545312c2
KH
136742008-12-30 Kenichi Handa <handa@m17n.org>
13675
1ede3eb6
KH
13676 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
13677 just get the low 8-bit of the code.
13678
545312c2
KH
13679 * font.c (font_intern_prop): Validate str as multibyte.
13680
bd7bbf29
DN
136812008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
13682
31e0750e
DN
13683 * dispextern.h (struct face): Move lface and hash from the middle
13684 of bitfields.
13685
bd7bbf29
DN
13686 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
13687
b5672e7c
DN
136882008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
13689
13690 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
13691 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
13692 instead of intervals.h.
13693
d704470f
AS
136942008-12-26 Andreas Schwab <schwab@suse.de>
13695
13696 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
13697 cons.
13698
54b33868
MR
136992008-12-26 Martin Rudalics <rudalics@gmx.at>
13700
13701 * textprop.c (Qminibuffer_prompt): New variable.
13702 (syms_of_textprop): Initialize it.
13703 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
13704 in minibuffer-prompt face. (Bug#1662)
13705
40b615d6
JR
137062008-12-25 Jason Rumney <jasonr@gnu.org>
13707
13708 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
13709
baae5c2d
JR
137102008-12-24 Jason Rumney <jasonr@gnu.org>
13711
13712 * ralloc.c (r_alloc_reset_variable): New function.
13713
13714 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 13715 record of what points where. (Bug#716)
baae5c2d 13716
a9051c88
DN
137172008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
13718
13719 * minibuf.c (read_minibuf): Follow the non-interactive case when
13720 running as a daemon, before detaching.
13721
8b146312
AS
137222008-12-22 Andreas Schwab <schwab@suse.de>
13723
13724 * buffer.c (init_buffer): Use realloc instead of xrealloc.
13725 * gtkutil.c (free_widget_value): Use xfree instead of free.
13726
56f2de10
MR
137272008-12-22 Martin Rudalics <rudalics@gmx.at>
13728
13729 * frame.c (delete_frame): New function derived from
13730 Fdelete_frame to handle Qnoelisp value for FORCE argument.
13731 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
13732 (Fdelete_frame): Call delete_frame. Remove line from doc-string
13733 saying that FORCE non-nil doesn't run `delete-frame-functions'.
13734 * frame.h: Extern delete_frame.
13735 * window.c (window_loop):
13736 * terminal.c (delete_terminal):
13737 * xterm.c (x_connection_closed):
13738 * xfns.c (Fx_hide_tip):
9acef61c 13739 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 13740
1fc200d6
JR
137412008-12-21 Jason Rumney <jasonr@gnu.org>
13742
13743 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
13744 when character maps to .notdef character.
13745
5e252df2
SM
137462008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
13747
13748 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
13749
99b72cc4
JR
137502008-12-20 Jason Rumney <jasonr@gnu.org>
13751
13752 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 13753 a graphical frame on Windows. (Bug#1325)
99b72cc4 13754
acc49a52
JD
137552008-12-20 Jan Djärv <jan.h.d@swipnet.se>
13756
13757 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
13758
6ea15123
CY
137592008-12-20 Chong Yidong <cyd@stupidchicken.com>
13760
13761 * minibuf.c (Fread_buffer): Doc fix.
13762
b2dab6c8
JR
137632008-12-20 Jason Rumney <jasonr@gnu.org>
13764
54ea0c87 13765 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 13766 server name in UNC paths. (Bug#719)
54ea0c87 13767
b2dab6c8 13768 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 13769 charbuf. (Bug#1035)
b2dab6c8 13770
6d1921be
DN
137712008-12-19 Daniel Engeler <engeler@gmail.com>
13772
13773 * sysdep.c (serial_configure): Fix typo.
13774
53934c98
DN
137752008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
13776
13777 * sysdep.c: Include alloca.h.
f4f634e8
DN
13778 (system_process_attributes): Add implementation for Solaris.
13779
13780 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 13781
06e111a6
DN
137822008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
13783
13784 Reorganize implementation of Flist_system_processes and
13785 Fsystem_process_attributes. No functional changes.
13786 * process.c: Don't #include pwd.h, grp.h and limits.h.
13787 (Flist_system_processes): Just call list_system_processes.
13788 (Fsystem_process_attributes): Just call system_process_attributes.
13789 (procfs_list_system_processes, time_from_jiffies)
13790 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
13791 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
13792
13793 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
13794 (list_system_processes): Rename from
13795 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
13796 Provide a do nothing implementation.
13797 (system_process_attributes): Rename from
13798 procfs_list_system_processes.
13799 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 13800 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
13801
13802 * w32.c (list_system_processes): Rename from
13803 w32_list_system_processes.
13804 (system_process_attributes): Rename from
13805 w32_system_process_attributes.
13806
13807 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
13808
13809 * process.h (w32_list_system_processes)
13810 (w32_system_process_attributes): Remove.
362654a6
JB
13811 (list_system_processes, system_process_attributes):
13812 New prototypes.
06e111a6 13813
6a705b23
KH
138142008-12-19 Kenichi Handa <handa@m17n.org>
13815
13816 * xfont.c (xfont_decode_coding_xlfd): New function.
13817 (xfont_encode_coding_xlfd): New function.
13818 (xfont_list_pattern): Decode XLFD by iso-8859-1.
13819 (xfont_list): Decode and encode XLFD by iso-8859-1.
13820 (xfont_match): Likewise.
13821 (xfont_list_family): Likewise.
13822 (xfont_open): Likewise.
13823
d66c0241 13824 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
13825 names are utf-8.
13826
d66c0241 13827 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
13828 names are utf-8.
13829
5a130941
JD
138302008-12-18 Jan Djärv <jan.h.d@swipnet.se>
13831
13832 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
13833 changed.
bfd20325
JD
13834 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
13835 clicked on a detached tool bar button.
5a130941 13836
fd95644b
DN
138372008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
13838
13839 * emacs.c (main): Print and error and exit when no data is read
13840 from the pipe.
13841
e6eee6ae
JR
138422008-12-17 Jason Rumney <jasonr@gnu.org>
13843
13844 * w32font.c (w32font_has_char): Always return -1.
13845
a35dd56b
KH
138462008-12-16 Kenichi Handa <handa@m17n.org>
13847
13848 * font.c (font_open_entity): Fix previous change.
13849
0e3635c2
DN
138502008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
13851
13852 * process.c: Include <limits.h>.
13853
d4835507 138542008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
13855
13856 * font.c (font_update_drivers): Fix mistake in reconstructing the
13857 driver list.
13858
138592008-12-16 Chong Yidong <cyd@stupidchicken.com>
13860
13861 * font.c (font_clear_cache): Fix format of font cache data.
13862
e2cbc401
CY
138632008-12-15 Chong Yidong <cyd@stupidchicken.com>
13864
13865 * xftfont.c (xftfont_open): Free Xft font pattern if
13866 XftFontOpenPattern fails.
13867
13868 * xterm.c (x_free_frame_resources): Remove extraneous call to
13869 free_frame_faces.
13870
b131d535
CY
138712008-12-13 Chong Yidong <cyd@stupidchicken.com>
13872
13873 * xterm.c (x_delete_display): Move xim_close_dpy call to
13874 x_delete_terminal.
13875 (x_delete_terminal): Call xim_close_dpy.
13876
e6df5336
JR
138772008-12-13 Jason Rumney <jasonr@gnu.org>
13878
13879 * w32font.c (intern_font_name): New function.
13880 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
13881 (w32font_open_internal, Fx_select_font): Decode font name.
13882 (fill_in_logfont, list_all_matching_fonts): Encode font name.
13883
13884 * w32font.h (intern_font_name): Declare new function.
13885
13886 * w32uniscribe.c (add_opentype_font_name_to_list):
13887 Use intern_font_name.
13888
20d68145
CY
138892008-12-13 Chong Yidong <cyd@stupidchicken.com>
13890
9f2554de
CY
13891 * frame.c (Fdelete_frame): Call free_font_driver_list.
13892
3d9bec9a
CY
13893 * font.c (free_font_driver_list): Implement missing function.
13894
20d68145
CY
13895 * w32term.c (w32_term_init): Don't initialize the image cache
13896 here; it will be done in init_frame_faces.
13897
13898 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
bba3e508
SM
13899 (struct x_display_info): Remove unused member null_pixel.
13900 New member xim_callback_data.
20d68145
CY
13901
13902 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
13903 (xim_initialize): Save pointer to callback function data.
13904 (xim_close_dpy): Free callback function data. Call XCloseIM,
13905 reverting 2008-11-04 change by David Smith.
13906 (x_term_init): Don't initialize the image cache here; it will be
13907 done in init_frame_faces. Remove ancient "null_pixel" cruft.
13908 (x_delete_display): Free x_dnd_atoms member.
13909
96f9306b
KH
139102008-12-13 Kenichi Handa <handa@m17n.org>
13911
ef1b0ba7 13912 * font.c (font_rescale_ratio): Move from xfaces.c.
6dec9044 13913 Argument type changed. Handle a font-spec too.
96f9306b 13914 (font_score): Check Vface_font_rescale_alist.
6dec9044 13915 (font_open_entity): Likewise. (Bug#1547)
96f9306b 13916
ef1b0ba7 13917 * xfaces.c (font_rescale_ratio): Move to font.c.
96f9306b 13918
8d5b4964
CY
139192008-12-13 Chong Yidong <cyd@stupidchicken.com>
13920
13921 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
13922
e6df5336
JR
139232008-12-12 Jason Rumney <jasonr@gnu.org>
13924
bba3e508
SM
13925 * w32fns.c (x_display_info_for_name, Fx_open_connection):
13926 Set Vwindow_system_version to the real w32 major version.
e6df5336 13927
97c6058a
DN
139282008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
13929
13930 * term.c (init_tty): Move setting the terminal name before the
13931 potential user: maybe_fatal.
13932
ec4e88d7
CY
139332008-12-11 Chong Yidong <cyd@stupidchicken.com>
13934
ef1b0ba7 13935 * term.c (tty_free_frame_resources): Rename from delete_tty_output;
d4835507 13936 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 13937
b4233ec9
JR
139382008-12-11 Jason Rumney <jasonr@gnu.org>
13939
8ec71e23 13940 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 13941 SYMBOL_CHARSET. (Bug#547)
8ec71e23 13942
b4233ec9 13943 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 13944 size for surrogates. (Bug#1096, bug#872)
b4233ec9 13945
011a0143
JB
139462008-12-11 Juanma Barranquero <lekktu@gmail.com>
13947
13948 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
13949
3c309f34
JB
139502008-12-11 Juanma Barranquero <lekktu@gmail.com>
13951
13952 * process.c (Fsystem_process_attributes, syms_of_process):
13953 Fix typo in name of Ssystem_process_attributes.
13954 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
13955
fedc6ab5
JB
139562008-12-11 Juanma Barranquero <lekktu@gmail.com>
13957
13958 * syntax.c (Fmodify_syntax_entry): Doc fix.
13959
ba3de0e8
JB
139602008-12-10 Juanma Barranquero <lekktu@gmail.com>
13961
13962 * font.c (Ffont_spec): Move usage to end of docstring.
13963
174f1c74
JR
139642008-12-10 Jason Rumney <jasonr@gnu.org>
13965
13966 * w32font.c (Qcham): New symbol.
13967 (font_supported_scripts): Add cham, and comments for other new
13968 scripts in bitfield from OpenType spec.
9d32f818
JR
13969 (add_font_entity_to_list): Limit unicode-sip fonts to those that
13970 contain characters beyond the bmp.
174f1c74 13971
7b649478
KH
139722008-12-10 Kenichi Handa <handa@m17n.org>
13973
13974 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 13975 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
13976 Qunicode_sip.
13977
2133e2d1
JB
139782008-12-10 Juanma Barranquero <lekktu@gmail.com>
13979
13980 * coding.c (QCdefault_char): Rename from QCdefalut_char.
13981 (Fcoding_system_put): Use QCdefault_char.
13982 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
13983
9af886ee
CY
139842008-12-09 Chong Yidong <cyd@stupidchicken.com>
13985
74d819eb
CY
13986 * xftfont.c (syms_of_xftfont): Fix typo.
13987
4ccfa1c0 13988 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 13989
7c19d3ae
DN
139902008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
13991
13992 * emacs.c (main): Close daemon_pipe on exec.
13993
567826bb
CY
139942008-12-08 Chong Yidong <cyd@stupidchicken.com>
13995
13996 * termchar.h (struct tty): New members termcap_term_buffer and
13997 termcap_strings_buffer.
13998
13999 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 14000 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
14001 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
14002 All callers changed.
14003 (init_tty): Store termcap data and string buffers in new struct
14004 tty members termcap_term_buffer and termcap_strings_buffer.
14005 (delete_tty): Free them.
4ccfa1c0 14006 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 14007
aa96c42b
SZ
140082008-12-07 Seiji Zenitani <zenitani@mac.com>
14009
14010 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 14011 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 14012
b7e1d896
CY
140132008-12-06 Chong Yidong <cyd@stupidchicken.com>
14014
14015 * coding.c (make_conversion_work_buffer): Disable buffer
14016 modification hooks in the work buffer.
14017
b5ec91a5
EZ
140182008-12-05 Eli Zaretskii <eliz@gnu.org>
14019
14020 * process.c (procfs_system_process_attributes): If `nread' has a
14021 negative value, assign zero to it.
14022
a5d2a52b
CY
140232008-12-05 Chong Yidong <cyd@stupidchicken.com>
14024
68c5540b 14025 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 14026
7bf1bb21
KH
140272008-12-05 Kenichi Handa <handa@m17n.org>
14028
14029 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
14030 second character is a combining character.
14031
2fdc7d00
EZ
140322008-12-05 Eli Zaretskii <eliz@gnu.org>
14033
14034 * process.c (procfs_system_process_attributes): Don't use cmd,
14035 cmdsize, and q without initializing them first.
14036
bf6bfba8
JR
140372008-12-04 Jason Rumney <jasonr@gnu.org>
14038
14039 * w32font.c (w32font_draw): Initialize orig_clip before getting
14040 it, and delete it when finished.
14041
a3b1a468
DN
140422008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
14043
14044 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
14045 case when running as a daemon before detaching.
14046
8b8be8eb
JB
140472008-12-03 Juanma Barranquero <lekktu@gmail.com>
14048
805f2638 14049 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 14050
b1bde622
KH
140512008-12-03 Kenichi Handa <handa@m17n.org>
14052
e500c47d
KH
14053 * font.c (font_at): Set `multibyte' at first.
14054
ca516334
KH
14055 * coding.c (decode_coding_charset): Check type of an element of
14056 vector VALIDS.
7bf1bb21 14057 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 14058
4ccfa1c0 14059 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
14060 (font_for_char): Likewise.
14061
1e5ecd37
CY
140622008-12-03 Chong Yidong <cyd@stupidchicken.com>
14063
d5b01609 14064 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
14065 (font_update_lface): Handle fonts with corrupted size specs,
14066 i.e. non-int and non-float.
d5b01609 14067
11e3a6e4 14068 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 14069 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 14070 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 14071
ab06788b
CY
14072 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
14073
1e5ecd37 14074 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 14075 underline_minimum_offset for underline position.
1e5ecd37 14076
63c125ab
DN
140772008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
14078
14079 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
14080
14081 * character.c (c_string_width): Specify the type for LEN.
14082
3a8406e1
KH
140832008-12-03 Kenichi Handa <handa@m17n.org>
14084
4ccfa1c0 14085 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 14086 (decode_coding_utf_8): Likewise.
4ccfa1c0 14087 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 14088 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 14089
651df7d9
CY
140902008-12-02 Chong Yidong <cyd@stupidchicken.com>
14091
14092 * keyboard.c (make_lispy_position): Only use PT if the selected
14093 window is current.
14094
1f625c6c
AS
140952008-12-02 Andreas Schwab <schwab@suse.de>
14096
f7741ce9
AS
14097 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
14098
1f625c6c
AS
14099 * doprnt.c (doprnt1): Fix size of charbuf.
14100
92bc2678
CY
141012008-12-02 Chong Yidong <cyd@stupidchicken.com>
14102
14103 * keyboard.c (timer_check): Revert last change.
14104
93b9e8cc
JB
141052008-12-02 Juanma Barranquero <lekktu@gmail.com>
14106
14107 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
14108
fd7a37d5
JB
141092008-12-01 Juanma Barranquero <lekktu@gmail.com>
14110
14111 * makefile.w32-in: Update dependencies.
14112 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
14113
c115043b
AS
141142008-12-01 Andreas Schwab <schwab@suse.de>
14115
14116 * font.c (register_font_driver): Use xmalloc.
14117 (font_put_frame_data): Likewise.
14118
f5668d2a
CY
141192008-12-01 Chong Yidong <cyd@stupidchicken.com>
14120
860d96be
CY
14121 * xfaces.c (realize_x_face): Make abort condition clearer.
14122
f5668d2a
CY
14123 * gtkutil.c (update_frame_tool_bar): Initialize variable.
14124
379c17e7
CY
141252008-11-30 Chong Yidong <cyd@stupidchicken.com>
14126
14127 * keyboard.c (timer_check): After a timer runs, ensure that the
14128 selected window's buffer is current.
14129
35f36d65
JB
141302008-11-30 Juanma Barranquero <lekktu@gmail.com>
14131
f952c61c
JB
14132 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
14133 It was accidentally restored by the Unicode merge.
14134
35f36d65
JB
14135 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
14136
b23077df
JB
141372008-11-29 Juanma Barranquero <lekktu@gmail.com>
14138
14139 * w32proc.c: Include "coding.h".
14140 (Fw32_short_file_name): Encode filename passed to Windows API.
14141 (Fw32_long_file_name): Encode filename passed to Windows API and
14142 decode back the result. (Bug#1433)
14143
b8ebe9dd
KH
141442008-11-29 Kenichi Handa <handa@m17n.org>
14145
8cc53f96
KH
14146 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
14147 not before accessing it.
14148
b8ebe9dd
KH
14149 * charset.c (Fdefine_charset_internal): After calculating
14150 min_char, max_char, and fastmap, copy the charset structure again.
14151 (encode_char): Fix the previous change.
14152
59bc82c0
SZ
141532008-11-28 Seiji Zenitani <zenitani@mac.com>
14154
14155 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
14156
14157 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
14158
14159 * nsterm.m (x_set_frame_alpha): New function.
14160
32247e3d
EZ
141612008-11-27 Eli Zaretskii <eliz@gnu.org>
14162
14163 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
14164
b003e5ff
JB
141652008-11-27 Juanma Barranquero <lekktu@gmail.com>
14166
14167 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
14168 pointer to check_face_name.
14169
708550f5
KH
141702008-11-27 Kenichi Handa <handa@m17n.org>
14171
14172 * category.h (SET_CATEGORY_SET): Call set_category_set.
14173 (set_category_set): Extern it.
14174
14175 * category.c (hash_get_category_set): New function.
bba3e508 14176 (Fmodify_category_entry): Adjust for the change of
708550f5
KH
14177 char_table_ref_and_range. Call hash_get_category_set to get a
14178 category set to store in the table.
14179
14180 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
14181 Funify_charset.
14182
2ae37cf0 14183 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
14184 (DECODE_CHAR): Check if the decoder vector is ready.
14185 (ENCODE_CHAR): Check if the encoder char-table is ready.
14186 (maybe_unify_char): Extern it.
14187
14188 * charset.c (Vchar_unified_charset_table): Delete it.
14189 (inhibit_load_charset_map): New variable.
14190 (temp_charset_work): New variable.
14191 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
14192 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
14193 New macros.
bba3e508
SM
14194 (load_charset_map): Meaning of control_flag changed.
14195 If inhibit_load_charset_map is nonzero, setup a table in
708550f5
KH
14196 temp_charset_work.
14197 (load_charset): New argument control_flag.
14198 (map_charset_for_dump): New function.
14199 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
14200 map_charset_for_dump.
14201 (Fdefine_charset_internal): If the charset method is MAP, load
14202 mapping tables by calling load_charset.
14203 (Funify_charset): Don't load a mapping table but directly set
14204 Vchar_unify_table.
14205 (maybe_unify_char): New function.
14206 (decode_char): Don't handle the deleted method MAP_DEFERRED.
14207 Handle the case of inhibit_load_charset_map being nonzero.
14208 (encode_char): Don't handle the deleted method MAP_DEFERRED.
14209 Handle the case of inhibit_load_charset_map being nonzero.
14210 (Fclear_charset_maps): Just free temp_charset_work.
14211 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
14212 variable.
14213
bba3e508 14214 * chartab.c (sub_char_table_ref_and_range): Adjust for the
708550f5
KH
14215 change of char_table_ref_and_range.
14216 (char_table_ref_and_range): Change the meaning of argument FROM
14217 and TO. Now the caller must provide initial values for *FROM
14218 and *TO.
14219
bba3e508 14220 * fontset.c (fontset_add): Adjust for the change of
708550f5
KH
14221 char_table_ref_and_range.
14222 (fontset_get_font_group): Likewise.
14223 (Ffontset_info): Likewise.
14224
bba3e508 14225 * keymap.c (describe_vector): Adjust for the change of
708550f5
KH
14226 char_table_ref_and_range. For char-table, put boundary between
14227 non-ASCII and 8-bit characters.
14228
14229 * print.c (print_object): For bool-vector, delete unnecessary
14230 check of ASCII_BYTE_P.
14231
9196133b
JR
142322008-11-26 Jason Rumney <jasonr@gnu.org>
14233
14234 * w32font.c (w32font_open_internal): Don't include external
9acef61c 14235 leading in font height. (Bug#879)
9196133b 14236
9f688acf
GM
142372008-11-26 Glenn Morris <rgm@gnu.org>
14238
14239 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
14240 redefinition with ifdef. (Bug#1383)
14241
90d19aff
AR
142422008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
14243
14244 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
14245
4ccfa1c0 142462008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
14247
14248 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
14249 New EmacsView methods.
14250 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
14251 Fixes bug #1048,1357,1414.
14252
142532008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
14254
14255 Fix bug #1362.
14256 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
14257 is not an indexed color.
14258 * nsterm.m (free_indexed_color): Add argument checking.
14259 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
14260
e7d5ecb3
CY
142612008-11-24 Chong Yidong <cyd@stupidchicken.com>
14262
14263 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
14264 Document confirm-after-completion value for
14265 minibuffer-completion-confirm.
14266
c285743c
JR
142672008-11-24 Jason Rumney <jasonr@gnu.org>
14268
14269 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
14270 warning.
14271
b0857706
JR
142722008-11-23 Jason Rumney <jasonr@gnu.org>
14273
14274 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
14275 restored before returning.
14276
14277 * w32font.c (check_face_name): New function.
14278 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 14279 fonts. (Bug#642)
b0857706 14280
ee50ff07
MR
142812008-11-22 Martin Rudalics <rudalics@gmx.at>
14282
14283 * buffer.c (Fswitch_to_buffer): Reword and mention new option
14284 confirm-nonexistent-file-or-buffer in doc-string.
14285
b8ff72fa
SM
142862008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
14287
14288 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
14289 Fix copy/paste typo. Add checks.
14290
cee53ed4
KH
142912008-11-21 Kenichi Handa <handa@m17n.org>
14292
14293 * coding.c (detect_coding_iso_2022): Reject invalid composition
14294 sequence.
14295 (DECODE_COMPOSITION_START): If the current source is the last
14296 block, and the current composition doesn't end, regard this
14297 sequence as invalid.
14298 (decode_coding_iso_2022): Handle invalid composition sequence.
14299
f6ef1e65
MR
143002008-11-20 Martin Rudalics <rudalics@gmx.at>
14301
14302 * window.c (coordinates_in_window): Don't return
14303 ON_VERTICAL_BORDER for the rightmost position of a mode/header
14304 line when the window is not the rightmost one. (Bug#1372)
14305
e08b1705
MR
143062008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
14307
14308 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
14309
ad98e89f
EZ
143102008-11-15 Eli Zaretskii <eliz@gnu.org>
14311
14312 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
14313 and bright_bg if noninteractive is non-zero.
14314
fb098a4b
CY
143152008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14316
14317 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
14318 x_draw_glyph_string_background.
14319
14320 * w32term.c (x_draw_glyph_string): Likewise.
14321
ce952b6e
CY
143222008-11-15 Chong Yidong <cyd@stupidchicken.com>
14323
14324 * xterm.c (x_draw_glyph_string): Stop drawing the background of
14325 the next glyph string once past the overhang width.
14326
14327 * nsterm.m (ns_draw_glyph_string): Likewise.
14328
14329 * w32term.c (x_draw_glyph_string): Likewise.
14330
26ea7079
CY
143312008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
14332
14333 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
14334 double file close.
14335
1c33c906
MR
143362008-11-14 Martin Rudalics <rudalics@gmx.at>
14337
14338 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
14339 dedicated status of window before attempting to display another
14340 buffer in it.
14341
8fc29035
JB
143422008-11-14 Juanma Barranquero <lekktu@gmail.com>
14343
14344 * msdos.c (Fmsdos_long_file_names):
14345 (syms_of_msdos) <dos-unsupported-char-glyph>:
14346 * dosfns.c (Fint86): Fix typos in docstrings.
14347
55fb4286
EZ
143482008-11-14 Eli Zaretskii <eliz@gnu.org>
14349
14350 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
14351
3fda0315
KY
143522008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
14353
14354 * puresize.h (BASE_PURESIZE): Increase to 1260000.
14355
7e849c17
CY
143562008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
14357
14358 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
14359
14360 * frame.h: Negative alpha means "don't touch".
14361
14362 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
14363
14364 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
14365
b9fd67bd
DN
143662008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
14367
14368 * hftctl.c:
14369 * chpdef.h:
14370 * acldef.h: Remove files used only for systems no longer supported.
14371
14372 * Makefile.in: Fix .o alphabetical ordering.
14373 (hftctl.o): Remove dependency, file removed.
14374 (keymap.o, print.o): Depend on charset.h.
14375
d5998e03
KH
143762008-11-10 Kenichi Handa <handa@m17n.org>
14377
2ae37cf0 14378 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 14379
be70e183
CY
143802008-11-08 Chong Yidong <cyd@stupidchicken.com>
14381
14382 * dired.c (file_name_completion): If completion_ignore_case is
14383 enabled, ignore case when checking completion-regexp-list.
14384
7cf94eac
EZ
143852008-11-08 Eli Zaretskii <eliz@gnu.org>
14386
14387 * vm-limit.c (get_lim_data): Fix last change.
14388
ee107a89
KH
143892008-11-08 Kenichi Handa <handa@m17n.org>
14390
14391 * character.c (Fget_byte): New function.
14392 (syms_of_character): Defsubr Fget_byte.
14393
5fd15622
CY
143942008-11-07 Chong Yidong <cyd@stupidchicken.com>
14395
14396 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
14397 cursor position is valid after scrolling.
14398
13d62fad
JB
143992008-11-06 Juanma Barranquero <lekktu@gmail.com>
14400
14401 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
14402
a1dd2936
GM
144032008-11-06 Glenn Morris <rgm@gnu.org>
14404
14405 * xterm.c (handle_one_xevent): Don't let popup menus cause
14406 mouse-autoselect-window related window switching. (Bug#1261)
14407
860cd236
CY
144082008-11-04 David Smith <davidsmith@acm.org> (tiny change)
14409
14410 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
14411
653a3150
AS
144122008-11-04 Andreas Schwab <schwab@suse.de>
14413
14414 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
14415
870f5cac
CY
144162008-11-03 Chong Yidong <cyd@stupidchicken.com>
14417
14418 * xfns.c (Fx_wm_set_size_hint): New function.
14419
1e02f3cb
MR
144202008-11-03 Martin Rudalics <rudalics@gmx.at>
14421
14422 * textprop.c (Fprevious_single_char_property_change): Return 0
14423 when there's no change in a string. (Bug#1301)
14424
e630dfc6
MR
144252008-11-02 Martin Rudalics <rudalics@gmx.at>
14426
14427 * frame.c (do_switch_frame): New argument NORECORD passed to
14428 Fselect_window.
14429 (Fselect_frame): New argument NORECORD passed to
14430 do_switch_frame.
14431 (Fset_frame_selected_window): New argument NORECORD passed to
14432 Fselect_frame.
14433 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
14434 in call of do_switch_frame.
14435 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
14436 Handle NORECORD argument in call of Fselect_frame.
14437 * lisp.h (do_switch_frame, Fselect_frame)
14438 (Fset_frame_selected_window): Adjust declarations.
14439 * window.c (select_frame_norecord): New function.
14440 (run_window_configuration_change_hook): Use it and call
14441 Fselect_frame with NORECORD set.
14442 (Fselect_window): Pass NORECORD to Fselect_frame.
14443 (Fset_window_configuration): Handle NORECORD argument in call of
14444 do_switch_frame.
14445 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
14446 Fset_frame_selected_window.
14447 * keyboard.c (command_loop_1): Handle NORECORD in call of
14448 Fselect_frame (currently ifdefd).
14449
9020b223
GM
144502008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
14451
14452 * emacs.c (USAGE2): Untabify.
14453
793ffee8
SM
144542008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
14455
14456 * composite.c (fill_gstring_header): Fix copy/paste typo.
14457
ab6d1131
MR
144582008-10-31 Martin Rudalics <rudalics@gmx.at>
14459
14460 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
14461 (Fother_window): Rename argument and rewrite doc-string.
14462 (select_window_norecord): Fix return value. (Bug#1276)
14463
601a9cf1
JB
144642008-10-30 Juanma Barranquero <lekktu@gmail.com>
14465
14466 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
14467 new frames overriding foreground for tooltips. Based on similar patch
14468 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
14469
813b0652
CY
144702008-10-29 Chong Yidong <cyd@stupidchicken.com>
14471
14472 * emacs.c (Fdaemon_initialized): Initialize nfd.
14473
4414f58f
MR
144742008-10-29 Martin Rudalics <rudalics@gmx.at>
14475
14476 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
14477 (Fwindow_text_height): Clarify doc-strings.
14478 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
14479 doc-string of window-scroll-functions.
14480
ecdcaa09
RS
144812008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
14482
14483 * category.c (syms_of_category): Fix typo in docstring.
14484
23fe745a
JB
144852008-10-28 Juanma Barranquero <lekktu@gmail.com>
14486
14487 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
14488 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
14489 Fix typos in docstrings.
14490
ff808935
DN
144912008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
14492
14493 * emacs.c (daemon_pipe): Make non-static.
14494 (IS_DAEMON): Move definition ...
14495 * lisp.h (IS_DAEMON): ... here.
14496 (daemon_pipe): Declare.
14497 (is_daemon): Remove.
14498 * dispnew.c (init_display): Use IS_DAEMON.
14499
fc012771
SM
145002008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
14501
14502 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
14503 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
14504
14505 * emacs.c (is_daemon): Remove.
14506 (main): Don't set is_daemon.
14507 (IS_DAEMON): New macro.
14508 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 14509 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
14510 parent exits.
14511 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
14512
d8bdbe6f
CY
145132008-10-27 Chong Yidong <cyd@stupidchicken.com>
14514
d1a072bf
CY
14515 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
14516 over-sized glyph, draw it with the default glyph width.
14517
e2e325aa
CY
14518 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
14519 glyph, draw it with the default glyph width.
14520
14521 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
14522 glyph, draw it with the default glyph width.
14523
d8bdbe6f
CY
14524 * xdisp.c (try_scrolling): When computing the distance from the
14525 scroll margin to PT, try moving some distance past the window
14526 bottom before giving up.
14527
7bfac547
MR
145282008-10-27 Martin Rudalics <rudalics@gmx.at>
14529
14530 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
14531 (Fset_window_buffer): Explain in doc-string that a window can be
14532 "strongly" dedicated to its buffer.
14533
4ff029f6
DN
145342008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
14535
14536 * emacs.c (daemon_name): New variable.
14537 (main): Deal with --daemon=SERVER_NAME.
14538 (Fdaemonp): Return a name if one was passed to --daemon.
14539
5790ef40
DN
145402008-10-26 Romain Francoise <romain@orebokech.com>
14541
f9bd0df9 14542 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
14543 (main): Create a pipe before forking, make the parent exit only after
14544 the child has closed its end of the pipe. Move closing the
14545 descriptors ...
14546 (Fdaemon_initialized): ... here. New function.
14547
f5385255
SM
145482008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
14549
4d632321
SM
14550 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
14551 the previous unoptimized table.
14552
f5385255
SM
14553 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
14554 the distinction between non-nil and non-t value of `dedicated'.
14555
6c56a0f3
CY
145562008-10-25 Chong Yidong <cyd@stupidchicken.com>
14557
14558 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 14559 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 14560
fec89261
MR
145612008-10-25 Martin Rudalics <rudalics@gmx.at>
14562
14563 * window.c (Fget_buffer_window, Fdelete_windows_on)
14564 (Freplace_buffer_in_windows): Make buffer argument optional and
14565 rename to buffer_or_name.
14566
34fcddd0
CY
145672008-10-24 Chong Yidong <cyd@stupidchicken.com>
14568
f5385255
SM
14569 * xdisp.c (handle_single_display_spec, handle_display_prop):
14570 Undo 2005-05-16 change.
34fcddd0
CY
14571 (handle_stop): Pop iterator if it's loaded with an empty string.
14572 (get_overlay_strings_1): Don't save iterator if it's loaded with
14573 an empty string (bug#1201).
14574
064766f2
KH
145752008-10-24 Kenichi Handa <handa@m17n.org>
14576
14577 * ftfont.c (ftfont_otf_features): Fix previous change.
14578 (ftfont_otf_capability): Check FeatureList.FeatureCount before
14579 calling ftfont_otf_features.
14580
f9bd0df9 145812008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
14582
14583 * font.c (font_match_p): Fix for the case that a vector of
14584 characters is in script-representative-chars.
14585
1dae9197
MA
145862008-10-24 Michael Albinus <michael.albinus@gmx.de>
14587
14588 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 14589 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
14590 (xd_read_queued_messages): Catch Qdbus_error from the macros.
14591 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
777013f2 14592 macro. (Bug#1186)
1dae9197 14593
f9bd0df9 145942008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
14595
14596 * s/sol2-10.h: New file.
14597
878a4584
JB
145982008-10-23 Juanma Barranquero <lekktu@gmail.com>
14599
14600 * xdisp.c (fill_glyph_string): Fix typo in source (though the
14601 poor beast has survived 9+ years and the jump from xterm.c!).
14602
cd265ca6
MR
146032008-10-23 Martin Rudalics <rudalics@gmx.at>
14604
14605 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
14606 Reword doc-string.
f5385255 14607 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 14608
472a4dc9
JB
146092008-10-23 Juanma Barranquero <lekktu@gmail.com>
14610
14611 * character.c (syms_of_character) <script-representative-chars>:
14612 <unicode-category-table>: Doc fixes.
14613
159bd5a2
NF
146142008-10-23 Noah Friedman <friedman@splode.com>
14615
14616 * coding.c (make_conversion_work_buffer): Check that
14617 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
14618 Fget_buffer_create.
14619
49f9c344
KH
146202008-10-23 Kenichi Handa <handa@m17n.org>
14621
14622 * font.c (font_add_log): Check the values of extra properties.
14623
12bb3111
MR
146242008-10-22 Martin Rudalics <rudalics@gmx.at>
14625
14626 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
14627 Reword doc-string.
14628 (Fset_window_parameter): Use NILP.
14629 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 14630 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 14631
bbeb4e99
JB
146322008-10-22 Juanma Barranquero <lekktu@gmail.com>
14633
14634 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
14635
146362008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
14637
14638 * nsfns.m (ns_appkit_version): New function.
14639 (x-server-version): Use it.
14640 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
14641 (x-server-vendor): Don't check_ns().
14642
14643 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
14644
a9b555d3
JB
146452008-10-22 Juanma Barranquero <lekktu@gmail.com>
14646
14647 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
14648 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
14649
4626499f
KH
146502008-10-22 Kenichi Handa <handa@m17n.org>
14651
e3681952
KH
14652 * syntax.c (scan_words): Call word_boundary_p instead of comparing
14653 scripts.
14654
4626499f
KH
14655 * category.c (word_boundary_p): Check scripts instead of charset.
14656 Handle nil value in word-separating-categories and
14657 word-combining-categories.
14658 (syms_of_category): Fix docstrings of word-separating-categories
14659 and word-combining-categories.
14660
1560f91a
EZ
146612008-10-21 Eli Zaretskii <eliz@gnu.org>
14662
14663 * coding.c (Fencode_coding_region, Fdecode_coding_region)
14664 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
14665
f4668441
MR
146662008-10-21 Martin Rudalics <rudalics@gmx.at>
14667
14668 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
14669 Rename arg "buffer" to "buffer_or_name".
14670 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
14671 it optional.
14672 (no_switch_window): Remove since the return value is not used.
a9b555d3 14673 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
14674 Consider window as dedicated when Fwindow_dedicated_p returns a
14675 non-nil value.
14676 * lisp.h: Remove prototype for no_switch_window.
14677
fd75ddb2
JD
146782008-10-21 Jan Djärv <jan.h.d@swipnet.se>
14679
14680 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 14681 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 14682
07295713
KH
146832008-10-21 Kenichi Handa <handa@m17n.org>
14684
14685 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
14686 check Vlatin_extra_code_table.
14687
712adc82
EZ
146882008-10-20 Eli Zaretskii <eliz@gnu.org>
14689
14690 * fileio.c (Fset_file_modes): Doc fix.
14691
f549eb0b
MA
146922008-10-19 Michael Albinus <michael.albinus@gmx.de>
14693
14694 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
14695 in arrays.
14696
aac0c6e3
MR
146972008-10-19 Martin Rudalics <rudalics@gmx.at>
14698
14699 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
14700 Mention kill-buffer in doc-string.
14701 (Fset_window_buffer): Reinsert tem check removed in last commit.
14702 (Fenlarge_window, Fshrink_window): Have argument names and
14703 doc-string follow Elisp manual more closely.
14704
147052008-10-18 Eli Zaretskii <eliz@gnu.org>
14706
14707 * fileio.c (Fset_file_modes): Doc fix.
14708
147092008-10-18 Martin Rudalics <rudalics@gmx.at>
14710
14711 * window.c (Fwindow_width, Fset_window_start)
14712 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
14713 (Fdelete_windows_on, Freplace_buffer_in_windows):
14714 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
14715 (Fwindow_dedicated_p): Make window argument optional.
14716 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
14717 (Fset_window_buffer): Respect any non-nil dedicated value for
14718 window. Rename "buffer" argument to "buffer_or_name".
14719
147202008-10-18 Ulrich Mueller <ulm@gentoo.org>
14721
14722 * m/sh3.h: New file, machine description for SuperH.
14723
147242008-10-17 Martin Rudalics <rudalics@gmx.at>
14725
14726 * window.c (Fsplit_window): Rename arg horflag to horizontal.
14727
147282008-10-17 Kenichi Handa <handa@m17n.org>
14729
14730 * ftfont.c (ftfont_otf_features): Fix indexing
14731 gsub_gpos->FeatureList.Feature. Check the validity of indices.
14732
147332008-10-16 Magnus Henoch <mange@freemail.hu>
14734
14735 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
14736 (Fdbus_call_method_asynchronously): Ditto.
14737 This change makes C-h f display the argument list.
14738
147392008-10-16 Chong Yidong <cyd@stupidchicken.com>
14740
14741 * fileio.c (Fexpand_file_name): Doc fix.
14742
14743 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
14744 of :foreground and :background equivalent to unspecified (20.x
14745 compatibility).
14746
147472008-10-15 Eli Zaretskii <eliz@gnu.org>
14748
14749 * buffer.c (syms_of_buffer): Doc fix.
14750
147512008-10-14 Kenichi Handa <handa@m17n.org>
14752
14753 * font.c (font_clear_prop): When clearing font width, clear the
14754 average width field too.
14755
147562008-10-12 Andreas Schwab <schwab@suse.de>
14757
14758 * ftfont.c (ftfont_shape_by_flt): Make static.
14759 * ftfont.h (ftfont_shape_by_flt): Don't declare.
14760
14761 * font.c: Don't include <m17n-flt.h>.
14762
147632008-10-10 Eli Zaretskii <eliz@gnu.org>
14764
14765 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
14766
147672008-10-09 Eli Zaretskii <eliz@gnu.org>
14768
14769 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
14770 away code.
14771
147722008-10-09 Chong Yidong <cyd@stupidchicken.com>
14773
14774 * dispnew.c (update_text_area): Avoid looping due to large glyph
14775 overhangs (bug#1070).
14776
147772008-10-09 Kenichi Handa <handa@m17n.org>
14778
14779 * fontset.c (face_for_char): If face->fontset is negative, just
14780 return ascii_face.
14781
f5385255
SM
14782 * font.c (font_delete_unmatched): Fix previous change.
14783 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
14784
147852008-10-09 Martin Rudalics <rudalics@gmx.at>
14786
14787 * frame.c (Fraise_frame): On text-only terminals select frame in
14788 order to make it visible. (Bug#1061)
14789
147902008-10-08 Chong Yidong <cyd@stupidchicken.com>
14791
14792 * fontset.c (fontset_find_font): Check frame validity.
14793
147942008-10-07 Chong Yidong <cyd@stupidchicken.com>
14795
a9b555d3 14796 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
14797 (xg_display_close): Allow Emacs to close all displays (bug#985).
14798
147992008-10-06 Andreas Schwab <schwab@suse.de>
14800
f5385255 14801 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
14802
148032008-10-06 Chong Yidong <cyd@stupidchicken.com>
14804
f5385255 14805 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 14806
a9b555d3 14807 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
14808
14809 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
14810 during initialization.
14811
148122008-10-04 Eli Zaretskii <eliz@gnu.org>
14813
14814 * xdisp.c (redisplay_internal): If frame switched, redisplay the
14815 whole thing on MSDOS frames as well as on a TTY.
14816
14817 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
14818 well as for TTY.
14819 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
14820 well as on a TTY.
14821
14822 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
14823 as well as for TTY.
14824
14825 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
14826
14827 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
14828 MSDOS frames as well.
14829
148302008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
14831
14832 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
14833 correct arguments.
b71ac3dd 14834 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
14835
148362008-10-03 Glenn Morris <rgm@gnu.org>
14837
14838 * emacs.c (USAGE1): Add --daemon.
14839
148402008-10-02 Eli Zaretskii <eliz@gnu.org>
14841
14842 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
14843 100, so it's in percents as advertised.
14844
148452008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
14846
14847 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
14848 (ns_output.current_cursor, ns_output.desired_cursor)
14849 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
14850 (FRAME_NEW_CURSOR_COLOR): Remove.
14851
14852 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 14853 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
14854 enumeration (HOLLOW_BOX_CURSOR, etc.).
14855
14856 * nsterm.m (ns_frame_rehighlight): Remove commented code.
14857 (draw_window_cursor): Simplify code.
f5385255
SM
14858 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
14859 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 14860 updates manually.
a9b555d3
JB
14861 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
14862 Use core Emacs cursor types.
aac0c6e3 14863
b8ff72fa 14864 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
14865
148662008-10-02 Martin Rudalics <rudalics@gmx.at>
14867
14868 * process.c (Faccept_process_output): Fix doc-string.
14869
148702008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
14871
14872 * gmalloc.c (__sbrk): Also define for uClibc.
14873
14874 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
14875 for uClibc.
14876
148772008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
14878
14879 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
14880 styles.
14881 (nsfont_open): Reenable the cache.
14882
148832008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
14884
14885 * font.c (font_matching_entity): Reflect ATTRS in font selection.
14886 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
14887
148882008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
14889
14890 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
14891 a suspended terminal.
14892
148932008-09-30 Michael Albinus <michael.albinus@gmx.de>
14894
14895 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
14896
148972008-09-30 Eli Zaretskii <eliz@gnu.org>
14898
14899 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
14900
149012008-09-30 Chong Yidong <cyd@stupidchicken.com>
14902
14903 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
14904 in a continued line coincides with a line beginning.
14905
149062008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
14907
14908 * nsfont.m (nsfont_trait_distance): Fix bug.
14909 (nsfont_list): Return a list rather than a vector (syncs with Handa
14910 changes of 2008-05-14).
14911 (nsfont_open): Improve logging.
14912
149132008-09-29 Andreas Schwab <schwab@suse.de>
14914
14915 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
14916
149172008-09-28 Martin Rudalics <rudalics@gmx.at>
14918
14919 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
14920 name as char-resolve-modifiers.
14921 Reported by: Markus Triska <markus.triska@gmx.at>
14922
149232008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
14924
14925 * dispnew.c (init_display): Return earlier when running as a daemon.
14926
149272008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
14928
14929 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
14930
149312008-09-27 Eli Zaretskii <eliz@gnu.org>
14932
14933 * composite.c (Fcomposition_get_gstring)
14934 (Fcompose_region_internal, Fcompose_string_internal)
14935 (Ffind_composition_internal): Doc fix.
14936 (syms_of_composite) <compose-chars-after-function>: Doc fix.
14937 (syms_of_composite) <auto-composition-function>: Doc fix.
14938 (syms_of_composite) <composition-function-table>: Doc fix.
14939
149402008-09-25 Chong Yidong <cyd@stupidchicken.com>
14941
14942 * search.c (wordify): New argument for lax word-ends.
14943 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
14944
149452008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
14946
14947 * lisp.h (is_daemon): Declare.
14948 * dispnew.c (init_display): Do not try to initialize the terminal
14949 when running as a daemon.
14950
149512008-09-22 Chong Yidong <cyd@stupidchicken.com>
14952
14953 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
14954 x_display_pixel_height.
14955
149562008-09-22 Martin Rudalics <rudalics@gmx.at>
14957
14958 * undo.c (record_point): Don't call Fundo_boundary for first
14959 change. (Bug#731)
14960
149612008-09-22 Juanma Barranquero <lekktu@gmail.com>
14962
14963 * emacs.c (Fdaemonp): Doc fix.
14964
149652008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
14966
14967 * emacs.c (main): Place #ifdef in the proper place.
14968
149692008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
14970
14971 * emacs.c (standard_args): Add --daemon.
14972 (main): Disconnect from the terminal when --daemon is passed.
14973 (is_daemon): New variable.
14974 (Fdaemonp): New function.
14975 (syms_of_emacs): Defsubr it.
14976
149772008-09-20 Chong Yidong <cyd@stupidchicken.com>
14978
14979 * xdisp.c (get_next_display_element): Handle string display
14980 correctly when checking for the end of a box run.
14981
149822008-09-20 Glenn Morris <rgm@gnu.org>
14983
14984 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
14985 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
14986 (Frename_file): Avoid copying to trash if a rename involves
14987 a delete. (Bug#964).
14988
149892008-09-20 Eli Zaretskii <eliz@gnu.org>
14990
14991 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
14992 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
14993 frames as well as termcap frames.
14994 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
14995 get_named_tty.
14996
149972008-09-19 Eli Zaretskii <eliz@gnu.org>
14998
14999 * process.c (procfs_system_process_attributes): Fix cmdline in
15000 case /proc/PID/cmdline is empty.
15001
15002 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
15003 x_display_pixel_height.
15004
150052008-09-19 Juanma Barranquero <lekktu@gmail.com>
15006
15007 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
15008
15009 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
15010 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
15011
150122008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
15013
15014 * dispextern.h (struct it): Move line_wrap away from the middle of
15015 bitfields. Move voffset in struct iterator_stack_entry after the
15016 bitfields. Move tab_width near after another short.
15017
150182008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
15019
15020 * frame.h (struct frame): Move alpha from the middle of bitfields.
15021
15022 * window.h (struct window): Move frozen_window_start_p after the
15023 rest of the bitfields to reduce padding.
15024
150252008-09-18 Chong Yidong <cyd@stupidchicken.com>
15026
15027 * xterm.h (x_display_info): Remove `height' and `width' members.
15028
15029 * nsterm.h (ns_display_info): Remove `height' and `width' members.
15030
15031 * w32term.h (w32_display_info): Remove `height', `width',
15032 `height_in', and `width_in' members.
15033
b8ff72fa
SM
15034 * xterm.c (x_display_pixel_height, x_display_pixel_width):
15035 New functions.
aac0c6e3
MR
15036 (x_calc_absolute_position): Use them.
15037 (x_term_init): Omit removed `height' and `width' members.
15038
b8ff72fa
SM
15039 * w32term.c (x_display_pixel_height, x_display_pixel_width):
15040 New functions.
aac0c6e3
MR
15041 (w32_read_socket, x_calc_absolute_position): Use them.
15042 (w32_initialize_display_info, w32_term_init): Omit removed members
15043 of w32_display_info.
15044
b8ff72fa
SM
15045 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
15046 New functions.
15047 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 15048
b8ff72fa
SM
15049 * xterm.c (x_display_pixel_height, x_display_pixel_width):
15050 New functions.
aac0c6e3
MR
15051 (x_calc_absolute_position): Use them.
15052 (x_term_init): Omit removed `height' and `width' members.
15053
15054 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
15055 (compute_tip_xy):
15056 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
15057 * xmenu.c (menu_position_func): Use x_display_pixel_height and
15058 x_display_pixel_width.
15059
150602008-09-18 Kenichi Handa <handa@m17n.org>
15061
15062 * composite.c (fill_gstring_header): Don't check FROM and TO here.
15063 (composition_compute_stop_pos): Fix handling of static composition.
15064 (Fcomposition_get_gstring): Check FROM and TO at first.
15065
150662008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
15067
46e722a9 15068 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
15069 mixup (YAILOM).
15070
150712008-09-17 Chong Yidong <cyd@stupidchicken.com>
15072
15073 * indent.c (Fvertical_motion): Use position reported by iterator
15074 instead of PT for determining screen motion (bug#943).
15075
150762008-09-17 Romain Francoise <romain@orebokech.com>
15077
15078 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
15079
150802008-09-17 Kenichi Handa <handa@m17n.org>
15081
15082 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
15083
15084 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
15085 if necessary.
15086
150872008-09-16 Kenichi Handa <handa@m17n.org>
15088
15089 * coding.c (make_conversion_work_buffer): Avoid calling
15090 Fget_buffer_create if it is not necessary.
15091
150922008-09-15 Martin Rudalics <rudalics@gmx.at>
15093
15094 * window.c (Fselect_window): Don't update window_select_count and
15095 use_time when norecord is not nil.
15096
150972008-09-14 Kenichi Handa <handa@m17n.org>
15098
15099 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
15100 specpdl_ptr.
15101
151022008-09-12 Kenichi Handa <handa@m17n.org>
15103
15104 * indent.c (scan_for_column): Don't handle automatic composition
15105 if the current buffer is not associated with a window.
15106
15107 * composite.c (composition_reseat_it): If the current buffer is
15108 not associated with a window, ignore the automatic composition.
15109 (find_automatic_composition): Likewise.
15110
151112008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
15112
15113 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
15114 (Fgpm_mouse_stop): Use it.
15115 * termhooks.h (close_gpm): Declare.
15116 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
15117 connection if Gpm_GetEvent fails.
15118
15119 * window.c (set_window_buffer): Always preserve current-buffer.
15120
151212008-09-12 Glenn Morris <rgm@gnu.org>
15122
15123 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
15124
151252008-09-11 Glenn Morris <rgm@gnu.org>
15126
15127 * charset.c (charset-map-path): Doc fix.
15128
151292008-09-10 Kenichi Handa <handa@m17n.org>
15130
15131 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
15132
15133 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
15134 compose a grapheme cluster with the preceding base glyph.
15135
15136 * composite.c (composition_compute_stop_pos): Fix previous change.
15137 Reset cmp_it->id to -1 at first.
15138
151392008-09-10 Glenn Morris <rgm@gnu.org>
15140
15141 * Makefile.in (character.o, chartab.o): Fix config.h typo.
15142
151432008-09-09 Chong Yidong <cyd@stupidchicken.com>
15144
15145 * keyboard.c (read_key_sequence): Reapply translation maps when
15146 switching keyboards.
15147
151482008-09-09 Kenichi Handa <handa@m17n.org>
15149
15150 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
15151 characters.
15152
15153 * composite.c (FORWARD_CHAR): Fix calculation
15154 of (POSITION).pos_byte.
15155 (composition_compute_stop_pos): Limit the search of composition to
15156 at most 500 characters ahead. If we reach the limit or find a
15157 newline, set cmp_it->ch to -2 and return 0.
15158 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
15159
151602008-09-08 Kenichi Handa <handa@m17n.org>
15161
15162 * indent.c (Fvertical_motion): Be sure to set
15163 it_overshoot_expected if it.cmp_it.id is non-negative.
15164
151652008-09-07 Andreas Schwab <schwab@suse.de>
15166
15167 * callproc.c (Fcall_process): Don't hold references to string data
15168 across garbage collection. Move initialisation of new_argv down
15169 to avoid compiler bug.
15170
151712008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
15172
15173 * process.c (Fsystem_process_attributes): Doc fix.
15174
151752008-09-07 Chong Yidong <cyd@stupidchicken.com>
15176
15177 * callproc.c (Fcall_process): Canonicalize current directory name.
15178
15179 * xdisp.c (move_it_to): When moving by vpos, ensure that the
15180 iterator advances to the next line if the current line ends in a
15181 continued tab.
15182
151832008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
15184
15185 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
15186 member to point to cmp_from.
15187
15188 * xdisp.c: Doc fix for references to gidx data member.
15189
151902008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
15191
15192 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
15193
151942008-09-07 Kenichi Handa <handa@m17n.org>
15195
15196 * composite.c (FORWARD_CHAR): Check STOP after
15197 incrementing (POSITION).pos.
15198
151992008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
15200
15201 * process.c (Fsystem_process_attributes): Doc fix.
15202
152032008-09-06 Chong Yidong <cyd@stupidchicken.com>
15204
15205 * keyboard.c (Ftop_level): Doc fix.
15206
152072008-09-06 Eli Zaretskii <eliz@gnu.org>
15208
15209 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
15210 minibuffer, don't let lower part of menu invade the echo area.
15211
15212 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
15213 "char *q" to access menu text and advance through it. Revert the
15214 change that displayed ">" instead of ASCII character 0x10.
15215
152162008-09-05 Eli Zaretskii <eliz@gnu.org>
15217
15218 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
15219 toggle boxes and radio buttons on MS-DOS as well.
15220
152212008-09-05 Kenichi Handa <handa@m17n.org>
15222
15223 * composite.c (autocmp_chars): Check lookback count.
15224 (composition_compute_stop_pos): Set cmp_it->lookback.
15225 (composition_reseat_it): Check lookback count.
15226 (struct position_record): New struct.
15227 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
15228 (find_automatic_composition): New function.
15229 (composition_adjust_point): Use find_automatic_composition.
15230
15231 * dispextern.h (struct composition_it): New member lookback.
15232
152332008-09-02 Chong Yidong <cyd@stupidchicken.com>
15234
15235 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
15236 if moving by a single line.
15237
152382008-09-02 Andreas Schwab <schwab@suse.de>
15239
15240 * xterm.c (x_delete_display): Fix merge error.
15241
15242 * fileio.c (Fexpand_file_name): Remove unused variables.
15243
152442008-09-02 Eli Zaretskii <eliz@gnu.org>
15245
15246 * fileio.c (Fexpand_file_name): Copy argument `name' into local
15247 storage on all platforms, not just on DOS_NT.
15248
152492008-09-02 Jason Rumney <jasonr@gnu.org>
15250
b8ff72fa
SM
15251 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
15252 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
15253
152542008-09-01 Chong Yidong <cyd@stupidchicken.com>
15255
15256 * xfaces.c (Finternal_set_alternative_font_family_alist)
15257 (Finternal_set_alternative_font_registry_alist): Properly copy
15258 entire alist structure.
15259
152602008-09-01 Kenichi Handa <handa@m17n.org>
15261
d66c0241 15262 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 15263 representative chars of the script is a vector.
d66c0241
JB
15264 (ftfont_list): Handle the case where the representative chars of
15265 the script is a vector.
aac0c6e3
MR
15266
15267 * character.c (syms_of_character): Docstring of
15268 script-representative-chars fixed.
15269
152702008-08-31 Eli Zaretskii <eliz@gnu.org>
15271
15272 * msdos.c (BUILD_CHAR_GLYPH): New macro.
15273 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
15274 the menu. Allocate larger buffer for `text', to account for
15275 possible ^C characters.
15276
152772008-08-31 Martin Rudalics <rudalics@gmx.at>
15278
15279 * xdisp.c (prepare_menu_bars): Don't call
15280 Vwindow_size_change_functions with arg Qt.
15281
152822008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
15283
15284 * font.h (font_range):
15285 * fileio.c (report_file_error):
46e722a9
SM
15286 * composite.c (composition_update_it): Yet another int/Lisp_Object
15287 mixup (YAILOM).
aac0c6e3
MR
15288
152892008-08-30 Glenn Morris <rgm@gnu.org>
15290
15291 * data.c (Fmake_variable_frame_local): Doc fix.
15292
15293 * frame.c (Fmodify_frame_parameters): Doc fix.
15294
152952008-08-30 Eli Zaretskii <eliz@gnu.org>
15296
15297 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
15298 needed by GetTokenInformation.
15299 (w32_system_process_attributes): Check return values of all system
15300 APIs.
15301
15302 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
15303 only when the state changes.
15304 (IT_update_begin, IT_update_end): Add termscript trace.
15305
15306 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
15307 clipboard is unavailable. Set dst to NULL if it doesn't point to
15308 malloc'ed data.
15309 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
15310 passing random values to xfree.
15311
15312 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 15313 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
15314
153152008-08-29 Jason Rumney <jasonr@gnu.org>
15316
15317 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
15318
153192008-08-29 Eli Zaretskii <eliz@gnu.org>
15320
15321 * composite.c (fill_gstring_body): Avoid compiler warnings.
15322
15323 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
15324 LGLYPH_SET_CODE to avoid compiler warnings.
15325
2ae37cf0 15326 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
15327
15328 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
15329
15330 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
15331 LGLYPH_SET_CODE.
15332
153332008-08-29 Kenichi Handa <handa@m17n.org>
15334
15335 * fileio.c (report_file_error): Don't downcase the first character
15336 of errstring if it is still unibyte.
15337
153382008-08-29 Kenichi Handa <handa@m17n.org>
15339
15340 These changes are to re-implement the automatic composition so
15341 that it doesn't use text properties.
15342
15343 * Makefile.in (ftfont.o): Depend on composite.h.
15344 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
15345
15346 * character.h (Vunicode_category_table): Extern it.
15347
15348 * character.c (Vunicode_category_table): New variable.
15349 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
15350
15351 * chartab.c (optimize_sub_char_table): Perform more greedy
15352 optimization.
15353
b8ff72fa
SM
15354 * composite.h (enum composition_method):
15355 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
15356 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
15357 (Vcomposition_function_table): Extern it.
15358 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
15359 (composition_gstring_put_cache, composition_gstring_from_id)
15360 (composition_gstring_p, composition_gstring_width)
15361 (composition_compute_stop_pos, composition_reseat_it)
15362 (composition_update_it, composition_adjust_point): Extern them.
15363 (Fcomposition_get_gstring): EXFUN it.
15364
d66c0241 15365 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
15366 (Vcomposition_function_table)
15367 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
15368 (gstring_hash_table, gstring_work, gstring_work_headers):
15369 New variables.
aac0c6e3
MR
15370 (gstring_lookup_cache, composition_gstring_put_cache)
15371 (composition_gstring_from_id, composition_gstring_p)
15372 (composition_gstring_width, fill_gstring_header)
15373 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
15374 (composition_reseat_it, composition_update_it)
b8ff72fa 15375 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
15376 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
15377 and gstring_work_headers. DEFVAR_LISP composition-function-table.
a73f9c9d 15378 Defsubr composition_get_gstring.
aac0c6e3
MR
15379
15380 * dispextern.h (struct glyph): New union u.cmp. Delete the member
15381 cmp_id.
15382 (struct glyph_string): Delete the member gidx. New members
15383 cmp_id, cmp_from, and cmp_to.
15384 (enum it_method): Delete GET_FROM_COMPOSITION.
15385 (struct composition_it): New struct.
15386 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
15387 Delete c, len, cmp_id, cmp_len in u.comp.
15388
15389 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 15390 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 15391 (enum lglyph_indices): Likewise.
b8ff72fa 15392 (font_range): Adjust extern.
aac0c6e3
MR
15393 (font_fill_lglyph_metrics): Extern it.
15394
15395 * font.c (QCf): New variable.
15396 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
15397 (font_prepare_composition): Delete this function.
15398 (font_range): Type and arguments changed.
15399 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
15400 (font_fill_lglyph_metrics): New function.
b8ff72fa 15401 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 15402 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
15403 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
15404 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
15405
15406 * fontset.h (font_for_char): Extern it.
15407
15408 * fontset.c (font_for_char): New function.
15409
15410 * ftfont.c: Include composite.h.
15411 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 15412 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
15413
15414 * indent.c: Include composite.h and dispextern.h.
15415 (check_composition): Delete this function.
15416 (scan_for_column): Handle composition by
15417 composition_compute_stop_pos, composition_reseat_it, and
15418 composition_update_it.
15419 (compute_motion): Likewise.
15420 (Fvertical_motion): Fix checking of composition.
15421
15422 * keyboard.c (adjust_point_for_property): Check composition by
15423 composition_adjust_point.
15424
b8ff72fa 15425 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
15426 struct glyph_string.
15427
b8ff72fa
SM
15428 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
15429 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
15430 struct glyph.
15431 (produce_composite_glyph): Likewise.
15432
b8ff72fa
SM
15433 * w32term.c (x_draw_composite_glyph_string_foreground):
15434 Adjust for the change of struct glyph_string.
aac0c6e3
MR
15435 (x_draw_glyph_string): Likewise.
15436
15437 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
15438 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
15439
15440 * xdisp.c: Include font.h.
15441 (it_props): Delete the entry for Qauto_composed.
15442 (init_iterator): Initialize it->cmp_it.id to -1.
15443 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 15444 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
15445 (handle_auto_composed_prop): Delete it.
15446 (handle_composition_prop): Handle only static composition.
15447 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
15448 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 15449 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
15450 (pop_it): Likewise.
15451 (get_next_element): Delete next_element_from_composition.
15452 (CHAR_COMPOSED_P): New macro.
15453 (get_next_display_element): For automatic composition, get a face
15454 from the font in the glyph-string.
15455 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 15456 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
15457 (next_element_from_string): Check if the character at the current
15458 position is composed by CHAR_COMPOSED_P.
15459 (next_element_from_buffer): Likewise.
d66c0241
JB
15460 (next_element_from_composition): Adjust for the change of struct it.
15461 Update it->cmp_it.
b8ff72fa
SM
15462 (dump_glyph): Adjust for the change of struct glyph.
15463 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
15464 it and struct glyph. Don't handle automatic composition here.
15465 (fill_gstring_glyph_string): New function.
15466 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 15467 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
15468 (BUILD_GSTRING_GLYPH_STRING): New macro.
15469 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
15470 automatic composition.
b8ff72fa 15471 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 15472 struct glyph.
b8ff72fa 15473 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 15474
b8ff72fa 15475 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
15476 the change of struct glyph_string.
15477 (x_draw_glyph_string): Likewise.
15478
154792008-08-29 Glenn Morris <rgm@gnu.org>
15480
15481 * buffer.c (word-wrap): Doc fix.
15482 * xdisp.c (truncate-partial-width-windows): Doc fix.
15483 Increase default to 50.
15484
154852008-08-29 Chong Yidong <cyd@stupidchicken.com>
15486
15487 * xdisp.c (update_tool_bar_unwind): New function.
15488 (update_tool_bar): Temporarily set selected frame before building
15489 tool-bar items.
15490
154912008-08-28 Michael Albinus <michael.albinus@gmx.de>
15492
15493 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
15494 snprintf, respectively.
15495 (xd_append_arg): Convert strings with Fstring_make_unibyte.
15496
154972008-08-28 Chong Yidong <cyd@stupidchicken.com>
15498
15499 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
15500 LDFLAGS to GNUstep CC invocation.
15501
155022008-08-27 Chong Yidong <cyd@stupidchicken.com>
15503
15504 * indent.c (Fvertical_motion): Revert last change. Handle the
15505 general case where we are moving forward, and PT spans multiple
15506 screen lines.
15507
15508 * eval.c (find_handler_clause): Temporarily increase
15509 max-lisp-eval-depth while printing the backtrace buffer, to
15510 guarantee that help-mode code can run.
15511
155122008-08-27 Eli Zaretskii <eliz@gnu.org>
15513
15514 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
15515 colors under -rv.
15516 (IT_set_frame_parameters): Don't swap foreground and background
15517 colors if `(reverse . t)' is present in the frame properties.
15518 (internal_terminal_init): Call init_frame_faces only for the
15519 initial frame.
15520
155212008-08-27 Andreas Schwab <schwab@suse.de>
15522
15523 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
15524
155252008-08-27 Andreas Schwab <schwab@suse.de>
15526
15527 * search.c (search_buffer): Set char_base to zero only at the end.
15528
155292008-08-27 Kenichi Handa <handa@m17n.org>
15530
b8ff72fa 15531 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
15532
155332008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
15534
15535 * xterm.c (x_term_init): Temporarily hide the partially
15536 initialized terminal while calling vendor-specific-keysyms.
15537
155382008-08-26 Eli Zaretskii <eliz@gnu.org>
15539
15540 * msdos.c (internal_terminal_init): Most initializations done only
15541 once, especially initial_screen_colors[] and termscript open.
15542
155432008-08-26 Chong Yidong <cyd@stupidchicken.com>
15544
15545 * eval.c (Fcondition_case): Doc fix.
15546
15547 * widgetprv.h (EmacsFramePart): Change font member to the new font
15548 struct.
15549
15550 * widget.c: Include character.h and font.h for XSETFONT.
15551 (setup_frame_gcs): Compute X font id from font struct, just once.
15552
155532008-08-26 Eli Zaretskii <eliz@gnu.org>
15554
15555 * term.c (get_named_tty): Fix last change.
15556
155572008-08-26 Chong Yidong <cyd@stupidchicken.com>
15558
15559 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 15560 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
15561
155622008-08-25 Eli Zaretskii <eliz@gnu.org>
15563
15564 * frame.c (do_switch_frame): Mark previously displayed frame as
15565 obscured for FRAME_MSDOS_P frames as well.
15566
155672008-08-24 Eli Zaretskii <eliz@gnu.org>
15568
15569 * frame.c (make_terminal_frame): Initialize f->terminal,
15570 f->terminal->reference_count, and scroll bars on MS-DOS as well.
15571 Set the top frame to newly created frame.
15572 (Fmake_terminal_frame): Reuse the_only_display_info.
15573
15574 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
15575 estimating available memory.
15576
b97439ce 155772008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
15578
15579 * nsterm.m (ns_draw_window_cursor): Don't call
15580 NSDisableScreenUpdates and NSEnableScreenUpdates on
15581 non-NS_IMPL_COCOA systems.
15582
155832008-08-23 Andreas Schwab <schwab@suse.de>
15584
15585 * process.c (procfs_system_process_attributes): Fix use of
15586 uninitialized variables.
15587
155882008-08-23 Eli Zaretskii <eliz@gnu.org>
15589
15590 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
15591
15592 * dispnew.c (init_display): Remove MS-DOS specific conditions for
15593 calling tty-set-up-initial-frame-faces.
15594
b8ff72fa
SM
15595 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
15596 Allow MSDOS frames along with X frames.
aac0c6e3
MR
15597
15598 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
15599 addition to output_termcap.
15600
15601 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
15602
15603 * termchar.h (FRAME_TTY): Support output_msdos_raw.
15604 (struct tty_display_info) [MSDOS]: Add fields related to mouse
15605 highlight.
15606
15607 * process.c [!subprocesses]: Define QCname.
15608 (syms_of_process): Intern and staticpro it.
15609
15610 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
15611 Adjust for changes in encoding/decoding routines.
15612 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
15613 encode_coding and decode_coding.
15614
b8ff72fa 15615 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
15616
15617 * dosfns.c: Include frame.h before termhooks.h.
15618 (dos_cleanup): Use CURTTY ()->termscript instead of a global
15619 variable termscript.
15620
15621 * s/msdos.h (USER_FULL_NAME): Define.
15622 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
15623
15624 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
15625 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
15626 pw->pw_gecos.
15627
15628 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
15629 SELECTED_FRAME as additional (1st) argument.
15630 (tty_read_avail_input): Handle output_msdos_raw in
15631 addition to output_termcap.
15632
15633 * msdos.c: Include frame.h before termhooks.h.
15634 (mouse_on, mouse_off, mouse_moveto, mouse_init)
15635 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
15636 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
15637 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
15638 (IT_set_terminal_modes, IT_reset_terminal_modes)
15639 (IT_set_frame_parameters): Use tty->termscript instead of a global
15640 variable termscript.
15641 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
15642 global variable terminal_coding. Don't refer to
15643 Vnonascii_translation_table.
15644 (internal_terminal_init): Set Vwindow_system in current_kboard.
15645 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
15646 Announce date and time of session start, if termscript is open.
15647 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
15648 term.c:init_tty). Open termscript only of not already open.
15649 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
15650 here instead of dos_ttraw. Don't initialize display if this is an
15651 initial tty. Don't set FRAME_FONT.
15652 (Vwindow_system_version): Bump to 23.
15653 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
15654 is available, set up mouse_position_hook.
15655 (dos_ttraw, IT_set_terminal_modes): If called with initial
15656 terminal, do nothing.
15657 (IT_set_frame_parameters): Handle the Qtty_type frame
15658 parameter by calling internal_terminal_init.
15659 (dos_set_window_size, show_mouse_face)
15660 (clear_mouse_face, IT_note_mode_line_highlight)
15661 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
15662 (dos_rawgetc): Use tty_display_info instead of x_display_info.
15663 (initialize_msdos_display): New function.
15664 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
15665 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
15666 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
15667 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 15668 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
15669 (request_sigio, unrequest_sigio): Don't define, now defined on
15670 sysdep.c.
15671 (IT_write_glyphs): Rewrite to use encode_terminal_code.
15672
15673 * term.c [MSDOS]: Include msdos.h.
15674 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
15675 conditional to DOS_NT. Allow only one call to this function in a
15676 session. Don't allocate a new struct tty_display_info; instead,
15677 reuse the_only_display_info. Call get_tty_size to get screen
15678 dimensions. Call init_baud_rate to set bad_rate.
15679 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
15680 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 15681 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
15682 (get_tty_terminal, get_named_tty, Ftty_type)
15683 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
15684 output_termcap.
b8ff72fa
SM
15685 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
15686 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 15687 only when subprocesses are supported.
aac0c6e3
MR
15688
15689 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
15690 f->output_data.x.
15691 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
15692 terminal devices.
15693
5582fbc7 15694 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
15695 x_output.
15696 (FRAME_FONT): Use output_data.tty.
15697 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
15698 (struct x_display_info): Rename from display_info. Update all users in
15699 msdos.c.
aac0c6e3 15700 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 15701 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
15702 (dos_ttraw): Update prototype.
15703
15704 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
15705 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
15706
157072008-08-23 Jason Rumney <jasonr@gnu.org>
15708
15709 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
15710 (fn_TIFFSetDirectory): New library function used.
15711 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
15712 (tiff_load): Use :index to select among multiple images. Set count
15713 property when multiple images exist.
15714 (gif_format): Use :index, not :image.
15715
157162008-08-23 Chong Yidong <cyd@stupidchicken.com>
15717
15718 * xdisp.c (try_scrolling): Check INT_MAX instead of
15719 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
15720 to obtain INT_MAX.
15721
157222008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
15723
15724 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
15725
157262008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
15727
15728 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
15729 GNUstep library location.
15730
157312008-08-21 Chong Yidong <cyd@stupidchicken.com>
15732
15733 * xfaces.c (x_update_menu_appearance): Check validity of menu font
15734 before using it.
15735
15736 * puresize.h (BASE_PURESIZE): Increase to 1250000.
15737
157382008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
15739
15740 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
15741 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
15742 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
15743 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
15744 (EmacsApp-cursor_blink_handler): Remove declaration.
15745 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
15746 match 01 Feb 2008 changes in xterm.c.
15747 (ns_read_socket): Add cast to avoid warning.
15748 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
15749 GNUstep.
15750
157512008-08-20 Chong Yidong <cyd@stupidchicken.com>
15752
15753 * xselect.c (x_get_foreign_selection): Return nil if desired
15754 selection could not be obtained, instead of signalling an error.
15755
157562008-08-20 David Reitter <david.reitter@gmail.com>
15757
15758 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
15759 * nsterm.m: Remove ns-specific code for cursor blinking.
15760 (ns_draw_window_cursor): Clear cursor properly rather than
15761 redrawing the area. Respect width of bar cursors.
15762 These changes enable the use of generic blink-cursor-mode and
15763 generic cursor types in NS and support smooth cursor movements (do
15764 not blink off after command).
15765 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
15766 Nextstep, too.
15767
157682008-08-19 Kenichi Handa <handa@m17n.org>
15769
15770 * font.c (Vfont_log_deferred): New variable.
15771 (font_add_log): Check Vfont_log_deferred.
15772 (font_deferred_log): New function.
15773
15774 * font.h (font_deferred_log): Extern it.
15775
15776 * fontset.c (reorder_font_vector): Use encoding charset of fonts
15777 for sorting.
15778 (face_for_char): Use deferred log.
15779
157802008-08-18 Kenichi Handa <handa@m17n.org>
15781
15782 * fontset.c (face_for_char): Add font log.
15783
15784 * font.c (font_add_log): Add the font properties :script, :lang,
15785 and :otf in the log.
15786
157872008-08-17 Chong Yidong <cyd@stupidchicken.com>
15788
15789 * xdisp.c: Remove dead code.
15790 (handle_invisible_prop, next_overlay_string): Defer call to
15791 setup_for_ellipsis.
15792 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
15793
157942008-08-15 Chong Yidong <cyd@stupidchicken.com>
15795
15796 * xfaces.c (lookup_derived_face): Properly handle possible zero
15797 return value of get_lface_attributes.
15798 (merge_faces): Don't tell lookup_derived_face to signal an error
15799 if face is not found.
15800
15801 * dired.c (Fdirectory_files): Doc fix.
15802
15803 * process.c (make_process): Initialize kill_without_query struct
15804 member.
15805
158062008-08-15 Eli Zaretskii <eliz@gnu.org>
15807
15808 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
15809 Alternative calculation of totphys for Visual Studio 6.
15810
15811 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
15812
15813 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
15814 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
15815 All users changed.
15816 (stat): Only root directory passed to GetDriveType. Allow RAM
15817 disk as well as local fixed disk when w32-get-true-file-attributes
15818 is set to `local'.
15819 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
15820 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
15821 (w32_cached_id, w32_add_to_cache): New functions.
15822 (get_name_and_id): Look account names in the cache before calling
15823 lookup_account_sid.
15824 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
15825 New initialization flags.
15826 (globals_of_w32): Initialize them to zero.
15827 (w32_system_process_attributes): Use w32_cached_id and
15828 w32_add_to_cache.
15829
158302008-08-14 Lawrence Mitchell <wence@gmx.li>
15831
15832 * lread.c (Fread_char, Fread_char_exclusive): If no character
15833 event is read before timeout is reached, return nil, rather than
15834 converting to a number.
15835
158362008-08-14 Chong Yidong <cyd@stupidchicken.com>
15837
15838 * fns.c (use_dialog_box): Doc fix.
15839
15840 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
15841 on OS X.
15842
158432008-08-13 Chong Yidong <cyd@stupidchicken.com>
15844
15845 * frame.c (Qns_parse_geometry): New var.
15846 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
15847
158482008-08-11 Chong Yidong <cyd@stupidchicken.com>
15849
15850 * xdisp.c (x_produce_glyphs): Handle the case when font has no
15851 space character in calculating tabs.
15852
158532008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
15854
15855 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
15856
158572008-08-10 Glenn Morris <rgm@gnu.org>
15858
15859 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
15860 silence gcc "limited range of data type" warnings in some
15861 make_fixnum_or_float calls.
15862
158632008-08-09 Eli Zaretskii <eliz@gnu.org>
15864
15865 * w32.c (w32_system_process_attributes): If the process does not
15866 exist, return nil.
15867
15868 * w32.c: Include thelp32.h, psapi.h and coding.h.
15869 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
15870 declarations.
15871 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
15872 (Process32Next_Proc): New typedefs.
15873 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
15874 (g_b_init_process32_next, g_b_init_open_thread_token)
15875 (g_b_init_impersonate_self, g_b_init_revert_to_self)
15876 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
15877 (g_b_init_get_process_working_set_size)
15878 (g_b_init_global_memory_status_ex): New static variables.
15879 (globals_of_w32): Initialize them.
15880 (create_toolhelp32_snapshot, process32_first, process32_next)
15881 (open_thread_token, impersonate_self, revert_to_self)
15882 (get_process_memory_info, get_process_working_set_size)
15883 (global_memory_status, global_memory_status_ex): New wrapper
15884 functions.
15885 (w32_list_system_processes, w32_system_process_attributes)
15886 (enable_privilege, restore_privilege, ltime, process_times):
15887 New functions.
15888 (convert_time_raw): New function.
15889 (convert_time): Remove conversion of FILETIME into time in 100
15890 nsec units, call convert_time_raw instead.
15891
15892 * process.h (w32_list_system_processes, w32_system_process_attributes):
15893 Add prototypes.
15894 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
15895 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
15896 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
15897 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
15898
15899 * process.c (Fsystem_process_attributes): Doc fix.
15900
159012008-08-08 Chong Yidong <cyd@stupidchicken.com>
15902
15903 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
15904 a continued multi-char glyph; if so, advance to the actual glyph.
15905
159062008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
15907
15908 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
15909
15910 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
15911 (.m.o): Use it.
15912 * config.in: Regenerate.
15913
159142008-08-07 Chong Yidong <cyd@stupidchicken.com>
15915
15916 * xdisp.c (redisplay_window): Revert last change.
15917 (try_window): Check bottom scroll margin too.
15918
159192008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
15920
15921 * config.in: Regenerate.
15922
15923 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
15924 -list-load-path-shadows'.
15925 (nsgui.h): Reduce number of things depending on it.
15926
159272008-08-06 Chong Yidong <cyd@stupidchicken.com>
15928
15929 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
15930 instead of window-end which does the wrong thing at eob.
15931 (try_cursor_movement): Minor optimization.
15932 (redisplay_window): If scroll margin is defined, don't assume
15933 window doesn't need scrolling.
15934
159352008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
15936
15937 * config.in: Regenerate.
15938
15939 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
15940 (mostlyclean): Don't delete *.d under NS.
15941
15942 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
15943
159442008-08-06 Kenichi Handa <handa@m17n.org>
15945
15946 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
15947
159482008-08-06 Andreas Schwab <schwab@suse.de>
15949
15950 * config.in: Regenerate.
15951
159522008-08-05 Chong Yidong <cyd@stupidchicken.com>
15953
15954 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
15955 forcing a window start.
15956
15957 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
15958 (auto_save_1): Update modtime when auto-save-list-file-name is on.
15959
159602008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
15961
15962 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
15963 argument.
15964
159652008-08-05 Juanma Barranquero <lekktu@gmail.com>
15966
15967 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
15968 <scroll-down-aggressively, before-change-functions>:
15969 <after-change-functions>: Reflow docstrings.
15970
159712008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
acd0102a 15972 Ken Raeburn <raeburn@gnu.org>
aac0c6e3
MR
15973
15974 Dock menu customization, based on a patch by Ken Raeburn, plus some
15975 other fixes.
15976 * nsmenu.m (dockMenu): New variable.
15977 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
15978
15979 * nsterm.h (dockMenu): Declare.
15980
15981 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
15982 (ns_term_init): Initialize dockMenu.
15983 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
15984 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
15985 left.
15986
15987 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
15988
159892008-08-04 Chong Yidong <cyd@stupidchicken.com>
15990
15991 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
15992
15993 * config.in: Regenerate.
15994
159952008-08-04 Seiji Zenitani <zenitani@mac.com>
15996
15997 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
15998
159992008-08-04 Chong Yidong <cyd@stupidchicken.com>
16000
16001 * nsterm.h (find_and_call_menu_selection): Fix prototype.
16002
160032008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
16004
16005 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
16006
16007 * keyboard.h: Comment an #endif.
16008
16009 * lisp.h (have_menus_p): Adjust comment.
16010
16011 * menu.c (find_and_return_menu_selection): Fix comparison with
16012 client_data.
16013
16014 * nsmenu.m (popup_activated_flag): New variable.
16015 (popup_activated): New function.
16016 (menu-or-popup-active-p): New exported lisp definition.
16017 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
16018 when popup done.
16019 (ns_popup_dialog): Set popup_activated_flag.
16020
16021 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
16022 version for GNUstep (handled by conditional typedef in nsterm.m).
16023 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
16024 in rgb.txt).
16025
16026 * process.c (init_process): Use DARWIN_OS, not DARWIN.
16027
16028 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
16029
16030 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
16031
16032 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
16033 shortcircuit if popup_activated like GTK and X toolkit.
16034
16035 * m/inter386.h: Change DARWIN to DARWIN_OS.
16036
16037 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
16038 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
bba3e508
SM
16039 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood.
16040 Expand comment on NO_SOCK_SIGIO.
aac0c6e3
MR
16041
160422008-08-03 Chong Yidong <cyd@stupidchicken.com>
16043
16044 * nsterm.m (windowDidResize): Remove stopModal call.
16045
160462008-08-03 Andreas Schwab <schwab@suse.de>
16047
16048 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
16049 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
16050
160512008-08-02 Chong Yidong <cyd@stupidchicken.com>
16052
16053 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
16054 Don't use uninitialized pointer variable when using getrlimit.
16055
160562008-08-02 Jason Rumney <jasonr@gnu.org>
16057
16058 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
16059
160602008-08-02 Eli Zaretskii <eliz@gnu.org>
16061
16062 * alloc.c (NSTATICS): Bump to 0x640.
16063
16064 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
16065
16066 * lisp.h: Add prototype for directory_files_internal.
16067
16068 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
16069 New functions.
16070 (syms_of_process): Defsubr them. Add initializations for various
16071 Q* symbols used in procfs_system_process_attributes.
16072 (procfs_list_system_processes, procfs_system_process_attributes)
16073 [HAVE_PROCFS]: New functions.
16074 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
16075 (procfs_get_total_memory): New functions.
16076
160772008-08-01 Juanma Barranquero <lekktu@gmail.com>
16078
16079 * xfaces.c (Fx_load_color_file): Fix previous change;
16080 it is #ifdef WINDOWSNT, not WINDOWS_NT.
16081
160822008-08-01 Michael Albinus <michael.albinus@gmx.de>
16083
16084 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
16085
160862008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
16087
16088 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
16089
160902008-08-01 Chong Yidong <cyd@stupidchicken.com>
16091
16092 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
16093
16094 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
16095 define NSApplicationDelegateReplySuccess.
16096 (EmacsView -converstationIdentifier): Use long instead of
16097 NSInteger for GNUstep, since it doesn't have NSInteger.
16098
16099 * xmenu.c: Revert last change.
16100
16101 * keyboard.h: Fix last change.
16102
161032008-08-01 Juanma Barranquero <lekktu@gmail.com>
16104
16105 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
16106 on Windows.
16107
161082008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
16109
16110 Warning clearing and clean-up in NS port.
16111 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
16112 Add prototypes.
16113 * nsgui.h (FACE_DEFAULT): Remove, unused.
16114 (XGCValues): Change colors to unsigned long.
16115 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
16116 nsterm.m.
16117 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
16118 (ns_list_fonts): Remove, unused.
16119 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
16120 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
16121 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
16122 (nsfont_draw): Compare face colors to 0, not nil.
16123 * nsmenu.m (struct widget_value): Drop unneeded declaration.
16124 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
16125 (-addSubmenuWithTitle:): Use NSMenuItem class.
16126 (ns_popup_menu): Use NO, not NULL, for enabled setting.
16127 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
16128 (ns_clip_to_row): Make gc arg a BOOL.
16129 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
16130 ns_clip_to_row() call.
16131 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
16132 used). Cast FRAME_FONT assignments.
16133 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
16134 (ns_string_to_lispmod): Change arg to const char.
16135 (ns_term_init): Use NSMenuItem class.
16136 (EmacsApp -openFile:): Move to different section of file.
16137 (EmacsApp -application:openFiles:): Don't return a value, call
16138 -replyToOpenOrPrint:.
16139 (EmacsView -keyDown:): Fix up cast.
16140 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
16141 (EmacsView -menuDown:): Cast tag in call to
16142 find_and_call_menu_selection().
16143 (ns_list_fonts): Remove, unused.
16144 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
16145 (ns_fontname_to_xlfd): Make static.
16146 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
16147 Remove prototypes (now in keyboard.h).
16148 (next_menubar_widget_id): Remove, unused.
16149 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
16150 Remove prototypes (now in keyboard.h).
16151 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
16152
161532008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
16154
16155 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
16156 (floatfns.o): Depend on syssignal.h.
16157 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
16158
16159 * systty.h: Fix previous change that removed BSD_TERMIOS.
16160 Add comments to #ifdefs.
16161
161622008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
16163
16164 * w32fns.c (w32-load-color-file): Remove.
16165 (x-open-connection): Use renamed Fx_load_color_file.
16166 * xfaces.c (x-load-color-file): Add.
16167 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
16168 Emacs.clr.
16169 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
16170
161712008-07-31 Michael Albinus <michael.albinus@gmx.de>
16172
16173 * dbusbind.c (Fdbus_call_method_asynchronously)
16174 (Fdbus_method_error_internal): New defuns.
16175 (xd_read_message): Handle also reply messages.
16176 (Vdbus_registered_functions_table): Extend docstring.
16177
161782008-07-31 Juanma Barranquero <lekktu@gmail.com>
16179
16180 * keyboard.c (gobble_input): Fix previous change.
16181
161822008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
16183
16184 * bitmaps/README:
16185 * xfns.c:
16186 * termcap.c:
16187 * term.c:
16188 * syswait.h:
16189 * systty.h:
16190 * systime.h:
16191 * syssignal.h:
16192 * sysdep.c:
16193 * process.h:
16194 * process.c:
16195 * print.c:
16196 * ndir.h:
16197 * lread.c:
16198 * keyboard.c:
16199 * getpagesize.h:
16200 * floatfns.c:
16201 * fileio.c:
16202 * emacs.c:
16203 * doc.c:
16204 * dispnew.c:
16205 * dired.c:
16206 * data.c:
16207 * callproc.c:
16208 * buffer.c:
16209 * README:
16210 * Makefile.in:
16211 * s/template.h:
16212 * s/msdos.h:
16213 * m/vax.h: Remove VMS support.
16214 * s/vms.h:
16215 * vlimit.h:
16216 * uaf.h:
16217 * temacs.opt:
16218 * param.h:
16219 * ioctl.h: Remove file.
16220
162212008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
16222
16223 * s/ms-w32.h (MULTI_KBOARD): Remove.
16224 * xterm.c:
16225 * xselect.c:
16226 * xfns.c:
16227 * window.c:
16228 * w32term.c:
16229 * w32fns.c:
16230 * terminal.c:
16231 * termhooks.h:
16232 * term.c:
16233 * sysdep.c:
16234 * keyboard.h:
16235 * keyboard.c:
16236 * frame.h:
16237 * frame.c:
16238 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
16239 * config.in: Regenerate.
16240
162412008-07-30 Jason Rumney <jasonr@gnu.org>
16242
16243 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
16244
16245 * w32font.c (w32font_encode_char): Leave as unicode if in range.
16246 (w32font_open_internal): Get unicode version of textmetrics.
16247 Don't enable or disable glyph indices here.
16248 (w32font_open): Disable use of glyph indices.
16249
16250 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
16251
162522008-07-30 Chong Yidong <cyd@stupidchicken.com>
16253
16254 * minibuf.c (Vread_buffer_function): Doc fix.
16255
162562008-07-30 John Paul Wallington <jpw@pobox.com>
16257
16258 * minibuf.c (read_buffer_completion_ignore_case): New var.
16259 (Fread_buffer): Use it.
16260
162612008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
16262
16263 * systty.h (sensemode): Remove empty #if. Remove reference to
16264 BSD_TERMIOS, unused.
16265
16266 * sysdep.c: Remove reference to DGUX.
16267 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
16268
16269 * config.in: Regenerate.
16270
162712008-07-30 Jason Rumney <jasonr@gnu.org>
16272
16273 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
16274
162752008-07-29 Jason Rumney <jasonr@gnu.org>
16276
16277 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
16278 is populated.
16279 (uniscribe_encode_char): Always use uniscribe.
16280 Avoid using context if cache is populated.
16281
162822008-07-29 Jan Djärv <jan.h.d@swipnet.se>
16283
16284 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
16285 open menu.
16286
16287 * gtkutil.c (menu_nav_ended): Remove.
16288 (create_menus): Remove signal connect for menu_nav_ended.
16289
162902008-07-28 Chong Yidong <cyd@stupidchicken.com>
16291
16292 * xdisp.c (redisplay_window): Check return value of
16293 compute_window_start_on_continuation_line before forcing a window
16294 start.
16295
162962008-07-28 Jason Rumney <jasonr@gnu.org>
16297
16298 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
16299
16300 * w32term.c (w32_enable_unicode_output, cleartype_active):
16301 Remove obsolete display options.
16302 (x_draw_glyph_string_background): Don't use old cleartype_active
16303 workaround.
16304 (w32_initialize): Remove cleartype_active initialization.
16305 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
16306
163072008-07-28 Andreas Schwab <schwab@suse.de>
16308
16309 * lisp.h (init_weak_hash_tables, syms_of_font)
16310 (xd_read_queued_messages, syms_of_dbusbind): Declare.
16311 (remove_hash_entry): Don't declare.
16312 * eval.c (maybe_call_debugger): Make static and move before use.
16313 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
16314 * xdisp.c: Include "gtkutil.h" if USE_GTK.
16315 * xterm.h (x_set_frame_alpha): Declare.
16316
163172008-07-28 Jan Djärv <jan.h.d@swipnet.se>
16318
16319 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
16320 (create_menus): Connect selection-done to menu_nav_ended.
16321
163222008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
16323
16324 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
16325 Set Vx_resource_name to a fallback. Replace read of 'buffered'
16326 parameter with read of 'alpha' one.
16327 (Qns_frame_parameter): Remove.
5582fbc7 16328 * nsselect.m (selection-coding-system)
aac0c6e3
MR
16329 (next-selection-coding-system, Vselection_coding_system)
16330 (Vnext_selection_coding_system): Drop.
16331
163322008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
16333
16334 * nsfns.m (do-applescript, do_applescript): Rename to
16335 ns-do-applescript, ns_do_applescript, and move within file.
16336
163372008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
16338
16339 Remove support for Mac Carbon.
16340 * mactoolbox.c:
16341 * macterm.h:
16342 * macterm.c:
16343 * macselect.c:
16344 * macmenu.c:
16345 * macgui.h:
16346 * macfns.c:
16347 * mac.c: Remove file.
16348 * s/darwin.h:
16349 * m/intel386.h:
16350 * xfaces.c:
16351 * xdisp.c:
16352 * window.c:
16353 * tparam.c:
16354 * termhooks.h:
16355 * termcap.c:
16356 * term.c:
16357 * syssignal.h:
16358 * sysselect.h:
16359 * sysdep.c:
16360 * process.c:
16361 * lread.c:
16362 * lisp.h:
16363 * keyboard.c:
16364 * image.c:
16365 * fringe.c:
16366 * frame.h:
16367 * frame.c:
16368 * fontset.c:
16369 * font.h:
16370 * font.c:
16371 * fns.c:
16372 * fileio.c:
16373 * emacs.c:
16374 * dispnew.c:
16375 * dispextern.h:
16376 * config.in:
16377 * atimer.c:
2ae37cf0 16378 * Makefile.in: Remove code for Carbon.
aac0c6e3 16379
f0131492 163802008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
16381
16382 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
16383
163842008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16385
16386 * macterm.h (kCGBitmapByteOrder32Host): New define for
16387 non-universal SDKs.
16388
16389 * image.c (mac_create_cg_image_from_image, image_load_image_io)
16390 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
16391
16392 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
16393 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
16394
163952008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
16396
16397 * w32inevt.c: Include dispextern.h.
16398
163992008-07-26 Andreas Schwab <schwab@suse.de>
16400
16401 * print.c (print_object): Fix off-by-one in last change.
16402
164032008-07-25 Juanma Barranquero <lekktu@gmail.com>
16404
16405 * term.c (syms_of_term): Don't initialize default_orig_pair,
16406 default_set_foreground and default_set_background on Windows.
16407
164082008-07-25 Jason Rumney <jasonr@gnu.org>
16409
16410 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
16411 ScriptItemize. Clean up return value checking. Remove unused
16412 variables.
16413 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
16414 shaping engine.
16415
16416 * w32font.c (w32font_has_char): Handle the case where we can't
16417 determine the script for a character.
16418
164192008-07-25 Chong Yidong <cyd@stupidchicken.com>
16420
16421 * term.c (syms_of_term): Initialize default_orig_pair,
16422 default_set_foreground, and default_set_background.
16423
16424 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
16425 clash (bug#86).
16426 (getloadavg): Callers changed.
16427
16428 * image.c (svg_load_image): Fix last change.
16429 (svg_load_image): Use rsvg_handle_get_dimensions to check that
16430 image size is valid. Use g_object_unref instead of deprecated
16431 rsvg_handle_free to free rsvg handle.
16432 (x_from_xcolors): Don't initialize pixmap (silence compiler).
16433
164342008-07-25 Jason Rumney <jasonr@gnu.org>
16435
16436 * w32font.c (w32font_encode_char): Encode characters outside BMP as
16437 surrogates before looking up glyph index.
16438 (w32font_text_extents): Encode as surrogates if falling back to
16439 functions that need UTF-16 wide chars.
16440
16441 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
16442 BMP as surrogates before looking up glyph index.
16443
164442008-07-25 Chong Yidong <cyd@stupidchicken.com>
16445
16446 * image.c (svg_load_image): Check for failure in return value of
16447 rsvg_handle_get_pixbuf. Free rsvg handle when done.
16448
164492008-07-25 Jason Rumney <jasonr@gnu.org>
16450
16451 * w32font.c (Fx_select_font): Reverse sense of second arg.
16452
164532008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
16454
16455 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
16456 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
16457
16458 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
16459 (PURESIZE): Use it.
16460
164612008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
16462
16463 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
16464 * m/alpha.h (TEXT_END):
16465 * m/ibmrs6000.h (TEXT_END):
16466 * m/macppc.h (TEXT_END):
16467 * s/darwin.h (TEXT_END):
16468 * s/msdos.h (TEXT_END): Remove, unused.
16469 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
16470 * s/cygwin.h: Remove comment.
16471
16472 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
16473 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
16474 * m/intel386.h (DOT_GLOBAL_START):
16475 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
16476 (USG): Remove, file not used on USG platforms.
16477
16478 * Makefile.in (HAVE_X11): Remove empty #else.
16479
164802008-07-24 Andreas Schwab <schwab@suse.de>
16481
16482 * fileio.c (Finsert_file_contents): Properly adjust undo list
16483 after format conversion.
16484
164852008-07-24 Jan Djärv <jan.h.d@swipnet.se>
16486
16487 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
16488 (menu_nav_ended): Remove.
16489 (create_menus): Remove signal connect for menu_nav_ended.
16490 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
16491 create_menus.
16492 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
16493
164942008-07-23 Jason Rumney <jasonr@gnu.org>
16495
16496 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
16497 with opened font.
16498 (w32font_open): Set font type to gdi.
16499
16500 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
16501
165022008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
16503
16504 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
16505 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
16506 defines it.
16507 * unexec.c (ADDR_CORRECT): Define unconditionally.
16508
16509 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
16510
16511 * unexec.c: Remove code depending on !COFF and USG, the file is
16512 not used for such systems.
16513
16514 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
16515 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
16516 (LD_SWITCH_SYSTEM_1): Remove, update users.
16517
16518 * s/darwin.h (DATA_END):
16519 * m/intel386.h (DATA_END):
16520 * m/ibmrs6000.h (DATA_END):
16521 * m/alpha.h (DATA_END): Remove, unused.
16522
16523 * config.in: Regenerate.
16524 * s/ms-w32.h (subprocesses): Define unconditionally.
16525 * s/template.h (subprocesses): Update comment.
16526 * s/vms.h (subprocesses):
16527 * s/usg5-4.h (subprocesses):
16528 * s/hpux10-20.h (subprocesses):
16529 * s/gnu-linux.h (subprocesses):
16530 * s/cygwin.h (subprocesses):
16531 * s/bsd-common.h (subprocesses):
16532 * s/aix4-2.h (subprocesses):
16533 * s/darwin.h (subprocesses): Do not define, defined by default now.
16534
16535 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
16536 Remove all references.
16537 (temacs): Add GNUstep specific ld flags.
16538
16539 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
16540 similarly to what X does.
16541
165422008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
16543
16544 * nsfns.m (x-list-fonts): Remove.
16545 (syms_of_nsfns): Drop the x-list-fonts declaration.
16546 * nsterm.m: Get rid of remaining "//" comments.
16547
165482008-07-22 Chong Yidong <cyd@stupidchicken.com>
16549
16550 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
16551
16552 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
16553 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
16554 (Fns_own_selection_internal, Fx_disown_selection_internal)
16555 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
16556
16557 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
16558 ... */' style of docstrings. Doc fixes.
16559
165602008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
16561
16562 * terminfo.c (UP, BC, PC): Undo previous change.
16563
16564 * nsfns.m: Rename ns prefixed functions/variables to the
16565 corresponding x versions. Update references.
16566
165672008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
16568
16569 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
16570
165712008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
16572
16573 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
16574 Remove forwarding functions.
16575 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
16576 non-static.
16577 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
16578 non-static.
16579 (ns_frame_parm_handlers): Use the new names.
16580 (syms_of_nsfns): Move to the end of file.
16581
16582 * nsterm.m (syms_of_nsterm): Move to the end of file.
16583
16584 * dispnew.c (init_display): Remove code for X10.
16585
165862008-07-22 Jason Rumney <jasonr@gnu.org>
16587
16588 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
16589 bare drive.
16590
165912008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
16592
16593 * nsterm.m (syms_of_nsterm): Remove debugging println.
16594
165952008-07-22 David Reitter <david.reitter@gmail.com>
16596
16597 * nsfns.m (do_applescript, F_do_applescript): NS version of the
16598 Carbon implementation of the same functionality: execute arbitrary
16599 AppleScript code.
16600
166012008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
16602
16603 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
16604 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
16605 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
16606 (Fx_display_mm_height, Fx_display_mm_width)
16607 (Fx_display_backing_store, Fx_display_visual_class)
16608 (Fx_display_save_under, Fx_open_connection)
16609 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
16610 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
16611 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
16612 (Fx_display_pixel_width, Fx_display_pixel_height)
16613 (Fx_display_usable_bounds, Fx_display_planes)
16614 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
16615 ... */' style of docstrings.
16616
166172008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
16618
16619 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
16620 on this platform.
16621 (mips):
16622 * m/iris4d.h (mips): Do not define.
16623 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
16624
16625 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
16626
16627 * image.c:
16628 * nsfns.m:
16629 * nsselect.m:
16630 * nsterm.h:
16631 * nsterm.m: Rename ns prefixed functions/variables to the
16632 corresponding x versions. Update references.
16633
16634 * m/ibms390x.h (NO_REMAP): Do not undefine.
16635
16636 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
16637
166382008-07-21 Chong Yidong <cyd@stupidchicken.com>
16639
16640 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
16641 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
16642 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
16643 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
16644 (Fns_display_mm_height, Fns_display_mm_width)
16645 (Fns_display_backing_store, Fns_display_visual_class)
16646 (Fns_display_save_under, Fns_open_connection)
16647 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
16648 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
16649 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
16650 (Fns_display_pixel_width, Fns_display_pixel_height)
16651 (Fns_display_usable_bounds, Fx_display_planes)
16652 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
16653
166542008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
16655
16656 * print.c (print_object): Check print_depth before searching for
16657 circularities.
16658
166592008-07-21 Michael Albinus <michael.albinus@gmx.de>
16660
16661 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
16662 only sprintf.
16663
166642008-07-21 Kenichi Handa <handa@m17n.org>
16665
16666 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
16667
166682008-07-20 Andreas Schwab <schwab@suse.de>
16669
16670 * syntax.c (find_start_pos, find_start_value)
16671 (find_start_value_byte, find_start_begv, find_defun_start)
16672 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
16673
166742008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
16675
16676 * s/sol2-3.h: Insert contents of s/sol2.h.
16677 (LD_SWITCH_SYSTEM): Remove redundant definition.
16678 * s/sol2.h: Remove, unused.
16679
166802008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
16681
16682 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
16683
166842008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
16685
16686 * Makefile.in (ns_appdir): Fix typo in find command.
16687
166882008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
16689
16690 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
16691
16692 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
16693 added not supported anymore.
16694
16695 * s/usg5-4-2.h (LIBS_SYSTEM):
16696 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
16697
16698 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
16699 * s/lynxos.h (GETPGRP_NO_ARG):
16700 * s/hpux10-20.h (NO_SIOCTL_H):
16701 * s/gnu.h (GETPGRP_NO_ARG):
16702 * s/gnu-linux.h (NO_SIOCTL_H):
16703 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
16704 * s/cygwin.h (GETPGRP_NO_ARG):
16705 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
16706 (C_DEBUG_SWITCH): Remove duplicate definition.
16707
16708 * m/ibms390.h: Remove boilerplate comments.
16709
16710 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
16711
16712 * process.c (HAVE_SERIAL): Consolidate ifdefs.
16713 (wait_reading_process_output): Remove code for SunOS, platform not
16714 supported anymore. Use SOLARIS2 instead of sun.
16715
167162008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
16717
16718 * font.c (font_open_by_name): Under NS, default lface height to zero.
16719 (font_open_for_lface): Under NS, set size based on frame fontsize.
16720 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
16721 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
16722
167232008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
16724
16725 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
16726 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
16727 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
16728 YES/NO.
16729 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
16730 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
16731 * Makefile.in (clean): Clear out build destination dir.
16732
167332008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
16734
16735 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
16736 xterm, xselect.
16737 * lisp.h: Remove declaration of hash_remove.
16738 * nsgui.h: Remove redefinitions of hash_remove.
16739 * fns.c (hash_remove): Rename to hash_remove_from_table.
16740
167412008-07-19 Seiji Zenitani <zenitani@mac.com>
16742
16743 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
16744 strdup() the family UTF8String before modifying it.
16745
167462008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
16747
16748 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
16749 NS_FACE_BACKGROUND with 0 instead of nil.
16750 * nsfont.m (nsfont_draw): Same.
16751
167522008-07-19 Chong Yidong <cyd@stupidchicken.com>
16753
16754 * nsfns.m (ns_set_background_color): Fix crash.
16755
167562008-07-18 Chong Yidong <cyd@stupidchicken.com>
16757
16758 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
16759
167602008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
16761
16762 * puresize.h (BASE_PURESIZE): Increase to 1240000.
16763
167642008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16765
16766 * gtkutil.c: Include <config.h> instead of "config.h".
16767
16768 * lisp.h (Foverlay_buffer): Add EXFUN.
16769
16770 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
16771 child process to complete child_setup. Undo 2005-09-21 change.
16772
16773 * s/darwin.h: Mention setsid after vfork.
16774
167752008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16776
16777 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
16778 Depend on macgui.h.
16779
16780 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
16781 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
16782
16783 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
16784 and f19.
16785 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
16786
16787 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
16788 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
16789 Remove enumerators.
16790
16791 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
16792 Check if FACE_FROM_ID returns NULL.
16793
167942008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
16795
16796 * w32inevt.c (change_frame_size): Remove extern declaration.
16797 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
16798 change_frame_size.
16799
168002008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
16801
16802 * getloadavg.c: Revert last change (2008-07-15).
16803
168042008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
16805
16806 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 16807 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
16808 from configure.
16809
168102008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
16811
16812 * s/sol2.h:
16813 * s/sol2-4.h: Reorganize conditionals.
16814
16815 * ecrt0.c: Remove code depending on m68000, not used anymore.
16816
16817 * fns.c (hash_remove): Make static.
16818 * lisp.h (hash_remove): Don't prototype.
16819
16820 * m/ibmrs6000.h:
16821 * m/ibms390x.h:
16822 * m/macppc.h: Remove boilerplate comments.
16823
16824 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
16825 Solaris, which does not need them.
16826
16827 * m/vax.h: Remove comments about unsupported systems.
16828
16829 * s/darwin.h: Reorganize ifdefs.
16830
168312008-07-17 Andreas Schwab <schwab@suse.de>
16832
16833 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
16834
168352008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
16836
16837 Use SDATA. Follow coding convention of placing operators at
16838 beginning of next line rather than end of previous line, and placing
16839 spaces around infix operators.
16840
16841 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
16842 in case it was defined already.
16843 USE @GNUSTEP_MAKEFILES@ rather than envvars.
16844 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
16845 ns_default.
16846 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
16847 Lisp_Objects.
16848 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
16849 (ns_defined_color, ns_color_to_lisp): Declare.
16850 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
16851 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
16852 it's accepted even with USE_LISP_UNION_TYPE.
16853 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
16854 (update_frame_tool_bar): Remove apparently obsolete tests for
16855 non-integerness of f->tool_bar_lines.
16856 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
16857 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
16858 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
16859 (nsfont_open): Don't confuse NULL for Qnil.
16860 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
16861 * menu.h (find_and_call_menu_selection):
16862 * menu.c (find_and_call_menu_selection): Use just int for vector size.
16863 (find_and_return_menu_selection): Always return something.
16864 * frame.h: Include dispextern.h for Display_Info.
16865 (display_x_get_resource): Declare.
16866
168672008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
16868
16869 * syntax.c: Remove stdio.h include accidentally introduced in
16870 Emacs.app commit.
16871 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
16872 NS_IMPL_COCOA.
16873 * keyboard.c (handle_async_input, input_available_signal): Remove
16874 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
16875
168762008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
16877
16878 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
16879 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
16880 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
16881 Use SDATA.
16882
16883 * keymap.c: Remove all NS-specific code.
16884 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
16885 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
16886 where_is_preferred_modifier, return a different value depending on how
16887 preferred is the binding.
16888 (where_is_internal): Adjust accordingly.
16889 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
16890 Adjust to new preferred_sequence_p.
16891 (syms_of_keymap): Declare `where-is-preferred-modifier'.
16892 * keyboard.c (parse_solitary_modifier): Not static any more.
16893 * keyboard.h (parse_solitary_modifier): Declare.
16894
168952008-07-16 Andreas Schwab <schwab@suse.de>
16896
16897 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
16898 of easymenu.
16899
169002008-07-16 Chong Yidong <cyd@stupidchicken.com>
16901
16902 * xdisp.c (move_it_in_display_line): Account for word wrap, so
16903 that we don't move off the line.
16904
169052008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
16906
16907 * keyboard.c (Qsuper): Remove.
16908 (parse_menu_item): Don't call where_is_internal specially for NS.
16909
169102008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
16911
16912 * s/gnu-linux.h: Remove boilerplate comments.
16913
16914 * m/alpha.h (__ELF__): Consolidate conditions.
16915
16916 * m/m68k.h (linux): Use GNU_LINUX instead.
16917 Remove boilerplate comments.
16918
16919 * m/intel386.h: Undo refactoring from previous change.
16920 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
16921 too, remove dead code.
16922 (linux): Use GNU_LINUX instead.
16923
169242008-07-16 Jason Rumney <jasonr@gnu.org>
16925
16926 * w32gui.h: Repeat 26 June changes lost by last change.
16927
169282008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
16929
16930 * systty.h: Remove code for Aix on 386, unsupported platform.
16931
16932 * s/ms-w32.h: Remove boilerplate comments.
16933 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
16934
16935 * s/gnu-linux.h (TERM): Remove support.
16936 (HAVE_SYSVIPC): Remove, unused.
16937 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
16938 for this system.
16939
16940 * process.c: Remove support for IRIS, unused.
16941 Remove support for TERM, not relevant anymore.
16942
16943 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
16944 used with the definition.
16945
16946 * s/aix4-2.h (static): Do not undef.
16947
16948 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
16949 only used on Aix.
16950 (HAVE_SYSVIPC): Remove, unused.
16951
16952 * m/hp800.h (CANNOT_DUMP): Do not undef.
16953
16954 * m/alpha.h: Fix comment.
16955
16956 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
16957 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
16958 used by this configuration.
16959 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
16960 * unexec.c: Remove code depending on HPUX and
16961 USG_SHARED_LIBRARIES, not used with this file. Remove code
16962 depending on IRIS, unused. Remove if 0-ed code.
16963
16964 * s/template.h: Remove comments about static.
16965
16966 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
16967 Remove if 0-ed code.
16968 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
16969 were the same as the default.
16970 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
16971 Remove boilerplate comments.
16972 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
16973 (HAVE_SYSVIPC): Remove, unused.
16974 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
16975
16976 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
16977 Remove boilerplate comments.
16978 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
16979 Remove boilerplate comments.
16980 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
16981 Remove boilerplate comments.
16982 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
16983
16984 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
16985 USG systems which do not use DATA_SEG_BITS.
16986 Refactor code. Remove boilerplate comments.
16987
16988 * m/ibms390.h:
16989 * m/m68k.h:
16990 * s/bsd-common.h:
16991 * s/cygwin.h:
16992 * s/darwin.h:
16993 * s/freebsd.h:
16994 * s/gnu.h:
16995 * s/msdos.h: Remove boilerplate comments.
16996
16997 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 16998 do not use this file.
aac0c6e3
MR
16999 (IRIS_4D): Remove, unused.
17000
17001 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 17002 do not use this file.
aac0c6e3
MR
17003 (SIGN_EXTEND_CHAR):
17004 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
17005 * unexmips.c: Remove file, unused.
17006
17007 * editfns.c (Fuser_full_name): Replace the only use of
17008 USER_FULL_NAME with its value.
17009 * config.in: Regenerate.
17010
170112008-07-16 David Reitter <david.reitter@gmail.com>
17012
17013 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
17014 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
17015
170162008-07-16 Glenn Morris <rgm@gnu.org>
17017
17018 * emacs.c (system-type): Doc fix.
17019
170202008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
17021
17022 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
17023 If the cache doesn't work, let's fix it, rather than work around it.
17024
170252008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
17026
17027 * Makefile.in: Correct additions for nsfont.o in last commit.
17028 * nsfont.m: New file (forgot last commit).
17029
170302008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
17031
bba3e508
SM
17032 * callproc.c (set_initial_environment):
17033 Initialize Vprocess_environment under CANNOT_DUMP (fixes crash when
aac0c6e3
MR
17034 batch-compiling for bootstrap).
17035
170362008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
acd0102a 17037 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3 17038
c4cc8b9a
JB
17039 * frame.c (make_initial_frame): Call init_frame_faces(f) in
17040 CANNOT_DUMP case -- fix crash due to different init order.
aac0c6e3
MR
17041
170422008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
17043
17044 Changes and additions for NeXTstep windowing system (Cocoa and
17045 GNUstep) support.
17046
17047 * Makefile.in:
17048 * config.in: Support defines and build commands for NS port.
17049 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
17050 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
17051 * dispextern.h: Include nsgui.h and add needed typedefs under NS
17052 windowing.
17053 (struct face): Add synth_ital field.
17054 * dispnew.c: Include nsterm.h when compiling under NS windowing.
17055 (init_display): Initialize Vinitial_window_system to "ns" when so
17056 compiled.
17057 * emacs.c: Include GSConfig.h when compiling under GNUstep.
17058 (display_arg): Use under NS.
17059 (main): Under NS, allocate autorelease pool and handle command line
17060 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
17061 (standard_args): Add NS-specific args.
17062 (shut_down_emacs): Shut down NS terminal if compiled under NS.
17063 * font.c (DEFAULT_ENCODING): New variable.
17064 (font_find_for_lface): Use it.
17065 (syms_of_font): Load syms_of_nsfont under NS.
17066 * font.h: Declare nsfont_driver when compiled under NS.
17067 * fontset.c: When compiling under NS, include nsterm.h.
17068 (fontset_from_font): Autoconstruct fontset under NS.
17069 * frame.c (various): Under NS, include nsterm.h, add Qns window system
17070 symbol, document and use it.
17071 (do_switch_frame): When for_deletion under Cocoa, add
17072 Fraise_frame(Qnil).
17073 (x_set_frame_parameters): Ensure font attribute changes are picked up.
17074 (x_get_arg): Allow "yes" and "no" as boolean values.
17075 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
17076 Qright under Cocoa.
17077 (focus-follows-mouse): Default to 0 under NS.
17078 * frame.h (enum output_method): Add output_ns.
17079 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
17080 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
17081 (FRAME_WINDOW_P): NS-specific definition.
17082 * fringe.c (max_used_fringe_bitmap): Make public.
17083 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
17084 (getloadavg): Use NeXT code under descendant OS's.
17085 * image.c (includes and header section, x_create_bitmap_from_data)
17086 (x_create_bitmap_from_file, free_bitmap_record, image_background)
17087 (image_background_transparent, x_clear_image_1)
17088 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
17089 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
17090 (x_to_xcolors, x_from_xcolors, x_disable_image)
17091 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
17092 other GUIs, including XPM support using code originally written for
17093 Carbon GUI.
17094 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
17095 using NS API.
17096 (image_ascent): Use font metrics macros instead of direct struct field
17097 access.
17098 * keyboard.c (includes): Add nsterm.h when compiling under NS.
17099 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
17100 Also, handle NS as GTK for menu bar purposes.
17101 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
17102 toolkit where they differ.
17103 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
17104 use cachelist, still needed under NS.
17105 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
17106 (struct widget_value): Define it here for menu.c.
17107 * keymap.c (includes): Include modifier internals.
17108 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
17109 NS.
17110 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
17111 support for preferring sequences using certain modifiers, specified by
17112 the FIRSTONLY argument.
17113 * lisp.h (hash_remove): Rename to avoid name clash when compiling
17114 under NS GNUstep implementation.
17115 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
17116 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
17117 * menu.c: Include nsterm.h under NS.
17118 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
17119 (free_menubar_widget_tree_value, update_submenu_strings)
17120 (find_and_call_menu_selection): Treat NS as X and NT.
17121 (find_and_return_menu_selection): New function, used for popup menus.
17122 * nsgui.h:
17123 * nsterm.h:
17124 * nsfns.m:
17125 * nsimage.m:
17126 * nsmenu.m:
17127 * nsselect.m:
17128 * nsterm.m: New files.
17129 * process.c (wait_reading_process_output): Under NS, call ns_select()
17130 instead of plain select().
17131 * syntax.c (char_quoted): Under NS, avoid a crash when called near
17132 beginning of buffer.
17133 * sysselect.h (init_process): Rename when compiling under Cocoa to
17134 avoid name conflict.
17135 * termhooks.h (display_info): Add ns_display_info to union.
17136 * terminal.c (Fterminal_live_p): Add ns to terminal types.
17137 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
17138 COCOA environment.
17139 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
17140 unexec() signature. (Note, this will dump, but the resulting file
17141 crashes; unexosx is used instead; keeping around for reference and
17142 possible aid in getting dump working under GNUstep.)
17143 * w32gui.h (button_type, widget_value): Remove definitions (now in
17144 keyboard.h).
17145 * window.c: Include nsterm.h when compiling under NS.
17146 * xdisp.c (includes): Include nsterm.h when compiling under NS.
17147 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
17148 other GUI windowing systems.
17149 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
17150 GTK.
17151 (x_consider_frame_title): Under NS, set icon type and frame
17152 modified-state indicator; use ns_set_name_as_filename() when using
17153 formatted title.
17154 (update_window_cursor): Make public when compiling under NS.
17155 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
17156 (hourglass_atimer, Vhourglass_delay
17157 * xfaces.c (header section, init_frame_faces, clear_font_table)
17158 (defined_color, unload_color, x_face_list_fonts)
17159 (prepare_face_for_display): Add NS support parallel to other GUIs.
17160 Emulate GCs like other non-X GUIs.
17161 (split_font_name): Don't lowercase font name under NS.
17162 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
17163 under NS.
17164 * s/darwin.h: Add support for compilation under NS.
17165
171662008-07-15 Jason Rumney <jasonr@gnu.org>
17167
17168 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
17169 (w32_show_hourglass): Rename from show_hourglass.
17170 (w32_hide_hourglass): Rename from hide_hourglass.
17171 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
17172 (Vhourglass_delay): Declare extern.
17173 (hourglass_started): Remove.
17174
17175 * xdisp.c (Vhourglass_delay): Remove static.
17176 (hourglass_started, start_hourglass, cancel_hourglass):
17177 Don't include these versions on WINDOWSNT.
17178
171792008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
17180
17181 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
17182 variables (formerly in xfns.c).
17183 (show_hourglass, hide_hourglass): New prototypes (same).
17184 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
17185 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
17186 in xfns.c).
17187 (syms_of_xdisp): Declare/initialize display-hourglass,
17188 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
17189 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
17190 formerly in xfns.c.
17191 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
17192 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
17193 (start_hourglass, cancel_hourglass): Remove.
17194 (show_hourglass, hide_hourglass): Remove prototypes and static
17195 modifiers.
17196 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
17197 hourglass_atimer, hourglass_shown_p declaration/initialization.
17198 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
17199 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
17200 (start_hourglass, cancel_hourglass): Remove.
17201 (show_hourglass, hide_hourglass): Remove prototypes and static
17202 modifiers.
17203 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
17204 hourglass_atimer, hourglass_shown_p declaration/initialization.
17205 * w32fns.c (display_hourglass_p, Vhourglass_delay)
17206 (DEFAULT_HOURGLASS_DELAY): Remove.
17207 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
17208 hourglass_shown_p declaration/initialization.
17209
172102008-07-14 Jason Rumney <jasonr@gnu.org>
17211
17212 * w32fns.c (w32_get_arg): Remove wrapper function.
17213 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
17214 directly.
17215 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
17216
172172008-07-14 Kenichi Handa <handa@m17n.org>
17218
17219 * xfont.c (xfont_open): Add workaround for X's bug.
17220
172212008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
17222
17223 * fontset.c: Include <stdio.h> unconditionally.
17224
172252008-07-13 Michael Albinus <michael.albinus@gmx.de>
17226
17227 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
17228 for filtering.
17229
172302008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
17231
17232 * s/vms.h: Use __GNUC__ instead of _GNUC_.
17233
17234 * m/macppc.h:
17235 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
17236
c4cc8b9a 17237 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default.
aac0c6e3
MR
17238 (SPECIAL_EMACS_INT):
17239 * m/ia64.h (SPECIAL_EMACS_INT):
17240 * m/amdx86-64.h (SPECIAL_EMACS_INT):
17241 * s/gnu.h (NLIST_STRUCT):
17242 * s/aix4-2.h (X11R5_INHIBIT_I18N):
17243 * s/gnu-linux.h (LINUX):
17244 * s/msdos.h (HAVE_FACES):
17245 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
17246
17247 * systty.h:
17248 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
17249 anymore.
17250
172512008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
17252
17253 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
17254 always defined as int.
17255
17256 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
17257 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
17258 * s/gnu-linux.h (HAVE_WAIT_HEADER):
17259 * s/freebsd.h (HAVE_WAIT_HEADER):
17260 * s/bsd-common.h (HAVE_UNION_WAIT):
17261 * s/aix4-2.h (HAVE_WAIT_HEADER):
17262 * m/mips.h (HAVE_UNION_WAIT):
17263 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
17264 (COFF, static): Do not define, they are undefined later in the file.
17265
17266 * process.c (update_status): Don't use a union.
17267 (status_convert):
17268 (sigchld_handler): Use int instead of WAITTYPE.
17269
172702008-07-12 Chong Yidong <cyd@stupidchicken.com>
17271
17272 * indent.c (Fvertical_motion): Restore hscroll before moving to
17273 goal column.
17274
172752008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
17276
17277 * lisp.h: Remove left over code.
17278
172792008-07-11 Andreas Schwab <schwab@suse.de>
17280
17281 * lisp.h: Fix logic in last change.
17282
17283 * menu.h: New file.
17284 * menu.c: Include it.
17285 * xmenu.c: Likewise.
17286 * Makefile.in: Update dependencies.
17287
172882008-07-11 Kenichi Handa <handa@m17n.org>
17289
17290 * fontset.c (fontset_from_font): Cancel the previous change.
17291
172922008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
17293
17294 * lisp.h:
17295 * w32heap.c:
17296 * emacs.c:
17297 * alloc.c: Replace all references of NO_UNION_TYPE with
17298 USE_LISP_UNION_TYPE.
17299
17300 * m/xtensa.h (NO_UNION_TYPE):
17301 * m/vax.h (NO_UNION_TYPE):
17302 * m/template.h (NO_UNION_TYPE):
17303 * m/sparc.h (NO_UNION_TYPE):
17304 * m/mips.h (NO_UNION_TYPE):
17305 * m/macppc.h (NO_UNION_TYPE):
17306 * m/m68k.h (NO_UNION_TYPE):
17307 * m/iris4d.h (NO_UNION_TYPE):
17308 * m/intel386.h (NO_UNION_TYPE):
17309 * m/ibms390x.h (NO_UNION_TYPE):
17310 * m/ibms390.h (NO_UNION_TYPE):
17311 * m/ibmrs6000.h (NO_UNION_TYPE):
17312 * m/ia64.h (NO_UNION_TYPE):
17313 * m/hp800.h (NO_UNION_TYPE):
17314 * m/arm.h (NO_UNION_TYPE):
17315 * m/amdx86-64.h (NO_UNION_TYPE):
17316 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
17317 defining it the same.
17318
173192008-07-10 Chong Yidong <cyd@stupidchicken.com>
17320
17321 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
17322
173232008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
17324
17325 * fileio.c:
50426a04 17326 * sysdep.c:
aac0c6e3
MR
17327 * systty.h:
17328 * m/ibmrs6000.h:
17329 * m/iris4d.h:
17330 * s/aix4-2.h:
17331 * s/freebsd.h:
17332 * s/gnu-linux.h:
17333 * s/hpux10-20.h:
17334 * s/hpux11.h:
17335 * s/netbsd.h:
17336 * s/sol2-3.h:
17337 * s/sol2-4.h:
17338 * s/sol2.h:
17339 * s/usg5-4.h:
17340 * s/vms.h: Remove references to unused variables.
17341
173422008-07-10 Andreas Schwab <schwab@suse.de>
17343
17344 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
17345 pattern before matching the generic family.
17346
173472008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
17348
17349 * unexec.c:
17350 * s/vms.h:
17351 * s/usg5-4-2.h:
17352 * s/sol2-5.h:
17353 * s/freebsd.h:
17354 * s/darwin.h: Remove dead code.
17355
17356 * m/template.h:
17357 * m/sparc.h:
17358 * m/mips.h:
17359 * m/m68k.h:
17360 * m/iris4d.h:
17361 * m/intel386.h:
17362 * m/ibms390x.h:
17363 * m/ibms390.h:
17364 * m/ia64.h:
17365 * m/hp800.h:
17366 * m/arm.h:
17367 * m/amdx86-64.h: Remove dead code and references to unused
17368 and compiler defined symbols.
17369
17370 * unexmips.c:
17371 * unexelf.c: Remove references to desupported systems.
17372
17373 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
17374
17375 * m/powermac.h: Remove boilerplate comments.
17376 (NO_REMAP): Remove unused definition.
17377
17378 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
17379 define them.
17380
173812008-07-10 Kenichi Handa <handa@m17n.org>
17382
17383 * xfont.c (xfont_open): Log the reason of failure.
17384
173852008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
17386
17387 * fontset.c (fontset_get_font_group):
17388 * font.c (font_check_otf): Specify argument types.
17389
173902008-07-09 Kenichi Handa <handa@m17n.org>
17391
17392 * coding.c (detect_coding_utf_8): Set detect_info->found only when
17393 non-ASCII char is found.
17394
17395 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
17396 (reorder_font_vector): Change the arg preferred_family to font.
17397 Prefer the spec matching with font.
17398 (fontset_get_font_group): New function.
17399 (fontset_find_font): Change the format of an element of a realized
17400 fontset. Use fontset_get_font_group.
17401 (fontset_font): Try the current fontset, the default fontset, the
17402 fallbacks of the current fontset, and the fallbacks of the default
17403 fontset in this order.
17404 (face_for_char): Delete the shortcut to use the current font.
17405 (fontset_from_font): Don't set fonts for Latin in the fontset.
17406
17407 * font.h (font_make_object, font_match_p): Adjust prototypes.
17408
17409 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
17410
17411 * font.c (font_make_object): New arg entity and pixelsize.
17412 (font_check_otf_features, font_check_otf): New functions.
17413 (font_match_p): Check :lang, :script, and :otf properties.
17414
17415 * xfont.c (xfont_open): Adjust it for the change of
17416 font_make_object.
17417 (xfont_text_extents): Fix initial setting of metrics.
17418
17419 * ftfont.c (struct ftfont_info): New member index, delete member
17420 fc_charset_idx. Make the member order compatible with struct
17421 xftfont_info.
17422 (fc_charset_table): Change charset names to registry names.
17423 (ftfont_pattern_entity): Delete the args registry and
17424 fc_charset_idx. Change the value of :font-entity property
17425 to (FONTNAME . INDEX). Always set :registry property to
17426 `iso10646-1'.
17427 (struct ftfont_cache_data): New struct.
17428 (ftfont_lookup_cache): New arg for_face.
17429 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
17430 (ftfont_driver): Set the member otf_capability.
17431 (ftfont_get_charset): Adjust it for the change of
17432 fc_charset_table.
17433 (OTF_TAG_SYM): New macro.
17434 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
17435 for the change of fc_charset_table.
17436 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
17437 ftfont_pattern_entity. Add FC_INDEX to objset.
17438 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
17439 and ftfont_pattern_entity.
17440 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
17441 font_make_object, struct ftfont_info.
17442 (ftfont_has_char): Use ftfont_get_fc_charset.
17443 (ftfont_otf_features, ftfont_otf_capability): New functions.
17444 (ftfont_shape): Use ftfont_get_otf.
17445 (ftfont_text_extents): Fix initial setting of metrics.
17446
17447 * xftfont.c (struct xftfont_info): New member ft_size. Make the
17448 member order compatible with struct ftfont_info.
bba3e508
SM
17449 (xftfont_open): Add FC_CHARSET to the pattern.
17450 Set xftfont_info->ft_size. Don't unlock the face. Check BDF
aac0c6e3
MR
17451 properties if appropriate.
17452 (xftfont_close): Unlock the face.
17453 (xftfont_anchor_point, xftfont_shape): Deleted.
17454 (syms_of_xftfont): Don't set members anchor_point and shape of
17455 xftfont_driver.
17456
17457 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
17458 font_make_object.
17459
17460 * w32font.c (w32font_open): Adjust it for the change of
17461 font_make_object.
17462 (w32font_open_internal): Don't set properties of font_object here.
17463
174642008-07-08 Chong Yidong <cyd@stupidchicken.com>
17465
17466 * macfns.c (x_create_tip_frame):
17467 * w32fns.c (x_create_tip_frame):
17468 * xfns.c (x_create_tip_frame): Pass parameter argument to
17469 face-set-after-frame-default.
17470
17471 * xfaces.c (Finternal_merge_in_global_face): Save merged
17472 attributes for the default face back into the face vector.
17473
174742008-07-08 Andreas Schwab <schwab@suse.de>
17475
17476 * fontset.h: Declare fontset_from_font. Don't declare
17477 new_fontset_from_font and fontset_from_font_name.
17478 * xterm.c: Include "fontset.h".
17479 * Makefile.in (xterm.o): Update dependencies.
17480
174812008-07-08 Glenn Morris <rgm@gnu.org>
17482
17483 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
17484 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
17485
174862008-07-07 Chong Yidong <cyd@stupidchicken.com>
17487
17488 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
17489 (x_set_frame_parameters): Don't bind it.
17490
174912008-07-07 Juanma Barranquero <lekktu@gmail.com>
17492
17493 * w32fns.c (map_w32_filename): Declare extern.
17494
174952008-07-07 Jason Rumney <jasonr@gnu.org>
17496
17497 * w32term.c (WS_EX_LAYERED): Define if not already.
17498
174992008-07-06 Chong Yidong <cyd@stupidchicken.com>
17500
17501 * xfaces.c (set_font_frame_param): Don't try to set the font
17502 parameter if it is still unspecified in the lface.
17503
175042008-07-05 Chong Yidong <cyd@stupidchicken.com>
17505
17506 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
17507 face if it didn't already exist.
17508
17509 * xdisp.c (try_window_id): Give up if word-wrapping is on.
17510
175112008-07-05 Andreas Schwab <schwab@suse.de>
17512
17513 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
17514
175152008-07-05 Chong Yidong <cyd@stupidchicken.com>
17516
17517 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
17518 word-wrapping.
17519 (IT_DISPLAYING_WHITESPACE): New macro.
17520 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
17521 when word-wrapping. Simplify word-wrapping logic. Use correct
17522 pixel positions when saving copies of the iterator.
17523 (display_line): Use proper wrap point if the last character on a
17524 line was preceded by whitespace.
17525
175262008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
17527
17528 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
17529
175302008-07-04 Kenichi Handa <handa@m17n.org>
17531
17532 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
17533
17534 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
17535
175362008-07-02 Jason Rumney <jasonr@gnu.org>
17537
17538 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 17539 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
17540
17541 * xdisp.c (next_element_from_display_vector): Move assignment out
17542 of if statement.
17543
175442008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
17545
17546 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
17547
17548 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
17549 (syms_of_fileio): Initialize and export them.
17550 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
17551
17552 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
17553 (Fsystem_move_file_to_trash): New function.
17554 (syms_of_w32fns): Export it to lisp.
17555
175562008-07-01 Jason Rumney <jasonr@gnu.org>
17557
17558 * w32font.c (w32font_text_extents): Don't count overhang as part
17559 of width.
17560
175612008-06-30 Miles Bader <miles@gnu.org>
17562
17563 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
17564 Add `avoid_cursor_p' field.
17565
17566 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
17567 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
17568 (append_glyph, append_composite_glyph, produce_image_glyph)
17569 (append_stretch_glyph): Initialize avoid_cursor_p.
17570 (get_it_property): Rename from `get_line_height_property'.
17571 (x_produce_glyphs): Use get_it_property.
17572 (handle_line_prefix, push_display_prop): New functions.
17573 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
17574 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
17575 New variables.
17576 (syms_of_xdisp): Initialize them.
17577
175782008-06-30 Kenichi Handa <handa@m17n.org>
17579
17580 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
17581 XftDefaultSubstitute (they are called in XftFontMatch).
17582 (xftfont_open): Fix args to ftfont_font_format.
17583
17584 * ftfont.c (fc_charset_table): New member lang.
17585 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 17586 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
17587 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
17588 (ftfont_open): Fix args to ftfont_font_format.
17589 (ftfont_font_format): New arg filename.
17590
175912008-06-30 Chong Yidong <cyd@stupidchicken.com>
17592
17593 * xfaces.c (Finternal_merge_in_global_face): If default face was
17594 modified, realize it again. Update the font face attribute.
17595
175962008-06-29 Jason Rumney <jasonr@gnu.org>
17597
17598 * w32term.c (x_set_frame_alpha): Fix logic.
17599
176002008-06-29 Kenichi Handa <handa@m17n.org>
17601
17602 * fontset.c (Finternal_char_font): Return font-object instead of
17603 font-name.
17604
17605 * composite.c (get_composition_id): Fix the width calculation for TAB.
17606
176072008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
17608
17609 * indent.c (Fvertical_motion): Properly handle float column arg.
17610
176112008-06-28 Jason Rumney <jasonr@gnu.org>
17612
17613 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
17614 (pfnSetLayeredWindowAttributes): New function pointer.
17615 (w32_initialize): Initialize it when supported.
17616 (x_set_frame_alpha): New function.
17617
17618 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
17619 (w32_frame_parm_handlers): Set alpha handler.
17620
17621 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
17622
176232008-06-27 Jason Rumney <jasonr@gnu.org>
17624
17625 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
17626 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
17627 (w32_to_x_charset, x_to_w32_charset)
17628 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
17629 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
17630 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
17631 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
17632 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
17633 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
17634 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
17635 (Qw32_charset_unicode): Remove.
17636 (syms_of_w32fns): Update for above changes.
17637
17638 * w32font.c (w32_to_x_charset, x_to_w32_charset)
17639 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
17640 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
17641 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
17642 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
17643 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
17644 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
17645 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
17646 (syms_of_w32font): Update for above changes.
17647
176482008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
17649
17650 * s/usg5-4.h: Fix previous change: keep the correct branch of a
17651 removed #if.
17652 (USG_SHARED_LIBRARIES): Remove duplicate definition.
17653
176542008-06-26 Juanma Barranquero <lekktu@gmail.com>
acd0102a 17655 Eli Zaretskii <eliz@gnu.org>
aac0c6e3
MR
17656
17657 * makefile.w32-in (LOCAL_FLAGS):
17658 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
17659
17660 * sysdep.c (_spawnlp, _getpid):
17661 Declare with explicit _cdecl instead of _CRTAPI1.
17662
17663 * editfns.c (Fget_internal_run_time):
17664 Check for WINDOWSNT with #ifdef, not #if.
17665
176662008-06-26 Jason Rumney <jasonr@gnu.org>
17667
17668 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
17669
17670 * w32term.c (x_draw_glyph_string_foreground)
17671 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
17672 Use FONT_HANDLE macro.
17673 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
17674
17675 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
17676 (uniscribe_encode_char): Use FONT_HANDLE macro.
17677
17678 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
17679 (w32font_text_extents): Use precast w32_font.
17680 (w32font_close): Free cached metrics.
17681 (w32font_open_internal): Allocate space for name on stack.
17682
176832008-06-26 Chong Yidong <cyd@stupidchicken.com>
17684
17685 * xdisp.c (extend_face_to_end_of_line): Fix last change.
17686
176872008-06-26 Jason Rumney <jasonr@gnu.org>
17688
17689 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
17690 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
17691
176922008-06-26 Juanma Barranquero <lekktu@gmail.com>
17693
17694 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
17695
176962008-06-26 Jason Rumney <jasonr@gnu.org>
17697
17698 * w32bdf.c, w32bdf.h: Remove obsolete files.
17699
17700 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
17701
17702 * w32gui.h: Don't include w32bdf.h.
17703 (XCharStruct, enum w32_char_font_type, W32FontStruct):
17704 Remove obsolete font support.
17705
17706 * w32font.h (struct w32font_info): Remove compat_w32_font.
17707 Add hfont member.
17708 (FONT_COMPAT): Remove obsolete macro.
17709
17710 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
17711 (w32font_encode_char, w32font_text_extents): Use new hfont member.
17712 (w32font_open_internal): Remove compat code. Set new hfont member.
17713 (Fx_select_font): Use new hfont member.
17714
17715 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
17716 (uniscribe_encode_char): Use new hfont member.
17717
17718 * w32term.c (x_draw_glyph_string_foreground)
17719 (x_draw_composite_glyph_string_foreground): Use new hfont member.
17720 (x_draw_glyph_string): Use metrics in w32font_info.
17721
177222008-06-26 Kenichi Handa <handa@m17n.org>
17723
17724 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
17725
177262008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
17727
17728 * unexnext.c:
17729 * m/ews4800.h:
17730 * m/hp9000s300.h:
17731 * m/ibm370aix.h:
17732 * m/mips-siemens.h:
17733 * m/ncr386.h:
17734 * m/next.h:
17735 * m/pmax.h:
17736 * m/powerpcle.h:
17737 * m/tandem-s2.h:
17738 * s/386bsd.h:
17739 * s/bsd386.h:
17740 * s/bsd4-1.h:
17741 * s/bsd4-2.h:
17742 * s/bsdos2-1.h:
17743 * s/bsdos2.h:
17744 * s/bsdos3.h:
17745 * s/bsdos4.h:
17746 * s/nextstep.h:
17747 * s/ultrix4-3.h:
17748 * s/usg5-0.h:
17749 * s/usg5-2-2.h:
17750 * s/usg5-2.h:
17751 * s/usg5-4-3.h:
17752 * s/ux4800.h:
17753 * s/uxpds.h:
17754 * s/uxpv.h: Remove support for obsolete systems.
17755 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 17756 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
17757 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
17758 Remove, insert contents in s/aix4-2.h.
17759 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
17760 * s/bsd4-3.h: Rename to ...
17761 * s/bsd-common.h: ... this.
17762 * data.c:
17763 * doc.c:
17764 * ecrt0.c:
17765 * emacs.c:
17766 * fileio.c:
17767 * floatfns.c:
17768 * keyboard.c:
17769 * mem-limits.h:
17770 * print.c:
17771 * process.c:
17772 * sysdep.c:
17773 * syssignal.h:
17774 * systty.h:
17775 * syswait.h:
17776 * term.c:
17777 * unexec.c:
17778 * unexelf.c:
17779 * unexhp9k800.c:
17780 * m/hp800.h:
17781 * m/ibmrs6000.h:
17782 * m/mips.h:
17783 * m/vax.h:
17784 * s/darwin.h:
17785 * s/freebsd.h:
17786 * s/gnu.h:
17787 * s/ms-w32.h:
17788 * s/msdos.h:
17789 * s/netbsd.h:
17790 * s/template.h: Remove references to obsolete variables.
17791
17792 * Makefile.in: Add dependencies for all unexec files.
17793 (admindir): Remove unused variable.
17794 (UNEXEC_SRC): Remove references.
17795
177962008-06-25 Chong Yidong <cyd@stupidchicken.com>
17797
17798 * xfns.c (x_default_font_parameter): If Xft is available, first
17799 try Monospace-12 for the default font.
17800
178012008-06-25 Jason Rumney <jasonr@gnu.org>
17802
17803 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
17804
178052008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
17806
17807 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
17808
17809 * buffer.c (syms_of_buffer): Remove default-word-wrap.
17810
178112008-06-25 Juanma Barranquero <lekktu@gmail.com>
17812
17813 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
17814 <scroll-conservatively>: Fix typo in docstring.
17815
17816 * xselect.c (Fx_send_client_event): Doc fix.
17817
178182008-06-25 Kenichi Handa <handa@m17n.org>
17819
17820 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
17821
17822 * font.c (font_parse_fcname): Remove unused variables.
17823 (font_sort_entites): Delete the arg SPEC. Caller changed.
17824 Fix for the case of ! best_only.
17825 (font_delete_unmatched): Check DPI and AVGWIDTH too.
17826
17827 * lisp.h (Fstring_to_unibyte): EXFUN it.
17828
17829 * character.h (str_to_unibyte): Extern it.
17830
17831 * character.c (str_to_unibyte): New function.
17832
17833 * fns.c (Fstring_to_unibyte): New function.
17834 (syms_of_fns): Defsubr it.
17835
178362008-06-24 Kenichi Handa <handa@m17n.org>
17837
17838 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
17839 DPI too.
17840 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
17841
178422008-06-24 Andreas Schwab <schwab@suse.de>
17843
17844 * Makefile.in (${lispsource}loaddefs.el): Rename from
17845 ../lisp/loaddefs.el.
17846 (bootstrap-clean): Do what distclean does but don't remove
17847 Makefile.
17848 (distclean): Depend on bootstrap-clean and remove Makefile.
17849
178502008-06-24 Chong Yidong <cyd@stupidchicken.com>
17851
17852 * buffer.h (struct buffer): New member word_wrap.
17853
17854 * buffer.c (syms_of_buffer): New variables default-word-wrap and
17855 word-wrap.
17856 (init_buffer_once): Initialize them.
17857
17858 * dispextern.h (struct it): Replace bool truncate_lines_p with a
17859 line_wrap enum possessing three possible values.
17860
17861 * termopts.h: Replace truncate_partial_width_windows with
17862 Vtruncate_partial_width_windows.
17863
17864 * dispnew.c (direct_output_for_insert): Avoid direct output when
17865 inserting a space with word wrap on.
17866
17867 * indent.c (compute_motion): Obey integer values of
17868 truncate-partial-width-windows.
17869
17870 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
17871 replacing truncate_partial_width_windows.
17872 (init_iterator): If Vtruncate_partial_width_windows is an integer,
17873 truncate only if the window width is below that integer.
17874 (start_display, resize_mini_window, produce_stretch_glyph)
17875 (display_string, move_it_in_display_line_to): Use line_wrap.
bba3e508
SM
17876 (back_to_previous_visible_line_start, reseat_1):
17877 Reset string_from_display_prop_p.
aac0c6e3
MR
17878 (display_line): Extend default face to end of line when wrapping.
17879
178802008-06-24 Kim F. Storm <storm@cua.dk>
17881
17882 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
17883 to wrap continued lines at word boundaries.
17884
178852008-06-24 Jason Rumney <jasonr@gnu.org>
17886
17887 * font.c (Ffont_face_attributes): Multiply pixel size before point
17888 conversion to avoid multiplying rounding error.
17889
178902008-06-23 Jason Rumney <jasonr@gnu.org>
17891
17892 * w32term.c (x_draw_glyph_string_background)
17893 (x_draw_glyph_string): Remove old bdf font code.
17894
17895 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
17896
178972008-06-22 Kenichi Handa <handa@m17n.org>
17898
17899 * font.c (font_find_for_lface): Try the adstyle specified in
17900 the property of LFACE_FONT of LFACE (if any).
17901
179022008-06-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 17903 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
17904
17905 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
17906
179072008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
17908
17909 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
17910 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
17911 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
17912 (witness-emacs): Remove.
17913 (lisp, shortlisp): Move loaddefs.el earlier.
17914 (mostlyclean): Forget about witness-emacs.
17915
179162008-06-22 Glenn Morris <rgm@gnu.org>
17917
17918 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
17919 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
17920
179212008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
17922
17923 * Makefile.in (PRECOMP): Remove.
17924 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
17925 (witness-emacs): Run `compile-first'.
17926 (.el.elc): Use the new compile-onefile target.
17927
179282008-06-21 Kenichi Handa <handa@m17n.org>
17929
17930 * xftfont.c (xftfont_open): Handle QCembolden only when
17931 FC_EMBOLDEN is defined.
17932
179332008-06-21 Andreas Schwab <schwab@suse.de>
17934
17935 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
17936 (.el.elc): Likewise.
17937
179382008-06-21 Miles Bader <miles@gnu.org>
17939
17940 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
17941 build dir, not the lisp source dir.
17942
179432008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
17944
17945 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
17946 (bootstrapclean): Remove.
17947 (.el.elc): New rule.
17948 (PRECOMP): New var.
17949 (../lisp/subdirs.el): Remove.
17950 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
17951 (witness-emacs): New target.
17952 (mostlyclean): Remove witness-emacs as well.
17953 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
17954 Add witness-emacs dependency.
17955
179562008-06-20 Chong Yidong <cyd@stupidchicken.com>
17957
17958 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
17959 defined by the font.
17960
179612008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
17962
17963 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
17964 (bootstrap-clean): New target that keeps TAGS around.
17965 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
17966 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
17967
179682008-06-20 Jason Rumney <jasonr@gnu.org>
17969
17970 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
17971 Remove obsolete font code.
17972
17973 * w32font.c (font_matches_spec): Use csb bitfield from font signature
17974 to determine language support.
17975
179762008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
17977
17978 * sysdep.c (cfsetspeed): New fun extracted from the code.
17979 (cfmakeraw): Move before first use.
17980
179812008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
17982
17983 * sysdep.c (cfmakeraw): Provide fallback implementation.
17984 (serial_configure): Provide fallback implementation of cfsetspeed.
17985
179862008-06-20 Kenichi Handa <handa@m17n.org>
17987
17988 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
17989 the pattern.
17990
17991 * fontset.c (fontset_from_font): Copy font_spec before changing
17992 the elements.
17993
17994 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
17995
179962008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
17997
17998 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
17999 for explicit `font' parameters.
18000
18001 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
18002
180032008-06-19 Kenichi Handa <handa@m17n.org>
18004
18005 * frame.c: Include <ctype.h>.
18006 (x_set_font_backend): Allow spacing characters in the X resource
18007 for FontBackend.
18008
180092008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
18010
18011 * w32fns.c, xfns.c (Qfont_param): New var.
18012 (syms_of_w32fns): Initialize it.
18013 (x_default_font_parameter): Record explicit `font' into
18014 `font-parameter'.
18015
180162008-06-18 Kenichi Handa <handa@m17n.org>
18017
18018 * font.c (font_parse_xlfd): Fix previous change.
18019 (font_parse_fcname): Don't use :fc-unknown-spec.
18020 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
18021 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
18022 (font_add_log): Prepend the driver name to the resulting fonts.
18023
18024 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
18025 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
18026 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
18027
18028 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
18029 (QCembolden): New variables.
18030 (syms_of_xftfont): DEFSYM them.
18031 (xftfont_open): Call XftFontMatch. Don't trust the result of
18032 XftTextExtents8 if the pixel_size is less than 5.
18033
180342008-06-18 Andreas Schwab <schwab@suse.de>
18035
18036 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
18037 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
18038
180392008-06-18 Jason Rumney <jasonr@gnu.org>
18040
18041 * w32font.c (w32font_list, w32font_match): Add logging.
18042
18043 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
18044
180452008-06-17 Chong Yidong <cyd@stupidchicken.com>
18046
18047 * font.c (font_parse_fcname): Store divider characters for
18048 unknown-spec list. For known key symbols, intern using correct
18049 symbol name.
18050
180512008-06-17 Kenichi Handa <handa@m17n.org>
18052
18053 * xfaces.c (realize_default_face): If the frame is not on window
18054 system, set the fontset of face to nil.
18055
180562008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
18057
18058 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
18059
180602008-06-16 Juanma Barranquero <lekktu@gmail.com>
18061
18062 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
18063 (build_font_name_from_vector): Delete externs.
18064
18065 * xfaces.c (struct font_name): Don't declare.
18066
180672008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
18068
18069 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
18070
180712008-06-16 Chong Yidong <cyd@stupidchicken.com>
18072
18073 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
18074
180752008-06-16 Juanma Barranquero <lekktu@gmail.com>
18076
18077 * font.c (Ffont_spec): Fix usage in docstring.
18078 (Ffont_face_attributes): Doc fix.
18079
180802008-06-16 Andreas Schwab <schwab@suse.de>
18081
18082 * font.c (Ffont_face_attributes): Fix definition.
18083
180842008-06-16 Jason Rumney <jasonr@gnu.org>
18085
18086 * font.h (font_style_symbolic_from_value): Remove.
18087
18088 * font.c (font_style_symbolic_from_value): Remove.
18089 (font_style_symbolic): Revert to pre 2008-06-13 version.
18090
18091 * w32font.c (w32_to_fc_weight): New function.
18092 (w32font_full_name, logfont_to_fcname): Use it.
18093
180942008-06-16 Kenichi Handa <handa@m17n.org>
18095
18096 * font.c (font_check_object): Delete it.
18097 (font_clear_cache): Check if a font-object is alive.
18098 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
18099 font-object to nil.
18100 (font_close_object): Don't check FONT_CLOSE_OBJECT.
18101 (font_at): Don't call font_check_object.
18102 (Ffont_get): Return a symbol for :weight, :slant, and :width.
18103
181042008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
18105
18106 * puresize.h (BASE_PURESIZE): Increase to 1230000.
18107
181082008-06-16 Chong Yidong <cyd@stupidchicken.com>
18109
18110 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
18111
181122008-06-15 Chong Yidong <cyd@stupidchicken.com>
18113
18114 * font.c (font_parse_fcname): Only one decimal point.
18115 (font_unparse_fcname): Handle data in family and foundry indices
18116 as symbols, not strings.
18117 (font_unparse_gtkname, Ffont_face_attributes): New functions.
18118
18119 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
18120
18121 * font.h (font_unparse_gtkname): Add prototype.
18122
181232008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
18124
18125 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
18126
181272008-06-15 Andreas Schwab <schwab@suse.de>
18128
18129 * font.c (font_update_drivers): Fix crash when no drivers match.
18130
181312008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
18132
18133 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
18134 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
18135
181362008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
18137
18138 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
18139
181402008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
18141
18142 * process.c (Fserial_process_configure, Fprocess_send_eof):
18143 Use EQ to compare Lisp_Objects.
18144
181452008-06-13 Jason Rumney <jasonr@gnu.org>
18146
18147 * w32fns.c (Fw32_select_font): Remove old font API function.
18148
18149 * w32font.c (logfont_to_fcname): New function.
18150 (Fx_select_font): New font dialog function compatible with
18151 GTK/fontconfig version.
18152
18153 * font.c (font_style_symbolic_from_value): New function.
18154 (font_style_symbolic): Use it.
18155
18156 * font.h (font_style_symbolic_from_value): Declare new function.
18157
181582008-06-13 Juanma Barranquero <lekktu@gmail.com>
18159
18160 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
18161 <font-width-table>: Fix typos in docstrings.
18162
181632008-06-13 Daniel Engeler <engeler@gmail.com>
18164
18165 These changes add serial port access.
18166 * process.c: Add HAVE_SERIAL.
18167 (Fdelete_process, Fprocess_status, Fset_process_buffer)
18168 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
18169 (list_processes_1, select_wrapper, Fstop_process)
18170 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
18171 (status_notify): Modify to handle serial processes.
18172 [HAVE_SERIAL] (Fserial_process_configure)
18173 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
18174 New functions.
18175 * process.h (struct Lisp_Process): Add `type'.
18176 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
18177 New functions.
18178 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
18179 serial ports.
b71ac3dd 18180 (serial_open, serial_configure): New functions.
aac0c6e3
MR
18181 * w32.h: Add FILE_SERIAL.
18182 (struct _child_process): Add ovl_read, ovl_write.
18183
181842008-06-13 Kenichi Handa <handa@m17n.org>
18185
18186 * dispextern.h (enum lface_attribute_index): New member
18187 LFACE_FOUNDRY_INDEX.
18188
18189 * font.c (font_score): Delete arg alternate_families. Check only
18190 weight, slant, width, and size. Ignore the difference of alias
18191 style symbols.
18192 (font_sort_entites): Adjust for the above change. Reflect the
18193 order of font-driver to scores.
18194 (font_list_entities): Don't check alternate_familes here.
18195 (font_clear_prop): Handle foundry.
18196 (font_update_lface): Don't parse "foundry-family" form here.
18197 Handle FONT_FOUNDRY_INDEX.
18198 (font_find_for_lface): Likewise. Handle alternate families here.
18199 If registry is nil, try iso8859-1 and ascii-0.
18200 (font_open_for_lface): Pay attention to size in ENTITY.
18201 (font_open_by_name): Simplify by calling font_load_for_lface.
18202 (free_font_driver_list): Delete it.
18203 (font_update_drivers): Preserve the order of backends.
18204 (syms_of_font): Setting of sort_shift_bits adjusted for the change
18205 of font_score and font_sort_entites.
18206 (font_update_sort_order): Likewise.
18207
18208 * xfaces.c (LFACE_FOUNDRY): New macro.
18209 (check_lface_attrs): Check foundry.
18210 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
18211 (merge_face_vectors): Check foundry.
18212 (merge_face_ref): Likewise.
18213 (Finternal_set_lisp_face_attribute): Likewise.
18214 (x_update_menu_appearance): Likewise.
18215 (Finternal_get_lisp_face_attribute): Likewise.
18216 (lface_hash): Likewise.
18217 (lface_same_font_attributes_p): Likewise.
18218 (x_supports_face_attributes_p): Likewise.
18219 (tty_supports_face_attributes_p): Likewise.
18220 (Finternal_set_alternative_font_family_alist): Intern strings.
18221 (Finternal_set_alternative_font_registry_alist): Downcase strings.
18222 (realize_default_face): Set LFACE_FOUNDRY (lface).
18223
18224 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
18225 font-driver at first.
18226
18227 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
18228
182292008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
18230
18231 * lread.c (Fload): Use xfree, not free on saved_doc_string.
18232
182332008-06-12 Jim Meyering <meyering@redhat.com>
18234
18235 Make unexec_free handle NULL the same way free does.
18236 * unexmacosx.c (unexec_free): Ignore a NULL argument.
18237
182382008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
18239
18240 * character.h (CHAR_TO_BYTE_SAFE): New macro.
18241 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
18242 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
18243 (WEAK_ALIAS): Simplify.
18244 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
18245 when searching a unibyte buffer.
18246
182472008-06-12 Chong Yidong <cyd@stupidchicken.com>
18248
18249 * xfns.c (Fx_select_font): Rename from x-font-dialog.
18250
182512008-06-12 Juanma Barranquero <lekktu@gmail.com>
18252
18253 * w32font.c: Include ctype.h.
18254
182552008-06-11 Jason Rumney <jasonr@gnu.org>
18256
18257 * w32font.c (w32font_encode_char): Detect missing glyphs that are
18258 misreported as space.
18259 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
18260 as aliases for registry iso10646-1.
18261
182622008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
18263
18264 * buffer.c (clone_per_buffer_values): Skip `name'.
18265
182662008-06-11 Chong Yidong <cyd@stupidchicken.com>
18267
18268 * font.c (font_parse_fcname): Fix last change; accept decimal
18269 points in font size.
18270
182712008-06-10 Jason Rumney <jasonr@gnu.org>
18272
18273 * w32uniscribe.c (add_opentype_font_name_to_list):
18274 Skip non unicode fonts.
18275
182762008-06-10 Chong Yidong <cyd@stupidchicken.com>
18277
18278 * xfns.c (Fx_font_dialog): New function.
18279
18280 * gtkutil.c (xg_dialog_response_cb): Rename from
18281 xg_file_response_callback.
18282 (pop_down_dialog): Rename from pop_down_file_dialog.
18283 (xg_get_file_name): Callers changed.
18284 (xg_get_font_name): New function.
18285
18286 * gtkutil.h (xg_get_font_name): Insert prototype.
18287
182882008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
18289
18290 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
18291 x_underline_minimum_display_offset.
18292 (syms_of_xdisp): Declare it here rather than in xterm.c.
18293 * dispextern.h (underline_minimum_offset): Declare it.
18294 * w32term.c (x_draw_glyph_string): Use it.
18295 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
18296 (syms_of_xterm): Don't declare it any more.
18297 (x_draw_glyph_string): Adjust to the new name.
18298
8719abec 182992008-06-10 David De La Harpe Golden <david@harpegolden.net>
aac0c6e3
MR
18300
18301 * xterm.c (x_underline_minimum_display_offset): New var.
18302 (x_draw_glyph_string): Use it.
18303 (syms_of_xterm): Declare it.
18304
183052008-06-10 Chong Yidong <cyd@stupidchicken.com>
18306
18307 * font.c (font_parse_fcname): Accept GTK-style font names too.
18308
183092008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
18310
18311 * dired.c (file_name_completion): Don't return t if the match is exact
18312 but with different capitalization.
18313 * minibuf.c (Ftry_completion): Simplify.
18314
18315 * window.c (Vwindow_point_insertion_type): New var.
18316 (set_window_buffer): Use it.
18317 (syms_of_window): Init and export it to Lisp.
18318
183192008-06-10 Kenichi Handa <handa@m17n.org>
18320
18321 * font.h (font_intern_prop): Prototype adjusted.
18322
18323 * font.c (font_intern_prop): New arg force_symbol.
18324 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
18325 Adjust for the change of font_intern_prop.
18326
18327 * ftfont.c (ftfont_pattern_entity):
18328 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
18329 (w32_registry):
18330 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
18331 the change of font_intern_prop.
18332
183332008-06-09 Juanma Barranquero <lekktu@gmail.com>
18334
18335 * w32menu.c (digest_single_submenu): Declare extern.
18336
183372008-06-09 Jason Rumney <jasonr@gnu.org>
18338
18339 * w32term.c (x_make_frame_visible): Use alternate restore flags.
18340
18341 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
18342 (parse_single_submenu): Remove.
18343 (digest_single_submenu): Remove.
18344 (syms_of_w32menu): Don't initialise variables that have moved
18345 to menu.c.
18346 (set_frame_menubar): Sync with version in xmenu.c.
18347 (w32_menu_show): Sync with xmenu_show in xmenu.c.
18348
18349 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
18350 Make static again.
18351
183522008-06-09 Jason Rumney <jasonr@gnu.org>
18353
18354 Changes to w32 files related to the move of common menu code
18355 to menu.c on 2008-06-08 by Chong Yidong.
18356
18357 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
18358 defs to w32gui.h.
18359 (single_keymap_panes, push_menu_item, push_menu_pane):
18360 Make globally visible.
18361
18362 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
18363 (local_free, malloc_widget_value, free_widget_value)
18364 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
18365 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
18366 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
18367 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
18368 (menu_items, menu_items_allocated, menu_items_used)
18369 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
18370 (init_menu_items, finish_menu_items, discard_menu_items)
18371 (grow_menu_items, push_submenu_start, push_submenu_end)
18372 (push_left_right_boundary, push_menu_pane, push_menu_item)
18373 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
18374 (free_menubar_widget_tree_value, parse_single_submenu)
18375 (update_submenu_strings): Remove functions.
18376 (xmalloc_widget_value): Remove and declare extern.
18377
18378 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
18379 (OBJ1): Build it.
18380
18381 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
18382 (local_heap, local_alloc, local_free, malloc_widget_value)
18383 (free_widget_value): Define here.
18384
183852008-06-09 Kenichi Handa <handa@m17n.org>
18386
18387 * font.h (Qascii_0): Extern it.
18388
18389 * font.c (Qascii_0): New variable.
18390 (syms_of_font): DEFSYM it.
18391 (font_open_by_name): If the registry "iso8859-1" fails, try also
18392 "ascii-0".
18393
18394 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
18395
183962008-06-08 Kenichi Handa <handa@m17n.org>
18397
18398 * .gdbinit (xfont): New command.
18399
184002008-06-08 Andreas Schwab <schwab@suse.de>
18401
18402 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
18403 * Makefile.in (menu.o): Update dependencies.
18404
18405 * Makefile.in (obj): Always add menu.o.
18406 * emacs.c (main): Always call syms_of_menu.
18407 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
18408
184092008-06-08 Chong Yidong <cyd@stupidchicken.com>
18410
18411 * Makefile.in: Compile menu.c.
18412
18413 * lisp.h: Declare syms_of_menu.
18414
18415 * emacs.c (main): Call syms_of_menu.
18416
18417 * keyboard.h: Relocate platform-independent menu definitions from
18418 xmenu.c.
18419
18420 * menu.c: New file. Relocate platform-independent menu
18421 definitions from xmenu.c. Suggested by Adrian Robert.
18422
18423 * xmenu.c: Remove platform-independent menu definitions.
560bb7ae 18424 (menu_items, menu_items_inuse, menu_items_allocated)
aac0c6e3
MR
18425 (menu_items_used, menu_items_n_panes)
18426 (menu_items_submenu_depth): Move to keyboard.h.
18427 (init_menu_items, finish_menu_items, unuse_menu_items)
18428 (discard_menu_items, restore_menu_items, save_menu_items)
18429 (grow_menu_items, push_submenu_start, push_submenu_end)
18430 (push_left_right_boundary, push_menu_pane, push_menu_item)
18431 (keymap_panes, single_keymap_panes, single_menu_item)
18432 (list_of_panes, list_of_items, find_and_call_menu_selection)
18433 (xmalloc_widget_value, free_menubar_widget_value_tree)
18434 (parse_single_submenu, digest_single_submenu)
18435 (update_submenu_strings): Move to menu.c.
18436
184372008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
18438
18439 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
18440
184412008-06-06 Miles Bader <miles@gnu.org>
18442
18443 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
18444 face, not frame default.
18445
184462008-06-05 Martin Rudalics <rudalics@gmx.at>
18447
18448 * window.c (pop_up_windows, pop_up_frames)
18449 (display_buffer_reuse_frames, Vpop_up_frame_function)
18450 (Vdisplay_buffer_function, Veven_window_heights)
18451 (Vspecial_display_buffer_names, Vspecial_display_regexps)
18452 (Vspecial_display_function, Vsame_window_buffer_names)
18453 (Vsame_window_regexps, split_height_threshold)
18454 (Vsplit_window_preferred_function): Move those vars to window.el.
18455 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
18456 (Fdisplay_buffer): Move those functions to window.el.
18457 (syms_of_window): Remove corresponding declarations.
18458 (display_buffer): New function.
18459 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
18460 * dispnew.c (Flast_nonminibuf_frame): New function.
18461 * buffer.c (Fpop_to_buffer): Move to window.el.
18462
184632008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
18464
18465 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
18466
184672008-06-05 Kenichi Handa <handa@m17n.org>
18468
18469 * coding.c (detect_coding): Fix previous change.
18470 (detect_coding_system): Likewise.
18471
184722008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
18473
18474 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
18475
18476 * keymap.c (Vminibuffer_local_filename_must_match_map):
18477 Rename from Vminibuffer_local_must_match_filename_map.
18478 (syms_of_keymap):
18479 * minibuf.c (Fcompleting_read): Adjust accordingly.
18480 * commands.h: Rename declaration as well.
18481
184822008-06-05 Kenichi Handa <handa@m17n.org>
18483
18484 * font.c (Ffont_spec): Don't use font_parse_family_registry for
18485 family name.
18486 (Ffont_put): Likewise.
18487
18488 * fontset.c (fontset_find_font): Call font_open_for_lface with the
18489 current font-spec.
18490
18491 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
18492 is unspecified.
18493
18494 * xfaces.c (realize_x_face): If the font-related face attributes
18495 are the same as those of default face, realize a new fontset from
18496 default->fontset.
18497 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
18498
184992008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
18500
18501 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
18502 (move_it_in_display_line): New wrapper.
18503
18504 * window.c (window_scroll_pixel_based_preserve_x)
18505 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
18506 (window_scroll_pixel_based, window_scroll_line_based):
18507 Use them to preserve column positions.
18508 (syms_of_window): Initialize them.
18509
18510 * indent.c (Fvertical_motion): Extend first arg to allow passing an
18511 (HPOS . VPOS) pair.
18512
18513 * dispextern.h (move_it_in_display_line): Declare.
18514
185152008-06-05 Juanma Barranquero <lekktu@gmail.com>
18516
18517 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
18518 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
18519 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
18520
185212008-06-04 Juanma Barranquero <lekktu@gmail.com>
18522
18523 * window.c (Fset_window_parameter): Doc fix.
18524 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
18525
185262008-06-04 Joakim Verona <joakim@verona.se>
18527
18528 * window.h (struct window): Add new member window_parameters.
18529
18530 * window.c (Fwindow_parameters, Fwindow_parameter)
18531 (Fset_window_parameter): New defuns.
18532 (syms_of_window): Defsubr the new defuns.
18533 (make_window): Initialize window_parameters to nil.
18534
185352008-06-04 John Paul Wallington <jpw@pobox.com>
18536
18537 * eval.c (Fdefmacro): Doc fix.
18538
185392008-06-04 Kenichi Handa <handa@m17n.org>
18540
18541 * coding.c (detect_coding): Fix handling of coding->head_ascii.
18542 Be sure to call setup_coding_system when we find a proper coding system.
18543 (detect_coding_system): Fix handling of coding->head_ascii.
18544
185452008-06-03 Andreas Schwab <schwab@suse.de>
18546
18547 * font.c (font_prop_validate_spacing): Fix last change.
18548
185492008-06-03 Kenichi Handa <handa@m17n.org>
18550
18551 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
18552 (font_parse_fcname): Fix handling of unknown key.
18553
18554 * xfont.c (xfont_list): Try an alias.
18555
18556 * charset.c (char_charset): Return NULL if the arg charset_list is
18557 specified and C doesn't belong to any of them.
18558
185592008-06-02 Chip Coldwell <coldwell@redhat.com>
18560
18561 * font.c (font_pixel_size): Don't take cdr of an integer.
18562
185632008-06-02 Jim Meyering <meyering@redhat.com>
18564
18565 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
18566 * alloc.c (xfree): Return right away for a NULL arg.
18567 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
18568 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
18569 * mac.c (create_apple_event_from_event_ref): Likewise.
18570 (create_apple_event_from_drag_ref, cfstring_create_normalized):
18571 Likewise.
18572 * doprnt.c (doprnt1): Likewise.
18573 * frame.c (frame): Likewise.
18574 * keyboard.c (wipe_kboard): Likewise.
18575 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
18576 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
18577 * term.c (tty_default_color_capabilities, maybe_fatal)
18578 (delete_tty): Likewise.
18579 * w16select.c (string): Likewise.
18580 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
18581 * w32bdf.c (w32_free_bdf_font): Likewise.
18582 * w32fns.c (w32_unload_font): Likewise.
18583 * w32font.c (w32font_close): Likewise.
18584 * window.c (size_window): Likewise.
18585 * xselect.c (receive_incremental_selection): Likewise.
18586 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
18587 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
18588 * w32.c (stat): Likewise.
18589
18590 Remove useless if-before-free tests.
18591 * editfns.c (Fset_time_zone_rule): Likewise.
18592 * lread.c (nosuffix): Likewise.
18593 * ralloc.c (get_bloc): Likewise.
18594 * regex.c (reg_free): Likewise.
18595 * xftfont.c (xftfont_open, xftfont_close): Likewise.
18596 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
18597 * xsmfns.c (smc_save_yourself_CB): Likewise.
18598
185992008-06-02 Kenichi Handa <handa@m17n.org>
18600
18601 * font.c (font_find_for_lface): Handle float font size.
18602 (font_open_for_lface): Likewise.
18603
18604 * xfaces.c (x_supports_face_attributes_p): Check face->font before
18605 comparing the properties.
18606
186072008-06-01 Jason Rumney <jasonr@gnu.org>
18608
18609 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
18610 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
18611 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
18612 Don't add empty script list.
18613 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
18614
186152008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
18616
18617 * Makefile.in (dot, dotdot): Remove, update users.
18618 ".." has been used elsewhere in the file for a long time.
18619 (LIBXT_STATIC): Remove conditional based on unused variable.
18620
186212008-06-01 Miles Bader <miles@gnu.org>
18622
18623 * xfaces.c (Vface_remapping_alist): New variable.
18624 (syms_of_xfaces): Initialize it.
18625 (enum named_merge_point_kind): New type.
18626 (struct named_merge_point): Add `named_merge_point_kind' field.
18627 (push_named_merge_point): Make cycle detection respect different
18628 named-merge-point kinds.
18629 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
18630 Remove face-name alias resolution.
18631 (lface_from_face_name): New definition using
18632 `lface_from_face_name_no_resolve'.
18633 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
18634 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
18635 (get_lface_attributes): New definition that layers face-remapping on
18636 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
18637 (lookup_basic_face): New function.
18638 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
18639 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
18640 `get_lface_attributes'.
18641 (face_at_buffer_position): Use `lookup_basic_face' to lookup
18642 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
18643 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
18644
18645 * xdisp.c (init_iterator): Pass base_face_id through
18646 `lookup_basic_face' when we actually use it as a face-id.
18647 (handle_single_display_prop): Use `lookup_basic_face' to lookup
18648 DEFAULT_FACE_ID.
18649
18650 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
18651 lookup the initial face-id.
18652
18653 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
18654
186552008-06-01 Juanma Barranquero <lekktu@gmail.com>
18656
18657 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
18658 (Fremove_text_properties): Fix typos in docstrings.
18659
186602008-05-31 Kenichi Handa <handa@m17n.org>
18661
18662 * font.c (font_list_entities): Fix the car part of data to be
18663 stored in the cache.
18664
18665 * ftfont.c (ftfont_font_format): Don't use strcasestr.
18666
186672008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
18668
18669 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
18670 Add a `test' argument so another predicate than `equal' can be used.
18671 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
18672 (map_char_table): Remove unused vars `c' and `i'.
18673 * lisp.h (Foptimize_char_table): Adjust declaration.
18674 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
18675
186762008-05-30 Kenichi Handa <handa@m17n.org>
18677
18678 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
18679 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
18680 defined.
18681
186822008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
18683
18684 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
18685 (Fmake_variable_frame_local): Disallow mixing buffer-local and
18686 frame-local settings for the same variable.
18687
186882008-05-30 Kenichi Handa <handa@m17n.org>
18689
18690 * fontset.c (Ffont_info): Move to font.c.
18691 (syms_of_fontset): Delete defsubr of Sfont_info.
18692
18693 * font.c (font_style_to_value, font_score): Delete casting of the
18694 args to xstcasecmp.
18695 (register_font_driver): Increment num_font_drivers only when
18696 registering the driver globally.
18697 (Ffont_info): Move from fontset.c. Handle a font object too.
18698 (syms_of_font): Defsubr Sfont_info.
18699
187002008-05-29 Kenichi Handa <handa@m17n.org>
18701
18702 * coding.h (enum define_coding_utf8_arg_index): New enum.
18703 (enum coding_attr_index): Change coding_attr_utf_16_bom to
18704 coding_attr_utf_bom.
18705 (enum utf_bom_type): Rename from utf_16_bom_type.
18706 (struct utf_16_spec): Adjust for the above change.
18707 (struct coding_system): Add utf_8_bom in `spec' union.
18708
18709 * coding.c (CODING_UTF_8_BOM): New macro.
18710 (enum coding_category): Delete coding_category_utf_8, add
18711 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
18712 coding_category_utf_8_sig.
18713 (CATEGORY_MASK_UTF_8): Delete it.
18714 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
18715 (CATEGORY_MASK_UTF_8_SIG): New macros.
18716 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
18717 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
18718 CATEGORY_MASK_UTF_8_SIG.
18719 (CATEGORY_MASK_UTF_8): New macro.
18720 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
18721 (detect_coding_utf_8): Check BOM.
18722 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
18723 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
18724 (encode_coding_utf_16): Likewise.
18725 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
18726 (detect_coding, detect_coding_system): Handle utf-8-auto.
18727 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
18728 (syms_of_coding): Fix setting up of Vcoding_category_table.
18729
187302008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
18731
18732 * process.c (Faccept_process_output): If `millisec' is non-nil,
18733 `seconds' default to 0.
18734 (wait_reading_process_output): Also return non-nil if we read output
18735 from a non-running process.
18736
187372008-05-29 Jason Rumney <jasonr@gnu.org>
18738
18739 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
18740 `raster' specified.
18741 (add_font_entity_to_list): Allow non-opentype truetype fonts back
18742 in the uniscribe backend, but disallow any font that has no
18743 unicode subrange support.
18744
187452008-05-29 Juanma Barranquero <lekktu@gmail.com>
18746
18747 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
18748 Fix typos in docstrings.
18749
187502008-05-29 Kenichi Handa <handa@m17n.org>
18751
18752 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
18753 (Fx_family_fonts): Set frame correctly.
18754
187552008-05-28 Jason Rumney <jasonr@gnu.org>
18756
18757 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
18758
187592008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
18760
18761 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
18762 calling build_annotations.
18763
187642008-05-28 Juanma Barranquero <lekktu@gmail.com>
18765
18766 * coding.c (Fdecode_coding_region, Fencode_coding_region)
18767 (Fencode_coding_string):
18768 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
18769 <latin-extra-code-table>: Fix typos in docstrings.
18770 (syms_of_coding) <coding-system-alist>: Doc fix.
18771 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
18772
187732008-05-28 Kenichi Handa <handa@m17n.org>
18774
18775 * fontset.c (Ffont_info): Don't call font_close_object.
18776
18777 * font.c (font_parse_family_registry): Use Ffont_put to validate
18778 foundry and family.
18779 (font_delete_unmatched): Don't check spacing.
18780 (font_list_entities): Add spacing to the spec to list fonts.
18781
18782 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
18783 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
18784
18785 * coding.c (encode_coding_raw_text): Fix previous change.
18786 (encode_coding_object): When the dst_object is a buffer and is
18787 different from src_object, move gap to PT.
18788
187892008-05-27 Chong Yidong <cyd@stupidchicken.com>
18790
18791 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
18792
187932008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
18794
18795 * coding.c (encode_coding_raw_text): Set coding->produced_char for
18796 all branches. Compute it differently.
18797
18798 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
18799
188002008-05-27 Juanma Barranquero <lekktu@gmail.com>
18801
18802 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
18803 into "else if () ... else ...".
18804
188052008-05-27 Jason Rumney <jasonr@gnu.org>
18806
18807 * w32font.c (w32font_open_internal): Determine if glyph indices
18808 are likely to work here.
18809
188102008-05-27 Chong Yidong <cyd@stupidchicken.com>
18811
18812 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
18813 draw overlap glyphs with appropriate highlighting.
18814
188152008-05-27 Kenichi Handa <handa@m17n.org>
18816
18817 * xfont.c (xfont_open): Fix calculation of font->average_width.
18818
188192008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
18820
18821 * casefiddle.c (casify_object): Try to guess better whether the
18822 argument is a byte or a char.
18823
188242008-05-26 Andreas Schwab <schwab@suse.de>
18825
18826 * xselect.c (x_reply_selection_request): Properly handle format == 32.
18827 Always send multiples of format size.
18828
18829 * xterm.c (x_set_frame_alpha): Fix type mismatch.
18830
188312008-05-26 Jason Rumney <jasonr@gnu.org>
18832
18833 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
18834 (compute_metrics): Don't set failure if we just cleared the cache.
18835 (w32_weight_table): Remove unused variable.
18836 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
18837 backwards compatibility.
18838
188392008-05-25 Kenichi Handa <handa@m17n.org>
18840
18841 * w32term.c (x_draw_glyph_string):
18842 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
18843
18844 * xfaces.c: Delete unused function prototypes.
18845 (xstrlwr, font_frame): Delete them.
18846 (clear_face_cache): Delete unused variable.
18847
18848 * xftfont.c (xftfont_open): Delete unused variable.
18849 If underline_thickness is not 1, adjust underline_position.
18850
18851 * ftxfont.c (ftxfont_open): Delete unused variable.
18852
18853 * fontset.c (face_for_char): Optimize for the case of no charset
18854 property.
18855
18856 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
18857 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
18858 (otf_open, font_otf_capability, generate_otf_features)
18859 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
18860 Comment out by surrounding "#if 0" and "#endif" for the moment.
18861 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
18862 (syms_of_font): Codes for accessing above commented out.
18863
188642008-05-24 Eli Zaretskii <eliz@gnu.org>
18865
18866 * w32proc.c: Include dispextern.h.
18867
18868 * w32.c: Include dispextern.h.
18869
188702008-05-23 Juanma Barranquero <lekktu@gmail.com>
18871
18872 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
18873 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
18874 Fix typos in docstrings.
18875
188762008-05-23 Jason Rumney <jasonr@gnu.org>
18877
18878 * xsmfns.c: Remove includes that are already included by config.h.
18879
188802008-05-23 Kenichi Handa <handa@m17n.org>
18881
18882 * charset.c (Qemacs, charset_emacs): New variables.
18883 (char_charset): Fix for non-Unicode characters.
18884 (syms_of_charset): Define charset_emacs.
18885
18886 * w32term.c (x_draw_glyph_string): Be sure to update
18887 s->underline_thickness and s->underline_position. Be sure to draw
18888 underline within the current line area.
18889
18890 * xterm.c (x_draw_glyph_string): Be sure to update
18891 s->underline_thickness and s->underline_position. Be sure to draw
18892 underline within the current line area.
18893
18894 * fontset.c: Delete unused variables and add casting for char *
18895 throughout the file.
18896 (fontset_font): Try the fallback fonts of the current fontset
18897 before consulting the default fontset.
18898
18899 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
18900
18901 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
18902
189032008-05-22 Jason Rumney <jasonr@gnu.org>
18904
18905 * font.c: Don't include strings.h.
18906
18907 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
18908
18909 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
18910 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
18911 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
18912 to call xstrcasecmp.
18913
18914 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
18915
18916 * fontset.c (fs_query_fontset): Use xstrcasecmp.
18917
18918 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
18919
18920 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
18921
189222008-05-22 Kenichi Handa <handa@m17n.org>
18923
18924 * puresize.h (BASE_PURESIZE): Increase to 1220000.
18925
18926 * font.c (font_prop_validate_style): Adjust for the format
18927 change of font_style_table.
18928
18929 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
18930 two args.
18931
18932 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
18933 two args.
18934
189352008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
18936
18937 * minibuf.c (keys_of_minibuf): Delete.
18938 * lisp.h (keys_of_minibuf): Delete.
18939 * emacs.c (main): Don't call keys_of_minibuf.
18940
189412008-05-22 Kenichi Handa <handa@m17n.org>
18942
18943 * ftfont.c (ftfont_resolve_generic_family): Rename from
18944 ftfont_list_generic_family. Return a single family for each
18945 generic family.
18946 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
18947 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
18948 Call font_add_log.
18949 (ftfont_match): Call font_add_log.
18950
18951 * font.h (Ffont_xlfd_name): EXFUN adjusted.
18952 (FONT_DEBUG): Define it.
18953 (font_add_log): Extern it.
18954 (font_assert): Rename from xassert.
18955
18956 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
18957 (xfont_list_family): Call font_add_log.
18958 (xfont_match): Likewise.
18959 (memq_no_quit): Delete.
18960
18961 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
18962 call of Ffont_xlfd_name.
18963
18964 * xfaces.c (struct table_entry, slant_table, weight_table)
18965 (swidth_table): Move to font.c.
18966
18967 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
18968 xassert are changed to font_assert. Delete many unused variables.
18969 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
18970 New variables.
18971 (struct table_entry): Move from xfaces.c and modified.
18972 (weight_table, slant_table, width_table): Move from xfaces.c and
18973 contents adjusted for the change of struct table_entry.
18974 (font_style_to_value, font_style_symbolic): Adjust for the
18975 format change of font_style_table.
18976 (font_parse_family_registry): Don't overwrite existing foundry and
18977 family of font_spec.
18978 (font_score): Fix calculation of diff for sizes.
18979 (font_sort_entites): Call font_add_log.
18980 (font_delete_unmatched): Return a newly created list.
18981 (font_list_entities): Fix previous change. Call font_add_log.
18982 (font_matching_entity, font_open_entity, font_close_entity):
18983 Call font_add_log.
18984 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
18985 (Finternal_set_font_style_table): Delete.
18986 (BUILD_STYLE_TABLE): New macro.
18987 (build_style_table): New function.
18988 (Vfont_log, font_log_env_checked): New variables.
18989 (font_add_log): New function.
18990 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
18991 Declare Lisp variables "font-weight-table", "font-slant-table",
18992 "font-width-table", and "font-log". Initialize font_style_table.
18993
189942008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
18995
18996 * xterm.c (x_set_frame_alpha): Move declarations before statements.
18997
189982008-05-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 18999 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
19000
19001 * frame.c (Qalpha): Add a new frame parameter `alpha'.
19002 (Vframe_alpha_lower_limit): New variable.
19003 (x_set_alpha): New function.
19004
19005 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
19006
19007 * xfns.c (x-create-frame, Qalpha):
19008 Initialize the frame parameter `alpha'.
19009 * xterm.c (OPAQUE, OPACITY): New.
19010 (x_set_frame_alpha): New function.
19011 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
19012
19013 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
19014 * w32fns.c (w32_frame_parm_handlers): Likewise.
19015
190162008-05-20 Jason Rumney <jasonr@gnu.org>
19017
19018 * w32font.c (add_font_entity_to_list): Don't add non-opentype
19019 truetype fonts to opentype list.
19020
190212008-05-20 Juanma Barranquero <lekktu@gmail.com>
19022
19023 * fontset.c (Ffontset_info): Doc fix.
19024 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
19025 <ignore-relative-composition>: Fix typos in docstrings.
19026
19027 * font.c (syms-of-font) <font-encoding-alist>:
19028 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
19029 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
19030 (Ffont_otf_alternates): Doc fixes.
19031
190322008-05-20 Kenichi Handa <handa@m17n.org>
19033
19034 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
19035 font.h through out the file.
19036 (FONT_DRIVERS): Rename from FONTOBJ.
19037 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
19038 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
19039
19040 * emacs.c (main): Call syms_of_font unconditionally.
19041
19042 * font.h (find_font_encoding): Extern it.
19043
19044 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
19045 fontset.c.
194d44e7 19046 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
aac0c6e3
MR
19047 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
19048 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
19049 only when HAVE_WINDOW_SYSTEM is defined.
19050 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
19051 when HAVE_WINDOW_SYSTEM is defined.
19052
19053 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
19054 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
19055
19056 * xfaces.c: Include font.h unconditionally.
19057 (merge_face_ref, merge_face_vectors)
19058 (Finternal_set_lisp_face_attribute): Cancel the previous change.
19059
190602008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
19061
19062 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
19063 indirect_variable.
19064 * eval.c (lisp_indirect_variable): New fun.
19065 (Fuser_variable_p): Use it.
19066
190672008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
19068
19069 * lisp.h (indirect_variable):
19070 * data.c (indirect_variable, let_shadows_buffer_binding_p):
19071 Use Lisp_Symbol pointers rather than Lisp_Object.
19072 Adjust callers.
19073 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
19074 To this end, change calling-convention.
19075
19076 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
19077 if some non-hidden buffers are selected by string&pred.
19078
190792008-05-19 Chong Yidong <cyd@stupidchicken.com>
19080
19081 * process.c (wait_reading_process_output): Always check status
19082 when in batch mode.
19083
190842008-05-19 Kenichi Handa <handa@m17n.org>
19085
19086 * font.c (font_list_entities): Fix handling of cache.
19087 (font_matching_entity): Likewise.
19088
19089 * ftfont.c (cs_iso8859_1): Delete.
19090 (ft_face_cache): New variable.
19091 (struct ftfont_info): New member fc_charset_idx.
19092 (ftfont_build_basic_charsets): Delete.
19093 (fc_charset_table): New variable.
19094 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
19095 . FC_CHARSET_IDX) as :font-entity property in the font entity.
19096 Callers changed.
19097 (ftfont_lookup_cache, ftfont_get_charset): New functions.
19098 (ftfont_spec_pattern): New argument fc_charset_idx.
19099 Check registry more rigidly. Change callers.
19100 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
19101 change of :font-entity property of the font.
19102
19103 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
19104 property of the font.
19105
191062008-05-18 Juanma Barranquero <lekktu@gmail.com>
19107
19108 * coding.c (Fcoding_system_p): Rename argument to match docstring.
19109 (Funencodable_char_position, Fcheck_coding_systems_region)
19110 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
19111 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
19112 (Ffind_operation_coding_system, Fset_coding_system_priority)
19113 (Fcoding_system_eol_type): Doc fixes.
19114
191152008-05-17 Glenn Morris <rgm@gnu.org>
19116
19117 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
19118
191192008-05-16 Eli Zaretskii <eliz@gnu.org>
19120
19121 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
19122 and st_gid.
19123
19124 * frame.c (Fdelete_frame): Don't call font_update_drivers if
19125 HAVE_WINDOW_SYSTEM is not defined.
19126
19127 * xfaces.c (merge_face_ref, merge_face_vectors)
19128 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
19129 HAVE_WINDOW_SYSTEM is defined.
19130 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
19131
191322008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
19133
19134 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
19135
191362008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19137
19138 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
19139
191402008-05-15 Kenichi Handa <handa@m17n.org>
19141
19142 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
19143 preference.
19144
191452008-05-15 Glenn Morris <rgm@gnu.org>
19146
19147 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
19148
191492008-05-15 Chong Yidong <cyd@stupidchicken.com>
19150
19151 * fns.c (init_fns): Don't initialize weak_hash_tables here.
19152 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
19153
19154 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
19155
191562008-05-15 Kenichi Handa <handa@m17n.org>
19157
19158 * ftfont.c (ftfont_list): Downcase family name to check generic
19159 families.
19160
19161 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
19162 font-spec for QCfont value.
19163
19164 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
19165 buffer. Check the return value of it.
19166
191672008-05-14 Jason Rumney <jasonr@gnu.org>
19168
19169 * w32term.c (w32_get_glyph_overhangs): Remove.
19170 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
19171
191722008-05-14 Kenichi Handa <handa@m17n.org>
19173
19174 * font.c (font_prop_validate): Make nil a valid value.
19175 (font_clear_cache): Check if the cached vector of entities is nil
19176 or not.
19177
191782008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19179
19180 * emacs.c (main_thread): Conditionalize on
19181 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
19182 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
19183
19184 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
19185 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
19186 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
19187
191882008-05-14 Kenichi Handa <handa@m17n.org>
19189
19190 * coding.c (detect_coding_iso_2022): Ignore a coding category that
19191 has no corresponding coding system.
19192
191932008-05-14 Jason Rumney <jasonr@gnu.org>
19194
19195 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
19196
19197 * w32font.h (w32font_open_internal): Update declaration.
19198
19199 * w32font.c (w32font_open_internal): Change last argument from
19200 w32font_info struct to font object. Fill in font object from
19201 font_entity. Get Outline metrics if possible. Use them to
19202 calculate underline position and thickness. Use xlfd name as name
19203 property. Don't set codepage.
19204 (w32font_open): Pass font_object to w32font_open_internal. Don't
19205 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
19206 (w32font_draw): Use s->font.
19207 (clear_cached_metrics): Don't clear non-existent blocks.
19208
19209 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
19210 font was not found.
19211 (x_draw_glyph_string): Use underline position and thickness from font.
19212
19213 * w32uniscribe.c (uniscribe_open): Pass font_object to
19214 w32font_open_internal.
19215
192162008-05-14 Kenichi Handa <handa@m17n.org>
19217
19218 These changes are to delete all legacy font-handling codes, and
19219 make Emacs use only font-backends.
19220
19221 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
19222 (frame.o, image.o, print.o): Depend on $(FONTSRC).
19223
19224 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
19225
19226 * charset.h (Vcharset_non_preferred_head)
19227 (Vcurrent_iso639_language): Extern them.
19228
19229 * charset.c (Vcharset_non_preferred_head): New variable.
19230 (Vcurrent_iso639_language): New variable.
19231 (syms_of_charset): Declare it as a Lisp variable.
19232 (char_charset): Don't check non preferred charsets. As a last
19233 resort, return charset_unicode.
19234 (Fset_charset_priority): Update Vcharset_non_preferred_head.
19235
19236 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
19237 conditionals. Don't check enable_font_backend. Delete all codes
19238 used only when USE_FONT_BACKEND is not defined.
19239
19240 * dispextern.h (struct glyph_string): Change type of `font' to
19241 `struct font *'.
19242 (struct glyph_string): New member underline_position and
19243 underline_thickness.
19244 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
bba3e508
SM
19245 (struct face): Change type of `font' to `struct font *'.
19246 Remove members `font_name', `font_info_id'.
aac0c6e3
MR
19247 (per_char_metric, encode_char): Delete externs.
19248 (calc_pixel_width_or_height): Adjust the prototype.
19249
19250 * emacs.c (enable_font_backend): Delete extern.
19251 (main): Don't set enable_font_backend. Don't check the command
19252 line argument "-disable-font-backend".
19253
19254 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
19255 (enum font_property_index): New members FONT_DPI_INDEX,
19256 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
19257 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
19258 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
19259 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
19260 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
19261 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
19262 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
19263 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
19264 (struct font_spec, struct font_entity): New structs.
ef1b0ba7 19265 (FONT_ENCODING_NOT_DECIDED): Move from fontset.h.
aac0c6e3
MR
19266 (struct font): Many members from old "struct font_info" moved to
19267 here. Members font and entity deleted.
19268 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
19269 the new font-related objects.
19270 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
19271 (CHECK_FONT_GET_OBJECT): Likewise.
19272 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
ef1b0ba7 19273 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Move from font.h.
bba3e508
SM
19274 (struct font_driver): New members case_sensitive anc check.
19275 Type of the member list and open changed.
aac0c6e3
MR
19276 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
19277 (font_symbolic_width, font_find_object, font_get_spec)
19278 (font_set_lface_from_name): Delete extern.
19279 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
19280
19281 * font.c: Include <strings.h>.
19282 (enable_font_backend): Delete it.
19283 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
19284 (CHECK_VALIDATE_FONT_SPEC): Delete it.
ef1b0ba7 19285 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Move to font.h.
aac0c6e3
MR
19286 (null_string): Delete it.
19287 (null_vector): Make it static.
19288 (font_family_alist): Delete it.
19289 (Qnormal): Extern it.
19290 (QCextra, QClanguage): Delete it.
19291 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
19292 (font_make_spec, font_make_entity, font_make_object)
ef1b0ba7 19293 (font_intern_prop): Rename from intern_downcase. Don't downcase
aac0c6e3 19294 the string. Callers changed.
bba3e508 19295 (font_pixel_size): Adjust for the format change of font-related
aac0c6e3
MR
19296 objects.
19297 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
19298 (font_style_to_value, font_style_symbolic): New function.
19299 (build_font_family_alist): Delete it.
19300 (font_registry_charsets): Use Fassoc_string instead of
19301 assq_no_quit.
19302 (font_prop_validate_symbol): Don't return null_string.
bba3e508 19303 (font_prop_validate_style): Adjust for the change of
aac0c6e3
MR
19304 style-related values in a font vector.
19305 (font_property_table): Delete entries for QClanguage and
19306 QCantialias, add entries for QCavgwidth.
19307 (get_font_prop_index): Delete the 2nd argument FROM.
19308 (font_prop_validate): Arguments changed.
bba3e508 19309 (font_put_extra): Adjust for the change of font-related objects.
aac0c6e3
MR
19310 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
19311 (font_parse_fcname, font_unparse_fcname)
19312 (font_prepare_composition): Likewise.
ef1b0ba7 19313 (font_parse_family_registry): Rename from font_merge_old_spec.
aac0c6e3 19314 (otf_open): Delete the 1st arg entity.
bba3e508 19315 (font_otf_capability): Adjust for the above change.
aac0c6e3
MR
19316 (font_score): New arg alternate_families. Adjusted for the change
19317 of font-related objects.
19318 (font_sort_entites): New arg best_only.
19319 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
19320 Delete them.
19321 (font_match_p): Check alternate families.
19322 (font_find_object): Delete it.
19323 (font_check_object): New function.
bba3e508 19324 (font_clear_cache): Adjust for the change of font-related objects.
aac0c6e3
MR
19325 (font_delete_unmatched): New arg.
19326 (font_list_entities): Call font_driver->list with a spec that
19327 doesn't specify style-related properties.
19328 (font_matching_entity): Arguments changed. Caller changed.
bba3e508 19329 (font_open_entity): Adjust for the change of font-related objects.
aac0c6e3
MR
19330 (font_close_object, font_has_char, font_encode_char)
19331 (font_get_name, font_get_spec): Likewise.
19332 (font_spec_from_name, font_clear_prop, font_update_lface):
19333 New functions.
19334 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
19335 (font_prepare_for_face, font_done_for_face, font_open_by_name)
bba3e508 19336 (font_at): Adjust for the change of font-related objects.
aac0c6e3
MR
19337 (font_range): New function.
19338 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
bba3e508 19339 (Ffont_xlfd_name): Adjust for the change of font-related objects.
aac0c6e3 19340 (Fcopy_font_spec, Fmerge_font_spec): New function.
ef1b0ba7 19341 (Ffont_family_list): Rename from list-families.
aac0c6e3
MR
19342 (Finternal_set_font_style_table): Arguments changed.
19343 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
bba3e508 19344 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjust for the
aac0c6e3
MR
19345 change of font-related objects.
19346 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
19347
19348 * fontset.h (struct font_info): Delete it. Most members go to
19349 struct font.
ef1b0ba7 19350 (FONT_ENCODING_NOT_DECIDED): Move to font.h.
aac0c6e3
MR
19351 (enum FONT_SPEC_INDEX): Delete it.
19352 (font_info, list_fonts_func, load_font_func, query_font_func)
19353 (set_frame_fontset_func, find_ccl_program_func)
bba3e508
SM
19354 (get_font_repertory_func, new_fontset_from_font_name):
19355 Delete externs.
aac0c6e3
MR
19356 (fontset_from_font_name): Extern it.
19357 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
19358 (FONT_INFO_FROM_FACE): Deleted.
19359 (face_for_font): Adjust prototype.
19360
19361 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
19362 conditionals. Don't check enable_font_backend. Delete all codes
19363 used only when USE_FONT_BACKEND is not defined.
19364 (get_font_info_func, list_font_func, load_font_func)
19365 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
19366 (get_font_repertory_func): Delete them.
19367 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
19368 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
19369 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
19370 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
19371 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
19372 (fontset_compare_rfontdef): New function.
19373 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
19374 rfont-defs by qsort. Adjusted for the change of font-group vector.
19375 (load_font_get_repertory): Deleted.
19376 (fontset_find_font): Use new macros to ref/set elements of
19377 font-def and rfont-def.
19378 (fontset_font): Fix the timing of remembering that no font for C.
19379 (free_face_fontset): Do nothing if the face has no fontset.
19380 (face_suitable_for_char_p): Use new macros to ref/set elements of
19381 rfont-def.
19382 (face_for_char): Likewise. Call face_for_char with font_object.
19383 (fs_load_font): Delete. Delete #pragma surrounding it.
19384 (fs_query_fontset): Use strcasecmp instead of strcmp.
bba3e508 19385 (generate_ascii_font_name): Adjust for the format change of
aac0c6e3
MR
19386 font-spec.
19387 (Fset_fontset_font): Likewise. Use new macros to set elements of
19388 font-def.
19389 (Fnew_fontset): Use font_unparse_xlfd to generate
19390 FONTSET_ASCII (fontset).
19391 (new_fontset_from_font_name): Deleted.
ef1b0ba7 19392 (fontset_from_font): Rename from new_fontset_from_font. Check if
aac0c6e3
MR
19393 a fontset is already created for the font. FIx updating of
19394 Vfontset_alias_alist.
19395 (fontset_ascii_font): Deleted.
bba3e508 19396 (Ffont_info): Adjust for the format change of font-spec.
aac0c6e3
MR
19397 (Finternal_char_font): Likewise.
19398 (Ffontset_info): Likewise.
19399 (syms_of_fontset): Don't check load_font_func.
19400
19401 * fns.c (internal_equal): Handle PREV_FONT.
19402
19403 * frame.h: Delete USE_FONT_BACKEND conditional.
19404
19405 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
19406 conditionals. Don't check enable_font_backend. Delete all codes
19407 used only when USE_FONT_BACKEND is not defined.
19408 (x_set_font): Call x_new_font, not x_new_fontset2.
19409 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
19410 already set for the frame.
19411
bba3e508
SM
19412 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed.
19413 Make a font-entity by font_make_entity. Use font_intern_prop instead
aac0c6e3
MR
19414 of intern_downcase. Use FONT_SET_STYLE to set a style-related
19415 font property. If a font is scalable, set avgwidth property to 0.
19416 Set font-entity property by font_put_extra.
19417 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
bba3e508 19418 (ffont_driver): Adjust for the change of struct font_driver.
aac0c6e3
MR
19419 (ftfont_spec_pattern): New function.
19420 (ftfont_list): Return a list, not vector.
19421 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
19422 (ftfont_list_family): Don't downcase names.
19423 (ftfont_free_entity): Deleted.
19424 (ftfont_open): Return a font-object. Adjusted for the change of
19425 struct font. Get underline_thickness and underline_position from
19426 font property. Don't update dpyinfo->smallest_font_height and
19427 dpyinfo->smallest_char_width.
19428 (ftfont_close): Don't free `struct font'.
bba3e508 19429 (ftfont_has_char): Adjust for the format change of font-entity.
aac0c6e3
MR
19430 (ftfont_encode_char, ftfont_text_extents): Likewise.
19431
19432 * ftxfont.c (ftxfont_list): Return a list, not vector.
19433 (ftxfont_open): Return a font-object. Adjusted for the change of
19434 struct font. Get underline_thickness and underline_position from
19435 font property. Don't update dpyinfo->smallest_font_height and
19436 dpyinfo->smallest_char_width.
19437 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
bba3e508 19438 (ftxfont_draw): Adjust for the change of struct font.
aac0c6e3 19439
bba3e508
SM
19440 * image.c (image_ascent): Don't include "charset.h".
19441 Include "character.h" and "font.h".
aac0c6e3
MR
19442
19443 * lisp.h (enum pvec_type): New member PREV_FONT.
19444 (Fassoc_string): EXFUN it.
19445
19446 * print.c: Include font.h.
19447 (print_object): Handle font-related objects.
19448
19449 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
19450 conditionals. Don't check enable_font_backend. Delete all codes
19451 used only when USE_FONT_BACKEND is not defined.
19452 (handle_auto_composed_prop): Do nothing if it->f is not on a
19453 window system. Check how many following characters can be
19454 displayed by the same font.
19455 (calc_pixel_width_or_height): Type of the 4th arg is changed to
19456 'struct font *'.
19457 (get_char_face_and_encoding): Assign the whole encoding task to
19458 the `encode-char' method of a font driver.
bba3e508 19459 (fill_composite_glyph_string): Adjust for the change of `struct
aac0c6e3
MR
19460 face' and `struct glyph_string'.
19461 (fill_glyph_string): Likewise.
19462 (get_per_char_metric): Arguments changed.
bba3e508 19463 (x_get_glyph_overhangs): Adjust for the change of `struct face'
aac0c6e3
MR
19464 and `struct glyph_string'.
19465 (produce_stretch_glyph, calc_line_height_property)
19466 (x_produce_glyphs): Likewise.
19467
19468 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
19469 conditionals. Don't check enable_font_backend. Delete all codes
bba3e508
SM
19470 used only when USE_FONT_BACKEND is not defined.
19471 Use FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
aac0c6e3
MR
19472 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
19473 (Qp): Extern them.
19474 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
19475 Deleted.
19476 (struct font_name): Deleted.
19477 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
19478 (compare_fonts_by_sort_order): New function.
19479 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
19480 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
19481 Deleted.
19482 (Fx_family_fonts): Use font_list_entities, and sort fonts by
19483 compare_fonts_by_sort_order.
19484 (Fx_font_family_list): Call Ffont_family_list.
19485 (face_numeric_value, face_numeric_weight, face_numeric_slant)
19486 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
19487 (face_symbolic_slant, face_symbolic_swidth)
19488 (split_font_name_into_vector, build_font_name_from_vector)
19489 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
19490 (font_rescale_ratio, split_font_name, build_font_name)
19491 (free_font_names, sort_fonts, x_face_list_fonts)
19492 (face_font_available_p, sorted_font_list, cmp_font_names)
19493 (font_list_1, concat_font_list, font_list, remove_duplicates):
19494 Deleted.
19495 (Fx_list_fonts): Use Ffont_list.
19496 (LFACE_AVGWIDTH): Deleted.
19497 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
19498 by FONTP.
19499 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
19500 (set_lface_from_font_name): Delete it.
ef1b0ba7 19501 (set_lface_from_font): Rename from
aac0c6e3
MR
19502 set_lface_from_font_and_fontset. Caller changed. Don't set
19503 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
19504 for face.
19505 (merge_face_vectors): Copy font-spec if necessary.
19506 Clear properties of the font-spec if necessary.
19507 (merge_face_ref): Clear properties of the font-spec if necessary.
19508 (Finternal_set_lisp_face_attribute): Likewise.
19509 (set_font_frame_param): Use font_load_for_lface to load a
19510 font-object, and call Fmodify_frame_parameters with it.
19511 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
19512 font name by Ffont_xlfd_name.
19513 (Finternal_lisp_face_attribute_values): Don't check QCweight,
19514 QCslant, and QCwidth.
19515 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
19516 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
19517 Compare fonts by EQ.
19518 (lookup_non_ascii_face): Deleted.
19519 (face_for_font): The 2nd argument changed.
19520 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
19521 Check atomic font properties by case insensitive.
19522 (realize_non_ascii_face): Set face->overstrike correctly.
19523 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
19524 (dump_realized_face): Get font name from
19525 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
19526
19527 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
19528 conditionals. Don't check enable_font_backend. Delete all codes
19529 used only when USE_FONT_BACKEND is not defined.
19530 (xic_create_xfontset): Original code deleted and renamed from
19531 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
19532 (x_make_gc): Don't set GCFont in GCs.
19533 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
19534 opened by "fixed".
19535 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
19536 find_ccl_program_func, query_font_func, set_frame_fontset_func,
19537 get_font_repertory_func.
19538
19539 * xfont.c: Include <stdlib.h> and "ccl.h".
19540 (struct xfont_info): New structure.
19541 (xfont_query_font): Deleted.
ef1b0ba7 19542 (xfont_find_ccl_program): Rename from x_find_ccl_program and
aac0c6e3 19543 moved from xterm.c.
bba3e508 19544 (xfont_driver): Adjust for the change of struct font_driver.
aac0c6e3 19545 (compare_font_names): New function.
ef1b0ba7
SM
19546 (xfont_list_pattern): Sort font names case insensitively.
19547 Make font_entity by calling font_make_entity. Avoid auto-scaled fonts.
aac0c6e3
MR
19548 (xfont_list): Return a list, not vector.
19549 (xfont_match): If the font doesn't have QCname property, generate
19550 a name from the other font properties.
19551 (xfont_open): Return a font-object. Adjusted for the change of
19552 struct font. Get underline_thickness and underline_position from
19553 font property. Don't update dpyinfo->smallest_font_height and
19554 dpyinfo->smallest_char_width.
19555 (xfont_close): Don't free struct font.
bba3e508 19556 (xfont_prepare_face): Adjust for the change of struct font.
aac0c6e3 19557 (xfont_done_face): Deleted.
bba3e508 19558 (xfont_has_char): Adjust for the change of struct font.
aac0c6e3
MR
19559 (xfont_encode_char, xfont_draw): Likewise.
19560 (xfont_check): New function.
19561
bba3e508 19562 * xftfont.c (xftfont_list): Adjust for the change of `list'
aac0c6e3 19563 callback function.
bba3e508
SM
19564 (xftfont_match): Adjust for the format change of font-entity.
19565 (xftfont_open): Adjust for the format change of font-entity and
aac0c6e3
MR
19566 font-object. Adjusted for the change of struct font. Return a
19567 font-object. Don't update dpyinfo->smallest_font_height and
19568 dpyinfo->smallest_char_width.
19569 (xftfont_close): Block input while calling XftFontClose.
19570 (xftfont_prepare_face): Don't block input while calling
19571 xftfont_get_colors. Adjusted for the change of struct font.
19572 (xftfont_shape): Return value of error case fixed.
19573
19574 * xrdb.c (x_load_resources): Don't setup a fontset resource.
19575
19576 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
19577 conditionals.
19578 (FONT_WIDTH): Return (f)->max_width.
19579 (struct x_display_info): Delete member `font'.
19580 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
19581 (x_find_ccl_program, x_get_font_repertory): Delete externs.
19582 (struct x_output): Change type of `font' to `struct font *'.
19583
19584 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
19585 conditionals. Don't check enable_font_backend. Delete all codes
19586 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
19587 (x_per_char_metric, x_encode_char): Deleted.
19588 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
bba3e508 19589 (x_compute_glyph_string_overhangs): Adjust for the change of
aac0c6e3
MR
19590 `struct face'.
19591 (x_draw_glyph_string_foreground)
19592 (x_draw_composite_glyph_string_foreground): Likewise.
19593 (x_draw_glyph_string): Likewise. Use font->underline_position and
19594 font->underline_thickness.
ef1b0ba7 19595 (x_new_font): Rename from x_new_fontset2.
aac0c6e3
MR
19596 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
19597 (x_check_font): Call `check' method of a font driver.
19598 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
19599 (x_query_font, x_get_font_repertory): Deleted.
ef1b0ba7 19600 (x_find_ccl_program): Rename and moved to xfont.c.
bba3e508 19601 (x_redisplay_interface): Adjust for the change of `struct
aac0c6e3
MR
19602 redisplay_interface'.
19603
19604 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
19605 conditionals. Don't check enable_font_backend. Delete all codes
19606 used only when USE_FONT_BACKEND is not defined. Surround non-used
19607 code by "#ifdef OLD_FONT" and "endif".
19608 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
19609
19610 * w32font.h (struct w32font_info): New member.
19611 (FONT_COMPAT): New macro.
19612 (w32font_open_internal): Prototype adjusted.
19613
19614 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
19615 OLD_FONT" and "endif".
19616
19617 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
19618 conditionals. Don't check enable_font_backend. Delete all codes
19619 used only when USE_FONT_BACKEND is not defined.
19620 (w32font_open): Return a font-object. Make a font-object by
19621 font_make_object. Adjusted for the change of struct w32font_info.
19622 (w32font_close): Don't free struct font. Adjusted for the change
19623 of struct w32font_info.
19624 (w32font_encode_char, w32font_text_extents, w32font_draw):
ef1b0ba7 19625 Adjust for the change of struct w32font_info.
aac0c6e3
MR
19626 (w32font_draw): Likewise.
19627 (w32font_list_internal): Return a list, not vector.
19628 (w32font_open_internal): Change the 4th arg to font-object.
19629 Adjusted for the change of struct w32font_info and font-object format.
19630 (add_font_name_to_list): Don't downcase names.
19631 (w32_enumfont_pattern_entity): Make a font-entity by
19632 font_make_entity. Adjusted for the format change of font-entity.
19633 Use FONT_SET_STYLE to set a style-related font property. If a
19634 font is scalable, set avgwidth property to 0. Set font-entity
19635 property by font_put_extra.
bba3e508 19636 (font_matches_spec): Adjust for the format change of font-entity.
aac0c6e3
MR
19637 (w32_weight_table, w32_decode_weight): New variables.
19638 (w32_encode_weight): New function.
bba3e508 19639 (fill_in_logfont): Adjust for the format change of font-spec.
aac0c6e3
MR
19640 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
19641 weight value.
bba3e508 19642 (w32font_driver): Adjust for the change of struct font_driver.
aac0c6e3
MR
19643
19644 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
19645 conditionals. Don't check enable_font_backend. Surround non-used
19646 code by "#ifdef OLD_FONT" and "endif".
19647 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
bba3e508 19648 (FONT_AVG_WIDTH): Adjust for the change of struct font.
aac0c6e3
MR
19649
19650 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
19651 conditionals. Don't check enable_font_backend. Delete all codes
19652 used only when USE_FONT_BACKEND is not defined. Surround non-used
19653 code by "#ifdef OLD_FONT" and "endif".
19654
19655 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
19656 (uniscribe_open): Return value changed to font-object.
19657 Adjusted for the format change of font-object.
bba3e508 19658 (uniscribe_otf_capability): Adjust for the change of struct font.
aac0c6e3 19659 (add_opentype_font_name_to_list): Don't downcase names.
bba3e508 19660 (uniscribe_font_driver): Adjust for the change of struct
aac0c6e3
MR
19661 font_driver.
19662
196632008-05-13 Chong Yidong <cyd@stupidchicken.com>
19664
19665 * dispnew.c (update_frame_1): Check if tty output is still valid
19666 before flushing it.
19667
196682008-05-13 Jan Djärv <jan.h.d@swipnet.se>
19669
19670 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
19671 to Gtk+ menus.
19672
196732008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
19674
19675 * dired.c (file_name_completion): Tweak the code so as to always do it
19676 in a single pass. Tighten the scope of some variables.
19677
19678 * dired.c (Qdefault_directory): New var.
19679 (file_name_completion): Use it instead of Fexpand_file_name.
19680 (syms_of_dired): Initialize it.
19681
196822008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
19683
19684 * fileio.c (double_dollars): Remove dead code.
19685
196862008-05-10 Eli Zaretskii <eliz@gnu.org>
19687
19688 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
19689 Mention w32-get-true-file-attributes in doc string.
19690
19691 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
19692
196932008-05-09 Glenn Morris <rgm@gnu.org>
19694
19695 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
19696 2008-04-23.
19697
196982008-05-09 Eli Zaretskii <eliz@gnu.org>
19699
19700 Support for reporting owner and group of each file on MS-Windows:
19701 * dired.c (stat_uname, stat_gname): New functions, with special
19702 implementation for w32.
19703 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
19704
19705 * w32.c: Rename the_passwd_* to dflt_passwd_*.
19706 (dflt_group_name): New static variable.
19707 (dflt_group): Rename from the_group.
19708 (init_user_info): Init dflt_group fields. Get user's group name
19709 from LookupAccountSid.
19710 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
19711 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
19712 New initialization states.
19713 (globals_of_w32): Initialize them to zero. Initialize the default
19714 group name to "None".
19715 (GetFileSecurity_Name): New global var, the name of the function
19716 to call for GetFileSecurity.
19717 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
19718 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
19719 (get_file_security, get_security_descriptor_owner)
19720 (get_security_descriptor_group, is_valid_sid)
19721 (get_file_security_desc, get_rid, get_name_and_id)
19722 (get_file_owner_and_group): New functions.
19723 (stat): Use get_file_security_desc and get_file_owner_and_group to
19724 report the owner and primary group of each file. Don't ignore the
19725 high 32 bits of file's size, now that st_size is 64-bit wide.
19726 Fix test when to get true file attributes.
19727 (init_user_info): Use get_rid instead of equivalent inline code.
19728 (fstat): Don't ignore the high 32 bits of file's size.
19729
197302008-05-09 Chong Yidong <cyd@stupidchicken.com>
19731
19732 * image.c (png_load): Use correct bit-depth for setting background
19733 color.
19734
197352008-05-08 Eli Zaretskii <eliz@gnu.org>
19736
19737 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
19738 epa-hook.elc.
19739
197402008-05-08 Juanma Barranquero <lekktu@gmail.com>
19741
19742 * font.c (Ffont_match_p): Don't use `iff' in docstring.
19743
197442008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
19745
19746 * macfns.c (Fx_create_frame): Make a copy of frame parameters
19747 because the original parameters are in pure storage now.
19748 (mac_window): Remove unused params. Update callers.
19749
197502008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
19751
19752 * lread.c (substitute_object_recurse): Use lower-level primitives.
19753 Don't signal errors when traversing sub-char-tables.
19754 Don't loop over all the possible characters when traversing char-tables.
19755
19756 * print.c (print_preprocess): Add sub-char-tables to the print-table,
19757 just like we do in print.c.
19758
197592008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
19760
19761 * minibuf.c (Ftry_completion): Remove code left over from when we used
19762 scmp instead of Fcompare_strings.
19763
197642008-05-04 Juanma Barranquero <lekktu@gmail.com>
19765
19766 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
19767
197682008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19769
19770 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
19771 Create bitmap context in native byte order.
19772
19773 * macterm.c (XDrawLine)
19774 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
19775 context in native byte order.
19776
197772008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19778
19779 * config.in: Regenerate.
19780
19781 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
19782 New definitions for Image I/O support.
19783 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
19784 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
19785 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
19786 (mac_data_provider_release_data, image_load_image_io)
19787 [USE_MAC_IMAGE_IO]: New functions.
19788 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
19789 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
19790 (init_image_func_pointer) [MAC_OSX]: Remove function.
19791 (image_load_quartz2d) [MAC_OSX]: Check availability of
19792 CGImageCreateWithPNGDataProvider at compile time.
19793 Use lowercase `false' for boolean constant.
19794 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
19795 Use image_load_image_io.
19796 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
19797 Don't check MyCGImageCreateWithPNGDataProvider.
19798 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
19799 Don't call init_image_func_pointer.
19800
19801 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
19802
19803 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
19804 Make variable non-static.
19805 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
19806 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
19807
19808 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
19809 (RED_FROM_ULONG): Mask off higher bits.
19810 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
19811
19812 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
19813 Include AvailabilityMacros.h.
19814 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
19815 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
19816
198172008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
19818
19819 * chartab.c (Fset_char_table_range): If range is t, really set all
19820 chars to that value.
19821
198222008-05-03 Eli Zaretskii <eliz@gnu.org>
19823
19824 * dired.c (Ffile_attributes): Don't allow the device number become
19825 negative.
19826
198272008-05-02 Daiki Ueno <ueno@unixuser.org>
19828
19829 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
19830
198312008-05-02 Juri Linkov <juri@jurta.org>
19832
19833 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
19834 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
19835 DEFAULT argument as a list of default values in docstrings.
19836
198372008-05-01 Chong Yidong <cyd@stupidchicken.com>
19838
19839 * puresize.h (BASE_PURESIZE): Increase to 1210000.
19840
198412008-05-01 Martin Rudalics <rudalics@gmx.at>
19842
19843 * dispnew.c (change_frame_size_1): Preserve small windows when
19844 shrinking frames by calling set_window_height|width with third
19845 arg 2.
19846
19847 * window.h (struct window): Replace field too_small_ok by field
19848 resize_proportionally.
19849
19850 * window.c (make_window): Initialize resize_proportionally.
19851 (enlarge_window): Temporarily set resize_proportionally to make
19852 sure that shrink_windows does scale the window proportionally.
19853 (shrink_windows): When window has resize_proportionally set try
19854 to shrink it proportionally by stealing from other windows.
19855 (struct saved_window, Fset_window_configuration)
19856 (compare_window_configurations): Handle resize_proportionally.
19857 (WINDOW_TOTAL_SIZE): New macro.
19858 (window_min_size, shrink_windows, size_window): Use it.
19859 (check_min_window_sizes): Remove. Invalid values of
19860 window-min-height|width are handled by window_min_size_2 now.
19861 (size_window, Fsplit_window, enlarge_window)
19862 (adjust_window_trailing_edge, grow_mini_window): Don't call
19863 check_min_window_sizes.
19864 (window_min_size_2, window_min_size_1, window_min_size):
19865 New argument safe_p for retrieving "safe" minimum sizes.
19866 (Fdisplay_buffer, Fsplit_window, enlarge_window)
19867 (adjust_window_trailing_edge, grow_mini_window):
19868 Adjust arguments of window_min_size... functions.
19869 (shrink_windows): Argument min_size removed. New argument
19870 safe_p allows shrinking windows to their safe minimum sizes.
19871 Calculate minimum size and decide whether a window shall be
19872 deleted for each window individually.
19873 (size_window): When nodelete_p equals 2, tell shrink_windows to
19874 delete windows only if their new minimum size is no more safe.
19875 (shrink_window_lowest_first): Call window_min_size_1 to make
19876 sure to preserve modeline of bottom-most window when resizing
19877 the minibuffer.
19878 (Fset_window_configuration, Fcurrent_window_configuration)
19879 (compare_window_configurations): Do not handle
19880 window-min-height|width any more.
19881 (syms_of_window): Clarify window-min-height|width doc-strings.
19882
198832008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
19884
19885 * dired.c (file_name_completion): Fix up the encoding/decoding issue
19886 some more. Copy some of the code from Ftry_completions.
19887 Remove special case code that dates back to initial revision when the
19888 slash was only added when necessary and that can't trigger nowadays.
19889
198902008-04-27 Kenichi Handa <handa@m17n.org>
19891
19892 * font.c (font_prop_validate): Signal `error' instead of `font'.
19893
198942008-04-29 Jason Rumney <jasonr@gnu.org>
19895
19896 * w32fns.c (Fw32_battery_status): New defun.
19897 (syms_of_w32fns): Defsubr it.
19898
198992008-04-28 Andreas Schwab <schwab@suse.de>
19900
19901 * dired.c (file_name_completion): Fix another mixing of encoded
19902 and decoded names.
19903
199042008-04-28 Juanma Barranquero <lekktu@gmail.com>
19905
19906 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
19907
199082008-04-27 Juanma Barranquero <lekktu@gmail.com>
19909
19910 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
19911
199122008-04-27 Andreas Schwab <schwab@suse.de>
19913
19914 * dired.c (file_name_completion): Fix inappropriate mixing of
19915 encoded and decoded names.
19916
19917 * xterm.c (XTread_socket): Fix use of uninitialized variable.
19918
19919 * puresize.h (BASE_PURESIZE): Increase to 1200000.
19920
199212008-04-26 Eli Zaretskii <eliz@gnu.org>
19922
19923 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
19924 2008-03-31, it's not needed anymore with `struct stat' definition
19925 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
19926 for the same reasons.
19927
199282008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
19929
19930 * m/sparc.h: Additional redefinitions for GNU/Linux.
19931
199322008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19933
19934 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
19935 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
19936 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
19937 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
19938 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
19939 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
19940 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
19941 Likewise.
19942
19943 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
19944 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
19945 (mac_ax_number_of_characters): Add externs.
19946 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
19947 [USE_MAC_TSM]: Likewise.
19948 (mac_handle_text_input_event) [MAC_OSX]:
19949 Handle kEventTextInputOffsetToPos for no active input area case.
19950 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
19951 (mac_handle_document_access_event)
19952 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
19953 (install_application_handler) [MAC_OSX]: Register handlers for
19954 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
19955 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
19956 Register mac_handle_document_access_event.
19957
19958 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
19959 Make functions non-static.
19960
199612008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
19962
19963 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
19964 (read_file_name_completion_ignore_case, insert_default_directory)
19965 (Qdefault_directory): Move to minibuffer.el.
19966 (Fread_file_name): Call the new `read-file-name' instead.
19967
199682008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19969
19970 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
19971 Make function non-static.
19972 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
19973 Remove function.
19974 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
19975 Move to mactoolbox.c.
19976 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
19977
19978 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
19979 (mac_rect_make): New macro.
19980
19981 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
19982 instead of float.
19983 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
19984 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
19985 (XSetBackground) [USE_CG_DRAWING]: Likewise.
19986 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
19987 CGRectMake.
19988 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
19989 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
19990 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
19991 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
19992 instead of WindowRef in argument type.
19993 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
19994 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
19995 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
19996 instead of DISPLAY. All uses changed.
19997 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
19998 (x_calc_absolute_position): Simplify so as not to use
19999 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
20000
20001 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
20002 instead of WindowRef in argument type.
20003 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
20004 [TARGET_API_MAC_CARBON]: Remove externs.
20005 (create_apple_event, mac_event_parameters_to_lisp)
20006 [TARGET_API_MAC_CARBON]: Add externs.
20007
20008 * mactoolbox.c (Vmac_ts_script_language_on_focus)
20009 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
20010 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
20011 is clicked.
20012 (x_activate_menubar): Remove extern for saved_menu_event_location.
20013 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
20014 Move from mac.c.
20015
200162008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20017
20018 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
20019 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
20020
200212008-04-23 Jason Rumney <jasonr@gnu.org>
20022
20023 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
20024 attributes only for local files.
20025
20026 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
20027 default to Qlocal.
20028
200292008-04-22 Juri Linkov <juri@jurta.org>
20030
20031 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
20032 read-buffer-to-switch instead of using the letter "B".
20033
200342008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
20035
20036 * fileio.c (Qdefault_directory): New variable.
20037 (Fread_file_name): Use it to pass `dir' to the completion functions.
20038
200392008-04-20 Chong Yidong <cyd@stupidchicken.com>
20040
20041 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
20042
200432008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
20044
20045 * keyboard.c (Vpre_help_message): Remove.
20046 (show_help_echo): Remove default C code.
20047
20048 * dired.c (directory_files_internal, file_name_completion):
20049 Only call ENCODE_FILE if the string is indeed decoded.
20050
200512008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
20052
20053 * Makefile.in (TOOLKIT_DEFINES): Remove.
20054 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
20055
200562008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20057
20058 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
20059 (mactoolbox.o): New target.
20060
20061 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
20062 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
20063
20064 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
20065 Use mac_set_frame_window_background instead of XSetWindowBackground.
20066 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
20067 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
20068 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
20069 instead of SetWindowTitleWithCFString.
20070 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
20071 Move function to mactoolbox.c.
20072 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
20073 Use mac_set_window_modified instead of SetWindowModified.
20074 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
20075 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
20076 (Fx_focus_frame): Use mac_front_non_floating_window instead of
20077 FrontNonFloatingWindow. Use mac_activate_window instead of
20078 ActivateWindow. Use mac_active_non_floating_window instead of
20079 ActiveNonFloatingWindow.
20080 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
20081 Use mac_show_hourglass and mac_hide_hourglass.
20082 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
20083 instead of GetGlobalMouse.
20084 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
20085 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
20086 Use mac_bring_window_to_front instead of BringToFront.
20087 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
20088 mactoolbox.c.
20089 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
20090 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
20091 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
20092 mactoolbox.c.
20093
20094 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
20095 (XtPointer): Move typedef from macmenu.c.
20096 (enum button_type): Move enum from macmenu.c.
20097 (widget_value): Move typedef from macmenu.c.
20098 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
20099 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
20100 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
20101 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
20102 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
20103 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
20104 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
20105 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
20106 (Selection): Move typedef from macselect.c.
20107 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
20108 macterm.c.
20109 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
20110 (mac_is_window_collapsed, mac_bring_window_to_front)
20111 (mac_send_window_behind, mac_hide_window, mac_show_window)
20112 (mac_collapse_window, mac_front_non_floating_window)
20113 (mac_active_non_floating_window, mac_activate_window)
20114 (mac_move_window_structure, mac_move_window, mac_size_window)
20115 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
20116
20117 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
20118 (enum mac_menu_kind): Move enum to mactoolbox.c.
20119 (min_menu_id): Move variable to mactoolbox.c.
20120 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
20121 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
20122 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
20123 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
20124 [TARGET_API_MAC_CARBON]: Likewise.
20125 (XtPointer): Move typedef to macgui.h.
20126 (enum button_type): Move enum to macgui.h.
20127 (widget_value): Move typedef to macgui.h.
20128 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
20129 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
20130 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
20131 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
20132 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
20133 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
20134 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
20135 (popup_activated_flag): Make variable non-static.
20136 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
20137 (add_menu_item, fill_menu, dispose_menus):
20138 Move functions to mactoolbox.c.
20139 (restore_show_help_function, menu_target_item_handler)
20140 (install_menu_target_item_handler, mac_handle_dialog_event)
20141 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
20142 [TARGET_API_MAC_CARBON]: Likewise.
20143 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
20144 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
20145 (find_and_call_menu_selection, name_is_separator): Make function
20146 non-static.
20147 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
20148 to mactoolbox.c.
20149 (set_frame_menubar): Don't call install_menu_quit_handler.
20150 (menu_item_selection): New variable.
20151 (mac_menu_show): Use create_and_show_popup_menu.
20152 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
20153 selection but set variable menu_item_selection. All uses changed.
20154 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
20155 Call install_menu_quit_handler. Move to mactoolbox.c.
20156
20157 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
20158 (Selection): Move typedef to macgui.h.
20159 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
20160 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
20161 Make variables non-static.
20162 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
20163 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
20164 Make functions non-static.
20165 (Vmac_service_selection) [MAC_OSX]: Likewise.
20166 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
20167 (mac_valid_selection_target_p, mac_clear_selection)
20168 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
20169 (mac_put_selection_value, mac_selection_has_target_p)
20170 (mac_get_selection_value, mac_get_selection_target_list)
20171 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
20172 Move functions to mactoolbox.c.
20173 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
20174 Likewise.
20175 (copy_scrap_flavor_data, mac_handle_service_event)
20176 (install_service_handler) [MAC_OSX]: Likewise.
20177 (syms_of_macselect) <Vmac_dnd_known_types>:
20178 Use mac_dnd_default_known_types.
20179
20180 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
20181 Move to mactoolbox.c.
20182 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
20183 (Fx_selection_owner_p): Add EXFUN.
20184 (install_window_handler, remove_window_handler, XSetWindowBackground):
20185 Remove externs.
20186 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
20187 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
20188 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
20189 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
20190 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
20191 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
20192 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
20193 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
20194 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
20195 (create_and_show_popup_menu, mac_get_selection_from_symbol)
20196 (mac_valid_selection_target_p, mac_clear_selection)
20197 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
20198 (mac_put_selection_value, mac_selection_has_target_p)
20199 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
20200 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
20201 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
20202 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
20203 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
20204 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
20205 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
20206 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
20207 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
20208
20209 * mactoolbox.c: New file.
20210
202112008-04-18 Jason Rumney <jasonr@gnu.org>
20212
20213 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
20214
202152008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
20216
20217 * character.c (Fmultibyte_char_to_unibyte):
20218 Return latin1 chars unchanged.
20219
20220 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
20221 relocated if it points to `name'.
20222
202232008-04-17 Kenichi Handa <handa@m17n.org>
20224
20225 * data.c (Faset): Allow setting a multibyte character in an
20226 ASCII-only unibyte string.
20227
20228 * lisp.h (STRING_SET_MULTIBYTE): New macro.
20229
202302008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
20231
20232 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
20233 done in config.h.
20234
202352008-04-16 Juanma Barranquero <lekktu@gmail.com>
20236
20237 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
20238 (Fchar_direction): Add usage in the docstring.
20239
202402008-04-15 Chong Yidong <cyd@stupidchicken.com>
20241
20242 * keyboard.c (read_key_sequence): Remove always-true checks.
20243
202442008-04-14 Jason Rumney <jasonr@gnu.org>
20245
20246 * w32font.c (w32font_open_internal): Set max_bounds.descent in
20247 compatibility struct, for better underline positioning.
20248
202492008-04-13 David Hansen <david.hansen@gmx.net>
20250
20251 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
20252 string.
20253
202542008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
20255
20256 * m/hp800.h (XUINT, XSET): Remove.
20257
202582008-04-12 Juanma Barranquero <lekktu@gmail.com>
20259
20260 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
20261 previous change.
20262
202632008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
20264
20265 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
20266 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
20267
202682008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
20269
20270 * keymap.h (map_keymap_canonical): Declare.
20271 * xmenu.c (single_keymap_panes): Use it.
20272
202732008-04-11 Glenn Morris <rgm@gnu.org>
20274
20275 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
20276 set the target's value to that of the alias.
20277
202782008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
20279
20280 * term.c (set_tty_color_mode): Left over typo.
20281
202822008-04-10 Michael Albinus <michael.albinus@gmx.de>
20283
20284 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
20285 only after check for file name handler functions. Signal, when
20286 native functionality is not supported.
20287 (syms_of_fileio): Declare it unconditionally.
20288
202892008-04-10 Jason Rumney <jasonr@gnu.org>
20290
20291 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
20292 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
20293
20294 * w32.c (logon_network_drive): Also logon to remote drives that
20295 are mapped to drive letters.
20296
202972008-04-10 Glenn Morris <rgm@gnu.org>
20298
20299 * xdisp.c (truncate-partial-width-windows): Doc fix.
20300
203012008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
20302
20303 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
20304 Move functions to minibuffer.el.
20305 (syms_of_fileio): Don't declare them.
20306
203072008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
20308
20309 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
20310 (syms_of_minibuf): Remove its initialization.
20311
20312 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
20313
203142008-04-09 Juanma Barranquero <lekktu@gmail.com>
20315
20316 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
20317
203182008-04-09 Jason Rumney <jasonr@gnu.org>
20319
20320 * makefile.w32-in (distclean): Delete makefile too.
20321 (maintainer-clean): New target.
20322
20323 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
20324
20325 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
20326 for new font backend and composite cases.
20327
203282008-04-09 Jan Djärv <jan.h.d@swipnet.se>
20329
20330 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
20331 Most of the code moved to run_timers.
20332 (do_pending_atimers): Call run_timers.
20333 (run_timers): New function.
20334
20335 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
20336 run atimers.
20337
20338 * process.c (wait_reading_process_output): The same as above.
20339
203402008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
20341
20342 * minibuf.c (last_exact_completion): Remove variable.
20343 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
20344 (complete_and_exit_1, complete_and_exit_2)
20345 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
20346 (Fdisplay_completion_list, display_completion_list_1)
20347 (Fminibuffer_completion_help, Fself_insert_and_exit)
20348 (Fexit_minibuffer, Fminibuffer_message): Move functions to
20349 minibuffer.el.
20350 (syms_of_minibuf): Remove corresponding initializations.
20351
20352 * keyboard.c (Qdeactivate_mark): New var.
20353 (command_loop_1): Use it to call `deactivate-mark'.
20354 (syms_of_keyboard): Initialize it.
20355
20356 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
20357 to another frame.
20358 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
20359 Don't call set_tty_color_mode.
20360 (store_frame_param): Reset previous_frame rather than call
20361 set_tty_color_mode.
20362 * term.c (set_tty_color_mode): Rewrite.
20363 * dispextern.h (set_tty_color_mode): New type.
20364 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
20365
203662008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
20367
20368 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
20369 for generic chars, which do not exist any more in emacs-unicode.
20370
203712008-04-08 Michael Albinus <michael.albinus@gmx.de>
20372
20373 * coding.c (detect_coding_emacs_mule)
20374 (Ffind_operation_coding_system): Fix typo.
20375
203762008-04-08 Jason Rumney <jasonr@gnu.org>
20377
20378 * w32uniscribe.c (SNAME): Extract only symbol name.
20379
20380 * w32font.h (struct w32_metric_cache): New struct.
20381 (w32font_info): Use it.
20382 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
20383 (CACHE_BLOCKSIZE): New constants.
20384
20385 * w32font.c (Qja, Qko, Qzh): New symbols.
20386 (syms_of_w32font): Initialise them.
20387 (font_matches_spec): Use them to filter by language.
20388 (recompute_cached_metrics): Remove function.
20389 (compute_metrics, clear_cached_metrics): New functions.
20390 (w32font_encode_char): Use them to manage metric cache.
20391 (w32font_text_extents): Cache metrics for all glyphs on demand.
20392 Delay converting glyph indices to WORD until needed.
20393 (w32font_open_internal): Initialize metric cache to empty.
20394 (registry_to_w32_charset): Charset should always be a symbol.
20395 (fill_in_logfont, list_all_matching_fonts): Family should
20396 always be a symbol.
20397
203982008-04-06 Jason Rumney <jasonr@gnu.org>
20399
20400 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
20401 Give up if glyph indices not supported. Use uniscribe obtained
20402 ABC widths for individual metrics. Map glyph clusters back to
20403 characters using fClusterStart flag. Return number of glyphs
20404 produced, not chars processed.
20405 (uniscribe_shape): Map char at FROM to current glyph.
20406
204072008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20408
20409 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
20410 Use SetMenuItemHierarchicalMenu.
20411
204122008-04-05 Jason Rumney <jasonr@gnu.org>
20413
20414 * image.c (pbm_load): Allow color values up to 65535.
20415 Throw an error if max_color_idx is outside the supported range.
20416 Report an error when image size is invalid.
20417 Read two bytes at a time when raw images have max_color_idx above 255.
20418
aac0c6e3
MR
204192008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
20420
20421 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
20422 append "CCL: Quitted" when the CCL program is quitted.
20423 (setup_ccl_program): Initialize ccl->quit_silently to zero.
20424
20425 * ccl.h (struct ccl_program): New member quit_silently.
20426
204272008-04-05 Chong Yidong <cyd@stupidchicken.com>
20428
20429 * search.c (compile_pattern_1): Treat non-nil and non-string of
20430 search-spaces-regexp as nil.
20431
20432 * minibuf.c (Fassoc_string): Tweak docstring.
20433
204342008-04-05 Eli Zaretskii <eliz@gnu.org>
20435
20436 * dired.c (Ffile_attributes): Support inode numbers wider than 32
20437 bits. Remove ugly WINDOWSNT-specific kludge introduced on
20438 2008-03-14 to force inode be positive.
20439
20440 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
20441 _S_* ones, since we now use our own sys/stat.h.
20442 (stat, fstat): Don't mangle the inode number.
20443 (init_user_info): Don't restrict UID and GID to 0-60000 range.
20444
204452008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
20446
20447 * frame.h (struct frame): Give one more bit to `visible' since we use
20448 values larger than 1 to indicate obscured frames on ttys.
20449
20450 * keymap.c (Qkeymap_canonicalize): New var.
20451 (Fmap_keymap_internal): New fun.
20452 (describe_map): Use keymap-canonicalize.
20453
20454 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
20455 (Fundo_boundary): Set them.
20456 (syms_of_undo): Initialize them.
20457 (record_point): Use them instead of last_point_position*.
20458 (last_undo_buffer): Change type.
20459
204602008-04-04 Jason Rumney <jasonr@gnu.org>
20461
20462 * w32font.c (w32font_text_extents): Use font's ascent and descent.
20463 (recompute_cached_metrics): Don't set ascent and descent per char.
20464
20465 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
20466 (uniscribe_check_otf): Add GC protection before consing.
20467 Rearrange loop for counting features.
20468
204692008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
20470
20471 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
20472 buffer with byte-size of source buffer.
20473
204742008-04-03 Chong Yidong <cyd@stupidchicken.com>
20475
20476 * callint.c (Fcall_interactively): Handle temporary region even
20477 when shift-select-mode is off.
20478
204792008-04-03 Jason Rumney <jasonr@gnu.org>
20480
20481 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
20482
204832008-04-03 Kenichi Handa <handa@m17n.org>
20484
20485 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
20486 (CATEGORY_MASK_UTF_16): Likewise.
20487 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
20488 binary file.
20489 (detect_coding): Add null-byte detection for a binary file.
20490 (detect_coding_system): Likewise.
20491
204922008-04-03 Jason Rumney <jasonr@gnu.org>
20493
20494 * w32uniscribe.c: New file.
20495
20496 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
20497
20498 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
20499
20500 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
20501 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
20502 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
20503 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
20504 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
20505 (Qphonetic): New symbols.
20506 (syms_of_w32font): Initialize them.
20507 (font_supported_scripts): Use them.
20508 (w32font_list_family): List all charsets.
20509 (w32font_text_extents, recompute_cached_metrics): Fix metric
20510 calculations.
20511 (w32_enumfont_pattern_entity): Make full_type a DWORD.
20512 Give opentype fonts their own format.
20513 (font_matches_spec): New arguments backend and logfont.
20514 Handle :otf spec for uniscribe backend.
20515 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
20516 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
20517
20518 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
20519 font backend.
20520 (globals_of_w32fns): Initialize uniscribe font backend.
20521
20522 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
20523 dependencies.
20524 (w32uniscribe.$(O)): New file to build.
20525 (FONT_OBJ): Include w32uniscribe.$(O).
20526 (LIBS): Add uniscribe libraries.
20527
20528 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
20529
205302008-04-02 Chong Yidong <cyd@stupidchicken.com>
20531
20532 * callint.c (Vshift_select_mode): New var.
20533 (Finteractive): Document new ^ spec.
20534 (Fcall_interactively): Call handle-shift-selection if the ^ spec
20535 is present.
20536
20537 * keyboard.c (Vthis_command_keys_shift_translated): New var.
20538 (command_loop_1): Avoid running the direct display versions of
20539 forward-char and backward-char if shift-selection may occur.
20540 (read_key_sequence): Set Vthis_command_keys_shift_translated if
20541 shift-translation takes place.
20542
20543 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
20544 avoid clobbering by define-minor-mode.
20545
20546 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
20547 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
20548
20549 * syntax.c (Fforward_word): Add ^ interactive spec.
20550
20551 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
20552 (Fscroll_right): Add ^ interactive spec.
20553
205542008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
20555
20556 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
20557
20558 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
20559
20560 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
20561
205622008-03-31 Juri Linkov <juri@jurta.org>
20563
20564 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
20565
205662008-03-30 Jan Djärv <jan.h.d@swipnet.se>
20567
20568 * gtkutil.c (xg_set_geometry): Fix indentation.
20569 (xg_resize_outer_widget): Remove.
20570 (x_wm_size_hint_off): Fix indentation.
20571 (xg_frame_set_char_size): Call flush_and_sync after
20572 gtk_window_resize.
20573 (x_wm_set_size_hint): Pass NULL as geometry window to
20574 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
20575 Add menu bar and tool bar height to base height.
20576 (xg_update_frame_menubar, free_frame_menubar)
20577 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
20578 (update_frame_tool_bar, free_frame_tool_bar):
20579 Change xg_resize_outer_widget to xg_frame_set_char_size.
20580
205812008-03-30 Michael Albinus <michael.albinus@gmx.de>
20582
20583 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
20584 (Fdbus_call_method): New parameter TIMEOUT.
20585 (dbus-send-signal): Optimize UNGCPRO call.
20586
205872008-03-29 Juri Linkov <juri@jurta.org>
20588
20589 * window.c (Fdisplay_buffer): Move call to
20590 Vsplit_window_preferred_function out of conditions that check
20591 if window is eligible for vertical splitting.
20592 When Vsplit_window_preferred_function is non-nil, call it and use
20593 its non-nil return value as window. Otherwise, continue doing
20594 vertical splitting using Fsplit_window with arg horflag=nil.
20595 (syms_of_window) <Vsplit_window_preferred_function>: Change the
20596 default value from `split-window' to nil.
20597
205982008-03-29 Juri Linkov <juri@jurta.org>
20599
20600 * callint.c (Fcall_interactively): Revert 2008-03-16 change
20601 for interactive code letters 'b' and 'B'.
20602
206032008-03-29 Eli Zaretskii <eliz@gnu.org>
20604
20605 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
20606 multibyte string.
20607
206082008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
20609
20610 * keyboard.c (pending_funcalls): New var.
20611 (timer_check): Run it.
20612 (syms_of_keyboard): Initialize it.
20613 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
20614 (Vdelete_terminal_functions): New vars.
20615 (syms_of_terminal): Initialize them.
20616 (Fdelete_terminal): Run delete-terminal-functions.
20617 * xdisp.c (safe_eval): Rewrite.
20618 (safe_call2): New fun.
20619 * frame.c (Qdelete_frame_functions): New var.
20620 (syms_of_frame): Initialize it.
20621 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
20622 * lisp.h (safe_call2, pending_funcalls): Declare.
20623
206242008-03-28 Andreas Schwab <schwab@suse.de>
20625
20626 * indent.c (Fmove_to_column): Move declaration before statements.
20627
206282008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
20629
20630 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
20631 (struct frame): Use bit fields for boolean vars.
20632
20633 * process.c (server_accept_connection): Simplify naming.
20634 (emacs_get_tty_pgrp): Use SDATA.
20635
20636 * coding.c (decode_coding_object): Fix last change.
20637
206382008-03-27 Jason Rumney <jasonr@gnu.org>
20639
20640 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
20641
206422008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
20643
20644 * charset.c (Fdefine_charset_internal): Change the way of
20645 registering charsets in Vcharset_order_list.
20646 (syms_of_charset): Make the charset `eight-bit' supplementary.
20647
206482008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
20649
20650 * regex.c (EXTEND_BUFFER): Change order of pointer addition
20651 operations, to avoid having the difference between pointers
20652 overflow.
20653
206542008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
20655
20656 * indent.c (check_display_width): New fun.
20657 (scan_for_column): Use it.
20658
20659 * data.c (syms_of_data): Mark most-positive-fixnum and
20660 most-negative-fixnum as constants.
20661
20662 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
20663
20664 * indent.c (scan_for_column): Extract from current_column_1.
20665 Merge with the same code from Fmove_to_column.
20666 (current_column_1, Fmove_to_column): Use it.
20667
206682008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
20669
20670 * keymap.c (map_keymap_internal): New fun.
20671 (map_keymap): Use it.
20672 (Fmap_keymap_internal): New fun.
20673 (Fmap_keymap): Remove left-out test from before make_save_value.
20674
20675 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
20676
20677 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
20678 Use XCAR/XCDR.
20679
20680 * process.h (struct Lisp_Process): Remove filter_multibyte.
20681 * process.c (QCfilter_multibyte): Remove.
20682 (setup_process_coding_systems): Don't use filter_multibyte.
20683 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
20684 (read_process_output): Don't adjust multibyteness to filter_multibyte.
20685 (Fset_process_filter_multibyte): Change the coding-system to
20686 approximate the previous behavior.
20687 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
20688 coding-system.
20689
20690 * coding.c (decode_coding_object): When not decoding into a buffer,
20691 obey the coding system's preference of (uni|multi)byte.
20692
206932008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
20694
20695 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
20696 every char is changed and has a different byte-length.
20697 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
20698 Fix int -> EMACS_INT.
20699
207002008-03-23 David Hansen <david.hansen@gmx.net>
20701
20702 * dbusbind.c (xd_read_message): Remove extra copying of message
20703 strings. Check for NULL `interface' or `member'.
20704
207052008-03-22 Eli Zaretskii <eliz@gnu.org>
20706
20707 * w32.c (readdir): If FindFirstFile/FindNextFile return in
20708 cFileName a file name that includes `?' characters, use the 8+3
20709 alias in cAlternateFileName instead.
20710
207112008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
20712
20713 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
20714
207152008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
20716
20717 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
20718 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
20719 work on current_buffer only instead (that was already the case
20720 for some of the code anyway).
20721 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
20722 (temp_set_point, temp_set_point_both): Use EMACS_INT.
20723 (SET_PT, SET_PT_BOTH): Adjust.
20724 * intervals.h (set_point, temp_set_point, set_point_both)
20725 (temp_set_point_both): Remove redundant declarations.
20726
207272008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
20728
20729 * fileio.c (Finsert_file_contents):
20730 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
20731 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
20732 when buffer != current_buffer anyway.
20733
207342008-03-20 Andreas Schwab <schwab@suse.de>
20735
20736 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
20737 as default.
20738
207392008-03-19 Jason Rumney <jasonr@gnu.org>
20740
20741 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
20742 (syms_of_w32fns): Initialize them.
20743 (HOURGLASS_ID): New constant.
20744 (x_window_to_frame): Don't check hourglass_window.
20745 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
20746 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
20747 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
20748 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
20749 Only change the cursor if hourglass is not active.
20750 (Fx_create_frame): Initialize frame's current_cursor.
20751 (hourglass_atimer): Remove.
20752 (hourglass_started): New function.
20753 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
20754 (show_hourglass): Adapt to w32, changing argument to frame.
20755
20756 * w32term.h (struct w32_output): Remove hourglass_window.
20757 Add current_cursor.
20758
20759 * eval.c (call_debugger, Fsignal):
20760 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
20761 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
20762 (Fexecute_extended_command, cancel_hourglass_unwind):
20763 * minibuf.c (read_minibuf):
20764 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
20765
207662008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
20767
20768 * window.c (run_funs): New fun.
20769 (run_window_configuration_change_hook): Use it to run the buffer-local
20770 and the global part of the hook.
20771
20772 * xdisp.c (format_mode_line_unwind_data): Add window argument.
20773 (unwind_format_mode_line): Restore selected window.
20774 (x_consider_frame_title, Fformat_mode_line): Set selected window.
20775
207762008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
20777
20778 * editfns.c (Fchar_equal): Check they are valid characters.
20779
20780 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
20781
207822008-03-17 Andreas Schwab <schwab@suse.de>
20783
20784 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
20785 against a charset.
20786
20787 * lisp.h (Fbuffer_list): Declare.
20788
207892008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 20790
aac0c6e3
MR
20791 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
20792 handlebox_widget is != 0.
20793
207942008-03-16 Juri Linkov <juri@jurta.org>
20795
20796 * callint.c (Fcall_interactively): For interactive code letters
20797 'b' and 'B' put the buffer list into the list of default "future"
20798 values of the minibuffer.
20799
208002008-03-16 Andreas Schwab <schwab@suse.de>
20801
20802 * keyboard.c (read_key_sequence): Fix downcasing of letters with
20803 modifiers.
20804
20805 * regex.c (re_match_2_internal): Correct matching of a charset
20806 against latin-1 characters.
20807
208082008-03-16 Kenichi Handa <handa@m17n.org>
20809
20810 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
20811 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
20812 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
20813 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
20814 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
20815 CHAR_STRING_ADVANCE.
20816 (produce_chars): Fix for the case that the source and the
20817 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
20818 instead of CHAR_STRING_ADVANCE.
20819 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
20820 STRING_CHAR_ADVANCE.
20821
208222008-03-15 Andreas Schwab <schwab@suse.de>
20823
20824 * regex.c (re_match_2_internal): Correct matching of eight bit
20825 characters in unibyte strings.
20826
208272008-03-15 Martin Rudalics <rudalics@gmx.at>
20828
20829 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
20830 at end of range when it coincides with the end of the buffer.
20831
208322008-03-14 Eli Zaretskii <eliz@gnu.org>
20833
20834 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
20835
20836 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
20837
208382008-03-14 Jason Rumney <jasonr@gnu.org>
20839
20840 * editfns.c (initial_tz): New variable.
20841 (syms_of_editfns): Initialize it.
20842 (Fset_time_zone_rule): Set it when first called.
20843 Use it when TZSTRING is nil.
20844
20845 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
20846 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
20847 (monitor_from_point_fn, get_monitor_info_fn): New globals.
20848 (globals_of_w32fns): Initialize them.
20849 (compute_tip_xy): Use them to position tooltips.
20850
208512008-03-14 Glenn Morris <rgm@gnu.org>
20852
20853 * emacs.c (main): Revert previous change.
20854 (standard_args): Revert -internal-script back to -scriptload,
20855 and remove the long-option form.
20856
208572008-03-13 Glenn Morris <rgm@gnu.org>
20858
20859 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
20860 Remove option -enable-font-backend.
20861
208622008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
20863
20864 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
20865
208662008-03-11 Jan Djärv <jan.h.d@swipnet.se>
20867
20868 * xterm.c (x_connection_closed): For GTK: If this is the last
20869 terminal just exit without closing the display.
20870
208712008-03-11 Jason Rumney <jasonr@gnu.org>
20872
20873 * w32font.c (w32font_full_name): Use floor to round.
20874
f0131492 208752008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
20876
20877 * sound.c (alsa_configure): Declare vol at beginning of block.
20878
20879 * fontset.c (Ffontset_info): Remove extra semicolon.
20880
208812008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
20882
20883 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
20884 size of resulting string.
20885
208862008-03-10 Jason Rumney <jasonr@gnu.org>
20887
20888 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
20889
208902008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20891
20892 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
20893 Don't pretend as if characters with display property haven't been
20894 consumed for string-replacing-string case.
20895
208962008-03-08 Kim F. Storm <storm@cua.dk>
20897
20898 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
20899 (get_next_display_element, next_element_from_string)
20900 (next_element_from_ellipsis, next_element_from_buffer): Use it.
20901
209022008-03-08 Andreas Schwab <schwab@suse.de>
20903
20904 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
20905
209062008-03-06 Jason Rumney <jasonr@gnu.org>
20907
20908 * w32font.c (w32_registry): Take font_type argument. Use ANSI
20909 when charset not specified. Only translate ANSI to unicode when
20910 font_type is truetype.
20911 (w32font_coverage_ok): New function.
20912 (add_font_entity_to_list): Use it to filter unsuitable fonts.
20913
209142008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
20915
20916 * lread.c (Fread_char): Resolve modifiers.
20917 (Fread_char_exclusive): Likewise.
20918
20919 * character.c (char_resolve_modifier_mask): New function.
20920 (char_string): Use char_resolve_modifier_mask.
20921 (Fchar_resolve_modifiers): New function.
20922 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
20923 function.
20924
209252008-03-04 Jason Rumney <jasonr@gnu.org>
20926
20927 * makefile.w32-in: Always include w32font.c in the build.
20928 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
20929
209302008-03-04 Andreas Schwab <schwab@suse.de>
20931
20932 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
20933 (versionclean): Likewise.
20934
209352008-03-04 Juanma Barranquero <lekktu@gmail.com>
20936
20937 * .cvsignore: Add oo.
20938
209392008-03-03 Andreas Schwab <schwab@suse.de>
20940
20941 * coding.c (decode_coding_object): Inhibit gap shrinking while
20942 decoding in place.
20943
209442008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
20945
20946 * w32term.c: Remove unused include "gnu.h".
20947 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
20948
20949 * gnu.h: Rename to ...
20950 * emacs-icon.h: ... this.
20951 * xterm.c: Use emacs-icon.h instead of gnu.h.
20952 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
20953
209542008-03-03 Juanma Barranquero <lekktu@gmail.com>
20955
20956 * w32font.c: Include math.h.
20957
209582008-03-03 Jason Rumney <jasonr@gnu.org>
20959
20960 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
20961 Compute options separately.
20962 (w32font_open_internal): Set glyph_idx before caching metrics.
20963
20964 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
20965 Define if system headers don't.
20966 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
20967 (w32font_encode_char): Don't declare here.
20968
20969 * w32font.c (Quniscribe, QCformat): New symbols.
20970 (syms_of_w32font): Define them.
20971 (w32font_has_char): Indicate uncertainty.
20972 (w32font_encode_char): Encode as glyph point. Make static.
20973 (recompute_cached_metrics): New function.
20974 (w32font_open_internal): Use it. Set font to use glyph points
20975 initially. Set format based on type of font.
20976 (w32font_text_extents, w32font_draw): Optionally use glyph points.
20977 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
20978 on it. Set format based on information available here.
20979 (add_font_entity_to_list): Identify backend based on opentype_only.
20980
209812008-03-02 Andreas Schwab <schwab@suse.de>
20982
20983 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
20984
20985 * coding.c (decode_coding_big5, produce_chars):
20986 Fix typos in last change.
20987
209882008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
20989
20990 * gnu.h: New icon.
20991
209922008-03-02 Kenichi Handa <handa@m17n.org>
20993
20994 * coding.c (decode_coding_utf_8): When eol-type of CODING is
20995 `dos', don't decode '\r' if that is the last in the source.
20996 (decode_coding_utf_16, decode_coding_emacs_mule)
20997 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
20998 (decode_coding_raw_text, decode_coding_charset): Likewise.
20999 (produce_chars): Don't decode EOL here. Use EMACS_INT.
21000
210012008-03-01 Jason Rumney <jasonr@gnu.org>
21002
21003 * w32font.c (w32font_full_name): Report point size for scalable fonts.
21004
210052008-03-01 Kim F. Storm <storm@cua.dk>
21006
21007 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
21008
210092008-03-01 Jason Rumney <jasonr@gnu.org>
21010
21011 * w32font.c (w32font_full_name): New function.
21012 (w32font_open_internal): Use it.
21013
210142008-03-01 Kim F. Storm <storm@cua.dk>
21015
21016 * dispnew.c (line_draw_cost): Fix invalid glyph check.
21017
210182008-03-01 Jason Rumney <jasonr@gnu.org>
21019
21020 * font.c (font_unparse_fcname): Increase len when style is a symbol.
21021
210222008-03-01 Jan Djärv <jan.h.d@swipnet.se>
21023
21024 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
21025 xg_frame_resized when the event is for the edit widget.
21026
ef1b0ba7 21027 * gtkutil.h (xg_frame_resized): Rename from xg_resize_widgets.
aac0c6e3
MR
21028
21029 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
21030 set_char_size.
ef1b0ba7 21031 (xg_frame_resized): Rename from xg_resize_widgets. Remove all
aac0c6e3
MR
21032 operations on widgets here. Just set frame size if needed.
21033 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
21034 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
21035 (x_wm_set_size_hint): Set size hints on the edit widget only, not
21036 the whole frame.
21037 (xg_create_tool_bar): Move attachment of the tool bar to
21038 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
21039 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
21040
210412008-03-01 Jason Rumney <jasonr@gnu.org>
21042
21043 * w32fns.c (w32_msg_pump): Disable debug code.
21044
210452008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21046
21047 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
21048
210492008-02-29 Chong Yidong <cyd@stupidchicken.com>
21050
21051 * xdisp.c (next_overlay_string): Don't set
21052 overlay_strings_at_end_processed_p if we're currently reading from
21053 a display string.
21054
210552008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
21056
21057 * xdisp.c (get_overlay_strings_1): Fix typo.
21058
210592008-02-29 Chong Yidong <cyd@stupidchicken.com>
21060
21061 * xdisp.c (get_overlay_strings_1): Add missing argument type.
21062
210632008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
21064
21065 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
21066
21067 * xdisp.c (display_mode_element): Cancel the previous change.
21068 (decode_mode_spec): Likewise.
21069 (handle_auto_composed_prop): Don't make composition if it->string
21070 is a string.
21071
210722008-02-27 Kim F. Storm <storm@cua.dk>
21073
21074 * lisp.h (GLYPH): Change type from int to struct with separate char
21075 and face_id members.
21076 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
21077 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
21078 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
21079 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
21080 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
21081 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
21082 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
21083 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
21084 handle new Lisp glyph code encoding, either an integer or a cons.
21085
21086 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
21087 (GLYPH_ALIAS): Delete.
21088 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
21089 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
21090 (GLYPH_FROM_CHAR): Replace macro by ...
21091 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
21092
21093 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
21094 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
21095 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
21096 (GLYPH_INVALID_P): New macro.
21097 (spec_glyph_lookup_face): Update prototype.
21098
21099 * dispnew.c (line_draw_cost): Adapt to new glyph type.
21100 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
21101 new glyph code encoding.
21102 (spec_glyph_lookup_face): No return value; update passed glyph instead.
21103 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
21104
21105 * xdisp.c (get_next_display_element, next_element_from_display_vector):
21106 Adapt to new glyph type and new glyph code encoding.
21107
21108 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
21109
21110 * indent.c (current_column, current_column_1, Fmove_to_column)
21111 (compute_motion): Adapt to new glyph code encoding.
21112
21113 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
21114
211152008-02-27 Chong Yidong <cyd@stupidchicken.com>
21116
21117 * process.c (wait_reading_process_output): Check for window
21118 changes caused by timers.
21119 Suggested by Johan Bockgård.
21120
211212008-02-27 Glenn Morris <rgm@gnu.org>
21122
21123 * emacs.c (USAGE1): Add `--disable-font-backend'.
21124
211252008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
21126
21127 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
21128 is made to the buffer.
21129
211302008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
21131
21132 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
21133 (face_at_string_position):
21134 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
21135 (face_at_string_position):
21136 * xdisp.c (display_string, next_overlay_change):
21137 * buffer.h (overlays_at):
21138 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
21139 Update callers.
21140
211412008-02-26 Chong Yidong <cyd@stupidchicken.com>
21142
21143 * editfns.c (Fformat): Doc fix.
21144
211452008-02-26 Juanma Barranquero <lekktu@gmail.com>
21146
21147 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
21148 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
21149 (Ffont_otf_alternates, Fquery_font): Doc fixes.
21150
211512008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
21152
21153 * buffer.c (Fbuffer_swap_text): New function.
21154 (syms_of_buffer): Defsubr it.
21155
211562008-02-25 Chong Yidong <cyd@stupidchicken.com>
21157
21158 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
21159
211602008-02-25 Jason Rumney <jasonr@gnu.org>
21161
21162 * w32font.c (w32font_draw): Draw one character at a time when padding.
21163
211642008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
21165
21166 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
21167 Handle a nil arg. Use run_window_configuration_change_hook.
21168 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
21169 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
21170 Use run_window_configuration_change_hook.
21171
211722008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
21173
21174 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
21175 1-pixel width.
21176
211772008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
21178
21179 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
21180 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
21181 if the glyph in the font is zero pixel with.
21182
21183 * dispextern.h (struct glyph_string): New member padding_p.
21184
21185 * w32font.c (w32font_draw): Pay attention to s->padding_p.
21186
21187 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
21188
21189 * xfont.c (xfont_draw): Pay attention to s->padding_p.
21190
21191 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
21192
21193 * font.c: If the font driver doesn't have `shape' function, return Qnil.
21194
211952008-02-25 Jason Rumney <jasonr@gnu.org>
21196
21197 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
21198
211992008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
21200
21201 Allow fine-grained image-cache flushing.
21202 * dispextern.h (struct image): Add `dependencies' field.
21203 (clear_image_caches): Change arg to Lisp_Object.
21204 * image.c (make_image): Initialize `dependencies' field.
21205 (clear_image_cache): Change arg to allow fine-grained flushing.
21206 Perform the flush even if image-cache-eviction-delay is nil.
21207 (clear_image_caches): Change arg to Lisp_Object.
21208 (Fclear_image_cache): Expand meaning of the argument.
21209 (mark_image): Mark `dependencies' field.
21210 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
21211 (lface_hash): Use XHASH rather than XFASTINT.
21212 (face_at_buffer_position): Fix int -> EMACS_INT position.
21213 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
21214 (select_frame_for_redisplay): Remove code duplication.
21215 (redisplay_internal): Adapt arg to call to clear_image_caches.
21216
212172008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
21218
21219 * s/vms4-0.h:
21220 * s/vms4-2.h:
21221 * s/vms4-4.h:
21222 * s/vms5-5.h: Remove, unused.
21223
21224 * s/irix5-2.h:
21225 * s/irix6-0.h:
21226 * s/riscos5.h:
21227 * s/mach-bsd4-3.h:
21228 * m/mips4.h: Remove files for obsolete systems.
21229
21230 * Makefile.in:
21231 * filelock.c:
21232 * unexmips.c:
21233 * m/hp9000s300.h:
21234 * m/iris4d.h:
21235 * s/aix3-1.h:
21236 * s/hpux.h:
21237 * s/msdos.h:
21238 * s/usg5-0.h:
21239 * s/usg5-2-2.h:
21240 * s/usg5-2.h:
21241 * s/usg5-3.h: Remove references to obsolete variables.
21242
21243 * s/irix5-0.h: Remove, move all the contents ...
21244 * s/irix6-5.h: ... here. Simplify.
21245 * config.in: Regenerate.
21246
212472008-02-24 Jason Rumney <jasonr@gnu.org>
21248
21249 * w32term.c (x_draw_glyph_string_background): Clear the background
21250 manually when cleartype is in use.
21251 (x_draw_glyph_string_foreground): Draw text transparently when
21252 cleartype is in use.
21253
21254 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
21255 a font into it unless we have to.
21256
212572008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
21258
21259 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
21260 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 21261
aac0c6e3
MR
212622008-02-18 Jason Rumney <jasonr@gnu.org>
21263
21264 * w32fns.c (Fw32_shell_execute): Encode parameters.
21265
212662008-02-09 Eli Zaretskii <eliz@gnu.org>
21267
21268 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
21269
212702008-02-05 Juanma Barranquero <lekktu@gmail.com>
21271
21272 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
21273
212742008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
21275
21276 * xterm.c (x_set_offset): Don't change the gravity if
21277 CHANGE_GRAVITY is -1.
21278
212792008-02-23 Chong Yidong <cyd@stupidchicken.com>
21280
21281 * fileio.c (auto_save_error_occurred): New var.
21282 (auto_save_error): Set it.
21283 (Fdo_auto_save): Don't overwrite the error message if an auto-save
21284 error occurred.
21285
212862008-02-23 Eli Zaretskii <eliz@gnu.org>
21287
21288 * w32.c (globals_of_w32): Add initializations for
21289 g_b_init_get_sid_sub_authority and
21290 g_b_init_get_sid_sub_authority_count.
21291
212922008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
21293
21294 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
21295 (font_parse_xlfd): Use them for sanity check.
21296 (Finternal_set_font_style_table): Make sure the table is bijective.
21297
21298 Consolidate the image_cache to the terminal struct.
21299 * termhooks.h (P_): Remove redundant def.
21300 (struct terminal): New field `image_cache'.
21301 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
21302 of FRAME_X_IMAGE_CACHE.
21303 * xterm.h (struct x_display_info): Remove image_cache field.
21304 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
21305 * w32term.h (struct w32_display_info): Remove image_cache field.
21306 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
21307 * macterm.h (struct mac_display_info): Remove image_cache field.
21308 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
21309 * xterm.c (x_term_init):
21310 * w32term.c (w32_term_init):
21311 * macterm.c (mac_term_init): Set the image_cache in the terminal.
21312 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
21313 Remove declarations.
21314 (clear_image_caches, mark_image_cache): New declarations.
21315 * xfaces.c (clear_face_cache):
21316 * xdisp.c (redisplay_internal): Use clear_image_caches.
21317 * image.c (clear_image_cache): Don't check that a frame is on
21318 a window-system before checking if it shares the same cache.
21319 (clear_image_caches): New function.
21320 (Fclear_image_cache): Use it.
21321 (mark_image): Move from allo.c.
21322 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
21323 * alloc.c (mark_image, mark_image_cache): Move to image.c.
21324 (mark_object): Don't call mark_image_cache for frames.
21325 (mark_terminals): Call mark_image_cache.
21326
21327 * lisp.h (Fdelete_terminal): Declare.
21328
21329 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
21330 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
21331 wrong_type_argument.
21332
213332008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
21334
21335 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
21336 malayalam.el, and tamil.el. Add sinhala.el.
21337
213382008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
21339
21340 * xterm.c (x_connection_closed): Consolidate identical tests.
21341 (x_delete_terminal): Don't crash if called via x_connection_closed.
21342
213432008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
21344
21345 * xdisp.c (decode_mode_spec): New arg string.
21346 (display_mode_element): Adjust for the above change.
21347
213482008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
21349
21350 * callint.c (Fcall_interactively): Use AREF.
21351
213522008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
21353
21354 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
21355
213562008-02-18 Jan Djärv <jan.h.d@swipnet.se>
21357
21358 * xfns.c (Fx_show_tip): Set string to " " if empty.
21359
213602008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
21361
21362 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
21363 with Qt.
21364
213652008-02-17 Kenichi Handa <handa@m17n.org>
21366
21367 * ftfont.c (ftfont_shape): Return Lispy number.
21368
21369 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
21370 for GCs.
21371 (Finternal_set_font_selection_order): Call font_update_sort_order
21372 only when enable_font_backend is set.
21373 (realize_x_face): Set face->font_info to that of default face only
21374 when enable_font_backend is set.
21375
21376 * xdisp.c (handle_composition_prop): Set it->c to the fist
21377 character of the composed region.
21378 (fill_composite_glyph_string): Set base_face->font_info to
21379 s->font_info. Get a face for ascii from base_face->ascii_face.
21380 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
21381 with a face already decided.
21382 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
21383 non-negative.
21384 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
21385 call font_prepare_composition unconditionally.
21386
21387 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
21388
21389 * xterm.h (struct x_display_info): New member font.
21390
21391 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
21392 (x_set_mouse_face_gc, x_new_font): Likewise.
21393 (x_term_init): Setup display_info->font.
21394 (x_delete_terminal): Free display_info->font.
21395
21396 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
21397
21398 * ftxfont.c (ftxfont_default_fid): Delete it.
21399 (ftxfont_open): Set xfont->fid to 0.
21400 (ftxfont_end_for_frame): Clear data specific to the frame and the
21401 font-driver.
21402
21403 * xftfont.c (xftfont_default_fid): Delete it.
21404 (xftfont_open): Set xfont->fid to 0.
21405
21406 * fontset.c (FONTSET_OBJLIST): New macro.
21407 (fontset_find_font): Update font-object list of the fontset.
21408 (free_realized_fontset): New function.
21409 (free_face_fontset): Call free_realized_fontset.
21410 (Ffont_info): Call font_close_object only when enable_font_backend
21411 is set.
21412
21413 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
21414 [HAVE_NTGUI]: Include w32term.h.
21415 [MAC_OS]: Include macterm.ch.
21416 (font_otf_ValueRecord): Use make_number.
21417 (font_finish_cache): Fix handling of reference count.
21418 (font_clear_cache): Update num_fonts.
21419 (font_open_entity): Update smallest_char_width and
21420 smallest_font_height of the frame.
21421 (font_close_object): Update num_fonts.
21422 (Fclear_font_cache): Fix finding the target cache data.
21423
214242008-02-16 Glenn Morris <rgm@gnu.org>
21425
21426 * fontset.c (Finternal_char_font): Fix compilation warning.
21427
214282008-02-16 Eli Zaretskii <eliz@gnu.org>
21429
21430 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
21431 instead of char arrays. Enlarge the size of array passed to
21432 get_token_information.
21433
21434 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
21435 warnings.
21436
214372008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
21438
21439 * .gdbinit: Don't set `args', it breaks gdb --args.
21440
214412008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
21442
21443 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
21444 within a narrowed buffer.
21445
214462008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
21447
21448 * coding.c (decode_coding_object, encode_coding_object):
21449 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
21450
214512008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
21452
21453 * coding.c (coding_set_destination): Use BEG_BYTE rather than
21454 hardcoding 1.
21455 (detect_coding_system):
21456 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
21457 (string_char_to_byte, string_byte_to_char, insert_from_gap):
21458 * insdel.c (insert_from_gap):
21459 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
21460 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
21461 (string_to_multibyte):
21462 * character.c (chars_in_text, multibyte_chars_in_text):
21463 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
21464
21465 * character.h (FETCH_STRING_CHAR_ADVANCE)
21466 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
21467 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
21468 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
21469
21470 * casefiddle.c (casify_region): Only call after-change and composition
21471 functions on the part of the region that was changed.
21472
21473 * keyboard.c (read_avail_input):
21474 * frame.c (Fdelete_frame): Call Fdelete_terminal.
21475
214762008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
21477
21478 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
21479 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
21480
214812008-02-11 Juanma Barranquero <lekktu@gmail.com>
21482
21483 * w32menu.c (push_submenu_start, push_submenu_end)
21484 (push_left_right_boundary, push_menu_pane, push_menu_item):
21485 * keyboard.c (read_key_sequence): Don't pass args with side effects
21486 to AREF, it fails when compiling with -DENABLE_CHECKING.
21487
214882008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
21489
21490 * Makefile.in (${lispsource}international/charprop.el):
21491 Delete this target.
21492
21493 * search.c (boyer_moore): Fix incorrect synching of the trunk and
21494 emacs-unicode-2.
21495
214962008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
21497
21498 * terminal.c (Fdelete_terminal): Clean up the `force' path.
21499
215002008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
21501
21502 * frame.c (Qnoelisp): New symbol.
21503 (syms_of_frame): Initialize it.
21504 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
21505 harmless Elisp code, from a strong `force' from x_connection_closed.
21506 * frame.h (Qnoelisp): Declare.
21507 * xterm.c (x_connection_closed): Pass `noelisp'.
21508
21509 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
21510 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
21511 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
21512 rather than `int' for the type of `type'.
21513
215142008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
21515
21516 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
21517
21518 * Makefile.in (GNUC): Remove support for gcc-1.x.
21519
215202008-02-10 Richard Stallman <rms@gnu.org>
21521
21522 * lisp.h (ASET): Use AREF, not ASLOT.
21523
215242008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
21525
21526 * lisp.h (ASET): Check bounds.
21527
215282008-02-10 Glenn Morris <rgm@gnu.org>
21529
21530 * buffer.c (mode-name): Doc fix.
21531
215322008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
21533
21534 * Makefile.in:
21535 * emacs.c:
21536 * gmalloc.c:
21537 * keyboard.c:
21538 * lisp.h:
21539 * m/ibm370aix.h:
21540 * process.c:
21541 * regex.c:
21542 * s/hpux.h:
21543 * sysdep.c:
21544 * sysselect.h:
21545 * systty.h:
21546 * unexec.c:
21547 * w32term.c:
21548 * xsmfns.c:
21549 * xterm.c: Remove code that deals with obsolete variables.
21550
21551 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
21552
21553 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
21554 nothing else needs it anymore.
21555
215562008-02-09 Eli Zaretskii <eliz@gnu.org>
21557
21558 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
21559 instead of unibyte_char_to_multibyte.
21560
215612008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
21562
21563 * s/gnu-linux.h: Remove commented out code.
21564
21565 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
21566
21567 * Makefile.in: Update what RMS says about using autoconf.
21568 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
21569 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
21570 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
21571 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
21572
215732008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
21574
21575 * keymap.c (Fkey_description): Move side effect outside of macro call.
21576
21577 * xfaces.c (Finternal_make_lisp_face):
21578 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
21579
21580 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
21581 (syms_of_fontset): Use ASET.
21582
21583 * fns.c (concat): Move side effect outside of macro call.
21584 (hash_clear): Use ASET.
21585
215862008-02-08 Richard Stallman <rms@gnu.org>
21587
21588 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
21589 If FORCE, and frame has a surrogate minibuffer for another frame,
21590 delete the other frame first.
21591
215922008-02-07 Timo Savola <timo.savola@iki.fi>
21593
21594 * xterm.c (x_detect_focus_change): Handle embed client message.
21595 (handle_one_xevent): Ditto.
21596 (handle_one_xevent): If embedded and we get a button press/release,
21597 request focus.
21598 (xembed_set_info, xembed_send_message): New functions.
21599 (x_make_frame_visible): Call xembed_set_info if embedded.
21600 (x_make_frame_invisible): Call xembed_set_info if embedded.
21601 (x_term_init): Initialize Xatom_XEMBED.
21602 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
21603 (x_iconify_frame): Ditto.
21604
21605 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
21606 (enum xembed_info, enum xembed_message, enum xembed_focus)
21607 (enum xembed_modifier, enum xembed_accelerator): New.
21608 (xembed_set_info, xembed_send_message): Declare.
21609 (FRAME_X_EMBEDDED_P): New.
21610
21611 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
21612 gtk_plug_new.
21613
21614 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
21615 window ID of a frame.
21616 (x_window): Reparent frame if embedded.
21617 (Fx_create_frame): Don't set border width if embedded.
21618
21619 * emacs.c (USAGE3): Add --parent-id.
21620 (standard_args): Ditto.
21621
216222008-02-07 Jan Djärv <jan.h.d@swipnet.se>
21623
21624 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
21625
216262008-02-07 Jim Meyering <meyering@redhat.com>
21627
21628 Use "do...while (0)", not "if (1)...else" in macro definitions.
21629 The latter provokes a warning from gcc about the empty else, when
21630 followed by ";". Also, without that trailing semicolon, it would
21631 silently swallow up any following statement.
21632 * syntax.h (SETUP_SYNTAX_TABLE)
21633 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
21634 * buffer.h (DECODE_POSITION): Likewise.
21635 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
21636 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
21637 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
21638 (FETCH_CHAR_ADVANCE): Likewise.
21639 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
21640
216412008-02-07 Jim Meyering <meyering@redhat.com>
21642
21643 * lread.c [lint]: Don't include <sys/inode.h>.
21644
216452008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
21646
21647 * xselect.c (x_handle_dnd_message):
21648 * xmenu.c (digest_single_submenu, xmenu_show):
21649 * xdisp.c (with_echo_area_buffer_unwind_data)
21650 (format_mode_line_unwind_data, unwind_format_mode_line)
21651 (display_menu_bar):
21652 * eval.c (Ffetch_bytecode):
21653 * doc.c (store_function_docstring):
21654 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
21655 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
21656 * buffer.c (add_overlay_mod_hooklist): Use ASET.
21657
216582008-02-07 Kenichi Handa <handa@m17n.org>
21659
21660 * ftxfont.c (ftxfont_open): Don't set
21661 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
21662
21663 * ftfont.c (ftfont_open): Fix previous change.
21664
216652008-02-06 Jason Rumney <jasonr@gnu.org>
21666
21667 * w32font.c (w32font_text_extents): Fill in lbearing metric.
21668 Use cached metrics for ASCII characters.
21669 (w32font_open_internal): Don't set font's owning_frame.
21670 Cache metrics for ASCII characters.
21671
21672 * w32font.h (struct w32font_info): Add ascii_metrics.
21673 Remove owning_frame.
21674
216752008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
21676
21677 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
21678 to negative value.
21679
21680 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
21681
21682 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
21683
21684 * charset.c (syms_of_charset): Set QCtest and Qeq.
21685
216862008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
21687
21688 * process.c (Fstart_process):
21689 * callproc.c (Fcall_process): Handle the case where
21690 Funhandled_file_name_directory returns nil.
21691
21692 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
21693 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
21694 * font.c (check_gstring): Use them and AREF to access the vector before
21695 we know it's really a gstring.
21696 (Ffont_shape_text): Fix typo.
46e722a9 21697 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
21698
21699 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
21700 Declare.
21701
21702 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
21703
217042008-02-05 Jason Rumney <jasonr@gnu.org>
21705
21706 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
21707 Set smallest_font_height and smallest_char_width in display info.
21708
217092008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
21710
21711 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
21712
217132008-02-05 Miles Bader <miles@gnu.org>
21714
21715 * xfaces.c (get_lface_attributes, merge_named_face)
21716 (lookup_named_face, lookup_derived_face, realize_named_face):
21717 Revert 2008-02-01 change by cyd@stupidchicken.com.
21718
217192008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
21720
21721 * fontset.c (Ffontset_info): Handle the case of inhibitting the
21722 fallback fonts.
21723 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
21724
217252008-02-04 Jason Rumney <jasonr@gnu.org>
21726
21727 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
21728 set full_name.
21729 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
21730
217312008-02-03 Jason Rumney <jasonr@gnu.org>
21732
21733 * makefile.w32-in (OBJ1): Include font.o here.
21734 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
21735
217362008-02-02 Jason Rumney <jasonr@gnu.org>
21737
21738 * makefile.w32-in (temacs): Bump EMHEAP to 21.
21739
217402008-02-01 Jason Rumney <jasonr@gnu.org>
21741
21742 * s/cygwin.h: Define VIRT_ADDR_VARIES.
21743
21744 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
21745
217462008-02-01 Andreas Schwab <schwab@suse.de>
21747
21748 * Makefile.in (shortlisp, lisp): Update for rename of
21749 ../lisp/language/myanmar.el.
21750
217512008-02-01 Chong Yidong <cyd@stupidchicken.com>
21752
21753 * xfaces.c (get_lface_attributes): Delete function.
21754 (merge_named_face, lookup_named_face, lookup_derived_face)
21755 (realize_named_face): Call lface_from_face_name directly, and use
21756 the fact that merge_face_vectors does not alter its FROM argument.
21757
217582008-02-01 Jason Rumney <jasonr@gnu.org>
21759
21760 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
21761 input in the default locale. Handle non-Unicode multibyte input.
21762
217632008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21764
21765 * fontset.c (reorder_font_vector): Exclude nil elements from the
21766 font group. Don't try multiple fonts.
21767 (fontset_font): Adjust for the above change.
21768 (Finternal_char_font): Return nil if the found font doesn't
21769 contain the character ch.
21770
21771 * Makefile.in (lisp, shortlisp): Add cham.el.
21772
217732008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21774
21775 * font.h (FONTP): Make it return 1 also for a font-object.
21776
21777 * .gdbinit (xfontset): New function.
21778
21779 * font.c (font_find_for_lface): Check if the character C is
21780 supported or not only for the first font.
21781
21782 * fontset.c (reorder_font_vector): Fix typo.
21783 (fontset_find_font): Don't add a font-spec specifying a script.
21784 Use 0 (not Qt) for the indication of empty font-group. Change the
21785 format of RFONT-DEF. Return Qt if no font in the font-group
21786 support the character.
21787 (fontset_font): Adjust for the above change. If no font was
21788 found the character, remember that.
21789 (face_for_char): Adjust for the change of RFONT-DEF.
21790 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
21791 no font for the target.
21792 (Finternal_char_font): Adjust for the change of RFONT-DEF.
21793
217942008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21795
21796 * font.c (font_load_for_face): Handle the case that the font in
21797 face->lface is a string.
21798
217992008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21800
21801 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
21802
218032008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21804
21805 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
21806 Fix previous change. If the frame is not on a window system,
21807 signal an error.
21808
218092008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21810
bba3e508
SM
21811 * coding.c (decode_coding_object, encode_coding_object):
21812 Adjust marker positions after conversion.
aac0c6e3
MR
21813
21814 * lisp.h (struct Lisp_Marker): New member need_adjustment.
21815
218162008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21817
21818 * font.c (font_find_for_lface): Fix the handling of the return
21819 value of font_has_char.
21820 (Ffont_shape_text): Fix previous change.
21821
21822 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
21823 (fontset_ref_and_range): Delete it.
21824 (fontset_find_font): Call char_table_ref_and_range instead of
21825 FONTSET_REF_AND_RANGE.
21826 (make_fontset): Don't setup font groups of Latin here.
21827 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
21828 (new_fontset_from_font): Make the specified font the default for
21829 all Latin characters.
21830
218312008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21832
21833 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
21834 is on a window system before accessing the fontset of the frame.
21835
218362008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21837
21838 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
21839
21840 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
21841 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
21842
21843 * font.c (Ffont_shape_text): If the font driver doesn't have a
21844 shaper function, make zero-width glyphs to have at least one-pixel
21845 width. Fix setting of `to' field of glyphs.
21846
218472008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21848
21849 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
21850 glyphs.
21851
21852 * font.h (struct font_driver): Improve docstring of member `shape'.
21853
218542008-02-01 Kenichi Handa <handa@m17n.org>
21855
21856 * composite.c (syms_of_composite): Fix docstring of
21857 auto-composition-function.
21858
21859 * font.h (LGLYPH_SIZE): New macro.
21860
21861 * font.c (Ffont_fill_gstring): Stop filling when a character not
21862 supported by the font is found.
21863 (Ffont_shape_text): When a shape callback function returns nil,
21864 try at most two more times with larger gstring.
21865 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
21866
21867 * xdisp.c (handle_auto_composed_prop): Change the argument to
21868 auto-composition-function.
21869
21870 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
21871 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
21872 Lispy glyph and store it in the lgstring.
21873
21874 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
21875
21876 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
21877
218782008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21879
21880 * font.c (Ffont_shape_text): Avoid unnecessary composition.
21881
21882 * fontset.c (Vfont_encoding_charset_alist): New variable.
21883 (syms_of_fontset): DEFVAR it.
21884 (reorder_font_vector, fontset_find_font): Optimize for the case of
21885 no need of reordering.
21886 (face_for_char): Map the charset property by
21887 Vfont_encoding_charset_alist.
21888
218892008-02-01 Jason Rumney <jasonr@gnu.org>
21890
21891 * w32font.c (logfonts_match): Don't check adstyle here.
21892 (font_matches_spec): Check here against physical font instead.
21893 (add_font_entity_to_list): Avoid some substitutions.
21894
21895 * font.c (font_parse_fcname): Default weight and slant to normal.
21896 (font_score): Prefer normal fonts if weight or slant unspecified.
21897 (font_score) [WINDOWSNT]: Scale weight difference down to closer
21898 match freetype scores.
21899
219002008-02-01 Jason Rumney <jasonr@gnu.org>
21901
21902 * w32font.c (w32font_text_extents): Don't use the frame stored in the
21903 font, as it may have been deleted.
21904 (w32_enumfont_pattern_entity): Map generic family to adstyle using
21905 most common hyphenless variation.
21906 (logfonts_match): Check generic family.
21907 (font_matches_spec): Don't check generic family here.
21908 (fill_in_logfont): Set generic family based on adstyle.
21909
21910 * w32font.h (w32font_get_cache): Update declaration.
21911
219122008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21913
21914 * ftfont.c (ftfont_get_cache): Adjust the argument type.
21915
21916 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
21917 If none of the new drivers are available, call font_update_drivers
21918 with the old drivers.
21919
21920 * w32font.c (w32font_get_cache): Adjust the argument type.
21921
21922 * xfont.c (xfont_get_cache): Adjust the argument type.
21923
21924 * font.h (struct font_driver): Change argument type of get_cache.
21925
21926 * xftfont.c (xftfont_start_for_frame): Delete prototype.
21927
21928 * font.c (Ffont_get): Fix arguments to Fassoc.
21929 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
21930 (font_clear_cache): New function.
21931 (font_list_entities, font_matching_entity): Use font_get_cache.
21932 (font_update_drivers): Call font_clear_cache when finishing a driver.
21933
21934 * fontset.c (fontset_find_font): Fix previous change.
21935
219362008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21937
21938 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
21939 dpyinfo->font_table.
21940 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
21941 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
21942
21943 * font.c (font_at): Handle the case that the arg C is negative.
21944 Handle the unibyte case.
21945 (Ffont_at): Call font_at with the arg C -1.
21946
21947 * xdisp.c (handle_auto_composed_prop): Don't get a character at
21948 the position here, and call font_at with the arg C -1.
21949 Don't check the range of the existing composition at the point.
21950
219512008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21952
21953 * fontset.c (fontset_add): New args charset_id and family.
21954 Change caller.
21955 (load_font_get_repertory, fontset_find_font): Assume that
21956 font_spec is always a font-spec object.
21957 (Fset_fontset_font): Always store a font-spec object in a fontset.
21958
21959 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
21960 instead of get_property_and_range.
21961
219622008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21963
21964 * xftfont.c (struct xftfont_info): Delete the member ft_face.
21965 (xftfont_open): Don't keep locking face.
21966 (xftfont_close): Don't unlock face.
21967 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
21968
21969 * fontset.c (fontset_find_font): Don't prefer a font of
21970 supplementary charset.
21971
219722008-02-01 Kenichi Handa <handa@m17n.org>
21973
21974 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
21975 script, langsys_tag to langsys, new member script.
21976 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 21977 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
21978 listing to the script specified in that property. Fix arg to
21979 OTF_check_features.
21980
219812008-02-01 Jason Rumney <jasonr@gnu.org>
21982
21983 * w32font.h: New file.
21984
21985 * w32font.c: Include it.
21986 (struct w32font_info): Add owning_frame field. Move to w32font.h.
21987 (w32font_open): Set owning_frame.
21988 (w32font_text_extents): Use owning_frame.
21989 (struct font_callback_data): Add opentype_only field.
21990 (add_font_entity_to_list): Use it to filter fonts.
21991 Don't check against full name.
21992 (w32font_list_internal): New function.
21993 (w32font_list): Use it.
21994 (w32font_match_internal): New function.
21995 (w32font_match): Use it.
21996 (w32font_open_internal): New function.
21997 (w32font_open): Use it.
21998 (w32font_get_cache, w32font_close, w32font_has_char)
21999 (w32font_encode_char, w32font_text_extents, w32font_draw):
22000 Make non-static.
22001
22002 * makefile.w32-in (w32font.o): Depend on w32font.h.
22003
220042008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22005
22006 * charset.c (Fdefine_charset_internal): Record a supplementary
22007 charset at the tail of Vcharset_order_list.
22008
22009 * font.c (Ffont_shape_text): Fix the return value.
22010
22011 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
22012
22013 * xdisp.c (handle_auto_composed_prop): Fix previous change.
22014
220152008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22016
22017 * ftfont.c (struct OpenTypeSpec): New struct.
22018 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
22019 (ftfont_get_open_type_spec): New function.
22020 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
22021
22022 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
22023
220242008-02-01 Jason Rumney <jasonr@gnu.org>
22025
22026 * w32font.c (add_font_entity_to_list): Compare only the beginning
22027 of full name.
22028
220292008-02-01 Kenichi Handa <handa@m17n.org>
22030
22031 * xdisp.c (handle_auto_composed_prop): Simplify the code.
22032 Never return HANDLED_RECOMPUTE_PROPS.
22033
220342008-02-01 Kenichi Handa <handa@m17n.org>
22035
22036 * font.c (font_gstring_produce): Delete it.
22037
22038 * composite.h (COMPOSITION_METHOD):
22039 Handle COMPOSITION_WITH_GLYPH_STRING.
22040
220412008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22042
22043 * xfont.c (Qx): Delete.
22044 (syms_of_xfont): Don't initialize Qx.
22045
22046 * composite.h (enum composition_method):
22047 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
22048
220492008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22050
22051 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
22052 (choose_face_font): Accept new form of font-spec.
22053
22054 * frame.h (font_driver_list): Declare it unconditionally.
22055 (struct frame): Define members font_driver_list and font_data_list
22056 unconditionally.
22057
22058 * fontset.c: Include "font.h" unconditionally.
22059 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
22060 (Fset_fontset_font): Accept a font-spec object.
22061
22062 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
22063 PIXEL_SIZE part a wild card.
22064
22065 * dispextern.h (struct glyph_string): Define members clip and
22066 num_clips unconditionally.
22067 (struct face): Define members font_info and extra unconditionally.
22068
22069 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
22070 ftfont_info only when HAVE_LIBOTF is defined.
22071
220722008-02-01 Andreas Schwab <schwab@suse.de>
22073
22074 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
22075 and end.
22076
220772008-02-01 Jason Rumney <jasonr@gnu.org>
22078
22079 * w32font.c (w32font_driver): Add new fields.
22080
220812008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22082
22083 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
22084 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
22085 (LIBES): Add @M17N_FLT_CFLAGS@.
22086
22087 * composite.c (compose_text): Don't treat the new style
22088 composition specially.
22089
22090 * emacs.c (main): Call syms_of_font unconditionally.
22091
22092 * font.h (FONT_ENTITY_NOT_LOADABLE)
22093 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
22094 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
22095 (struct font_driver): New member shape.
22096 (font_registry_charsets): Extern it.
22097 (font_find_for_lface, font_prepare_composition): Adjust prototype.
22098 (font_otf_capability, font_drive_otf): Delete their externs.
22099
22100 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
22101 (font_charset_alist, font_registry_charsets): Move from xfont.c
22102 and rename.
22103 (font_prop_validate_otf): New function.
22104 (font_property_table): Register it for QCotf.
22105 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
22106 (font_drive_otf): Delete.
22107 (font_prepare_composition): New arg F. Adjust for the change of
22108 lispy gstring.
22109 (font_find_for_lface): New arg C.
22110 (font_load_for_face): Adjust for the change of font_find_for_lface.
22111 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
22112 lispy gstring.
22113 (Ffont_shape_text): New function.
22114 (Fopen_font): If the font size is not given, use 12-pixel.
22115 (Ffont_at): New arg STRING.
40b1a3a9 22116 (syms_of_font): Initialize font_charset_alist.
aac0c6e3
MR
22117 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
22118 conditionally.
22119
22120 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
22121 fonts of the same font-spec. Change the format of RFONT-DEF.
22122 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
22123 Adjust for the change of RFONT-DEF.
22124 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
22125
22126 * ftfont.h: New file.
22127
22128 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
22129 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
22130 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
22131 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
22132 font_otf_capability and font_drive_otf, set ftfont_shape.
22133 (ftfont_list): Adjust for the change of :otf property value.
22134 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
22135 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
22136 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
22137 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
22138 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
22139 (otf_gstring, gstring, m17n_flt_initialized): New variables.
22140
22141 * w32term.c (x_draw_composite_glyph_string_foreground):
22142 Adjust for the change of lispy gstring.
22143
22144 * xdisp.c (handle_composition_prop): Adjust for the change of
22145 lispy gstring. Call a function for auto-composition with the
22146 third arg it->window.
22147 (fill_composite_glyph_string): Adjust for the change of lispy string.
22148 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
22149
22150 * xfaces.c (set_font_frame_param): Adjust for the change of
22151 font_find_for_lface.
22152
22153 * xfont.c (x_font_charset_alist): Move to font.c and rename.
22154 (xfont_registry_charsets): Likewise. Change caller.
22155 (syms_of_xfont): Don't handle x_font_charset_alist.
22156
22157 * xftfont.c: Include "ftfont.h".
22158 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
22159 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
22160 (xftfont_close) [HAVE_LIBOTF]: Close otf.
22161 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
22162 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
22163 Set xftfont_driver.shape to xftfont_shape.
22164
22165 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
22166 the change of lispy gstring.
22167
221682008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22169
22170 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
22171
221722008-02-01 Jason Rumney <jasonr@gnu.org>
22173
22174 * w32font.c (w32font_draw): Fill background manually.
22175
221762008-02-01 Jason Rumney <jasonr@gnu.org>
22177
22178 * font.c (Qfontp): Remove unused symbol.
22179 (QCantialias): New symbol.
22180 (syms_of_font): Define it.
22181 (font_property_table): Set a validator for QCantialias.
22182
22183 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
22184 Define if not already.
22185 (QCfamily): Share with xfaces.c.
22186 (Qstandard, Qsubpixel, Qnatural): New symbols.
22187 (syms_of_w32font): Define them. Don't define QCfamily here.
22188 (w32_antialias_type, lispy_antialias_type): New functions.
22189 (w32_enumfont_pattern_entity): New arg requested_font.
22190 Set antialias parameter if non-default was requested.
22191 (fill_in_logfont): Fill in lfQuality if :antialias specified.
22192
221932008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22194
22195 * lread.c (read1): Undo the previous change.
22196
221972008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
22198
22199 * frame.c (Fdelete_frame): Call font_update_drivers only when
22200 USE_FONT_BACKEND is defined.
22201
222022008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22203
22204 * font.h (struct font_bitmap): New member bits_per_pixel.
22205 (struct font_driver): New members start_for_frame and end_for_frame.
22206 (struct font_data_list): New struct.
22207 (font_put_frame_data, font_get_frame_data): Extern them.
22208
22209 * frame.h (struct frame): New member font_data_list.
22210
22211 * font.c (font_update_drivers): Call driver->start_for_frame and
22212 driver->end_for_frame at proper timings.
22213 (font_put_frame_data, font_get_frame_data): New functions.
22214 (Ffont_spec): Add usage in the docstring.
22215
22216 * frame.c (make_frame): Initialize f->font_data_list to NULL.
22217 (Fdelete_frame): Call font_update_drivers.
22218
22219 * xftfont.c (struct xftface_info): Delete the member xft_draw.
22220 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
22221 (xftfont_get_xft_draw): New function.
22222 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
22223 (xftfont_end_for_frame): New function.
22224 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
22225
22226 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
22227 Change argument. Cache GCs in the per-frame data.
22228 (struct ftxfont_frame_data): New struct.
22229 (ftxfont_draw_bitmap): New arg gc_fore and flush.
22230 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
22231 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
22232 (ftxfont_end_for_frame): New function.
22233 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
22234
22235 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
22236
222372008-02-01 Kenichi Handa <handa@m17n.org>
22238
22239 * xselect.c (Vselection_coding_system)
22240 (Vnext_selection_coding_system): Delete them.
22241 (syms_of_xselect): Don't declare selection-coding-system and
22242 next-selection-coding-system. They are declared in select.el.
22243
222442008-02-01 Jason Rumney <jasonr@gnu.org>
22245
22246 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
22247
22248 * w32fns.c: Include imm.h.
22249 (get_composition_string_fn, get_ime_context_fn): New optional
22250 system functions.
22251 (globals_of_w32fns): Load them from imm32.dll.
22252 (ignore_ime_char): New flag.
22253 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
22254 WM_IME_ENDCOMPOSITION messages.
22255
22256 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
22257 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
22258
222592008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22260
22261 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
22262 (READCHAR_REPORT_MULTIBYTE): New macro.
22263 (readchar): New 2nd arg MULTIBYTE.
22264 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
22265 Make symbol's name multibyte according to the multibyteness of the
22266 source.
22267
222682008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22269
22270 * xfaces.c (face_for_overlay_string): Call lookup_face with
22271 correct arguments (fix of synching with the trunk).
22272
222732008-02-01 Kenichi Handa <handa@m17n.org>
22274
22275 * font.c (font_prop_validate_symbol, font_prop_validate_style)
22276 (font_prop_validate_non_neg, font_prop_validate_spacing):
22277 Delete argument prop_index.
22278 (font_property_table): Change arguments to validater. Change Callers.
22279 (font_lispy_object): Delete.
22280 (font_at): Use font_find_object instead fo font_lispy_object.
22281
222822008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22283
22284 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
22285 and file names.
22286
222872008-02-01 Jason Rumney <jasonr@gnu.org>
22288
22289 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
22290 (font_matches_spec): Remove debug output.
22291 (add_font_entity_to_list): Avoid using substituted fonts.
22292
222932008-02-01 Jason Rumney <jasonr@gnu.org>
22294
22295 * doc.c (Fsnarf_documentation):
22296 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
22297
222982008-02-01 Miles Bader <miles@gnu.org>
22299
22300 * dispextern.h (struct glyph_row): Only define "clip" field if
22301 HAVE_WINDOW_SYSTEM is defined.
22302
223032008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
22304
22305 Fix up multi-tty merge.
22306
22307 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
22308 and indentation.
22309
22310 * xfaces.c (free_realized_face, clear_face_gcs):
22311 Include font_done_for_face in the input_blocked section, just in case.
22312
22313 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
22314 (get_char_face_and_encoding): Undo last change and remove the *other*
22315 duplicate definition (i.e. keep the one that's better scoped and that
22316 includes code for the font-backend).
22317
22318 * terminal.c (create_terminal): Default keyboard_coding to
22319 `no-conversion' and terminal_coding to `undecided'.
22320
22321 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
22322
22323 * fontset.c (free_realized_fontsets): Check that the table entry does
22324 contain a fontset before trying to compare it to `base'.
22325
22326 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
22327 syms_of_charset, and syms_of_coding earlier because init_window_once
22328 now needs Vcoding_system_hash_table to be setup.
22329
22330 * coding.h (default_buffer_file_coding): Remove.
22331
22332 * coding.c (default_buffer_file_coding): Remove.
22333 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
22334 than ->symbol, and use the terminal-local coding system.
22335 (syms_of_coding): Don't setup the coding-systems that are not
22336 terminal-local.
22337 (Fdefine_coding_system_internal): Use XCAR/XCDR.
22338
22339 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
22340 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
22341
22342 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
22343 in chartab.c and were re-added here by mistake.
22344 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
22345
22346 * doc.c (Fsnarf_documentation):
22347 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
22348 src to etc.
22349
22350 * ChangeLog.10: Add mistakenly removed entry.
22351
223522008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
22353
22354 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
22355
223562008-02-01 Miles Bader <miles@gnu.org>
22357
22358 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
22359 Add extra args to FACE_FOR_CHAR.
22360
223612008-02-01 Kenichi Handa <handa@m17n.org>
22362
22363 * keymap.c (where_is_internal_1): If key is a cons, store the copy
22364 in sequence.
22365
22366 * chartab.c (map_sub_char_table, map_char_table): If the range
22367 contains just one character, call the function with that character
22368 even if the depth is not 3.
22369
223702008-02-01 Jason Rumney <jasonr@gnu.org>
22371
22372 * w32font.c (w32font_text_extents): Calculate metrics for the
22373 whole string.
22374
223752008-02-01 Jason Rumney <jasonr@gnu.org>
22376
22377 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
22378
223792008-02-01 Jason Rumney <jasonr@gnu.org>
22380
bba3e508
SM
22381 * w32term.c (x_set_glyph_string_clipping):
22382 Use get_glyph_string_clip_rects.
aac0c6e3
MR
22383 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
22384 Adjust for the change of struct glyph_string.
22385
22386 * w32font.c (w32font_draw): Do clipping here.
22387
223882008-02-01 Kenichi Handa <handa@m17n.org>
22389
22390 * xftfont.c (xftfont_draw): Adjust for the change of struct
22391 glyph_string.
22392
bba3e508
SM
22393 * xterm.c (x_set_glyph_string_clipping):
22394 Use get_glyph_string_clip_rects.
aac0c6e3
MR
22395 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
22396 Adjust for the change of struct glyph_string.
22397
22398 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
22399 the resulting clip(s}.
22400 (expose_overlaps): Add arg r. Change callers. Set it to
22401 row->clip temporarily.
22402 (expose_window): Redraw rows overlapping the exposed area.
22403
22404 * dispextern.h (struct glyph_row): New member clip.
22405 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
22406 clip_height, new member clip, and num_clips.
22407
224082008-02-01 Kenichi Handa <handa@m17n.org>
22409
22410 * data.c (Fchar_or_string_p): Fix docstring.
22411
224122008-02-01 Kenichi Handa <handa@m17n.org>
22413
22414 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
22415 create a temporary XftDraw object.
22416
224172008-02-01 Kenichi Handa <handa@m17n.org>
22418
22419 * font.c (Ffontp): Fix docstring.
22420
22421 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
22422 strong evidence of ISO-2022.
22423
224242008-02-01 Kenichi Handa <handa@m17n.org>
22425
22426 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
22427 SYNTAX_ENTRY_FOLLOW_PARENT.
22428
224292008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
22430
22431 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
22432 its type.
22433 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
22434 Update to the new type of weak_hash_tables and next_weak.
22435
22436 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
22437 a plain C pointer to Lisp_Hash_Table.
22438
22439 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
22440 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
22441 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
22442 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
22443 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
22444 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
22445 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
22446 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
22447 (GC_EQ): Remove since they've been identical to their non-GC_
22448 alter-egos ever since the markbit was eradicated.
22449
22450 * alloc.c:
22451 * buffer.c:
22452 * buffer.h:
22453 * data.c:
22454 * fileio.c:
22455 * filelock.c:
22456 * fns.c:
22457 * frame.h:
22458 * lisp.h:
22459 * macterm.c:
22460 * print.c:
22461 * process.c:
22462 * w32fns.c:
22463 * w32menu.c:
22464 * w32term.c:
22465 * xfns.c:
22466 * xmenu.c:
22467 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
22468
224692008-02-01 Kenichi Handa <handa@m17n.org>
22470
22471 * chartab.c (map_sub_char_table): Make it work for the top-level
22472 char-table. Fix handling of parent char-table.
22473 (map_char_table): Adjust for the above change.
22474
224752008-02-01 Jason Rumney <jasonr@gnu.org>
22476
22477 * w32font.c (Qgdi): Rename from Qw32.
22478
224792008-02-01 Jason Rumney <jasonr@gnu.org>
22480
22481 * w32bdf.c (get_quoted_string): Make function static.
22482
224832008-02-01 Kenichi Handa <handa@m17n.org>
22484
22485 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
22486 bigger ascent and descent than those of the font, use them as
22487 font's ascent and descent.
22488
224892008-02-01 Kenichi Handa <handa@m17n.org>
22490
22491 * Makefile.in (${lispsource}international/charprop.el): Move this
22492 target within "#ifdef HAVE_UNIDATA" and "#endif".
22493
224942008-02-01 Kenichi Handa <handa@m17n.org>
22495
22496 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
22497 (shortlisp): Add ../lisp/language/tai-viet.el.
22498
224992008-02-01 Ulrich Mueller <ulm@gentoo.org>
22500
22501 * Makefile.in (${lispsource}international/charprop.el): Depend on
22502 temacs${EXEEXT}.
22503
225042008-02-01 Jason Rumney <jasonr@gnu.org>
22505
22506 * w32font.c (w32font_close): Delete the GDI font object.
22507
22508 * w32menu.c: Include character.h.
22509
22510 * w32proc.c: Likewise.
22511
22512 * w32select.c: Likewise.
22513
22514 * makefile.w32-in (w32proc.o): Depend on character.h.
22515
225162008-02-01 Jason Rumney <jasonr@gnu.org>
22517
22518 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
22519
22520 * w32menu.c (syms_of_w32menu): Likewise.
22521
22522 * w32proc.c (syms_of_ntproc): Likewise.
22523
22524 * w32select.c (syms_of_w32select): Likewise.
22525
22526 * w32term.c (syms_of_w32term): Likewise.
22527
225282008-02-01 Jason Rumney <jasonr@gnu.org>
22529
22530 * w32font.c (w32font_draw): Delete brush after using it.
22531
225322008-02-01 Jason Rumney <jasonr@gnu.org>
22533
22534 * w32font.c (w32font_open): Don't set font_idx.
22535 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
22536 to font settings.
22537 (w32font_draw): Fill background explicitly.
22538
225392008-02-01 Jason Rumney <jasonr@gnu.org>
22540
22541 * w32term.c (w32_initialize): Don't call w32font_initialize.
22542
22543 * w32font.c (w32font_info): Remove subranges.
22544 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
22545 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
22546 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
22547 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
22548 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
22549 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
22550 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
22551 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
22552 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
22553 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
22554 New symbols.
22555 (font_callback_data): New struct.
22556 (w32font_list, w32font_match): Use it.
22557 (w32font_open): Don't populate subranges.
22558 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
22559 (w32font_encode_char): Always return unicode code-point as-is.
22560 (w32font_text_extents): Supply a transformation matrix to
22561 GetGlyphOutline. Never look up by glyph index. Avoid looping
22562 twice. Use unicode version of GetTexExtentPoint32 instead of
22563 glyph index version.
22564 (set_fonts_frame): Remove.
22565 (w32_enumfont_pattern_entity): Add frame parameter, use it to
22566 set frame parameter. Use backward compatible fake foundries.
22567 Save generic family in extra slot under QCfamily. Make width slot
22568 constant. Save QCspacing value. Save list of scripts instead of
22569 binary subranges.
22570 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
bba3e508
SM
22571 (add_font_entity_to_list): Use font_callback_data struct.
22572 Filter unwanted fonts.
aac0c6e3
MR
22573 (add_one_font_entity_to_list): Use font_callback_data struct.
22574 (w32_registry): Default to iso10646_1.
22575 (fill_in_logfont): Use dpi from extra slot. Don't bother with
22576 string font registries. Don't fill in font name if it is a generic
22577 family name, fill family instead. Use spacing, family and script
22578 extra info to fill pitch, family and charset fields.
22579 (list_all_matching_fonts): Use font_callback_data struct.
22580 (unicode_range_for_char): Remove.
22581 (font_supported_scripts): New function.
22582 (w32font_initialize): Remove.
22583 (syms_of_w32font): Update which symbols are defined.
22584
225852008-02-01 Jason Rumney <jasonr@gnu.org>
22586
22587 * font.c (font_pixel_size): Reverse assq_no_quit args.
22588
22589 * w32term.h (FONT_WIDTH): Report max width, not average.
22590 (FONT_MAX_WIDTH): Remove.
22591 (FONT_AVG_WIDTH): New macro.
22592
22593 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
22594 redefinition of FONT_WIDTH.
22595
22596 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
22597 (w32_cache_char_metrics): Use FONT_WIDTH.
22598
22599 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
22600
226012008-02-01 Jason Rumney <jasonr@gnu.org>
22602
22603 * w32font.c (w32font_open): Make lfHeight negative.
22604
22605 * w32fns.c (x_default_font_parameter): Use new style font name.
22606 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
22607
226082008-02-01 Jason Rumney <jasonr@gnu.org>
22609
22610 * w32font.c (QCsubranges): New symbol.
22611 (w32font_open, w32font_has_char): Get subranges from subproperty
22612 of extra.
22613 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
22614 (syms_of_w32font): Define :subranges symbol.
22615
22616 * font.c (font_put_extra): Expose externally.
22617
22618 * font.h (font_put_extra): Move declaration from font.c.
22619
22620 * font.c (Ffont_get): Use font driver to determine otf capability.
22621 (adjust_anchor): Check if driver defines anchor_point before using.
22622
22623 * w32font.c (w32font_open): Handle size, height and pixel_size better.
22624 (w32font_draw): Use options.
22625 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
22626 Fix detection of truetype fonts.
22627 (registry_to_w32_charset): Handle charsets other than iso8859-1
22628 expressed as lisp symbols.
22629 (w32_registry): Express charset as lisp symbol.
22630 (fill_in_logfont): Reverse pixel and point height logic.
22631 Don't set width here. Set quality to default.
22632
22633 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
22634 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
22635
22636 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
22637 Remove redundant loop and allocation.
22638
22639 * makefile.w32-in (font.o, w32font.o): New objects.
22640 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
22641 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
22642
22643 * xdisp.c (fill_composite_glyph_string): Make the first arg to
22644 STORE_XCHARB a valid l-value.
22645
22646 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
22647 calculations for non-Truetype fonts.
22648 (x_draw_glyph_string): Sync with xterm.c.
22649 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
22650 Remove redundant code.
22651 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
22652
22653 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
22654 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
22655
22656 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
22657 (x_to_w32_charset, w32_to_x_charset): Expose externally.
22658
22659 * w32font.c: New file for w32 font backend.
22660
226612008-02-01 Kenichi Handa <handa@m17n.org>
22662
22663 * term.c: Don't include "buffer.h" twice.
22664
226652008-02-01 Kenichi Handa <handa@m17n.org>
22666
22667 * character.c (Funibyte_string): New function.
22668 (syms_of_character): Defsubr it.
22669
226702008-02-01 Jason Rumney <jasonr@gnu.org>
22671
22672 * w32term.c [USE_FONT_BACKEND]:
22673 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
22674 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
22675 (x_draw_glyph_string, x_draw_glyph_string_foreground)
22676 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
22677 (x_free_frame_resources): Sync with xterm.c.
22678
226792008-02-01 Andreas Schwab <schwab@suse.de>
22680
22681 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
22682 char-table size.
22683
226842008-02-01 Kenichi Handa <handa@m17n.org>
22685
22686 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
22687
226882008-02-01 Kenichi Handa <handa@m17n.org>
22689
22690 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
22691 font_otf_gpos, add font_drive_otf.
22692
22693 * fontset.c (fontset_find_font): Pay attention to font size
22694 specified for a font.
22695 (reorder_font_vector): Check contents of font_def.
22696
22697 * font.c (struct otf_list): Delete it.
22698 (otf_list): Make it a lisp variable.
22699 (otf_open): Use lispy otf_list.
22700 (generate_otf_features): Rename from parse_gsub_gpos_spec.
22701 (check_otf_features): New function.
22702 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
22703 New functions.
22704 (font_drive_otf): New function merging font_otf_gsub and
22705 font_otf_gpos.
22706 (font_open_for_lface): New arg spec. Change argument order.
22707 (font_load_for_face): Adjust for the change of font_open_for_lface.
22708 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
22709 Ffont_otf_gpos.
22710 (syms_of_font): Staticpro otf_list. Delete defsubr of
22711 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
22712
22713 * xfaces.c (set_font_frame_param): Adjust for the change of
22714 font_open_for_lface.
22715
22716 * font.h (font_open_for_lface): Adjust prototype.
22717 (struct font_driver): Delete members otf_gsub and otf_gpos, add
22718 member otf_drive.
22719 (font_otf_gsub, font_otf_gpos): Delete externs.
22720 (font_drive_otf): Extern it.
22721
227222008-02-01 Kenichi Handa <handa@m17n.org>
22723
22724 * font.c (font_at): If the window W is not on a window system,
22725 return Qnil.
22726
22727 * coding.c (produce_chars, encode_coding): Don't call
22728 insert_from_gap if no characters to produce.
22729
227302008-02-01 Kenichi Handa <handa@m17n.org>
22731
22732 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
22733 Fclear_face_cache.
22734
22735 * xfaces.c (face_for_font): Check also face->font==font->font.font.
22736
227372008-02-01 Miles Bader <miles@gnu.org>
22738
22739 * emacs.c (main): Change default value of `enable_font_backend' to 1.
22740 Parse "--disable-font-backend" option.
22741 (standard_args): Add "--disable-font-backend" option.
22742
227432008-02-01 Kenichi Handa <handa@m17n.org>
22744
22745 * fontset.c (fontset_find_font): New function.
22746 (fontset_font): Use fontset_find_font.
22747 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
22748 Register the specified font for all Latin characters.
22749 (new_fontset_from_font): Register the specified font for all Latin
22750 characters.
22751 (dump_fontset): For a realized fontset, include the base fontset
22752 name in the returned vector.
22753
227542008-02-01 Kenichi Handa <handa@m17n.org>
22755
22756 * character.h (CHAR_STRING): Cast C to unsigned on calling
22757 char_string.
22758
22759 * character.c (char_string): Type of arg C changed to unsigned.
22760 Signal an error if C is an invalid character code.
22761
22762 * editfns.c (general_insert_function, Fchar_to_string):
22763 Use CHARACTERP, not INTEGERP.
22764
227652008-02-01 Kenichi Handa <handa@m17n.org>
22766
22767 * character.h (MIN_MULTIBYTE_LEADING_CODE)
22768 (MAX_MULTIBYTE_LEADING_CODE): New macros.
22769
22770 * regex.c (analyse_first): Fix for multibyte characters in "case
22771 charset:" and "case categoryspec:".
22772
227732008-02-01 Andreas Schwab <schwab@suse.de>
22774
22775 * Makefile.in (LIBES): Move standard libraries to the end.
22776
227772008-02-01 Kenichi Handa <handa@m17n.org>
22778
22779 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
22780 nonzero, don't shrink the buffer nextb.
22781
22782 * buffer.h (struct buffer_text): New member inhibit_shrinking.
22783
22784 * coding.c (coding_alloc_by_making_gap): New arg offset.
22785 (alloc_destination): Call coding_alloc_by_making_gap with the arg
22786 offset.
22787 (decode_coding_iso_2022): Update coding->safe_charsets.
22788 (decode_coding_gap): Temporarily set
22789 current_buffer->text->inhibit_shrinking to 1.
22790
227912008-02-01 Kenichi Handa <handa@m17n.org>
22792
bba3e508
SM
22793 * xterm.c (x_draw_composite_glyph_string_foreground):
22794 Fix indexing into elements of s->cmp and s->char2b.
aac0c6e3
MR
22795
227962008-02-01 Juanma Barranquero <lekktu@gmail.com>
22797
22798 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
22799
228002008-02-01 Kenichi Handa <handa@m17n.org>
22801
22802 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
22803 target_multibyte instead of multibyte.
22804 (re_match_2_internal): Call bcmp_translate with target_multibyte.
22805 (bcmp_translate): Change the argument name from multibyte to
22806 target_multibyte.
22807
228082008-02-01 Kenichi Handa <handa@m17n.org>
22809
22810 These changes are to compile a regexp into a pattern that can be
22811 used both for multibyte and unibyte targets.
22812
22813 * Makefile.in (search.o): Depend on charset.h.
22814
22815 * character.c (multibyte_char_to_unibyte_safe): New function.
22816
22817 * search.c: Include "charset.h".
22818 (compile_pattern_1): Delete argument multibyte. Don't set
22819 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
22820 (compile_pattern): Don't compare cp->buf.target_multibyte.
22821 Compare cp->buf.charset_unibyte.
22822 (compile_pattern): Set cp->buf.target_multibyte.
22823
22824 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
22825
22826 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
22827
22828 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
22829 multibyte. Change callers.
22830 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
22831 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
22832 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
22833 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
22834 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
22835 (regex_compile): Make the compiled pattern usable both for
22836 multibyte and unibyte targets.
22837 (analyse_first): Make the fastmap usable both for multibyte and
22838 unibyte targets.
22839 (TRANSLATE_VIA_MULTIBYTE): Delete.
22840 (re_match_2_internal): Pay attention to the case that the
22841 multibyteness of bufp and target may be different.
22842
228432008-02-01 Kenichi Handa <handa@m17n.org>
22844
22845 * xdisp.c (x_produce_glyphs): When a font is not found, make the
22846 empty box occupy at least one column width.
22847
228482008-02-01 Miles Bader <miles@gnu.org>
22849
22850 * Makefile.in: Remove redundant HAVE_XFT clause.
22851
228522008-02-01 Kenichi Handa <handa@m17n.org>
22853
22854 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
22855
228562008-02-01 Kenichi Handa <handa@m17n.org>
22857
22858 * fontset.c (Finternal_char_font): Fix for the case of POSITION
22859 being nil.
22860
228612008-02-01 Kenichi Handa <handa@m17n.org>
22862
22863 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
22864
228652008-02-01 Kenichi Handa <handa@m17n.org>
22866
22867 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
22868
228692008-02-01 Kenichi Handa <handa@m17n.org>
22870
22871 * search.c (simple_search): Fix previous change.
22872
228732008-02-01 Kenichi Handa <handa@m17n.org>
22874
22875 * xftfont.c (ftfont_font_format): Extern declaration.
22876
22877 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
22878
22879 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
22880 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
22881
22882 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
22883 (ftfont_font_format): Fix previous change.
22884
22885 * font.h (Ffont_xlfd_name): EXFUN it.
22886
22887 * font.c (font_parse_xlfd): Fix the array size of `f'.
22888 (register_font_driver): Use EQ to compare driver->type.
22889
22890 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
22891 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
22892 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
22893
228942008-02-01 Kenichi Handa <handa@m17n.org>
22895
22896 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
22897 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
22898
228992008-02-01 Kenichi Handa <handa@m17n.org>
22900
22901 * xfont.c (xfont_open): Set font->format.
22902
22903 * xftfont.c (xftfont_open): Set font->format.
22904
22905 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
22906 (ftfont_list): Include FC_FONTFORMAT in FcObject.
22907 (ftfont_open): Set font->format.
22908 (ftfont_font_format): New function.
22909
22910 * font.h (struct font): New member format.
22911
22912 * font.c (Qopentype): New variable.
22913 (syms_of_font): Defsym it.
22914 (Fquery_font): Change the format of the last element of the return
22915 value.
22916
229172008-02-01 Kenichi Handa <handa@m17n.org>
22918
22919 * xfns.c (xic_create_xfontset): Try the default fontset name as a
22920 last resort.
22921
229222008-02-01 Kenichi Handa <handa@m17n.org>
22923
22924 * coding.c (detect_coding_charset): Fix detection of multi-byte
22925 charset.
22926
229272008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
22928
22929 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
22930
229312008-02-01 Kenichi Handa <handa@m17n.org>
22932
22933 * xdisp.c (get_next_display_element): Set it->face_id for the
22934 first component of a composition.
22935 (x_produce_glyphs): Check if the font is changed or not for composition.
22936
229372008-02-01 Kenichi Handa <handa@m17n.org>
22938
22939 * fontset.c (Qlatin): New variable.
22940 (syms_of_fontset): Define it as a lisp symbol.
22941 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
22942
229432008-02-01 Kenichi Handa <handa@m17n.org>
22944
22945 * font.c (font_unparse_fcname): Pay attention to the case that
22946 some of font property is a null string.
22947
229482008-02-01 Kenichi Handa <handa@m17n.org>
22949
22950 * term.c: Include "composite.h".
22951 (encode_terminal_code): Output all components of composition.
22952 Check the size of encode_terminal_src.
22953 (produce_glyphs): For composition, call produce_composite_glyph.
22954 (append_composite_glyph, produce_composite_glyph): New functions.
22955
22956 * xdisp.c (x_produce_glyphs): In handling composition, if a font
22957 is not found, get font_info from the current ascii face.
22958
229592008-02-01 Kenichi Handa <handa@m17n.org>
22960
22961 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
22962 buffer-file-name to Qnil before calling insert_from_buffer.
22963
22964 * font.c (font_unparse_fcname): Pay attention to the case that
22965 foundry is a null string.
22966
229672008-02-01 Kenichi Handa <handa@m17n.org>
22968
22969 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
22970
22971 * font.c (Qunicode_sip): New variable.
22972 (syms_of_font): Declare it as a Lisp symbol.
22973
22974 * font.h (Qunicode_sip): Extern it.
22975
229762008-02-01 Kenichi Handa <handa@m17n.org>
22977
22978 * composite.c (get_composition_id): Pay attention to TAB component.
22979
22980 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
22981 TAB. Adjust for the change of s->char2b which always points to
22982 the first element of allocated memory.
22983
22984 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
22985
22986 * xdisp.c (handle_composition_prop): Set it->c to the first
22987 non-TAB component.
22988 (fill_composite_glyph_string): Change argument.
22989 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
22990 (x_produce_glyphs): Fix handling of left/right padding.
22991
229922008-02-01 Kenichi Handa <handa@m17n.org>
22993
22994 * coding.c (detect_coding_system): Fix for handling off
22995 inhibit_iso_escape_detection. Fix for the case that no coding
22996 system is defined for a specific coding category.
22997
229982008-02-01 Kenichi Handa <handa@m17n.org>
22999
23000 * font.c (font_matching_entity): Delete unused local var.
23001
23002 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
23003 opening a font.
23004
23005 * fileio.c (Finsert_file_contents): On recovering a file, assume
23006 Unix-like eol.
23007 (choose_write_coding_system): On auto-saving a file, force
23008 Unix-like eol.
23009
23010 * coding.c (setup_coding_system): Fix setting of
23011 coding->common_flags based on eol_type.
23012 (coding_inherit_eol_type): If PARENT is not nil, be sure to
23013 inherit from it.
23014
230152008-02-01 Kenichi Handa <handa@m17n.org>
23016
23017 * alloc.c (NSTATICS): Increas to 0x600.
23018
230192008-02-01 Kenichi Handa <handa@m17n.org>
23020
23021 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
23022 (ftfont_list): Don't check :name property.
23023 (ftfont_match): New function.
23024 (ftfont_pattern_entity): If the pattern doesn't contain
23025 FC_SPACING, don't assume FC_MONO.
23026
23027 * font.h (struct font_driver): New member `match'.
23028 (font_update_drivers): Adjust prototype.
23029
23030 * font.c (font_parse_fcname, font_parse_name): Don't change :name
23031 property of FONT.
bba3e508
SM
23032 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring):
23033 Define them unconditionally.
aac0c6e3
MR
23034 (font_matching_entity): New function.
23035 (font_open_by_name): Try font_matching_entity if exact match is
23036 not found.
23037 (font_update_drivers): Delete the arg FONT. Return a list of
23038 actually used backends. Don't free faces, font caches here.
23039 Don't store data in frame parameters. Don't call x_set_font.
23040 (Ffont_spec): Store :name property as is.
23041 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
23042 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
23043 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
23044 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
23045 Call font->driver->otf_gsub instead of font_otf_gsub.
23046
23047 * frame.c (x_set_font_backend): Do more works that were done in
23048 font_update_drivers before.
23049
23050 * xfont.c (xfont_match): New function.
23051 (xfont_driver): Set xfont_driver.match to xfont_match.
23052 (xfont_draw): Set font in GC if necessary.
23053
23054 * ftxfont.c (ftxfont_match): New function.
23055 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
23056
23057 * xftfont.c (xftfont_match): New function.
23058 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
23059
230602008-02-01 Kenichi Handa <handa@m17n.org>
23061
23062 * font.h (struct font): New member scalable.
23063 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
23064 (font_otf_gsub): Adjust prototype.
23065
23066 * font.c (font_otf_capability): Fix handling of the default langsys.
23067 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
23068 Check the contents of SPEC.
23069 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
23070 (check_gstring): New function.
23071 (REPLACEMENT_CHARACTER): New macro.
23072 (font_otf_gsub): New arg alternate_subst. Be sure to set all
23073 glyph codes of GSTRING.
23074 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
23075 (font_prepare_composition): Set cmp->glyph_len.
23076 (font_open_entity): Set font->scalable.
23077 (Ffont_get): Handle :otf property.
bba3e508
SM
23078 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates):
23079 New functions.
aac0c6e3
MR
23080 (Fquery_font): Use font->font.full_name.
23081 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
23082 Sfont_otf_alternates.
23083
23084 * ftfont.c (ftfont_open): Set font->font.full_name and
23085 font->font.name properly. Fix calculation of font->font.height
23086 and font->min_width.
23087
23088 * ftxfont.c (ftxfont_create_gcs): New function.
23089 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
23090 (ftxfont_draw_backgrond): Fix filling region.
23091 (ftxfont_default_fid): New function.
23092 (ftxfont_open): Set xfont->fid to the return value of
23093 ftxfont_default_fid.
23094 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
23095 (ftxfont_done_face): Free only GCs that are created by
23096 ftxfont_create_gcs.
23097 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
23098
23099 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
23100 Clip to src->width, etc (not src->clip_XXX).
23101
23102 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
23103 FontBackend frame parameter.
23104
231052008-02-01 Kenichi Handa <handa@m17n.org>
23106
23107 * font.h (struct font_driver_list): New member `on'.
23108 (Fclear_font_cache): EXFUN it.
23109 (font_update_drivers): Extern it.
23110
23111 * font.c (font_unparse_fcname): Fix typo (swidth->width).
23112 (font_list_entities): Check driver_list->on.
40b1a3a9 23113 (register_font_driver): Initialize `on' member to 0.
aac0c6e3
MR
23114 (font_update_drivers): New function.
23115 (Fclear_font_cache): Check driver_list->on.
23116
23117 * frame.h (Qfont_backend): Extern it.
23118 (x_set_font_backend): Extern it.
23119
23120 * frame.c (Qfont_backend): New variable.
23121 (frame_parms): New element for font-backend.
23122 (x_set_font_backend): New function.
23123
23124 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
23125 FontBackend frame parameter.
23126 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
23127 x_set_font_backend.
23128
23129 * xfont.c (xfont_list): Don't try listing by :name property if the
23130 name is not for XLFD.
23131
231322008-02-01 Kenichi Handa <handa@m17n.org>
23133
23134 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
23135 (LGLYPH_SET_TO): New macros.
23136 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
23137 element of G is vector or not.
23138 (font_at): Extern it.
23139
23140 * font.c: Include window.h.
23141 (font_lispy_object): New function.
23142 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
23143 end of valid glyph.
23144 (font_close_object): Fix getting (struct font *).
23145 (font_at): New function.
23146 (Ffont_get): If FONT is a font-object, get entity from it.
23147 (Ffont_make_gstring): Initialize elements of glyphs with nil.
bba3e508
SM
23148 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX.
23149 Fix range check.
aac0c6e3
MR
23150 (Ffont_at): New function.
23151 (syms_of_font): Defsubr Sfont_at.
23152
23153 * xdisp.c (it_props): Move the entry for Qauto_composed to just
23154 before the entry for Qcomposition.
23155 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
23156 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
23157 the font in gstring.
23158 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
23159 LGLYPH_FORM (g) to detect the end of valid glyph.
23160 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
23161 we are composing with gstring.
23162
23163 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
23164 Check if adjustment is vector or not.
23165
23166 * Makefile.in (font.o): Make it depends on window.h.
23167
231682008-02-01 Kenichi Handa <handa@m17n.org>
23169
23170 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
23171 adjustment is vector or not.
23172
231732008-02-01 Miles Bader <miles@gnu.org>
23174
23175 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
23176
231772008-02-01 Kenichi Handa <handa@m17n.org>
23178
23179 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
bba3e508 23180 (LGLYPH_SET_WIDTH): Adjust for the change of LGLYPH format.
aac0c6e3
MR
23181 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
23182
23183 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
23184 (DEVICE_DELTA): Fix typo.
23185 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
23186 LGLYPH format.
23187
23188 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
23189 the change of LGLYPH format.
23190
231912008-02-01 Kenichi Handa <handa@m17n.org>
23192
23193 * ftfont.c (ftfont_list): Fix typo.
23194 (ftfont_build_basic_charsets): Don't include letters with diacritics.
23195
231962008-02-01 Jan Djärv <jan.h.d@swipnet.se>
23197
23198 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
23199
23200 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
23201 xftface_info is non-NULL.
23202
232032008-02-01 Jan Djärv <jan.h.d@swipnet.se>
23204
23205 * ftfont.c (ftfont_list): Move misplaced #endif.
23206
232072008-02-01 Kenichi Handa <handa@m17n.org>
23208
23209 * ftfont.c (ftfont_list): Pay attention to the case that
23210 FC_CAPABILITY is not defined.
23211
232122008-02-01 Kenichi Handa <handa@m17n.org>
23213
23214 * xftfont.c (xftfont_open): Set charset related members to -1.
23215
23216 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
23217 QCname.
23218 (ftfont_open): Set charset related members to -1.
23219
23220 * fontset.c (Votf_script_alist): New variable.
23221 (syms_of_fontset): Initialize it.
23222 (fontset_font): Delete unused variable.
23223
23224 * fontset.h (Votf_script_alist): Extern it.
23225
23226 * font.c (font_find_for_lface): Optimize code.
23227
23228 * font.h (font_close_object, font_merge_old_spec): Extern them.
23229
232302008-02-01 Kenichi Handa <handa@m17n.org>
23231
23232 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
23233 (syms_of_font): Initialize them.
23234 (font_pixel_size): Allow float value in dpi.
23235 (font_prop_validate_type): Delete.
23236 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
23237 Change caller.
23238 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
23239 (font_prop_validate_extra): Delete.
23240 (font_prop_validate_spacing): New function.
23241 (font_property_table): Add elements for all known properties.
bba3e508
SM
23242 (get_font_prop_index): Rename from check_font_prop_name.
23243 New argument FROM. Change caller.
aac0c6e3
MR
23244 (font_prop_validate): Validate all known properties.
23245 (font_put_extra): Delete argument force. Change caller.
23246 (font_expand_wildcards): Make it static. Fix the way of shrinking
23247 the possible range.
23248 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
23249 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
23250 Change caller.
23251 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
23252 (font_parse_fcname): Delete argument merge. Fix parsing of point
23253 size. Don't validate properties values here. Change caller.
23254 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
23255 (font_open_by_name): Delete unused variable.
23256 (Ffont_spec): Likewise. Validate property values.
23257 (Ffont_match_p): New function.
23258
23259 * font.h (QCscalable): Extern it.
23260 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
23261
23262 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
23263
23264 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
23265 (xfont_list_pattern): New function.
23266 (xfont_list): Use xfont_list_pattern.
23267
232682008-02-01 Kenichi Handa <handa@m17n.org>
23269
23270 * font.h (Flist_fonts): EXFUN it.
23271
232722008-02-01 Jason Rumney <jasonr@gnu.org>
23273
23274 * w32term.c (w32_initialize): Add back smoothing_type and
23275 smoothing_enabled definitions.
23276
232772008-02-01 Kenichi Handa <handa@m17n.org>
23278
23279 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
23280 s->face->font on determining underline position.
23281
232822008-02-01 Kenichi Handa <handa@m17n.org>
23283
23284 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
23285 (font_has_char): Accept font-object too.
23286 (font_find_for_lface): Try at first with a size specified in face.
23287
232882008-02-01 Kenichi Handa <handa@m17n.org>
23289
23290 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
23291 font_open_by_name.
23292
232932008-02-01 Kenichi Handa <handa@m17n.org>
23294
23295 * font.h (QCspacing, QCdpi): Extern them.
23296 (enum font_spacing): New enum.
23297 (FONT_PIXEL_SIZE_QUANTUM): New macro.
23298
23299 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
23300 (QCspacing, QCdpi): New variables.
23301 (syms_of_font): Initialize them.
23302 (font_pixel_size): New function.
23303 (font_put_extra): New function.
23304 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
23305 in FONT_EXTRA.
23306 (font_parse_fcname): Handle enumerated values (e.g. bold).
23307 Fix handling font size. Add QCname property that contains only
23308 unknown properties.
23309 (font_score): Change argument. Change caller. Pay attention to
23310 FONT_PIXEL_SIZE_QUANTUM.
23311 (font_sort_entites, font_list_entities, font_find_for_lface)
23312 (font_open_for_lface, font_open_by_name): Fix handling of font size.
23313 (Ffont_spec): Add QCname property that contains only unknown properties.
23314
bba3e508
SM
23315 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq.
23316 Don't include weight in listing pattern, instead check weight of each
aac0c6e3
MR
23317 listed font. Don't include scalable in pattern. Pay attention to
23318 FONT_PIXEL_SIZE_QUANTUM.
23319
233202008-02-01 Kenichi Handa <handa@m17n.org>
23321
23322 * font.c (font_parse_fcname): Fix parsing of point-size.
23323 (font_unparse_fcname): Produce symbolic names for style properties.
23324 (font_list_entities): Handle float size correctly.
23325 (font_open_by_name): Prefer `normal' property values if the name
23326 doesn't specify them.
23327
23328 * fontset.c (Finternal_char_font): Use font_get_name, not
23329 Ffont_xlfd_name.
23330
23331 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
23332 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
23333 pattern. Don't force scalable.
23334
23335 * xftfont.c (xftfont_open): For generating a name, start from
23336 96-byte buffer.
23337
233382008-02-01 Jan Djärv <jan.h.d@swipnet.se>
23339
23340 * frame.h (x_new_fontset2): Fix prototype.
23341
233422008-02-01 Kenichi Handa <handa@m17n.org>
23343
23344 * font.h (struct font_driver): Delete member parse_name.
23345 (font_match_p, font_get_spec, font_parse_fcname)
23346 (font_unparse_fcname): Extern them.
23347 (font_get_name): Adjust prototype.
23348
23349 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
23350 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
bba3e508
SM
23351 (font_expand_wildcards): Fix handling ENCODING field.
23352 Avoid unnecessary checks for weight, slant, and swidth.
aac0c6e3
MR
23353 (font_parse_fcname): New function.
23354 (font_unparse_fcname): New function.
23355 (font_parse_name): New function.
23356 (font_match_p): New function.
23357 (font_get_name): Change return value to Lisp string.
23358 (font_get_spec): New function.
23359 (Qunspecified, Qignore_defface): Don't extern them.
23360 (font_find_for_lface): Assume that LFACE is fully specified.
23361 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
23362 object, use it for FACE.
23363 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
23364 driver->parse_name.
23365 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
23366
23367 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
23368 prototype.
23369
23370 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
23371 argument F. Don't call Fnew_fontset. Instead, directly call
23372 make_fontset.
23373
23374 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
23375
23376 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
23377 of x_new_fontset2.
23378
23379 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
23380 (Qsans__serif): New variables.
23381 (ftfont_generic_family_list): New variable.
23382 (syms_of_ftfont): Initialize the above variables.
23383 (ftfont_pattern_entity): Delete argument NAME.
23384 (ftfont_list_generic_family): New function.
23385 (ftfont_parse_name): Delete this function.
23386 (ftfont_list): Try generic family only when FcFontList found no font.
23387 (ftfont_list_family): Fix args to FcObjectSetBuild.
23388
23389 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
23390 object in attrs[LFACE_FONT_INDEX].
23391 (set_lface_from_font_name): Cancel all changes for font-backend.
23392 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
23393 function.
23394 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
23395 font object in QCfont attribute.
23396 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
23397 (realize_default_face) [USE_FONT_BACKEND]: Call
23398 set_lface_from_font_and_fontset.
23399
23400 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
23401 "fixed", and signal error here if no suitable font was found.
23402
23403 * xfont.c (xfont_parse_name): Delete this function.
23404
23405 * xftfont.c (xftfont_open): Change coding style of error
23406 handling. Generate fontconfig's fontname pattern.
23407
23408 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
23409 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
23410
23411 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
23412 Both args FONTSET and FONT_OBJECT must be existing ones.
23413
234142008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23415
23416 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
23417
234182008-02-01 Kenichi Handa <handa@m17n.org>
23419
23420 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
23421
23422 * font.h (struct font): Fix typo.
23423
23424 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
23425 XLFD_XXX_INDEX.
23426 (enum xlfd_field_mask): New enum.
ef1b0ba7 23427 (intern_font_field): Change argument. Change caller. If digits
aac0c6e3
MR
23428 are followed by non-digits, return a symbol.
23429 (font_expand_wildcards): New function.
23430 (font_parse_xlfd): Fix wildcard handling.
23431 (Ffont_spec): If :name is specified, reflect the info in the other
23432 properties.
23433
23434 * ftfont.c (ftfont_pattern_entity): Fix typo.
23435 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
23436 locale.
23437
234382008-02-01 Kenichi Handa <handa@m17n.org>
23439
23440 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
23441
23442 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
23443 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
23444 registry doesn't specify encoding part.
23445 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
23446 (font_open_by_name): At first try parsing the name.
23447 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
23448 as Lisp symbols.
23449
23450 * fontset.c (reorder_font_vector): Pay attention to the case that
23451 the 3rd element of font_def is nil.
23452 (fontset_font): For the default fontset, append one more fontset
23453 elements for a script-based font specification. Don't add script
23454 attribute on finding a font.
23455 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
23456 font name.
23457 (fontset_ascii_font): If a font can't be opened, return nil.
23458
23459 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
23460 (ftfont_pattern_entity): New function.
23461 (ftfont_get_cache): Assume that freetype_font_cache is already
23462 initialized.
23463 (ftfont_list): Handle the case that a file is specified in font
23464 name. Use ftfont_pattern_entity to generate entities.
23465 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
23466 (syms_of_ftfont): Initialize freetype_font_cache.
23467
23468 * xftfont.c (xftfont_open): Make the font name fontconfig's
23469 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
23470 (xftfont_close): Free font->font.name if not NULL.
23471
23472 * xfont.c (xfont_list): If script is specified for a font, return
23473 null_vector.
23474 (xfont_list_family): Declare argument type.
23475
23476 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
23477 name, set LFACE_FONT (lface) to nil.
23478
23479 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
23480 return Qnil.
23481
234822008-02-01 Kenichi Handa <handa@m17n.org>
23483
23484 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
23485 (standard_args): Add "-enable-font-backend".
23486
234872008-02-01 Kenichi Handa <handa@m17n.org>
23488
23489 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
23490 (struct xftdraw_list, xftdraw_list): Delete them.
23491 (register_xftdraw, check_xftdraw): Delete them.
23492 (xftfont_prepare_face): Don't call register_xftdraw.
23493 (xftfont_done_face): Don't call check_xftdraw.
23494 (xftfont_draw): Get background color only when with_background is
23495 nonzero.
23496
23497 * xfont.c (xfont_encode_char): Fix calculation of char2b.
23498
234992008-02-01 Kenichi Handa <handa@m17n.org>
23500
23501 These changes are for the new font handling codes.
23502
23503 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
23504 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
23505 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
23506 (FONTSRC, FONTOBJ): New variables.
23507 (obj): Add $(FONTOBJ).
23508 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
23509 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
23510 @LIBOTF_LIBS@.
23511 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
23512 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
23513
23514 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
23515
23516 * character.h (Vscript_representative_chars): Extern it.
23517
23518 * character.c (Vscript_representative_chars): New variable.
23519 (syms_of_character): Declare it as a Lisp variable.
23520
23521 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
23522 enable_font_backend is nonzero, accept the composition method
23523 COMPOSITION_WITH_GLYPH_STRING.
23524
23525 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
23526 enumeration COMPOSITION_WITH_GLYPH_STRING.
23527
23528 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
23529 members clip_x, clip_y, clip_width, and clip_height.
23530 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
23531
23532 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
23533 --enable-font-backend. Call syms_of_font.
23534
23535 * fns.c (assoc_no_quit): New function.
23536
23537 * fontset.h (FONT_INFO_FROM_FACE): New macro.
23538 (face_for_font, new_fontset_from_font)
23539 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
23540
23541 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
23542 (fontset_font, fontset_ascii, face_for_char)
23543 (make_fontset_for_ascii_face, Ffont_info)
23544 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
23545 is nonzero, use font-backend mechanism.
23546 (find_font_encoding): Make it non-static.
23547 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
23548 New functions.
23549
23550 * frame.h (struct frame): New members resx and resy.
23551 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
23552 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
23553
23554 * frame.c [USE_FONT_BACKEND]: Include "font.h".
23555 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
23556
23557 * lisp.h (assoc_no_quit): Extern it.
23558
23559 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
23560 Through out the file, use FONT_INFO_FROM_FACE instead of
23561 FONT_INFO_FROM_ID, use get_per_char_metric instead of
23562 rif->per_char_metric.
23563 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
23564 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
23565 (get_glyph_face_and_encoding, fill_composite_glyph_string)
23566 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
23567 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
23568 nonzero, use font-backend mechanism.
23569 (get_per_char_metric): New function.
23570
23571 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
23572 (set_lface_from_font_name)
23573 (set_font_frame_param, free_realized_face)
23574 (prepare_face_for_display, clear_face_gcs)
23575 (Finternal_set_font_selection_order, realize_x_face)
23576 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
23577 font-backend mechanism.
23578 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
23579 (load_face_font) [USE_FONT_BACKEND]: Abort.
23580 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
23581 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
23582
23583 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
23584 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
23585 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
bba3e508
SM
23586 nonzero, register all available font drivers.
23587 Call x_default_font_parameter for deciding a font.
aac0c6e3
MR
23588 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
23589
23590 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
23591 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
23592 (x_set_glyph_string_clipping_exactly)
23593 (x_compute_glyph_string_overhangs)
23594 (x_draw_glyph_string_foreground)
23595 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
23596 (x_free_frame_resources) [USE_FONT_BACKEND]: If
23597 enable_font_backend is nonzero, use font-backend mechanism.
23598 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
23599
236002008-02-01 Kenichi Handa <handa@m17n.org>
23601
23602 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
23603 system_eol_type.
23604 (syms_of_coding): Initialize system_eol_type.
23605
23606 * process.c (Fset_process_coding_system): Inherit system's eol
23607 format if necessary.
23608
236092008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23610
23611 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
23612
236132008-02-01 Kenichi Handa <handa@m17n.org>
23614
23615 * coding.c (decode_eol): Pay attention to buffer relocation in
23616 del_range_2.
23617 (decode_coding): Call decode_eol before restoring undo_list.
23618
236192008-02-01 Kenichi Handa <handa@m17n.org>
23620
23621 * charset.c (Fdefine_charset_internal): Fix setting of
23622 emacs_mule_bytes.
23623
236242008-02-01 Kenichi Handa <handa@m17n.org>
23625
23626 * keyboard.c (read_char): Check if C is a character or not before
23627 looking up Vkeyboard_translate_table.
23628
236292008-02-01 Kenichi Handa <handa@m17n.org>
23630
bba3e508
SM
23631 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION):
23632 Fix condition to terminate the loop.
aac0c6e3
MR
23633
236342008-02-01 Kenichi Handa <handa@m17n.org>
23635
23636 * coding.c (produce_composition): Compare charbuf[i] instead of
23637 args[i] against 0.
23638 (Fterminal_coding_system): Use EQ to compare Lisp objects.
23639
236402008-02-01 Kenichi Handa <handa@m17n.org>
23641
23642 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
23643 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
23644 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
23645 detect_coding.
23646 (emacs_mule_char): Handle old style (Emacs 20) component character
23647 of a composition.
23648 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
23649 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
23650 composition rule.
23651 (decode_coding_emacs_mule): Handle invalid bytes correctly.
23652
236532008-02-01 Kenichi Handa <handa@m17n.org>
23654
23655 * coding.c (encode_coding_ccl): Allocate destination dynamically
23656 when necessary.
23657
236582008-02-01 Kenichi Handa <handa@m17n.org>
23659
23660 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
23661 the loop. When quitted, show a proper error message.
23662
236632008-02-01 Kenichi Handa <handa@m17n.org>
23664
bba3e508
SM
23665 * xterm.c (x_set_glyph_string_clipping_exactly):
23666 Set src->clip_head and src->clip_tail temporarily instead of src->hl.
aac0c6e3
MR
23667
23668 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
23669 character sequence.
23670 (Fccl_execute_on_string): Use ASET, not XSET.
23671
236722008-02-01 Kenichi Handa <handa@m17n.org>
23673
23674 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
23675
236762008-02-01 Kenichi Handa <handa@m17n.org>
23677
23678 * coding.c (decode_coding): Fix the condition of terminating the
23679 decoding loop.
23680
236812008-02-01 Kenichi Handa <handa@m17n.org>
23682
23683 * data.c (Faset): On setting a character bigger than 255 in a
23684 unibyte string, signal an error instead of make the string multibyte.
23685
236862008-02-01 Kenichi Handa <handa@m17n.org>
23687
23688 * charset.c (map_charset_chars): Fix for ascii-compatible charset
23689 made by a mapping table.
23690
236912008-02-01 Kenichi Handa <handa@m17n.org>
23692
23693 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
23694 not.
23695 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
23696 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
23697
bba3e508
SM
23698 * xterm.c (x_draw_composite_glyph_string_foreground):
23699 Check s->face is NULL or not.
aac0c6e3
MR
23700
237012008-02-01 Kenichi Handa <handa@m17n.org>
23702
23703 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
23704 (x_draw_glyph_string): Fix drawing of right_overhang and
23705 left_overhang around/on cursor.
23706
23707 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
23708
237092008-02-01 Kenichi Handa <handa@m17n.org>
23710
23711 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
23712
237132008-02-01 Kenichi Handa <handa@m17n.org>
23714
23715 * coding.c (Fdefine_coding_system_internal)
23716 (Fdefine_coding_system_alias): Avoid a duplicated element in
23717 Vcoding_system_alist.
23718
237192008-02-01 Kenichi Handa <handa@m17n.org>
23720
23721 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
23722
23723 * coding.c (Qcoding_system_define_form): New variable.
23724 (syms_of_coding): Intern and staticpro it.
23725 (Fcoding_system_p): Check Qcoding_system_define_form.
23726 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
23727
23728 * coding.h (CODING_SYSTEM_P): If ID is not available, call
23729 Fcoding_system_p.
23730 (CHECK_CODING_SYSTEM): If ID is not available, call
23731 Fcheck_coding_system.
23732 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
23733 Try also Fcheck_coding_system.
23734
237352008-02-01 Kenichi Handa <handa@m17n.org>
23736
23737 * coding.c (code_conversion_restore): GCPRO arg.
23738
237392008-02-01 Kenichi Handa <handa@m17n.org>
23740
23741 * character.c (lisp_string_width): Check multibyteness of STRING.
23742
237432008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23744
23745 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
23746 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
23747 (decode_mac_font_name): Use decode_coding_c_string instead of
23748 decode_coding.
bba3e508
SM
23749 (x_load_font): Initialize fontp->fontset to -1.
23750 Set fontp->encoding_type.
aac0c6e3
MR
23751
237522008-02-01 Kenichi Handa <handa@m17n.org>
23753
23754 * search.c (search_buffer): Give up BM search on case-fold-search
23755 if one of a target character has a case-equivalence of different
3b59c351 23756 byte length even if that target character is an ASCII.
aac0c6e3
MR
23757 (simple_search): Fix calculation of byte length of matched text.
23758 (boyer_moore): Fix handling of case-equivalent multibyte characters.
23759
237602008-02-01 Kenichi Handa <handa@m17n.org>
23761
23762 * coding.c (decode_coding): Fix handling of invalid bytes.
23763
237642008-02-01 Kenichi Handa <handa@m17n.org>
23765
23766 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
23767 Unicode characters.
23768
237692008-02-01 Kenichi Handa <handa@m17n.org>
23770
23771 * coding.c (encode_coding_object): If a pre-write-conversion
23772 function makes a new buffer, kill it.
23773
237742008-02-01 Kenichi Handa <handa@m17n.org>
23775
23776 * coding.c (QCascii_compatible_p): New variable.
23777 (syms_of_coding): Initialize it.
23778 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
23779 calling string_char.
23780 (record_conversion_result): Add `default:' case.
23781 (coding_charset_list): Delete unused variable `coding_type'.
23782 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
23783 property in the plist of the coding system.
23784 (Fcoding_system_put): Check QCascii_compatible_p.
23785
237862008-02-01 Miles Bader <miles@gnu.org>
23787
23788 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
23789 removed calculation of frame `f', as it's now used.
23790
237912008-02-01 Kenichi Handa <handa@m17n.org>
23792
23793 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
23794 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
23795 (UNIDATA): New variable.
23796 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
bba3e508
SM
23797 (bootstrap-emacs${EXEEXT}): Depends on charprop.el.
23798 Run $(RUN_TEMACS) unconditionally.
aac0c6e3
MR
23799
238002008-02-01 Kenichi Handa <handa@m17n.org>
23801
23802 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
23803 (admindir): New variable.
23804 ($(lispsource)international/charprop.el): New target.
23805
238062008-02-01 Miles Bader <miles@gnu.org>
23807
23808 * character.c (chars-in-region): Remove obsolete function.
23809 (syms_of_character): Remove its initialization.
23810
238112008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
23812
23813 * w32select.c (validate_coding_system)
23814 (setup_windows_coding_system): New functions.
bba3e508
SM
23815 (convert_to_handle_as_coded, Fw32_get_clipboard_data):
23816 Use setup_windows_coding_system.
23817 (setup_config, Fw32_get_clipboard_data):
23818 Use validate_coding_system.
aac0c6e3
MR
23819 (Fx_selection_exists): Move call to setup_config to a place
23820 where signals are allowed.
23821
23822 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
23823 (Fcheck_coding_system): Add declarations.
23824
238252008-02-01 Kenichi Handa <handa@m17n.org>
23826
23827 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
23828
238292008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23830
23831 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
23832 string as the second argument for x_new_fontset.
23833
238342008-02-01 Kenichi Handa <handa@m17n.org>
23835
23836 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
23837 (encode_coding_object): Use safe_call instead of call2.
23838
238392008-02-01 Kenichi Handa <handa@m17n.org>
23840
23841 * fontset.c (Fset_fontset_font): Check family element of a given vector.
23842
23843 * Makefile.in (lisp): Include charprop.el.
23844
238452008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23846
23847 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
23848 Not sure if it's unnecessary.
23849
238502008-02-01 Steven Tamm <steventamm@mac.com>
23851
23852 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
23853 some possibly unnecessary fontset checking code that crashed
23854 when creating a new frame.
23855
238562008-02-01 Kenichi Handa <handa@m17n.org>
23857
23858 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
23859 lookup_face.
23860
23861 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
23862
23863 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
23864
238652008-02-01 Kenichi Handa <handa@m17n.org>
23866
23867 * coding.c: Cancel the change done in HEAD on 2008-02-01.
23868 (coding_charset_list): New function.
23869
23870 * coding.h (coding_charset_list): Extern it.
23871
238722008-02-01 Kenichi Handa <handa@m17n.org>
23873
23874 * fontset.c (Fset_fontset_font): Call find_font_encoding with
23875 concatenation of family and registry.
23876
238772008-02-01 Kenichi Handa <handa@m17n.org>
23878
23879 * character.h (BYTE8_STRING): Fix typo.
23880
23881 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
23882 string to multibyte (sync to HEAD).
23883
23884 * casefiddle.c (casify_region): Handle changes in byte-length
23885 using replace_range_2 (sync to HEAD).
23886
238872008-02-01 Andreas Schwab <schwab@suse.de>
23888
23889 * chartab.c (map_char_table): GCPRO table and arg.
23890
238912008-02-01 Kenichi Handa <handa@m17n.org>
23892
23893 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
23894 already at limit.
23895
238962008-02-01 Kenichi Handa <handa@m17n.org>
23897
23898 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
23899 instead of fast_c_string_match_ignore_case.
bba3e508
SM
23900 (find_font_encoding): Change argument to Lisp_Object.
23901 Use fast_string_match_ignore_case instead of
aac0c6e3
MR
23902 fast_c_string_match_ignore_case. Change caller.
23903
239042008-02-01 Kenichi Handa <handa@m17n.org>
23905
23906 * xdisp.c (get_next_display_element): In unibyte case, decide to
23907 display in octal form by checking a character by
23908 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
23909
23910 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
23911
23912 * character.c (unibyte_has_multibyte_table): New variable.
23913
23914 * character.h (unibyte_has_multibyte_table): Extern it.
23915 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
23916
239172008-02-01 Kenichi Handa <handa@m17n.org>
23918
23919 * coding.c (encode_coding_iso_2022): Fix handling of charset
23920 annotation.
23921
239222008-02-01 Kenichi Handa <handa@m17n.org>
23923
23924 * coding.c (setup_coding_system): If coding_system is nil, use
23925 Qundecided.
23926 (Fterminal_coding_system): Return nil if terminal coding system is
23927 `undecided'.
bba3e508
SM
23928 (syms_of_coding): Define coding-system `undecided' here.
23929 Setup terminal_coding as `undecided'.
aac0c6e3
MR
23930
239312008-02-01 Kenichi Handa <handa@m17n.org>
23932
bba3e508
SM
23933 * xdisp.c (message_dolog, set_message_1):
23934 Call unibyte_char_to_multibyte with arg type int.
aac0c6e3
MR
23935
23936 * lread.c (read1): Fix reading of a char-table.
23937
23938 * print.c (print_object): Include sub char-table in circularities
23939 detection.
23940
239412008-02-01 Kenichi Handa <handa@m17n.org>
23942
23943 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
23944 Append the found sequences in car of ARGS instead of prepending.
23945
239462008-02-01 Kenichi Handa <handa@m17n.org>
23947
23948 * fileio.c (report_file_error): Make a unibyte string from
23949 strerror (errorno).
23950 (Fsubstitute_in_file_name): Fix the arg to
23951 unibyte_char_to_multibyte. It is evaluated twice.
23952
239532008-02-01 Kenichi Handa <handa@m17n.org>
23954
23955 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
23956
239572008-02-01 Kenichi Handa <handa@m17n.org>
23958
23959 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
23960 BOM is not found.
23961 (detect_coding, detect_coding_system): Optimization for ISO-2022
23962 when no 8-bit data is found.
23963
239642008-02-01 Jason Rumney <jasonr@gnu.org>
23965
23966 * w32fns.c (x_to_w32_font): Update to use new coding struct.
23967
239682008-02-01 Kenichi Handa <handa@m17n.org>
23969
23970 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
23971 CHARS.
23972
239732008-02-01 Steven Tamm <steventamm@mac.com>
23974
23975 * macterm.c (mac_encode_char): Add charset argument and update
23976 to use encoding_type.
23977 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
23978 switch to pure fontset.
23979 (decode_mac_font_name): Temporarily remove decoding.
23980 (x_font_name_to_mac_font_name): Temporarily remove encoding.
23981 (x_load_font): Temporarily remove encoding.
23982
239832008-02-01 Kenichi Handa <handa@m17n.org>
23984
23985 * xfaces.c (Fface_font): If frame is not on a window system,
23986 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
23987 refer to face->font.
23988 (split_font_name_into_vector, build_font_name_from_vector)
23989 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
23990 when HAVE_WINDOW_SYSTEM is defined.
23991
239922008-02-01 Kenichi Handa <handa@m17n.org>
23993
23994 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
23995 (x_produce_glyphs): Fix setting of members of cmp in case
23996 cmp->glyph_len is zero.
23997
23998 * fontset.c (Fset_fontset_font): Fix docstring.
23999 (Ffontset_info): Make it backward compatible. New arg ALL.
24000
240012008-02-01 Kim F. Storm <storm@cua.dk>
24002
24003 * process.c (read_process_output): Grow decoding_buf when needed;
24004 this could cause a crash in allocate_string and compact_small_strings.
24005
240062008-02-01 Kenichi Handa <handa@m17n.org>
24007
24008 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
24009
240102008-02-01 Kenichi Handa <handa@m17n.org>
24011
24012 * coding.c (setup_coding_system): Set coding->common_flags
24013 correctly for raw-text.
24014 (consume_chars): On encoding unibyte text by raw-text, don't check
24015 multibyte form.
24016 (encode_coding): On encoding by raw-text, never use translation tables.
24017
24018 * fileio.c (e_write): Short cut for the case of no encoding.
24019
240202008-02-01 Kenichi Handa <handa@m17n.org>
24021
24022 * coding.c (detect_coding, detect_coding_system): Delete unused
24023 variables.
24024
240252008-02-01 Kenichi Handa <handa@m17n.org>
24026
24027 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
24028 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
24029
240302008-02-01 Kenichi Handa <handa@m17n.org>
24031
bba3e508
SM
24032 * coding.c (Ffind_coding_systems_region_internal):
24033 Include raw-text and no-conversion in the result.
aac0c6e3
MR
24034
240352008-02-01 Kenichi Handa <handa@m17n.org>
24036
24037 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
24038 (load_font_get_repertory): Delete unnecessary check of ENCODING of
24039 FONT_DEF.
24040 (font_def_arg, add_arg, from_arg, to_arg): New args.
24041 (set_fontset_font): Change argument.
24042 (Fset_fontset_font): Fix for the case that TARGET is a script
24043 name and charset name.
24044 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
24045
240462008-02-01 Kenichi Handa <handa@m17n.org>
24047
24048 * fontset.c (fontset_font): Rename from fontset_face. Change return
24049 value.
24050 (face_suitable_for_char_p, face_for_char): Adjust for the change
24051 of fontset_font.
24052 (make_fontset_for_ascii_face): Fix setting of the fontset element
24053 for ASCII.
24054 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
24055 to get a font name.
24056 (Ffontset_info): Adjust for the change of fontset_font.
24057
24058 * coding.c (emacs_mule_char): Check invalid code more rigidly.
24059
24060 * character.h (LEADING_CODE_LATIN_1_MIN)
24061 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
24062
240632008-02-01 Kenichi Handa <handa@m17n.org>
24064
24065 * editfns.c (check_translation): New function.
24066 (Ftranslate_region_internal): Handle M:N mapping.
24067
240682008-02-01 Kenichi Handa <handa@m17n.org>
24069
24070 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
24071
240722008-02-01 Kenichi Handa <handa@m17n.org>
24073
24074 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
24075 goto invalid_code.
24076 (decode_coding_iso_2022): Fix handling of invalid designation.
24077
24078 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
24079 after calling code_conversion_save.
24080
240812008-02-01 Kenichi Handa <handa@m17n.org>
24082
24083 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
24084
24085 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
24086
24087 * fontset.c: Include "intervals.h".
24088 (fontset_face): Fix comparing of Lisp_Objects.
bba3e508
SM
24089 (free_face_fontset, new_fontset_from_font_name):
24090 Fix Lisp_Object/int mixup.
aac0c6e3
MR
24091
24092 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
24093
24094 * coding.c: Add many prototypes for static functions.
24095 (get_translation_table): Allow max_lookup to be NULL.
24096 (decode_coding, Ffind_coding_systems_region_internal)
bba3e508
SM
24097 (Funencodable_char_position, Fcheck_coding_systems_region):
24098 Call get_translation_table with max_lookup NULL.
aac0c6e3
MR
24099
241002008-02-01 Kenichi Handa <handa@m17n.org>
24101
24102 * coding.c (get_translation_table): Declare it as Lisp_Object.
24103 (LOOKUP_TRANSLATION_TABLE): New macro.
24104 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
24105 instead of CHAR_TABLE_REF.
24106
241072008-02-01 Kenichi Handa <handa@m17n.org>
24108
24109 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
24110 annotation data format.
24111 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
24112 Change arguments FROM and TO to single argument NCHARS. Change caller.
24113 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
24114 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
24115 (decode_coding_ccl, decode_coding_charset): Pay attention to
24116 coding->charbuf_used.
24117 (get_translation): New function.
24118 (produce_chars): New arguments translation_table and last_block.
24119 Translate characters here. Return number of carryover chars.
24120 Change caller.
24121 (produce_composition): New argument pos. Change caller.
24122 Adjust for the change of annotation data format.
24123 (produce_charset, produce_annotation): Likewise.
24124 (decode_coding, encode_coding): Don't call translate_chars.
24125 (consume_chars): New arg translation_table. Change caller.
24126 (translate_chars): Delete.
24127 (syms_of_coding): Make translation-table's number of extra slots 2.
24128
241292008-02-01 Kenichi Handa <handa@m17n.org>
24130
24131 * search.c (simple_search): Fix setting this_pos_byte in backward
24132 search.
24133
24134 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
24135 byte sequence.
24136 (detect_coding_ccl): Fix setting of the variable valids.
24137
241382008-02-01 Kenichi Handa <handa@m17n.org>
24139
24140 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
24141
24142 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
24143
24144 * editfns.c (Ftranslate_region_internal): Rename from
24145 Ftranslate_region. Accept a char-table in TABLE.
24146 (syms_of_editfns): Defsubr Stranslate_region_internal.
24147
24148 * xfaces.c (set_lface_from_font_name): If a font is specified for
24149 a frame, generate a fontset from the font.
24150 (build_scalable_font_name): If the scalable font is requested for
24151 a specific size, don't change that size.
24152 (try_font_list): Try a scalable font also in the case that a
24153 pattern string is specified.
24154
241552008-02-01 Kenichi Handa <handa@m17n.org>
24156
24157 * xfaces.c (Fface_font): New optional arg CHARACTER.
24158
241592008-02-01 Kenichi Handa <handa@m17n.org>
24160
24161 * charset.h (CHARSET_OFFSET): New macro.
24162
241632008-02-01 Kenichi Handa <handa@m17n.org>
24164
24165 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
24166
24167 * fontset.c (fontset_face): Handle the case that repertory is a
24168 char-table.
24169 (find_font_encoding): Return nil for unknown encoding.
24170 (Fset_fontset_font): Ignore a font of unknown encoding.
24171
241722008-02-01 Kenichi Handa <handa@m17n.org>
24173
24174 * keymap.c (describe_vector): Handle default value of a char table.
24175
24176 * fontset.c (fontset_face): Handle fallback fonts correctly.
24177 (Ffontset_info): Return infomation about fallback fonts.
24178
241792008-02-01 Kenichi Handa <handa@m17n.org>
24180
24181 * fontset.c (FONTSET_DEFAULT): New macro.
24182 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
24183 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
24184 the case that it is nil.
24185 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
24186 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
24187
24188 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
24189 subset or superset.
24190
241912008-02-01 Kenichi Handa <handa@m17n.org>
24192
24193 * emacs.c (main): Call init_charset after syms_of_XXX.
24194
24195 * charset.c (Vcharset_map_directory): Delete.
24196 (Vcharset_map_path): New variable.
24197 (load_charset_map_from_file): Use Vcharset_map_path instead.
24198 (init_charset): Initialize Vcharset_map_path.
24199 (syms_of_charset): Delete declaration of "charset-map-directory",
24200 add declaration of "charset-map-path".
24201
242022008-02-01 Kenichi Handa <handa@m17n.org>
24203
24204 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
24205 ASCII only string.
24206
24207 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
24208
24209 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
24210 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
24211
242122008-02-01 Kenichi Handa <handa@m17n.org>
24213
24214 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
24215
24216 * coding.c (QCmnemonic, QCdefalut_char)
24217 (QCdecode_translation_table, QCencode_translation_table)
24218 (QCpost_read_conversion, QCpre_write_conversion): New variables.
24219 (get_translation_table): Return a list of translation tables if
24220 necessary.
24221 (decode_coding): Call get_translation_table with ENCODEP 0.
24222 (char_encodable_p): If translation_table is non-nil, always call
24223 translate_char.
24224 (Fdefine_coding_system_internal): Accept list of translation
24225 tables as :encode-translation-table and :decode-translation-table.
24226 (Fcoding_system_put): New function.
bba3e508
SM
24227 (syms_of_coding): Declare new symbols.
24228 Defsubr Scoding_system_put.
aac0c6e3
MR
24229 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
24230 typically JISX0212.
24231
24232 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
24233 when the charset is superset type.
24234
24235 * character.c (translate_char): Accept list of translation tables.
24236
242372008-02-01 Kenichi Handa <handa@m17n.org>
24238
24239 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
24240 (CODING_ATTR_TRANS_TBL): New macro.
24241
24242 * coding.c (get_translation_table): New function.
24243 (translate_chars): Fix the bug of skipping annotation data.
24244 (decode_coding, encode_coding): Utilize get_translation_table.
24245 (char_encodable_p, Funencodable_char_position): Translate char if
24246 necessary.
24247 (Ffind_coding_systems_region_internal)
24248 (Fcheck_coding_systems_region): Setup translation table for encode
24249 in a coding system attribute vector in advance.
24250 (Fdefine_coding_system_internal): Allow a symbol as translation
24251 table. For shift-jis type coding system, allow 4th charset.
24252
242532008-02-01 Kenichi Handa <handa@m17n.org>
24254
24255 * coding.c (decode_coding_sjis): Check the first byte rigidly.
24256
24257 * xdisp.c (get_next_display_element): Pass -1 as POS to
24258 FACE_FOR_CHAR if displaying a C-string.
24259
242602008-02-01 Kenichi Handa <handa@m17n.org>
24261
24262 * composite.c (get_composition_id): Handle xoff and yoff in a
24263 composition rule.
24264
24265 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
24266 (struct composition): New member lbearing and rbearing.
24267
24268 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
24269 (x_get_glyph_overhangs): Handle a composition glyph.
24270 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
24271
24272 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
24273 composition glyph.
24274
242752008-02-01 Kenichi Handa <handa@m17n.org>
24276
24277 * print.c: Include charset.h.
24278 (Vprint_charset_text_property): New variable.
24279 (Qdefault): Extern it.
24280 (PRINT_STRING_NON_CHARSET_FOUND)
24281 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
24282 (print_check_string_result): New variable.
24283 (print_check_string_charset_prop): New function.
24284 (print_prune_charset_plist): New variable.
24285 (print_prune_string_charset): New function.
24286 (print_object): Call print_prune_string_charset if
24287 Vprint_charset_text_property is not t.
24288 (print_interval): Print nothing if interval->plist is nil.
24289 (syms_of_print): Declare Vprint_charset_text_property as a lisp
24290 variable. Init and staticpro print_prune_charset_plist.
24291
242922008-02-01 Kenichi Handa <handa@m17n.org>
24293
24294 * fontset.c (new_fontset_from_font_name): Use the specified font
24295 for all characters in the new fontset.
24296
24297 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
24298 OBJECT args.
24299
24300 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
24301 OBJECT args for composition too.
24302
24303 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
24304 OBJECT args.
24305
243062008-02-01 Kenichi Handa <handa@m17n.org>
24307
24308 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
24309
24310 * fontset.c (reorder_font_vector): Adjust for the change of
24311 FONT_DEF format.
24312 (fontset_face): New arg id. Change caller.
24313 (face_for_char): New args pos and object.
24314 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
24315 (fs_query_fontset): Check NAME by Fassoc too.
24316 (Fset_fontset_font): Allow non-XLFD font name.
24317 (Ffontset_info): Adjust for the change of FONT_DEF format.
24318
24319 * fontset.h (face_for_char): Adjust prototype.
24320
24321 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
24322 (append_space, extend_face_to_end_of_line)
24323 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
24324 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
24325
24326 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
24327 POS and OBJECT args.
24328
24329 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
24330 POS and OBJECT args.
24331
243322008-02-01 Jason Rumney <jasonr@gnu.org>
24333
24334 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
24335 of GlobalAlloc'ed memory.
24336
243372008-02-01 Kenichi Handa <handa@m17n.org>
24338
24339 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
24340
24341 * charset.h (charset_table_used): Delete extern.
24342
24343 * charset.c (charset_table_used): Make it static.
24344 (map_charset_chars): Fix args to c_function with.
24345
24346 * chartab.c (map_sub_char_table_for_charset): Fix args to
24347 c_function with.
24348
bba3e508
SM
24349 * coding.h (enum coding_result_code):
24350 Delete CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
aac0c6e3
MR
24351
24352 * coding.c (Qinsufficient_source, Qinconsistent_eol)
24353 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
24354 (Vlast_code_conversion_error): New variables.
24355 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
24356 (ONE_MORE_BYTE): Record error if any instead of signaling an
24357 error. If non-ASCII multibyte char is found, return the negative
24358 value of the code. All callers changed to check it.
24359 (ONE_MORE_BYTE_NO_CHECK): Likewise.
24360 (record_conversion_result): New function. Change all codes setting
24361 coding->result to call this function.
24362 (detect_coding_utf_8, decode_coding_utf_8)
24363 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
24364 Don't use the local variable incomplete.
24365 (emacs_mule_char): Change the second arg to `const'.
24366 (decode_coding): Fix of flushing out unprocessed data.
24367 (make_conversion_work_buffer): Fix making of a work buffer.
24368 (decode_coding_object): Return coding->dst_object.
24369
24370 * fontset.c (set_fontset_font): Fix args.
24371
24372 * lisp.h (CHARACTERBITS): Define as 22.
24373
24374 * process.c (send_process): Be sure to set coding->src_multibyte.
24375
24376 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
24377
243782008-02-01 Kenichi Handa <handa@m17n.org>
24379
24380 * xdisp.c (handle_auto_composed_prop): Give limit to
24381 Fnext_single_char_property_change.
24382
243832008-02-01 Kenichi Handa <handa@m17n.org>
24384
24385 * composite.c (syms_of_composite): Don't make the composition hash
24386 table weak.
24387
24388 * fontset.c (Fset_fontset_font): Fix docstring.
24389
24390 * lisp.h (detect_coding_system): Adjust prototype.
24391
24392 * fileio.c (kill_workbuf_unwind): Delete this function.
24393 (Finsert_file_contents): Adjust the call of detect_coding_system.
24394 Get conversion_buffer by code_conversion_save. Use the macro
24395 CODING_MAY_REQUIRE_DECODING. After decoding, update
24396 coding_system.
24397
24398 * coding.h (make_conversion_work_buffer): Delete extern.
24399 (code_conversion_save): Extern it.
24400
24401 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
24402 (CODING_GET_INFO): Delete argument eol_type. Change callers.
24403 (decode_coding_utf_8): Don't do eol converion.
24404 (detect_coding_utf_16): Check coding->src_chars, not
24405 coding->src_bytes. Add heuristics for those that have no signature.
24406 (decode_coding_emacs_mule, decode_coding_iso_2022)
24407 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
24408 Don't do eol converion.
24409 (adjust_coding_eol_type): Return a new coding system.
24410 (detect_coding): Don't detect eol. Fix for utf-16 detection.
24411 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
24412 each change.
24413 (decode_coding): Pay attention to undo_list. Do eol conversion for
24414 all types of coding-systems (if necessary).
24415 (Vcode_conversion_work_buf_list): Delete it.
24416 (Vcode_conversion_reused_workbuf): Rename from
24417 Vcode_conversion_reused_work_buf.
24418 (Vcode_conversion_workbuf_name): New variable.
24419 (reused_workbuf_in_use): New variable.
24420 (make_conversion_work_buffer): Delete the arg DEPTH.
24421 (code_conversion_restore): Change argument to cons.
24422 (code_conversion_save): Delete the argument BUFFER. Change callers.
24423 (detect_coding_system): New argument src_chars. Change callers.
24424 Fix for utf-16 detection.
24425 (init_coding_once): Don't use ISO_carriage_return.
24426 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
24427 reused_workbuf_in_use.
24428
244292008-02-01 Kenichi Handa <handa@m17n.org>
24430
24431 * keymap.c (store_in_keymap): Pay attention to the case that idx
24432 is a cons specifying a character range.
24433
244342008-02-01 Kenichi Handa <handa@m17n.org>
24435
24436 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
24437 HANDLED_RECOMPUTE_PROPS.
24438
24439 * coding.c (Fdefine_coding_system_internal): Fix checking of
24440 ascii compatibility.
24441
244422008-02-01 Kenichi Handa <handa@m17n.org>
24443
24444 * charset.c (find_charsets_in_text): Delete unused locale variable.
24445 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
24446
24447 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
24448 Resync charset_list to Vemacs_mule_charset_list.
24449
24450 * keymap.c (store_in_keymap): Pay attention to the case that idx
24451 is a cons specifying a character range.
24452
244532008-02-01 Kenichi Handa <handa@m17n.org>
24454
24455 * composite.c (update_compositions): Bind inhibit-read-only, etc
24456 to t before calling remove-list-of-text-properties.
24457
24458 * print.c (print_object): Always print ASCII chars as is.
24459
244602008-02-01 Kenichi Handa <handa@m17n.org>
24461
24462 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
24463
24464 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
24465 is a char table.
24466
244672008-02-01 Kenichi Handa <handa@m17n.org>
24468
24469 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
24470
244712008-02-01 Kenichi Handa <handa@m17n.org>
24472
24473 * xfaces.c (set_lface_from_font_name): Fix for the case that
24474 FONTNAME is not fontset name.
24475
244762008-02-01 Kenichi Handa <handa@m17n.org>
24477
24478 * fns.c (base64_encode_1): Fix previous change.
24479
244802008-02-01 Kenichi Handa <handa@m17n.org>
24481
24482 * fontset.c (set_fontset_font): New function.
24483 (Fset_fontset_font): If a font is specified for a charset, use
24484 map_charset_chars to store the font spec in a fontset.
24485
244862008-02-01 Kenichi Handa <handa@m17n.org>
24487
24488 * fontset.c (fontset_face): Create a fallback fontset on demand.
24489 (make_fontset): Don't create a fallback fontset here.
24490 (free_face_fontset): Free a fallback fontset (if any) too.
24491 (n_auto_fontsets): Delete this variable.
24492 (auto_fontset_alist): New variable.
24493 (new_fontset_from_font_name): Check auto_fontset_alist.
24494 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
24495 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
24496 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
24497 Defsubr Sfontset_list_all.
24498
244992008-02-01 Kenichi Handa <handa@m17n.org>
24500
24501 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
24502
245032008-02-01 Kenichi Handa <handa@m17n.org>
24504
24505 * fontset.c (Fnew_fontset): Check NAME more rigidly.
24506
245072008-02-01 Kenichi Handa <handa@m17n.org>
24508
24509 * editfns.c (Fgoto_char): Fix docstring.
24510
245112008-02-01 Kenichi Handa <handa@m17n.org>
24512
24513 * insdel.c (insert_from_gap): Adjust intervals correctly.
24514
245152008-02-01 Jason Rumney <jasonr@gnu.org>
24516
24517 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
24518 (pfnGetFontUnicodeRanges): New dynamically loaded function.
24519 (w32_initialize): Try to load it.
24520 (x_get_font_repertory): Use it if available.
24521 (w32_encode_char): Add shortcut for unicode output.
24522
24523 * w32fns.c (w32_load_system_font): Default charset to -1.
24524 (x_to_w32_charset): Match all fonts for unicode.
24525 (w32_to_x_charset): New parameter matching. Don't return partial
24526 or wildcard charsets.
24527 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
24528 (w32_codepage_for_font): Return CP_UNICODE for unicode.
24529 (w32_to_x_font): Match charset to real charset.
24530 (enum_font_cb2): Always list unicode versions.
24531
24532 * makefile.w32-in (temacs): Increase EMHEAP.
24533
245342008-02-01 Jason Rumney <jasonr@gnu.org>
24535
24536 * w32term.c (w32_encode_char): New charset parameter.
24537 font_info.encoding becomes encoding_type.
24538 (x_get_font_repertory): New function. Warning: stub only!
24539 (x_new_font): Return quickly if font already set.
24540 (x_new_fontset): fontsetname parameter is Lisp_Object.
24541 Use new fs_query_fontset. Try new_fontset_from_font_name.
24542 Use fontset_name for return value.
24543
24544 * w32term.h: Declare x_get_font_repertory.
24545
24546 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
24547 place of find_charset_in_text. Use encode_coding_object in place
24548 of encode_coding.
24549 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
24550 decode_coding.
24551
24552 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
24553 of x_new_fontset.
24554 (w32_load_system_font): Initialize charset as unicode.
24555 font_info.encoding becomes encoding_type.
24556 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
24557 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
24558 (syms_of_w32fns): Set get_font_repertory_func.
24559
24560 * w32console.c: Include character.h. Use terminal_encode_buffer
24561 from term.c.
bba3e508
SM
24562 (write_glyphs): Use new version of encode_terminal_code.
24563 Use encode_coding_object in place of encode_coding.
aac0c6e3
MR
24564
24565 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
24566 encoding becomes encoding_type.
24567
24568 * term.c (terminal_encode_buffer): Make externally visible.
24569
24570 * makefile.w32-in: Add character.h dependancies.
24571 (character.o, chartab.o): New targets.
24572
245732008-02-01 Kenichi Handa <handa@m17n.org>
24574
24575 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
24576 CODING_ID_EOL_TYPE.
24577
245782008-02-01 Andreas Schwab <schwab@suse.de>
24579
24580 * coding.c (produce_chars): Revert last change.
24581
245822008-02-01 Kenichi Handa <handa@m17n.org>
24583
24584 * charset.h (charset_unicode): Extern it.
24585
24586 * charset.c (string_xstring_p): Check by (C >= 0x100).
bba3e508
SM
24587 (find_charsets_in_text): Change format of the arc CHARSETS.
24588 New arg MULTIBYTE.
aac0c6e3
MR
24589 (Ffind_charset_region, Ffind_charset_string): Adjust for the
24590 change of find_charsets_in_text.
24591 (Fsplit_char): Fix doc. Never return unknown.
24592
24593 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
24594
bba3e508
SM
24595 * coding.c (Fdefine_coding_system_alias):
24596 Update Vcoding_system_list.
aac0c6e3
MR
24597
24598 * fontset.c (load_font_get_repertory): Pay attention to the case
24599 that ENCODING of a font is specified by a char-table.
24600
24601 * xterm.c (x_get_font_repertory): Handle the case that the
24602 encoding of font is other than Unicode.
24603
246042008-02-01 Kenichi Handa <handa@m17n.org>
24605
bba3e508
SM
24606 * term.c (encode_terminal_code): Don't handle glyph-table.
24607 Check if a character is encodable by the terminal coding system.
24608 If not, produces proper number of `?'s. Update
aac0c6e3
MR
24609 terminal_encode_buffer and terminal_encode_buf_size if necessary.
24610 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
24611
246122008-02-01 Kenichi Handa <handa@m17n.org>
24613
bba3e508
SM
24614 * term.c (terminal_encode_buffer, terminal_encode_buf_size):
24615 New variables.
aac0c6e3
MR
24616 (encode_terminal_code): Change argument. Encode multiple
24617 characters at once. Store the result of encoding in
24618 terminal_encode_buffer.
24619 (write_glyphs, insert_glyphs): Adjust for the change of
24620 encode_terminal_code.
24621 (term_init): Initialize terminal_encode_buffer and
24622 terminal_encode_buf_size.
24623
24624 * coding.c (consume_chars): If coding->src_object is nil, don't
24625 check annotation.
24626
246272008-02-01 Kenichi Handa <handa@m17n.org>
24628
24629 * character.c (char_string): Use ASCII_CHAR_P instead of
24630 SINGLE_BYTE_CHAR_P.
24631
246322008-02-01 Kenichi Handa <handa@m17n.org>
24633
24634 * xdisp.c (handle_auto_composed_prop): Check if the last
24635 characters of auto-composed region is newly composed with the
24636 following characters.
24637 (handle_composition_prop): Fix checking of point being inside
24638 composition.
24639
246402008-02-01 Kenichi Handa <handa@m17n.org>
24641
24642 * fns.c (concat): Don't change multibyteness of the result by
24643 concatenating an 8-bit character.
24644
24645 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
24646 multibyteness of the result when newelt is an 8-bit character.
24647
246482008-02-01 Dave Love <fx@gnu.org>
24649
24650 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
24651 EMACS_INT.
24652
24653 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
24654
24655 * xfaces.c (face_numeric_value): Declare dim size_t.
24656 (Finternal_lisp_face_equal_p): Remove unused f.
24657
24658 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
24659 (MATRIX_ROW): Remove unused vars.
24660 (draw_glyphs, x_insert_glyphs, fast_find_position)
24661 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
24662 byte/char counts.
24663
24664 * regex.c (regex_compile): Remove unused var.
24665
24666 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
24667
24668 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
24669 (Faccessible_keymaps, where_is_internal): Remove unused vars.
24670
24671 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
24672
24673 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
24674
24675 * fileio.c (Fwrite_region): Remove unused var.
24676
24677 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
24678 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
24679
24680 * composite.c (Fremove_list_of_text_properties): Declare.
24681
24682 * coding.c (inhibit_pre_post_conversion): Remove (unused).
24683 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
24684 (coding_inherit_eol_type): Remove unused attrs.
24685 (detect_coding): Cast arg of detect_eol.
24686
24687 * charset.c (syms_of_charset): Remove unused var p.
24688 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
24689 byte/char counts.
24690
24691 * casetab.c (set_case_table): Remove unused var.
24692
bba3e508
SM
24693 * window.c (Fdisplay_buffer, Fframe_selected_window):
24694 Remove unused vars.
aac0c6e3
MR
24695
246962008-02-01 Dave Love <fx@gnu.org>
24697
24698 * xterm.c (x_bitmap_mask): Declare.
24699
247002008-02-01 Dave Love <fx@gnu.org>
24701
24702 * xterm.c (x_term_init): Fix type error.
24703
24704 * lisp.h: Add Funibyte_char_to_multibyte.
24705
24706 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
24707 (Fset_coding_system_priority): Doc fix.
24708
24709 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
24710
24711 * indent.c (check_composition): Make start and end EMACS_INT.
24712
24713 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
24714
24715 * xdisp.c (handle_composition_prop, check_point_in_composition):
24716 Make buffer positions EMACS_INT.
24717
24718 * composite.c (find_composition, run_composition_function)
24719 (update_compositions, Ffind_composition_internal): Make buffer
24720 positions EMACS_INT.
24721
bba3e508
SM
24722 * composite.h (find_composition, update_compositions):
24723 Make position args EMACS_INT.
aac0c6e3
MR
24724
24725 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
24726
24727 * intervals.c (get_property_and_range):
24728 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
24729
24730 * unexalpha.c: Don't include varargs.h.
24731
247322008-02-01 Dave Love <fx@gnu.org>
24733
24734 * coding.h (ENCODE_UTF_8): New.
24735
24736 * Makefile.in (gtkutil.o): Depend on coding.h.
24737
24738 * coding.c (Fset_coding_system_priority): Doc fix.
24739
247402008-02-01 Kenichi Handa <handa@m17n.org>
24741
24742 * fileio.c (Finsert_file_contents): Call setup_coding_system in
24743 the case of auto saving.
24744
247452008-02-01 Andreas Schwab <schwab@suse.de>
24746
bba3e508
SM
24747 * chartab.c (map_char_table, map_char_table_for_charset):
24748 Protect `range' from GC.
aac0c6e3
MR
24749
247502008-02-01 Kenichi Handa <handa@m17n.org>
24751
24752 * coding.c (decode_coding_sjis): Check bytes more rigidly.
24753
247542008-02-01 Kenichi Handa <handa@m17n.org>
24755
24756 * fileio.c (choose_write_coding_system): Return a decided coding system.
24757 (Fwrite_region): Set Vlast_coding_system_used to the return value
24758 of choose_write_coding_system.
24759
247602008-02-01 Kenichi Handa <handa@m17n.org>
24761
24762 * charset.c (Fset_charset_priority): Pay attention to duplicated
24763 arguments.
24764
24765 * coding.c (QCcategory): New variable.
24766 (syms_of_coding): Defsym it. Set all elements of
24767 Vcoding_category_table and their symbol values.
24768 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
24769 coding-category-XXX, and coding-category-list.
24770 (Fdefine_coding_system_internal): Add category in the plist.
24771
247722008-02-01 Kenichi Handa <handa@m17n.org>
24773
24774 * callproc.c (Fcall_process): Handle carryover correctly.
24775
24776 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
24777 (raw_text_coding_system): Check NILP (coding_system).
24778 (coding_inherit_eol_type): Check NILP (coding_system) and
24779 NILP (parent).
24780 (consume_chars): Fix for the case of raw-text.
24781
24782 * process.c (read_process_output): Handle carryover correctly.
24783
247842008-02-01 Dave Love <fx@gnu.org>
24785
24786 * regex.c (re_search_2): Fix last change.
24787
247882008-02-01 Kenichi Handa <handa@m17n.org>
24789
24790 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
24791 target_multibyte. Even in a unibyte case, return a converted
24792 multibyte char.
24793 (GET_CHAR_AFTER): New macro.
24794 (PATFETCH): Translate via multibyte char.
24795 (HANDLE_UNIBYTE_RANGE): Delete this macro.
24796 (SETUP_MULTIBYTE_RANGE): New macro.
24797 (regex_compile): Setup compiled code so that its multibyteness
24798 matches that of a target. Fix the handling of "[X-YZ]" using
24799 SETUP_MULTIBYTE_RANGE.
24800 (analyse_first) <charset>: For filling fastmap for all multibyte
24801 characters, don't check by BASE_LEADING_CODE_P.
24802 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
24803 the same as RE_MULTIBYTE_P (bufp) now.
24804 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
24805 (TARGET_CHAR_AND_LENGTH): Delete this macro.
24806 (TRANSLATE_VIA_MULTIBYTE): New macro.
24807 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
24808 It is the same as RE_MULTIBYTE_P (bufp) now.
24809 <exactn>: Translate via multibyte.
bba3e508
SM
24810 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH.
24811 Don't translate it.
aac0c6e3
MR
24812 <charset, charset_not>: Fetch a character by
24813 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
24814 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
24815 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
24816 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
24817 by GET_CHAR_AFTER.
24818 (bcmp_translate): Likewise.
24819
24820 * search.c (compile_pattern): Check the member target_multibyte,
24821 not the member multibyte of buf.
24822
24823 * lread.c (read1): While reading a string, set force_singlebyte
24824 and force_multibyte correctly.
24825
24826 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
24827 up of unibyte_to_multibyte_table.
24828
248292008-02-01 Kenichi Handa <handa@m17n.org>
24830
24831 * coding.c (setup_coding_system): If coding has
24832 post-read-conversion or pre-write-conversion, set
24833 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
24834 respectively.
24835 (decode_coding_gap): Run post-read-conversion if any.
24836
24837 * fileio.c (Finsert_file_contents): Even if we read into a
24838 unibyte buffer, check if we must decode the result or not.
24839
248402008-02-01 Kenichi Handa <handa@m17n.org>
24841
24842 * coding.c (make_conversion_work_buffer): Change the work buffer
24843 name to the same one as that of Emacs 21.
24844
248452008-02-01 Kenichi Handa <handa@m17n.org>
24846
24847 * coding.h (make_conversion_work_buffer): Adjust prototype.
24848 (code_conversion_restore): Don't extern it.
24849
24850 * coding.c (detected_mask): Delete unused variable.
24851 (decode_coding_iso_2022): Pay attention to the byte sequence of
24852 CTEXT extended segment, and retain those bytes as is.
24853 (decode_coding_ccl): Delete unused variable `valids'.
24854 (setup_coding_system): Delete unused variable `category'.
24855 (consume_chars): Delete unused variable `category'. Make it work
24856 for non-multibyte case.
24857 (make_conversion_work_buffer): Change argument.
24858 (saved_coding): Delete unused variable.
24859 (code_conversion_restore): Don't check saved_coding->destination.
24860 (code_conversion_save): New function.
24861 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
24862 instead of record_unwind_protect.
24863 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
24864 (detect_coding_system): Delete unused variable `mask'.
24865 (Fdefine_coding_system_internal): Delete unused variable id.
24866
24867 * fileio.c (kill_workbuf_unwind): New function.
24868 (Finsert_file_contents): On replacing, call
24869 make_conversion_work_buffer with correct args, and call
24870 record_unwind_protect with the first arg kill_workbuf_unwind.
24871
24872 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
24873
248742008-02-01 Kenichi Handa <handa@m17n.org>
24875
24876 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
24877 (fontset_add): Fix for the case that TO is less than TO1.
24878 (Ffontset_info): Don't use fallback fontset on checking the
24879 default fontset.
24880 (dump_fontset): New function for debugging.
24881
24882 * coding.c (Fdefine_coding_system_internal): Fix for the case that
24883 coding_type is Qcharset.
24884
248852008-02-01 Kenichi Handa <handa@m17n.org>
24886
24887 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
24888 (map_char_table): Don't inherit the value from the parent on
24889 initializing VAL. Adjust for the above change.
24890
248912008-02-01 Kenichi Handa <handa@m17n.org>
24892
24893 * coding.c (Qsignature, Qendian): Delete these variables.
24894 (syms_of_coding): Don't initialize them.
24895 (CATEGORY_MASK_UTF_16_AUTO): New macro.
24896 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
24897 detect_info->found.
24898 (decode_coding_utf_16): Don't detect BOM here.
24899 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
24900 is NOT utf_16_without_bom.
24901 (setup_coding_system): For a coding system of type utf-16, check
24902 if the attribute :endian is Qbig or not (not nil or not), and set
24903 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
24904 (detect_coding): If coding type is utf-16 and BOM detection is
24905 required, detect it.
24906 (Fdefine_coding_system_internal): For a coding system of type
24907 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
24908
249092008-02-01 Kenichi Handa <handa@m17n.org>
24910
24911 * coding.c (coding_set_source): Fix for the case that the current
24912 buffer is different from coding->src_object.
24913 (decode_coding_object): Don't use the conversion work buffer if
24914 DST_OBJECT is a buffer.
24915
249162008-02-01 Dave Love <fx@gnu.org>
24917
24918 * lread.c (read_emacs_mule_char) [len==2]: Index
24919 emacs_mule_charset correctly.
24920
249212008-02-01 Dave Love <fx@gnu.org>
24922
24923 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
24924 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
24925 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
24926 treated specially.)
24927 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
24928 (detected_mask): Remove Big5 bits.
24929
249302008-02-01 Kenichi Handa <handa@m17n.org>
24931
24932 The following changes are to make the font rescaling facility
24933 compatible with Emacs 21.
24934
24935 * xfaces.c (Vface_font_rescale_alist): Rename from
24936 Vface_resizing_fonts.
24937 (struct font_name): Rename member resizing_ratio to rescale_ratio.
24938 (font_rescale_ratio): Rename from font_resizing_ratio.
24939 (split_font_name): Set font->rescale_ratio.
24940 (better_font_p): Pay attention to font->rescale_ratio.
24941 (build_scalable_font_name): Likewise. Change RESX, and RESY
24942 fields.
24943 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
24944
249452008-02-01 Kenichi Handa <handa@m17n.org>
24946
24947 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
24948 (Qutf_16_le): Remove these variables.
24949 (syms_of_coding): Don't DEFSYM them.
24950 (decode_coding_utf_16): Fix handling of BOM.
24951 (encode_coding_utf_16): Fix handling of BOM.
24952
249532008-02-01 Kenichi Handa <handa@m17n.org>
24954
24955 * fileio.c (Finsert_file_contents): On replacing, before decoding
24956 the file into the work buffer, set point of the work buffer to the end.
24957
249582008-02-01 Dave Love <fx@gnu.org>
24959
24960 * coding.c (Fcheck_coding_systems_region): Fix type errors.
24961
249622008-02-01 Dave Love <fx@gnu.org>
24963
24964 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
24965 and fix C types.
24966
249672008-02-01 Kenichi Handa <handa@m17n.org>
24968
24969 * xdisp.c (SKIP_GLYPHS): New macro.
24970 (set_cursor_from_row): Pay attention to string display properties.
24971
24972 * category.c (copy_category_entry): Fix for the case that RANGE
24973 is an integer.
24974
24975 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
24976
24977 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
24978
249792008-02-01 Kenichi Handa <handa@m17n.org>
24980
24981 * charset.c (Fcharset_id_internal): New function.
24982 (syms_of_charset): Defsubr it.
24983
24984 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
24985 with the last arg charset_list acquired from coding.
24986 (Fdefine_coding_system_internal): For ccl-based coding system, fix
24987 the attribute coding_attr_ccl_valids.
24988
24989 * coding.h (enum define_coding_ccl_arg_index): Set the first
24990 member coding_arg_ccl_decoder to coding_arg_max.
24991
24992 * ccl.h (ccl_driver): Adjust prototype.
24993
24994 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
24995 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 24996 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
24997 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
24998 last arg Qnil.
24999
250002008-02-01 Kenichi Handa <handa@m17n.org>
25001
25002 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
25003 call encode_char.
25004
25005 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
25006
250072008-02-01 Dave Love <fx@gnu.org>
25008
25009 * composite.c (syms_of_composite): Make composition_hash_table weak.
25010
250112008-02-01 Kenichi Handa <handa@m17n.org>
25012
25013 * dispextern.h (check_face_attributes, generate_ascii_font_name)
25014 (font_name_registry): Don't extern them.
25015 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
25016
25017 * fontset.h (Qfontset): Don't extern it.
25018 (new_fontset_from_font_name): Extern it.
25019
25020 * fontset.c: Give 8 extra slots to fontset objects.
25021 (Qfontset_info): New variable.
25022 (syms_of_fontset): Defsym it.
25023 (FONTSET_FALLBACK): New macro.
25024 (fontset_face): Try also the default fontset.
25025 (make_fontset): Realize a fallback fontset from the default fontset.
25026 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
25027 using split_font_name_into_vector and build_font_name_from_vector.
25028 (Fset_fontset_font): Access the elements of font_spec by enum
25029 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
25030 name by using split_font_name_into_vector.
25031 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
bba3e508
SM
25032 generate a proper font name from the fontset name.
25033 Update Vfontset_alias_alist.
aac0c6e3
MR
25034 (n_auto_fontsets): New variable.
25035 (new_fontset_from_font_name): New function.
25036 (Ffont_info): Store the information about fonts generated from the
25037 default fontset in the first extra slot of the returned char-table.
25038
25039 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
25040 (font_name_registry): Delete function.
25041 (split_font_name_into_vector): New function.
25042 (build_font_name_from_vector): New function.
25043 (font_list): The argument REGISTRY is now a list of registry names.
25044 (choose_face_font): If we are choosing an ASCII font, and ATTRS
25045 specifies an explicit font name, return the name as is. Make a
25046 list of registy names.
25047
25048 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
25049 of x_new_fontset.
25050 (Fx_create_frame): Don't call x_new_fontset here. Just use
25051 x_list_fonts to check the existence of fonts.
25052
25053 * xterm.h (x_new_fontset): Adjust prototype.
25054
25055 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
25056 string. Use new_fontset_from_font_name to create a fontset from a
25057 font name.
25058
250592008-02-01 Kenichi Handa <handa@m17n.org>
25060
25061 * syntax.c (Vfind_word_boundary_function_table): New name for
25062 Vnext_word_boundary_function_table.
25063 (find-word-boundary-function-table): New name for
25064 next-word-boundary-function-table.
25065
250662008-02-01 Dave Love <fx@gnu.org>
25067
25068 * Makefile.in: Fix some dependencies.
25069
25070 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
25071 set it to nil before returning.
25072
25073 * composite.c (update_compositions): Fix type error.
25074
25075 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
25076
250772008-02-01 Kenichi Handa <handa@m17n.org>
25078
25079 * xterm.c (x_new_font): Optimize for the case that the font is
25080 already set for the frame.
25081
250822008-02-01 Kenichi Handa <handa@m17n.org>
25083
25084 * chartab.c (char_table_ascii): Check if the char table contents
25085 is sub-char-table or not.
25086 (char_table_set, char_table_set_range): Fix argument to
25087 char_table_ascii.
25088
25089 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
25090 (detect_coding_utf_8, detect_coding_utf_16)
25091 (detect_coding_emacs_mule, detect_coding_iso_2022)
25092 (detect_coding_sjis, detect_coding_big5)
25093 (detect_coding_ccl, detect_coding_charset): Change argument MASK
25094 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
25095 sequence is valid in this coding system. Change callers.
25096 (MAX_ANNOTATION_LENGTH): New macro.
25097 (ADD_ANNOTATION_DATA): New macro.
bba3e508
SM
25098 (ADD_COMPOSITION_DATA): Change argument. Change callers.
25099 Call ADD_ANNOTATION_DATA. Change the format of annotation data.
aac0c6e3
MR
25100 (ADD_CHARSET_DATA): New macro.
25101 (emacs_mule_char): New argument ID. Change callers.
25102 (decode_coding_emacs_mule, decode_coding_iso_2022)
25103 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
25104 Produce charset annotation data in coding->charbuf.
25105 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
25106 to charset annotation data in coding->charbuf.
25107 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
25108 coding->common_flags if the coding system is iso-2022 based and
25109 uses designation.
25110 (produce_composition): Adjust for the new annotation data format.
25111 (produce_charset): New function.
25112 (produce_annotation): Handle charset annotation.
bba3e508
SM
25113 (handle_composition_annotation, handle_charset_annotation):
25114 New functions.
aac0c6e3
MR
25115 (consume_chars): Handle charset annotation. Utilize the above two
25116 functions.
25117 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
25118 buffer, get the deleted text as a string and set
25119 coding->src_object to that string.
25120 (detect_coding, detect_coding_system): Use the new struct
25121 coding_detection_info.
25122
25123 * coding.h (struct coding_detection_info): New structure.
25124 (struct coding_system): Adjust prototype of the member `detector'.
25125 (CODING_ANNOTATE_CHARSET_MASK): New macro.
25126
251272008-02-01 Kenichi Handa <handa@m17n.org>
25128
25129 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
25130
251312008-02-01 Dave Love <fx@gnu.org>
25132
25133 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
25134 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
25135 to new local and nullify apropos_accumulate before returning.
25136 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
25137
251382008-02-01 Kenichi Handa <handa@m17n.org>
25139
25140 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
25141 correctly.
e3eea1fc 25142
aac0c6e3
MR
251432008-02-01 Dave Love <fx@gnu.org>
25144
25145 * fns.c (Flanginfo): Call synchronize_system_time_locale.
25146
251472008-02-01 Kenichi Handa <handa@m17n.org>
25148
25149 The following changes are to make character composition happen
25150 automatically on displaying.
25151
25152 * Makefile.in (lisp, shortlisp): Add composite.elc.
25153
25154 * composite.h (Qauto_composed, Vauto_composition_function)
25155 (Qauto_composition_function): Extern them.
25156
25157 * composite.c (Vcomposition_function_table)
25158 (Qcomposition_function_table): Delete variables.
25159 (Qauto_composed, Vauto_composition_function)
25160 (Qauto_composition_function): New variables.
25161 (run_composition_function): Don't call
25162 compose-chars-after-function.
25163 (update_compositions): Clear `auto-composed' text property.
25164 (compose_chars_in_text): Delete this function.
25165 (syms_of_composite): Staticpro Qauto_composed and
25166 Qauto_composition_function. Declare Vauto_composition_function as
25167 a Lisp variable.
25168
25169 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
25170
25171 * xdisp.c (it_props): Add an entry for Qauto_composed.
25172 (handle_auto_composed_prop): New function.
25173
25174 * xselect.c (selection_data_to_lisp_data): Don't call
25175 compose_chars_in_text.
25176
251772008-02-01 Dave Love <fx@gnu.org>
25178
25179 * keyboard.c (read_char): Modify checking around use of
25180 Vkeyboard_translate_table.
25181
25182 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
25183 and fix C types.
25184
251852008-02-01 Kenichi Handa <handa@m17n.org>
25186
25187 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
25188 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
25189 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
25190 the case that the last byte is '\r' correctly.
25191 (decode_coding): Flush out the unprocessed data correctly.
25192 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
25193
251942008-02-01 Dave Love <fx@gnu.org>
25195
25196 * xterm.c (XTread_socket): Fix changes for defined keysyms.
25197 Add XK_ISO... case.
25198 (xaw_scroll_callback): Revert last change.
25199
252002008-02-01 Kenichi Handa <handa@m17n.org>
25201
25202 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
25203
252042008-02-01 Kenichi Handa <handa@m17n.org>
25205
25206 * xfaces.c (Vface_resizing_fonts): New variable.
25207 (struct font_name): New member `resizing_ratio'.
25208 (font_resizing_ratio): New function.
25209 (split_font_name): Set font->resizing_ratio.
25210 (better_font_p): Pay attention to font->resizing_ratio.
25211 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
25212 RESX, and RESY fields.
25213 (try_alternative_families): Try scalable fonts if
25214 Vscalable_fonts_allowed is not Qt.
25215 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
25216
252172008-02-01 Dave Love <fx@gnu.org>
25218
25219 * xterm.c (xaw_scroll_callback): Cast correctly.
25220
252212008-02-01 Dave Love <fx@gnu.org>
25222
25223 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
25224 (lispy_kana_keys): Comment out.
25225 (make_lispy_event) [XK_kana_A]: Comment out.
25226
25227 * xterm.c (xaw_scroll_callback): Cast call_data.
25228 (XTread_socket): Deal with ASCII keysyms.
25229 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
25230
252312008-02-01 Dave Love <fx@gnu.org>
25232
25233 * xterm.c (Vx_keysym_table): New.
25234 (syms_of_xterm): Initialize it.
25235 (XTread_socket): Use it.
25236 From head: Eliminate incorrect optimization that tried to avoid
25237 decoding the output of X*LookupString.
25238 (x_get_font_repertory): Delete charset declaration.
25239
252402008-02-01 Kenichi Handa <handa@m17n.org>
25241
25242 * coding.c (detect_coding_charset): If only ASCII bytes are found,
25243 return 0.
bba3e508
SM
25244 (Fdefine_coding_system_internal):
25245 Setup CODING_ATTR_ASCII_COMPAT (attrs) correctly.
aac0c6e3
MR
25246
252472008-02-01 Dave Love <fx@gnu.org>
25248
25249 * coding.c (Fcheck_coding_system): Doc fix.
25250
25251 * editfns.c (Finsert_byte): Return a proper value.
25252
252532008-02-01 Kenichi Handa <handa@m17n.org>
25254
bba3e508
SM
25255 * coding.c (decode_coding): Fix args to translate_chars.
25256 Pay attention to Vstandard_translation_table_for_decode.
aac0c6e3
MR
25257 (encode_coding): Fix args to translate_chars. Pay attention to
25258 Vstandard_translation_table_for_encode.
25259
25260 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
25261 SINGLE_BYTE_CHAR_P.
25262
25263 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
25264 not by SINGLE_BYTE_CHAR_P.
25265
25266 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
25267 SINGLE_BYTE_CHAR_P.
25268
25269 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
25270 SINGLE_BYTE_CHAR_P.
25271
25272 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
25273 by SINGLE_BYTE_CHAR_P.
25274
25275 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
25276 SINGLE_BYTE_CHAR_P.
25277
252782008-02-01 Dave Love <fx@gnu.org>
25279
25280 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
25281
252822008-02-01 Dave Love <fx@gnu.org>
25283
25284 * fns.c (Flanginfo): Fix typo.
25285
25286 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
25287
252882008-02-01 Kenichi Handa <handa@m17n.org>
25289
25290 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
25291 (detect_coding_emacs_mule, detect_coding_iso_2022)
25292 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
25293 incomplete byte sequence. Don't update *mask when correctly detected.
25294 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
25295 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
25296 (detect_coding, detect_coding_system): Adjust for the changes above.
25297
252982008-02-01 Kenichi Handa <handa@m17n.org>
25299
25300 * character.c (char_string): Rename from
25301 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
25302 (string_char): Rename from string_char.
25303
25304 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
25305 if C is greater than MAX_3_BYTE_CHAR.
bba3e508
SM
25306 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE):
25307 Call string_char instead of string_char_with_unification.
aac0c6e3
MR
25308
253092008-02-01 Dave Love <fx@gnu.org>
25310
25311 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
25312
253132008-02-01 Kenichi Handa <handa@m17n.org>
25314
25315 * keymap.c (push_key_description): Pay attention to force_multibyte.
25316
25317 * regex.c (re_search_2): Fix for the case of unibyte buffer.
25318
253192008-02-01 Dave Love <fx@gnu.org>
25320
25321 * charset.c (define_charset_internal): Rename `supprementary'.
25322
25323 * Makefile.in (lisp, shortlisp): Remove latin-N.
25324
253252008-02-01 Dave Love <fx@gnu.org>
25326
25327 * xfns.c (x_window, x_window): Use use_xim.
25328
25329 * xterm.c (use_xim): Initialize.
25330 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
25331 (x_term_init): Maybe set use_xim.
25332
25333 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
25334
253352008-02-01 Kenichi Handa <handa@m17n.org>
25336
25337 * search.c (search_buffer): Fix case-fold-search of multibyte
25338 characters.
25339 (boyer_moore): Rename the last argument to char_high_bits.
25340
253412008-02-01 Kenichi Handa <handa@m17n.org>
25342
25343 * xdisp.c (display_string): Fix for the case of zero width glyph.
25344
25345 * xfns.c (x_set_font): Change the error message of the case that
25346 x_new_fontset returns Qt.
25347
25348 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
25349 (Finternal_set_lisp_face_attribute): Use signal_error for the
25350 error of invalid fontset.
25351
25352 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
25353 fontset, return Qt.
25354
253552008-02-01 Dave Love <fx@gnu.org>
25356
25357 * unexelf.c (unexec): Make .got handling not SGI-specific.
25358
25359 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
25360
25361 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
25362
25363 * keyboard.c (read_key_sequence): Fix type error.
25364
bba3e508
SM
25365 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte):
25366 Fix type error.
aac0c6e3
MR
25367
25368 * fontset.c (fontset_add): Return Lisp_Object.
25369
253702008-02-01 Dave Love <fx@gnu.org>
25371
25372 * charset.h (charset_ordered_list_tick): Declare extern.
25373
253742008-02-01 Kenichi Handa <handa@m17n.org>
25375
25376 The following changes (and some of 2008-02-01 changes of mine) are
25377 for handling syntax, category, and case conversion for unibyte
25378 characters by converting them to multibyte on the fly. With these
25379 changes, we don't have to setup syntax and case tables for unibyte
25380 characters in each language environment.
25381
25382 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
25383 multibyte if necessary.
25384
25385 * bytecode.c (Fbyte_code): Likewise.
25386
25387 * character.h (LEADING_CODE_LATIN_1_MIN)
25388 (LEADING_CODE_LATIN_1_MAX): New macros.
25389 (unibyte_to_multibyte_table): Extern it.
25390 (unibyte_char_to_multibyte): New macro.
25391 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
25392 (CHAR_LEADING_CODE): New macro.
25393 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
25394
25395 * character.c (unibyte_to_multibyte_table): New variable.
25396 (unibyte_char_to_multibyte): Move to character.h and define as macro.
25397 (multibyte_char_to_unibyte): If C is an eight-bit character,
25398 convert it to the corresponding byte value.
25399
25400 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
25401 not 1, signals an error. Update the elements of
25402 unibyte_to_multibyte_table.
25403 (init_charset_once): Initialize unibyte_to_multibyte_table.
25404 (syms_of_charset): Define the charset `iso-8859-1'.
25405
25406 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
25407 as is without converting it to unibyte. In a unibyte buffer,
25408 convert C to multibyte before checking the syntax.
25409
25410 * lisp.h (unibyte_char_to_multibyte): Delete extern.
25411
25412 * minibuf.c (Fminibuffer_complete_word): Use the macro
25413 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
25414
25415 * regex.h (struct re_pattern_buffer): New member target_multibyte.
25416
25417 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
bba3e508
SM
25418 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte.
25419 If that is zero, convert an eight-bit char to multibyte.
aac0c6e3
MR
25420 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
25421 non-emacs case.
25422 (PATFETCH): Convert an eight-bit char to multibyte.
25423 (HANDLE_UNIBYTE_RANGE): New macro.
25424 (regex_compile): Setup the compiled pattern for multibyte chars
25425 even if the given regex string is unibyte. Use PATFETCH_RAW
25426 instead of PATFETCH in many places. To handle `charset'
25427 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
25428 only for ASCII chars.
25429 (analyse_first) <exactn>: Simplify because the compiled pattern
25430 is multibyte.
25431 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
25432 <charset>: Use CHAR_LEADING_CODE to get leading codes.
25433 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
25434 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
25435 multibyte always 1.
25436 (re_search_2): In emacs, set the locale variable multibyte to 1,
25437 otherwise to 0. New local variable target_multibyte. Check it
bba3e508
SM
25438 to decide the multibyteness of STR1 and STR2.
25439 If target_multibyte is zero, convert unibyte chars to multibyte
aac0c6e3
MR
25440 before translating and checking fastmap.
25441 (TARGET_CHAR_AND_LENGTH): New macro.
25442 (re_match_2_internal): In emacs, set the locale variable multibyte
bba3e508
SM
25443 to 1, otherwise to 0. New local variable target_multibyte.
25444 Check it to decide the multibyteness of STR1 and STR2.
25445 Use TARGET_CHAR_AND_LENGTH to fetch a character from D.
aac0c6e3
MR
25446 <charset, charset_not>: If multibyte is nonzero, check fastmap
25447 only for ASCII chars. Call bcmp_translate with
25448 target_multibyte, not with multibyte.
25449 <begline>: Declare the local variable C as `unsigned'.
25450 (bcmp_translate): Change the last arg name to target_multibyte.
25451
25452 * search.c (compile_pattern_1): Don't adjust the multibyteness of
25453 the regexp pattern and the matching target. Set cp->buf.multibyte
25454 to the multibyteness of the regexp pattern. Set
25455 cp->but.target_multibyte to the multibyteness of the matching target.
25456 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
25457 FETCH_STRING_CHAR_ADVANCE.
25458 (Freplace_match): Convert unibyte chars to multibyte.
25459
25460 * syntax.c (char_quoted, back_comment, scan_words)
25461 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
25462 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
25463 unibyte chars to multibyte.
25464 (skip_chars): Delete the arg syntaxp, and move the code for
25465 handling syntaxes to skip_syntaxes. Change callers.
25466 Fix the case that the multibyteness of STRING and the current
25467 buffer doesn't match.
25468 (skip_syntaxes): New function.
25469 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
25470 SINGLE_BYTE_CHAR_P.
25471
254722008-02-01 Kenichi Handa <handa@m17n.org>
25473
25474 * xfaces.c (QCfontset): New variable.
25475 (LFACE_FONTSET): New macro.
25476 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
25477 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
25478 (Finternal_set_lisp_face_attribute)
25479 (Finternal_get_lisp_face_attribute): Handle QCfontset.
25480 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
25481 check also LFACE_FONTSET_INDEX.
25482 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
25483 attrs[LFACE_FONT_INDEX].
25484 (syms_of_xfaces): Intern and staticpro QCfontset.
25485
25486 * dispextern.h (enum lface_attribute_index): New member
25487 LFACE_FONTSET_INDEX.
25488
25489 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
25490
254912008-02-01 Kenichi Handa <handa@m17n.org>
25492
25493 * coding.c (coding_set_destination): Fix coding->destination for
25494 the case converting a region.
25495 (encode_coding_utf_8): Encode eight-bit chars as single byte.
25496 (encode_coding_object): Fix coding->dst_pos and
25497 coding->dst_pos_byte for the case converting a region.
25498
25499 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
25500
25501 * character.h (BYTE8_STRING): New macro.
25502
25503 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
25504
255052008-02-01 Kenichi Handa <handa@m17n.org>
25506
25507 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
25508 characters by octal form.
25509
25510 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
25511
25512 * buffer.h (_fetch_multibyte_char_len): Delete extern.
25513 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
25514 _fetch_multibyte_char_len.
25515 (FETCH_CHAR_AS_MULTIBYTE): New macro.
25516
25517 * casetab.c (set_canon, set_identity, shuffle): Simplify.
25518
25519 * casefiddle.c (casify_object): Simplify. Handle the case that
25520 the case conversion change the byte length.
25521 (casify_region): Likewise.
25522
25523 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
25524
25525 * character.c (_fetch_multibyte_char_len): Delete this variable.
25526 (syms_of_character): Setup Vprintable_chars.
25527
25528 * editfns.c (Fchar_equal): Fix for the unibyte case.
25529 (Finsert_byte): New function.
25530 (syms_of_editfns): Defsubr it.
25531
25532 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
25533 of direct code 0x3ffff.
25534
25535 * search.c (Freplace_match): Fix for the unibyte case.
25536
255372008-02-01 Kenichi Handa <handa@m17n.org>
25538
25539 * lread.c (safe_to_load_p): Fix the logic.
25540
25541 * syntax.c (scan_words): Don't treat characters belonging to
25542 different scripts as constituting a word.
25543
25544 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
25545
25546 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
25547
25548 * emacs.c (main): In the case of --unibyte, instead of aborting on
25549 finding non-empty buffer, make it unibyte.
25550
255512008-02-01 Kenichi Handa <handa@m17n.org>
25552
25553 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
25554 to create a fontset.
25555
255562008-02-01 Dave Love <fx@gnu.org>
25557
25558 * character.c (Funibyte_char_to_multibyte): Doc fix.
25559
25560 * xfns.c [HAVE_STDLIB_H]: Fix last change.
25561
255622008-02-01 Kenichi Handa <handa@m17n.org>
25563
25564 * fontset.c (fontset_add): Make the type `int'.
25565 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
25566
25567 * character.c (unibyte_char_to_multibyte)
25568 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
25569 charset_unibyte, not charset_primary.
25570
25571 * charset.h (charset_unibyte): Extern it instead of charset_primary.
25572
25573 * charset.c (charset_unibyte): Rename from charset_primary.
25574 (Funibyte_charset): Rename from Fprimary_charset.
25575 (Fset_unibyte_charset): Rename from Fset_primary_charset.
25576 (syms_of_charset): Adjust for the above changes.
25577
25578 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
25579 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
25580 it->multibyte_p is zero.
25581
25582 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
25583 Delete extern.
25584
255852008-02-01 Kenichi Handa <handa@m17n.org>
25586
25587 * coding.c (Fdefine_coding_system_internal): Fix category setting
25588 for a coding system of type iso-2022.
25589
255902008-02-01 Kenichi Handa <handa@m17n.org>
25591
25592 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
25593
255942008-02-01 Kenichi Handa <handa@m17n.org>
25595
25596 * syntax.c (Vnext_word_boundary_function_table): New variable.
25597 (next-word-boundary-function-table): Declare it as a Lisp variable
25598 in syms_of_syntax.
25599 (scan_words): Call functions in Vnext_word_boundary_function_table
25600 if any.
25601
25602 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
25603
25604 * fontset.c (fs_load_font): If fontp->charset is not negative,
25605 return fontp without setting its members.
25606
256072008-02-01 Dave Love <fx@gnu.org>
25608
25609 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
25610
25611 * m/sparc.h (HAVE_ALLOCA): Delete.
25612
25613 * s/irix6-5.h: Don't include strings.h.
25614 (bcopy, bzero, bcmp): Don't undef.
25615
25616 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
25617
25618 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
25619 (TIOCSIGSEND): Don't test IRIX6.
25620 (bcopy, bzero, bcmp): Define conditionally.
25621
256222008-02-01 Kenichi Handa <handa@m17n.org>
25623
25624 * buffer.c (Qas, Qmake, Qto): New variables.
25625 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
25626 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
25627
25628 * callproc.c (Fcall_process): Don't call insert_1_both directly if
25629 we are inserting a process output into a multibyte buffer.
25630
25631 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
25632 multibyte_char_to_unibyte.
25633
25634 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
25635 by the primary charset, make it eight-bit char.
25636 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
25637
25638 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
25639 (charset_8_bit__control, charset_8_bit_graphic)
25640 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
25641 (define_charset_internal): New function.
25642 (syms_of_charset): Call define_charset_internal for pre-defined
25643 charsets.
25644
25645 * charset.h (charset_8_bit): Extern it.
25646
25647 * coding.c (make_conversion_work_buffer): Adjust for the change
25648 of Fset_buffer_multibyte.
25649 (encode_coding_raw_text): Increment p0 in the loop.
25650
25651 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
25652
bba3e508
SM
25653 * xdisp.c (setup_echo_area_for_printing, set_message_1):
25654 Adjust for the change of Fset_buffer_multibyte.
aac0c6e3
MR
25655
25656 * fns.c (Fstring_to_multibyte): New function.
25657 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
25658
256592008-02-01 Dave Love <fx@gnu.org>
25660
25661 * xfns.c (x_put_x_image): Declare args.
25662
25663 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
25664 (try_font_list): Declare an arg.
25665
25666 * xdisp.c (message2_nolog, set_message): Declare an arg.
25667
25668 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
25669
25670 * syntax.c (scan_sexps_forward): Declare an arg.
25671
25672 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
25673 Declare an arg.
25674
25675 * lisp.h (Fnew_fontset): Declare.
25676
25677 * keymap.c (push_key_description): Call CHARACTERP correctly.
25678
25679 * fontset.c (fontset_add): Declare args. Call make_number correctly.
25680 (face_for_char): Delete unused vars.
25681 (Fset_fontset_font): Doc fix. Delete unused vars.
25682
25683 * doc.c (Fsubstitute_command_keys): Delete unused vars.
25684
25685 * composite.c (update_compositions): Declare arg.
25686
25687 * cm.c (calccost, cmgoto): Declare args.
25688
25689 * charset.c: Remove `emacs' conditional. Doc fixes.
25690 (map_char_table_for_charset): Declare.
25691
25692 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
25693
25694 * ccl.c: Remove `emacs' conditional.
25695
256962008-02-01 Kenichi Handa <handa@m17n.org>
25697
25698 The following changes are to allow specifying multiple font
25699 patterns for a character range (specified by script or charset).
25700
25701 * Makefile.in (abbrev.o): Depend on syntax.h.
25702 (xfaces.o): Depend on charset.h.
25703
25704 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
25705 SINGLE_BYTE_CHAR_P.
25706
25707 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
25708
25709 * character.h (Vchar_script_table): Extern it.
25710
25711 * character.c (Vscript_alist): Delete.
25712 (Vchar_script_table, Qchar_script_table): New variable.
25713 (syms_of_character): Declare Vchar_script_table as a lisp variable
25714 and initialize it.
25715
25716 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
25717 have property char-table-extra-slots, make no extra slot.
25718
25719 * dispextern.h (struct face): Delete member `charset'.
25720 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
25721 SINGLE_BYTE_CHAR_P.
25722 (choose_face_font, lookup_non_ascii_face, font_name_registry):
25723 Add prototypes.
25724 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
25725 (generate_ascii_font_name): Rename from generate_ascii_font.
25726
25727 * fontset.h (get_font_repertory_func): New prototype.
25728 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
25729 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
25730
25731 * fontset.c (Qprepend, Qappend): New variables.
25732 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
25733 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
25734 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
25735 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
25736 (fontset_ref_and_range, fontset_add, reorder_font_vector)
25737 (load_font_get_repertory): New functions.
25738 (fontset_set): Delete.
25739 (fontset_face): New arg FACE. Return face ID, not face.
25740 Complete re-write to handle new fontset structure. Change caller.
25741 (free_face_fontset): Use ASET istead of AREF (X) = Y.
25742 (face_for_char): Don't call lookup_face.
25743 (make_fontset_for_ascii_face): New arg FACE.
25744 (fs_load_font): New arg CHARSET_ID. Don't check
25745 Vfont_encoding_alist here.
25746 (find_font_encoding): New function.
25747 (list_fontsets): Use STRINGP, not ! NILP.
25748 (accumulate_script_ranges): New function.
bba3e508
SM
25749 (Fset_fontset_font, Fnew_fontset, Ffontset_info):
25750 Completely re-written to handle new fontset structure.
aac0c6e3 25751 (Ffontset_font): Return a copy of element.
bba3e508
SM
25752 (syms_of_fontset): Define symbols Qprepend and Qappend.
25753 Fix docstring of font-encoding-alist.
aac0c6e3
MR
25754
25755 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
25756 (Fset_fotset_font): Fix arguments to 5.
25757
25758 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
25759
25760 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
25761 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
25762 (highlight_trailing_whitespace): Adjust for the change of
25763 lookup_named_face.
25764
25765 * xfaces.c: Include charset.h.
25766 (load_face_font): Delete argument C. Change caller.
25767 (generate_ascii_font_name): Rename from generate_ascii_font.
25768 (font_name_registry): New function.
25769 (cache_face): Store ascii faces before non-ascii faces in buckets.
25770 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
25771 Lookup only ascii faces.
25772 (lookup_non_ascii_face): New function.
25773 (lookup_named_face): Delete argument C. Change caller.
25774 (lookup_derived_face): Delete argument C. Change caller.
25775 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
25776 a string, just call font_list with it.
25777 (choose_face_font): Delete arguments FACE and C. New arg
25778 FONT_SPEC. Change caller.
25779 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
25780 Change caller.
25781 (realize_non_ascii_face): New function.
25782 (realize_x_face): Call load_face_font here.
25783 (realize_tty_face): Delete argument C. Change caller.
25784 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
25785 get a face ID.
25786 (dump_realized_face): Don't print charset of FACE.
25787
25788 * xfns.c (x_set_font): Always call x_new_fontset and
25789 store_frame_parameter.
25790 (Fx_create_frame): Call x_new_fontset, not x_new_font.
25791 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
25792
25793 * xterm.h (x_get_font_repertory): Extern it.
25794
25795 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
25796 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
25797 it->multibyte_p is zero.
25798 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
25799 (x_new_fontset): If FONTSETNAME doesn't match any existing
25800 fontsets, create a new one.
25801 (x_get_font_repertory): New function.
25802
258032008-02-01 Kenichi Handa <handa@m17n.org>
25804
25805 * coding.c (Ffind_coding_systems_region_internal): Detect an
25806 ASCII only string correctly.
25807
25808 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
25809 version is 0.
25810
258112008-02-01 Kenichi Handa <handa@m17n.org>
25812
25813 * lread.c: Include "coding.h".
25814 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
25815 (load_each_byte, unread_char): New variables.
25816 (readchar_backlog): Delete.
25817 (readchar): Return a character unless load_each_byte is nonzero.
25818 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
25819 cons. If unread_char is not -1, simply return it.
25820 (unreadchar): Handle the case that readcharfun is
25821 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
25822 (read_multibyte): Delete.
25823 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
25824 (read_emacs_mule_char): New functions.
25825 (Fload): Even if the file doesn't have the extension ".elc", if
25826 safe_to_load_p returns a positive version number, assume that the
25827 file contains bytecompiled code. If the version is less than 22,
25828 load the file while decoding multibyte sequences by emacs-mule.
25829 (readevalloop): Don't use readchar_backlog.
25830 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
25831 (Fread_from_string): Pay attention to the case that STREAM is a cons.
25832 (read_escape): Delete the arg BYTEREP.
25833 (read1): Set load_each_byte to 1 temporarily while handling
25834 #@NUMBER. Don't call read_multibyte.
25835 (read_vector): Call Fread with a cons. If readcharfun is
25836 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
25837 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
25838 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
25839 and Qload_force_doc_strings.
25840
258412008-02-01 Kenichi Handa <handa@m17n.org>
25842
bba3e508
SM
25843 * xdisp.c (face_before_or_after_it_pos):
25844 Call FETCH_MULTIBYTE_CHAR with byte postion, not char position.
aac0c6e3
MR
25845
258462008-02-01 Kenichi Handa <handa@m17n.org>
25847
25848 * character.h (TRAILING_CODE_P): New macro.
25849 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
25850 (string_char_with_unification): Fix prototype.
25851 (Vscript_alist): Extern it.
25852
25853 * character.c (Vscript_alist): New variable.
25854 (string_char_with_unification, str_as_unibyte)
25855 (string_escape_byte8): Add `const' to local variables.
25856 (syms_of_character): Declare script-alist as a Lisp variable.
25857
25858 * charset.h (Vcharset_ordered_list): Extern it.
25859 (charset_ordered_list_tick): Extern it.
25860 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
25861 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
25862 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
25863 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
25864 (Funify_charset): Adjust for the change of Funify_charset.
25865
25866 * charset.c (charset_ordered_list_tick): New variable.
25867 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
25868 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
6e051c0a 25869 deunify instead of unify a charset.
aac0c6e3
MR
25870 (string_xstring_p): Add `const' to local variables.
25871 (find_charsets_in_text): Add `const' to arguments and local variables.
bba3e508
SM
25872 (encode_char): Adjust for the change of Funify_charset.
25873 Fix detecting of invalid code.
aac0c6e3
MR
25874 (Fset_charset_priority): Increment charset_ordered_list_tick.
25875 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
25876 and TO_CODE.
25877
25878 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
25879 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
25880 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
25881 (decode_coding_ccl, consume_chars)
25882 (Ffind_coding_systems_region_internal)
25883 (Fcheck_coding_systems_region): Add `const' to local variables.
25884
25885 * print.c (print_object): Use octal form for printing the
25886 contents of a bool vector.
25887
258882008-02-01 Dave Love <fx@gnu.org>
25889
25890 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
25891 <version == 20>: Refuse to load.
25892
258932008-02-01 Dave Love <fx@gnu.org>
25894
25895 * fns.c: Move coding.h.
25896 (Qcodeset, Qdays, Qmonths): New.
25897 (concat): Use CHARACTERP instead of INTEGERP.
25898 (Flocale_codeset): Delete.
25899 (Flanginfo): New function.
25900 (syms_of_fns): Change accordingly.
25901
25902 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
25903
259042008-02-01 Dave Love <fx@gnu.org>
25905
bba3e508
SM
25906 * casetab.c (init_casetab_once, init_casetab_once):
25907 Fix CHAR_TABLE_SET call.
aac0c6e3
MR
25908
25909 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
25910
25911 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
25912
25913 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
25914 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
25915 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
25916
25917 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
25918
25919 * coding.c (ENCODE_DESIGNATION, decode_eol)
25920 (make_conversion_work_buffer, code_conversion_restore)
25921 (Fdefine_coding_system_internal): Convert Lisp types.
25922 (code_conversion_restore): Use EQ, not ==.
25923 (Fencode_coding_string): Fix code_convert_string call.
25924
25925 * coding.h (code_convert_region): Fix prototype.
25926
25927 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
25928
25929 * fontset.c (fontset_ref, fontset_set, fs_load_font)
25930 (Ffontset_info): Convert Lisp types.
25931
25932 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
25933
25934 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
25935
25936 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
25937
25938 * chartab.c: Include "...h", not <...h> in some cases.
25939
25940 * callproc.c (Fcall_process): Remove unused variables.
25941
259422008-02-01 Dave Love <fx@gnu.org>
25943
25944 * coding.c (Fset_coding_system_priority): Allow null arg list.
25945
259462008-02-01 Dave Love <fx@gnu.org>
25947
25948 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
25949 (Fself_insert_and_exit): Use CHARACTERP.
25950
25951 * callproc.c (Fcall_process): Remove unused vars.
25952
25953 * xterm.c (XTread_socket): Add extra dead keysyms.
25954
25955 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
25956
25957 * dispextern.h: Remove prototypes for redraw_frame,
25958 redraw_garbaged_frames.
25959
25960 * cmds.c (Fself_insert_command): Use CHARACTERP.
25961
25962 * chartab.c (make_sub_char_table): Remove unused var.
25963 (Fset_char_table_default, Fmap_char_table): Doc fix.
25964
25965 * keymap.c (access_keymap): Remove generic char code.
25966 (push_key_description): Use CHARACTERP.
25967
259682008-02-01 Dave Love <fx@gnu.org>
25969
25970 * charset.c: Doc fixes.
25971 (Funify_charset): Extra checking.
25972
259732008-02-01 Dave Love <fx@gnu.org>
25974
25975 * lread.c: Remove some unused variables.
25976 (safe_to_load_p): If safe, return the magic number version byte.
25977 (Fload): Maybe use load-with-code-conversion.
25978
259792008-02-01 Kenichi Handa <handa@m17n.org>
25980
25981 * category.c (Fmodify_category_entry): Don't modify the contents
bba3e508
SM
25982 of category_set for characters out of the range.
25983 Avoid unnecessary modification.
aac0c6e3
MR
25984
25985 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
25986 Vchar_unify_table. The default value of the table is now nil.
25987
25988 * character.c (syms_of_character): Setup Vchar_width_table for
25989 eight-bit-control and raw-byte chars.
25990
bba3e508
SM
25991 * charset.h (enum define_charset_arg_index):
25992 Delete charset_arg_parents and add charset_arg_subset and
aac0c6e3
MR
25993 charset_arg_superset.
25994 (enum charset_attr_index): Delete charset_parents and add
25995 charset_subset and charset_superset.
25996 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
25997 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
25998 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
25999 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
26000 (CHARSET_SUPERSET): New macros.
26001 (charset_work): Extern it.
26002 (ENCODE_CHAR): Use charset_work.
26003 (CHAR_CHARSET_P): Adjust for the change of encoder format.
26004 (map_charset_chars): Extern it.
26005
26006 * charset.c (load_charset_map): Set the default value of encoder
26007 and deunifier char-tables to nil.
bba3e508
SM
26008 (map_charset_chars): Change argument. Change callers.
26009 Use map_char_table_for_charset instead of map_char_table.
aac0c6e3
MR
26010 (Fmap_charset_chars): New optional args from_code and to_code.
26011 (Fdefine_charset_internal): Adjust for the change of
26012 `define-charset' (:parents -> :subset or :superset).
26013 (charset_work): New variable.
26014 (encode_char, syms_of_charset): Adjust for the change of
26015 Fdefine_charset_internal.
26016 (Ffind_charset_string): Setup the vector `charsets' correctly.
26017
bba3e508
SM
26018 * chartab.c (sub_char_table_ref_and_range): New arg default.
26019 Fix the previous change.
aac0c6e3
MR
26020 (char_table_ref_and_range): Adjust for the above change.
26021 (map_sub_char_table_for_charset): New function.
26022 (map_char_table_for_charset): New function.
26023
26024 * keymap.c (describe_vector): Handle a char-table directly here.
26025 (describe_char_table): Delete.
26026
26027 * lisp.h (map_charset_chars): Delete.
26028
260292008-02-01 Dave Love <fx@gnu.org>
26030
26031 * fns.c (count_combining): Comment out (unused).
26032 (Flocale_codeset): New.
26033 (syms_of_fns): Defsubr it.
26034
26035 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
26036 (size_t): Remove.
26037
260382008-02-01 Dave Love <fx@gnu.org>
26039
26040 * Makefile.in (chartab.o): Depend on charset.h.
26041
260422008-02-01 Kenichi Handa <handa@m17n.org>
26043
26044 * character.c (syms_of_character): Set the default value of
26045 Vprintable_chars to Qnil.
26046
260472008-02-01 Dave Love <fx@gnu.org>
26048
26049 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
26050
260512008-02-01 Kenichi Handa <handa@m17n.org>
26052
26053 * charset.c (load_charset_map): Handle the case that from < to
26054 correctly.
26055
26056 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
26057 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
26058 Pay attention to raw-8-bit chars.
26059
260602008-02-01 Kenichi Handa <handa@m17n.org>
26061
26062 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
26063 It is not bytecompiled now.
26064
26065 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
26066 (charset_jisx0208): New variables.
26067 (Fdefine_charset_internal): Setup them if appropriate.
26068 (init_charset_once): Initialize them to -1.
26069
26070 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
26071 (charset_jisx0208): Extern them.
26072
26073 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
26074 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
26075 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
26076 (setup_iso_safe_charsets): Fix arguments to Fassq.
26077 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
26078 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
26079 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
26080 (encode_coding_iso_2022): Change the 1st arg to
26081 ENCODE_ISO_CHARACTER to a variable.
26082
260832008-02-01 Kenichi Handa <handa@m17n.org>
26084
26085 * charset.h (enum define_charset_arg_index): New enums
26086 charset_arg_min_code and charset_arg_max_code.
26087 (struct charset): New member char_index_offset.
26088
26089 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
26090 Take charset->char_index_offset into account.
26091 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
26092 args[charset_arg_max_code]. Setup charset.char_index_offset.
26093 (syms_of_charset): Fix args to Fdefine_charset_internal.
26094
260952008-02-01 Dave Love <fx@gnu.org>
26096
26097 * coding.c (decode_coding_utf_8): Reject overlong sequences.
26098
260992008-02-01 Dave Love <fx@gnu.org>
26100
26101 * coding.c: Doc fixes.
26102 (Fcoding_system_aliases): Fix return value.
26103 (Qmac): Remove (duplicated) definition.
26104
261052008-02-01 Dave Love <fx@gnu.org>
26106
362654a6
JB
26107 * charset.c (Fcharset_priority_list, Fset_charset_priority):
26108 New functions.
aac0c6e3
MR
26109
26110 * character.c (Fstring): Doc fix.
26111
26112 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
26113
362654a6 26114 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
26115 (font-encoding-alist): Doc fix.
26116
261172008-02-01 Dave Love <fx@gnu.org>
26118
26119 * term.c (costs_set): Declare static, non-initialized for pcc.
26120 (encode_terminal_code): Remove unused var.
26121
26122 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
26123 for K&R.
26124
26125 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
26126
26127 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
26128 (suffixes): Move out of make_subsidiaries for K&R.
26129
26130 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
26131
26132 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
26133
261342008-02-01 Dave Love <fx@gnu.org>
26135
26136 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
26137
26138 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
26139
261402008-02-01 Yong Lu <lyongu@asia-infonet.com>
26141
26142 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
26143
26144 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
26145
261462008-02-01 Kenichi Handa <handa@m17n.org>
26147
26148 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
26149 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
26150
261512008-02-01 Kenichi Handa <handa@m17n.org>
26152
26153 * coding.c (decode_coding_charset): Adjust for the change of
26154 Fdefine_coding_system_internal.
26155 (Fdefine_coding_system_internal): For a coding system of
26156 `charset' type, store a list of charset IDs in
26157 `charset_attr_charset_valids' element of coding attributes.
26158
261592008-02-01 Kenichi Handa <handa@m17n.org>
26160
26161 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
bba3e508
SM
26162 (emacs_mule_char): New arg src. Delete arg `composition'.
26163 Change caller. Handle 2-byte and 3-byte charsets correctly.
aac0c6e3
MR
26164 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
26165 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
26166 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
ef1b0ba7
SM
26167 (DECODE_EMACS_MULE_21_COMPOSITION):
26168 Call DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
aac0c6e3
MR
26169 sequence.
26170 (decode_coding_emacs_mule): Handle composition correctly. Rewind
26171 `src' and `consumed_chars' correctly before calling emacs_mule_char.
26172 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
26173 and alt&rule composition.
26174 (decode_coding_iso_2022): Handle composition correctly.
26175 (init_coding_once): Setup emacs_mule_bytes for private charsets.
26176
26177 * charset.c (Fdefine_charset_internal): Fix bug for the case of
26178 re-defining a charset. If the charset has :emacs-mule-id, setup
26179 emacs_mule_bytes.
26180 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
26181
261822008-02-01 Kenichi Handa <handa@m17n.org>
26183
26184 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
26185 (encode_coding_big5, encode_coding_charset): If coding requires safe
26186 encoding, produce a character specified by
26187 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
26188
261892008-02-01 Dave Love <fx@gnu.org>
26190
26191 * xterm.c (XSetIMValues): Declare.
26192
26193 * process.c: Conditionally include sys/wait.h, pty.h.
26194
26195 * print.c (print_object): Fix print format for 64-bit systems.
26196
26197 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
26198
26199 * buffer.c (emacs_strerror): Declare.
26200
26201 * fontset.c (Fclear_face_cache): Declare.
26202 (accumulate_font_info): Comment-out (unused).
26203 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
26204 variables.
26205
26206 * character.h (string_escape_byte8): Declare.
26207
bba3e508
SM
26208 * charset.c (load_charset_map, load_charset_map_from_file):
26209 Remove unused vars.
aac0c6e3
MR
26210 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
26211 (Fmap_charset_chars): Doc fix.
26212
26213 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
26214 (Fset_coding_system_priority, Fset_coding_system_priority)
26215 (Fdefine_coding_system_internal): Doc fix.
26216
262172008-02-01 Dave Love <fx@gnu.org>
26218
26219 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
26220
262212008-02-01 Kenichi Handa <handa@m17n.org>
26222
26223 * character.c (string_escape_byte8): Make multibyte string with
26224 correct size.
26225
26226 * charset.c (Fmake_char): Delete unnecessary code.
26227
262282008-02-01 Kenichi Handa <handa@m17n.org>
26229
26230 * xfns.c (x_encode_text): Allocate coding.destination here, and
26231 call encode_coding_object with dst_object Qnil.
26232
26233 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
26234 multibyte form correctly.
26235
26236 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
26237 against Vfont_encoding_alist.
26238
26239 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
26240 handling of charset list.
26241 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
26242 (decode_coding_object): Move point to coding->dst_pos before
26243 calling post-read-conversion function.
26244 (encode_coding_object): Give correct arguments to
26245 pre-write-conversion. Ignore the return value of
26246 pre-write-conversion function. Pay attention to the case that
26247 pre-write-conversion changes the current buffer. If dst_object is
26248 Qt, even if coding->src_bytes is zero, allocate at least one byte
26249 to coding->destination.
26250
26251 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
26252
26253 * charset.c (Fmake_char): Make it more backward compatible.
26254 (Fmap_charset_chars): Fix docstring.
26255
262562008-02-01 Dave Love <fx@gnu.org>
26257
26258 * coding.c: Doc fixes.
26259 (Fdefine_coding_system_alias): Use names, not symbols, in
26260 coding-system-alist.
26261
262622008-02-01 Kenichi Handa <handa@m17n.org>
26263
26264 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
26265 of calling free_realized_face.
26266
262672008-02-01 Yong Lu <lyongu@asia-infonet.com>
26268
26269 * charset.c (read_hex): Don't treat SPC as a comment starter.
26270 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
26271 (Fdecode_char): Fix typo.
26272
262732008-02-01 Kenichi Handa <handa@m17n.org>
26274
26275 * charset.h (struct charset): New member `code_space_mask'.
26276
26277 * coding.c (coding_set_source): Delete the local variable beg_byte.
26278 (encode_coding_charset, Fdefine_coding_system_internal):
26279 Delete the local variable charset.
bba3e508
SM
26280 (Fdefine_coding_system_internal):
26281 Setup attrs[coding_attr_charset_valids] correctly.
aac0c6e3
MR
26282
26283 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
26284 member to check if CODE is valid or not.
26285 (Fdefine_charset_internal): Initialize `code_space_mask' member.
26286 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
26287 is within the range of charset->min_code and carset->max_code.
26288
262892008-02-01 Dave Love <fx@gnu.org>
26290
26291 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
26292
26293 * dispextern.h (generate_ascii_font): Fix return type.
26294
26295 * xfaces.c (generate_ascii_font): Fix arg declaration.
26296
26297 * coding.c (coding_inherit_eol_type)
26298 (Fset_terminal_coding_system_internal)
26299 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
26300
263012008-02-01 Kenichi Handa <handa@m17n.org>
26302
bba3e508
SM
26303 * coding.c (decode_coding_charset, encode_coding_charset):
26304 Handle multiple charsets correctly.
aac0c6e3
MR
26305
263062008-02-01 Kenichi Handa <handa@m17n.org>
26307
26308 * search.c (boyer_moore): Fix handling of multibyte character
26309 translation.
26310
26311 * xdisp.c (display_mode_element): When the variable `elt' is
26312 changed, update `this' and `lisp_string'.
26313
263142008-02-01 Kenichi Handa <handa@m17n.org>
26315
26316 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
26317
26318 * callproc.c (Fcall_process): Be sure to give the current buffer
26319 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
26320
26321 * charset.c (struct charset_map_entries): New struct.
26322 (load_charset_map): Rename from parse_charset_map. New args
26323 entries and n_entries. Change caller.
26324 (load_charset_map_from_file): Rename from load_charset_map.
26325 Change caller. New arg control_flag. Call load_charset_map at
26326 the tail.
26327 (load_charset_map_from_vector): New function.
26328 (Fdefine_charset_internal): Setup charset.compact_codes_p.
26329 (encode_char): If the charset is compact, change a character index
26330 to a code point.
26331
26332 * coding.c (coding_alloc_by_making_gap): Check the case that the
26333 source and destination are the same correctly.
26334 (decode_coding_raw_text): Set coding->consumed_char and
26335 coding->consumed to 0.
26336 (produce_chars): If coding->chars_at_source is nonzero, update
26337 coding->consumed_char and coding->consumed before calling
26338 alloc_destination.
26339 (Fdefine_coding_system_alias): Register ALIAS in
26340 Vcoding_system_alist.
26341 (syms_of_coding): Define `no-conversion' coding system at the tail.
26342
26343 * fileio.c (Finsert_file_contents): Set coding_system instead of
26344 val. If the current buffer is multibyte, always call
26345 decode_coding_gap.
26346
26347 * xfaces.c (try_font_list): Give higher priority to fontset's
26348 family than face's family.
26349
263502008-02-01 Kenichi Handa <handa@m17n.org>
26351
26352 * callproc.c (Fcall_process): Be sure to give the current buffer
26353 to decode_coding_c_string.
26354
26355 * xfaces.c (try_font_list): Give a family specified in a fontset
26356 higher priority than a family specified in a face.
26357
263582008-02-01 Kenichi Handa <handa@m17n.org>
26359
26360 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
26361 Fix arguments to insert_from_buffer.
26362
26363 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
26364
263652008-02-01 Kenichi Handa <handa@m17n.org>
26366
26367 * coding.c (produce_chars): Set the variable `multibytep' correctly.
26368 (decode_coding_gap): Set coding->dst_multibyte correctly.
26369
263702008-02-01 Kenichi Handa <handa@m17n.org>
26371
26372 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
26373 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
26374 (encode_coding_utf_16): Substitute coding->default_char for
26375 non-Unicode characters.
26376 (decode_coding): Don't call record_insert here.
26377 (setup_coding_system): Initialize `surrogate' of
26378 coding->spec.utf_16 to 0.
26379 (EMIT_ONE_BYTE): Fix for multibyte case.
26380
26381 * insdel.c (insert_from_gap): Call record_insert.
26382
263832008-02-01 Kenichi Handa <handa@m17n.org>
26384
26385 * casefiddle.c (casify_region): Fix multibyte case.
26386
26387 * character.c (c_string_width): Add return type `int'.
26388 (char_string_with_unification): Delete arg ADVANCED.
26389
26390 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
26391 (CHAR_STRING): Adjust for the change of char_string_with_unification.
26392 (CHAR_STRING_ADVANCE): Make it do-while statement.
26393
26394 * chartab.c (sub_char_table_set_range): Optimize for the case
26395 DEPTH == 3. Add workaround code for a GCC optimization bug.
26396
26397 * charset.c (parse_charset_map): Remove an unused variable.
26398
26399 * coding.c: Delete unused variables.
26400
26401 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
26402 earlier. If inserted is zero and the coding system doesn't
26403 require flushing, don't call decode_coding_gap.
26404
26405 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
26406
264072008-02-01 Kenichi Handa <handa@m17n.org>
26408
26409 The following changes are for using Unicode as an internal
26410 character model, and use UTF-8 format for buffer/string
26411 representation.
26412
26413 * .gdbinit (xchartable): Adjust for the change of char table structure.
26414 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
26415
26416 * Makefile.in (obj): Add character.o and chartab.o.
26417 (lisp, shortlisp): Remove utf-8.elc.
26418 (*.o): For many files, change dependency on charset.h to
26419 character.h, and add dependency on character.h.
26420 (character.o, chartab.o): New targets.
26421
26422 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
26423 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
26424 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
26425 of "charset.h".
26426
26427 * dired.c, filelock.c: Include "character.h".
26428
26429 * alloc.c: Include "character.h" instead of "charset.h".
26430 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
26431 (syms_of_alloc): Remove defsubr for Smake_char_table.
26432
26433 * buffer.c: Include "character.h" instead of "charset.h", don't
26434 include "coding.h".
26435 (Fset_buffer_multibyte): Adjust for UTF-8.
26436
26437 * buffer.h: EXFUN Fbuffer_live_p.
26438
26439 * callproc.c: Include "character.h" instead of "charset.h".
26440 (Fcall_process): Big change for the new code-conversion APIs.
26441
26442 * casetab.c: Include "character.h" instead of "charset.h".
26443 (set_canon, set_identity, shuffle): Adjust for the new
26444 map_char_table spec.
26445 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
26446 accessing the char table structure.
26447
26448 * chartab.c: New file that implements char table.
26449
26450 * category.c: Include "character.h".
26451 (copy_category_entry): New function.
26452 (copy_category_table): Call map_char_table and copy_category_entry.
26453 (Fmake_category_table): Initialize all top-level slots.
26454 (char_category_set): New function.
26455 (modify_lower_category_set): Delete.
26456 (Fmodify_category_entry): Call char_table_ref_and_range.
26457
26458 * category.h (CATEGORY_SET): Just call char_category_set.
26459
26460 * ccl.c: Include "character.h".
26461 (Qccl, Qcclp): New variables.
26462 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
26463 it's less than 256.
26464 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
26465 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
26466 and DST type.
26467 (ccl_driver): Change types of argument, adjust code accordingly.
26468 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
26469 ccl_driver.
26470 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
26471
26472 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
26473 New members src_multibyte, dst_multibyte, consumed, and produced.
26474 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
26475 (CODING_SPEC_CCL_PROGRAM): New macro.
26476 (ccl_driver): Update prototype.
26477 (Qccl, Qcclp, Fccl_program_p): Extern them.
26478 (CHECK_CCL_PROGRAM): New macro.
26479
26480 * character.c, character.h, chartab.c: New files.
26481
26482 * charset.c: Mostly re-written. Move character and multibyte sequence
26483 handling codes to character.c.
26484
26485 * charset.h: Mostly re-written. Move character and multibyte sequence
26486 handling codes to character.h.
26487
26488 * coding.c, coding.h: Mostly re-written.
26489
26490 * composite.c: Include "character.h" instead of "charset.h".
26491 (CHAR_WIDTH): Move to character.h.
26492 (HASH_KEY, HASH_VALUE): Delete.
26493
26494 * composite.h (enum composition_method): Change order of enumeration
26495 symbols.
26496
26497 * data.c: Include "character.h" instead of "charset.h".
26498 (Faref): Call CHAR_TABLE_REF for a char table.
26499 (Faset): Call CHAR_TABLE_SET for a char table.
26500
26501 * dispextern.h (free_realized_face, check_face_attribytes)
26502 (generate_ascii_font): Extern them.
26503 (free_realized_multibyte_face): Delete extern.
26504
26505 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
26506 table structure.
26507
26508 * editfns.c: Include "character.h" instead of "charset.h".
26509 (Fchar_to_string): Always call CHAR_STRING.
26510
26511 * emacs.c (main): Call init_charset_once, init_charset,
26512 syms_of_chartab, and syms_of_character.
26513
26514 * fileio.c: Include "character.h" instead of "charset.h".
26515 (Finsert_file_contents): Big change for the new code-conversion API.
26516 (choose_write_coding_system, Fwrite_region): Likewise.
26517 (build_annotations_2): Delete.
26518 (e_write): Big change for the new code-conversion API.
26519
26520 * fns.c: Include "character.h" instead of "charset.h".
26521 (copy_sub_char_table): Move to chartab.c.
26522 (Fcopy_sequence): Call copy_char_table for a char table.
26523 (concat): Delete codes calling count_multibyte.
26524 (string_char_to_byte, string_byte_to_char): Adjust for the new
26525 multibyte form.
26526 (internal_equal): Adjust for the change of char table structure.
26527 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
26528 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
26529 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
26530 (char_table_translate, optimize_sub_char_table)
26531 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
26532 chartab.c.
26533 (char_table_ref_and_index): Delete.
26534 (HASH_KEY, HASH_VALUE): Move to lisp.h.
26535 (Fmd5): Call preferred_coding_system instead of accessing
26536 Vcoding_category_list. Adjust for the new code-conversion API.
26537 (syms_of_fns): Move defsubr for char table related functions to
26538 chartab.c.
26539
26540 * fontset.c: Mostly re-written.
26541
26542 * fontset.h (struct font_info): Change type of the member encoding_type.
26543 (enum FONT_SPEC_INDEX): New enum.
26544 (fontset_font_pattern, fs_load_font): Update prototype.
26545 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
26546
26547 * indent.c: Include "character.h" instead of "charset.h".
26548 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
26549
26550 * insdel.c: Include "character.h" instead of "charset.h".
26551 (copy_text): Don't refer to Vnonascii_translation_table.
26552 (insert_from_gap): New function.
26553
26554 * keyboard.c: Include "character.h" instead of "charset.h".
26555 (command_loop_1): Never call direct_output_forward_char before
26556 a non-ASCII character.
26557 (read_char): If Vkeyboard_translate_table is a char table, always
26558 translate a character.
26559
26560 * keymap.c: Include "character.h".
26561 (store_in_keymap): Handle the case that IDX is a cons.
26562 (Fdefine_key): Handle the case that KEY is a cons and the car part
26563 is also a cons (range).
26564 (push_key_description): Adjust for the new character code.
26565 (describe_vector): Call describe_char_table for a char table.
26566 (describe_char_table): New function.
26567
26568 * keymap.h (describe_char_table): Extern it.
26569
26570 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
26571 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
26572 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
26573 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
26574 Delete.
26575 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
26576 structure.
26577 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
26578 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
26579 (CHARTAB_SIZE_BITS_3): New macros.
26580 (chartab_size): Extern it.
26581 (struct Lisp_Char_Table): Re-design.
26582 (struct Lisp_Sub_Char_Table): New structure.
26583 (HASH_KEY, HASH_VALUE): Move from fns.c.
26584 (CHARACTERBITS): Define as 22.
26585 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
26586 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
26587 (GC_SUB_CHAR_TABLE_P): New macro.
26588 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
ef1b0ba7 26589 (code_convert_string_norecord): Delete extern.
aac0c6e3
MR
26590 (init_character_once, syms_of_character, init_charset)
26591 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
26592
26593 * lread.c: Include "character.h".
26594 (read_multibyte): New arg NBYTES.
26595 (read_escape): Change the meaning of returned *BYTEREP.
26596 (to_multibyte): Delete.
26597 (read1): Adjust the handling of char table and string.
26598
26599 * print.c: Include "character.h" instead of "charset.h".
26600 (print_string): Convert 8-bit raw bytes to octal form by
26601 string_escape_byte8.
26602 (print_object): Adjust for the new multibyte form. Print 8-bit
26603 raw bytes always in octal form. Handle sub char table correctly.
26604
26605 * process.c: Include "character.h" instead of "charset.h".
26606 (read_process_output, send_process): Adjust for the new
26607 code-conversion API.
26608
26609 * puresize.h (BASE_PURESIZE): Increase.
26610
26611 * regex.c: Include "character.h" instead of "charset.h".
26612 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
26613 (regex_compile): Accept a range whose starting and ending
26614 character have different leading bytes.
26615 (analyse_first): Adjust for the above change.
26616
26617 * search.c: Include "character.h" instead of "charset.h".
26618 (search_buffer, boyer_moore): Adjust for the new multibyte form.
26619 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
26620
26621 * syntax.c: Include "character.h" instead of "charset.h".
26622 (syntax_parent_lookup): Delete.
26623 (Fmodify_syntax_entry): Accept a cons as CHAR.
26624 (skip_chars): Adjust for the new multibyte form.
26625 (init_syntax_once): Call char_table_set_range instead of directly
26626 accessing the structure of a char table.
26627
26628 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
26629 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
26630 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
26631 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
26632
26633 * term.c: Include "buffer.h" and "character.h".
26634 (encode_terminal_code, write_glyphs): Adjust for the new
26635 code-conversion API.
26636 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
26637
26638 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
26639
26640 * xdisp.c: Include "character.h".
26641 (get_next_display_element): Adjust for the new multibyte form.
26642 (disp_char_vector): Adjust for the new char table structure.
26643 (decode_mode_spec_coding): Adjust for the new structure of
26644 coding system.
26645 (decode_mode_spec): Adjust for the new code-conversion API.
26646
26647 * xfaces.c: Include "character.h" instead of "charset.h".
26648 (load_face_font): Adjust for the change of choose_face_font and
26649 FS_LOAD_FONT.
26650 (generate_ascii_font): New function.
26651 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
26652 (set_font_frame_param): Adjust for the change of choose_face_font.
26653 (free_realized_face): Make it public.
26654 (free_realized_faces_for_fontset): Rename from
26655 free_realized_multibyte_face. Free also faces realized for ASCII.
26656 (choose_face_font): Change arguments. Adjust for the change of
26657 fontset_font_pattern and FS_LOAD_FONT.
26658
26659 * xfns.c: Include "character.h".
26660 (x_encode_text): Adjust for the new code-conversion API.
26661
26662 * xselect.c: Don't include "charset.h".
26663 (selection_data_to_lisp_data): Adjust for the new code conversion API.
26664
26665 * xterm.c: Include "character.h".
26666 (x_encode_char): New argument CHARSET. Change caller.
26667 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
26668 Call ENCODE_CHAR instead of SPLIT_CHAR.
26669 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
26670 CHAR_WIDTH instead of CHARSET_WIDTH.
26671 (XTread_socket): Adjust for the new code-conversion API.
26672 (x_new_font): Adjust for the change of FS_LOAD_FONT.
26673 (x_load_font): Adjust for the change of struct font.
26674
266752008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
26676
26677 * xfaces.c (face_at_buffer_position): Remove unused vars.
26678
266792008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
26680
26681 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
26682 Fix overflow checking.
26683
266842008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
26685
26686 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
26687 Cancel previous change.
26688
266892008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
26690
26691 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
26692 ccl->eight_bit_control. Fix check for buffer overflow.
26693 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
26694 (ccl_driver): Initialize extra_bytes to 0.
26695
266962008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
26697
26698 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
26699 return it ORed with ctrl_modifier.
26700
267012008-01-29 Miles Bader <miles@gnu.org>
26702
26703 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
26704
267052008-01-28 Jason Rumney <jasonr@gnu.org>
26706
26707 * w32.c (stat): Don't double check for networked drive.
26708
267092008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
26710
26711 * window.c (run_window_configuration_change_hook): New function.
26712 Code extracted from set_window_buffer. Set the selected frame.
26713 (set_window_buffer): Use it.
26714 * window.h (run_window_configuration_change_hook): Declare.
26715 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
26716
26717 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
26718
267192008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
26720
26721 * Makefile.in: Remove references to unused macros.
26722
267232008-01-26 Eli Zaretskii <eliz@gnu.org>
26724
26725 * w32.c (g_b_init_get_sid_sub_authority)
26726 (g_b_init_get_sid_sub_authority_count): New static variables.
26727 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
26728 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
26729 (init_user_info): Use them to retrieve uid and gid.
26730 Use 500/513, the Windows defaults, as Administrator's uid/gid.
26731 (fstat): Use pw_uid and pw_gid from the_passwd structure for
26732 st_uid and st_gid of the file.
26733
267342008-01-26 Jason Rumney <jasonr@gnu.org>
26735
26736 * w32.c (logon_network_drive): New function.
26737 (stat): Use it.
26738
267392008-01-26 Chong Yidong <cyd@stupidchicken.com>
26740
26741 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
26742 invisible text covered with an ellipsis.
26743
267442008-01-25 Richard Stallman <rms@gnu.org>
26745
26746 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
26747 jump back to beginning. Move some other initializations after that.
26748 (Qwindow_text_change_functions, Vwindow_text_change_functions):
26749 New variables.
26750 (syms_of_xdisp): Init them.
26751
26752 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
26753
26754 * buffer.c (reset_buffer_local_variables):
26755 Implement `permanent-local-hook'.
26756 (Qpermanent_local_hook): New variable.
26757 (syms_of_buffer): Init and staticpro it.
26758
267592008-01-25 Michael Albinus <michael.albinus@gmx.de>
26760
26761 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
26762
267632008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
26764
26765 * fns.c (Fclrhash): Return TABLE.
26766
267672008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26768
26769 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
26770 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
26771 is set even without positional changes.
26772 (x_scroll_bar_clear): Set bar->redraw_needed_p.
26773
26774 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
26775
267762008-01-23 Jason Rumney <jasonr@gnu.org>
26777
26778 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
26779
26780 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
26781 the unicode range available in MULE by locale-coding-system.
26782 Improve dbcs lead byte detection. Set event timestamp and modifiers
26783 earlier.
26784
267852008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26786
26787 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
26788 [MAC_OSX] (init_mac_osx_environment): Initialize it.
26789 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
26790 when used on child processes.
26791
267922008-01-21 Michael Albinus <michael.albinus@gmx.de>
26793
26794 * dbusbind.c (Fdbus_method_return_internal): Rename from
26795 Fdbus_method_return.
26796 (Fdbus_unregister_object): Move to dbus.el.
26797 (Fdbus_call_method, Fdbus_method_return_internal)
26798 (Fdbus_send_signal): Improve debug messages.
26799
268002008-01-20 Martin Rudalics <rudalics@gmx.at>
26801
26802 * undo.c (undo_inhibit_record_point): New variable.
26803 (syms_of_undo): Initialize it.
26804 (record_point): Don't record point when undo_inhibit_record_point
26805 is set.
26806
268072008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
26808
26809 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
26810
26811 * xdisp.c (Qauto_hscroll_mode): New var.
26812 (syms_of_xdisp): Initialize it.
26813 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
26814 window's buffer.
26815 (hscroll_windows): Don't check automatic_hscrolling_p here.
26816
26817 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
26818 vscroll if we're setting window-buffer to the value it already has.
26819
268202008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
26821
26822 * m/intel386.h: Remove references to XENIX.
26823
268242008-01-17 Andreas Schwab <schwab@suse.de>
26825
26826 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
26827 instead of HAVE_X86_64_LIB64_DIR.
26828 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
26829
268302008-01-17 Glenn Morris <rgm@gnu.org>
26831
26832 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
26833 to HAVE_X86_64_LIB64_DIR.
26834
268352008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
26836
26837 * s/irix3-3.h:
26838 * s/irix4-0.h:
26839 * s/386-ix.h:
26840 * s/domain.h:
26841 * s/hpux9-x11r4.h:
26842 * s/hpux9shxr4.h: Remove files for systems no longer supported.
26843
26844 * sysdep.c: Remove code containing references to symbols defined
26845 by unsupported systems.
26846
268472008-01-16 Glenn Morris <rgm@gnu.org>
26848
26849 * coding.c (select-safe-coding-system-function): Doc fix.
26850
268512008-01-15 Glenn Morris <rgm@gnu.org>
26852
26853 * config.in: Revert 2008-01-13 change: this is a generated file.
26854
268552008-01-13 Tom Tromey <tromey@redhat.com>
26856
26857 * lisp.h: Fix typo.
26858
268592008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
26860
26861 * m/sequent-ptx.h:
26862 * m/sequent.h:
26863 * s/ptx.h:
26864 * s/ptx4-2.h:
26865 * s/ptx4.h: Remove files for systems no longer supported.
26866
26867 * callproc.c (Fcall_process): Fix previous change.
26868
268692008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
26870
26871 * unexsunos4.c: Remove file, system not supported anymore.
26872
26873 * m/mips.h:
26874 * m/intel386.h:
26875 * callproc.c:
26876 * config.in:
26877 * ecrt0.c:
26878 * emacs.c:
26879 * fileio.c:
26880 * frame.c:
26881 * getpagesize.h:
26882 * keyboard.c:
26883 * lread.c:
26884 * process.c:
26885 * puresize.h:
26886 * sysdep.c:
26887 * systty.h:
26888 * syswait.h:
26889 * unexec.c:
26890 * xdisp.c:
26891 * alloc.c: Remove code containing references to symbols defined by
26892 unsupported systems.
26893
268942008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
26895
26896 * coding.c (detect_coding_mask): Fix previous change.
26897
268982008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
26899
26900 * coding.c (detect_coding_iso2022): New arg
26901 latin_extra_code_state. Allow Latin extra codes only
26902 when *latin_extra_code_state is nonzero.
26903 (detect_coding_mask): If there is a NULL byte, detect the encoding
26904 as UTF-16 or binary. If Latin extra codes exist, detect the
26905 encoding as ISO-2022 only when there's no other proper encoding is
26906 found.
26907
269082008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26909
26910 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
26911 #ifdef MAC_OS.
26912
269132008-01-08 Richard Stallman <rms@gnu.org>
26914
26915 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
26916
269172008-01-06 Nick Roberts <nickrob@snap.net.nz>
26918
26919 * keyboard.c (parse_menu_item): Don't enclose key bindings on
26920 menu bar in parentheses.
26921
269222008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
26923
26924 * m/7300.h:
26925 * m/acorn.h:
26926 * m/alliant-2800.h:
26927 * m/alliant.h:
26928 * m/alliant1.h:
26929 * m/alliant4.h:
26930 * m/altos.h:
26931 * m/amdahl.h:
26932 * m/apollo.h:
26933 * m/att3b.h:
26934 * m/aviion-intel.h:
26935 * m/aviion.h:
26936 * m/celerity.h:
26937 * m/clipper.h:
26938 * m/cnvrgnt.h:
26939 * m/convex.h:
26940 * m/cydra5.h:
26941 * m/delta88k.h:
26942 * m/dpx2.h:
26943 * m/dual.h:
26944 * m/elxsi.h:
26945 * m/f301.h:
26946 * m/gould-np1.h:
26947 * m/gould.h:
26948 * m/i860.h:
26949 * m/ibmps2-aix.h:
26950 * m/ibmrt-aix.h:
26951 * m/ibmrt.h:
26952 * m/irist.h:
26953 * m/is386.h:
26954 * m/isi-ov.h:
26955 * m/mega68.h:
26956 * m/mg1.h:
26957 * m/news-r6.h:
26958 * m/news-risc.h:
26959 * m/news.h:
26960 * m/nh3000.h:
26961 * m/nh4000.h:
26962 * m/ns16000.h:
26963 * m/ns32000.h:
26964 * m/nu.h:
26965 * m/orion.h:
26966 * m/orion105.h:
26967 * m/paragon.h:
26968 * m/pfa50.h:
26969 * m/plexus.h:
26970 * m/pyramid.h:
26971 * m/pyrmips.h:
26972 * m/sh3el.h:
26973 * m/sps7.h:
26974 * m/sr2k.h:
26975 * m/stride.h:
26976 * m/sun1.h:
26977 * m/sun2.h:
26978 * m/sun3-68881.h:
26979 * m/sun3-fpa.h:
26980 * m/sun3-soft.h:
26981 * m/sun3.h:
26982 * m/sun386.h:
26983 * m/symmetry.h:
26984 * m/tad68k.h:
26985 * m/tahoe.h:
26986 * m/targon31.h:
26987 * m/tek4300.h:
26988 * m/tekxd88.h:
26989 * m/tower32.h:
26990 * m/tower32v3.h:
26991 * m/ustation.h:
26992 * m/wicat.h:
26993 * m/xps100.h:
26994 * s/cxux.h:
26995 * s/cxux7.h:
26996 * s/dgux.h:
26997 * s/dgux4.h:
26998 * s/dgux5-4-3.h:
26999 * s/dgux5-4r2.h:
27000 * s/esix.h:
27001 * s/esix5r4.h:
27002 * s/hiuxmpp.h:
27003 * s/hiuxwe2.h:
27004 * s/iris3-5.h:
27005 * s/iris3-6.h:
27006 * s/isc2-2.h:
27007 * s/isc3-0.h:
27008 * s/isc4-0.h:
27009 * s/isc4-1.h:
27010 * s/newsos5.h:
27011 * s/newsos6.h:
27012 * s/osf1.h:
27013 * s/osf5-0.h:
27014 * s/riscix1-1.h:
27015 * s/riscix12.h:
27016 * s/sco4.h:
27017 * s/sco5.h:
27018 * s/sunos4-0.h:
27019 * s/sunos4-1.h:
27020 * s/sunos413.h:
27021 * s/sunos4shr.h:
27022 * s/umax.h:
27023 * s/unipl5-2.h:
27024 * s/xenix.h:
27025 * cxux-crt0.s:
27026 * unexapollo.c:
27027 * unexconvex.c:
27028 * unexenix.c:
27029 * unexsni.c: Remove files for systems no longer supported.
27030
27031 * m/intel386.h: Remove references to unsupported systems.
27032
27033 * w32.c (get_emacs_configuration): Remove reference to i860.
27034
27035 * sysdep.c: Remove dead code.
27036
270372008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
27038
27039 * s/rtu.h:
27040 * m/masscomp.h: Remove files. Platform is obsolete.
27041
270422008-01-04 Michael Albinus <michael.albinus@gmx.de>
27043
27044 * dbusbind.c (Fdbus_method_return): New function.
27045 (xd_read_message): Add the serial number to the event.
27046 (Fdbus_register_method): Activate the function.
27047
270482008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
27049
27050 * keyboard.c (read_key_sequence): Fix typo.
27051
270522008-01-03 Michael Albinus <michael.albinus@gmx.de>
27053
27054 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
27055 (xd_signature, xd_append_arg): Handle element type detection for
27056 empty arrays.
27057 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
27058 SDATA () calls; this must be solved more general.
27059 (Fdbus_register_signal): Use SBYTES instead of strlen.
27060
270612008-01-03 Magnus Henoch <magnus@zemdatav>
27062
27063 * dbusbind.c (xd_append_arg): Use unsigned char instead of
27064 unsigned int for byte values (necessary for big-endian platform).
27065 (Fdbus_call_method): Handle the case of no returned arguments.
27066
270672007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
27068
27069 * dbusbind.c (xd_read_message): Use non-static input_event struct.
27070
270712007-12-31 Magnus Henoch <mange@freemail.hu>
27072
27073 * dbusbind.c (xd_signature): Signature of variant is just "v".
27074
270752007-12-30 Michael Albinus <michael.albinus@gmx.de>
27076
27077 * dbusbind.c: Fix several errors and compiler warnings.
27078 Reported by Tom Tromey <tromey@redhat.com>.
27079 (XD_ERROR, XD_DEBUG_MESSAGE)
27080 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
27081 (xd_append_arg): Part for basic D-Bus types rewritten.
27082 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
27083 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
27084 appropriate.
27085 (xd_read_message): Return Qnil. Don't signal an error; it is not
27086 useful during event reading.
27087 (Fdbus_register_signal): Signal an error if the check for
27088 FUNCTIONP fails.
27089 (Fdbus_register_method): New function. The implementation is not
27090 complete, the call of the function signals an error therefore.
27091 (Fdbus_unregister_object): New function, renamed from
27092 Fdbus_unregister_signal. The initial check signals an error, if
27093 the object is not well formed.
27094
270952007-12-30 Richard Stallman <rms@gnu.org>
27096
27097 * textprop.c (get_char_property_and_overlay):
27098 Signal error if POSITION is out of range in a buffer.
27099
271002007-12-29 Martin Rudalics <rudalics@gmx.at>
27101
27102 * w32fns.c (Fx_create_frame): Make copy of frame parameters
27103 because the original parameters are in pure storage now.
27104
271052007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27106
27107 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
27108
271092007-12-22 Eli Zaretskii <eliz@gnu.org>
27110
27111 * callint.c (syms_of_callint) <command-history>: Add reference to
27112 history-length in the doc string.
27113
271142007-12-17 Jason Rumney <jasonr@gnu.org>
27115
27116 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
27117 before passing as wParam.
27118
271192007-12-22 Michael Albinus <michael.albinus@gmx.de>
27120
27121 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
27122 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
27123 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
27124 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
27125 as number.
27126 (Fdbus_call_method): Fix docstring.
27127
271282007-12-21 Michael Albinus <michael.albinus@gmx.de>
27129
27130 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
27131 New macros.
27132 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
27133 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
27134 Simplify.
27135 (xd_signature): New function.
27136 (xd_append_arg): Compute also signatures. Major rewrite.
27137 (xd_retrieve_arg): Make debug messages friendly.
27138 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
27139 Check for signatures of arguments.
27140
271412007-12-19 Michael Albinus <michael.albinus@gmx.de>
27142
27143 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
27144 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
27145 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
27146 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
27147 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
27148 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
27149 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
27150 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
27151 (xd_retrieve_value): Remove. Functionality included in ...
27152 (xd_append_arg): New function.
27153 (Fdbus_call_method, Fdbus_send_signal): Apply it.
27154
271552007-12-16 Michael Albinus <michael.albinus@gmx.de>
27156
27157 * dbusbind.c (top): Include <stdio.h>.
27158 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
27159 dbus_message_new_method_call and dbus_message_new_signal.
27160 (Fdbus_register_signal): Rename unique_name to uname.
27161 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
27162 non-existing unique name. Fix typos in matching rule. Return an
27163 object which is useful in Fdbus_unregister_signal.
27164 (Fdbus_unregister_signal): Reimplementation, in order to remove
27165 only the corresponding entry.
27166 (Vdbus_registered_functions_table): Change the order of entries.
27167 Apply these changes in xd_read_message and Fdbus_register_signal.
27168
271692007-12-16 Andreas Schwab <schwab@suse.de>
27170
27171 * fileio.c (Finsert_file_contents): Fix overflow check to not
27172 depend on undefined integer overflow.
27173
271742007-12-14 Jason Rumney <jasonr@gnu.org>
27175
27176 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
27177 for characters above 127.
27178
271792007-12-13 Jason Rumney <jasonr@gnu.org>
27180
27181 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
27182 before dereferencing array.
27183 (lookup_vk_code): Remove zero comparison.
27184
271852007-12-14 Michael Albinus <michael.albinus@gmx.de>
27186
27187 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
27188 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
27189 Use `unsigned int' instead of `uint'.
27190 (xd_read_message, Fdbus_register_signal): Split expressions into
27191 multiple lines before operators "&&" and "||", according to the
27192 GNU Coding Standards.
27193
271942007-12-14 Eli Zaretskii <eliz@gnu.org>
27195
27196 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
27197
271982007-12-12 Juri Linkov <juri@jurta.org>
27199
27200 * buffer.c (Frename_buffer): In interactive spec replace
27201 `read-buffer' with `read-string' that uses `buffer-name-history'
27202 as history, and the current buffer's name as default.
27203
272042007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
27205
27206 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
27207 manipulating the backtrace manually.
27208 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
27209 (struct backtrace, backtrace_list): Remove.
27210 (command_loop_1): Remove dead var `no_direct'.
27211
27212 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
27213 preserve non-built-in buffer-local variables.
27214 (Fkill_all_local_variables): Don't re-create&re-set permanent
27215 buffer-local variables.
27216
272172007-12-09 Juri Linkov <juri@jurta.org>
27218
27219 * buffer.c (Frename_buffer): Change interactive spec from "s" to
27220 Lisp code that uses `read-buffer' with current buffer as default.
27221
272222007-12-08 Michael Albinus <michael.albinus@gmx.de>
27223
27224 * dbusbind.c (xd_read_message): Generate an event for every
27225 registered handler. There might be several handlers registered
27226 for the same signal.
27227 (Fdbus_register_signal): Don't overwrite a registration for the
27228 same signal. Add a new registration if handlers are different.
27229 (Vdbus_registered_functions_table): Rework doc string.
27230
272312007-12-07 Michael Albinus <michael.albinus@gmx.de>
27232
27233 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
27234 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
27235 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
27236 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
27237 Unify argument lists.
27238 (xd_read_message, Fdbus_register_signal): Reorder and extend event
27239 arguments and hash table keys. Use unique name for service.
27240 (Fdbus_unregister_signal): Remove checks.
27241 (Vdbus_registered_functions_table): Fix doc string.
27242
272432007-12-05 Magnus Henoch <mange@freemail.hu>
27244
27245 * process.c (make_process): Initialize pty_flag to 0.
27246
272472007-12-05 Jason Rumney <jasonr@gnu.org>
27248
27249 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
27250 specified XBMs.
27251
272522007-12-05 Richard Stallman <rms@gnu.org>
27253
27254 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
27255
272562007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27257
27258 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
27259 New variable.
27260 (mac_try_close_socket) [MAC_OSX]: New function.
27261 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
27262 Update cfsockets_for_select. Replace invalid CFRunLoop source.
27263
27264 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
27265 Use mac_try_close_socket.
27266
272672007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27268
27269 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
27270 reloc_base.
27271 (copy_dysymtab): Compute relocation base here.
27272 (rebase_reloc_address) [__ppc64__]: New function.
27273 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
27274 changed.
27275
272762007-12-05 Jason Rumney <jasonr@gnu.org>
27277
27278 * w32proc.c (sys_spawnve): Quote args with wildcards.
27279
272802007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27281
27282 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
27283 __objc_* sections.
27284 (unrelocate) [_LP64]: Set relocation base to address of data segment.
27285
272862007-12-05 Michael Albinus <michael.albinus@gmx.de>
27287
27288 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
27289 Move check for Vdbus_registered_functions_table to
27290 xd_read_queued_messages.
27291 (xd_read_queued_messages): Protect xd_read_message calls by
27292 internal_condition_case_1.
27293
272942007-12-04 Michael Albinus <michael.albinus@gmx.de>
27295
27296 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
27297 Qdbus_system_bus and Qdbus_session_bus, respectively.
27298 (Vdbus_intern_symbols): Remove.
27299 (Vdbus_registered_functions_table): New hash table.
27300 (XD_SYMBOL_INTERN_SYMBOL): Remove.
27301 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
27302 Rewrite in order to manage registered functions by hash table
27303 Vdbus_registered_functions_table.
27304
273052007-12-03 Jan Djärv <jan.h.d@swipnet.se>
27306
27307 * xterm.c: Update URL to Window Manager Specification in comment.
27308
273092007-12-02 Michael Albinus <michael.albinus@gmx.de>
27310
27311 * config.in (HAVE_DBUS): Add.
27312
27313 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
27314 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
27315 (obj): Add $(DBUS_OBJ).
27316 (LIBES): Add $(DBUS_LIBS).
27317 (dbusbind.o): New target.
27318
27319 * dbusbind.c: New file.
27320
27321 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
27322
27323 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
27324 (Qdbus_event): New Lisp symbol.
27325 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
27326 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 27327 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
27328
27329 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
27330
273312007-12-01 Richard Stallman <rms@gnu.org>
27332
27333 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
27334
273352007-11-30 Jason Rumney <jasonr@gnu.org>
27336
27337 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
27338 (w32con_reset_terminal_modes): Clear screen buffer.
27339 (w32_face_attributes): Don't use color indexes that are out of range.
27340 Only reverse the default colors.
27341
27342 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
27343 WINDOWSNT.
27344
27345 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
27346
273472007-11-29 Jason Rumney <jasonr@gnu.org>
27348
27349 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
27350 (w32_face_attributes): Use Vtty_defined_color_alist to determine
27351 if the terminal colors are initialized.
27352 (unspecified_fg, unspecified_bg): Remove unused declarations.
27353
273542007-11-29 Andreas Schwab <schwab@suse.de>
27355
27356 * keyboard.c (apply_modifiers): Fix typo.
27357
273582007-11-29 Richard Stallman <rms@gnu.org>
27359
27360 * keymap.c (Fcurrent_local_map): Doc fix.
27361
273622007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
27363
27364 * s/gnu-kfreebsd.h: New file.
27365
273662007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
27367
27368 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
27369 Don't cast redundantly.
27370
27371 * keyboard.c (KEY_TO_CHAR): New macro.
27372 (parse_modifiers, apply_modifiers): Accept integer arguments.
27373 (read_key_sequence): Use them to unify the "shift->unshift" mapping
27374 for chars and symbol keys.
27375 After doing such remapping, apply function-key-map again.
27376
273772007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
27378
27379 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
27380 compiled anymore.
27381
273822007-11-26 Andreas Schwab <schwab@suse.de>
27383
27384 * process.c (list_processes_1): Fix indentation level of the
27385 command column.
27386
273872007-11-23 Andreas Schwab <schwab@suse.de>
27388
27389 * editfns.c (Fformat): Handle %c specially since it requires the
27390 argument to be of type int.
27391
273922007-11-23 Markus Triska <markus.triska@gmx.at>
27393
27394 * emacs.c (main): Call init_editfns before init_process, since
27395 init_process sets Vprocess_connection_type depending on OS release.
27396
273972007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
27398
27399 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
27400 (find_symbol_value): Use do_symval_forwarding.
27401
27402 * data.c (set_internal): Set the value in the `cons-cell' (for
27403 Buffer_Local_values) not only for frame-local variables.
27404
274052007-11-22 Andreas Schwab <schwab@suse.de>
27406
27407 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
27408 values to sprintf.
27409 * keymap.c (Fsingle_key_description): Likewise.
27410 * print.c (print_object): Likewise.
27411
274122007-11-22 Jan Djärv <jan.h.d@swipnet.se>
27413
27414 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
27415 file for image is nil.
27416
274172007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
27418
27419 * term.c: Include stdarg.h.
27420 (fatal): Implement using varargs.
27421 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
27422
274232007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
27424
27425 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
27426 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
27427 Update call to buffer_slot_type_mismatch.
27428 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
27429 (buffer_slot_type_mismatch): Update.
27430 * buffer.c (buffer_local_types): Remove.
27431 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
27432 (defvar_per_buffer): Set the type in the buffer_objfwd.
27433
274342007-11-21 Jason Rumney <jasonr@gnu.org>
27435
27436 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
27437 CreateFileMapping returns NULL on failure.
27438
274392007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
27440
27441 * search.c (Fset_match_data): Remove the `evaporate' feature.
27442 (unwind_set_match_data): Don't use the `evaporate' feature.
27443
274442007-11-21 Jason Rumney <jasonr@gnu.org>
27445
27446 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
27447
27448 * w32console.c (w32con_write_glyphs): Remove unused variables.
27449
274502007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
27451
27452 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
27453
27454 * s/darwin.h (MULTI_KBOARD): Remove.
27455
27456 * macfns.c (x_create_tip_frame, Fx_create_frame)
27457 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
27458
274592007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
27460
27461 * buffer.c (Fbuffer_local_value): Remove redundant test.
27462 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
27463 than in `current-buffer' to match the comment.
27464 Do the swap using swap_in_global_binding.
27465
27466 * data.c (store_symval_forwarding, set_internal):
27467 * eval.c (specbind): Remove dead code.
27468
27469 * coding.c (detect_coding, Fupdate_coding_systems_internal):
27470 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
27471 Since we do not want to see internal Lisp_*fwd objects here.
27472
274732007-11-18 Jan Djärv <jan.h.d@swipnet.se>
27474
27475 * sysdep.c (init_system_name): Use getaddrinfo if available.
27476
27477 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
27478 (x_scroll_bar_note_movement): start, end, with, height in struct
27479 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
27480
274812007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
27482
27483 * puresize.h (BASE_PURESIZE): Increase to 1190000.
27484
274852007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
27486
27487 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
27488 This undoes Richard's change of 14-Oct-2002.
27489
27490 * alloc.c (allocate_other_vector):
27491 * lisp.h (allocate_other_vector): Remove.
27492
27493 * window.c (struct save_window_data): Move non-lisp data to the end
27494 and make it `int' rather than Lisp_Object.
27495 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
27496 Done wrap/unwrap integer values.
27497 (Fset_window_configuration, compare_window_configurations):
27498 Update use of fields to their new types.
27499
27500 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
27501 Turn integer fields into `int'. Merge x_window_low and x_window_high.
27502 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
27503 (SET_SCROLL_BAR_X_WINDOW): Remove.
27504 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
27505 Access the new x_window field directly.
27506 * xterm.c (x_scroll_bar_create): Use a pseudovector.
27507 Don't wrap/unwrap integers into Lisp_Objects.
27508 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
27509 (x_scroll_bar_report_motion):
27510 Don't wrap/unwrap integers into Lisp_Objects.
27511 (x_term_init): Use SDATA.
27512 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
27513 (x_scroll_bar_set_handle, x_scroll_bar_remove)
27514 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
27515 (x_scroll_bar_report_motion, x_scroll_bar_clear):
27516 * xfns.c (x_set_background_color):
27517 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
27518 Access the new x_window field directly.
27519
27520 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
27521 (allocate_pseudovector): Make non-static.
27522
27523 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
27524 (allocate_pseudovector): Declare.
27525 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
27526
275272007-11-15 Andreas Schwab <schwab@suse.de>
27528
27529 * editfns.c (Fformat): Correctly format EMACS_INT values.
27530 Also take precision into account when formatting an integer.
27531
27532 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
27533
275342007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
27535
27536 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
27537 (syms_of_keyboard): Defsubr it.
27538
27539 * data.c (swap_in_global_binding): Fix longstanding bug where
27540 store_symval_forwarding was not called with the right second argument,
27541 thus causing objfwd-ing from being dropped.
27542
275432007-11-14 Juanma Barranquero <lekktu@gmail.com>
27544
27545 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
27546 (Fx_display_pixel_height, Fx_display_planes)
27547 (Fx_display_color_cells, Fx_server_max_request_size)
27548 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
27549 (Fx_display_visual_class, Fx_display_save_under):
27550 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
27551 (Fx_display_pixel_height, Fx_display_planes)
27552 (Fx_display_color_cells, Fx_server_max_request_size)
27553 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
27554 (Fx_display_mm_height, Fx_display_mm_width)
27555 (Fx_display_backing_store, Fx_display_visual_class)
27556 (Fw32_select_font, Fx_display_save_under):
27557 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
27558 (Fx_display_pixel_height, Fx_display_planes)
27559 (Fx_display_color_cells, Fx_server_max_request_size)
27560 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
27561 (Fx_display_save_under): Fix typos in docstrings.
27562
275632007-11-14 Juanma Barranquero <lekktu@gmail.com>
27564
27565 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
27566 corresponding to deleted entries; they are an implementation detail.
27567 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
27568 Remove variables.
27569 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
27570 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
27571 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
27572 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
27573 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
27574 (Fw32_define_rgb_color, Fw32_load_color_file)
27575 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
27576 Fix typos in docstrings.
27577 (Fx_server_version): Reflow docstring.
27578 (Fw32_shell_execute): Doc fixes.
27579
275802007-11-13 Juanma Barranquero <lekktu@gmail.com>
27581
27582 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
27583 if w32_parse_hot_key returned nil.
27584
275852007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
27586
27587 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
27588
275892007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 27590
aac0c6e3
MR
27591 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
27592
27593 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
27594
27595 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
27596 Remove W32_SCROLL_BAR_CLICK_EVENT.
27597
27598 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
27599 Add MULTIMEDIA_KEY_EVENT.
27600
27601 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
27602 (lispy_multimedia_keys) [WINDOWSNT]: New array.
27603 (make_lispy_event) [WINDOWSNT]: Use it to translate
27604 MULTIMEDIA_KEY_EVENT.
27605
27606 * w32term.h (WM_APPCOMMAND): Define if not already.
27607 (GET_APPCOMMAND_LPARAM): Likewise.
27608
27609 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
27610 WM_APPCOMMAND.
27611
27612 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
27613 (syms_of_w32fns): Export and initialize it.
27614 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
27615
276162007-11-09 Chong Yidong <cyd@stupidchicken.com>
27617
27618 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
27619 twice.
27620
27621 * xdisp.c (handle_face_prop): Fix last change.
27622
276232007-11-09 Richard Stallman <rms@gnu.org>
27624
27625 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
27626 not just for after-strings and before-strings.
27627 Call face_for_overlay_string and pass the overlay to it.
27628 (handle_display_prop): Determine whether property came from an overlay.
27629 Pass OVERLAY arg to handle_single_display_spec.
27630 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
27631 (load_overlay_strings): Fill in it->string_overlays.
27632 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
27633
27634 * xfaces.c (face_for_overlay_string): Function renamed from
27635 face_at_buffer_position_no_overlays, and add arg OVERLAY.
27636
27637 * dispextern.h (struct it): New elt string_overlays.
27638 New elt from_overlay, also in stack.
27639 Rearrange a few elements.
27640 (face_for_overlay_string): Decl renamed from
27641 face_at_buffer_position_no_overlays, and add argument.
27642
276432007-11-09 Richard Stallman <rms@gnu.org>
27644
27645 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
27646 to get the base face for an overlay string.
27647
27648 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
27649
27650 * xfaces.c (face_at_buffer_position_no_overlays): New function.
27651
27652 * xdisp.c (handle_stop): Move some code out of loop.
27653
276542007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27655
27656 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
27657 Fix conversion from Lisp object to ATSUFontID.
27658
276592007-11-09 Jason Rumney <jasonr@gnu.org>
27660
27661 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
27662
276632007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27664
27665 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
27666 Don't assume regions are aligned to page boundary.
27667 (print_load_command_name): Add LC_UUID if defined.
27668
276692007-11-09 Richard Stallman <rms@gnu.org>
27670
27671 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
27672
276732007-11-07 Jason Rumney <jasonr@gnu.org>
27674
27675 * s/windows95.h: Remove.
27676
276772007-11-06 Jan Djärv <jan.h.d@swipnet.se>
27678
27679 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
27680 abort with a message on unhandled store_type values.
27681
276822007-11-01 Jan Djärv <jan.h.d@swipnet.se>
27683
27684 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
27685 Remove HAVE_X11R5 and HAVE_X11R4.
27686
276872007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
27688
27689 * Makefile.in: Remove references to sunfns.c and sunfns.o.
27690
276912007-11-01 Johan Bockgård <bojohan@gnu.org>
27692
27693 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
27694 Don't set s->stippled_p here, since it has already been set by
27695 x_set_glyph_string_gc from x_draw_glyph_string.
27696
276972007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
27698
27699 * sunfns.c: Remove file.
27700
27701 * m/sun386.h:
27702 * m/sun2.h:
27703 * m/sparc.h: Remove Sun windows code.
27704
277052007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
27706
27707 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
27708 (init_keyboard): Set current_kboard's window-system to nil.
27709 (tty_read_avail_input): Typo.
27710 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
27711
277122007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
27713
27714 * s/usg5-4.h:
27715 * s/usg5-3.h:
27716 * s/ptx.h:
27717 * m/is386.h:
27718 * m/ibmps2-aix.h:
27719 * Makefile.in: Remove all mentions of X10.
27720
27721 * dispnew.c (syms_of_display): Don't mention version 10.
27722
277232007-10-28 Juanma Barranquero <lekktu@gmail.com>
27724
27725 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
27726 ($(BLD)/abbrev.$(O)): Remove.
27727
277282007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
27729
27730 Rewrite abbrev.c in Elisp.
27731 * image.c (Qcount): Don't declare as extern.
27732 (syms_of_image): Initialize and staticpro `Qcount'.
27733 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
27734 * emacs.c (main): Don't call syms_of_abbrev.
27735 * Makefile.in (obj): Remove abbrev.o.
27736 (abbrev.o): Remove.
27737 * abbrev.c: Remove.
27738
277392007-10-26 Martin Rudalics <rudalics@gmx.at>
27740
27741 * window.c (window_min_size_2): Don't count header-line.
27742
277432007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
27744
27745 * frame.h (struct frame): Move all bit fields after the first bit
27746 field to take advantage of the available space. Group all the
27747 chars together to reduce wasted space due to padding.
27748
277492007-10-26 Juanma Barranquero <lekktu@gmail.com>
27750
27751 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
27752
27753 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
27754 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
27755 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
27756 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
27757 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
27758 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
27759 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
27760 (last_marked, mark_object_loop_halt): Make static.
27761
27762 * frame.c (syms_of_frame) <delete-frame-functions>:
27763 Fix typo in docstring.
27764
277652007-10-25 Juanma Barranquero <lekktu@gmail.com>
27766
27767 * w32.c (init_environment): Fix tiny memory leak.
27768 (w32_get_resource): Remove unused variable `ok'.
27769
277702007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
27771
27772 Make `window-system' into a keyboard-local variable (rather than
27773 frame-local as done originally by multi-tty).
27774
27775 * keyboard.h (struct kboard): Add Vwindow_system.
27776 * keyboard.c (init_kboard): Set a default for Vwindow_system.
27777 (mark_kboards): Mark Vwindow_system.
27778
27779 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
27780 (init_display): Don't set the obsolete `window-system' frame-param.
27781
27782 * xterm.c (x_term_init):
27783 * w32term.c (w32_create_terminal):
27784 * term.c (init_tty): Set Vwindow_system.
27785 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
27786 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
27787
27788 * xfns.c (Fx_create_frame, x_create_tip_frame):
27789 * w32fns.c (Fx_create_frame, x_create_tip_frame):
27790 * macfns.c (Fx_create_frame):
27791 Don't set the obsolete `window-system' frame-param.
27792
27793 * frame.h (Qwindow_system): Remove.
27794 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
27795 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
27796
277972007-10-24 Richard Stallman <rms@gnu.org>
27798
27799 * frame.c (x_figure_window_size): For fullscreen case,
27800 set USPosition | PPosition without clobbering rest of window_prompting.
27801
27802 * keyboard.c (Fcurrent_idle_time): Doc fix.
27803
27804 * print.c (Fwith_output_to_temp_buffer): Doc fix.
27805
278062007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
27807
27808 * process.c (unwind_request_sigio): Only define if __ultrix__.
27809
27810 * callproc.c (child_setup): Remove spurious *.
27811
27812 * lisp.h (Fget_text_property): Declare.
27813 (have_menus_p): Declare it here rather than in sys-dep header files.
27814 * macterm.h (have_menus_p):
27815 * msdos.h (have_menus_p):
27816 * xterm.h (have_menus_p): Remove.
27817
27818 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
27819 (Fmake_variable_frame_local): Just check the variable's const-ness
27820 rather than checking nil or t.
27821
278222007-10-22 Jason Rumney <jasonr@gnu.org>
27823
27824 * w32fns.c: Include math.h.
27825 (w32_abort): Declaration moved to nt/config.nt.
27826
27827 * s/ms-w32.h (HAVE_STDLIB_H): Define.
27828 (abort): Redefinition moved to nt/config.nt.
27829
27830 * m/windowsnt.h: Remove.
27831
278322007-10-22 Juanma Barranquero <lekktu@gmail.com>
27833
27834 * emacs.c (Fdump_emacs): Fix typo in message.
27835 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
27836 <installation-directory>: Reflow docstring.
27837
278382007-10-22 Juri Linkov <juri@jurta.org>
27839
27840 * minibuf.c: Allow minibuffer default to be a list of default values.
27841 With empty input use the first element of this list as returned default.
27842 (string_to_object)
27843 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
27844 (read_minibuf): If defalt is cons, set histstring to its car.
27845 (Fread_string): If default_value is cons, set val to its car.
27846 (Fread_buffer): If def is cons, use its car.
27847 (Fcompleting_read): If defalt is cons, set val to its car.
27848
278492007-10-21 Michael Albinus <michael.albinus@gmx.de>
27850
27851 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
27852
278532007-10-20 Juanma Barranquero <lekktu@gmail.com>
27854
27855 * doc.c (Fdocumentation): Check for advice in all cases.
27856
278572007-10-19 Chong Yidong <cyd@stupidchicken.com>
27858
27859 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
27860
278612007-10-19 Richard Stallman <rms@gnu.org>
27862
27863 * doc.c (Fdocumentation): Check for and handle an advised function.
27864
278652007-10-19 Juanma Barranquero <lekktu@gmail.com>
27866
27867 * process.c (Fset_process_filter): Doc fix.
27868
278692007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
27870
27871 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
27872 which caused key-translation-map to applied repeatedly (thus breaking
27873 double-mode).
27874
278752007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
27876
27877 * xselect.c (x_own_selection, x_handle_selection_clear)
27878 (x_clear_frame_selections):
27879 * w32menu.c (list_of_panes, list_of_items):
27880 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
27881 * textprop.c (validate_plist, interval_has_all_properties)
27882 (interval_has_some_properties, interval_has_some_properties_list)
27883 (add_properties, text_property_list):
27884 * process.c (Fget_buffer_process, list_processes_1, status_notify):
27885 * minibuf.c (Fassoc_string):
27886 * macselect.c (x_own_selection, x_clear_frame_selections)
27887 (Fx_disown_selection_internal):
27888 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
27889 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
27890
278912007-10-17 Chong Yidong <cyd@stupidchicken.com>
27892
27893 * process.c: Link to libs for calling res_init() if available.
27894 (Fmake_network_process): Call res_init() before getaddrinfo or
27895 gethostbyname, if possible.
27896
278972007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
27898
27899 * lread.c (read1): Set pvectype for char_tables.
27900
27901 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
27902 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
27903 Add type checks.
27904 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
27905
27906 * alloc.c (free_misc): Use XMISCTYPE.
27907 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
27908
279092007-10-17 Glenn Morris <rgm@gnu.org>
27910
27911 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
27912 (syms_of_minibuf): Add Qcompletion_ignore_case.
27913 * dired.c (Qcompletion_ignore_case): Change to external.
27914 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
27915 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
27916 (Fread_file_name): Use it rather than intern'ing.
27917
27918 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
27919 (Fread_coding_system): Ignore case of user input.
27920
279212007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27922
27923 * xdisp.c (handle_display_prop): Ignore display specs after
27924 replacing one when string text is being replaced.
27925 (handle_single_display_spec): Pretend as if characters with display
27926 property haven't been consumed only when buffer text is being replaced.
27927
279282007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
27929
27930 * xfns.c (Fx_create_frame, Fx_display_list):
27931 * window.c (window_fixed_size_p, enlarge_window)
27932 (shrink_window_lowest_first):
27933 * macterm.c (init_font_name_table):
27934 * macfns.c (Fx_create_frame, Fx_display_list):
27935 * lread.c (close_load_descs):
27936 * keyboard.c (read_char_x_menu_prompt):
27937 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
27938 * coding.c (code_convert_region_unwind): Test the type of an object
27939 rather than just !NILP before extracting data from it.
27940
27941 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
27942
27943 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
27944 (XMISCANY): New macro.
27945 (XMISCTYPE): Use it.
27946 (struct Lisp_Misc_Any): New type.
27947 (union Lisp_Misc): Use it.
27948 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
27949 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
27950 (find_symbol_value, set_internal, default_value, Fset_default)
27951 (Fmake_variable_buffer_local, Fmake_local_variable)
27952 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
27953 (Flocal_variable_if_set_p, Fvariable_binding_locus):
27954 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
27955 * alloc.c (allocate_buffer): Set the size and tag.
27956 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
27957 Use XMISCANY.
27958 (die): Follow the GNU convention for error messages.
27959 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
27960 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
27961 tag any more.
27962 (set_buffer_internal_1):
27963 * frame.c (store_frame_param):
27964 * eval.c (specbind):
27965 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
27966
27967 * doc.c (Fsnarf_documentation): Simplify.
27968
279692007-10-14 Juanma Barranquero <lekktu@gmail.com>
27970
27971 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
27972 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
27973
279742007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
27975
27976 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
27977
279782007-10-14 Juanma Barranquero <lekktu@gmail.com>
27979
27980 * eval.c (do_autoload): Don't save autoloads.
27981
27982 * data.c (Ffset): Save autoload of the function being set.
27983
279842007-10-07 John Paul Wallington <jpw@pobox.com>
27985
27986 * xfns.c (x_create_tip_frame): Set the `display-type' frame
27987 parameter before setting up faces.
27988
279892007-10-13 Eli Zaretskii <eliz@gnu.org>
27990
27991 * ccl.c (Fregister_code_conversion_map):
27992 * keyboard.c (append_tool_bar_item): Reformat last change.
27993
27994 * lisp.h (eabs): Rename from `abs'. All callers changed.
27995
279962007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
27997
27998 * buffer.c (add_overlay_mod_hooklist):
27999 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
28000 * fontset.c (make_fontset):
28001 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
28002 (append_tool_bar_item):
28003 * macmenu.c (grow_menu_items):
28004 * w32menu.c (grow_menu_items):
28005 * xmenu.c (grow_menu_items): Use larger_vector.
28006
280072007-10-13 Eli Zaretskii <eliz@gnu.org>
28008
28009 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
28010 selected frame'' on MSDOS).
28011
280122007-10-12 Martin Rudalics <rudalics@gmx.at>
28013
28014 * frame.c (Qexplicit_name): New variable.
28015 (x_report_frame_params): Report it in parameter alist.
28016 (syms_of_frame): Intern and staticpro it.
28017
280182007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
28019
28020 * macfns.c (x_create_tip_frame): Set terminal for frame.
28021
280222007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
28023
28024 * frame.c (Qenvironment): Remove.
28025 (syms_of_frame) <Qenvironment>: Don't initialize.
28026 (Fdelete_frame): Don't treat the `environment' param specially.
28027 * frame.h (Qenvironment): Don't declare.
28028 * callproc.c (set_initial_environment): Don't set unused frame param.
28029
28030 * frame.c (Fframe_with_environment): Remove.
28031 (syms_of_frame) <Sframe_with_environment>: Don't declare.
28032
28033 * lisp.h (Fframe_with_environment): Don't declare.
28034
280352007-10-10 Juanma Barranquero <lekktu@gmail.com>
28036
28037 * indent.c (indent_tabs_mode, last_known_column)
28038 (last_known_column_modified): Make static.
28039 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
28040
280412007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
28042
28043 * puresize.h (BASE_PURESIZE): Increase to 1170000.
28044
280452007-10-09 Jason Rumney <jasonr@gnu.org>
28046
28047 * w32term.c (x_set_window_size): Disable code that attempts to tell
28048 Lisp code about a size change before it actually happens.
28049
280502007-10-09 Richard Stallman <rms@gnu.org>
28051
28052 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
28053 return HANDLED_RETURN.
28054
280552007-10-08 Martin Rudalics <rudalics@gmx.at>
28056
28057 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
28058 when there's an unread command event.
28059
28060 * frame.c (focus_follows_mouse): Move here from frame.el to allow
28061 window autoselection act appropriately when leaving selected frame.
28062 (syms_of_frame): Initialize focus_follows_mouse.
28063 * frame.h (focus_follows_mouse): Extern it.
28064 * macterm.c (XTread_socket): When focus_follows_mouse is nil
28065 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
28066 * msdos.c (dos_rawgetc): Likewise.
28067 * w32term.c (w32_read_socket): Likewise.
28068 * xterm.c (handle_one_xevent): Likewise.
28069 * xdisp.c (syms_of_xdisp): In doc-string of
28070 mouse-autoselect-window mention focus-follows-mouse.
28071
280722007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28073
28074 * macterm.c (mac_load_query_font): Fix missing return value.
28075 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
28076 Add BLOCK_INPUT.
28077
280782007-10-08 Richard Stallman <rms@gnu.org>
28079
28080 * xdisp.c (get_window_cursor_type): Implement documented behavior
28081 for cursor-in-non-selected-windows = t.
28082
280832007-10-08 Jason Rumney <jasonr@gnu.org>
28084
28085 * w32.c (w32_get_resource): Always close registry keys.
28086
280872007-10-08 Jason Rumney <jasonr@gnu.org>
28088
28089 * makefile.w32-in (LIBS): Add COMCTL32.
28090
28091 * w32fns.c (globals_of_w32fns): Init common controls.
28092
280932007-10-08 Richard Stallman <rms@gnu.org>
28094
28095 * image.c (our_memory_buffer): Rename from omfib_buffer.
28096
280972007-10-08 Richard Stallman <rms@gnu.org>
28098
28099 * buffer.c (Foverlays_at): Doc fix.
28100
281012007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
28102
28103 * fns.c (Fplist_put): Preserve uneven tail data.
28104
281052007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
28106
28107 * termhooks.h (enum event_kind): Remove trailing comma.
28108
28109 * frame.h (enum): Remove trailing comma.
28110
281112007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
28112
28113 * w32proc.c (delete_child): Don't terminate threads of zombies.
28114
281152007-10-08 Martin Rudalics <rudalics@gmx.at>
28116
28117 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
28118
28119 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
28120 last-repeatable-command.
28121 (init_kboard): Initialize Vlast_repeatable_command.
28122 (command_loop_1): Set it to real_this_command unless that was
28123 bound to an input event.
28124 (mark_kboards): Mark it.
28125
281262007-10-08 Richard Stallman <rms@gnu.org>
28127
28128 * eval.c (condition-case): Doc fix.
28129
281302007-10-08 Masatake YAMATO <jet@gyve.org>
28131
28132 * xfaces.c (tty_supports_face_attributes_p): Fix code
28133 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
28134 was copied and not edited.
28135
281362007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
28137
28138 Add new `input-decode-map' keymap and use it for terminal
28139 escape sequences.
28140 * keyboard.h (struct kboard): Add Vinput_decode_map.
28141 Remove Vlocal_key_translation_map.
28142 * keyboard.c (read_key_sequence): Add support for input-decode-map.
28143 (init_kboard): Init input-decode-map.
28144 Replace local-key-translation-map back with key-translation-map.
28145 (syms_of_keyboard): Declare input-decode-map.
28146 Remove local-key-translation-map. Update docstrings.
28147 (mark_kboards): Mark Vinput_decode_map.
28148 Don't mark Vlocal_key_translation_map.
28149 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
28150 Replace local-key-translation-map back with key-translation-map.
28151 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
28152 Bind in input-decode-map rather than function-key-map.
28153
28154 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
28155 This was made redundant by the previous introduction of XSETPVECTYPE.
28156
281572007-10-09 Richard Stallman <rms@gnu.org>
28158
28159 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
28160
281612007-09-29 Richard Stallman <rms@gnu.org>
28162
28163 * eval.c (internal_condition_case_2, internal_condition_case_1)
28164 (internal_condition_case): Reenable abort if x_catching_errors ()
28165 to see if that really happens and why.
28166
281672007-10-06 Andreas Schwab <schwab@suse.de>
28168
28169 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
28170
281712007-10-04 Juanma Barranquero <lekktu@gmail.com>
28172
28173 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
28174
281752007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
28176
28177 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
28178
281792007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
28180
28181 * window.h (struct window):
28182 * window.c (struct save_window_data, struct saved_window):
28183 * termhooks.h (struct terminal):
28184 * process.h (struct Lisp_Process):
28185 * frame.h (struct frame):
28186 * buffer.h (struct buffer):
28187 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
28188 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
28189 The size field of (pseudo)vectors is now unsigned.
28190 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
28191
28192 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
28193 Turn `count' into an integer.
28194
28195 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
28196 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
28197 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
28198 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
28199 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
28200
28201 * alloc.c (allocate_pseudovector): New fun.
28202 (ALLOCATE_PSEUDOVECTOR): New macro.
28203 (allocate_window, allocate_terminal, allocate_frame)
28204 (allocate_process): Use it.
28205 (mark_vectorlike): New function.
28206 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
28207 (mark_terminals): Use it.
28208 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
28209 (Fmake_byte_code): Use XSETPVECTYPE.
28210
28211 * frame.c (Fframe_parameters): Minor simplification.
28212
28213 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
28214
28215 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
28216
28217 * buffer.c (Fget_buffer_create, init_buffer_once):
28218 * lread.c (defsubr):
28219 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
28220
28221 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
28222 defined differently in the m/*.h files.
28223 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
28224 (XSETPVECTYPE): New macro.
28225 (XSETPSEUDOVECTOR): Use it.
28226
28227 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
28228 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
28229
28230 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
28231 * lread.c (defvar_per_buffer):
28232 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
28233
28234 * window.c (candidate_window_p): Only consider as visible frames that
28235 are on the same terminal.
28236
28237 * m/ibms390x.h (MARKBIT): Remove unused macro.
28238
282392007-10-01 Juanma Barranquero <lekktu@gmail.com>
28240
28241 * lread.c (Fload): Fix typo in docstring.
28242
282432007-10-01 Michaël Cadilhac <michael@cadilhac.name>
28244
28245 * floatfns.c (Fexpt): Manually check for overflows, so that a power
28246 of a non-zero value can't yield zero.
28247
282482007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
28249
28250 * term.c (term_clear_mouse_face, term_mouse_highlight)
28251 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
28252
28253 * print.c (safe_debug_print): Use XHASH.
28254
28255 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
28256 Lisp elements such as tags.
28257 (XHASH): New macro.
28258 (EQ): Use it.
28259 (SREF, SSET, STRING_COPYIN): Use SDATA.
28260 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
28261
28262 * alloc.c (mark_terminal): Remove left-over declaration.
28263 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
28264 (allocate_vectorlike): Remove type argument. Adjust callers.
28265 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
28266 Only handle the one remaining MEM_TYPE_VECTORLIKE.
28267
28268 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
28269 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
28270 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
28271 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
28272 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
28273 Use them.
28274
28275 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
28276 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
28277 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
28278
282792007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
28280
28281 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
28282 loaded by default.
28283
282842007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
28285
28286 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
28287 on this tty.
28288 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
28289
28290 * term.c (mouse_face_window): Rename from Qmouse_face_window.
28291 Update all users.
28292 (handle_one_term_event): Use Gpm_DrawPointer.
28293 (Fgpm_mouse_start): Rename from Fterm_open_connection.
28294 Signal errors instead of returning nil. Always return nil.
28295 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
28296 Make it a noop if gpm-mouse was not activated.
28297 (syms_of_term): Update names.
28298
282992007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
28300
28301 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
28302 (init_sys_modes): Check that gpm_tty is the current tty.
28303
28304 * alloc.c (allocate_terminal): Set the vector size to only count the
28305 lisp fields. Initialize those to nil.
28306 (mark_object): Don't treat terminals specially.
28307 (mark_terminal): Remove.
28308 (mark_terminals): Use mark_object instead.
28309
28310 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
28311 the GC to the beginning.
28312
28313 * indent.h:
28314 * indent.c: Use EMACS_INT for ints coming from Elisp data.
28315
28316 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
28317
283182007-09-25 Jason Rumney <jasonr@gnu.org>
28319
28320 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
28321
28322 * w32console.c (create_w32cons_output): Remove.
28323
28324 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
28325
28326 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
28327 (reset_sys_modes): Use reset_terminal_modes_hook.
28328
283292007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
28330
28331 * eval.c (do_autoload): Don't output any message.
28332
283332007-09-24 Juri Linkov <juri@jurta.org>
28334
28335 * emacs.c (standard_args): Change priority of "--no-splash"
28336 from 40 to 3. Add "--no-desktop" with the same priority.
28337
283382007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
28339
28340 * alloc.c (gc_sweep): Check cons cell mark bits word by word
28341 and optimize the case where they are all 1.
28342
283432007-09-23 Johannes Weiner <hannes@saeurebad.de>
28344
28345 * lisp.h (abs): Define if not defined.
28346 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
28347 Don't define `abs', since it's defined in lisp.h.
28348
283492007-09-22 Eli Zaretskii <eliz@gnu.org>
28350
28351 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
28352 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
28353 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
28354 (init_tty): Use DEV_TTY instead of "/dev/tty".
28355 [WINDOWSNT]: No need to protect from NAME arg being null.
28356
283572007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
28358
28359 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
28360 up the tty state.
28361
283622007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
28363
28364 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
28365 (gpm_tty): Change its type.
28366 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
28367 (gpm_tty): Change its type and initialize it.
28368 (Fterm_open_connection): Check the frame is indeed a tty.
28369 Use the new gpm_tty.
28370 (Fterm_close_connection): Use the new gpm_tty.
28371 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
28372 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
28373
283742007-09-21 Juanma Barranquero <lekktu@gmail.com>
28375
28376 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
28377 underline_color, to draw strike-through.
28378
283792007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
28380
28381 * lisp.h (allocate_terminal): Declare.
28382
28383 * window.c (candidate_window_p): Consider frames that are being placed
28384 by the user as somewhere between visible and iconified.
28385 (window_loop): Prefer windows on the current frame.
28386 (Fselect_window): Move the use of select-frame to the beginning so we
28387 can just delegate all the work (it'll call us back anyway).
28388
28389 * frame.c (Qdisplay_environment_variable):
28390 * frame.h (Qdisplay_environment_variable): Delete.
28391
28392 * .gdbinit (xbacktrace): Print the arg's address rather than the value
28393 of the first arg, since that value may be a union.
28394
28395 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
28396 parameter rather than Qdisplay_environment_variable. If all else
28397 fails, look for DISPLAY in initial-environment.
28398
283992007-09-21 Glenn Morris <rgm@gnu.org>
28400
28401 * Makefile.in (emacstool): Remove target.
28402 (lisp, shortlisp): Remove termdev.elc.
28403
284042007-09-21 Markus Triska <markus.triska@gmx.at>
28405
28406 * xterm.c (x_delete_display): Compile session management conditionally.
28407
284082007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
28409
28410 * callproc.c (getenv_internal_1): New function.
28411 (getenv_internal): Use it.
28412 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
28413
28414 * terminal.c (get_terminal): Don't accept ints to represent terminals.
28415 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
28416 (Fset_terminal_parameter): Work with dead terminals as well.
28417 (Fmodify_terminal_parameters): Remove.
28418
28419 * terminal.c (get_terminal): Handle terminals.
28420 Make sure the terminal returned is live.
28421 (create_terminal): Use allocate_terminal.
28422 (mark_terminals): Move to alloc.c.
28423 (delete_terminal): Use terminal->name as liveness status.
28424 NULL out fields after freeing their contents.
28425 Don't deallocate the object.
28426 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
28427 rather than an int.
28428 (Fterminal_live_p): Accept non-integer arguments.
28429 (Fterminal_list): Return terminal objects rather than an ints.
28430
28431 * alloc.c (enum mem_type): New member for `terminal' objects.
28432 (allocate_terminal): New function.
28433 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
28434 Handle terminals.
28435 (mark_terminal): New fun.
28436 (mark_terminals): Move from terminal.c.
28437
28438 * term.c (get_tty_terminal): Don't treat output_initial specially.
28439 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
28440 (delete_tty): Use terminal->name as liveness status.
28441
28442 * termhooks.h (struct terminal): Make it into a pseudovector.
28443 Remove `deleted' replaced by checking `name's nullness.
28444
28445 * print.c (print_object): Handle terminals.
28446
28447 * lisp.h (enum pvec_type): New `terminal' pseudovector.
28448 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
28449
28450 * frame.c (make_terminal_frame):
28451 * keyboard.c (tty_read_avail_input):
28452 * w32term.c (x_delete_terminal):
28453 * xfns.c (Fx_create_frame, x_create_tip_frame):
28454 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
28455
284562007-09-20 Glenn Morris <rgm@gnu.org>
28457
28458 * process.c (Fmake_network_process): Doc fix.
28459
284602007-09-19 Jason Rumney <jasonr@gnu.org>
28461
28462 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
28463
284642007-09-19 Michaël Cadilhac <michael@cadilhac.name>
28465
28466 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
28467 Fix a C warning regarding variable constness.
28468
28469 * xterm.c (handle_one_xevent): Fix a C warning.
28470
284712007-09-18 Jason Rumney <jasonr@gnu.org>
28472
28473 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
28474
284752007-09-17 Jan Djärv <jan.h.d@swipnet.se>
28476
28477 * gtkutil.c (gdpy_def): New variable.
28478 (xg_initialize): Initialize gdpy_def.
28479 (xg_display_close): If no other display exists, set gdpy_def to a
28480 new connection.
28481
284822007-09-16 Jan Djärv <jan.h.d@swipnet.se>
28483
28484 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
28485 when we have no file name for the icon.
28486 (xg_tool_bar_expose_callback): Remove.
28487 (xg_create_tool_bar): Don't connect expose signal to
28488 xg_tool_bar_expose_callback.
28489 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
28490
284912007-09-16 Andreas Schwab <schwab@suse.de>
28492
28493 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
28494 values instead of zapping them.
28495
284962007-09-14 Glenn Morris <rgm@gnu.org>
28497
28498 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
28499 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
28500 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
28501 scope and rename to omfib_buffer for clarity.
28502 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
28503
285042007-09-14 Kenichi Handa <handa@m17n.org>
28505
28506 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
28507
285082007-09-13 Jason Rumney <jasonr@gnu.org>
28509
28510 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
28511
28512 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
28513
28514 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
28515 (mac_term_init): Call here instead, passing rif.
28516
285172007-09-13 Glenn Morris <rgm@gnu.org>
28518
28519 * s/hpux.h: No longer define `static' as nothing.
28520
285212007-09-13 Johan Bockgård <bojohan@gnu.org>
28522
28523 * callint.c (Fcall_interactively): Remove unused var `fun'.
28524
285252007-09-12 Romain Francoise <romain@orebokech.com>
28526
28527 * window.c (prefer_window_split_horizontally, display_buffer):
28528 Revert 2007-09-08 change.
28529
285302007-09-12 Glenn Morris <rgm@gnu.org>
28531
28532 * alloca.c: Remove file.
28533 * Makefile.in (alloca): Do not undef.
28534 (allocaobj, alloca.o): Remove.
28535 (otherobj): Remove allocaobj.
28536 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
28537 * regex.c (C_ALLOCA): Remove all references and code that was only
28538 used when this was defined.
28539 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
28540 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
28541 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
28542
28543 * Makefile.in (SOURCES, unlock, relock): Delete.
28544
28545 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
28546 (menu_grab_callback): All uses changed.
28547
28548 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
28549 (x_reply_selection_request): All uses changed.
28550
285512007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
28552
28553 * lread.c (load_warn_old_style_backquotes): Change message to look
28554 better when it appears in the middle of byte-compiler messages.
28555
285562007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
28557
28558 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
28559
28560 * xterm.c (x_create_terminal): Add comment.
28561
28562 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
28563
285642007-09-10 Richard Stallman <rms@gnu.org>
28565
28566 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
28567
285682007-09-10 Michaël Cadilhac <michael@cadilhac.name>
28569
28570 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
28571 (DEFUN): Document `intspec', use it instead of `prompt'.
28572
28573 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
28574
28575 * data.c (Finteractive_form): If the interactive specification starts
28576 with a `(', use it as a Lisp form.
28577
28578 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
28579 name and file modes.
28580
28581 * callint.c (Fcall_interactively): Comment fixes.
28582
285832007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
28584
28585 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
28586 and compiled functions.
28587
285882007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
28589
28590 * window.c (prefer_window_split_horizontally): New variable.
28591 (display_buffer): Consider splitting window horizontally depending
28592 on prefer_window_split_horizontally.
28593
285942007-09-08 Eli Zaretskii <eliz@gnu.org>
28595
28596 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
28597
285982007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
28599
28600 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
28601
28602 * frame.c (x_set_frame_parameters): Check number is positive before
28603 using XFASTINT.
28604
28605 * window.c (freeze_window_start): Don't presume selected_window holds
28606 a window object.
28607 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
28608
286092007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
28610
28611 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
28612
286132007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
28614
28615 * window.c (Vsplit_window_preferred_function): New var.
28616 (Fdisplay_buffer): Use it.
28617 (syms_of_window): Export, and initialize it.
28618
286192007-09-06 Pixel <pixel@mandriva.com> (tiny change)
28620
28621 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
28622
286232007-09-06 Glenn Morris <rgm@gnu.org>
28624
28625 * gtkutil.c (menu_grab_callback) <cnt>:
28626 * xselect.c (x_reply_selection_request) <cnt>: Move static
28627 variable to file scope.
28628
286292007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
28630
28631 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
28632 consistent values of selected_frame and selected_window.
28633
286342007-09-04 Jason Rumney <jasonr@gnu.org>
28635
28636 * w32console.c (initialize_w32_display): Zero unused hooks.
28637
286382007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
28639
28640 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
28641 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
28642
286432007-09-04 Jason Rumney <jasonr@gnu.org>
28644
28645 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
28646 in w32console.c. Set up input. Remove XXX comments that have been
28647 confirmed as correct.
28648
28649 * s/ms-w32.h (MULTI_KBOARD): Define.
28650
28651 * w32console.c (one_and_only_w32cons): Remove.
28652 (initialize_w32_display): Take terminal argument.
28653
28654 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
28655 initialize_w32_display.
28656 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
28657
28658 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
28659
28660 * keyboard.c (discard_mouse_events): Discard it.
28661 (make_lispy_event): Translate it to a lisp event.
28662 (lispy_wheel_names): Add wheel-left and right events.
28663 (syms_of_keyboard): Enlarge wheel_syms.
28664
28665 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
28666 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
28667
28668 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
28669
28670 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
28671 from WM_MOUSEHWHEEL.
28672 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
28673
28674 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
28675 terminal.
28676
28677 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
28678 keyboard for the terminal.
28679
286802007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
28681
28682 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
28683 (Vresume_tty_hook): Rename from Vresume_tty_functions.
28684 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
28685 and resume-tty-function to resume-tty-hook.
28686 (Fsuspend_tty, Fresume_tty): Use new names.
28687
286882007-09-02 Jan Djärv <jan.h.d@swipnet.se>
28689
28690 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
28691 if it starts with "n:".
28692
286932007-08-31 Jan Djärv <jan.h.d@swipnet.se>
28694
28695 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
28696
286972007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
28698
28699 * frame.h:
28700 * frame.c (Qterm_environment_variable): Remove.
28701 (syms_of_frame): Don't init and staticpro it.
28702
28703 * callproc.c (getenv_internal): Remove special case for $TERM.
28704
28705 * callproc.c (Vinitial_environment): New variable.
28706 (set_initial_environment): Initialize it.
28707 (syms_of_callproc): Declare it.
28708 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
28709 TERM under which a process runs is never related to the TERM in which
28710 Emacs is running.
28711
287122007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
28713
28714 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
28715 * s/darwin.h: ... do it here.
28716
287172007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
28718
28719 * lisp.h (set_initial_environment): Rename from set_global_environment.
28720
28721 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
28722 removed by mistake on the multi-tty branch.
28723
28724 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
28725 (Fmodify_frame_parameters): Return a value.
28726
28727 * image.c (png_load): Comment-out var only used in commented-out code.
28728
28729 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
28730 before passing it to mark_object.
28731
28732 * xfaces.c (internal_resolve_face_name): Return a value.
28733 (internal_resolve_face_name, resolve_face_name_error): Comment out.
28734
28735 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
28736 (x_icon): Comment-out var only used in commented-out code.
28737
287382007-08-29 Romain Francoise <romain@orebokech.com>
28739
28740 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
28741 QUIT hasn't been provided.
28742
287432007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
28744
28745 * callproc.c (child_setup, getenv_internal): Use the
28746 display-environment-variable and term-environment-variable frame params.
28747 (set_initial_environment): Initialise Vprocess_environment.
28748
28749 * config.in: Disable multi-keyboard support on a mac.
28750
28751 * frame.c (Qterm_environment_variable)
28752 (Qdisplay_environment_variable): New variables.
28753 (syms_of_frame): Intern and staticpro them.
28754 (Fmake_terminal_frame): Disable output method test.
28755
28756 * frame.h: Declare them here.
28757
28758 * macfns.c (x_set_mouse_color): Get rif from the frame.
28759 (x_set_tool_bar_lines): Don't use updating_frame.
28760 (mac_window): Add 2 new parameters for consistency with other systems.
28761 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
28762 frame parameters following what is done in X11 and w32. Don't use
28763 FRAME_MAC_DISPLAY_INFO.
28764 (Fx_open_connection, start_hourglass): Remove window-system check.
28765 (x_create_tip_frame): Get the keyboard from the terminal.
28766
28767 * macmenu.c: Reorder includes.
28768 (Fx_popup_menu): Use terminal specific mouse_position_hook.
28769
28770 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
28771 terminal parameter.
28772 (x_clear_frame): Add a frame parameter.
28773 (note_mouse_movement): Get rif from the frame.
28774 (mac_term_init): Initialize the terminal.
28775 (mac_initialize): Make static and move terminal initialization ...
28776 (mac_create_terminal): ... to this new function.
28777
28778 * macterm.h (struct mac_display_info): Add terminal.
28779 (mac_initialize): Delete declaration.
28780
28781 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
28782
28783 * sysdep.c: Comment out text after #endif.
28784
28785 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
28786 is defined. Better initialize ttys in windows. Use terminal
28787 specific mouse_position_hook.
28788
28789 * termhooks.h (union display_info): Add mac_display_info.
28790
28791 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
28792 Set the default minibuffer frame, window_system and the rest of the
28793 frame parameters following what is done in X11.
28794
28795 * w32term.c (w32_initialize): Make static.
28796
28797 * xselect.c (x_handle_selection_clear): Only access
28798 terminal->kboard when MULTI_KBOARD is defined.
28799
28800 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
28801 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
28802
288032007-08-29 Jason Rumney <jasonr@gnu.org>
28804
28805 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
28806 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
28807
28808 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
28809 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
28810
28811 * keyboard.c (restore_kboard_configuration): Only define when
28812 MULTI_KBOARD defined.
28813
28814 * makefile.w32-in: Update dependancies from Makefile.in.
28815 (OBJ1): Add terminal.$(O)
28816
28817 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
28818 Don't define function body.
28819 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
28820
28821 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
28822
28823 * w32.c (request_sigio, unrequest_sigio): Remove.
28824
28825 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
28826 (w32con_clear_frame, w32con_clear_end_of_line)
28827 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
28828 (w32con_delete_glyphs, w32con_set_terminal_window)
28829 (scroll_line, w32_sys_ring_bell): Add frame arg.
28830 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
28831 Add terminal arg.
28832 (PICK_FRAME): Remove.
28833 (w32con_write_glyphs): Use frame specific terminal coding.
28834 (one_and_only_w32cons): New global variable.
28835 (initialize_w32_display): Use it for storing hooks.
28836 (create_w32cons_output): New function.
28837
28838 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
28839 arg a frame.
28840
28841 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
28842 Set window_system.
28843 (x_set_tool_bar_lines): Don't use updating_frame.
28844 (Fx_create_frame): Set terminal and ref count.
28845 (Fx_open_connection): Remove window-system check.
28846
28847 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
28848
28849 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
28850 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
28851 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
28852 Add frame arg.
28853 (x_delete_terminal, w32_create_terminal): New functions.
28854 (w32_term_init): Create a terminal.
28855 (w32_initialize): Move terminal specific initialization to
28856 w32_create_terminal.
28857
28858 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
28859 (w32_clear_rect, w32_clear_area): Use background from frame.
28860 (w32_display_info): Add terminal.
28861 (w32_sys_ring_bell, x_delete_display): Declare here.
28862
28863 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
28864
28865 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
28866
288672007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
28868
28869 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
28870 Fix get_named_tty calls for the controlling tty.
28871
288722007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
28873
194d44e7 28874 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
aac0c6e3
MR
28875
288762007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
28877
28878 * term.c (tty_insert_glyphs): Add missing first parameter.
28879
288802007-08-29 Károly Lőrentey <karoly@lorentey.hu>
28881
28882 * buffer.c (Fbuffer_list, Fbury_buffer):
28883 Take frame->buried_buffer_list into account.
28884
28885 * cm.c (current_tty): New variable, for cmputc().
28886 (cmputc): Use it.
28887 (cmcheckmagic): Add tty parameter, look up terminal streams there.
28888 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
28889 (cmgoto): Add tty parameter. Pass it on to calccost().
28890 Use emacs_tputs() instead of tputs().
28891
28892 * cm.h (emacs_tputs): New macro to set current_tty, and then call
28893 tputs().
28894 (current_tty): New variable, for cmputc().
28895 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
28896
28897 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
28898 (internal_condition_case, internal_condition_case_1)
28899 (internal_condition_case_2): Don't abort when x_catching_errors.
28900
28901 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
28902 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
28903 prevent crashes caused by bogus longjmps in read_char.
28904
28905 * keymap.h (Fset_keymap_parent): Add EXFUN.
28906
28907 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
28908 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
28909 Remove redundant definition.
28910
28911 * macfns.c (x_set_mouse_color, x_make_gc):
28912 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
28913
28914 * w32term.c (x_free_frame_resources):
28915 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
28916 (w32_initialize): Use the accessor macros for terminal characteristics.
28917
28918 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
28919 Use the accessor macros for terminal characteristics.
28920 * msdos.c (internal_terminal_init): Use the accessor macros for
28921 terminal characteristics.
28922 (ScreenVisualBell, internal_terminal_init):
28923 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
28924
28925 * termopts.h (no_redraw_on_reenter): Declare.
28926
28927 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
28928 (mark_terminals, mark_ttys): Declare.
28929 (Fgarbage_collect): Call them.
28930 (mark_object): Mark buried_buffer_list.
28931
28932 * prefix-args.c: Include stdlib.h for exit.
28933
28934 * syssignal.h: Add comment.
28935
28936 * indent.c: Include stdio.h.
28937
28938 * window.h (Vinitial_window_system): Declare.
28939 (Vwindow_system): Delete declaration.
28940
28941 * fontset.c (Finternal_char_font): Use FRAME_RIF.
28942
28943 * image.c (lookup_image): Don't initialize `c' until the xasserts
28944 have been run.
28945
28946 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
28947 FRAME_FOREGROUND_PIXEL.
28948
28949 * print.c (print_preprocess): Don't lose print_depth levels while
28950 iterating.
28951
28952 * widget.c (update_from_various_frame_slots):
28953 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
28954
28955 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
28956 frames.
28957 (window_internal_height): Remove bogus make_number call.
28958 (init_window_once): Call make_terminal_frame with two zero parameters.
28959
28960 * fileio.c (Fread_file_name): Update comment.
28961
28962 * callint.c (Fcall_interactively):
28963 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
28964 Make sure it is correctly unwound.
28965
28966 * xsmfns.c (x_session_close): New function.
28967
28968 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
28969 Delete declarations.
28970
28971 * xterm.h: Remove declaration for x_fully_uncatch_errors.
28972 (x_output): Remove background_pixel and foreground_pixel fields.
28973 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
28974 (x_delete_device, x_session_close): Declare.
28975
28976 * lread.c: Include setjmp.h. Update declaration of `read_char'.
28977 (read_filtered_event): Call `read_char' with a local
28978 `wrong_kboard_jmpbuf'.
28979
28980 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
28981 Don't call single_kboard_state. Use FRAME_RIF.
28982
28983 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
28984 systems.
28985
28986 * lisp.h (set_process_environment): Rename to `set_global_environment'.
28987 (Fframe_with_environment, Fset_input_meta_mode)
28988 (Fset_quit_char): EXFUN.
28989 (x_create_device, tty_output, terminal, tty_display_info): Declare.
28990 (init_sys_modes, reset_sys_modes): Update prototypes.
28991 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
28992
28993 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
28994 Vlocal_key_translation_map, and Vkeyboard_translate_table.
28995 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
28996 Delete declarations.
28997 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
28998 (temporarily_switch_to_single_kboard, tty_read_avail_input):
28999 New declarations.
29000
29001 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
29002 already does that during init_display(). Call syms_of_keymap
29003 before syms_of_keyboard. Call `syms_of_terminal'.
29004 Call set_initial_environment, not set_process_environment.
29005 (shut_down_emacs): Call reset_all_sys_modes() instead of
29006 reset_sys_modes().
29007
29008 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
29009 (internal_resolve_face_name, resolve_face_name_error): New functions.
29010 (resolve_face_name): Protect against loops and errors thrown by Fget.
29011 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
29012 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
29013
29014 * scroll.c: Replace CURTTY() with local variables throughout the
29015 file (where applicable).
29016 (calculate_scrolling, calculate_direct_scrolling)
29017 (scrolling_1, scroll_cost): Use the accessor macros for terminal
29018 characteristics.
29019
29020 * keymap.c (Vfunction_key_map): Remove.
29021 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
29022 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
29023 (Vkey_translation_map): Remove.
29024 (syms_of_keymap): Remove DEFVAR for key-translation-map.
29025 (Fdescribe_buffer_bindings)
29026 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
29027 Update for terminal-local key-translation-map.
29028
29029 * Makefile.in (callproc.o): Update dependencies.
29030 (lisp, shortlisp): Add termdev.elc.
29031 (obj): Add terminal.o.
29032 (terminal.o): Add dependencies.
29033 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
29034 (data.o, fns.o): Add termhooks.h dependency.
29035 (SOME_MACHINE_LISP): Add dnd.elc.
29036 (minibuf.o): Fix typo.
29037 Update dependencies.
29038
29039 * data.c (do_symval_forwarding, store_symval_forwarding)
29040 (find_symbol_value): Use the selected frame's keyboard, not
29041 current_kboard.
29042
29043 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
29044 Vwindow_system.
29045
29046 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
29047 Fmenu_bar_open.
29048 (syms_of_xmenu): Update defsubr.
29049 (mouse_position_for_popup, Fx_popup_menu)
29050 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
29051 (set_frame_menubar, free_frame_menubar)
b97439ce 29052 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
29053 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
29054 an X frame.
29055
29056 * xselect.c (x_own_selection): Abort if not an X frame.
29057 (some_frame_on_display): Check if it is an X frame.
29058 (x_handle_selection_clear): Deal with MULTI_KBOARD.
29059
29060 * coding.c: Include frame.h and termhooks.h.
29061 (terminal_coding, keyboard_coding): Delete.
29062 (Fset_terminal_coding_system_internal)
29063 (Fset_keyboard_coding_system_internal)
29064 (Fkeyboard_coding_system)
29065 (Fterminal_coding_system): Add a terminal parameter.
29066 Get terminal_coding from the terminal.
29067 (init_coding_once): Don't call setup_coding_system here.
29068
29069 * dispextern.h (set_scroll_region, turn_off_insert)
29070 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
29071 (tty_clear_end_of_line, tty_setup_colors)
29072 (delete_tty, updating_frame)
29073 (produce_special_glyphs, produce_glyphs, write_glyphs)
29074 (insert_glyphs): Remove.
29075 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
29076 (tty_turn_off_highlight, get_tty_size): Add declaration.
29077 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
29078
29079 * frame.h (enum output_method): Add output_initial.
29080 (struct x_output): Delete.
29081 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
29082 Access foreground_pixel and background_pixel directly from the frame.
29083 (tty_display): Delete.
29084 (struct frame): Add buried_buffer_list, foreground_pixel,
29085 background_pixel and terminal. Delete kboard.
29086 (union output_data): Add tty.
29087 (FRAME_KBOARD): Get the kboard from the terminal.
29088 (FRAME_INITIAL_P): New macro.
29089 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
29090 (Qterm_environment_variable, Qdisplay_environment_variable)
29091 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
29092 New declarations.
29093
29094 * termchar.h (tty_output, tty_display_info): New structures.
29095 (tty_list): Declare.
29096 (FRAME_TTY, CURTTY): New macros.
29097 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
29098 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
29099 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
29100 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
29101
29102 * callproc.c: Include frame.h and termhooks.h, for terminal
29103 parameters.
29104 (add_env): New function.
29105 (child_setup): Use it.
29106 (child_setup, getenv_internal): Handle the new Vprocess_environment.
29107 (getenv_internal): Fix get_terminal_param call.
29108 (Fgetenv_internal, egetenv): Update doc.
29109 (syms_of_callproc): Initialize Vprocess_environment to nil.
29110 Register and initialize them. Remove obsolete defvars. Update doc
29111 strings.
29112 (child_setup): Handle Vlocal_environment_variables.
29113 (getenv_internal): Add terminal parameter.
29114 Handle Vlocal_environment_variables.
29115 (Fgetenv_internal): Add terminal parameter.
29116 (child_setup, getenv_internal, Fgetenv_internal): Store the local
29117 environment in a frame (not terminal) parameter. Update doc strings.
29118 (set_initial_environment): Rename from set_global_environment.
29119 Store Emacs environment in initial frame parameter.
29120
29121 * xdisp.c (redisplay_internal): Update references to
29122 `previous_terminal_frame'.
29123 (display_mode_line, Fformat_mode_line): Replace calls to
29124 `push_frame_kboard' with `push_kboard'.
29125 (get_glyph_string_clip_rects): Add extra parentheses and
29126 braces to prevent compiler warnings.
29127 (calc_pixel_width_or_height): Add xassert to check that the
29128 frame is alive. Don't call `lookup_image' on a termcap frame.
29129 (message2_nolog, message3_nolog, redisplay_internal)
29130 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
29131 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
29132 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
29133 (Fx_display_pixel_width, Fx_display_pixel_height)
29134 (Fx_display_planes, Fx_display_color_cells)
29135 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
29136 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
29137 (Fx_display_backing_store, Fx_display_visual_class)
29138 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
29139 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
29140
29141 * xfns.c (x_set_foreground_color x_set_background_color)
29142 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
29143 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
29144 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
29145 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
29146 terminal that is being deleted.
29147 (Fx_create_frame): Use `store_frame_param' to set `window-system'
29148 frame parameter, and make sure it overrides any user-supplied setting.
29149 (Fx_close_connection, Fx_synchronize): Unify argument names with
29150 the rest of the DEFUNs.
29151
29152 * dispnew.c (Fsend_string_to_terminal): Update call to
29153 `get_tty_terminal'.
29154 (Fredraw_frame, Fsend_string_to_terminal)
29155 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
29156 FRAME_TERMCAP_P and FRAME_TTY.
29157 (window_change_signal): Don't believe width/height values that are
29158 impossibly small.
29159 (Vinitial_window_system): Rename from Vwindow_system.
29160 (termscript, Wcm, rif): Delete.
29161
29162 * termhooks.h (struct terminal): New struct containing the
29163 previously global text display hooks and new members NAME,
29164 DELETED and PARAM_ALIST.
29165 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
29166 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
29167 (FRAME_RIF): New macros.
29168 (get_terminal_param, get_device): New declarations.
29169 (termscript): Delete declaration.
29170
29171 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
29172 (XTflash, x_free_frame_resources, x_scroll_bar_create)
29173 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
29174 FRAME_FOREGROUND_PIXEL.
29175 (x_fully_uncatch_errors): Disable definition.
29176 (x_scroll_bar_expose): Fix reference to foreground pixel.
29177 (XTread_socket): Disable loop on all X displays.
29178 (x_delete_terminal): Don't set terminal->deleted and let
29179 delete_terminal delete the frames on the terminal.
29180 (x_delete_display): Doc update to reflect changes in
29181 delete_terminal.
29182 (x_display_info) <terminal>: Move member earlier in the struct.
29183 (deleting_tty): Remove old variable.
29184 (Fsuspend_tty): Call clear_tty_hooks.
29185 (Fresume_tty, init_tty): Call set_tty_hooks.
29186 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
29187 errors on X frames.
29188 (x_catch_errors_unwind): Abort if x_error_message is NULL.
29189 (handle_one_xevent): Initialize `f' to NULL.
29190 (x_delete_terminal, x_create_terminal): New functions.
29191 (XTset_terminal_modes, XTreset_terminal_modes)
29192 (XTread_socket, x_connection_closed, x_term_init)
29193 (x_term_init, x_delete_display): Add terminal parameter.
29194 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
29195 X connections.
29196
29197 * frame.c: Include termchar.h.
29198 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
29199 (Qwindow_system, Qenvironment, Qterm_environment_variable)
29200 (Qdisplay_environment_variable): New vars.
29201 (Fframep): Deal with output_initial.
29202 (Fframe-live-p): Doc fix.
29203 (Fwindow-system): New function.
29204 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
29205 (make_terminal_frame): Don't create frames on a terminal that is
29206 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
29207 (store_frame_param): Check for found_for_frame before calling XFRAME.
29208 (Fmake_terminal_frame): Handle NULL tty names correctly.
29209 (syms_of_frame): Enhance doc string of `default-frame-alist'.
29210 (Fdelete_frame): Remove unused variable `count'. Don't allow other
29211 frames to refer to a deleted frame in their 'environment parameter.
29212 (Fframe_with_environment): New function.
29213 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
29214 (get_future_frame_param): New function.
29215 (Fmake_terminal_frame): Use it.
29216 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
29217
29218 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
29219 * sysdep.c (reset_sys_modes): Update for renames.
29220
29221 * keyboard.c (tty_read_avail_input): New function.
29222 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
29223 (syms_of_keyboard): Defsubr them.
29224 (Fset_input_meta_mode, Fset_quit_char): New functions.
29225 (Fset_input_mode): Split to above functions.
29226 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
29227 parameter. Use it in call to `read_char'.
29228 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
29229 Set wrong_kboard_jmpbuf correctly in recursive calls.
29230 Use current_kboard to access Vkeyboard_translate_table.
29231 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
29232 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
29233 Update longjmp invocations. Remember the original current_kboard,
29234 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
29235 changes it. Comment out unnecessary calls to
29236 `record_single_kboard_state' and `any_kboard_state'.
29237 Update recursive calls.
29238 (wrong_kboard_jmpbuf): Remove global variable.
29239 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
29240 Handle deleted interrupted_kboards correctly; that is a legal
29241 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
29242 and read_char calls. Abort if interrupted_kboard died in read_char.
29243 (any_kboard_state, single_kboard_state)
29244 (push_frame_kboard): Remove function.
29245 (pop_kboard): Switch out of single_kboard mode if the kboard has
29246 been deleted. Remove unused variable. Help debugging by not
29247 changing current_kboard unnecessarily. Set current_kboard to the
29248 kboard of the selected frame when the stored kboard object has
29249 been deleted before pop_kboard.
29250 (temporarily_switch_to_single_kboard): Change first parameter to a
29251 frame pointer. Throw an error when caller wants to change kboards
29252 while in single_kboard mode. Don't push_kboard if we weren't in
29253 single kboard state. Don't pop_kboard if we popped into any
29254 kboard state.
29255 (restore_kboard_configuration): Abort if pop_kboard changed the
29256 kboard in single_kboard mode. Call pop_kboard only after setting
29257 up single_kboard mode.
29258 (Frecursive_edit): Switch to single_kboard mode only in nested
29259 command loops.
29260 (cmd_error, command_loop, command_loop_1, timer_check):
29261 Comment out unnecessary call to `any_kboard_state' and
29262 `record_single_kboard_state'.
29263 (delete_kboard): Exit single_kboard mode if we have just deleted
29264 that kboard. Use FRAME_KBOARD.
29265 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
29266 `fatal_error_signal'.
29267 (record_single_kboard_state): Don't push_kboard if we weren't in
29268 single kboard state. Don't pop_kboard if we popped into any
29269 kboard state.
29270 (push_frame_kboard): Rename to push_kboard.
29271 (kbd_buffer_get_event): Use FRAME_TERMINAL.
29272 (read_avail_input): Read input from all terminals.
29273 (mark_kboards): Also mark Vkeyboard_translate_table.
29274 (kbd_buffer_store_event_hold): Simplify condition.
29275 (read_key_sequence): Reinitialize fkey and keytran at each replay.
29276 (Vkeyboard_translate_table): Move to struct kboard.
29277 (init_kboard): Initialize Vkeyboard_translate_table.
29278 (syms_of_keyboard): Use DEFVAR_KBOARD to define
29279 Vkeyboard_translate_table. Update doc strings. Update docs of
29280 local-function-key-map and function-key-map.
29281
29282 * terminal.c: New file.
29283
29284 * term.c: Include errno.h.
29285 (Vring_bell_function, device_list, initial_device)
29286 (next_device_id, ring_bell, update_begin, update_end)
29287 (set_terminal_window, cursor_to, raw_cursor_to)
29288 (clear_to_end, clear_frame, clear_end_of_line)
29289 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
29290 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
29291 (syms_of_term): Move their initialization to terminal.c.
29292 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
29293 (Ftty_display_color_cells)
29294 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
29295 (clear_tty_hooks, set_tty_hooks)
29296 (init_tty, maybe_fatal): New functions.
29297 (Ftty_type): Return nil if terminal is not on a tty instead of
29298 throwing an error. Doc update.
29299 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
29300 Doc update. Initialize new subrs and variables.
29301 (delete_tty): Use terminal->deleted.
29302 (tty_set_terminal_modes): Rename from set_terminal_modes.
29303 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
29304 (set_scroll_region): Rename to `tty_set_scroll_region'.
29305 (turn_on_insert): Rename to `tty_turn_on_insert'.
29306 (turn_off_insert): Rename to `tty_turn_off_insert'.
29307 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
29308 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
29309 (toggle_highligh): Rename to `tty_toggle_highlight'.
29310 (background_highlight): Rename to `tty_background_highlight'.
29311 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
29312 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
29313 (tty_set_scroll_region, tty_background_highlight)
29314 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
29315 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
29316 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
29317 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
29318 Add static modifier.
29319 (tty_reset_terminal_modes, tty_set_terminal_window)
29320 (tty_set_scroll_region, tty_background_highlight)
29321 (tty_highlight_if_desired, tty_cursor_to)
29322 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
29323 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
29324 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
29325 renames.
29326
293272007-08-28 Jan Djärv <jan.h.d@swipnet.se>
29328
29329 * keyboard.c: Qrtl is new.
29330 (parse_tool_bar_item): Handle :rtl keyword.
29331 (syms_of_keyboard): Intern :rtl keyword.
29332
29333 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
29334
29335 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
29336 so no Lisp code is executed.
29337 (file_for_image, find_rtl_image): New functions.
29338 (xg_get_image_for_pixmap): Use file_for_image.
29339 (update_frame_tool_bar): If direction is RTL, use RTL image if
29340 defined. Use Gtk stock images if defined.
29341
293422007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29343
29344 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
29345 for nonexistent or zero-width glyph in composition glyph.
29346
293472007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
29348
29349 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
29350
29351 * xdisp.c (Finvisible_p): New function.
29352 (syms_of_xdisp): defsubr it.
29353
293542007-08-24 Juanma Barranquero <lekktu@gmail.com>
29355
29356 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
29357 Doc fixes.
29358
293592007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29360
29361 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
29362
293632007-08-24 Martin Rudalics <rudalics@gmx.at>
29364
29365 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
29366 whether decoding has modified buffer contents.
29367
293682007-08-24 Jason Rumney <jasonr@gnu.org>
29369
29370 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
29371 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
29372 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
29373 (init_svg_functions) [HAVE_NTGUI]: New function.
29374 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
29375 (svg_load_image): Use them.
29376 (svg_load_image) [HAVE_NTGUI]: Implement background.
29377
293782007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29379
29380 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
29381 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
29382 (LIBX): Remove @RSVG_LIBS@.
29383 (LIBES): Add $(RSVG_LIBS).
29384
29385 * image.c (svg_load_image): Blend with specified background if exists.
29386 Use IMAGE_BACKGROUND. Add Mac OS Support.
29387
29388 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
29389 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
29390 Remove macros.
29391 [MAC_OSX] (socket_callback): Do nothing.
29392 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
29393 ReceiveNextEvent.
29394 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
29395 socket_callback.
29396 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
29397
293982007-08-22 Glenn Morris <rgm@gnu.org>
29399
29400 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
29401
294022007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
29403
29404 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
29405
29406 * image.c: Add support for SVG images. Some additional comments
29407 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
29408 (svg_image_p): New function to test for SVG image.
29409 (svg_load): New function to load SVG image.
29410 (svg_load_image): New function, helper for svg_load.
29411 (Qsvg): New Lisp_object.
29412 (svg_keyword_index): New enum.
29413 (svg_format): New static `image_keyword' struct.
29414 (svg_type): New static `image_type' struct.
29415 (librsvg/rsvg.h): Include it.
29416
294172007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
29418
29419 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
29420
294212007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
29422
29423 * lread.c (Qold_style_backquotes): New var.
29424 (syms_of_lread): Init and staticpro it.
29425 (load_warn_old_style_backquotes): New fun.
29426 (Fload): Use them to warn about old style backquotes.
29427 (end_of_file_error, Fload): Remove unused vars.
29428
29429 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
29430
29431 * lread.c (Vold_style_backquotes): New var.
29432 (syms_of_lread): Init and export it to Elisp.
29433 (read1): Set it when we find an old-style (back)quote.
29434
294352007-08-22 Jason Rumney <jasonr@gnu.org>
29436
29437 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
29438
294392007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
29440
29441 * puresize.h (BASE_PURESIZE): Increase to 1140000.
29442
294432007-08-19 Richard Stallman <rms@gnu.org>
29444
29445 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
29446
294472007-08-19 Andreas Schwab <schwab@suse.de>
29448
29449 * alloc.c (pure): Round PURESIZE up.
29450
294512007-08-17 Jan Djärv <jan.h.d@swipnet.se>
29452
29453 * xterm.c (handle_one_xevent): Remove check that mouse click is in
29454 active frame.
29455
294562007-08-16 Richard Stallman <rms@gnu.org>
29457
29458 * eval.c (Fcommandp): Add parens to clarify.
29459
29460 * minibuf.c (Fall_completions): Use enum for type of table.
29461
29462 * emacs.c (USAGE2): Improve text.
29463
294642007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
29465
29466 * term.c (tty_default_color_capabilities): Declare static
29467 variables in file scope, to avoid HPUX compiler problem.
29468
294692007-08-13 Jan Djärv <jan.h.d@swipnet.se>
29470
29471 * gtkutil.c (update_frame_tool_bar): Use -1 as index
29472 to gtk_toolbar_insert.
29473
294742007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
29475
29476 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
29477
29478 * insdel.c (reset_var_on_error): New fun.
29479 (signal_before_change, signal_after_change):
29480 Use it to reset (after|before)-change-functions to nil in case of error.
29481 Bind inhibit-modification-hooks to t.
29482 Don't bind (after|before)-change-functions to nil while they run.
29483
294842007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29485
29486 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
29487 filling pixmap with stippled background.
29488
294892007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29490
29491 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
29492 Don't use invisible frame as parent window for repositioning.
29493
294942007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
29495
29496 * print.c (new_backquote_output): Rename from old_backquote_output.
29497 (print): Inverse its logic (according to its name) so as to match the
29498 behavior of new_backquote_flag in lread.c.
29499
295002007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29501
29502 * gmalloc.c (posix_memalign): New function.
29503
29504 * macterm.c (frame_highlight, frame_unhighlight): Don't call
29505 ActivateControl/DeactivateControl here.
29506 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
29507 frame-notice-user-settings is non-nil.
29508 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
29509 for kEventParamFMFontStyle.
29510 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
29511 mac_pass_command_to_system and mac_pass_control_to_system here.
29512 (XTread_socket): Call ActivateControl/DeactivateControl here.
29513 (XTread_socket) [TARGET_API_MAC_CARBON]:
29514 Check mac_pass_command_to_system and mac_pass_control_to_system here.
29515 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
29516 for window repositioning.
29517
295182007-08-08 Glenn Morris <rgm@gnu.org>
29519
29520 * Replace `iff' in doc-strings and comments.
29521
295222007-08-07 Chong Yidong <cyd@stupidchicken.com>
29523
29524 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
29525
295262007-08-07 Martin Rudalics <rudalics@gmx.at>
29527
29528 * fileio.c (Finsert_file_contents): Run format-decode and
29529 after_insert_file_functions on entire buffer when REPLACE is
29530 non-nil and inhibit modification_hooks and point_motion_hooks.
29531 For consistency, run after_insert_file_functions iff something
29532 got inserted. Move signal_after_change and update_compositions
29533 after code running after_insert_file_functions. Make sure that
29534 undo_list doesn't record intermediate steps of the decoding process.
29535
295362007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29537
29538 * emacs.c (main)
29539 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
29540 Call malloc_enable_thread on interactive startup.
29541
29542 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
29543 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
29544 [USE_PTHREAD]: Conditionalize with it.
29545 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
29546 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
29547 New functions.
29548
295492007-08-06 Chong Yidong <cyd@stupidchicken.com>
29550
29551 * xdisp.c (redisplay_window): When restoring original buffer
29552 position, make sure it is still valid.
29553
29554 * image.c (png_load): Ignore png-supplied background color.
29555
295562007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29557
29558 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
29559 Use kCFAbsoluteTimeIntervalSince1970.
29560
29561 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
29562 New variable.
29563 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
29564 event loop should be quit.
29565 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
29566 Quit dialog event loop if quit_dialog_event_loop is set.
29567
29568 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
29569 (Selection): New typedef. Use instead of ScrapRef.
29570 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
29571 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
29572 (mac_clear_selection): Rename from clear_scrap.
29573 (get_flavor_type_from_symbol): New argument SEL and subsume function of
29574 scrap_has_target_type. All uses changed.
29575 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
29576 (mac_selection_has_target_p): New functions.
29577 (mac_put_selection_value): Rename from put_scrap_string.
29578 (mac_get_selection_value): Rename from get_scrap_string.
29579 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
29580 (put_scrap_private_timestamp, scrap_has_target_type)
29581 (get_scrap_private_timestamp): Remove functions.
29582 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
29583 (x_own_selection, x_get_local_selection):
29584 Use mac_valid_selection_value_p.
29585 (x_own_selection): Don't use put_scrap_private_timestamp.
29586 Record OWNERSHIP-INFO into Vselection_alist instead.
29587 (x_get_local_selection): Don't check type if request is local.
29588 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
29589 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
29590
295912007-08-04 Jan Djärv <jan.h.d@swipnet.se>
29592
29593 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
29594 add comment explaining why.
29595
295962007-08-03 Richard Stallman <rms@gnu.org>
29597
29598 * fileio.c (Fvisited_file_modtime): Use make_time.
29599
296002007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
29601
29602 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
29603 build.
29604
296052007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
29606
29607 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
29608
296092007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
29610
29611 * puresize.h (BASE_PURESIZE): Increase to 1130000.
29612
296132007-07-30 Richard Stallman <rms@gnu.org>
29614
29615 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
29616
296172007-07-29 Jan Djärv <jan.h.d@swipnet.se>
29618
29619 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
29620
296212007-07-28 Nick Roberts <nickrob@snap.net.nz>
29622
29623 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
29624 remote default-directory.
29625
29626 * buffer.c (mode-line-format): Update doc string.
29627
296282007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29629
29630 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
29631 scroll bar gap.
29632 (x_scroll_bar_create): Set bar->fringe_extended_p.
29633 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
29634 on frame edge. Check fringe background extension. Don't clear
29635 extended fringe background area.
29636
29637 * w32term.h (struct scroll_bar): New member fringe_extended_p.
29638 (w32_fill_area): Enclose multiple statements with do ... while (0).
29639
29640 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
29641 Extend fringe background to scroll bar gap.
29642 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
29643 Set bar->fringe_extended_p.
29644 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
29645 Put leftmost/rightmost scroll bars on frame edge. Check fringe
29646 background extension. Don't clear extended fringe background area.
29647
29648 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
29649 New member fringe_extended_p.
29650
296512007-07-25 Glenn Morris <rgm@gnu.org>
29652
29653 * Relicense all FSF files to GPLv3 or later.
29654
29655 * COPYING: Switch to GPLv3.
29656
296572007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
29658
29659 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
29660
29661 * data.c (Finteractive_form): Check for the presence of an
29662 `interactive-form' symbol property more thoroughly.
29663
29664 * data.c (Finteractive_form): Use an `interactive-form' property if
29665 present, analogous to the function-documentation property.
29666
296672007-07-24 Jason Rumney <jasonr@gnu.org>
29668
29669 * w32fns.c (x_real_positions): Get real position from OS instead of
29670 calculating it.
29671
296722007-07-23 Jason Rumney <jasonr@gnu.org>
29673
29674 * filelock.c (current_lock_owner): Allow for @ sign in username.
29675
296762007-07-22 Nick Roberts <nickrob@snap.net.nz>
29677
29678 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
29679 remote default-directory.
29680
29681 * buffer.c (mode-line-format): Describe above case in doc string.
29682
296832007-07-20 Eli Zaretskii <eliz@gnu.org>
29684
29685 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
29686 Define if not defined.
29687
296882007-07-18 Jason Rumney <jasonr@gnu.org>
29689
29690 * w32proc.c (w32_executable_type): Handle 64 bit executables.
29691
296922007-07-18 Richard Stallman <rms@gnu.org>
29693
29694 * data.c (Fsetq_default): Doc fix.
29695
29696 * eval.c (Fsetq): Doc fix.
29697
296982007-07-18 Juanma Barranquero <lekktu@gmail.com>
29699
29700 * coding.c (Ffind_operation_coding_system):
29701 * eval.c (For, Fand): Doc fixes.
29702 Reported by Johan Bockgård.
29703
297042007-07-18 Jan Djärv <jan.h.d@swipnet.se>
29705
29706 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
29707
29708 * xterm.h: Declare x_ewmh_activate_frame.
29709
29710 * xterm.c (x_ewmh_activate_frame): New function.
29711 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
29712
297132007-07-17 Martin Rudalics <rudalics@gmx.at>
29714
29715 * window.c (Fdisplay_buffer): If largest or LRU window is the
29716 only window, split it even if it is not eligible for splitting.
29717 This restores the original behavior broken by the 2007-07-15
29718 change.
29719
297202007-07-17 Glenn Morris <rgm@gnu.org>
29721
29722 * abbrev.c (abbrev_check_chars): New function.
29723 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
29724 Call abbrev_check_chars to check abbrev characters are word
29725 constituents. Doc fix.
29726
297272007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
29728
29729 * process.c (Fstart_process, Fmake_network_process)
29730 (read_process_output): Fix up last changes.
29731
297322007-07-16 Eli Zaretskii <eliz@gnu.org>
29733
29734 * makefile.w32-in (clean): Don't delete *~.
29735
297362007-07-16 Andreas Schwab <schwab@suse.de>
29737
29738 * window.c (Fdisplay_buffer): Use NILP.
29739 (Fset_window_scroll_bars): Likewise.
29740
297412007-07-15 Martin Rudalics <rudalics@gmx.at>
29742
29743 * window.c (window_min_size_2): New function.
29744 (window_min_size_1, size_window, Fdisplay_buffer)
29745 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
29746 windows without mode- or header-lines when window-min-height is
29747 too small.
29748 (size_window): Reset nodelete_p after testing it, following an
29749 earlier note by Kim F. Storm.
29750 (display_buffer): Do not set split_height_threshold to twice the
29751 value of window_min_height to avoid changing the value of a
29752 customizable variable. Rather explicitly check whether the
29753 height of the window that shall be splitted is at least as large
29754 as split_height_threshold.
29755 (Fwindow_full_width_p): New defun.
29756 (syms_of_window): Defsubr it.
29757
29758 * window.h: Add EXFUN for Fwindow_full_width_p.
29759
297602007-07-14 Jason Rumney <jasonr@gnu.org>
29761
29762 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
29763
297642007-07-14 Richard Stallman <rms@gnu.org>
29765
29766 * eval.c (maybe_call_debugger): New function.
29767 (find_handler_clause): Use maybe_call_debugger.
29768 Call it when the handler says `debug'.
29769 Eliminate DEBUGGER_VALUE_PTR.
29770 (Fsignal): Eliminate debugger_value.
29771 (Qdebug): New variable.
29772 (syms_of_eval): Initialize it.
29773
297742007-07-14 Juanma Barranquero <lekktu@gmail.com>
29775
29776 * eval.c (Fprogn):
29777 * keyboard.c (Ftrack_mouse):
29778 * print.c (Fwith_output_to_temp_buffer):
29779 * window.c (Fsave_window_excursion): Doc fix.
29780
297812007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
29782
29783 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
29784
297852007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
29786
29787 * process.h (struct Lisp_Process): Turn slots infd, outfd,
29788 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
29789 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
29790 read_output_delay, and read_output_skip from Lisp_Objects to ints.
29791 Remove unused encoding_carryover.
29792 * process.c: Adjust all functions accordingly.
29793
297942007-07-12 Richard Stallman <rms@gnu.org>
29795
29796 * term.c: Include unistd.h only if HAVE_UNISTD_H.
29797
297982007-07-11 Jason Rumney <jasonr@gnu.org>
29799
29800 * makefile.w32-in (LIBS): Include OLE32.
29801
29802 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
29803 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
29804
298052007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
29806
29807 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
29808 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
29809 from a Lisp_Object into a bare pointer.
29810 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
29811 Adjust the code correspondingly.
29812
29813 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
29814
29815 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
29816 (term_show_mouse_face): Remove unused var `j'.
29817 (handle_one_term_event): Remove unused vars `i' and `j'.
29818 Don't cast return value of ttyname since it's not necessary.
29819
298202007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
29821
29822 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
29823 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
29824
29825 * fns.c (map_char_table): Use an array of int for `indices' rather than
29826 an array of Lisp_Objects (which are only ever integers anyway).
29827 (Fmap_char_table): Update caller.
29828 * lisp.h: Update prototype.
29829 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
29830 * fontset.c (Ffontset_info):
29831 * casetab.c (set_case_table): Update callers.
29832
29833 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
29834
29835 * keymap.c (struct accessible_keymaps_data)
29836 (struct where_is_internal_data): New structures.
29837 (accessible_keymaps_1, where_is_internal_1): Use them to change
29838 interface to adhere to the one used by map_keymap.
29839 (Faccessible_keymaps, where_is_internal): Use map_keymap.
29840 (accessible_keymaps_char_table, where_is_internal_2): Remove.
29841
29842 * keymap.h (map_keymap_function_t): More informative prototype.
29843
298442007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
29845
29846 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
29847 (looking_at_1): Don't change search_regs and last_thing_searched
29848 if `inhibit-changing-match-data' is non-nil.
29849 (string_match_1, search_buffer, set_search_regs): Likewise.
29850 (syms_of_search): Add Lisp level definition for
29851 `inhibit-changing-match-data' and set it to nil.
29852 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
29853 start and end of the match, instead of using values in search_regs.
29854
298552007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
29856
29857 * minibuf.c (Fcompleting_read): New value `confirm-only'
29858 for `require-match'.
29859
298602007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
29861
29862 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
29863 part of the 2007-06-27 change to syms_of_fileio.
29864
298652007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29866
29867 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
29868 Check WINDOWP before using XWINDOW. Consolidate return statements.
29869
298702007-06-27 Richard Stallman <rms@gnu.org>
29871
29872 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
29873
298742007-06-27 Juanma Barranquero <lekktu@gmail.com>
29875
29876 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
29877
298782007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29879
29880 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
29881 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
29882 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
29883 (_free_internal, memalign): Use them.
29884 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
29885 Initialize to PTHREAD_MUTEX_INITIALIZER.
29886 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
29887 (morecore_nolock): Rename from morecore. All uses changed.
29888 Use only nolock versions of internal allocation functions.
29889 (_malloc_internal_nolock, _realloc_internal_nolock)
29890 (_free_internal_nolock): New functions created from
29891 _malloc_internal, _realloc_internal, and _free_internal.
29892 (_malloc_internal, _realloc_internal, _free_internal): Use them.
29893 Copy hook value to automatic variable before its use.
29894 (memalign): Copy hook value to automatic variable before its use.
29895
298962007-06-26 Kenichi Handa <handa@m17n.org>
29897
29898 * coding.c (Ffind_operation_coding_system): Docstring improved.
29899 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
29900
299012007-06-25 David Kastrup <dak@gnu.org>
29902
29903 * keymap.c (Fcurrent_active_maps): Add `position' argument.
29904 (Fwhere_is_internal): Adjust call to `current-active-maps' to
29905 cater for additional parameter.
29906
29907 * keymap.h: Adjust number of parameters to `current-active-maps'.
29908
29909 * doc.c (Fsubstitute_command_keys): Adjust call of
29910 `current-active-maps'.
29911
299122007-06-25 David Kastrup <dak@gnu.org>
29913
29914 * callint.c (Fcall_interactively): Make the parsing of interactive
29915 specs somewhat more readable.
29916
299172007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29918
29919 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
29920 to scroll bar gap also when bitmap fills fringe. Draw only foreground
29921 if extended background has already been filled.
29922
299232007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29924
29925 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
29926 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
29927
29928 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
29929 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
29930 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
29931 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
29932 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
29933 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
29934 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
29935 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
29936 Run timers during dialog popup.
29937 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
29938
299392007-06-21 Jason Rumney <jasonr@gnu.org>
29940
29941 * image.c (convert_mono_to_color_image): Swap fore and background.
29942
299432007-06-20 Jason Rumney <jasonr@gnu.org>
29944
29945 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
29946 (w32_free_bdf_font): Unmap memory not handle.
29947
299482007-06-20 Sam Steingold <sds@gnu.org>
29949
29950 * gmalloc.c (__morecore): Fix the declaration to comply with the
29951 definition.
29952
299532007-06-20 Juanma Barranquero <lekktu@gmail.com>
29954
29955 * w32term.c (w32_delete_display): Remove leftover declaration.
29956 (w32_define_cursor, w32_initialize): Make static.
29957
29958 * w32.c (_wsa_errlist): Fix typo in error message.
29959 (init_environment): Ignore any environment variable from the
29960 registry having a null value.
29961
299622007-06-20 Glenn Morris <rgm@gnu.org>
29963
29964 * Makefile.in (LIBGIF): Default to -lgif.
29965
299662007-06-17 Jason Rumney <jasonr@gnu.org>
29967
29968 * w32menu.c (add_menu_item): Don't use multibyte string functions on
29969 unicode strings.
29970
299712007-06-16 Juanma Barranquero <lekktu@gmail.com>
29972
29973 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
29974 Fix typo in docstring.
29975
299762007-06-16 Eli Zaretskii <eliz@gnu.org>
29977
29978 * w32menu.c (add_menu_item): Escape `&' characters in menu items
29979 and their keybindings.
29980
299812007-06-15 Chong Yidong <cyd@stupidchicken.com>
29982
29983 * composite.c (update_compositions): Fix last fix.
29984
299852007-06-14 Jason Rumney <jasonr@gnu.org>
29986
29987 * w32.c (get_process_times_fn): New function pointer.
29988 (globals_of_w32): Intialize it if present in kernel32.dll.
29989 (w32_get_internal_run_time): New function.
29990
29991 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
29992
299932007-06-14 Kenichi Handa <handa@etlken.m17n.org>
29994
29995 * composite.c (update_compositions): Check the validness of
29996 compositions.
29997
299982007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29999
30000 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
30001 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
30002
30003 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
30004 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
30005
30006 * macgui.h (USE_MAC_TOOLBAR): New define.
30007
30008 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
30009 Return immediately unless popup is activated.
30010
30011 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
30012 background to scroll bar gap.
30013 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
30014 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
30015 scroll bars on frame edge. Check fringe background extension.
30016 Don't clear extended fringe background area.
30017 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
30018 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
30019 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
30020 [USE_MAC_TOOLBAR]: New macros.
30021 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
30022 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
30023 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
30024 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
30025 [USE_MAC_TOOLBAR]: New functions.
30026 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
30027 manually if previous repositioning has failed.
30028 (mac_handle_keyboard_event): Use precomputed event kind.
30029 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
30030 as tool bar item click. Handle mouse movement over tool bar items.
30031
30032 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
30033 toolbar_win_gravity.
30034 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
30035 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
30036 Add externs.
30037
30038 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
30039 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
30040
300412007-06-14 Chong Yidong <cyd@stupidchicken.com>
30042
30043 * image.c (search_image_cache): Remove unused variable.
30044
300452007-06-13 Chong Yidong <cyd@stupidchicken.com>
30046
30047 * xfns.c, xmenu.c: Link to xaw3d if available.
30048
300492007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30050
30051 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
30052 frame_foreground and frame_background.
30053
30054 * image.c (lookup_image): Save frame foreground and background colors.
30055 (search_image_cache): Check if saved and current frame colors match.
30056
300572007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
30058
30059 * regex.c (regex_compile): Remove the `regnum' counter.
30060 Use bufp->re_nsub instead. Add support for \(?N:RE\).
30061
300622007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
30063
30064 * term.c: Include intervals.h to declare Fget_text_property.
30065
300662007-06-10 Jason Rumney <jasonr@gnu.org>
30067
30068 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
30069
300702007-06-08 Juanma Barranquero <lekktu@gmail.com>
30071
30072 * callint.c (Fcall_interactively):
30073 * editfns.c (Fdelete_and_extract_region):
30074 * fileio.c (Fread_file_name):
30075 * fns.c (Fmapconcat):
30076 * keyboard.c (cmd_error_internal):
30077 * keymap.c (Fkey_description):
30078 * lread.c (openp):
30079 * minibuf.c (read_minibuf):
30080 * search.c (wordify):
30081 * sunfns.c (sel_read):
30082 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
30083 * xfns.c (x_default_scroll_bar_color_parameter):
30084 * xmenu.c (menu_help_callback):
30085 * xselect.c (Fx_get_atom_name):
30086 * xterm.c (x_term_init): Use empty_unibyte_string.
30087
300882007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
30089
30090 * alloc.c (init_strings): Initialize canonical empty strings.
30091 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
30092 canonical empty string when the requested size is 0.
30093
30094 * emacs.c (empty_unibyte_string): Rename from empty_string.
30095 (empty_multibyte_string): New canonical empty string.
30096 (syms_of_emacs): Don't initialize empty_string.
30097
30098 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
30099 string, if appropriate.
30100 (empty_unibyte_string, empty_multibyte_string): New externs.
30101 (empty_string): Remove extern.
30102
30103 * lread.c (syms_of_lread): Use empty_unibyte_string.
30104
301052007-06-07 Jason Rumney <jasonr@gnu.org>
30106
30107 * s/ms-w32.h: Don't define HAVE_TZNAME.
30108
30109 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
30110
301112007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30112
30113 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
30114
30115 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
30116 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
30117
30118 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
30119 Don't call next handler.
30120 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
30121 Remove argument. Install handler to application.
30122 (set_frame_menubar): Don't change deep_p.
30123 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
30124 FRAME_OUTER_TO_INNER_DIFF_Y.
30125 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
30126 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
30127 [HAVE_DIALOGS]: New macros.
30128 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
30129 Use them.
30130 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
30131
30132 * macselect.c [MAC_OSX] (install_service_handler): Rename from
30133 init_service_handler. All callers changed. Return OSStatus value.
30134
30135 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
30136 All callers changed so as not to call SetPortWindowPort.
30137 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
30138 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
30139 mac_draw_string_common.
30140 (mac_draw_image_string_qd): Likewise.
30141 (mac_draw_string_common): Use them. Add INLINE.
30142 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
30143 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
30144 GetGlobalMouse.
30145 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
30146 and FRAME_OUTER_TO_INNER_DIFF_Y.
30147 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
30148 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
30149 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
30150 repositioning window to mac_handle_window_event.
30151 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
30152 saving window location to mac_handle_window_event
30153 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
30154 (install_menu_target_item_handler): Remove argument in extern.
30155 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
30156 Also accept command events.
30157 (do_keystroke): New function created from XTread_socket.
30158 (init_command_handler): Remove functions.
30159 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
30160 and save window location by kEventWindowShowing and kEventWindowHiding
30161 handlers here. Don't call next handler for window state change and
30162 focus events.
30163 (mac_handle_application_event, mac_handle_keyboard_event)
30164 [TARGET_API_MAC_CARBON]: New functions.
30165 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
30166 kEventWindowShowing and kEventWindowHiding events. Move installation
30167 of mouse, font, text input and menu target item handlers to
30168 install_application_handler.
30169 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
30170 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
30171 New function.
30172 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
30173 Register it.
30174 (XTread_socket) [TARGET_API_MAC_CARBON]:
30175 Consolidate SendEventToEventTarget calls.
30176 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
30177 Move application activation handler to mac_handle_application_event.
30178 Move keyboard handler to mac_handle_keyboard_event.
30179 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
30180 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
30181 init_command_handler. Call install_application_handler.
30182
30183 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
30184 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
30185
301862007-06-07 Glenn Morris <rgm@gnu.org>
30187
30188 * emacs.c (main): Use `emacs-copyright' in --version output.
30189
301902007-06-06 Chong Yidong <cyd@stupidchicken.com>
30191
30192 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
30193
301942007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30195
30196 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
30197
30198 * macgui.h: Replace WindowPtr with WindowRef.
30199
30200 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
30201 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
30202 Replace ControlHandle with ControlRef.
30203 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
30204
30205 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
30206 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
30207 Replace ControlHandle with ControlRef.
30208 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
30209 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
30210
30211 * macterm.h (struct scroll_bar): Rename member control_handle_low
30212 and control_handle_high to control_ref_low and control_ref_high.
30213 All uses changed.
30214 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
30215 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
30216 respectively. All uses changed.
30217 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
30218 (install_window_handler, remove_window_handler): Replace WindowPtr
30219 with WindowRef in externs.
30220
302212007-06-05 Juanma Barranquero <lekktu@gmail.com>
30222
30223 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
30224
302252007-06-03 Nick Roberts <nickrob@snap.net.nz>
30226
30227 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
30228
30229 * frame.c (Fmouse_position, Fmouse_pixel_position):
30230 Condition on HAVE_GPM too.
30231
30232 * term.c (term_mouse_highlight): Remove unused variables.
30233 (Fterm_open_connection): Set gpm_zerobased to 1.
30234 (term_mouse_movement, term_mouse_click, handle_one_term_event):
30235 Use zero based co-ordinates.
30236 (handle_one_term_event): Report a drag as mouse movement too.
30237
30238 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
30239
302402007-06-03 Chong Yidong <cyd@stupidchicken.com>
30241
30242 * image.c (search_image_cache): New function. Require background
30243 color match if background color is unspecified in the image spec.
30244 (uncache_image, lookup_image): Use it.
30245
302462007-06-01 Juanma Barranquero <lekktu@gmail.com>
30247
30248 * window.c (Fshrink_window): Reflow docstring.
30249
302502007-06-02 Chong Yidong <cyd@stupidchicken.com>
30251
30252 * Version 22.1 released.
30253
302542007-06-01 Richard Stallman <rms@gnu.org>
30255
30256 * xfns.c (x_encode_text): Add GCPRO.
30257
302582007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30259
30260 * xfns.c (x_set_name_internal): Save encoded name before
30261 x_encode_text in case string data is relocated.
30262
302632007-05-31 Richard Stallman <rms@gnu.org>
30264
30265 * buffer.c (syms_of_buffer): Doc fix.
30266
302672007-05-30 Nick Roberts <nickrob@snap.net.nz>
30268
30269 * sysdep.c (init_sys_modes): Add rather than replace with
30270 O_NONBLOCK.
30271
30272 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
30273 term_mouse_moveto.
30274
30275 * termhooks.h (term_mouse_moveto): New extern.
30276
30277 * term.c (mouse_face_window): Rename...
30278 (Qmouse_face_window): ...to this.
30279 (term_show_mouse_face, term_clear_mouse_face)
30280 (term_mouse_highlight): Use Qmouse_face_window.
30281 (term_mouse_moveto): New function.
30282 (term_mouse_position): Make it work.
30283 (syms_of_term): Uncomment assignment to mouse_position_hook.
30284 Staticpro Qmouse_face_window.
30285
302862007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30287
30288 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
30289 around current_column call.
30290
302912007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
30292
30293 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
30294 * xdisp.c (next_element_from_buffer):
30295 * window.c (delete_window):
30296 * term.c (term_mouse_highlight):
30297 * msdos.c (getdefdir):
30298 * macterm.c (mac_create_bitmap_from_bitmap_data)
30299 (init_font_name_table):
30300 * fns.c (Fsxhash):
30301 * data.c (Fmake_local_variable):
30302 * ccl.c (ccl_driver): Likewise.
30303
303042007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30305
30306 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
30307 Call mac_wakeup_from_rne on window size change.
30308
303092007-05-25 Chong Yidong <cyd@stupidchicken.com>
30310
30311 * image.c (uncache_image): Fix typo.
30312
303132007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
30314
30315 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
30316
303172007-05-22 Richard Stallman <rms@gnu.org>
30318
30319 * xterm.c (x_connection_closed): Remove NO_RETURN.
30320
303212007-05-22 Martin Rudalics <rudalics@gmx.at>
30322
30323 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
30324
303252007-05-21 Chong Yidong <cyd@stupidchicken.com>
30326
30327 * image.c (uncache_image): New function.
30328 (Fimage_refresh): New function.
30329
303302007-05-20 Jan Djärv <jan.h.d@swipnet.se>
30331
30332 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
30333
303342007-05-20 Nick Roberts <nickrob@snap.net.nz>
30335
30336 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
30337 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
30338
303392007-05-20 Nick Roberts <nickrob@snap.net.nz>
30340
30341 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
30342 conditional on [HAVE_GPM_H].
30343
303442007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
30345
30346 * syntax.c (skip_chars): Update syntax-table only after we checked that
30347 the new location is valid.
30348
303492007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30350
30351 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
30352 mac_get_window_bounds.
30353
303542007-05-20 Nick Roberts <nickrob@snap.net.nz>
30355
30356 * Makefile.in (LIBGPM): Allow it to be set from configure.
30357 If set then link Emacs with it.
30358
30359 * config.in: Regenerate.
30360
30361 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
30362 New externs.
30363
30364 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
30365 Include gpm.h.
30366 (handle_one_term_event, term_gpm): New externs.
30367
30368 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
30369 and allow it to be interrupted by SIGIO.
30370
30371 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
30372 (wait_reading_process_output): Wait on gpm_fd too.
30373 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
30374 (add_gpm_wait_descriptor_called_flag): New variable.
30375 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
30376
30377 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
30378 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
30379 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
30380 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
30381 (make_lispy_event): Add case GPM_CLICK_EVENT.
30382 (read_avail_input): Handle mouse input.
30383
30384 * term.c (write_glyphs_with_face): New function.
30385 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
30386 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
30387 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
30388 (mouse_face_face_id, term_gpm, pos_x, pos_y)
30389 (last_mouse_x, last_mouse_y): New variables.
30390 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
30391 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
30392 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
30393 (Fterm_close_connection): New functions.
30394 (term_init): Initialise mouse_face_window.
30395
303962007-05-19 Chong Yidong <cyd@stupidchicken.com>
30397
30398 * xdisp.c (redisplay_window): If first window line is a
30399 continuation line, recompute the new window start instead of
30400 recentering.
30401
304022007-05-18 Glenn Morris <rgm@gnu.org>
30403
30404 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
30405 Suggested by Alfred M. Szmidt <ams@gnu.org>.
30406
304072007-05-17 Glenn Morris <rgm@gnu.org>
30408
30409 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
30410
304112007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30412
30413 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
30414 dead key repeat and up events.
30415
304162007-05-14 Chong Yidong <cyd@stupidchicken.com>
30417
30418 * image.c (pbm_load): Check image size for monochrome pbm.
30419
304202007-05-13 Chong Yidong <cyd@stupidchicken.com>
30421
30422 * xterm.c (XTread_socket): Revert last change.
30423
304242007-05-12 Chong Yidong <cyd@stupidchicken.com>
30425
30426 * image.c (pbm_load): Correctly check image size for greyscale pbm.
30427
30428 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
30429
304302007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
30431
30432 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
30433 mixup (YAILOM).
30434
304352007-05-07 Andreas Schwab <schwab@suse.de>
30436
30437 * keymap.c (Flookup_key): Fix typo in last change.
30438
304392007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
30440
30441 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
30442 mapping for unibyte strings.
30443
304442007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30445
30446 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
30447 (Fx_popup_dialog) [MAC_OSX]: Likewise.
30448
304492007-04-29 Richard Stallman <rms@gnu.org>
30450
30451 * insdel.c (replace_range): For undo, record insertion first.
30452
304532007-04-29 Andreas Schwab <schwab@suse.de>
30454
30455 * lisp.h (VECSIZE): Use OFFSETOF.
30456
304572007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30458
30459 * xdisp.c (try_window_reusing_current_matrix): Fix number of
30460 disabled lines.
30461
304622007-04-28 Richard Stallman <rms@gnu.org>
30463
30464 * lread.c (read_escape): In a string, \s is always space.
30465
304662007-04-27 Jan Djärv <jan.h.d@swipnet.se>
30467
30468 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
30469
30470 * gtkutil.c (xg_update_menubar, create_menus): Create empty
30471 submenu for menu bar items.
30472
30473See ChangeLog.10 for earlier changes.
30474
30475;; Local Variables:
30476;; coding: utf-8
aac0c6e3
MR
30477;; End:
30478
73b0cd50 30479 Copyright (C) 2007-2011 Free Software Foundation, Inc.
aac0c6e3
MR
30480
30481 This file is part of GNU Emacs.
30482
30483 GNU Emacs is free software: you can redistribute it and/or modify
30484 it under the terms of the GNU General Public License as published by
30485 the Free Software Foundation, either version 3 of the License, or
30486 (at your option) any later version.
30487
30488 GNU Emacs is distributed in the hope that it will be useful,
30489 but WITHOUT ANY WARRANTY; without even the implied warranty of
30490 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
30491 GNU General Public License for more details.
30492
30493 You should have received a copy of the GNU General Public License
30494 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.