* keymap.c: conform to C89 pointer rules
[bpt/emacs.git] / src / ChangeLog
CommitLineData
9eee99eb
PE
12011-02-06 Paul Eggert <eggert@cs.ucla.edu>
2
4c83cffc
PE
3 * xterm.c (x_alloc_nearest_color_1): Avoid unportable int assumption.
4 Emacs assumes two's complement elsewhere, but the assumption is
5 easy to remove here, and this suppresses a warning with Sun C 5.8.
6
82470039
PE
7 conform to C89 pointer rules
8
9 * xterm.c (x_draw_fringe_bitmap, handle_one_xevent, x_bitmap_icon):
10 (same_x_server, x_term_init):
9eee99eb
PE
11 Change types between char * and unsigned char *, to satisfy C89
12 rules about pointer type compatibility.
82470039
PE
13 * doc.c (get_doc_string, Fsnarf_documentation):
14 (Fsubstitute_command_keys): Likewise.
5f742c1b
PE
15 * xfns.c (Fx_open_connection, Fx_window_property): Likewise.
16 * bitmaps/gray.xbm (gray_bits): Likewise.
b8dc29e9 17 * image.c (xbm_read_bitmap_data, xbm_load_image, xbm_load): Likewise.
847c0824
PE
18 * keyboard.c (echo_char, MULTI_LETTER_MOD, tty_read_avail_input):
19 Likewise.
01c9aa3a 20 * keymap.c (Ftext_char_description): Likewise.
b68864e5
PE
21 * insdel.c (insert, insert_and_inherit, insert_before_markers):
22 (insert_before_markers_and_inherit, insert_1, insert_1_both):
23 Likewise. This changes these functions' signatures, which is
24 more convenient since most callers use char *. All remaining
25 callers changed.
26 * editfns.c (general_insert_function): Change signature to
27 match changes to insert functions' signatures.
01c9aa3a
PE
28 * keymap.c (map_keymap_char_table_item, map_keymap_internal): Use
29 explicit cast when converting between void * and function pointer
30 types, as C89 requires this.
9eee99eb 31
32299e33
PE
322011-02-05 Paul Eggert <eggert@cs.ucla.edu>
33
34 don't ignore chdir failure
35 * sysdep.c (sys_subshell) [!defined DOS_NT]: Diagnose chdir
36 failure and exit.
37 (sys_subshell) [defined DOS_NT]: Mark with a FIXME the two
38 remaining unchecked chdir calls in this function; some DOS/NT
39 expert needs to fix them.
40 * emacs.c (main): Mark with a FIXME the unchecked chdir calls
41 in this function; some NextStep expert needs to fix them.
42
233ba4d9 432011-02-05 Glenn Morris <rgm@gnu.org>
95838641
GM
44
45 * xfaces.c (Finternal_set_lisp_face_attribute):
46 Try to clarify some error messages. (Bug#2659)
47
233ba4d9 482011-02-05 Stefan Monnier <monnier@iro.umontreal.ca>
aca092ac
SM
49
50 * editfns.c (save_restriction_restore): Don't forget to invalidate the
51 current_column cache (bug#7946).
52
233ba4d9 532011-02-05 Kenichi Handa <handa@m17n.org>
ea2460a0
KH
54
55 * ftfont.c (ftfont_open): Use FC_DUAL only when it is defined.
56
57 * xftfont.c (xftfont_open): Likewise.
58
233ba4d9 592011-02-05 Andreas Schwab <schwab@linux-m68k.org>
29feb0e9
AS
60
61 * window.c (Fselect_window): Add missing return value.
62
d67985d3
PE
632011-02-05 Paul Eggert <eggert@cs.ucla.edu>
64
25a48bd0
PE
65 xstrcasecmp: conform to C89 pointer rules
66 * xfaces.c (xstrcasecmp): Change args from const unsigned char *
67 to const char *, since they're usually low-level C strings, and
68 this stays compatible with C89 pointer rules. All callers changed.
69
dfb6afda
PE
70 * charset.c: conform to C89 pointer rules
71 (define_charset_internal): Switch between char * and unsigned char *.
72
cc618f4e
PE
73 * xmenu.c: conform to C89 const rules
74 (xmenu_show, xdialog_show): Declare local var as char *, not
75 const char *, to stay compatible with C89 const rules.
76
9bcaafce
PE
77 * xdisp.c: conform to C89 pointer rules
78 (store_mode_line_noprop, display_string, reseat_to_string):
79 (c_string_pos, number_of_chars, message_dolog):
80 (message_log_check_duplicate, set_message_1, store_mode_line_noprop):
81 (display_mode_element, display_string):
82 Switch between char * and unsigned char * to stay compatible wth
83 C89 pointer rules.
84
5b0534c8
PE
85 * regex.c: conform to C89 pointer rules
86 (re_wctype): Add cast, as C89 does not allow assigning between
87 char * and unsigned char *.
88 (regex_compile): Likewise.
89
d67985d3
PE
90 sync from gnulib to remove HAVE_STDBOOL_H
91 * config.in: Regenerate.
92
a5d733f5
EZ
932011-02-04 Eli Zaretskii <eliz@gnu.org>
94
f90e08f5
EZ
95 * makefile.w32-in (LISP_H, PROCESS_H): New variables.
96 Replace all uses of lisp.h with $(LISP_H), and all uses of
97 process.h with $(PROCESS_H).
98 ($(BLD)/editfns.$(O)): Depend on ../lib/strftime.h.
99 ($(BLD)/print.$(O)): Depend on ../lib/ftoastr.h and ../lib/intprops.h.
100
be50df37
EZ
101 * deps.mk: Update for recent changes: gnutls support, gnulib
102 imports, addition of globals.h.
103
f90e08f5
EZ
104 * makefile.w32-in ($(BLD)/sysdep.$(O)): Depend on
105 ../lib/ignore-value.h.
a5d733f5 106
67342916
PE
1072011-02-03 Paul Eggert <eggert@cs.ucla.edu>
108
109 allow C code to suppress warnings about ignored return values
110
111 We need to go through the code and for each such warning, either
112 fix the code to pay attention to the returned value, or tell GCC
113 that we really do want to ignore the returned value. Here is one
114 example of how to do the latter.
115 * sysdep.c: Include <ignore-value.h>.
116 (sys_subshell): Suppress an undesirable warning about not checking
117 the returned value of 'write', as there's nothing useful one can
118 do with that returned value.
119
36941b32
JD
1202011-02-03 Jan Djärv <jan.h.d@swipnet.se>
121
122 * xterm.c (x_connection_closed): Remove all calls that calls
123 XSync (Bug#7949).
124
3082f617
EZ
1252011-02-01 Eli Zaretskii <eliz@gnu.org>
126
127 * image.c (tiff_load): Avoid compiler warning in 2nd arg to
128 TIFFClientOpen.
129
4df0af9b
JD
1302011-02-01 Jan Djärv <jan.h.d@swipnet.se>
131
132 * xsmfns.c (ice_connection_closed): Call delete_read_fd.
133 (x_session_check_input): Change args and return type so it can be used
134 as argument to add_read_fd. Make static. Remove call to select.
135 Call kbd_buffer_store_event for emacs_event.
136 (smc_save_yourself_CB): Also store initial argv to SmRestartCommand.
137 (ice_conn_watch_CB): Call add_read_fd.
138
139 * xterm.c (XTread_socket): Remove HAVE_X_SM block with call to
140 x_session_check_input.
141 (x_session_initialized): Remove definition.
142 (x_initialize): Remove setting of x_session_initialized.
143
144 * xterm.h (x_session_check_input): Remove declaration.
145
a4180391
PE
1462011-02-01 Paul Eggert <eggert@cs.ucla.edu>
147
148 format-time-string now supports subsecond time stamp resolution
149 * editfns.c (emacs_nmemftime): Renamed from emacs_memftimeu,
150 for consistency with its new argument and with gnulib nstrftime.
151 All callers changed. New argument NS.
152 (Fformat_time_string): Check that the time argument's microseconds
153 component, if any, is in range; this avoids integer overflow and
154 also nstrftime needs this. Document %N.
155
14beddf4 1562011-01-31 Andreas Schwab <schwab@linux-m68k.org>
df61c790
AS
157
158 * image.c (DEF_IMGLIB_FN): Add parameter rettype, use it instead
159 of int. All uses adjusted.
160 (PNG_JMPBUF, png_load, jpeg_load, tiff_load, gif_load)
161 (svg_load_image): Remove casts.
162
14beddf4 1632011-01-31 Chong Yidong <cyd@stupidchicken.com>
7f9c5df9
CY
164
165 * image.c (fn_png_longjmp, fn_png_set_longjmp_fn): New png
166 function definitions for compiling with libpng-1.5.
167 (PNG_LONGJMP, PNG_JMPBUF): New macros for libpng-1.5.
168 (my_png_error, png_load): Use them. Suggested by Thomas Klausner
169 (Bug#7908).
170
70b0d280
EZ
1712011-01-31 Eli Zaretskii <eliz@gnu.org>
172
8b3c625b
EZ
173 * s/ms-w32.h (HAVE_STRFTIME): Don't define.
174
70b0d280
EZ
175 * makefile.w32-in (OBJ2): Remove strftime.$(O).
176 ($(BLD)/strftime.$(O)): Remove prerequisites.
177
16fab143
PE
1782011-01-31 Paul Eggert <eggert@cs.ucla.edu>
179
180 src/emacs.c now gets version number from configure.in
181 * emacs.c (emacs_version): Set to VERSION so that it
182 is determined automatically from ../configure.in.
183
546961a9
JM
1842011-01-31 Jim Meyering <meyering@redhat.com>
185
186 * charset.c (load_charset_map): Don't deref NULL on failed malloc.
187 Use xmalloc rather than malloc.
188
42a5b22f
PE
1892011-01-30 Paul Eggert <eggert@cs.ucla.edu>
190
16c3e636
PE
191 strftime: import from gnulib
192 * Makefile.in (obj): Remove strftime.o, as gnulib now does this for us.
193 * deps.mk (strftime.o): Remove.
194 * editfns.c: Include <strftime.h>, supplied by gnulib.
195 (emacs_strftimeu): Remove decl.
196 (emacs_memftimeu): Use nstrftime (the gnulib name) rather than
197 emacs_strftimeu.
198 * config.in: Regenerate.
199 * strftime.c: Remove; we now use strftime from gnulib.
200
42a5b22f
PE
201 Use SSDATA when the context wants char *.
202 * alloc.c, buffer.c, bytecode.c, callproc.c, dired.c:
203 * dispnew.c, doc.c, editfns.c, emacs.c, fileio.c, filelock.c:
204 * fns.c, font.c, frame.c, image.c, indent.c, keyboard.c:
205 * lread.c, minibuf.c, print.c, process.c, search.c, widget.c:
206 * xdisp.c, xfaces.c, xfns.c, xml.c, xselect.c, xterm.c:
207 Use SSDATA (not SDATA) when the context of the expression wants
208 char * (not unsigned char *).
209
2787bba3
JD
2102011-01-30 Jan Djärv <jan.h.d@swipnet.se>
211
212 * .gdbinit: Read global lisp variables as globals.f_V*.
213
4ec88040
AS
2142011-01-30 Andreas Schwab <schwab@linux-m68k.org>
215
216 * font.c (PROP_MATCH): Remove parameter N and use strlen instead.
217 All uses changed.
218 (PROP_SAVE): Likewise.
219
b6bcd048
CY
2202011-01-29 Chong Yidong <cyd@stupidchicken.com>
221
222 * keyboard.c (make_lispy_position): Fix typo in last change
223 (Bug#7935).
224
f915f0f7
EZ
2252011-01-29 Eli Zaretskii <eliz@gnu.org>
226
227 * s/ms-w32.h (HAVE_MKTIME): Remove.
228
229 * makefile.w32-in (LOCAL_FLAGS): Add -I../lib.
230 (GNULIB): New variable.
231 (LIBS): Add $(GNULIB).
232 $(TEMACS): Depend on $(GNULIB).
233 <top-level>: Fix font-lock disrupted by a lone `"'.
234
497a1925
JD
2352011-01-29 Jan Djärv <jan.h.d@swipnet.se>
236
237 * nsselect.m (ns_string_from_pasteboard): Get length of string
238 and use make_string instead of build_string (Bug#7934).
239 (ns_string_to_pasteboard_internal): Use initWithBytesNoCopy
240 instead of stringWithUTF8String (Bug#7934).
241
481ae085
JD
2422011-01-29 Anders Lindgren <andlind@gmail.com> (tiny change)
243
244 * nsfont.m (nsfont_open): Ensure that fonts with inexact
245 descenders would not become one pixel too tall (Bug#7887).
246
6b918613
CY
2472011-01-28 Chong Yidong <cyd@stupidchicken.com>
248
249 * keyboard.c (make_lispy_position): For clicks on right fringe or
250 margin, compute text position using the X coordinate relative to
251 the left of the text area (Bug#7839).
252
9e269017
KH
2532011-01-28 Kenichi Handa <handa@m17n.org>
254
255 * ftfont.c (ftfont_spec_pattern): Check each extra property
256 value.
257
17dd1fc8
SM
2582011-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
259
260 * xdisp.c (safe_eval_handler): Distinguish symbols and strings.
261
372fb76b
CY
2622011-01-27 Chong Yidong <cyd@stupidchicken.com>
263
264 * font.c (font_parse_fcname): Undefine a temporary macro.
265
e7f7fbaa
SM
2662011-01-26 Stefan Monnier <monnier@iro.umontreal.ca>
267
268 Let the debugger continue to the normal handler (bug#7825).
269 * eval.c (maybe_call_debugger): Declare before new use.
270 (find_handler_clause): Don't call debugger any more.
271 Ignore Vstack_trace_on_error.
272 Use XCAR/XCDR.
273 (syms_of_eval): Remove Vstack_trace_on_error.
274 (Fsignal): Only modify handlerlist when we know we need to do it.
275 Call the debugger when necessary.
276 * globals.h (Vstack_trace_on_error): Remove.
277
6608a7d8
CY
2782011-01-26 Chong Yidong <cyd@stupidchicken.com>
279
280 * font.c (font_parse_fcname): Rewrite GTK font name parser.
281
06d8ace5 2822011-01-25 Stefan Monnier <monnier@iro.umontreal.ca>
f996bbcb
SM
283
284 * xdisp.c (handle_fontified_prop): Be careful with font-lock changing
285 the buffer's point-max (bug#7876).
286
06d8ace5 2872011-01-25 Chong Yidong <cyd@stupidchicken.com>
19634648
CY
288
289 * lisp.h (XPNTR): Obey DATA_SEG_BITS in all non-USE_LSB_TAG cases.
06d8ace5 290 Remove unused case (Bug#6811).
19634648 291
8ab70320
JD
2922011-01-23 Jan Djärv <jan.h.d@swipnet.se>
293
294 * nsterm.m (x_set_offset): Set dont_constrain to 0 so the call to
295 setFrameTopLeftPoint is constrained.
296
51b59d79
PE
2972011-01-23 Paul Eggert <eggert@cs.ucla.edu>
298
9055082e
PE
299 Check return values of some library calls.
300 * emacs.c (main): Check dup result.
301 * frame.c: Include <limits.h>, for INT_MIN and INT_MAX.
302 (frame_name_fnn_p): Check strtol result.
303
5c7d01a5 304 * image.c (x_create_bitmap_from_xpm_data): Add cast to fix type clash
f77fabaf
PE
305 when calling XpmCreatePixmapFromData.
306
51b59d79
PE
307 Promote SSDATA macro from gtkutil.c and xsmfns.c to lisp.h.
308 * lisp.h (SSDATA): New macro.
309 All uses of (char *) SDATA (x) replaced with SSDATA (x),
310 and all uses of (unsigned char *) SDATA (x) replaced with SDATA (x).
311 * gtkutil.c (SSDATA): Remove, as lisp.h now defines this.
312 * xsmfns.c (SSDATA): Likewise.
313
e6b84b30
MR
3142011-01-22 Martin Rudalics <rudalics@gmx.at>
315
316 * window.c (select_window): New function.
317 (Fselect_window): Call it.
318 (inhibit_point_swap): Variable deleted.
319 (Fset_window_configuration): Call select_window directly.
320
3fb69558
JD
3212011-01-22 Jan Djärv <jan.h.d@swipnet.se>
322
323 * nsterm.m (constrainFrameRect): Only constrain the first time called.
324
449ab399
JD
3252011-01-21 Jan Djärv <jan.h.d@swipnet.se>
326
e2f79c8d
JD
327 * nsterm.m (x_set_offset, windowDidMove): When calculating y, use first
328 screen, not the window screen.
329 (x_set_window_size): Remove constraints.
330 Calculate origin.y only if zooming is 0 and without referring to a
331 screen.
332 (windowWillResize): Don't modify frameSize.
333 (windowDidBecomeKey, mouseDown): Set dont_constrain to 1.
334 (initFrameFromEmacs): Initialize ns_userRect.
335 (windowShouldZoom): Set zooming to one. Remove all other code.
336 (windowWillUseStandardFrame): Move static ns_userRect to EmacsView.
337 Zero it after restore.
338 (constrainFrameRect): New method for EmacsWindow.
339 (mouseDragged): Always post NSWindowDidResizeNotification after call to
340 windowWillResize.
341
342 * nsterm.h (ns_output): Add dont_constrain and zooming.
343 (EmacsView): Add ns_userRect.
344
449ab399
JD
345 * nsterm.m (keyDown): If ns_right_alternate_modifier is Qleft, check
346 if ns_alternate_modifier is none.
347
e885315d
JD
3482011-01-20 Jan Djärv <jan.h.d@swipnet.se>
349
350 * unexmacosx.c: Add comment about include order.
351
bb1c6663
GM
3522011-01-20 Glenn Morris <rgm@gnu.org>
353
c11136ec
GM
354 * minibuf.c (syms_of_minibuf) <read-expression-history>:
355 Give it a doc string.
356 * globals.h: Add Vread_expression_history.
357
bb1c6663
GM
358 * macros.c (syms_of_macros) <kbd-macro-termination-hook>:
359 Give it a doc string.
360 * globals.h: Add Vkbd_macro_termination_hook.
361
9aea757b
CY
3622011-01-20 Chong Yidong <cyd@stupidchicken.com>
363
364 * fns.c (Fyes_or_no_p): Revert 2011-01-07 change, removing ARGS.
365
e1ef0dac
PE
3662011-01-19 Paul Eggert <eggert@cs.ucla.edu>
367
368 Fix X11 compilation failure.
369 * globals.h (struct emacs_globals): Document f_Vselection_alist.
370 * xselect.c (Vselection_alist): Remove declaration, moving its
371 documentation to globals.h. This fixes a compilation failure
372 induced by the earlier change to globals.h today.
373
fb9d0f5a
JD
3742011-01-19 Jan Djärv <jan.h.d@swipnet.se>
375
8beb828a
JD
376 * unexmacosx.c: Include config.h before unistd.h (Bug#7859).
377
fb9d0f5a
JD
378 * nsterm.m (ns_input_file, ns_input_font, ns_input_fontsize)
379 (ns_input_line, ns_input_color, ns_input_text, ns_working_text)
380 (ns_input_spi_name, ns_input_spi_arg)
381 (ns_alternate_modifier, ns_right_alternate_modifier)
382 (ns_command_modifier, ns_right_command_modifier, ns_control_modifier)
383 (ns_right_control_modifier, ns_function_modifier)
384 (ns_antialias_text, ns_confirm_quit): Move to globals.h.
385 (Vx_toolkit_scroll_bars, x_use_underline_position_properties)
386 (x_underline_at_descent_line): Remove declaration.
387 (syms_of_nsterm): Remove & from DEFVAR_LISP and DEFVAR_BOOL.
388
389 * nsselect.m (Vns_sent_selection_hooks, Vns_lost_selection_hooks
390 (Vselection_alist, Vselection_converter_alist): Move to globals.h.
391 (syms_of_nsselect): Remove & from DEFVAR_LISP.
392
393 * nsmenu.m (Voverriding_local_map, Voverriding_local_map_menu_flag):
394 Remove declaration.
395
396 * nsfont.m (Vns_reg_to_script, ns_antialias_text): Move to
397 globals.h.
398 (syms_of_nsfont): Remove & from DEFVAR_LISP.
399
400 * nsfns.m (Vmenu_bar_mode, Vtool_bar_mode): Remove declaration.
401 (Vns_icon_type_alist, Vns_version_string): Move to globals.h.
402 (syms_of_nsfns): Remove & from DEFVAR_LISP calls.
403
404 * globals.h (struct emacs_globals): Add f_ns_input_file,
405 f_ns_input_font, f_ns_input_fontsize, f_ns_input_line,
406 f_ns_input_color, f_ns_input_text, f_ns_working_text,
407 f_ns_input_spi_name, f_ns_input_spi_arg, f_ns_alternate_modifier,
408 f_ns_right_alternate_modifier, f_ns_command_modifier,
409 f_ns_right_command_modifier, f_ns_control_modifier,
410 f_ns_right_control_modifier, f_ns_function_modifier,
411 f_ns_antialias_text, f_ns_confirm_quit, f_Vns_icon_type_alist,
412 f_Vns_version_string, f_Vns_sent_selection_hooks,
413 f_Vns_lost_selection_hooks, f_Vselection_alist, f_Vns_reg_to_script
414 and corresponding defines.
415
416
4e55715e
SS
4172011-01-19 Sam Steingold <sds@gnu.org>
418
419 * w32.c (check_windows_init_file): Remove declarations of
420 Vwindow_system, Vload_path, Qfile_exists_p to fix compilation.
817a735d 421 * w32fns.c: Fix an error introduced by the previous patch.
4e55715e 422
ef79d2fa
TT
4232011-01-19 Tom Tromey <tromey@redhat.com>
424
425 * window.c: Fix error introduced by previous patch.
426
29208e82
TT
4272011-01-18 Tom Tromey <tromey@parfait>
428
429 * globals.h: New file.
430 * xterm.h (Vx_pixel_size_width_font_regexp): Remove declaration.
431 * window.h (Vinitial_window_system, Vminibuf_scroll_window)
432 (Vwindow_system_version): Remove declaration.
433 * w32term.h (Vw32_enable_palette)
434 (Vx_pixel_size_width_font_regexp): Remove declaration.
435 * w32menu.c (Voverriding_local_map)
436 (Voverriding_local_map_menu_flag): Remove declaration.
437 * w32inevt.c (Vw32_alt_is_meta, Vw32_apps_modifier)
438 (Vw32_capslock_is_shiftlock, Vw32_enable_caps_lock)
439 (Vw32_enable_num_lock, Vw32_lwindow_modifier)
440 (Vw32_pass_lwindow_to_system, Vw32_pass_rwindow_to_system)
441 (Vw32_phantom_key_code, Vw32_recognize_altgr)
442 (Vw32_rwindow_modifier, Vw32_scroll_lock_modifier)
443 (w32_use_full_screen_buffer): Remove declaration.
444 * w32.c (Vsystem_configuration, Vw32_downcase_file_names)
445 (Vw32_generate_fake_inodes, Vw32_get_true_file_attributes)
446 (w32_num_mouse_buttons, w32_pipe_read_delay): Remove declaration.
447 * termopts.h (Vtruncate_partial_width_windows, inverse_video)
448 (no_redraw_on_reenter, visible_bell): Remove declaration.
449 * sysdep.c (Vsystem_name): Remove declaration.
450 * syntax.h (parse_sexp_lookup_properties): Remove declaration.
451 * menu.h (Vmenu_updating_frame): Remove declaration.
452 * macros.h (Vexecuting_kbd_macro, executing_kbd_macro_index):
453 Remove declaration.
454 * lisp.h (Vafter_init_time, Vafter_load_alist)
455 (Vauto_save_list_file_name, Vbefore_init_time, Vcommand_history)
456 (Vcompletion_regexp_list, Vcurrent_load_list)
457 (Vcurrent_prefix_arg, Vdata_directory, Vdebug_on_error)
458 (Vdoc_directory, Vdoc_file_name, Vdynamic_library_alist)
459 (Vexec_directory, Vexec_path, Vexec_suffixes)
460 (Vface_font_rescale_alist, Vface_ignored_fonts, Vfeatures)
461 (Vhelp_form, Vhistory_length, Vinhibit_field_text_motion)
462 (Vinhibit_quit, Vinhibit_read_only, Vinhibit_redisplay)
463 (Vinstallation_directory, Vinvocation_directory)
464 (Vinvocation_name, Vload_file_rep_suffixes, Vload_history)
465 (Vload_suffixes, Vmark_even_if_inactive, Vmemory_full)
466 (Vmessage_log_max, Vobarray, Vprint_length, Vprint_level)
467 (Vpurify_flag, Vquit_flag, Vsaved_region_selection)
468 (Vscalable_fonts_allowed, Vselect_active_regions)
469 (Vshell_file_name, Vstandard_input, Vstandard_output)
470 (Vsystem_name, Vtemporary_file_directory, Vthrow_on_input)
471 (Vtop_level, Vtty_erase_char, Vundo_outer_limit)
472 (Vuser_login_name, Vwindow_scroll_functions)
473 (Vwindow_system_version, Vx_no_window_manager)
474 (Vx_resource_class, Vx_resource_name, baud_rate)
475 (completion_ignore_case, debug_on_next_call, gc_cons_threshold)
476 (history_delete_duplicates, inhibit_x_resources)
477 (last_nonmenu_event, load_in_progress, max_specpdl_size)
478 (minibuffer_auto_raise, print_escape_newlines, scroll_margin)
479 (use_dialog_box, use_file_dialog): Remove declaration. Include
480 globals.h.
481 * keymap.h (Voverriding_local_map)
482 (Voverriding_local_map_menu_flag, meta_prefix_char): Remove
483 declaration.
484 * keyboard.h (Vdouble_click_time, Vfunction_key_map)
485 (Vinput_method_function, Vkey_translation_map)
486 (Vlucid_menu_bar_dirty_flag, Vthis_original_command)
487 (do_mouse_tracking, extra_keyboard_modifiers)
488 (num_nonmacro_input_events): Remove declaration.
489 * intervals.h (Vchar_property_alias_alist)
490 (Vdefault_text_properties, Vinhibit_point_motion_hooks)
491 (Vtext_property_default_nonsticky): Remove declaration.
492 * gtkutil.h (x_gtk_file_dialog_help_text)
493 (x_gtk_show_hidden_files, x_gtk_use_old_file_dialog)
494 (x_gtk_whole_detached_tool_bar): Remove declaration.
495 * frame.h (Vdefault_frame_alist, Vframe_alpha_lower_limit)
496 (Vmenu_bar_mode, Vmouse_highlight, Vterminal_frame)
497 (Vtool_bar_mode, Vx_resource_class, Vx_resource_name)
498 (focus_follows_mouse): Remove declaration.
499 * fontset.h (Valternate_fontname_alist, Vfontset_alias_alist)
500 (Vignore_relative_composition, Votf_script_alist)
501 (Vuse_default_ascent, Vvertical_centering_font_regexp): Remove
502 declaration.
503 * font.h (Vfont_log): Remove declaration.
504 * dosfns.h (Vdos_display_scancodes, Vdos_version)
505 (Vdos_windows_version, dos_codepage, dos_country_code)
506 (dos_decimal_point, dos_hyper_key, dos_keyboard_layout)
507 (dos_keypad_mode, dos_super_key, dos_timezone_offset): Remove
508 declaration.
509 * disptab.h (Vglyph_table, Vstandard_display_table): Remove
510 declaration.
511 * dispextern.h (Vface_remapping_alist, Vglyphless_char_display)
512 (Vmouse_autoselect_window, Voverflow_newline_into_fringe)
513 (Vshow_trailing_whitespace, Vtool_bar_button_margin)
514 (Vtool_bar_style, cursor_in_echo_area, display_hourglass_p)
515 (inverse_video, mode_line_in_non_selected_windows)
516 (tool_bar_button_relief, tool_bar_max_label_size)
517 (underline_minimum_offset)
518 (unibyte_display_via_language_environment, x_stretch_cursor_p):
519 Remove declaration.
520 * composite.h (Vauto_composition_function)
521 (Vcomposition_function_table): Remove declaration.
522 * commands.h (Vexecuting_kbd_macro)
523 (Vminibuffer_local_completion_map)
524 (Vminibuffer_local_filename_completion_map)
525 (Vminibuffer_local_filename_must_match_map)
526 (Vminibuffer_local_map, Vminibuffer_local_must_match_map)
527 (Vminibuffer_local_ns_map, Vthis_command)
528 (Vunread_command_events, cursor_in_echo_area)
529 (last_command_event, last_nonmenu_event, unread_command_char):
530 Remove declaration.
531 * coding.h (Vcoding_system_for_read, Vcoding_system_for_write)
532 (Vdefault_file_name_coding_system)
533 (Vdefault_process_coding_system, Vfile_name_coding_system)
534 (Vlast_coding_system_used, Vlocale_coding_system)
535 (Vselect_safe_coding_system_function)
536 (Vtranslation_table_for_input, coding_system_require_warning)
537 (eol_mnemonic_dos, eol_mnemonic_mac, eol_mnemonic_undecided)
538 (eol_mnemonic_unix, inherit_process_coding_system): Remove
539 declaration.
540 * charset.h (Vcharset_list, Vcurrent_iso639_language): Remove
541 declaration.
542 * character.h (Vauto_fill_chars, Vchar_direction_table)
543 (Vchar_script_table, Vchar_width_table, Vprintable_chars)
544 (Vscript_representative_chars, Vtranslation_table_vector)
545 (Vunicode_category_table): Remove declaration.
546 * ccl.h (Vfont_ccl_encoder_alist): Remove declaration.
547 * buffer.h (Vafter_change_functions, Vbefore_change_functions)
548 (Vdeactivate_mark, Vfirst_change_hook, Vtransient_mark_mode)
549 (inhibit_modification_hooks): Remove declaration.
550 * xterm.c (syms_of_xterm): Update.
551 (Vx_alt_keysym, Vx_hyper_keysym, Vx_keysym_table)
552 (Vx_meta_keysym, Vx_super_keysym, Vx_toolkit_scroll_bars)
553 (x_mouse_click_focus_ignore_position)
554 (x_underline_at_descent_line)
555 (x_use_underline_position_properties): Remove.
556 * xsmfns.c (syms_of_xsmfns): Update.
557 (Vx_session_id, Vx_session_previous_id): Remove.
558 * xsettings.c (syms_of_xsettings): Update.
559 (Vxft_settings, use_system_font): Remove.
560 * xselect.c (syms_of_xselect): Update.
561 (Vselection_converter_alist, Vx_lost_selection_functions)
562 (Vx_sent_selection_functions, x_selection_timeout): Remove.
563 * xfns.c (syms_of_xfns): Update.
564 (Vgtk_version_string, Vmotif_version_string)
565 (Vx_cursor_fore_pixel, Vx_hourglass_pointer_shape)
566 (Vx_max_tooltip_size, Vx_mode_pointer_shape)
567 (Vx_no_window_manager, Vx_nontext_pointer_shape)
568 (Vx_pixel_size_width_font_regexp, Vx_pointer_shape)
569 (Vx_sensitive_text_pointer_shape)
570 (Vx_window_horizontal_drag_shape, x_gtk_file_dialog_help_text)
571 (x_gtk_show_hidden_files, x_gtk_use_old_file_dialog)
572 (x_gtk_use_system_tooltips, x_gtk_whole_detached_tool_bar):
573 Remove.
574 * xfaces.c (syms_of_xfaces): Update.
575 (Vface_default_stipple, Vface_font_rescale_alist)
576 (Vface_ignored_fonts, Vface_new_frame_defaults)
577 (Vface_remapping_alist, Vfont_list_limit)
578 (Vscalable_fonts_allowed, Vtty_defined_color_alist): Remove.
579 * xdisp.c (syms_of_xdisp): Update.
580 (Vauto_resize_tool_bars, Vblink_cursor_alist)
581 (Vdisplay_pixels_per_inch, Vfontification_functions)
582 (Vframe_title_format, Vglobal_mode_string)
583 (Vglyphless_char_display, Vhourglass_delay, Vhscroll_step)
584 (Vicon_title_format, Vinhibit_redisplay)
585 (Vline_number_display_limit, Vline_prefix)
586 (Vmax_mini_window_height, Vmenu_bar_update_hook)
587 (Vmenu_updating_frame, Vmessage_log_max)
588 (Vmouse_autoselect_window, Vnobreak_char_display)
589 (Voverlay_arrow_position, Voverlay_arrow_string)
590 (Voverlay_arrow_variable_list, Vredisplay_end_trigger_functions)
591 (Vresize_mini_windows, Vshow_trailing_whitespace)
592 (Vtool_bar_border, Vtool_bar_button_margin, Vtool_bar_style)
593 (Vtruncate_partial_width_windows, Vvoid_text_area_pointer)
594 (Vwindow_scroll_functions, Vwindow_size_change_functions)
595 (Vwindow_text_change_functions, Vwrap_prefix)
596 (auto_raise_tool_bar_buttons_p, automatic_hscrolling_p)
597 (debug_end_pos, display_hourglass_p, emacs_scroll_step)
598 (highlight_nonselected_windows, hscroll_margin)
599 (inhibit_eval_during_redisplay, inhibit_free_realized_faces)
600 (inhibit_menubar_update, inhibit_try_cursor_movement)
601 (inhibit_try_window_id, inhibit_try_window_reusing)
602 (line_number_display_limit_width)
603 (make_cursor_line_fully_visible_p, message_truncate_lines)
604 (mode_line_inverse_video, multiple_frames, overline_margin)
605 (scroll_conservatively, scroll_margin, tool_bar_button_relief)
606 (tool_bar_max_label_size, underline_minimum_offset)
607 (unibyte_display_via_language_environment, x_stretch_cursor_p):
608 Remove.
609 * window.c (syms_of_window): Update.
610 (Vminibuf_scroll_window, Vother_window_scroll_buffer)
611 (Vrecenter_redisplay, Vscroll_preserve_screen_position)
612 (Vtemp_buffer_show_function, Vwindow_configuration_change_hook)
613 (Vwindow_point_insertion_type, auto_window_vscroll_p)
614 (mode_line_in_non_selected_windows, next_screen_context_lines)
615 (window_min_height, window_min_width): Remove.
616 (scroll_margin): Remove declaration.
617 * w32term.c (syms_of_w32term): Update.
618 (Vw32_capslock_is_shiftlock, Vw32_grab_focus_on_raise)
619 (Vw32_recognize_altgr, Vw32_swap_mouse_buttons)
620 (Vx_toolkit_scroll_bars, w32_num_mouse_buttons)
621 (w32_use_visible_system_caret, x_underline_at_descent_line)
622 (x_use_underline_position_properties): Remove.
623 (Vcommand_line_args, Vsystem_name, extra_keyboard_modifiers):
624 Remove declaration.
625 * w32select.c (syms_of_w32select): Update.
626 (Vnext_selection_coding_system, Vselection_coding_system): Remove.
627 * w32proc.c (syms_of_ntproc): Update.
628 (Vw32_downcase_file_names, Vw32_generate_fake_inodes)
629 (Vw32_get_true_file_attributes, Vw32_quote_process_args)
630 (Vw32_start_process_inherit_error_mode)
631 (Vw32_start_process_share_console)
632 (Vw32_start_process_show_window, w32_pipe_read_delay): Remove.
633 (Vsystem_name): Remove declaration.
634 * w32font.c (syms_of_w32font): Update.
635 (Vw32_charset_info_alist): Remove.
636 * w32fns.c (globals_of_w32fns, syms_of_w32fns): Update.
637 (Vw32_alt_is_meta, Vw32_apps_modifier, Vw32_bdf_filename_alist)
638 (Vw32_color_map, Vw32_enable_caps_lock, Vw32_enable_num_lock)
639 (Vw32_enable_palette, Vw32_lwindow_modifier)
640 (Vw32_pass_alt_to_system, Vw32_pass_lwindow_to_system)
641 (Vw32_pass_rwindow_to_system, Vw32_phantom_key_code)
642 (Vw32_rwindow_modifier, Vw32_scroll_lock_modifier)
643 (Vx_cursor_fore_pixel, Vx_hourglass_pointer_shape)
644 (Vx_max_tooltip_size, Vx_mode_pointer_shape)
645 (Vx_no_window_manager, Vx_nontext_pointer_shape)
646 (Vx_pixel_size_width_font_regexp, Vx_pointer_shape)
647 (Vx_sensitive_text_pointer_shape)
648 (Vx_window_horizontal_drag_shape, w32_ansi_code_page)
649 (w32_enable_synthesized_fonts, w32_mouse_button_tolerance)
650 (w32_mouse_move_interval)
651 (w32_pass_extra_mouse_buttons_to_system)
652 (w32_pass_multimedia_buttons_to_system, w32_quit_key)
653 (w32_strict_fontnames, w32_strict_painting): Remove.
654 (Vhourglass_delay, Vmenu_bar_mode, Vtool_bar_mode)
655 (Vw32_recognize_altgr, Vwindow_system_version)
656 (w32_num_mouse_buttons, w32_use_visible_system_caret): Remove
657 declaration.
658 * w32console.c (syms_of_ntterm): Update.
659 (w32_use_full_screen_buffer): Remove.
660 (Vtty_defined_color_alist): Remove declaration.
661 * w16select.c (syms_of_win16select): Update.
662 (Vnext_selection_coding_system, Vselection_coding_system): Remove.
663 * undo.c (syms_of_undo): Update.
664 (Vundo_outer_limit, Vundo_outer_limit_function)
665 (undo_inhibit_record_point, undo_limit, undo_strong_limit):
666 Remove.
667 * textprop.c (syms_of_textprop): Update.
668 (Vchar_property_alias_alist, Vdefault_text_properties)
669 (Vinhibit_point_motion_hooks, Vtext_property_default_nonsticky):
670 Remove.
671 * terminal.c (syms_of_terminal): Update.
672 (Vdelete_terminal_functions, Vring_bell_function): Remove.
673 * term.c (syms_of_term): Update.
674 (Vresume_tty_functions, Vsuspend_tty_functions)
675 (no_redraw_on_reenter, system_uses_terminfo, visible_cursor):
676 Remove.
677 * syntax.c (syms_of_syntax): Update.
678 (Vfind_word_boundary_function_table, multibyte_syntax_as_symbol)
679 (open_paren_in_column_0_is_defun_start)
680 (parse_sexp_ignore_comments, parse_sexp_lookup_properties)
681 (words_include_escapes): Remove.
682 * search.c (syms_of_search): Update.
683 (Vinhibit_changing_match_data, Vsearch_spaces_regexp): Remove.
684 * process.c (syms_of_process): Update.
685 (Vprocess_adaptive_read_buffering, Vprocess_connection_type)
686 (delete_exited_processes): Remove.
687 * print.c (syms_of_print): Update.
688 (Vfloat_output_format, Vprint_charset_text_property)
689 (Vprint_circle, Vprint_continuous_numbering, Vprint_gensym)
690 (Vprint_length, Vprint_level, Vprint_number_table)
691 (Vstandard_output, print_escape_multibyte)
692 (print_escape_newlines, print_escape_nonascii, print_quoted):
693 Remove.
694 * msdos.c (syms_of_msdos): Update.
695 (Vdos_unsupported_char_glyph): Remove.
696 (unibyte_display_via_language_environment): Remove declaration.
697 * minibuf.c (syms_of_minibuf): Update.
698 (Vcompletion_regexp_list, Vhistory_add_new_input)
699 (Vhistory_length, Vminibuffer_completing_file_name)
700 (Vminibuffer_completion_confirm)
701 (Vminibuffer_completion_predicate, Vminibuffer_completion_table)
702 (Vminibuffer_exit_hook, Vminibuffer_help_form)
703 (Vminibuffer_history_position, Vminibuffer_history_variable)
704 (Vminibuffer_prompt_properties, Vminibuffer_setup_hook)
705 (Vread_buffer_function, Vread_expression_map)
706 (completion_ignore_case, enable_recursive_minibuffers)
707 (history_delete_duplicates, minibuffer_allow_text_properties)
708 (minibuffer_auto_raise, read_buffer_completion_ignore_case):
709 Remove.
710 * marker.c (syms_of_marker): Update.
711 (byte_debug_flag): Remove.
712 * macros.c (syms_of_macros): Update.
713 (Vexecuting_kbd_macro, executing_kbd_macro_index): Remove.
714 * lread.c (syms_of_lread): Update.
715 (Vafter_load_alist, Vbyte_boolean_vars)
716 (Vbytecomp_version_regexp, Vcurrent_load_list)
717 (Veval_buffer_list, Vload_file_name, Vload_file_rep_suffixes)
718 (Vload_history, Vload_path, Vload_read_function)
719 (Vload_source_file_function, Vload_suffixes, Vobarray)
720 (Vold_style_backquotes, Vpreloaded_file_list, Vread_circle)
721 (Vread_symbol_positions_list, Vread_with_symbol_positions)
722 (Vsource_directory, Vstandard_input, Vuser_init_file, Vvalues)
723 (force_load_messages, load_convert_to_unibyte)
724 (load_dangerous_libraries, load_force_doc_strings)
725 (load_in_progress): Remove.
726 * keymap.c (syms_of_keymap): Update.
727 (Vdefine_key_rebound_commands, Vemulation_mode_map_alists)
728 (Vminibuffer_local_completion_map)
729 (Vminibuffer_local_filename_completion_map)
730 (Vminibuffer_local_filename_must_match_map)
731 (Vminibuffer_local_map, Vminibuffer_local_must_match_map)
732 (Vminibuffer_local_ns_map, Vminor_mode_map_alist)
733 (Vminor_mode_overriding_map_alist, Vwhere_is_preferred_modifier):
734 Remove.
735 * keyboard.c (syms_of_keyboard): Update.
736 (Vauto_save_timeout, Vcommand_error_function)
737 (Vcommand_hook_internal, Vdeactivate_mark)
738 (Vdeferred_action_function, Vdeferred_action_list)
739 (Vdisable_point_adjustment, Vdouble_click_time)
740 (Vecho_keystrokes, Venable_disabled_menus_and_buttons)
741 (Vfunction_key_map, Vglobal_disable_point_adjustment)
742 (Vhelp_char, Vhelp_event_list, Vhelp_form)
743 (Vinput_method_function, Vinput_method_previous_message)
744 (Vkey_translation_map, Vlast_event_frame)
745 (Vlucid_menu_bar_dirty_flag, Vmenu_bar_final_items)
746 (Vminibuffer_message_timeout, Voverriding_local_map)
747 (Voverriding_local_map_menu_flag, Vpost_command_hook)
748 (Vpre_command_hook, Vprefix_help_command)
749 (Vsaved_region_selection, Vselect_active_regions)
750 (Vshow_help_function, Vspecial_event_map, Vsuggest_key_bindings)
751 (Vthis_command, Vthis_command_keys_shift_translated)
752 (Vthis_original_command, Vthrow_on_input, Vtimer_idle_list)
753 (Vtimer_list, Vtool_bar_separator_image_expression, Vtop_level)
754 (Vtty_erase_char, Vunread_command_events)
755 (Vunread_input_method_events, Vunread_post_input_method_events)
756 (auto_save_interval, cannot_suspend, do_mouse_tracking)
757 (double_click_fuzz, extra_keyboard_modifiers)
758 (inhibit_local_menu_bar_menus, last_command_event)
759 (last_input_event, last_nonmenu_event, menu_prompt_more_char)
760 (menu_prompting, meta_prefix_char, num_input_keys)
761 (num_nonmacro_input_events, polling_period, unread_command_char):
762 Remove.
763 * insdel.c (syms_of_insdel): Update.
764 (Vcombine_after_change_calls, check_markers_debug_flag): Remove.
765 * indent.c (syms_of_indent): Update.
766 (indent_tabs_mode): Remove.
767 * image.c (syms_of_image): Update.
768 (Vimage_cache_eviction_delay, Vimage_types)
769 (Vimagemagick_render_type, Vmax_image_size, Vx_bitmap_file_path)
770 (cross_disabled_images): Remove.
771 * fringe.c (syms_of_fringe): Update.
772 (Vfringe_bitmaps, Voverflow_newline_into_fringe): Remove.
773 * frame.c (syms_of_frame): Update.
774 (Vdefault_frame_alist, Vdefault_frame_scroll_bars)
775 (Vdelete_frame_functions, Vframe_alpha_lower_limit)
776 (Vmake_pointer_invisible, Vmenu_bar_mode, Vmouse_highlight)
777 (Vmouse_position_function, Vterminal_frame, Vtool_bar_mode)
778 (Vx_resource_class, Vx_resource_name, focus_follows_mouse):
779 Remove.
780 * fontset.c (syms_of_fontset): Update.
781 (Valternate_fontname_alist, Vfont_encoding_charset_alist)
782 (Vfontset_alias_alist, Vignore_relative_composition)
783 (Votf_script_alist, Vuse_default_ascent)
784 (Vvertical_centering_font_regexp): Remove.
785 * font.c (syms_of_font): Update.
786 (Vfont_encoding_alist, Vfont_log, Vfont_slant_table)
787 (Vfont_weight_table, Vfont_width_table): Remove.
788 * fns.c (syms_of_fns): Update.
789 (Vfeatures, use_dialog_box, use_file_dialog): Remove.
790 * filelock.c (syms_of_filelock): Update.
791 (Vtemporary_file_directory): Remove.
792 * fileio.c (syms_of_fileio): Update.
793 (Vafter_insert_file_functions, Vauto_save_include_big_deletions)
794 (Vauto_save_list_file_name, Vauto_save_visited_file_name)
795 (Vdefault_file_name_coding_system, Vfile_name_coding_system)
796 (Vfile_name_handler_alist, Vinhibit_file_name_handlers)
797 (Vinhibit_file_name_operation, Vset_auto_coding_function)
798 (Vwrite_region_annotate_functions)
799 (Vwrite_region_annotations_so_far)
800 (Vwrite_region_post_annotation_function)
801 (delete_by_moving_to_trash, write_region_inhibit_fsync): Remove.
802 (Vw32_get_true_file_attributes): Remove declaration.
803 * eval.c (syms_of_eval): Update.
804 (Vdebug_ignored_errors, Vdebug_on_error, Vdebug_on_signal)
805 (Vdebugger, Vinhibit_quit, Vmacro_declaration_function)
806 (Vquit_flag, Vsignal_hook_function, Vstack_trace_on_error)
807 (debug_on_next_call, debug_on_quit, debugger_may_continue)
808 (max_lisp_eval_depth, max_specpdl_size): Remove.
809 * emacs.c (syms_of_emacs): Update.
810 (Vafter_init_time, Vbefore_init_time, Vcommand_line_args)
811 (Vdynamic_library_alist, Vemacs_copyright, Vemacs_version)
812 (Vinstallation_directory, Vinvocation_directory)
813 (Vinvocation_name, Vkill_emacs_hook, Vpath_separator)
814 (Vprevious_system_messages_locale, Vprevious_system_time_locale)
815 (Vsystem_configuration, Vsystem_configuration_options)
816 (Vsystem_messages_locale, Vsystem_time_locale, Vsystem_type)
817 (inhibit_x_resources, noninteractive1): Remove.
818 * editfns.c (syms_of_editfns): Update.
819 (Vbuffer_access_fontified_property)
820 (Vbuffer_access_fontify_functions, Vinhibit_field_text_motion)
821 (Voperating_system_release, Vsystem_name, Vuser_full_name)
822 (Vuser_login_name, Vuser_real_login_name): Remove.
823 * dosfns.c (syms_of_dosfns): Update.
824 (Vdos_display_scancodes, Vdos_version, Vdos_windows_version)
825 (dos_codepage, dos_country_code, dos_decimal_point)
826 (dos_hyper_key, dos_keyboard_layout, dos_keypad_mode)
827 (dos_super_key, dos_timezone_offset): Remove.
828 * doc.c (syms_of_doc): Update.
829 (Vbuild_files, Vdoc_file_name): Remove.
830 * dispnew.c (syms_of_display): Update.
831 (Vglyph_table, Vinitial_window_system)
832 (Vredisplay_preemption_period, Vstandard_display_table)
833 (Vwindow_system_version, baud_rate, cursor_in_echo_area)
834 (inverse_video, redisplay_dont_pause, visible_bell): Remove.
835 * dired.c (syms_of_dired): Update.
836 (Vcompletion_ignored_extensions): Remove.
837 (Vw32_get_true_file_attributes): Remove declaration.
838 * dbusbind.c (syms_of_dbusbind): Update.
839 (Vdbus_debug, Vdbus_registered_buses)
840 (Vdbus_registered_objects_table): Remove.
841 * data.c (syms_of_data): Update.
842 (Vmost_negative_fixnum, Vmost_positive_fixnum): Remove.
843 * composite.c (syms_of_composite): Update.
844 (Vauto_composition_function, Vauto_composition_mode)
845 (Vcompose_chars_after_function, Vcomposition_function_table):
846 Remove.
847 * coding.c (syms_of_coding): Update.
848 (Vcharset_revision_table, Vcoding_category_list)
849 (Vcoding_system_alist, Vcoding_system_for_read)
850 (Vcoding_system_for_write, Vcoding_system_list)
851 (Vdefault_process_coding_system, Venable_character_translation)
852 (Vfile_coding_system_alist, Vlast_code_conversion_error)
853 (Vlast_coding_system_used, Vlatin_extra_code_table)
854 (Vlocale_coding_system, Vnetwork_coding_system_alist)
855 (Vprocess_coding_system_alist)
856 (Vselect_safe_coding_system_function)
857 (Vstandard_translation_table_for_decode)
858 (Vstandard_translation_table_for_encode)
859 (Vtranslation_table_for_input, coding_system_require_warning)
860 (eol_mnemonic_dos, eol_mnemonic_mac, eol_mnemonic_undecided)
861 (eol_mnemonic_unix, inherit_process_coding_system)
862 (inhibit_eol_conversion, inhibit_iso_escape_detection)
863 (inhibit_null_byte_detection): Remove.
864 * cmds.c (syms_of_cmds): Update.
865 (Vpost_self_insert_hook): Remove.
866 * charset.c (syms_of_charset): Update.
867 (Vcharset_list, Vcharset_map_path, Vcurrent_iso639_language)
868 (inhibit_load_charset_map): Remove.
869 * character.c (syms_of_character): Update.
870 (Vauto_fill_chars, Vchar_direction_table, Vchar_script_table)
871 (Vchar_width_table, Vprintable_chars)
872 (Vscript_representative_chars, Vtranslation_table_vector)
873 (Vunicode_category_table): Remove.
874 * ccl.c (syms_of_ccl): Update.
875 (Vcode_conversion_map_vector, Vfont_ccl_encoder_alist)
876 (Vtranslation_hash_table_vector): Remove.
877 * category.c (syms_of_category): Update.
878 (Vword_combining_categories, Vword_separating_categories): Remove.
879 * callproc.c (syms_of_callproc): Update.
880 (Vconfigure_info_directory, Vdata_directory, Vdoc_directory)
881 (Vexec_directory, Vexec_path, Vexec_suffixes)
882 (Vinitial_environment, Vprocess_environment)
883 (Vshared_game_score_directory, Vshell_file_name): Remove.
884 * callint.c (syms_of_callint): Update.
885 (Vcommand_debug_status, Vcommand_history, Vcurrent_prefix_arg)
886 (Vmark_even_if_inactive, Vmouse_leave_buffer_hook): Remove.
887 * bytecode.c (syms_of_bytecode): Update.
888 (Vbyte_code_meter, byte_metering_on): Remove.
889 * buffer.c (syms_of_buffer): Update.
890 (Vafter_change_functions, Vbefore_change_functions)
891 (Vchange_major_mode_hook, Vfirst_change_hook)
892 (Vinhibit_read_only, Vkill_buffer_query_functions)
893 (Vtransient_mark_mode, inhibit_modification_hooks): Remove.
894 * alloc.c (syms_of_alloc): Update.
895 (Vgc_cons_percentage, Vgc_elapsed, Vmemory_full)
896 (Vmemory_signal_data, Vpost_gc_hook, Vpurify_flag)
897 (cons_cells_consed, floats_consed, garbage_collection_messages)
898 (gc_cons_threshold, gcs_done, intervals_consed)
899 (misc_objects_consed, pure_bytes_used, string_chars_consed)
900 (strings_consed, symbols_consed, vector_cells_consed): Remove.
901
902 * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
903 (DEFVAR_INT): Assume global is in `globals'.
904 * alloc.c (globals): Define.
905
448c0820
TT
9062011-01-18 Tom Tromey <tromey@redhat.com>
907
908 * image.c (Vimagemagick_render_type): Remove redundant
909 definition.
910
8442d95d
TT
9112011-01-18 Tom Tromey <tromey@redhat.com>
912
913 * xdisp.c (emacs_scroll_step): Rename from scroll_step.
914 (try_scrolling): Rename argument to 'arg_scroll_conservatively'.
915 (redisplay_window): Update.
916 (syms_of_xdisp): Update.
917
cab0ba98
TT
9182011-01-18 Tom Tromey <tromey@redhat.com>
919
920 * gtkutil.h (x_gtk_use_old_file_dialog, x_gtk_show_hidden_files)
921 (x_gtk_file_dialog_help_text, x_gtk_whole_detached_tool_bar):
922 Declare.
923 * gtkutil.c (xg_uses_old_file_dialog):
924 (xg_get_file_with_chooser):
925 (xg_tool_bar_detach_callback): Don't redeclare globals.
926
422745d0
TT
9272011-01-18 Tom Tromey <tromey@redhat.com>
928
929 * lisp.h (DEFVAR_BUFFER_DEFAULTS): New macro.
930 * buffer.c (syms_of_buffer): Use DEFVAR_BUFFER_DEFAULTS.
931
7cae64b4
PE
9322011-01-18 Paul Eggert <eggert@cs.ucla.edu>
933
934 * lisp.h (DECL_ALIGN): Define if HAVE_ATTRIBUTE_ALIGNED, not if
935 defined __GNUC__. ../configure now checks for this GCC feature,
936 which is now also supported by IBM and Oracle compilers.
937 (USE_LSB_TAG) [defined DECL_ALIGN]: Also define if defined __sun,
938 since Solaris malloc returns mult-of-8.
939
a9faac5c 9402011-01-18 Stefan Monnier <monnier@iro.umontreal.ca>
0514b4be
SM
941
942 * image.c (syms_of_image): Don't access XSYMBOL's internals directly.
943
a3e44e79 9442011-01-17 Paul Eggert <eggert@cs.ucla.edu>
fa2c4f56 945
6e8e6bf2
PE
946 Give a name FLOAT_TO_STRING_BUFSIZE to the constant 350.
947 * lisp.h (FLOAT_TO_STRING_BUFSIZE): New macro.
948 * data.c (Fnumber_to_string): Use it.
949 * print.c (float_to_string, print_object): Likewise.
950
4004364e
PE
951 Include <unistd.h> unilaterally.
952 * alloc.c, atimer.c, buffer.c, callproc.c, dired.c, dispnew.c, doc.c:
953 * doprnt.c, editfns.c, emacs.c, fileio.c, filelock.c, fns.c:
954 * getloadavg.c, getpagesize.h, gmalloc.c, image.c, keyboard.c:
955 * lread.c, process.c, process.h, ralloc.c, regex.c, sysdep.c:
956 * systty.h, term.c, termcap.c, xfns.c, xrdb.c, xselect.c, xsmfns.c:
957 * xterm.c:
958 Include <unistd.h> without worrying about HAVE_UNISTD_H, since
959 unistd.h is always present now, possibly supplied by gnulib.
960
e84aba69
PE
961 * mktime.c: Remove; moving to ../lib.
962
1e11dbe3
PE
963 Use gnulib's mktime module.
964 * deps.mk (mktime.o): Remove rule.
965
fa2c4f56
PE
966 Use gnulib's ftoastr module.
967 * print.c: Include ftoastr.h.
968 (FLT_RADIX, DBL_MANT_DIG, DBL_DIG, DBL_MIN, DOUBLE_DIGITS_BOUND):
969 Remove; no longer needed.
970 (float_to_string): Use dtoastr rather than rolling our own code,
971 which had an off-by-one bug on non-IEEE hosts.
972
9a514d4a
PE
973 Automate syncing from gnulib.
974 * Makefile.in (lib): New macro.
975 (ALL_CFLAGS): Add -I$(lib) -I$(srcdir)/../lib.
976 ($(lib)/libgnu.a): New rule.
977 (temacs$(EXEEXT)): Also link $(lib)/libgnu.a.
978
717c30e0
PE
979 * xfns.c (x_real_positions): Fix signedness of local var 'ign'.
980 XGetGeometry wants unsigned int *, not int *, for its last 4 args,
981 so change the type of 'ign' to unsigned int from int.
982
8865d794
PE
983 * regex.c (analyse_first): Remove unreachable 'continue' statement.
984
4ef36a7b
PE
985 * xterm.h (struct x_display_info): Remove stray semicolon.
986 The extra semicolon didn't conform to the C standard.
987 Problem reported by Sun cc.
988
6df4097e
PE
989 * lisp.h: Redo flags and XSET slightly to avoid overflow diagnostics.
990 These changes make compilation easier to follow with Sun cc.
991 (ARRAY_MARK_FLAG): Make it signed, so that it can be assigned to
992 EMACS_INT values without provoking overflow diagnostics.
993 (PSEUDOVECTOR_FLAG): Likewise, for consistency.
994 (XSET) [! USE_LSB_TAG]: Use unsigned left shift to avoid overflow
995 diagnostic with signed left shift.
9fba3563 996
410ed5c3
PE
997 * fileio.c (make_temp_name): Remove unreachable code.
998
97be3ce3
PE
999 * fontset.c (free_realized_fontset): Mark unreachable code with if (0).
1000 Previously it was marked by preceding it with "return;", but
1001 Sun cc complains about this.
1002
9fba3563
PE
1003 * coding.c (decode_coding_emacs_mule): Remove unreachable code.
1004 This is a typo left over from 2009-03-06T07:51:52Z!handa@m17n.org,
1005 which fixed Bug#2370. Caught by Sun cc.
1006
6dc1d2d3
MR
10072011-01-15 Martin Rudalics <rudalics@gmx.at>
1008
1009 * window.c (inhibit_point_swap): New variable.
1010 (Fselect_window): If inhibit_point_swap is nonzero, avoid swapping
1011 point this time.
1012 (Fset_window_configuration): Set inhibit_point_swap to 1 instead
1013 of setting selected_window to nil (Bug#7728).
1014
f853f599
TH
10152011-01-11 Tassilo Horn <tassilo@member.fsf.org>
1016
8dabbfd6
SM
1017 * image.c (imagemagick_load_image, Finit_image_library):
1018 Free intermediate image after creating a MagickWand from it.
1019 Terminate MagickWand environment after image loading.
f853f599 1020
2bc92a93
MA
10212011-01-10 Michael Albinus <michael.albinus@gmx.de>
1022
1023 * dbusbind.c (Fdbus_register_service): Raise an error in case of
1024 unexpected return values.
1025 (Fdbus_register_method): Remove connection initialization.
1026
10272011-01-10 Jan Moringen <jan.moringen@uni-bielefeld.de>
5b83ba18
MA
1028
1029 * dbusbind.c (QCdbus_request_name_allow_replacement): New symbol;
1030 used by Fdbus_register_service.
1031 (QCdbus_request_name_replace_existing): Likewise.
1032 (QCdbus_request_name_do_not_queue): Likewise.
1033 (QCdbus_request_name_reply_primary_owner): Likewise.
1034 (QCdbus_request_name_reply_in_queue): Likewise.
1035 (QCdbus_request_name_reply_exists): Likewise.
1036 (QCdbus_request_name_reply_already_owner): Likewise.
1037 (Fdbus_register_service): New function.
1038 (Fdbus_register_method): Use Fdbus_register_service to do the name
1039 registration.
1040 (syms_of_dbusbind): Add symbols dbus-register-service,
1041 :allow-replacement, :replace-existing, :do-not-queue,
1042 :primary-owner, :existing, :in-queue and :already-owner.
1043
21a76236
CY
10442011-01-09 Chong Yidong <cyd@stupidchicken.com>
1045
1046 * gtkutil.c (update_frame_tool_bar): Don't advance tool-bar index
1047 when removing extra buttons.
1048
3d91e302
CY
10492011-01-08 Chong Yidong <cyd@stupidchicken.com>
1050
1051 * fns.c (Fyes_or_no_p): Doc fix.
1052
0d23ffb5
AS
10532011-01-08 Andreas Schwab <schwab@linux-m68k.org>
1054
1055 * fns.c (Fyes_or_no_p): Add usage.
1056
9dc3366b
GM
10572011-01-08 Glenn Morris <rgm@gnu.org>
1058
d0981f82
GM
1059 * makefile.w32-in ($(EMACS)):
1060 * Makefile.in (emacs$(EXEEXT)): -batch implies -q.
1061
9dc3366b
GM
1062 * xdisp.c (syms_of_xdisp) <Qrisky_local_variable>: Move from here...
1063 * emacs.c (syms_of_emacs) <Qrisky_local_variable>: ...to here.
1064
466cbae9
AS
10652011-01-07 Andreas Schwab <schwab@linux-m68k.org>
1066
1067 * image.c (imagemagick_load_image): Fix some resource leaks and
1068 error handling.
1069
8c51d2a2
CY
10702011-01-07 Chong Yidong <cyd@stupidchicken.com>
1071
1072 * fns.c (Fyes_or_no_p): Accept format string args.
1073
66b7b0fe
GM
10742011-01-07 Glenn Morris <rgm@gnu.org>
1075
1076 * emacs.c (no_site_lisp): New int.
1077 (USAGE1): Add --no-site-lisp, mention -Q uses it.
1078 (main): Set no_site_lisp.
1079 (standard_args): Add --no-site-lisp.
1080 * lisp.h (no_site_lisp): New int.
1081 * lread.c (init_lread): If no_site_lisp, don't re-add site-lisp
1082 directories to Vload_path.
1083
2018939f
AS
10842011-01-05 Andreas Schwab <schwab@linux-m68k.org>
1085
1086 * alloc.c (mark_stack): Use __builtin_unwind_init if available.
1087
6ed843e5
MA
10882011-01-04 Jan Moringen <jan.moringen@uni-bielefeld.de>
1089
8dabbfd6 1090 * dbusbind.c (Fdbus_register_method): Add optional parameter
6ed843e5
MA
1091 dont_register_service. Updated docstring accordingly.
1092
3f9b7090
GM
10932011-01-04 Glenn Morris <rgm@gnu.org>
1094
1095 * emacs.c (emacs_copyright): Update short copyright year to 2011.
1096
d82bce4a
EZ
10972011-01-03 Eli Zaretskii <eliz@gnu.org>
1098
1099 * image.c (png_jmpbuf): Remove definition.
1100 (my_png_error, png_load): Don't use png_jmpbuf.
1101
7c420169
CY
11022011-01-02 Eli Zaretskii <eliz@gnu.org>
1103
1104 * keyboard.c (Vselect_active_regions): Doc fix. (Bug#7702)
1105
11062011-01-02 Eli Zaretskii <eliz@gnu.org>
5be1c984
EZ
1107
1108 * image.c <Qlibpng_version>: New variable.
1109 (syms_of_image): Intern and staticpro it. Set its value to the
1110 version of PNG library we were compiled with.
1111 (my_png_error, png_load): Avoid GCC warnings about direct access
1112 to png_ptr->jmpbuf. (Bug#7716)
18da2e74
EZ
1113 (png_jmpbuf): New macro.
1114 (my_png_error, png_load): Use it instead of #ifdef'ing according
1115 to PNG_LIBPNG_VER_MAJOR and PNG_LIBPNG_VER_MINOR.
5be1c984 1116
7c420169 11172011-01-02 Stefan Monnier <monnier@iro.umontreal.ca>
cf07311b
SM
1118
1119 * .gdbinit (xgetptr): Fix the union+lsb case.
1120 (xbacktrace): Fix the union case.
1121
7c420169 11222011-01-02 Stefan Monnier <monnier@iro.umontreal.ca>
794b75c7
SM
1123
1124 * window.c (Fmove_to_window_line): Avoid abort when called in a buffer
1125 different from selected-window's.
1126
7c420169 11272011-01-02 Eli Zaretskii <eliz@gnu.org>
2e4ab211 1128
71fe378d
EZ
1129 * keyboard.c (parse_menu_item): Prepend " " to the key sequence
1130 equivalent of a menu item when the key sequence is given by the
1131 `:keys' attribute. (Bug#7662)
1132
2e4ab211
EZ
1133 * xdisp.c (Fformat_mode_line): Doc fix: no need to state that only
1134 the basic faces are supported.
1135
7c420169 11362011-01-02 Jan Djärv <jan.h.d@swipnet.se>
84595ff0
JD
1137
1138 * xterm.c (x_check_fullscreen): Fix pixel/character mixup.
1139
7c420169 11402011-01-02 Eli Zaretskii <eliz@gnu.org>
30d621a2
EZ
1141
1142 * xdisp.c (Fformat_mode_line): Fix last change.
1143
7c420169 11442011-01-02 Chong Yidong <cyd@stupidchicken.com>
4bf3e46e
CY
1145
1146 * xdisp.c (Fformat_mode_line): Restrict the FACE argument to basic
1147 faces (Bug#7587).
1148
7c420169 11492011-01-02 Eli Zaretskii <eliz@gnu.org>
1b2a627f
EZ
1150
1151 * fileio.c (Fexpand_file_name): One more doc fix.
1152
3afff00e
CY
11532011-01-01 Chong Yidong <cyd@stupidchicken.com>
1154
1155 * gtkutil.c (xg_get_tool_bar_widgets): Use NULL for a missing
1156 image or label in the container.
1157 (xg_make_tool_item): Replace VERT_ONLY arg with HORIZ, TEXT_IMAGE.
1158 (xg_show_toolbar_item): Function deleted.
1159 (xg_tool_item_stale_p): New function.
1160 (update_frame_tool_bar): Calculate tool-bar style once per call.
1161 Instead of hiding text labels, omit them. Don't use
1162 xg_show_toolbar_item; create new GtkToolItems from scratch if
1163 necessary, instead of trying to re-use them. This avoids an
1164 annoying animation when changing tool-bars.
1165
aeb7e951
JD
11662010-12-31 Jan Djärv <jan.h.d@swipnet.se>
1167
1168 * nsfns.m (ns_set_name_as_filename): Always use buffer name for
1169 title and buffer filename only for RepresentedFilename.
1170 Handle bad UTF-8 in buffer name (Bug#7517).
1171
5bbb4727
JD
11722010-12-30 Jan Djärv <jan.h.d@swipnet.se>
1173
1174 * coding.h (ENCODE_UTF_8): Remove "Used by ..." comment.
1175
1176 * nsfns.m (ns_set_name_iconic): Remove.
1177 (ns_set_name_internal): New function (Bug#7517).
1178 (Vicon_title_format): Extern declare.
1179 (ns_set_name): Call ns_set_name_internal.
1180 (x_explicitly_set_name): Remove call to ns_set_name_iconic.
1181 (x_implicitly_set_name): Ditto.
1182 (x_set_title): Remove commet about EXPLICIT. Call ns_set_name_internal.
1183 (ns_set_name_as_filename): Encode name with ENCODE_UTF_8 (Bug#7517).
1184
f1aab3ff
ŠN
11852010-12-29 Štěpán Němec <stepnem@gmail.com> (tiny change)
1186
1187 * window.c (syms_of_window): Add missing defsubr for
1188 window-use-time.
1189
365525b3
AS
11902010-12-28 Andreas Schwab <schwab@linux-m68k.org>
1191
1192 * xterm.h (x_alloc_lighter_color_for_widget): Restore declaration.
1193 * xterm.c (x_alloc_lighter_color_for_widget): Restore.
1194
59fc5cf9
AS
11952010-12-27 Andreas Schwab <schwab@linux-m68k.org>
1196
2f7c71a1
AS
1197 * buffer.c: Remove unused declarations.
1198 * buffer.h: Likewise.
1199 * charset.h: Likewise.
1200 * composite.h: Likewise.
1201 * dispextern.h: Likewise.
1202 * dispnew.c: Likewise.
1203 * font.h: Likewise.
1204 * fontset.c: Likewise.
1205 * fontset.h: Likewise.
1206 * intervals.h: Likewise.
1207 * keymap.h: Likewise.
1208 * lisp.h: Likewise.
1209 * syntax.c: Likewise.
1210 * syntax.h: Likewise.
1211 * termhooks.h: Likewise.
1212 * window.h: Likewise.
1213 * xsettings.h: Likewise.
1214 * xterm.c: Likewise.
1215 * xterm.h: Likewise.
1216
1217 * chartab.c (sub_char_table_ref): Make static.
1218 * dispnew.c (line_hash_code, required_matrix_height)
1219 (required_matrix_width): Likewise.
1220 * eval.c (interactive_p, apply_lambda): Likewise.
1221 * fns.c (string_make_multibyte, copy_hash_table, hash_clear):
1222 Likewise.
1223 * font.c (QCadstyle, QCregistry, font_make_spec)
1224 (font_parse_fcname, font_encode_char, font_at): Likewise.
1225 * frame.c (x_frame_get_arg): Likewise.
1226 * keymap.c (get_keyelt): Likewise.
1227 * lread.c (read_filtered_event): Likewise.
1228 * print.c (write_string_1): Likewise.
1229 * window.c (delete_window, window_height, window_width)
1230 (foreach_window): Likewise.
1231 * xrdb.c (x_get_customization_string, x_get_resource): Likewise.
1232 * xterm.c (x_scroll_bar_clear, xembed_set_info)
1233 (xembed_send_message): Likewise.
1234
1235 * eval.c (run_hook_list_with_args): Delete.
1236 * font.c (font_unparse_gtkname, font_update_lface): Likewise.
1237 * terminal.c (get_terminal_param): Likewise.
1238 * xterm.c (x_alloc_lighter_color_for_widget): Likewise.
1239
c4b607ed
AS
1240 * scroll.c: Fix comment.
1241
59fc5cf9
AS
1242 * dispnew.c (add_window_display_history)
1243 (add_frame_display_history, glyph_row_slice_p)
1244 (find_glyph_row_slice, flush_stdout)
1245 (check_matrix_pointer_lossage, matrix_row)
1246 (check_matrix_invariants, check_window_matrix_pointers)
1247 (check_matrix_pointers, window_to_frame_vpos)
1248 (window_to_frame_hpos): Prototize.
1249 * textprop.c (erase_properties): Likewise.
1250
a65b85b5
SM
12512010-12-22 Stefan Monnier <monnier@iro.umontreal.ca>
1252
17870c01
SM
1253 * print.c (PRINT_NUMBER_OBJECT, PRINT_NUMBER_STATUS): Remove.
1254 (print_preprocess): Fix handling of uninterned symbols in last change.
1255
a65b85b5
SM
1256 * print.c (print, print_preprocess, print_object): Use a hash table
1257 rather than a linear table for Vprint_number_table.
1258
f13183cf
CY
12592010-12-20 Chong Yidong <cyd@stupidchicken.com>
1260
1261 * frame.c (focus_follows_mouse): Default to 0 (Bug#7269).
1262
94975270
CY
12632010-12-20 Chong Yidong <cyd@stupidchicken.com>
1264
1265 * keyboard.c (Vtool_bar_separator_image_expression): New variable.
1266 (parse_tool_bar_item): Use it to obtain image separators for
1267 displays not using native tool-bar separators.
1268
1269 * xdisp.c (build_desired_tool_bar_string): Don't handle separators
1270 specially, since this is now done in parse_tool_bar_item.
1271
ef1b0ba7
SM
12722010-12-19 Stefan Monnier <monnier@iro.umontreal.ca>
1273
1274 Minor clean up to silence some gcc warnings.
1275 * window.c (Fset_window_buffer):
1276 * xterm.c (x_set_frame_alpha): Restructure code to silence
1277 compiler warning.
1278 (handle_one_xevent): Remove unused var `p'.
1279 (do_ewmh_fullscreen): Remove unused var `lval'.
1280 (xembed_set_info): Remove unused var `atom'.
1281 * textprop.c (Fremove_list_of_text_properties): Add braces to silence
1282 compiler warning.
1283 * fontset.c (fontset_id_valid_p, dump_fontset):
1284 * ftfont.c (ftfont_drive_otf): Modernize k&r declaration.
1285 * eval.c (Feval, Ffuncall): Avoid unneeded gotos.
1286 * dispnew.c (update_frame, update_frame_1): Compile the `do_pause'
1287 label only when it's used.
1288 * image.c (x_create_bitmap_from_xpm_data):
1289 * dispextern.h (x_create_bitmap_from_xpm_data): Use const char** like
1290 its callers.
1291 * coding.c (detect_coding_utf_16): Remove unused vars `src_base' and
1292 `consumed_chars'.
1293 (DECODE_EMACS_MULE_21_COMPOSITION): Remove unused var `charbuf_base'.
1294 (decode_coding_emacs_mule): Remove unused label `retry'.
1295 (detect_eol): Add parens to silence compiler warning.
1296 * alloc.c (bytes_used_when_reconsidered): Move to the #ifdef where
1297 it's used to silence the compiler.
1298 (make_number): Modernize k&r declaration.
1299 (mark_char_table): Add parens to silence compiler warning.
1300
4039c786
CY
13012010-12-17 Chong Yidong <cyd@stupidchicken.com>
1302
1303 * keyboard.c (parse_tool_bar_item): Allow menu separators in
1304 tool-bar maps.
1305 (menu_separator_name_p): New function, from gtkutil.c.
1306 (separator_names): Move from gtkutil.c.
1307
1308 * keyboard.h (menu_separator_name_p): Add prototype.
1309
1310 * gtkutil.c (XG_BIN_CHILD): New macro.
1311 (xg_get_menu_item_label, xg_update_menubar)
1312 (xg_update_menu_item, xg_tool_bar_menu_proxy)
1313 (xg_show_toolbar_item, update_frame_tool_bar): Use it.
1314 (separator_names, xg_separator_p): Move to keyboard.c.
ef1b0ba7
SM
1315 (create_menus, xg_update_submenu, update_frame_tool_bar):
1316 Use menu_separator_name_p.
4039c786
CY
1317
1318 * nsmenu.m (name_is_separator): Function deleted.
1319 (addItemWithWidgetValue): Use menu_separator_name_p.
1320
1321 * w32menu.c (name_is_separator): Function deleted.
1322 (add_menu_item): Use menu_separator_name_p.
1323
aa936e8e
JD
13242010-12-16 Jan Djärv <jan.h.d@swipnet.se>
1325
1326 * nsterm.m (ns_draw_window_cursor): If the cursor color is the
1327 same as the background, use the face forground as cursor.
1328
f49d1f52 13292010-12-13 Eli Zaretskii <eliz@gnu.org>
15579471
EZ
1330
1331 * fileio.c (Fexpand_file_name): Doc fix. (Bug#7617)
1332
f49d1f52 13332010-12-13 Eli Zaretskii <eliz@gnu.org>
76feb864 1334
f0559026
EZ
1335 * xdisp.c (string_pos_nchars_ahead, c_string_pos)
1336 (face_before_or_after_it_pos, next_element_from_string)
1337 (next_element_from_c_string, produce_stretch_glyph): Remove unused
1338 calculations of maximum string length before calling
1339 string_char_and_length and STRING_CHAR_AND_LENGTH.
1340 (string_char_and_length): Update commentary: MAXLEN is no longer
1341 needed.
1342
f49d1f52 13432010-12-13 Jan Djärv <jan.h.d@swipnet.se>
0b9fc69a
JD
1344
1345 * keyboard.c (kbd_buffer_get_event): Construct SAVE_SESSION_EVENT
1346 as (Qsave_session arg).
1347
1348 * xsmfns.c (smc_interact_CB): Set arg to Qnil.
1349 (smc_die_CB): Make an event with arg Qt.
1350 (Fhandle_save_session): If event has Qt as argument,
1351 call Fkill_emacs (Bug#7552).
1352
f49d1f52
SM
13532010-12-13 Chong Yidong <cyd@stupidchicken.com>
1354
1355 * buffer.c (transient-mark-mode): Doc fix (Bug#7465).
1356
13572010-12-13 Jan Djärv <jan.h.d@swipnet.se>
2b815743
JD
1358
1359 * xsmfns.c (smc_die_CB): Call Fkill_emacs (Bug#7552).
1360
f49d1f52 13612010-12-13 Chong Yidong <cyd@stupidchicken.com>
d8b2a962
CY
1362
1363 * dispextern.h (struct it): New member overlay_strings_charpos.
1364
1365 * xdisp.c (next_overlay_string, load_overlay_strings): Record the
1366 charpos where we computed n_overlay_strings.
1367 (next_overlay_string): Load overlay strings at recorded position,
1368 which may not be the same as the iterator's charpos (Bug#7016).
1369
f49d1f52 13702010-12-13 Chong Yidong <cyd@stupidchicken.com>
77f1ed6c
CY
1371
1372 * xdisp.c (try_scrolling): Avoid infloop if the first line is
1373 obscured due to a vscroll (Bug#7537).
1374
f49d1f52 13752010-12-13 Jan Djärv <jhd@zeplinf.localdomain>
2a91a0b5
JD
1376
1377 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
1378
1379 * nsterm.m (x_set_window_size, windowWillResize, initFrameFromEmacs):
1380 Use FRAME_TOOLBAR_HEIGHT.
1381 (x_set_offset): Handle XNegative and YNegative in
1382 f->size_hint_flags (Bug#7510).
1383
39321b94
EZ
13842010-12-11 Eli Zaretskii <eliz@gnu.org>
1385
1386 * w32fns.c (Fx_show_tip): Call try_window with last argument
1387 TRY_WINDOW_IGNORE_FONTS_CHANGE. Delete the TODO ifdef: problem
1388 solved. Round up the tip height to an integral multiple of the
1389 frame's line height. Add FRAME_COLUMN_WIDTH to the tip width.
1390 (Bug#7398)
1391
ec1b9b17
GM
13922010-12-08 Glenn Morris <rgm@gnu.org>
1393
1394 * fileio.c (Fverify_visited_file_modtime): Default to current buffer.
1395
3c2317e8
LMI
13962010-12-06 Lars Magne Ingebrigtsen <larsi@gnus.org>
1397
1398 * xml.c (parse_region): Ignore blank HTML nodes.
1399 (make_dom): Return CDATA sections (like <style>foo</style>) as
1400 text nodes.
1401
bba3e508
SM
14022010-12-06 Stefan Monnier <monnier@iro.umontreal.ca>
1403
1404 * lread.c (read1): Allow newstyle unquote outside of backquote.
1405 Disallow old-style backquotes inside new-style backquotes.
1406 Don't count unquotes to figure out when we're "syntactically inside
1407 but semantically outside of a backquote" any more.
1408 Extend the restriction no-unescaped-commas-and-backquotes-in-symbols
1409 to all contexts.
1410
d23d8608
CY
14112010-12-05 Chong Yidong <cyd@stupidchicken.com>
1412
1413 * process.c: Remove checks for HAVE_SYS_IOCTL_H (Bug#7484).
1414
d6a003a8
AS
14152010-12-04 Andreas Schwab <schwab@linux-m68k.org>
1416
1417 * Makefile.in (M_FILE): Substitute @M_FILE@ instead of @machfile@.
1418 (S_FILE): Substitute @S_FILE@ instead of @opsysfile@.
1419 * m/arm.h, m/sh3.h, m/xtensa.h: Remove files.
1420
201ef780
AS
14212010-12-03 Andreas Schwab <schwab@linux-m68k.org>
1422
1423 * lisp.h (union Lisp_Object): Explicitly declare signedness of
1424 bit-field.
1425 (XINT): Remove variant for EXPLICIT_SIGN_EXTEND.
1426 * m/alpha.h (EXPLICIT_SIGN_EXTEND): Don't define.
1427 * m/amdx86-64.h (EXPLICIT_SIGN_EXTEND): Likewise.
1428 * m/ia64.h (EXPLICIT_SIGN_EXTEND): Likewise.
1429 * m/ibms390.h (EXPLICIT_SIGN_EXTEND): Likewise.
1430 * m/ibms390x.h (EXPLICIT_SIGN_EXTEND): Likewise.
1431 * m/iris4d.h (EXPLICIT_SIGN_EXTEND): Likewise.
1432 * m/m68k.h (EXPLICIT_SIGN_EXTEND): Likewise.
1433 * m/sparc.h (EXPLICIT_SIGN_EXTEND): Likewise.
1434 * m/template.h (EXPLICIT_SIGN_EXTEND): Likewise.
1435 * m/hp800.h: Remove file.
1436 * m/mips.h: Remove file.
1437
146490c3
JD
14382010-12-03 Jan Djärv <jan.h.d@swipnet.se>
1439
1440 * nsterm.m (ns_dumpglyphs_image): If drawing cursor, fill background
1441 with cursor color and draw a rectangle around the image (Bug#7412).
1442
babc8f0d
AS
14432010-12-03 Andreas Schwab <schwab@linux-m68k.org>
1444
1445 * frame.c (x_set_font): Remove unused variable.
1446
9583e9a0
JD
14472010-12-02 Jan Djärv <jan.h.d@swipnet.se>
1448
dd723bbd
JD
1449 * nsmenu.m (update_frame_tool_bar): Remove NSLog on invalid image.
1450
9583e9a0
JD
1451 * nsterm.m (ns_draw_glyph_string): Switch fore- and background if
1452 drawing text under filled box cursor (Bug#7479).
1453
07976ae3 14542010-11-27 Kenichi Handa <handa@m17n.org>
b84ae584
KH
1455
1456 * charset.c (emacs_mule_charset): Make it an array of charset ID;
1457 i.e. integer.
bba3e508 1458 (Fdefine_charset_internal): Adjust for the above change.
b84ae584
KH
1459 (init_charset_once): Likewise.
1460
bba3e508
SM
1461 * charset.h (emacs_mule_charset): Adjust the prototype.
1462 Delete duplicated extern.
b84ae584
KH
1463
1464 * coding.c (emacs_mule_char): Adjust for the change of
1465 emacs_mule_charset.
1466
1467 * lread.c (read_emacs_mule_char): Adjust for the change of
1468 emacs_mule_charset.
1469
07976ae3 14702010-11-27 Eli Zaretskii <eliz@gnu.org>
b8e5cf1d
EZ
1471
1472 * w32.c (_PROCESS_MEMORY_COUNTERS_EX): Don't define with versions
1473 of w32api >= 3.15. (Bug#6989) (Bug#7452)
1474
07976ae3 14752010-11-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
96ad0af7
YM
1476
1477 * alloc.c (mark_terminals): Ensure that the image cache is marked
1478 even if the terminal object was marked earlier (Bug#6301).
1479
35f1de62
CY
14802010-11-21 Chong Yidong <cyd@stupidchicken.com>
1481
1482 * editfns.c (Fbyte_to_string): Signal an error arg is not a byte.
1483
07976ae3 14842010-11-27 Jan Djärv <jan.h.d@swipnet.se>
8d7f026f
JD
1485
1486 * gtkutil.c (menubar_map_cb): New function (Bug#7425).
1487 (xg_update_frame_menubar): Connect signal map to menubar_map_cb.
1488 Use 23 as menubar height if 0. (Bug#7425).
1489
8547874a
EZ
14902010-11-26 Eli Zaretskii <eliz@gnu.org>
1491
228482b2
EZ
1492 * xdisp.c (set_message_1): Force paragraph direction in echo area
1493 be left-to-right.
1494
8547874a
EZ
1495 * keyboard.c (make_lispy_position): Put a meaningful value in yret
1496 when the click is on the header or mode line.
1497
1e2dddbe
EZ
14982010-11-25 Eli Zaretskii <eliz@gnu.org>
1499
1500 * xdisp.c (set_cursor_from_row): Don't forget to consider the
1501 `cursor' property of the first character in overlay strings.
12365240 1502 (Bug#7474) (Bug#7481)
1e2dddbe 1503
50795d1f
JD
15042010-11-24 Jan Djärv <jan.h.d@swipnet.se>
1505
1506 * nsterm.m (NSLeftControlKeyMask, NSLeftCommandKeyMask)
1507 (NSLeftAlternateKeyMask): New defines.
c80c6166
JD
1508 (keyDown): Parse left and right keys separately (Bug#7458).
1509 Compare Left key masks exactly (Bug#7458).
50795d1f 1510
f8ab8c1f
EZ
15112010-11-23 Eli Zaretskii <eliz@gnu.org>
1512
1513 * intervals.c (temp_set_point_both): Define before calling, to
1514 avoid GCC warnings.
1515
2e8a4797
DN
15162010-11-23 Dan Nicolaescu <dann@ics.uci.edu>
1517
b29116ef
DN
1518 * nsmenu.m: Use #include <config.h> instead of "config.h".
1519
b932f8b1
DN
1520 * term.c (Qglyphless_char,last_glyphless_glyph_frame)
1521 (last_glyphless_glyph_face_id. last_glyphless_glyph_merged_face_id):
1522 Move declarations ...
1523 * lisp.h (Qglyphless_char,last_glyphless_glyph_frame)
1524 (last_glyphless_glyph_face_id. last_glyphless_glyph_merged_face_id):
1525 ... here.
1526
42c8bc9b
DN
1527 * emacs.c (gdb_use_union, gdb_valbits,gdb_gctypebits)
1528 (gdb_data_seg_bits, gdb_array_mark_flag, PVEC_FLAG)
1529 (gdb_pvec_type):
1530 * print.c (print_output_debug_flag):
1531 * lisp.h (debug_print): Mark as EXTERNALLY_VISIBLE.
1532 (safe_debug_print): New declaration.
1533
2e8a4797
DN
1534 * xterm.c:
1535 * systty.h:
1536 * sound.c: Include <sys/ioctl.h> unconditionally.
1537
b609f591
YM
15382010-11-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1539
1540 * alloc.c (mark_maybe_object): Return early if given a Lisp
1541 integer (Bug#6301).
1542
731e263a
KB
15432010-11-21 Ken Brown <kbrown@cornell.edu>
1544
1545 * sheap.c (STATIC_HEAP_SIZE): Revert previous change.
1546
b7d1e144
JD
15472010-11-21 Jan Djärv <jan.h.d@swipnet.se>
1548
1549 * nsterm.m (ns_right_command_modifier, ns_right_control_modifier):
1550 Define (Bug#7458).
1551 (NSRightCommandKeyMask, NSRightControlKeyMask): Define (Bug#7458).
1552 (EV_MODIFIERS): Check for NSRightCommandKeyMask and
1553 NSRightControlKeyMask also (Bug#7458).
1554 (keyDown): Ditto (Bug#7458).
1555 (syms_of_nsterm): Defvar ns-right-command-modifier and
1556 ns-right-control-modifier (Bug#7458).
1557
b7982059
DN
15582010-11-21 Dan Nicolaescu <dann@ics.uci.edu>
1559
bee3419f
DN
1560 * sysdep.c (sys_subshell): Remove SET_EMACS_PRIORITY.
1561 * emacs.c (emacs_priority, syms_of_emacs): Remove emacs_priority.
1562
b7982059
DN
1563 * intervals.h (temp_set_point, temp_set_point_both):
1564 * buffer.h (offset_intervals, copy_intervals): Remove INLINE.
1565
01664ed1
KB
15662010-11-20 Ken Brown <kbrown@cornell.edu>
1567
1568 * sheap.c (STATIC_HEAP_SIZE): Increase to 13MB.
1569
7c2d713b
EZ
15702010-11-20 Eli Zaretskii <eliz@gnu.org>
1571
1572 * term.c (produce_glyphless_glyph): Use \uNNNN, \UNNNNNN, or
1573 \xNNNNNN for hex-code display of glyphless characters.
1574
d2bd5189
JD
15752010-11-20 Jan Djärv <jan.h.d@swipnet.se>
1576
1577 * gtkutil.c (xg_make_tool_item): Take vert_only as argument.
1578 Set important to ! vert_only.
1579 (xg_show_toolbar_item): Don't show label horizontally if
1580 tool item isn't important.
1581 (update_frame_tool_bar): Get TOOL_BAR_ITEM_VERT_ONLY and pass it to
1582 xg_make_tool_item, or update important on existing tool item.
1583
1584 * keyboard.c (QCvert_only): New variable.
1585 (parse_tool_bar_item): Check for QCvert_only.
1586 (syms_of_keyboard): Initialize QCvert_only.
1587
1588 * dispextern.h (tool_bar_item_idx): Add TOOL_BAR_ITEM_VERT_ONLY.
1589
d9a95e67
EZ
15902010-11-20 Eli Zaretskii <eliz@gnu.org>
1591
1592 * msdos.c (dos_rawgetc): Use gen_help_event, instead of doing the
1593 same in-line.
1594
b6557553
AS
15952010-11-20 Andreas Schwab <schwab@linux-m68k.org>
1596
1597 * xfaces.c (lookup_face): Make static.
1598 * dispnew.c (copy_row_except_pointers): Likewise.
1599 * syntax.c (dec_bytepos): Likewise.
1600 (inc_bytepos): Remove.
1601 * dispextern.h (lookup_face): Remove declaration.
1602
f48fe1f0
EZ
16032010-11-19 Eli Zaretskii <eliz@gnu.org>
1604
1605 * xdisp.c (set_cursor_from_row): Display cursor after all the
1606 glyphs that come from an overlay. Don't overstep the last glyph
1607 when skipping glyphs from an overlay. (Bug#6687)
1608
654ef137
DN
16092010-11-18 Dan Nicolaescu <dann@ics.uci.edu>
1610
84dfc8a7
DN
1611 * alloc.c (refill_memory_reserve): Move declaration ...
1612 * lisp.h (refill_memory_reserve): ... here.
1613
94fa3833
DN
1614 * strftime.c (_strftime_copytm): Add declaration.
1615
dde990a0
DN
1616 * callproc.c (syms_of_callproc): Use intern_c_string.
1617
50c77428
DN
1618 Move declarations from .c files to .h files.
1619 * process.c (timers_run):
1620 * minibuf.c (quit_char):
1621 * lread.c (read_emacs_mule_char):
1622 * keyboard.c (minibuf_level, message_enable_multibyte)
1623 (pending_malloc_warning):
1624 * insdel.c (Vselect_active_regions, Vsaved_region_selection)
1625 (Qonly): Remove declarations.
1626 * lisp.h (pending_malloc_warning, Vsaved_region_selection)
1627 (Vselect_active_regions):
1628 * keyboard.h (timers_run): Add declarations.
1629
654ef137
DN
1630 * strftime.c (my_strftime_gmtime_r, my_strftime_localtime_r)
1631 (tm_diff): Convert definitions to standard C.
1632 (extra_args_spec_iso): Remove, unused.
1633
4a47c275 16342010-11-18 Jan Djärv <jan.h.d@swipnet.se>
37de8fd0
J
1635
1636 * xsettings.c (init_gconf): Check HAVE_G_TYPE_INIT.
1637
1638 * config.in (HAVE_G_TYPE_INIT): New symbol.
1639
4a47c275 16402010-11-18 Eli Zaretskii <eliz@gnu.org>
c7926fe2
EZ
1641
1642 * lread.c (Fload): Mention `load-in-progress' and
1643 `load-file-name'. (Bug#7346)
1644
86520d8c
EZ
1645 * keyboard.c (kbd_buffer_nr_stored): Define only ifdef subprocesses.
1646 (kbd_buffer_store_event_hold, kbd_buffer_get_event)
1647 (tty_read_avail_input): Call kbd_buffer_nr_stored only ifdef
1648 subprocesses. Use buffer_free only ifdef subprocesses.
1649
1650 * process.c (init_process) [subprocesses]: Init kbd_is_on_hold in
1651 the subprocesses version, not in the non-subprocesses one.
1652
794a4b6d
EZ
1653 * Makefile.in: Don't use ## comment, it breaks the MSDOS build.
1654
146d267b
EZ
16552010-11-17 Eli Zaretskii <eliz@gnu.org>
1656
1657 * xdisp.c (set_cursor_from_row): Fix cursor positioning in empty
1658 lines on text-mode terminals. (bug#7417)
1659
fad0d565
SM
16602010-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
1661
1662 * xterm.c (get_current_wm_state): Rename from get_current_vm_state.
1663 (do_ewmh_fullscreen, x_handle_net_wm_state): Update callers.
1664
6b4bb703
KH
16652010-11-17 Kenichi Handa <handa@m17n.org>
1666
1667 * coding.c (Fset_terminal_coding_system_internal): Fix previous
1668 change (set charset-ID list instead of charset-symbol list).
1669
9173a8fb
CY
16702010-11-16 Chong Yidong <cyd@stupidchicken.com>
1671
1672 * keyboard.c (make_lispy_position): For text area clicks, record Y
1673 pixel position relative to the text area, excluding header line.
1674 Also change X and Y to Lisp_Objects, not pointers; don't return
1675 coordinate values via pointers. Pass ON_TEXT_AREA coordinate to
1676 buffer_posn_from_coords counting from the start of the text area.
1677 (Fposn_at_x_y, make_lispy_event): Callers changed.
1678
1679 * window.c (coordinates_in_window): Change X and Y to ints rather
1680 than pointers; don't return coordinates via pointers.
1681 (struct check_window_data): Change X and Y from pointers to ints.
1682 (window_from_coordinates): Remove args WX and WY; don't return
1683 coordinates via pointers.
1684 (Fcoordinates_in_window_p, window_from_coordinates):
1685 (check_window_containing, Fwindow_at): Callers changed.
1686 (window_relative_x_coord): New function.
1687
1688 * window.h (window_from_coordinates, window_relative_x_coord):
1689 Update prototypes.
1690
1691 * dispnew.c (buffer_posn_from_coords): Assume that X counts from
1692 the start of the text area.
1693
1694 * xdisp.c (remember_mouse_glyph): Change window_from_coordinates
1695 call. Use window_relative_x_coord.
1696 (note_mouse_highlight): Change window_from_coordinates call.
1697
1698 * w32term.c (w32_read_socket):
1699 * msdos.c (dos_rawgetc):
1700 * xterm.c (handle_one_xevent): Likewise.
1701
d2762c86
DN
17022010-11-16 Dan Nicolaescu <dann@ics.uci.edu>
1703
1704 * strftime.c (LOCALE_PARAM_DECL): Update for standard C.
1705 (LOCALE_PARAM, LOCALE_PARAM_PROTO): Remove, unused.
1706 (memcpy_lowcase, so_week_days, extra_args_spec, emacs_strftimeu):
1707 Convert definitions to standard C.
1708 * regex.c: Do not include <stdlib.h>, config.h does it.
1709 Include unistd.h.
1710 (xrealloc, init_syntax_once, re_match, regcomp, regexec)
1711 (regerror, regfree): Convert definitions to standard C.
1712 * mktime.c (my_mktime_localtime_r, ydhms_tm_diff, ranged_convert)
1713 (__mktime_internal): Convert definitions to standard C.
1714
c2f0866a
DN
17152010-11-15 Dan Nicolaescu <dann@ics.uci.edu>
1716
42a7e7f1
DN
1717 * w32proc.c:
1718 * w32inevt.c:
1719 * w32heap.c:
1720 * w32.c: Remove config.h include guards.
1721
67802943
DN
1722 * callproc.c (child_setup): Reorder code to simplify #ifdefs.
1723 No code changes.
1724
f0e1af46
DN
1725 * process.c: Include <sys/ioctl.h> unconditionally,
1726 keyboard.c already does it.
1727
c2f0866a
DN
1728 * keyboard.c (pending_malloc_warning): Add const to match
1729 definition in alloc.c.
1730 (Fset_input_interrupt_mode): Simplify #ifdefs.
1731
92d3ab7e
DN
17322010-11-15 Dan Nicolaescu <dann@ics.uci.edu>
1733
12e610e8
DN
1734 Clean up systty.h macros.
1735 * systty.h (EMACS_GET_TTY_PGRP, EMACS_SET_TTY_PGRP, EMACS_GET_TTY)
1736 (EMACS_SET_TTY): Remove unneeded abstraction, instead inline the
1737 definition in all uses.
1738 (EMACS_TTY_TABS_OK): Remove, it has a single user.
1739 * sysdep.c (discard_tty_input, child_setup_tty)
1740 (init_sys_modes, tabs_safe_p, reset_sys_modes):
1741 * emacs.c (shut_down_emacs):
1742 * callproc.c (child_setup):
1743 * term.c (dissociate_if_controlling_tty): Inline removed macros.
1744
92d3ab7e
DN
1745 * data.c (sign_extend_temp, sign_extend_lisp_int): Remove, unused.
1746
a3e6bad4
CY
17472010-11-14 Chong Yidong <cyd@stupidchicken.com>
1748
1749 * w32fns.c (Fx_create_frame):
1750 * nsfns.m (Fx_create_frame): Don't check for the cursorColor
1751 resource here; it's now done at startup.
1752
5a232ffb
J
17532010-11-14 Jan Djärv <jan.h.d@swipnet.se>
1754
1755 * xterm.c (set_wm_state): Add Qnil to final cons.
1756
1757 * xselect.c (x_send_client_event): Remove unused variables cons and
1758 size.
1759
24021b38
YM
17602010-11-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1761
1762 * keyboard.c (modify_event_symbol) : Add const to array elements of
1763 arg NAME_TABLE.
1764 (lispy_accent_keys, lispy_function_keys, lispy_multimedia_keys)
1765 (lispy_kana_keys, iso_lispy_function_keys, lispy_wheel_names)
1766 (lispy_wheel_names, lispy_drag_n_drop_names, modifier_names):
1767 Add const to array elements.
1768 (scroll_bar_parts): Make static. Fix position of const.
1769
1770 * w32fns.c (lispy_function_keys): Add const to extern.
1771
1772 * w32inevt.c (lispy_function_keys): Likewise.
1773
afa42fe3
CY
17742010-11-14 Chong Yidong <cyd@stupidchicken.com>
1775
1776 * xfns.c (Fx_create_frame): Don't check for the cursorColor
1777 resource here; it's now done at startup.
1778
53260a94
DN
17792010-11-13 Dan Nicolaescu <dann@ics.uci.edu>
1780
c865c575 1781 * xmenu.c: Make it clear that ../lwlib/lwlib.h is only needed for Motif.
ff2e8052 1782
c865c575 1783 Fix compilation on Solaris.
ff2e8052
DN
1784 * sysdep.c: Do not #include <term.h>.
1785 (tputs): Add declaration, similar to what cm.c does. (Bug#7178)
1786
53260a94
DN
1787 * s/ms-w32.h (HAVE_TERMIOS_H): Do not undef, not used anymore.
1788
933e29ff
J
17892010-11-13 Jan Djärv <jan.h.d@swipnet.se>
1790
1791 * xterm.c (set_wm_state): Don't put Atom in cons, call
1792 make_fixnum_or_float on them first.
1793 (x_term_init): Initialize Xatom_net_supporting_wm_check and
1794 Xatom_net_supported correctly.
1795
1796 * xselect.c (x_send_client_event): Move CHECK_STRING ...
1797 (Fx_send_client_event): to here.
1798
a048073e
MR
17992010-11-13 Martin Rudalics <rudalics@gmx.at>
1800
1801 * window.c (Fwindow_use_time): New function.
1802
0eb025fb
EZ
18032010-11-13 Eli Zaretskii <eliz@gnu.org>
1804
1805 * xdisp.c (set_cursor_from_row): Fix cursor positioning on
1806 zero-width characters.
1807
1808 * .gdbinit (pgx): Adapt to latest changes in `struct glyph'.
1809
1810 * w32term.c (x_draw_glyphless_glyph_string_foreground): Draw the
1811 box before drawing the glyphs inside it.
1812
1813 * xdisp.c (syms_of_xdisp) <glyphless-char-display>: Doc fix.
1814
bba3e508
SM
1815 * dispextern.h (enum glyphless_display_method):
1816 Rename GLYPHLESS_DISPLAY_HEXA_CODE to GLYPHLESS_DISPLAY_HEX_CODE.
1817 All users changed.
0eb025fb 1818
bba3e508
SM
1819 * term.c (append_glyphless_glyph, produce_glyphless_glyph):
1820 Fix comments.
0eb025fb
EZ
1821 (produce_glyphless_glyph): Enclose "U+nnnn" and "empty box"
1822 whitespace in "[]", to simulate a box. Don't use uninitialized
1823 variable `width'.
1824
c869cc37
JD
18252010-11-11 Julien Danjou <julien@danjou.info>
1826
2d9074ba
JD
1827 * xsettings.c (init_xsettings): Use already fetch atoms.
1828
1829 * xsmfns.c (create_client_leader_window): Use SM_CLIENT_ID atom
1830 from dpyinfo.
1831
1832 * xselect.c (Fx_send_client_event): Split and create
1833 x_send_client_event.
1834
1835 * lisp.h: Do not EXFUN Fx_send_client_event.
1836
1837 * xterm.c (x_set_frame_alpha): Use _NET_WM_WINDOW_OPACITY atom
1838 from dpyinfo.
1839 (wm_supports): Use atoms from dpyinfo.
1840 (do_ewmh_fullscreen): Use atoms from dpyinfo.
1841 (x_ewmh_activate_frame): Use atoms from dpyinfo.
1842 (xembed_set_info): Use atoms from dpyinfo.
1843 (x_term_init): Fetch _XEMBED_INFO, _NET_SUPPORTED,
1844 _NET_SUPPORTING_WM_CHECK, _NET_WM_WINDOW_OPACITY and
1845 _NET_ACTIVE_WINDOW, XSETTINGS atoms.
1846 Get all atoms in one round-trip.
1847 (set_wm_state): Use x_send_client_event rather than
1848 Fx_send_client_event, using Atom directly.
1849 (x_ewmh_activate_frame): Ditto.
1850 (x_set_sticky): Pass atoms to set_wm_state.
1851 (do_ewmh_fullscreen): Ditto.
1852
1853
1854 * xterm.h (x_display_info): Add Xatom_net_supported,
1855 Xatom_net_supporting_wm_check, Xatom_net_active_window,
1856 Xatom_net_wm_window_opacity, Xatom_XEMBED_INFO, SM_CLIENT_ID.
1857
c869cc37
JD
1858 * xfns.c (Fx_show_tip): Fix typo in docstring.
1859
1a4236ea
SM
18602010-11-11 Stefan Monnier <monnier@iro.umontreal.ca>
1861
1862 * cmds.c (Fself_insert_command): Don't call XFASTINT without checking
1863 it's not negative.
1864
3106121c
YM
18652010-11-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1866
1867 * font.c (font_filter_properties): Add const to array elements of
1868 properties args.
1869
1870 * font.h (font_filter_properties): Likewise.
1871
1872 * ftfont.c (ftfont_booleans, ftfont_non_booleans): Add const to array
1873 elements.
1874
1875 * w32font.c (w32font_booleans, w32font_non_booleans): Likewise.
1876
da1fec2b
MA
18772010-11-10 Michael Albinus <michael.albinus@gmx.de>
1878
1879 * dbusbind.c (QCdbus_type_unix_fd): New Lisp object.
1880 (XD_BASIC_DBUS_TYPE, xd_symbol_to_dbus_type, xd_signature)
1881 (xd_append_arg, xd_retrieve_arg): Support DBUS_TYPE_UNIX_FD.
1882 (Fdbus_call_method): Add DBUS_TYPE_UNIX_FD type mapping to doc string.
1883 (syms_of_dbusbind): Initialize QCdbus_type_unix_fd).
1884
bd6bc222
GM
18852010-11-10 Glenn Morris <rgm@gnu.org>
1886
1887 * emacs.c (syms_of_emacs) <system-type>: Doc fix.
1888
c0098065
EZ
18892010-11-09 Eli Zaretskii <eliz@gnu.org>
1890
bd6bc222 1891 * xfns.c (x_real_positions): Fix declaration-after-statement problem.
c0098065 1892
d607b96b 18932010-11-09 Chong Yidong <cyd@stupidchicken.com>
be3faa80
CY
1894
1895 * image.c (free_image): Don't garbage the frame here, since this
1896 function can be called while redisplaying (Bug#7210).
1897 (uncache_image): Garbage the frame here (Bug#6426).
1898
d607b96b 18992010-11-09 Jan Djärv <jan.h.d@swipnet.se>
184765cc 1900
d607b96b
SM
1901 * xfns.c (x_real_positions): Only use _NET_FRAME_EXTENTS if our
1902 parent is the root window. Check this after traversing window tree.
184765cc 1903
d607b96b 1904 * xterm.c (x_term_init): Initialize Xatom_net_frame_extents.
bd80a886 1905
d607b96b 1906 * xterm.h (struct x_display_info): Xatom_net_frame_extents is new.
bd80a886 1907
d607b96b
SM
1908 * xfns.c (x_real_positions): Try to get _NET_FRAME_EXTENTS first
1909 before traversing window tree (Bug#5721).
c2e124a9 1910
27f92be7
J
19112010-11-07 Jan Djärv <jan.h.d@swipnet.se>
1912
66b16767
J
1913 * xfns.c (set_machine_and_pid_properties): Let X set WM_CLIENT_MACHINE.
1914
25f38310
SM
1915 * xdisp.c (note_mode_line_or_margin_highlight):
1916 Initialize Cursor to No_Cursor for HAVE_WINDOW_SYSTEM also.
27f92be7 1917
a971c0a7
EZ
19182010-11-06 Eli Zaretskii <eliz@gnu.org>
1919
1920 * xfns.c (Fx_show_tip): If any of the tool-tip text lines is R2L,
1921 adjust width of tool-tip frame to the width of text, excluding the
1922 stretch glyph at the beginning of R2L glyph rows.
1923
1924 * w32fns.c (Fx_show_tip): Likewise.
1925
80417b95
JD
19262010-11-06 Jan Djärv <jan.h.d@swipnet.se>
1927
1928 * nsfont.m: Include termchar for new mouse-highlight.
6dc61cf1 1929 (nsfont_draw): Use MOUSE_HL_INFO.
80417b95 1930
28118eb6
EZ
19312010-11-05 Eli Zaretskii <eliz@gnu.org>
1932
c1fc2d3a 1933 Unify mouse-highlight code for all GUI and TTY sessions.
cf482c50
EZ
1934
1935 * term.c: Remove static mouse_face_* variables. All users
1936 changed.
1937 (term_show_mouse_face, term_clear_mouse_face)
1938 (fast_find_position, term_mouse_highlight): Functions deleted.
1939 (tty_draw_row_with_mouse_face): New function.
1940 (term_mouse_movement): Call note_mouse_highlight instead of
1941 term_mouse_highlight.
1942
bbf534ce
EZ
1943 * nsterm.m (ns_update_window_begin, ns_update_window_end)
1944 (ns_update_end, x_destroy_window, ns_frame_up_to_date)
1945 (ns_dumpglyphs_box_or_relief, ns_maybe_dumpglyphs_background)
1946 (ns_dumpglyphs_image, ns_dumpglyphs_stretch)
1947 (ns_initialize_display_info, keyDown, mouseMoved, mouseExited):
1948 Replace Display_Info with Mouse_HLInfo everywhere where
1949 mouse_face_* members were accessed for mouse highlight purposes.
1950
1951 * xterm.c (x_update_window_begin, x_update_window_end)
1952 (x_update_end, XTframe_up_to_date, x_set_mouse_face_gc)
bba3e508
SM
1953 (handle_one_xevent, x_free_frame_resources, x_term_init):
1954 Replace Display_Info with Mouse_HLInfo everywhere where mouse_face_*
bbf534ce
EZ
1955 members were accessed for mouse highlight purposes.
1956
1957 * w32term.c (x_update_window_begin, x_update_window_end)
1958 (x_update_end, w32_read_socket, x_free_frame_resources)
1959 (w32_initialize_display_info): Replace Display_Info with
1960 Mouse_HLInfo everywhere where mouse_face_* members were accessed
1961 for mouse highlight purposes.
1962
1963 * xdisp.c (show_mouse_face, note_mode_line_or_margin_highlight)
1964 (note_mouse_highlight) [HAVE_WINDOW_SYSTEM]: Don't run GUI code
1965 unless the frame is on a window-system.
c1fc2d3a 1966 (get_tool_bar_item, handle_tool_bar_click)
7ea692f6
EZ
1967 (note_tool_bar_highlight, draw_glyphs, erase_phys_cursor)
1968 (show_mouse_face, clear_mouse_face, coords_in_mouse_face_p)
1969 (note_mode_line_or_margin_highlight, note_mouse_highlight)
1970 (x_clear_window_mouse_face, cancel_mouse_face, expose_frame):
1971 Replace Display_Info with Mouse_HLInfo everywhere where
1972 mouse_face_* members were accessed for mouse highlight purposes.
c1fc2d3a 1973 (coords_in_mouse_face_p): Move prototype out of the
d009ae66
EZ
1974 HAVE_WINDOW_SYSTEM conditional.
1975 (x_y_to_hpos_vpos, frame_to_window_pixel_xy): Move out of the
1976 HAVE_WINDOW_SYSTEM block.
bba3e508
SM
1977 (try_window_id) [HAVE_GPM || MSDOS]:
1978 Call x_clear_window_mouse_face.
d009ae66 1979 (draw_row_with_mouse_face): Implementation for HAVE_WINDOW_SYSTEM
c1fc2d3a
EZ
1980 systems. Call tty_draw_row_with_mouse_face for TTY systems.
1981 (show_mouse_face): Call draw_row_with_mouse_face, instead of
1982 calling draw_glyphs directly.
d009ae66
EZ
1983 (show_mouse_face, clear_mouse_face, coords_in_mouse_face_p)
1984 (cursor_in_mouse_face_p, rows_from_pos_range)
1985 (mouse_face_from_buffer_pos, mouse_face_from_string_pos)
1986 (note_mode_line_or_margin_highlight, note_mouse_highlight)
1987 (x_clear_window_mouse_face, cancel_mouse_face): Move out of the
1988 HAVE_WINDOW_SYSTEM block. Ifdef away window-system specific
1989 fragments.
1990 (note_mouse_highlight): Call popup_activated for MSDOS as well.
1991 Clear mouse highlight if pointer is over glyphs whose OBJECT is an
1992 integer.
1993 (mouse_face_from_buffer_pos): Add parentheses around && within ||.
bba3e508
SM
1994 (x_consider_frame_title, tool_bar_lines_needed):
1995 Move prototypes to HAVE_WINDOW_SYSTEM-only part.
c1fc2d3a
EZ
1996 (get_window_cursor_type): Move inside a HAVE_WINDOW_SYSTEM-only
1997 part. Remove "#ifdef HAVE_WINDOW_SYSTEM" from body of function.
1998 (null_glyph_slice): Move declaration into HAVE_WINDOW_SYSTEM-only
1999 part.
d009ae66
EZ
2000
2001 * dispnew.c (mirror_make_current): Set Y coordinate of the
2002 mode-line and header-line rows.
c1fc2d3a
EZ
2003 (init_display): Setup initial frame's output_data for text
2004 terminal frames.
d009ae66 2005
c1fc2d3a
EZ
2006 * xmenu.c (popup_activated): Don't define on MSDOS, which now has
2007 its own definition on msdos.c.
d009ae66
EZ
2008
2009 * msdos.c (show_mouse_face, clear_mouse_face)
2010 (fast_find_position, IT_note_mode_line_highlight)
2011 (IT_note_mouse_highlight): Functions deleted.
2012 (IT_frame_up_to_date, dos_rawgetc): Call note_mouse_highlight
2013 instead of IT_note_mouse_highlight.
2014 (draw_row_with_mouse_face, popup_activated): New functions.
c1fc2d3a
EZ
2015 (dos_set_window_size, draw_row_with_mouse_face, IT_update_begin)
2016 (IT_update_end, IT_frame_up_to_date, internal_terminal_init)
2017 (dos_rawgetc): Replace Display_Info with Mouse_HLInfo everywhere
2018 where mouse_face_* members were accessed for mouse highlight
2019 purposes.
2020
2021 * msdos.h (initialize_msdos_display): Add prototype.
2022
2023 * frame.h (MOUSE_HL_INFO): New macro.
2024
2025 * lisp.h (Mouse_HLInfo): New data type.
2026
2027 * xterm.h (struct x_display_info):
2028 * w32term.h (struct w32_display_info):
2029 * nsterm.h (struct ns_display_info):
2030 * termchar.h (struct tty_display_info): Use it instead of
2031 mouse_face_* members.
2032
2033 * dispextern.h (show_mouse_face, clear_mouse_face): Update type of
2034 1st argument.
2035 (frame_to_window_pixel_xy, note_mouse_highlight)
2036 (x_clear_window_mouse_face, cancel_mouse_face, clear_mouse_face)
2037 (show_mouse_face, cursor_in_mouse_face_p): Move prototypes out of
2038 HAVE_WINDOW_SYSTEM conditional.
2039 (draw_row_with_mouse_face): Declare prototype.
2040 (tty_draw_row_with_mouse_face): Declare prototype.
2041
6e8d7c47
EZ
20422010-11-05 Eli Zaretskii <eliz@gnu.org>
2043
bba3e508
SM
2044 * term.c (append_glyphless_glyph, produce_glyphless_glyph):
2045 Remove unused variables.
6e8d7c47 2046
f31ba3f0
AR
20472010-11-05 Adrian Robert <Adrian.B.Robert@gmail.com>
2048
2049 * nsterm.m (EmacsView-mouseExited:): Correct error in conditional
2050 logic pointed out by Eli Zaretskii.
2051
448e17d6
LMI
20522010-11-04 Lars Magne Ingebrigtsen <larsi@gnus.org>
2053
0c3a9a9f
GM
2054 * coding.c (coding-category-list): Refer to set-coding-system-priority
2055 instead of the obsolete set-coding-priority in the doc string.
448e17d6 2056
f31ba3f0 2057
3fdebbf9 20582010-11-04 Adrian Robert <Adrian.B.Robert@gmail.com>
f31ba3f0
AR
2059
2060 * nsfont.m (nsfont_draw): Correct previous patch to return
2061 correct value.
2062 * nsimage.m (EmacsImage-setXBMColor:): Correct previous patch:
2063 don't change the method signature, change the return.
2064
20652010-11-04 Ismail Donmez <ismail@namtrac.org> (tiny change)
3fdebbf9
AR
2066
2067 * nsfont.m (nsfont_draw)
2068 * nsimage.m (EmacsImage-setXBMColor:)
f31ba3f0 2069 * nsterm.m (EmacsView-performDragOperation:): Correct empty return.
3fdebbf9 2070
17c0c952
JD
20712010-11-03 Julien Danjou <julien@danjou.info>
2072
2073 * image.c (gif_load): Add support for transparency and specified
2074 :background.
2075
b18fad6d
KH
20762010-11-01 Kenichi Handa <handa@m17n.org>
2077
2078 * dispextern.h (lookup_glyphless_char_display): Extern it.
2079
2080 * termhooks.h (struct terminal): New member charset_list.
2081
2082 * coding.c (Fset_terminal_coding_system_internal): Set the
2083 `charset_list' member of struct terminal.
2084
a8039db1 2085 * term.c (produce_glyphs): Handle the case it->what == IT_GLYPHLESS.
b18fad6d
KH
2086 (append_glyphless_glyph, produce_glyphless_glyph): New functions.
2087
2088 * xdisp.c (lookup_glyphless_char_display): Make it non-static.
2089 (lookup_glyphless_char_display): Set it->what at the end.
2090 (last_glyphless_glyph_frame, last_glyphless_glyph_face_id)
2091 (last_glyphless_glyph_merged_face_id): Make them non-static.
2092
a8039db1
JB
2093 * w32term.c (x_draw_glyphless_glyph_string_foreground):
2094 Fix the arg with_background for font->driver->draw.
65b6b59a 2095
a8039db1 20962010-11-01 Kenichi Handa <handa@m17n.org>
0269bd90 2097
a8039db1
JB
2098 * w32gui.h (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2):
2099 Surround chp by parentheses.
0269bd90 2100
a8039db1 21012010-11-01 Kenichi Handa <handa@m17n.org>
b2cca856
KH
2102
2103 Implement various display methods for glyphless characters.
2104
2105 * xdisp.c (Qglyphless_char, Vglyphless_char_display)
2106 (Qglyphless_char_display, Qhexa_code, Qempty_box, Qthin_space)
2107 (Qzero_width): New variables.
2108 (THIN_SPACE_WIDTH): New macro.
2109 (lookup_glyphless_char_display): New funciton.
2110 (last_glyphless_glyph_frame, last_glyphless_glyph_face_id)
2111 (last_glyphless_glyph_merged_face_id): New variables.
2112 (get_next_display_element): Check glyphless characters.
2113 (redisplay_internal): Initialize last_glyphless_glyph_frame and
2114 last_glyphless_glyph_face_id.
2115 (fill_glyphless_glyph_string): New function.
2116 (BUILD_GLYPHLESS_GLYPH_STRING): New macro.
2117 (BUILD_GLYPH_STRINGS): Handle the case GLYPHLESS_GLYPH.
2118 (append_glyphless_glyph, produce_glyphless_glyph): New functions.
2119 (x_produce_glyphs): If a suitable font is not found, produce a
2120 glyphless glyph. Handle the case it->what == IT_GLYPHLESS.
2121 (syms_of_xdisp): Intern and staticpro Qglyphless_char,
2122 Qglyphless_char_display, Qhexa_code, Qempty_box, Qthin_space, and
2123 Qzero_width.
2124 (Vglyphless_char_display): Declare it as a Lisp variable.
2125
2126 * dispextern.h (enum glyph_type): Add GLYPHLESS_GLYPH.
a8039db1
JB
2127 (struct glyph): Change the size of the member "type" to 3.
2128 Add glyphless to the union slice and u.
b2cca856
KH
2129 (enum display_element_type): Add IT_GLYPHLESS.
2130 (enum glyphless_display_method): New enum.
2131 (struct it): New member glyphless_method.
2132 (Vglyphless_char_display): Extern it.
2133
2134 * xterm.c (x_draw_glyphless_glyph_string_foreground): New function.
2135 (x_draw_glyph_string): Handle the case GLYPHLESS_GLYPH.
2136
a8039db1 2137 * w32term.c (x_draw_glyphless_glyph_string_foreground): New function.
b2cca856
KH
2138 (x_draw_glyph_string): Handle the case GLYPHLESS_GLYPH.
2139
2140 * nsterm.m (ns_draw_glyph_string): Handle the case
2141 GLYPHLESS_GLYPH (the detail is not yet implemented).
2142
c8c59954
GM
21432010-10-31 Glenn Morris <rgm@gnu.org>
2144
80696982
GM
2145 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]: Fix merge, maybe.
2146
c8c59954
GM
2147 * frame.c (syms_of_frame) <tool-bar-mode>:
2148 Default to nil if !HAVE_WINDOW_SYSTEM. (Bug#7299)
2149
46eadc7a
CY
21502010-10-31 Chong Yidong <cyd@stupidchicken.com>
2151
2152 * xterm.c (x_connection_closed): Print informative error message
2153 when aborting on GTK. This requires using shut_down_emacs
2154 directly instead of Fkill_emacs.
2155
ffe75e6b
EZ
21562010-10-29 Eli Zaretskii <eliz@gnu.org>
2157
2158 * emacs.c (main): Call syms_of_filelock unconditionally.
2159
2160 * filelock.c (syms_of_filelock): Move out of #ifdef CLASH_DETECTION
2161 clause, but keep part of it conditioned on CLASH_DETECTION.
2162
9d794026
GM
21632010-10-29 Glenn Morris <rgm@gnu.org>
2164
4f4f2973
GM
2165 * nsfns.m (Fx-display-save-under, Fx-open-connection)
2166 (Fxw-color-defined-p, Fxw-display-color-p, Fx-show-tip):
2167 * w32fns.c (Fxw_color_defined_p, Fx_open_connection):
2168 * xfns.c (Fxw_color_defined_p, Fx_open_connection):
2169 Sync docs between X, W32, NS.
2170
9d794026
GM
2171 * buffer.c (syms_of_buffer) <abbrev-mode, transient-mark-mode>:
2172 * frame.c (syms_of_frame) <tool-bar-mode>: Move doc here from Lisp.
2173
d46f6bbb
JB
21742010-10-26 Juanma Barranquero <lekktu@gmail.com>
2175
2176 * eval.c (init_eval_once): Set max_lisp_eval_depth to 600;
2177 otherwise, bootstrapping on Windows fails to compile macroexp.el.
2178
2e35f1a2
EZ
21792010-10-26 Eli Zaretskii <eliz@gnu.org>
2180
2181 * cmds.c (internal_self_insert): Don't insert if argument N is
84b28888 2182 zero or negative. (Bug#7281)
2e35f1a2 2183
8daaeda6
J
21842010-10-26 Jan Djärv <jan.h.d@swipnet.se>
2185
2186 * gtkutil.c (qttip_cb): Set title to empty for ATK (Bug#7278).
2187
6a5c2175
GM
21882010-10-25 Glenn Morris <rgm@gnu.org>
2189
2190 * Makefile.in (SOME_MACHINE_LISP): Remove easymenu.elc.
2191
7c051dd8
GM
21922010-10-24 Glenn Morris <rgm@gnu.org>
2193
2194 * w32fns.c (Fx_synchronize, Fx_change_window_property)
2195 (Fx_window_property, Fx_file_dialog):
2196 * xfns.c (Fx_synchronize, Fx_change_window_property)
2197 (Fx_window_property, Fx_file_dialog): Sync docs between w32 and X.
2198
23c261f5
CY
21992010-10-24 Chong Yidong <cyd@stupidchicken.com>
2200
2201 * xterm.c (x_connection_closed): Kill Emacs unconditionally.
2202
d414c713 22032010-10-24 Eli Zaretskii <eliz@gnu.org>
89baa1df
EZ
2204
2205 * frame.c (Fframep, Fwindow_system): Deprecate use as a predicate.
2206
2207 * dispnew.c (syms_of_display) <initial-window-system, window-system>:
2208 Deprecate use as a boolean flag.
2209
947f5e01
JM
22102010-10-24 Jim Meyering <jim@meyering.net>
2211
2212 * emacs.c (argmatch): Don't treat "--" as "--chdir".
2213
65807d73
GM
22142010-10-24 Glenn Morris <rgm@gnu.org>
2215
f5f25615
GM
2216 * w16select.c (syms_of_win16select) <selection-coding-system>:
2217 <next-selection-coding-system>:
2218 * w32select.c (syms_of_w32select) <selection-coding-system>:
2219 <next-selection-coding-system>:
3646b86d
GM
2220 Sync docs with select.el.
2221
46710489
GM
2222 * xfaces.c (syms_of_xfaces) <tty-defined-color-alist>: Sync doc with
2223 Lisp version.
2224
ea883883
GM
2225 * w32term.c (syms_of_w32term) <x-use-underline-position-properties>:
2226 Sync doc with the xterm.c version.
2227
65807d73
GM
2228 * w32term.c (syms_of_w32term) <x-toolkit-scroll-bars>:
2229 * xterm.c (syms_of_xterm) <x-toolkit-scroll-bars>: Sync docs.
2230
f3d87560
GM
22312010-10-23 Glenn Morris <rgm@gnu.org>
2232
66c6abf0 2233 * buffer.c (syms_of_buffer) <cursor-in-non-selected-windows>:
e1fd756b 2234 * frame.c (syms_of_frame) <menu-bar-mode>:
6e82cf1a 2235 * xdisp.c (syms_of_xdisp) <auto-hscroll-mode, display-hourglass>:
a102db1e 2236 <hourglass-delay>: Sync docs with Lisp.
f3d87560 2237
7b7e2c18
EZ
22382010-10-23 Eli Zaretskii <eliz@gnu.org>
2239
d1d6801e 2240 Implement mouse highlight for bidi-reordered lines.
d0010be5
EZ
2241
2242 * xdisp.c (fast_find_string_pos): #ifdef away, not used anymore.
2243 (mouse_face_from_string_pos): New function, replaces
2244 fast_find_string_pos.
2245 (note_mouse_highlight): Call it instead of fast_find_string_pos.
d1d6801e
EZ
2246 (note_mode_line_or_margin_highlight): Support bidi-reordered
2247 strings and R2L glyph rows. Fix comments.
2f3f89b3
EZ
2248 (note_mouse_highlight): When bidi reordering is turned on in a
2249 buffer, call next-single-property-change and
ef1b0ba7
SM
2250 previous-single-property-change with last argument nil.
2251 Clear mouse highlight when mouse pointer is in a R2L row on the stretch
d1d6801e 2252 glyph that stands for no text beyond the line end.
1f382a02
EZ
2253 (row_containing_pos): Don't return too early when CHARPOS is in a
2254 bidi-reordered continued line. Return immediately when the first
2255 hit is found in a line that is not continued, or when an exact
2256 match for CHARPOS is found.
d1d6801e
EZ
2257 (rows_from_pos_range): New function.
2258 (mouse_face_from_buffer_pos): Use it instead of calling
2259 row_containing_pos for START_CHARPOS and END_CHARPOS. Rewrite the
2260 function to support mouse highlight in bidi-reordered lines and
2261 not to assume that START_CHARPOS is always in mouse_face_beg_row.
2262 If necessary, swap mouse_face_beg_row and mouse_face_end_row so
2263 that the former is always above the latter or identical to it.
1554d88e 2264 (show_mouse_face): Support drawing highlighted R2L lines.
1b5a721b
EZ
2265 (coords_in_mouse_face_p): New function, bidi-aware.
2266 (cursor_in_mouse_face_p, note_mouse_highlight, erase_phys_cursor):
2267 Call it instead of comparing with mouse-face members of dpyinfo.
2268 (note_mode_line_or_margin_highlight): Fix confusingly swapped
2269 usage of hpos and vpos.
544bbc31 2270
dee186b6
J
22712010-10-22 Jan Djärv <jan.h.d@swipnet.se>
2272
2273 * xrdb.c: Include keyboard.h for MOTIF.
2274
2275 * xmenu.c: Revert 2010-07-27 change: lwlib.h is needed for
2276 MOTIF (Bug#7263).
2277
2278 * xfns.c: Include Xm/TextF and Xm/List.
bba3e508
SM
2279 (file_dialog_cb, file_dialog_unmap_cb, clean_up_file_dialog):
2280 Make ANSI prototypes.
dee186b6 2281
5fb59edb
GM
22822010-10-22 Glenn Morris <rgm@gnu.org>
2283
2284 * Makefile.in (SOME_MACHINE_LISP): Add w32-vars.
2285 Remove ccl and duplicate mouse.
2286
8b78d5e3
CY
22872010-10-21 Chong Yidong <cyd@stupidchicken.com>
2288
2289 * insdel.c (prepare_to_modify_buffer): Don't set
2290 saved-region-selection if modification hooks are disabled.
2291
b8a47412
CY
22922010-10-19 Chong Yidong <cyd@stupidchicken.com>
2293
2294 * cmds.c (Fdelete_char): Doc fix.
2295
ca3fa302 22962010-10-19 Ken Brown <kbrown@cornell.edu>
5419963b
KB
2297
2298 * s/cygwin.h (SIGNALS_VIA_CHARACTERS): New define (bug#7225).
2299
ca3fa302 23002010-10-19 Kenichi Handa <handa@m17n.org>
31daa5e1
KH
2301
2302 Fix incorrect font metrics when the same font is opened with
2303 different pixelsizes.
2304
2305 * xftfont.c: Include composite.h.
2306 (xftfont_shape): New function.
2307 (syms_of_xftfont): Set xftfont_driver.shape.
2308
c978536f
JD
23092010-10-18 Julien Danjou <julien@danjou.info>
2310
2311 * frame.c (Fframe_pointer_visible_p):
2312 Add `frame-pointer-visible-p' to get the pointer visibility.
2313
4b2d9ec2
LMI
23142010-10-18 Lars Magne Ingebrigtsen <larsi@gnus.org>
2315
2316 * gnutls.c (emacs_gnutls_read): Return 0 if we get a
2317 non-"EAGAIN"-like error to signal to Emacs that the socket should
2318 be closed.
2319
9cf66cf2
EZ
23202010-10-15 Eli Zaretskii <eliz@gnu.org>
2321
c3911ead
EZ
2322 * unexcoff.c (make_hdr): Fix prototype according to changes in
2323 2010-10-03T13:59:56Z!dann@ics.uci.edu.
2324
9cf66cf2
EZ
2325 * image.c (tiff_load): Cast 3rd argument to avoid compiler warning.
2326
be98da05
TH
23272010-10-15 Tassilo Horn <tassilo@member.fsf.org>
2328
2329 * Makefile.in (really-oldXMenu): Fix typo in variable name that
2330 made building the X menu fail.
cc98b256 2331 (really-oldXMenu): Fix my previous fix.
be98da05 2332
220d91b8 23332010-10-14 Damyan Pepper <damyanp@gmail.com>
9fa82824
DP
2334
2335 Fix handling of font properties on Windows (bug#6303).
2336 * font.c (font_filter_properties): New function, refactored from
2337 ftfont_filter_properties.
2338 * font.h (font_filter_properties): Declare.
2339 * ftfont.c (ftfont_filter_properties): Use font_filter_properties.
2340 * w32font.c (w32font_booleans, w32font_non_booleans): New variables.
2341 (w32font_filter_properties): New function.
2342 (w32font_driver): Add w32font_filter_properties.
2343
220d91b8 23442010-10-14 Juanma Barranquero <lekktu@gmail.com>
51e4f4a8 2345
c0943d3d 2346 * font.c (Ffont_variation_glyphs):
51e4f4a8
JB
2347 * ccl.c (Fccl_execute_on_string): Fix typo in docstring.
2348
24f981c9
JB
23492010-10-14 Juanma Barranquero <lekktu@gmail.com>
2350
2351 * w32fns.c (w32_wnd_proc, file_dialog_callback):
2352 * w32font.c (w32_generic_family):
2353 * w32inevt.c (key_event):
2354 * w32menu.c (fill_in_menu):
2355 * w32proc.c (reader_thread, w32_executable_type, compare_env)
2356 (merge_and_sort_env, int_from_hex, enum_locale_fn, enum_codepage_fn):
2357 * w32term.c (w32_read_socket): Make static.
2358
850690cc
JB
23592010-10-13 Juanma Barranquero <lekktu@gmail.com>
2360
2361 * image.c (DEF_IMGLIB_FN): Add argument to adapt to strict
2362 prototypes; all callers changed.
2363
5e371708
JB
23642010-10-13 Juanma Barranquero <lekktu@gmail.com>
2365
2366 * makefile.w32-in (TLIB2): Rename from TLIBW32.
2367 (OBJ2): New macro.
2368 (WIN32OBJ, FONTOBJ): Remove.
2369 (OBJ1): Redistribute object files with OBJ2.
2370 (LIBS, $(TEMACS)): Use TLIB2.
2371 (make-buildobj-CMD, make-buildobj-SH): Use OBJ2.
2372 ($(TLIB2), TAGS, TAGS-LISP, TAGS-gmake): Depend on OBJ2.
2373
2e288d54
JB
23742010-10-13 Juanma Barranquero <lekktu@gmail.com>
2375
2376 * emacs.c (Vdynamic_library_alist)
2377 (syms_of_emacs) <dynamic-library-alist>: Move from image.c and rename.
2378 Doc fix.
2379
2380 * lisp.h (Vdynamic_library_alist): Declare extern.
2381
2382 * image.c (Vimage_library_alist)
2383 (syms_of_image) <image-library-alist>: Move to emacs.c and rename.
2384 (lookup_image_type): Use Vdynamic_library_alist.
2385 (Finit_image_library): Doc fix.
2386
aba1381b
DN
23872010-10-12 Dan Nicolaescu <dann@ics.uci.edu>
2388
2389 * Makefile.in (lispsource, libsrc, etc, oldxmenudir, lwlibdir)
2390 (lispdir): Remove trailing /, update all uses.
2391
4c14013d 23922010-10-12 Jan Djärv <jan.h.d@swipnet.se>
a2e35ef5
JD
2393
2394 * nsterm.m (Qleft): Declare.
2395 (ns_right_alternate_modifier): New variable
2396 (NSRightAlternateKeyMask): New define.
2397 (EV_MODIFIERS): Parse NSRightAlternateKeyMask if
2398 ns_right_alternate_modifier isn't Qleft.
2399 (keyDown): If ns_right_alternate_modifier isn't Qleft, use it
2400 as emacs modifier for NSRightAlternateKeyMask.
2401 (syms_of_nsterm): DEFVAR_LISP ns-right-alternate-modifier.
2402
355cdaf3
LMI
24032010-10-10 Lars Magne Ingebrigtsen <larsi@gnus.org>
2404
2405 * gnutls.c (emacs_gnutls_write): If we're trying to write before
2406 gnutls is ready, return EAGAIN as the errno.
2407
4c620157
DN
24082010-10-10 Dan Nicolaescu <dann@ics.uci.edu>
2409
edfd76ce
DN
2410 * vm-limit.c:
2411 * unexhp9k800.c:
2412 * unexelf.c:
2413 * unexaix.c:
2414 * termcap.c: Remove #ifdef emacs / #ifndef emacs code, unused.
2415
a4daeecf
DN
2416 * Makefile.in (temacs): Use $(ALL_CFLAGS) on the link line.
2417 (PROFILING_LDFLAGS): Remove, not needed anymore.
2418
2cb72a75 2419 * Makefile.in: Use $(...) everywhere instead of ${...}
4cf3ad30
DN
2420 (CRT_DIR): Move near potential user.
2421 (START_FILE): Move near CRT_DIR, it might use it.
2cb72a75 2422
4c620157
DN
2423 * sysdep.c (LPASS8): Remove, unused.
2424 (emacs_ospeed): Change from being a global to a local in the only
2425 user: init_baud_rate.
2426
b845653d
LMI
24272010-10-09 Lars Magne Ingebrigtsen <larsi@gnus.org>
2428
2429 * gnutls.c (syms_of_gnutls): All the bootprops are keywords.
bda6d2bd 2430 (emacs_gnutls_write): Remove the debuggin fsync call.
b845653d 2431 (emacs_gnutls_read): Return -1 if we got an error from
bda6d2bd 2432 gnutls_read. This allows us to actually read lots of data from
b845653d 2433 the GnuTLS stream.
2e6c74c5
LMI
2434 (emacs_gnutls_write): Check for GNUTLS_E_AGAIN and not EINTR.
2435 According to the documentation, this is correct, and it seems to
2436 make things work.
b845653d 2437
3625b3e2
CY
24382010-10-09 Chong Yidong <cyd@stupidchicken.com>
2439
2440 * xterm.c (x_draw_relief_rect): Clear corner pixels.
2441
8b1c619f
MA
24422010-10-08 Michael Albinus <michael.albinus@gmx.de>
2443
2444 * keyboard.c: Revert last change; it was not intended to be
2445 synchronized with the trunk.
2446
93d50df8
KH
24472010-10-08 Kenichi Handa <handa@m17n.org>
2448
2b7c9342 2449 * coding.c (complement_process_encoding_system): Fix previous change.
5886ec9c 2450
4628bef1 24512010-10-08 Michael Albinus <michael.albinus@gmx.de>
a79b0f28
MA
2452
2453 * dbusbind.c (syms_of_dbusbind): Move putenv call ...
2454 (Fdbus_init_bus): ... here. (Bug#7113)
2455
4628bef1 24562010-10-08 Glenn Morris <rgm@gnu.org>
7b2bf907
GM
2457
2458 * buffer.c (before-change-functions, after-change-functions):
2459 Three-year overdue doc fix following 2007-08-13 change.
2460
4628bef1 24612010-10-08 Kenichi Handa <handa@m17n.org>
1911a33b
KH
2462
2463 * coding.c (coding_inherit_eol_type): If parent doesn't specify
2464 eol-format, inherit from the system's default.
2465 (complement_process_encoding_system): Make a new coding system
2466 inherit the original eol-format.
2467
4628bef1 24682010-10-08 Kenichi Handa <handa@m17n.org>
fcaf8878
KH
2469
2470 * coding.c (complement_process_encoding_system): New function.
2471
2472 * coding.h (complement_process_encoding_system): Extern it.
2473
2474 * callproc.c (Fcall_process): Complement the coding system for
2475 encoding arguments.
2476 (Fcall_process_region): Complement the coding system for encoding
2477 the input to the process.
2478
2479 * process.c (Fstart_process): Complement the coding system for
2480 encoding arguments.
2481 (send_process): Complement the coding system for encoding what
2482 sent to the process.
2483
4628bef1 24842010-10-08 Kenichi Handa <handa@m17n.org>
18acb5ad
KH
2485
2486 * xfont.c (xfont_open): Fix setting of font->average_width from
2487 :avgwidth property (Bug#7123).
2488
4628bef1 24892010-10-08 Michael Albinus <michael.albinus@gmx.de>
dec83468
MA
2490
2491 * dbusbind.c (syms_of_dbusbind): Use putenv instead of setenv, it
2492 is more portable.
2493
2494 * keyboard.c (gobble_input): Move call of xd_read_queued_messages ...
2495 (kbd_buffer_get_event): ... here. This is needed for cygwin, which
2496 has not defined SIGIO.
2497
389454fb
CY
24982010-10-08 Chong Yidong <cyd@stupidchicken.com>
2499
2500 * xterm.c (x_draw_relief_rect): If box width is larger than 1,
2501 draw the outermost line using the black relief, for legibility.
2502 Omit drawing the four corner pixels.
2503
51b403bd
CY
25042010-10-04 Chong Yidong <cyd@stupidchicken.com>
2505
2506 * keyboard.c (echo_prompt): Function moved into read_key_sequence.
2507 (read_key_sequence): Inline echo_prompt.
2508 (echo_dash): Add a dash only if key is continued (Bug#7137).
2509
3e6ae1a4
DN
25102010-10-04 Dan Nicolaescu <dann@ics.uci.edu>
2511
2512 Remove O_RDONLY, O_WRONLY definitions, not needed.
2513 * unexcoff.c:
2514 * lread.c:
2515 * fileio.c:
2516 * doc.c:
2517 * callproc.c:
2518 * alloc.c:
2519 * termcap.c: Remove O_RDONLY O_WRONLY definitions.
2520
c1ae068b
LMI
25212010-10-03 Teodor Zlatanov <tzz@lifelogs.com>
2522
2523 * gnutls.h (GNUTLS_LOG2): Convenience macro.
2524
2525 * gnutls.c: Add property list symbol holders.
2526 (emacs_gnutls_handshake): Clarify how sockets are passed to
2527 GnuTLS.
2528 (gnutls_log_function2): Convenience function using GNUTLS_LOG2.
2529 (Fgnutls_boot): Get all parameters from a plist. Require trustfiles
2530 and keyfiles to be a list of file names. Default to "NORMAL" for
2531 the priority string. Improve logging.
2532
e2afe435
GM
25332010-10-03 Glenn Morris <rgm@gnu.org>
2534
2535 * fileio.c (Vdirectory_sep_char): Remove.
2536
dd5ecd6b
DN
25372010-10-03 Dan Nicolaescu <dann@ics.uci.edu>
2538
b5437a05
DN
2539 * termhooks.h: Remove #ifdef CONSP.
2540
4777478a
DN
2541 * xterm.c (NO_INLINE, noinline): Move definitions to ../configure.in.
2542
a3d5088d
DN
2543 Include <fcntl.h> unconditionally.
2544 * termcap.c:
2545 * sysdep.c:
2546 * lread.c:
2547 * keyboard.c:
2548 * filelock.c:
2549 * fileio.c:
2550 * doc.c:
2551 * callproc.c:
2552 * alloc.c: Remove include guards for <fcntl.h>, process.c already
2553 does it.
2554
82719735
DN
2555 * process.c: Do not include <sys/wait.h>, syswait.h does it.
2556
9de940b5
DN
2557 * sysdep.c (flush_pending_output): Remove code, does not do
2558 anything on any platform.
2559
57507bf8 2560 Remove unused code.
bba3e508
SM
2561 * sysdep.c (select_alarm, sys_select, read_input_waiting):
2562 Remove select emulation, all systems support select.
57507bf8
DN
2563 (set_exclusive_use): Remove, the only user is in an #if 0 block.
2564 * process.c (create_process): Remove #if 0 code.
2565
dd5ecd6b
DN
2566 Remove unused arguments for unexec.
2567 The third one is never used, and the last two are always passed as zero.
2568 * emacs.c (unexec): Add declaration.
2569 (Fdump_emacs): Only pass the first two arguments to unexec.
2570 Simplify #ifdef.
2571 * unexw32.c (unexec):
2572 * unexsol.c (unexec):
2573 * unexhp9k800.c (unexec):
2574 * unexcw.c (unexec): Remove the last 3 arguments, unused.
2575 * unexelf.c (unexec): Remove the last 3 arguments, unused.
2576 (find_section): Use const.
2577 * unexmacosx.c (unexec): Remove the last 3 arguments, unused.
2578 (unexec_error): Declare it NO_RETURN.
2579 * unexcoff.c (make_hdr): Assume bss_start is always zero, remove
2580 it as an argument, remove data_start and entry_address arguments, unused.
2581 (unexec): Remove bss_start, data_start and
2582 entry_address arguments.
2583 * unexaix.c (make_hdr): Assume bss_start is always zero, remove
2584 it as an argument, remove data_start and entry_address arguments, unused.
2585 (unexec): Remove bss_start, data_start and
2586 entry_address arguments.
2587
74f1829d
JB
25882010-10-03 Juanma Barranquero <lekktu@gmail.com>
2589
7f467e14
JB
2590 * makefile.w32-in (TAGS, TAGS-LISP, TAGS-gmake): Add $(FONTOBJ).
2591
74f1829d
JB
2592 * gnutls.c (emacs_gnutls_handshake, gnutls_make_error)
2593 (gnutls_emacs_global_init, gnutls_emacs_global_deinit): Make static.
2594 (Fgnutls_get_initstage, Fgnutls_deinit, Fgnutls_boot, Fgnutls_bye):
2595 Fix typos in docstrings.
2596 (Fgnutls_error_fatalp, Fgnutls_error_string): Doc fixes.
2597 (Fgnutls_errorp): Doc fix; use ERR for the argument name.
2598
6926550f
CY
25992010-10-03 Chong Yidong <cyd@stupidchicken.com>
2600
2601 * keyboard.c (command_loop_1): Make sure the mark is really alive
2602 before using it (Bug#7044).
2603
54b65f7b
JB
26042010-10-02 Juanma Barranquero <lekktu@gmail.com>
2605
2606 * makefile.w32-in (tags): Rename target to full-tags.
2607
383ebd15
EZ
26082010-10-02 Eli Zaretskii <eliz@gnu.org>
2609
2610 * emacs.c (main): Remove !WINDOWSNT conditional.
2611 (Fkill_emacs): Don't mention exemption on MS-Windows.
2612
9c524fcb
GM
26132010-10-02 Glenn Morris <rgm@gnu.org>
2614
3226d6ca
GM
2615 * character.c (Fchar_bytes): Remove obsolete function.
2616 (syms_of_character): Remove Schar_bytes.
2617
9c524fcb
GM
2618 * emacs.c (fatal_error_signal): Also run Fkill_emacs on SIGINT.
2619 (main) [!WINDOWSNT]: Handle SIGINT with fatal_error_signal
2620 in batch-mode.
2621 (Fkill_emacs): Doc fix. Also run the hook in batch mode.
2622 (kill-emacs-hook): Doc fix.
2623
1b217849
LMI
26242010-10-02 Lars Magne Ingebrigtsen <larsi@gnus.org>
2625
2626 * xml.c (Flibxml_parse_xml_region, Flibxml_parse_html_region)
bba3e508 2627 (parse_region): Rework to take regions instead of strings, and
1b217849
LMI
2628 renamed to reflect that these are the libxml functions.
2629
54cc6a83
EZ
26302010-10-01 Eli Zaretskii <eliz@gnu.org>
2631
0ebf79de
EZ
2632 * term.c (init_tty) [DOS_NT]: Don't call Wcm_clear after setting
2633 screen dimensions in tty->Wcm.
2634
54cc6a83
EZ
2635 * xdisp.c (set_cursor_from_row): When the row is truncated and
2636 point is outside the range of displayed characters, position the
2637 cursor inside the scroll margin. (Bug#6349)
2638
321401d1
DN
26392010-10-01 Dan Nicolaescu <dann@ics.uci.edu>
2640
4cacd822
DN
2641 Do not include stdlib.h and string.h, config.h does it.
2642 * xfont.c:
2643 * w32term.c:
2644 * w32reg.c:
2645 * w32inevt.c:
2646 * w32heap.c:
2647 * w32console.c:
2648 * w16select.c:
2649 * unexsol.c:
2650 * term.c:
2651 * sound.c:
2652 * scroll.c (m):
2653 * gtkutil.c:
2654 * font.c:
2655 * filelock.c:
2656 * fileio.c:
2657 * dosfns.c:
2658 * dbusbind.c:
2659 * bidi.c:
2660 * callproc.c:
2661 * process.c:
2662 * msdos.c:
2663 * charset.c: Do not include stdlib.h and string.h, config.h does it.
2664
bba3e508
SM
2665 * callproc.c (SIGCHLD): Remove conditional definition, syssignal.h
2666 defines it.
0781e7ab 2667
9bf58201
DN
2668 * process.c: Move #include <pty.h> earlier.
2669 (SIGCHLD): Remove conditional definition, syssignal.h defines it.
2670 (pty_name): Move definition later.
2671
088dcc3e
DN
2672 * nsselect.m (syms_of_nsselect):
2673 * nsmenu.m (syms_of_nsmenu):
2674 * nsfns.m (syms_of_nsfns):
2675 * msdos.c (syms_of_msdos):
4cacd822 2676
088dcc3e
DN
2677 * image.c (syms_of_image):
2678 * charset.c (syms_of_charset): Use intern_c_string instead of intern.
2679
321401d1
DN
2680 * point.h: Remove, unused.
2681
73077a9a
EZ
26822010-10-01 Eli Zaretskii <eliz@gnu.org>
2683
2684 * makefile.w32-in (TAGS, frc, TAGS-LISP, ../nt/TAGS, tags)
2685 (TAGS-gmake, TAGS-nmake, TAGS-LISP-gmake, TAGS-LISP-nmake)
2686 (nt-TAGS-gmake, nt-TAGS-nmake): New targets.
2687
55e572ef
DN
26882010-09-30 Dan Nicolaescu <dann@ics.uci.edu>
2689
2690 * xml.c (parse_string): Use const.
2691
d4b6d95d
LMI
26922010-09-30 Lars Magne Ingebrigtsen <larsi@gnus.org>
2693
ef1b0ba7
SM
2694 * eval.c (Fbacktrace): Don't overwrite print-level on exit.
2695 Also only override Vprint_level if it isn't already bound, and increase
d4b6d95d
LMI
2696 the level to 8 to produce more useful backtraces for bug reports.
2697
e4b6db12
DN
26982010-09-30 Dan Nicolaescu <dann@ics.uci.edu>
2699
2700 * Makefile.in: ecrt0.c does not exist anymore, do not mention it.
2701
1becef93
JB
27022010-09-30 Juanma Barranquero <lekktu@gmail.com>
2703
2704 * w32console.c (vga_stdcolor_name): Remove unused function;
2705 presumed dead after 2007-11-30T13:57:21Z!jasonr@gnu.org.
2706
df7fcaff
LMI
27072010-09-29 Lars Magne Ingebrigtsen <larsi@gnus.org>
2708
bac5cef8
LMI
2709 * gnutls.c (emacs_gnutls_handshake): Made into internal function.
2710 (Fgnutls_boot): Start the handshake.
2711 (emacs_gnutls_read): Perform the handshake from the reader loop.
e6059fa2
LMI
2712 (Fgnutls_boot): Remove some debugging messages.
2713 Change indentation throughout to use the Emacs style.
2714 (emacs_gnutls_handshake): Cast the fds to something that's
2715 possibly the expected length.
2716 (emacs_gnutls_write): Return -1 if we try to write before handshake.
bac5cef8 2717
df7fcaff
LMI
2718 * process.h (Lisp_Process): Add a gnutls_p field to Lisp_Process.
2719
2720 * process.c (make_process): Set the gnutls_p field to zero by
2721 default.
2722 (read_process_output): Always call the gnutls_read function if the
2723 stream is a gnutls stream.
2724 (send_process): Ditto for writes.
2725
2726 * gnutls.c (emacs_gnutls_write, emacs_gnutls_read): Refuse to read
2727 or write anything until the state is GNUTLS_STAGE_READY.
2728 (Fgnutls_boot): Mark the stream as being a gnutls stream.
2729
d585695f
EZ
27302010-09-29 Eli Zaretskii <eliz@gnu.org>
2731
af7ef32d
EZ
2732 * xdisp.c (reseat_1): Initialize bidi_it.paragraph_dir to
2733 NEUTRAL_DIR.
2734 (handle_invisible_prop, iterate_out_of_display_property)
2735 (next_element_from_buffer): If bidi_it.first_elt is set, call
2736 bidi_paragraph_init with NO_DEFAULT_P argument non-zero.
2737 (Bug#7128)
2738
d585695f
EZ
2739 * print.c (print_object): Fix format string and argument types for
2740 printing a Lisp_Misc_Marker.
2741
2742 * xdisp.c (pos_visible_p, c_string_pos, number_of_chars)
2743 (load_overlay_strings, get_overlay_strings_1)
2744 (get_overlay_strings, forward_to_next_line_start)
2745 (back_to_previous_visible_line_start, reseat, reseat_to_string)
2746 (get_next_display_element, next_element_from_string)
2747 (next_element_from_c_string, next_element_from_buffer)
2748 (move_it_vertically_backward, move_it_by_lines, add_to_log)
2749 (message_dolog, message_log_check_duplicate, message2_nolog)
2750 (message3, message3_nolog, vmessage, set_message, set_message_1)
2751 (hscroll_window_tree, text_outside_line_unchanged_p)
2752 (set_cursor_from_row, set_vertical_scroll_bar, redisplay_window)
2753 (find_last_unchanged_at_beg_row)
2754 (find_first_unchanged_at_end_row, row_containing_pos)
2755 (trailing_whitespace_p, display_mode_element, decode_mode_spec)
bba3e508
SM
2756 (display_count_lines, x_produce_glyphs, note_mouse_highlight):
2757 Use EMACS_INT for buffer and string positions.
d585695f
EZ
2758
2759 * dispextern.h (struct it) <string_nchars>: Declare EMACS_INT.
2760 (row_containing_pos): Adjust prototype.
2761
2762 * lisp.h (pos_visible_p, message2, message2_nolog, message3)
2763 (message2_nolog, set_message): Adjust prototypes.
2764
a6f3211f
SM
27652010-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
2766
2767 * gnutls.c (Fgnutls_boot): Remove unused vars `data' and `srp_cred'.
2768 (Fgnutls_boot): Use SDATA.
2769 (Fgnutls_handshake): Remove unused var `max_log_level'.
2770
e0720500
MA
27712010-09-27 Michael Albinus <michael.albinus@gmx.de>
2772
11a5af7c 2773 * dbusbind.c (syms_of_dbusbind): Set $DBUS_FATAL_WARNINGS to "0".
e0720500
MA
2774 (Bug#7113)
2775
d8a4b27a
J
27762010-09-27 Jan Djärv <jan.h.d@swipnet.se>
2777
42d3022b
J
2778 * xgselect.c (xg_select): Clear file descriptors not set from
2779 rfds and wfds.
2780
d8a4b27a
J
2781 * process.c (wait_reading_process_output): Add missing FD_CLR
2782 for write_mask (must mirror connect_wait_mask).
2783
8ed70bf3
LMI
27842010-09-27 Teodor Zlatanov <tzz@lifelogs.com>
2785
2786 * gnutls.c (gnutls_log_function): Show level and "gnutls.c"
2787 prefix.
2788 (Fgnutls_boot): Use changed process members. Use log level with a
2789 function parameter to set it. Bring back Emacs-level debugging
2790 messages at log level 1 and 2.
2791
2792 * process.c (make_process): Initialize gnutls_log_level.
2793
2794 * process.h: Add gnutls_log_level and rename x509_cred and
2795 anon_cred to have the gnutls_ prefix for consistency.
2796
2797 * gnutls.h (GNUTLS_LOG): Add convenience macro.
2798
bedf4aab
JB
27992010-09-27 Juanma Barranquero <lekktu@gmail.com>
2800
2801 * w32.c (g_b_init_get_sid_identifier_authority)
2802 (GetSidIdentifierAuthority_Proc, get_sid_identifier_authority):
2803 Remove, not used.
2804 (globals_of_w32): Don't set g_b_init_get_sid_identifier_authority.
2805 (init_winsock): Remove useless assignment.
2806 (open_process_token, get_token_information, lookup_account_sid)
2807 (get_sid_sub_authority, get_sid_sub_authority_count, get_file_security)
2808 (get_security_descriptor_owner, get_security_descriptor_group)
2809 (is_valid_sid, equal_sid, get_length_sid, copy_sid)
2810 (get_native_system_info, get_system_times, init_user_info, crlf_to_lf)
2811 (is_unc_volume, GetCachedVolumeInformation, get_volume_info)
2812 (is_fat_volume, open_unc_volume, read_unc_volume, close_unc_volume)
2813 (unc_volume_file_attributes, convert_from_time_t)
2814 (create_toolhelp32_snapshot, process32_first, process32_next)
2815 (open_thread_token, impersonate_self, revert_to_self)
2816 (get_process_memory_info, get_process_working_set_size)
2817 (global_memory_status, global_memory_status_ex, socket_to_fd)
2818 (shutdown_handler): Make static.
2819
08609ffd
MA
28202010-09-27 Michael Albinus <michael.albinus@gmx.de>
2821
2822 * dbusbind.c (dbus_fd_cb, xd_get_dispatch_status)
2823 (xd_pending_messages): Functions removed.
2824 (xd_read_queued_messages): Add parameters fd, *data, for_read in
2825 order to be compatible with add_read_fd. Determine bus from data,
2826 and call xd_read_message just for this bus.
2827 (xd_add_watch): Use xd_read_queued_messages as callback function.
2828 Add data.
2829
2830 * lisp.h (xd_pending_messages, xd_read_queued_messages): Remove.
2831
d2e9d0bb
LMI
28322010-09-27 Lars Magne Ingebrigtsen <larsi@gnus.org>
2833
ef1b0ba7 2834 * gnutls.c (gnutls_log_function): Add more debugging.
ec9f09be 2835 (emacs_gnutls_read): Don't infloop while reading.
d2e9d0bb 2836
4be9765d
KH
28372010-09-27 Kenichi Handa <handa@m17n.org>
2838
2839 These changes are to remove restriction on the number of glyphs in
2840 one composition.
2841
2842 * dispextern.h (struct glyph): Change the member "slice" to union.
2843 Remove u.cmp.from and u.cmp.to. Give more bits to u.cmp.id.
bba3e508 2844 (GLYPH_SLICE_EQUAL_P): Adjust for the above change.
4be9765d
KH
2845
2846 * dispnew.c (buffer_posn_from_coords): Use glyph->slice.img
2847 instead of glyph->slice.
2848 (marginal_area_string): Likewise.
2849
2850 * term.c (encode_terminal_code): Use glyph->slice.cmp instead of
2851 glyph->u.cmp.
2852 (append_composite_glyph): Likewise.
2853
2854 * xdisp.c (dump_glyph): Use glyph->slice.cmp instead of
2855 glyph->u.cmp.
2856 (fill_gstring_glyph_string, x_get_glyph_overhangs)
2857 (append_composite_glyph): Likewise.
2858 (fill_image_glyph_string): Use glyph->slice.img instead of
2859 glyph->slice.
2860 (append_glyph, produce_image_glyph, append_stretch_glyph)
2861 (note_mouse_highlight): Likewise.
2862
3fad2ad2
J
28632010-09-26 Jan Djärv <jan.h.d@swipnet.se>
2864
bf05eed6
J
2865 * process.c (add_keyboard_wait_descriptor)
2866 (delete_keyboard_wait_descriptor): Reinstate ifdef subprocesses.
82d6e50b
J
2867 (wait_reading_process_output): Don't pass write_mask to select
2868 if SELECT_CANT_DO_WRITE_MASK is defined.
2869 (SELECT_CANT_DO_WRITE_MASK): Define if SELECT_CANT_DO_WRITE_MASK.
bf05eed6 2870
3fad2ad2
J
2871 * process.h (add_read_fd, delete_read_fd, add_write_fd)
2872 (delete_write_fd): Declare.
2873
2874 * process.c (gpm_wait_mask, max_gpm_desc): Remove.
2875 (write_mask): New variable.
ef1b0ba7 2876 (max_input_desc): Rename from max_keyboard_desc.
3fad2ad2 2877 (fd_callback_info): New variable.
70e31436
JB
2878 (add_read_fd, delete_read_fd, add_write_fd, delete_write_fd):
2879 New functions.
3fad2ad2
J
2880 (Fmake_network_process): FD_SET write_mask.
2881 (deactivate_process): FD_CLR write_mask.
2882 (wait_reading_process_output): Connecting renamed to Writeok.
70e31436
JB
2883 check_connect removed. check_write is new. Remove references to gpm.
2884 Use Writeok/check_write unconditionally (i.e. no #ifdef
3fad2ad2
J
2885 NON_BLOCKING_CONNECT) instead of Connecting.
2886 Loop over file descriptors and call callbacks in fd_callback_info
2887 if file descriptor is ready for I/O.
2888 (add_gpm_wait_descriptor): Just call add_keyboard_wait_descriptor.
2889 (delete_gpm_wait_descriptor): Just call delete_keyboard_wait_descriptor.
2890 (keyboard_bit_set): Use max_input_desc.
70e31436
JB
2891 (add_keyboard_wait_descriptor, delete_keyboard_wait_descriptor):
2892 Remove #ifdef subprocesses. Use max_input_desc.
3fad2ad2
J
2893 (init_process): Initialize write_mask and fd_callback_info.
2894
2895 * keyboard.c (readable_events, gobble_input): Remove DBUS code.
2896
2897 * dbusbind.c: Include process.h.
2898 (dbus_fd_cb, xd_find_watch_fd, xd_toggle_watch)
2899 (xd_read_message_1): New functions.
70e31436
JB
2900 (xd_add_watch, xd_remove_watch): Call xd_find_watch_fd.
2901 Handle watch for both read and write.
3fad2ad2
J
2902 (Fdbus_init_bus): Also register xd_toggle_watch.
2903 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
2904 (Fdbus_method_error_internal, Fdbus_send_signal): Remove call
2905 to dbus_connection_flush.
70e31436 2906 (xd_read_message): Move most of the code to xd_read_message_1.
3fad2ad2
J
2907 Call xd_read_message_1 until status is COMPLETE.
2908
dce4c2ac
DN
29092010-09-26 Dan Nicolaescu <dann@ics.uci.edu>
2910
2911 * term.c: Do not include sys/ioctl.h, not needed.
70e31436
JB
2912 (init_tty): Reorder code to reduce the number of #ifdefs.
2913 No code changes.
dce4c2ac 2914
8af55556
TZ
29152010-09-26 Teodor Zlatanov <tzz@lifelogs.com>
2916
2917 * process.h: Set up GnuTLS support.
2918
2919 * process.c (make_process, Fstart_process)
2920 (read_process_output, send_process): Set up GnuTLS support for
2921 process input/output file descriptors.
2922
2923 * gnutls.h: The GnuTLS glue for Emacs, macros and enums.
2924
2925 * gnutls.c: The source code for GnuTLS support in Emacs.
2926
2927 * emacs.c: Set up GnuTLS support and call syms_of_gnutls.
2928
2929 * config.in: Set up GnuTLS support.
2930
2931 * Makefile.in (LIBGNUTLS_LIBS, LIBGNUTLS_CFLAGS, ALL_CFLAGS)
2932 (obj, LIBES): Set up GnuTLS support.
2933
83e245c4
JB
29342010-09-26 Juanma Barranquero <lekktu@gmail.com>
2935
2936 * w32.c (get_emacs_configuration_options): Fix previous change.
2937
d24ec09a
CY
29382010-09-25 Chong Yidong <cyd@stupidchicken.com>
2939
2940 * insdel.c (prepare_to_modify_buffer): Ensure the mark marker is
2941 alive before using it (Bug#6977).
2942
b7bdc47c
LMI
29432010-09-25 Lars Magne Ingebrigtsen <larsi@gnus.org>
2944
a952d5f3
LMI
2945 * xdisp.c (face_before_or_after_it_pos): EMACS_INT/int fixup.
2946
2947 * dispextern.h: EMACS_INT/int fixup.
2948
2949 * xdisp.c (string_pos_nchars_ahead, init_iterator): EMACS_INT/int
2950 fixup.
2951
b7bdc47c
LMI
2952 * xrdb.c (magic_file_p): EMACS_INT/int fixup.
2953
41118bd3
EZ
29542010-09-25 Eli Zaretskii <eliz@gnu.org>
2955
2452438f
EZ
2956 * window.c (Fpos_visible_in_window_p, Fdelete_other_windows)
2957 (Fselect_window, window_scroll_pixel_based)
2958 (window_scroll_line_based, Frecenter, Fset_window_configuration):
2959 Use EMACS_INT for buffer positions.
2960
2961 * textprop.c (validate_interval_range, interval_of)
2962 (property_change_between_p, Fadd_text_properties)
2963 (set_text_properties_1, Fremove_text_properties)
2964 (Fremove_list_of_text_properties, Ftext_property_any)
2965 (Ftext_property_not_all, copy_text_properties)
2966 (text_property_list, extend_property_ranges)
2967 (verify_interval_modification): Use EMACS_INT for buffer
2968 positions.
2969
f877c546
EZ
2970 * term.c (fast_find_position, term_mouse_highlight): Use EMACS_INT
2971 for buffer positions.
2972
2973 * process.c (read_process_output, send_process)
2974 (Fprocess_send_region, status_notify): Use EMACS_INT for buffer
2975 and string positions and size.
2976
da43f021
EZ
2977 * print.c (print_object, print_string, strout): Use EMACS_INT for
2978 string indices.
2979
2980 * minibuf.c (string_to_object): Use EMACS_INT for string position
2981 and size.
2982
2983 * marker.c (verify_bytepos): Use EMACS_INT for buffer positions.
2984
2985 * lread.c <read_from_string_index, read_from_string_index_byte>
2986 <read_from_string_limit, readchar_count>: Define EMACS_INT.
2987 (readchar, unreadchar, read_internal_start): Use EMACS_INT for
2988 buffer positions and string length.
2989
41118bd3
EZ
2990 * keyboard.c <last_point_position, last_non_minibuf_size>: Declare
2991 EMACS_INT.
2992 (echo_truncate, adjust_point_for_property, read_char)
2993 (gen_help_event, make_lispy_event, modify_event_symbol)
2994 (Fexecute_extended_command, stuff_buffered_input): Use EMACS_INT
2995 for buffer positions and string length.
2996
2997 * keyboard.h (gen_help_event): Adjust prototype.
2998
2999 * termhooks.h <struct input_event>: Make `code' member EMACS_INT.
3000
3001 * commands.h <last_point_position>: Declare EMACS_INT.
3002
3003 * xdisp.c <help_echo_pos>: Define as EMACS_INT.
3004 (truncate_echo_area): Accept EMACS_INT argument.
3005
3006 * dispextern.h <help_echo_pos>: Declare EMACS_INT.
3007
3008 * lisp.h (truncate_echo_area): Adjust prototype.
3009
3010 * composite.c (composition_adjust_point): Return EMACS_INT.
3011
3012 * composite.h (composition_adjust_point): Adjust prototype.
3013
ba3033ee
JB
30142010-09-25 Juanma Barranquero <lekktu@gmail.com>
3015
3016 * process.c (Fmake_network_process): When arg :host is 'local,
3017 use address 127.0.0.1, not name "localhost". (Bug#6781)
3018
4f3a2f8d
EZ
30192010-09-24 Eli Zaretskii <eliz@gnu.org>
3020
5816888b
EZ
3021 * indent.c (Fcurrent_indentation, indented_beyond_p)
3022 (compute_motion): Use EMACS_INT for buffer position variables.
3023
3024 * lisp.h (indented_beyond_p): Adjust prototype.
3025
3026 * buffer.c (overlay_strings): Return EMACS_INT.
3027
3028 * buffer.h (overlay_strings): Adjust prototype.
3029
3030 * region-cache.c (pp_cache): Adjust format to arguments.
3031
3032 * eval.c <specpdl_size, lisp_eval_depth>: Declare EMACS_INT.
3033 (call_debugger): Use EMACS_INT for specpdl_size related variables.
3034 (verror): Use EMACS_INT for size of allocated buffer.
3035
ace1712c
EZ
3036 * keyboard.c (make_lispy_position): Use EMACS_INT for buffer
3037 positions.
3038
3039 * xdisp.c (redisplay_internal, try_window_id)
bba3e508
SM
3040 (set_cursor_from_row, find_first_unchanged_at_end_row):
3041 Use EMACS_INT for buffer positions.
ace1712c 3042
f5276b75 3043 * dispextern.h (set_cursor_from_row): Adjust prototype.
ace1712c
EZ
3044
3045 * dispnew.c (increment_matrix_positions)
3046 (increment_row_positions, copy_glyph_row_contents)
3047 (mode_line_string, marginal_area_string): Use EMACS_INT for buffer
3048 positions.
3049
3050 * dispextern.h (mode_line_string, marginal_area_string)
bba3e508
SM
3051 (increment_matrix_positions, increment_row_positions):
3052 Adjust prototypes.
ace1712c
EZ
3053
3054 * data.c (Faref, Faset): Use EMACS_INT for string length and
3055 positions.
3056
3057 * cmds.c (internal_self_insert): Use EMACS_INT for the count of
3058 characters to insert.
3059
3060 * ccl.c (Fccl_execute_on_string): Use EMACS_INT for string
3061 position and size.
3062
4f3a2f8d
EZ
3063 * syntax.c (scan_words, update_syntax_table)
3064 (prev_char_comend_first, back_comment, skip_chars)
bba3e508
SM
3065 (skip_syntaxes, Fforward_comment, Fbackward_prefix_chars):
3066 Use EMACS_INT for buffer and string positions.
4f3a2f8d
EZ
3067
3068 * syntax.h (scan_words, update_syntax_table): Adjust prototypes.
3069
3070 * casefiddle.c (operate_on_word): Use EMACS_INT for buffer
3071 positions.
3072
db063399
LMI
30732010-09-24 Lars Magne Ingebrigtsen <larsi@gnus.org>
3074
f0812d35
LMI
3075 * scroll.c (calculate_scrolling, line_ins_del)
3076 (calculate_direct_scrolling, scroll_cost): Fix EMACS_INT/int
3077 conversion.
3078
f5c7fc27
LMI
3079 * region-cache.c (move_cache_gap, set_cache_region, pp_cache)
3080 (region_cache_backward, region_cache_forward)
3081 (revalidate_region_cache, set_cache_region): FIX EMACS_INT/int
3082 conversion.
3083
db063399
LMI
3084 * xdisp.c (message_dolog): Fix EMACS_INT/int conversion.
3085
3086 * eval.c (verror): Fix EMACS_INT/int conversion.
3087
07914cd0 3088 * print.c (PRINTDECLARE, PRINTPREPARE, strout, print_string)
db063399
LMI
3089 (print_preprocess, print_check_string_charset_prop)
3090 (print_object): Fix EMACS_INT/int conversion.
3091
3092 * xdisp.c (message_dolog): Fix EMACS_INT/int conversion.
3093
e6d4aefa
EZ
30942010-09-24 Eli Zaretskii <eliz@gnu.org>
3095
69481da7
EZ
3096 * callproc.c (Fcall_process): Use EMACS_INT for count of
3097 characters read from the subprocess.
3098
61bfec98
EZ
3099 * bidi.c (struct bidi_paragraph_info): Use EMACS_INT for buffer
3100 positions.
3101 (bidi_cache_search, bidi_cache_find): Use EMACS_INT for buffer
3102 positions.
3103
145582a0
EZ
3104 * buffer.c (struct sortvec): Use EMACS_INT for buffer positions.
3105 (struct sortstrlist, overlay_str_len): Use EMACS_INT for string
3106 length.
3107 (advance_to_char_boundary, Fset_buffer_multibyte)
3108 (overlays_at, overlays_in, mouse_face_overlay_overlaps)
3109 (overlay_touches_p, record_overlay_string, overlay_strings)
3110 (recenter_overlay_lists, fix_start_end_in_overlays)
3111 (modify_overlay, Fmove_overlay, report_overlay_modification)
3112 (evaporate_overlays): Use EMACS_INT for buffer positions.
3113
bba3e508
SM
3114 * lisp.h (fix_start_end_in_overlays, overlay_touches_p):
3115 Adjust prototypes.
145582a0 3116
446470a9
EZ
3117 * dispextern.h (struct bidi_saved_info): Use EMACS_INT for buffer
3118 positions.
3119
e6d4aefa
EZ
3120 * fns.c (Fcompare_strings, Fstring_lessp, concat)
3121 (string_make_unibyte, Fstring_as_unibyte, Fsubstring)
3122 (Fsubstring_no_properties, substring_both, Ffillarray)
3123 (Fclear_string, mapcar1, Fmapconcat, Fmapcar, Fmapc)
3124 (Fbase64_encode_region, Fbase64_encode_string, base64_encode_1)
3125 (Fbase64_decode_region, Fbase64_decode_string, base64_decode_1)
3126 (Fmd5): Use EMACS_INT for buffer and string positions and length
3127 variables and arguments.
3128
3129 * lisp.h (substring_both): Adjust prototype.
3130
eb652396
JB
31312010-09-24 Juanma Barranquero <lekktu@gmail.com>
3132
3133 Remove W32 API function pointer unused since 2005-02-15 (revno 2005-02-15T23:19:26Z!jasonr@gnu.org).
3134 * w32fns.c (clipboard_sequence_fn): Don't declare.
3135 (globals_of_w32fns): Don't initialize it.
3136
266a86bd 31372010-09-23 Stefan Monnier <monnier@iro.umontreal.ca>
fbb3da77
SM
3138
3139 * syntax.c (back_comment): Detect the case where a 1-char comment
3140 starter is also the 2nd char of a 2-char comment ender.
3141
266a86bd 31422010-09-23 Jan Djärv <jan.h.d@swipnet.se>
2b5b82db
J
3143
3144 * gtkutil.c (xg_tool_bar_menu_proxy): Set gtk-menu-items to TRUE.
3145
40283062
LMI
31462010-09-23 Lars Magne Ingebrigtsen <larsi@gnus.org>
3147
db063399
LMI
3148 * eval.c (verror): EMACS_INT/int cleanup.
3149
faf8b5bc
LMI
3150 * lisp.h (SPECPDL_INDEX): Cast to int, since we're not going to
3151 unwind_protect more than 2GB worth of functions.
3152
3153 * editfns.c (Finsert_char): EMACS_INT/int cleanup.
3154
40283062
LMI
3155 * lisp.h: Have oblookup take EMACS_INT to allow interning big
3156 string and avoid compiler warnings.
3157 (USE_SAFE_ALLOCA): Cast to int to avoid compilation warnings in
3158 all users.
3159
3160 * lread.c (oblookup): EMACS_INT/int cleanup.
3161
3162 * cmds.c (Fforward_line, Fdelete_char): EMACS_INT/int cleanup.
3163
fe3537c3
EZ
31642010-09-23 Eli Zaretskii <eliz@gnu.org>
3165
3166 * editfns.c (clip_to_bounds): Return an EMACS_INT value.
3167
3168 * lisp.h (clip_to_bounds): Adjust prototype.
3169
3170 * intervals.c (adjust_for_invis_intang): Return EMACS_INT value.
3171
0350982f
LMI
31722010-09-23 Lars Magne Ingebrigtsen <larsi@gnus.org>
3173
84c9ce05
LMI
3174 * lisp.h: doprnt.c EMACS_INT/int cleanup.
3175
3176 * doprnt.c (doprnt): EMACS_INT/int cleanup.
3177
3178 * doc.c (Fsnarf_documentation, get_doc_string): EMACS_INT/int
3179 cleanup.
3180
0350982f
LMI
3181 * lisp.h: Change the definition of all marker.c functions that
3182 take and return buffer stuff to be EMACS_INT instead of int.
3183
3184 * marker.c (buf_charpos_to_bytepos, CONSIDER, set_marker_both)
3185 (buf_charpos_to_bytepos, bytepos_to_charpos)
3186 (buf_bytepos_to_charpos, Fbuffer_has_markers_at)
3187 (set_marker_restricted, set_marker_both): Convert int to EMACS_INT
3188 for all buffer positions.
3189
c50bd0d2
CY
31902010-09-23 Chong Yidong <cyd@stupidchicken.com>
3191
3192 * intervals.c (traverse_intervals, rotate_right, rotate_left)
3193 (split_interval_right, find_interval, next_interval)
3194 (delete_node, delete_interval, interval_deletion_adjustment)
3195 (adjust_intervals_for_deletion, merge_interval_right)
3196 (merge_interval_left, graft_intervals_into_buffer)
3197 (copy_intervals): Convert EMACS_UINTs to EMACS_INT.
3198
3199 * intervals.h (traverse_intervals): Update prototype.
3200
14162469
EZ
32012010-09-23 Eli Zaretskii <eliz@gnu.org>
3202
c098fdb8
EZ
3203 * indent.c (compute_motion): Use EMACS_INT for arguments to
3204 region_cache_forward.
3205
bba3e508
SM
3206 * region-cache.c (struct boundary, struct region_cache):
3207 Use EMACS_INT for positions.
c098fdb8
EZ
3208 (find_cache_boundary, move_cache_gap, insert_cache_boundary)
3209 (delete_cache_boundaries, set_cache_region)
3210 (invalidate_region_cache, know_region_cache)
bba3e508
SM
3211 (region_cache_forward, region_cache_backward, pp_cache):
3212 Use EMACS_INT for buffer positions.
c098fdb8
EZ
3213
3214 * region-cache.h (know_region_cache, invalidate_region_cache)
3215 (region_cache_forward, region_cache_backward): Adjust prototypes.
3216
3217 * search.c (string_match_1, fast_c_string_match_ignore_case)
3218 (looking_at_1, scan_buffer, scan_newline)
3219 (find_next_newline_no_quit, find_before_next_newline)
3220 (search_command, trivial_regexp_p, search_buffer, simple_search)
3221 (boyer_moore, wordify, Freplace_match): Use EMACS_INT for buffer
3222 and string positions and length.
3223
caefdbe7
EZ
3224 * lisp.h (scan_buffer, scan_newline, find_next_newline_no_quit)
3225 (find_before_next_newline): Adjust prototypes.
c098fdb8 3226
29cdc13e
EZ
3227 * editfns.c (transpose_markers, update_buffer_properties)
3228 (buildmark, clip_to_bounds, Fgoto_char, overlays_around)
3229 (get_pos_property, Fconstrain_to_field)
3230 (Fline_beginning_position, Fline_end_position, Fprevious_char)
3231 (Fchar_after, Fchar_before, Finsert_char)
3232 (Finsert_buffer_substring, Fcompare_buffer_substrings)
bba3e508
SM
3233 (Fsubst_char_in_region, Fformat, Ftranspose_regions):
3234 Use EMACS_INT for buffer and string position variables.
c098fdb8 3235 (Finsert_char): Protect against too large insertions.
29cdc13e
EZ
3236
3237 * lisp.h (clip_to_bounds): Adjust prototype.
3238
e79123aa
EZ
3239 * intervals.c (traverse_intervals, rotate_right, rotate_left)
3240 (balance_an_interval, split_interval_right, split_interval_left)
3241 (find_interval, next_interval, update_interval)
3242 (adjust_intervals_for_insertion, delete_node, delete_interval)
3243 (interval_deletion_adjustment, adjust_intervals_for_deletion)
3244 (offset_intervals, merge_interval_right, merge_interval_left)
3245 (graft_intervals_into_buffer, adjust_for_invis_intang)
3246 (move_if_not_intangible, get_local_map, copy_intervals)
3247 (copy_intervals_to_string, compare_string_intervals)
3248 (set_intervals_multibyte_1): Use EMACS_INT for buffer positions
6e48267a 3249 and for interval tree size.
e79123aa
EZ
3250
3251 * intervals.h (traverse_intervals, split_interval_right)
3252 (split_interval_left, find_interval, offset_intervals)
3253 (graft_intervals_into_buffer, copy_intervals)
3254 (copy_intervals_to_string, move_if_not_intangible, get_local_map)
3255 (update_interval): Adjust prototypes.
3256
579c18d0
EZ
3257 * xdisp.c (check_point_in_composition, reconsider_clip_changes):
3258 Use EMACS_INT for buffer position variables and arguments.
3259
3260 * composite.c (get_composition_id, find_composition)
3261 (run_composition_function, compose_text)
3262 (composition_gstring_width, autocmp_chars)
3263 (composition_update_it, Ffind_composition_internal): Use EMACS_INT
3264 for buffer positions and string length variables and arguments.
3265
3266 * composite.h (get_composition_id, find_composition, compose_text)
3267 (composition_gstring_width): Adjust prototypes.
3268
3269 * editfns.c (Fformat): Use EMACS_INT for string size variables.
3270
bba3e508
SM
3271 * xdisp.c (store_mode_line_noprop, display_mode_element):
3272 Use EMACS_INT for string positions.
579c18d0
EZ
3273
3274 * intervals.c (get_property_and_range): Use EMACS_INT for buffer
3275 position arguments.
3276
3277 * intervals.h (get_property_and_range): Adjust prototype.
14162469
EZ
3278
3279 * character.c (parse_str_as_multibyte, str_as_multibyte)
3280 (parse_str_to_multibyte, str_to_multibyte, str_as_unibyte)
579c18d0 3281 (string_count_byte8, string_escape_byte8, c_string_width)
bba3e508
SM
3282 (strwidth, lisp_string_width, multibyte_chars_in_text):
3283 Use EMACS_INT for string length variables and arguments.
14162469
EZ
3284
3285 * character.h (parse_str_as_multibyte, str_as_multibyte)
579c18d0 3286 (parse_str_to_multibyte, str_to_multibyte, str_as_unibyte)
bba3e508
SM
3287 (c_string_width, strwidth, lisp_string_width):
3288 Adjust prototypes.
14162469 3289
579c18d0
EZ
3290 * font.c (font_intern_prop): Use EMACS_INT for string length
3291 variables.
3292
3293 * font.c (font_intern_prop): Use EMACS_INT for string length
3294 variables.
3295
14162469
EZ
3296 * fns.c (Fstring_as_multibyte): Use EMACS_INT for string length
3297 variables.
3298
3299 * alloc.c <total_string_size>: Declare as EMACS_INT, not int.
3300 (Fmake_string): Protect against too large strings.
3301 (live_string_p, live_cons_p, live_symbol_p, live_float_p)
3302 (live_misc_p): Use ptrdiff_t instead of int for pointer
3303 differences.
3304 (string_bytes, check_sblock, check_string_free_list)
3305 (allocate_string_data, compact_small_strings, Fmake_string)
3306 (Fmake_bool_vector, make_string, make_unibyte_string)
3307 (make_multibyte_string, make_string_from_bytes)
bba3e508
SM
3308 (make_specified_string_string, Fmake_list, Fmake_vector):
3309 Use EMACS_INT for string length variables and arguments.
14162469
EZ
3310 (find_string_data_in_pure, make_pure_string, make_pure_c_string)
3311 (Fpurecopy): Use EMACS_INT for string size.
3312 (mark_vectorlike, mark_char_table, mark_object): Use EMACS_UINT
3313 for vector size.
3314
3315 * lisp.h (make_string, make_unibyte_string, make_multibyte_string)
3316 (make_string_from_bytes, make_specified_string_string)
579c18d0
EZ
3317 (make_pure_string, string_bytes, check_point_in_composition):
3318 Adjust prototypes.
14162469 3319
c8a66ab8
EZ
33202010-09-22 Eli Zaretskii <eliz@gnu.org>
3321
3322 * editfns.c (Fsubst_char_in_region, Ftranslate_region_internal)
3323 (check_translation): Use EMACS_INT for buffer positions and
3324 length.
3325
3326 * undo.c (record_marker_adjustment, record_delete)
3327 (record_change, record_point, record_insert)
3328 (record_property_change, Fprimitive_undo): Use EMACS_INT for
3329 buffer positions.
3330
3331 * lisp.h (record_marker_adjustment, record_delete)
3332 (record_change, record_point, record_insert)
3333 (record_property_change, Fprimitive_undo): Adjust prototypes.
3334
38c54d9d
JB
33352010-09-22 Juanma Barranquero <lekktu@gmail.com>
3336 Eli Zaretskii <eliz@gnu.org>
3337
3338 * w32.c (get_emacs_configuration_options): Fix buffer overrun.
3339
413d18e7
EZ
33402010-09-22 Eli Zaretskii <eliz@gnu.org>
3341
3342 * minibuf.c (Fminibuffer_contents)
3343 (Fminibuffer_contents_no_properties)
3344 (Fminibuffer_completion_contents): Use EMACS_INT for minibuffer
3345 positions.
3346
3347 * keyboard.c (command_loop_1): Use EMACS_INT to compare point with
3348 mark.
3349
3350 * alloc.c (make_uninit_string, make_uninit_multibyte_string)
3351 (allocate_string_data): Accept EMACS_INT for string length.
3352
3353 * editfns.c (Ffield_string, Ffield_string_no_properties)
3354 (make_buffer_string, make_buffer_string_both, Fbuffer_substring)
3355 (Fbuffer_substring_no_properties, find_field, Fdelete_field)
3356 (Ffield_string, Ffield_string_no_properties, Ffield_beginning)
3357 (Ffield_end): Use EMACS_INT for buffer positions.
3358
3359 * insdel.c (prepare_to_modify_buffer): Use EMACS_INT to compare
3360 point with mark.
3361
3362 * lisp.h (allocate_string_data, make_uninit_string)
3363 (make_uninit_multibyte_string, make_buffer_string)
3364 (make_buffer_string_both): Adjust prototypes.
3365
4b9832a6
CY
33662010-09-22 Chong Yidong <cyd@stupidchicken.com>
3367
3368 * xml.c: Switch to GNU indentation.
3369 (make_dom): Change parse tree format to match xml.el.
3370 (Fxml_parse_html_string_internal): Rename from html-parse-string.
3371 (Fxml_parse_string_internal): Rename from xml-parse-string.
3372
86282aab
KH
33732010-09-22 Kenichi Handa <handa@m17n.org>
3374
3375 * xdisp.c (compute_stop_pos): Call composition_compute_stop_pos
3376 only if we are not at a composition.
3377 (set_iterator_to_next): Give it->end_charpos to
3378 composition_compute_stop_pos.
3379 (set_iterator_to_next, next_element_from_buffer): Likewise.
3380
3381 * dispnew.c (buffer_posn_from_coords): Fix position when the
3382 current display element is a grapheme cluster in bidi-reordered
3383 region.
3384
840b985a
AR
33852010-09-21 Ari Roponen <ari.roponen@gmail.com> (tiny change)
3386
3387 * doc.c (Fsnarf_documentation): Use memmove instead of memcpy as
3388 the regions may overlap.
3389
5bc88f4b
JB
33902010-09-21 Juanma Barranquero <lekktu@gmail.com>
3391
3392 * makefile.w32-in ($(BLD)/sysdep.$(O)): Update dependencies.
3393
92bc9a36
DN
33942010-09-21 Dan Nicolaescu <dann@ics.uci.edu>
3395
d19e096e
DN
3396 * emacs.c: Do not include sys/ioctl.h, not needed.
3397
92bc9a36
DN
3398 * doprnt.c: Do not include stdlib.h, config.h does it.
3399 Move #include before macro definition.
3400
15f844ac
DN
34012010-09-20 Dan Nicolaescu <dann@ics.uci.edu>
3402
48e24408
DN
3403 * Makefile.in (temacs): Link using $(CC) not $(LD).
3404 (LD_FIRSTFLAG): Define using autoconf.
3405 (LD): Remove.
3406
65539506
DN
3407 Remove HAVE_TERMIOS definitions.
3408 * s/usg5-4-common.h (HAVE_TERMIOS):
3409 * s/template.h (HAVE_TERMIOS):
3410 * s/gnu-linux.h (HAVE_TERMIOS):
3411 * s/darwin.h (HAVE_TERMIOS):
3412 * s/cygwin.h (HAVE_TERMIOS):
3413 * s/bsd-common.h (HAVE_TERMIOS):
3414 * s/aix4-2.h (HAVE_TERMIOS):
3415 * s/hpux10-20.h (HAVE_TERMIOS): Do not define, it is assumed
3416 defined on all non-MS platforms.
3417 (HAVE_PSTAT_GETDYNAMIC): Do not define, autoconf does it.
3418
15f844ac
DN
3419 * xterm.c (xt_action_hook): Use const.
3420
7d701334
JB
34212010-09-20 Juanma Barranquero <lekktu@gmail.com>
3422
3423 Don't make W32 code conditional on HAVE_SOCKETS, it's always defined.
3424 * w32.c: Remove top-level uses of #ifdef HAVE_SOCKETS.
3425 (gethostname) [!HAVE_SOCKETS]: Remove.
3426 (SOCK_REPLACE_HANDLE): Remove macro.
3427 (socket_to_fd, sys_close, _sys_read_ahead, sys_read, sys_write)
3428 (term_ntproc, init_ntproc): Don't conditionalize on HAVE_SOCKETS.
3429 * w32proc.c: Remove top-level uses of #ifdef HAVE_SOCKETS.
3430 (syms_of_ntproc): Don't conditionalize on HAVE_SOCKETS.
3431
f3ec267a
EZ
34322010-09-18 Eli Zaretskii <eliz@gnu.org>
3433
3434 * deps.mk (xml.o): Add dependencies.
3435
93acd23d
JB
3436 * xdisp.c (Fcurrent_bidi_paragraph_direction):
3437 Call bidi_paragraph_init with NO_DEFAULT_P non-zero. (Bug#7038)
bea4f10c
EZ
3438
3439 * bidi.c (bidi_paragraph_init): Accept an additional argument
3440 NO_DEFAULT_P; all callers changed. If NO_DEFAULT_P is non-zero,
3441 search back until a paragraph with a strong directional character
3442 is found, and use that to determine paragraph's base direction.
3443
3444 * dispextern.h (bidi_paragraph_init): Update prototype.
3445
69e847be
EZ
34462010-09-17 Eli Zaretskii <eliz@gnu.org>
3447
3448 * w32.c (_PROCESS_MEMORY_COUNTERS_EX): Don't define with versions
3449 of w32api >= 3.15. (Bug#6989)
3450
283357a7
LMI
34512010-09-17 Lars Magne Ingebrigtsen <larsi@gnus.org>
3452
3453 * process.c (wait_reading_process_output): Don't message about
3454 accept-process-output unless the time limit really is zero.
3455
4ddb20d6
SM
34562010-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
3457
3458 * frame.c (Ftool_bar_pixel_width): YAILOM (Yet another
3459 int/Lisp_Object mixup).
3460
e24ad6dd
J
34612010-09-17 Jan Djärv <jan.h.d@swipnet.se>
3462
3463 * keyboard.c (parse_tool_bar_item): For QClabel, set TOOL_BAR_ITEM_LABEL
3464 not HELP.
3465
fb0cf781
J
34662010-09-17 Stephen Berman <stephen.berman@gmx.net>
3467
3468 * frame.c (Ftool_bar_pixel_width): New function to expose tool
3469 bar's pixel width to Lisp (Bug#7048).
3470
4ddb20d6
SM
34712010-09-14 Juanma Barranquero <lekktu@gmail.com>
3472
3473 * cmds.c (syms_of_cmds) <post-self-insert-hook>: Fix typos in docstring.
fb0cf781 3474
318a04c6
J
34752010-09-17 Jan Djärv <jan.h.d@swipnet.se>
3476
3477 * gtkutil.c (xg_pack_tool_bar): Call gtk_handle_box_set_handle_position
3478 with argument top/left if tool bar is vertical/horizontal (Bug#7051).
3479
78a21772
KH
34802010-09-17 Kenichi Handa <handa@m17n.org>
3481
3482 * ftfont.c (ftfont_check_otf): Fix previous change.
3483
fa3f6039
KH
34842010-09-14 Kenichi Handa <handa@m17n.org>
3485
3486 * ftfont.c (ftfont_check_otf): Fix the case of checking just
3487 existence of GSUB or GPOS.
3488
2b5491fa
JB
34892010-09-14 Juanma Barranquero <lekktu@gmail.com>
3490
3491 * cmds.c (syms_of_cmds) <post-self-insert-hook>: Fix typos in docstring.
3492
c97c655f
LMI
34932010-09-14 Lars Magne Ingebrigtsen <larsi@gnus.org>
3494
ef1b0ba7 3495 * xml.c (parse_buffer): Rename to parse_string(), since that's
c97c655f
LMI
3496 what it does.
3497 (parse_string): Return nil when the document can't be parsed.
3498
6664fc59 34992010-09-14 Jan Djärv <jan.h.d@swipnet.se>
5f61a25c
J
3500
3501 * xterm.c (get_current_vm_state): New function.
3502 (do_ewmh_fullscreen): Call get_current_vm_state and compare with
3503 want_fullscreen so set_wm_state calls are few (Bug#7013).
3504 (x_handle_net_wm_state): Move code to get_current_vm_state and
3505 call that function.
3506
6664fc59 35072010-09-14 Courtney Bane <emacs-bugs-7626@cbane.org> (tiny change)
65b3d997
A
3508
3509 * term.c (tty_set_terminal_modes): Don't initialize twice (bug#7002).
3510
6664fc59 35112010-09-14 Kenichi Handa <handa@m17n.org>
a552b35a
KH
3512
3513 * coding.c (encode_coding_iso_2022): Don't optimize for ASCII if
3514 we may use designation or locking-shift.
3515
6664fc59 35162010-09-14 Kenichi Handa <handa@m17n.org>
396475b7
KH
3517
3518 * coding.c (detect_coding_emacs_mule): Fix checking of multibyte
3519 sequence when the source is multibyte.
3520
1da70e99
AS
35212010-09-14 Andreas Schwab <schwab@linux-m68k.org>
3522
6664fc59
JB
3523 * xml.c (Fxml_parse_string, Fxml_parse_string): Revert last change.
3524 Don't make first argument optional. Doc fix.
1da70e99 3525
26632d8d
LMI
35262010-09-14 Leo <sdl.web@gmail.com> (tiny change)
3527
3528 * xml.c (Fxml_parse_string, Fhtml_parse_string): Fix up the
3529 parameters for the doc string.
3530
21fa8e37
LMI
35312010-09-12 Lars Magne Ingebrigtsen <larsi@gnus.org>
3532
3533 * xml.c (Fhtml_parse_string, Fxml_parse_string): Mention BASE-URL.
3534
5616cc54
SM
35352010-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
3536
3537 * fns.c (Fy_or_n_p): Move to lisp/subr.el.
3538 (syms_of_fns): Don't defsubr Sy_or_n_p.
3539 * lisp.h: Don't declare Fy_or_n_p.
3540 * fileio.c (barf_or_query_if_file_exists): Fy_or_n_p -> y-or-n-p.
3541
381408e2
LMI
35422010-09-09 Lars Magne Ingebrigtsen <larsi@gnus.org>
3543
3544 * xml.c (Fxml_parse_buffer): New function to parse XML files.
3545
35462010-09-08 Lars Magne Ingebrigtsen <larsi@gnus.org>
3547
3548 * xml.c: New file.
3549 (Fhtml_parse_buffer): New function to interface to the libxml2
3550 html parsing function.
3551
733946e7
JB
35522010-09-05 Juanma Barranquero <lekktu@gmail.com>
3553
3554 * biditype.h: Regenerate.
3555
7574650a
AS
35562010-09-04 Andreas Schwab <schwab@linux-m68k.org>
3557
3558 * nsimage.m (ns_load_image): Check argument types.
3559
3560 * image.c: Remove all uses of gcpro.
3561 (xpm_load): Check all lisp types.
3562 (pbm_load): Likewise.
3563 (png_load): Likewise.
3564 (jpeg_load): Likewise.
3565 (tiff_load): Likewise.
3566 (gif_load): Likewise.
3567 (imagemagick_load_image): Likewise.
3568 (imagemagick_load): Likewise.
3569 (svg_load): Likewise.
3570 (gs_load): Likewise.
3571
6e6b8e25
EZ
35722010-09-04 Eli Zaretskii <eliz@gnu.org>
3573
bba3e508
SM
3574 * w32uniscribe.c (uniscribe_shape): Update commentary.
3575 Don't try to reorder grapheme clusters, since LGSTRING should always
6e6b8e25
EZ
3576 hold them in the logical order.
3577 (uniscribe_encode_char, uniscribe_shape): Force ScriptShape to
3578 return glyph codes in the logical order.
3579
dbfe4532
AS
35802010-09-04 Andreas Schwab <schwab@linux-m68k.org>
3581
3582 * image.c (imagemagick_image_p): Replace bcopy by memcpy.
b7d187f8 3583 (imagemagick_load_image): Fix type mismatch.
5e5992c2 3584 (Fimagemagick_types): Likewise. Doc fix.
dbfe4532 3585
6d7cc563
JD
35862010-09-02 Jan Djärv <jan.h.d@swipnet.se>
3587
3588 * xterm.h (struct dpyinfo): Remove cut_buffers_initialized.
3589
3590 * xterm.c (x_term_init): Don't set dpyinfo->cut_buffers_initialized.
3591
3592 * xselect.c: Remove declaration of cut-buffer objects and functions.
3593 (symbol_to_x_atom): Remove mapping to XA_CUT_BUFFERn.
3594 (x_atom_to_symbol): Remove mapping to QCUT_BUFFERn.
3595 (Fx_get_cut_buffer_internal, Fx_store_cut_buffer_internal)
3596 (Fx_rotate_cut_buffers_internal): Remove.
3597 (syms_of_xselect): Remove defsubr of above.
3598 Remove intern of QCUT_BUFFERn.
3599
8f4e9110
SM
36002010-09-01 Stefan Monnier <monnier@iro.umontreal.ca>
3601
3602 * cmds.c (Vblink_paren_function): Remove.
3603 (internal_self_insert): Make it insert N chars at a time.
3604 Don't call blink-paren-function.
3605 (Fself_insert_command): Adjust accordingly.
3606 (syms_of_cmds): Don't declare blink-paren-function.
3607
d419e1d9
KH
36082010-08-31 Kenichi Handa <handa@m17n.org>
3609
3610 * dispextern.h (FACE_FOR_CHAR): Use an ASCII face for 8-bit
3611 characters.
3612
3613 * term.c (encode_terminal_code): Fix the previous change.
5616cc54
SM
3614 (produce_glyphs): Don't set it->char_to_display here.
3615 Don't handle unibyte-display-via-language-environment here.
d419e1d9
KH
3616 (produce_special_glyphs): Set temp_it.char_to_display before
3617 calling produce_glyphs.
3618
3619 * xdisp.c (get_next_display_element): Set it->char_to_display
3620 here. Convert all 8-bit bytes from unibyte buffer/string to 8-bit
3621 characters.
3622 (get_overlay_arrow_glyph_row): Set it.char_to_display too before
3623 calling PRODUCE_GLYPHS.
3624 (append_space_for_newline): Save and store it->char_to_display.
3625 Set it->char_to_display before calling PRODUCE_GLYPHS.
3626 (extend_face_to_end_of_line): Set it->char_to_display before
3627 calling PRODUCE_GLYPHS.
3628 (get_glyph_face_and_encoding): Set the glyph code an 8-bit
3629 character to its byte value.
3630 (get_char_glyph_code): New function.
3631 (produce_stretch_glyph): Set it2.char_to_display too before
3632 calling x_produce_glyphs.
3633 (x_produce_glyphs): Simplify by using the same code for ASCII and
65b3d997
A
3634 non-ASCII characters. Don't set it->char_to_display here.
3635 Don't handle unibyte-display-via-language-environment here. For a
2b5491fa 3636 character of no glyph, use font->space_width instead of FONT_WIDTH.
d419e1d9 3637
b819f760
SM
36382010-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
3639
3640 * keyboard.c (Fwindow_system): Fix compilation for USE_LISP_UNION_TYPE.
3641
07fa68a7
CY
36422010-08-31 Chong Yidong <cyd@stupidchicken.com>
3643
3644 * keyboard.c (command_loop_1): Don't call x-set-selection on tty.
3645
cd196f12
SM
36462010-08-30 Stefan Monnier <monnier@iro.umontreal.ca>
3647
3648 * marker.c (Fcopy_marker): Make the first arg optional.
3649
49a752bb
KH
36502010-08-30 Kenichi Handa <handa@m17n.org>
3651
3652 * composite.c (composition_update_it): Fix computing of
3653 cmp_it->width.
3654
769ae9e1
KH
36552010-08-29 Kenichi Handa <handa@m17n.org>
3656
9e69cb05 3657 * term.c (encode_terminal_code): Encode byte chars to the
5616cc54 3658 corresponding bytes.
9e69cb05 3659
4520b858
J
36602010-08-29 Jan Djärv <jan.h.d@swipnet.se>
3661
3662 * nsterm.m (ns_draw_window_cursor): Draw BAR_CURSOR correct for R2L.
3663
fe50eb41
KH
36642010-08-26 Kenichi Handa <handa@m17n.org>
3665
3666 * xdisp.c (compute_stop_pos): Pay attention to bidi scan direction
3667 on calling composition_compute_stop_pos.
3668
f6aa6ec6
KH
36692010-08-25 Kenichi Handa <handa@m17n.org>
3670
9dfdbc0a
KH
3671 * fontset.c (reorder_font_vector): Prefer a font-spec specifying
3672 :otf.
3673
f6aa6ec6
KH
3674 * composite.c (composition_compute_stop_pos): Don't break
3675 composition at PT.
3676 (composition_reseat_it): Likewise. Fix calculation of character
3677 position starting a composition.
3678 (Fcomposition_get_gstring): Don't limit the number of components
3679 for automatic composition.
3680
ff94e32c
KH
36812010-08-25 Kenichi Handa <handa@m17n.org>
3682
3683 * composite.c (composition_compute_stop_pos): In forward search,
3684 pay attention to the possibility that some character after ENDPOS
3685 will be composed with charactrs before ENDPOS.
3686
1c409d0b
CY
36872010-08-24 Chong Yidong <cyd@stupidchicken.com>
3688
3689 * keyboard.c (command_loop_1): Don't clobber primary selection
3690 during handle-switch-frame (Bug#6872).
3691
0c372655
MA
36922010-08-23 Michael Albinus <michael.albinus@gmx.de>
3693
3694 * dbusbind.c: Accept UNIX domain sockets as bus address.
3695 (Fdbus_close_bus): New function.
3696 (Vdbus_registered_buses): New variable.
3697 (xd_initialize): Implement string as bus address.
3698 (Fdbus_init_bus): Add bus to Vdbus_registered_buses).
3699 (Fdbus_get_unique_name, Fdbus_call_method)
3700 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
3701 (Fdbus_method_error_internal, Fdbus_send_signal)
3702 (Fdbus_register_signal, Fdbus_register_method): Remove bus type
3703 check. This is done in xd_initialize_bus. Adapt doc string, if
3704 necessary.
3705 (xd_pending_messages, xd_read_queued_messages): Loop over buses in
3706 Vdbus_registered_buses.
3707 (Vdbus_registered_objects_table): Create hash.
3708
7133b7ee
JL
37092010-08-22 Juri Linkov <juri@jurta.org>
3710
3711 * keyboard.c (Fexecute_extended_command): Move reading a command name
3712 with `completing-read' to a new Elisp function `read-extended-command'.
3713 Call it to read a command to `function' (bug#5364, bug#5214).
3714
198a7a97
CY
37152010-08-22 Chong Yidong <cyd@stupidchicken.com>
3716
3717 * emacs.c (main): Remove handling of --unibyte arg (Bug#6886).
3718
b0126eac 37192010-08-22 Andreas Schwab <schwab@linux-m68k.org>
b72e0717
AS
3720
3721 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA_LISP
3722 instead of SAFE_ALLOCA.
3723
b0126eac 37242010-08-22 Chong Yidong <cyd@stupidchicken.com>
3a7a9129
CY
3725
3726 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA
3727 (Bug#6214).
3728
b0126eac 37292010-08-22 Jan Djärv <jan.h.d@swipnet.se>
983b8302
J
3730
3731 * doc.c (Fsnarf_documentation): Set skip_file only if p[1] is S.
3732
b0126eac
CY
37332010-08-22 Jan Djärv <jan.h.d@swipnet.se>
3734
3735 * doc.c (Fsnarf_documentation): Initialize skip_file before
3736 build-files test.
3737
692f3ddc 37382010-08-22 Peter O'Gorman <pogma@thewrittenword.com> (tiny change)
b0126eac 3739
692f3ddc
JB
3740 * s/hpux10-20.h (HAVE_TERMIOS, NO_TERMIO, ORDINARY_LINK):
3741 New definitions.
b0126eac
CY
3742 (HAVE_TERMIO): Remove.
3743
5f2f0bc1
EZ
37442010-08-22 Eli Zaretskii <eliz@gnu.org>
3745
b613941b
EZ
3746 * deps.mk (sysdep.o, msdos.o): Depend on sysselect.h.
3747
a583bbef
EZ
3748 * sysselect.h [WINDOWSNT]: Don't define the FD_* and select stuff
3749 for w32.
3750
3751 * s/ms-w32.h (HAVE_SYS_TIMEB_H): Don't #undef HAVE_SYS_SELECT_H,
3752 it's done in nt/config.nt.
3753
3754 * makefile.w32-in ($(BLD)/sysdep.$(O)): Depend on sysselect.h.
3755
5f2f0bc1
EZ
3756 * unexcoff.c (report_error, make_hdr, write_segment)
3757 (copy_text_and_data, copy_sym, mark_x, adjust_lnnoptrs, unexec):
3758 Convert argument lists and prototypes to ANSI C.
3759 (make_hdr, write_segment): Remove unused variables.
3760 (unexec): Remove commented-out line. Initialize `new' to shut up
3761 compiler warnings.
3762
a7ebc409
DN
37632010-08-22 Dan Nicolaescu <dann@ics.uci.edu>
3764
3765 Simplify termio code.
3766 All non-MSDOS non-WINDOWSNT platforms define HAVE_TERMIOS, so
3767 HAVE_TERMIO code is obsolete.
3768 Replace HAVE_TERMIOS conditionals with !DOS_NT.
3769 * systty.h: Do not define HAVE_TCATTR.
3770 Remove HAVE_TERMIO, HAVE_LTCHARS and HAVE_TCHARS code.
3771 Do not define EMACS_HAVE_TTY_PGRP. Only define
3772 EMACS_GET_TTY_PGRP for !DOS_NT.
3773 * sysdep.c: Include sysselect.h unconditionally. Do not include
bba3e508
SM
3774 sys/ioctl.h and termios.h, systty.h does it.
3775 Use HAVE_SYS_UTSNAME_H instead of USG as an include guard.
a7ebc409
DN
3776 (init_baud_rate): Remove HAVE_TERMIO code.
3777 (child_setup_tty): Remove HAVE_TERMIO code.
3778 (emacs_get_tty, emacs_set_tty): Remove HAVE_TERMIO, HAVE_TCHARS
3779 and HAVE_LTCHARS code. Use !DOS_NT instead of HAVE_TCATTR.
3780 (new_ltchars, new_tchars): Remove, unused.
3781 (init_sys_modes): Remove HAVE_TERMIO, HAVE_TCHARS and HAVE_LTCHARS
bba3e508
SM
3782 code. Remove special casing for __mips__, it was a no-op.
3783 Remove HAVE_TCATTR conditional, it is implied by HAVE_TERMIOS.
a7ebc409
DN
3784 (init_sys_modes): Remove HPUX special case.
3785 * process.c: Include stdlib.h unconditionally. Do not include
3786 fcntl.h, systty.h does it. Remove conditional code for
3787 HAVE_SERIAL, it is always true.
3788 (process_send_signal): Remove HAVE_TERMIOS conditional, it's
3789 always true when SIGNALS_VIA_CHARACTERS is true.
3790 (Fcontinue_process, Fprocess_send_eof): Simplify conditionals:
3791 !WINDOWSNT means HAVE_TERMIOS.
3792 (create_process): Remove HAVE_TERMIOS, it's inside a HAVE_PTYS
3793 conditional, which is true for all HAVE_TERMIOS systems.
3794 * keyboard.c (init_keyboard): Do not use HAVE_TERMIO, use !DOS_NT
3795 instead of HAVE_TERMIOS.
3796 * emacs.c (shut_down_emacs): Use !defined DOS_NT instead of
3797 EMACS_HAVE_TTY_PGRP.
3798 * callproc.c (child_setup): Move EMACS_SET_TTY_PGRP use to the
3799 non-MSDOS, non-WINDOWSNT code, it's only defined for such systems
3800 anyway.
3801
914f049b 38022010-08-21 Eli Zaretskii <eliz@gnu.org>
40629f17
EZ
3803
3804 * dispnew.c (buffer_posn_from_coords): Fix off-by-one error in
3805 mirroring pixel positions.
3806
d931da8c
DN
38072010-08-20 Dan Nicolaescu <dann@ics.uci.edu>
3808
b5c76d0c
DN
3809 * alloc.c (malloc_sbrk_used, malloc_sbrk_unused): Remove,
3810 write only.
3811 (init_alloc_once): Remove writes to malloc_sbrk_unused, and
3812 malloc_sbrk_used, nothing uses them.
3813
74815588
DN
3814 * puresize.h: Remove code assuming PNTR_COMPARISON_TYPE is not
3815 defined, unconditionally defined in lisp.h.
3816
f5817d1c
DN
3817 * term.c: Do not include <termios.h>, systty.h does it.
3818
d931da8c
DN
3819 * s/unixware.h (HAVE_TCATTR):
3820 * s/aix4-2.h (HAVE_TCATTR): Remove definitions, not needed.
3821 systty.h defines it when HAVE_TERMIOS is defined.
3822
ff2de6d2 38232010-08-20 Eli Zaretskii <eliz@gnu.org>
491a1546 3824
b43c883c 3825 * dispnew.c (buffer_posn_from_coords): Fix last change for text
00c53994 3826 terminals: add one-character offset for R2L lines.
b43c883c 3827
491a1546
EZ
3828 * emacs.c <emacs_version>: Add a comment regarding
3829 msdos/mainmake.v2's dependency on the syntax of this declaration.
3830
2396cbba
EZ
38312010-08-20 Eli Zaretskii <eliz@gnu.org>
3832
3833 * dispnew.c (buffer_posn_from_coords): Fix calculation of buffer
3834 position for R2L lines by mirroring the pixel position wrt the
3835 text are box. Improve commentary.
3836
7df6150a
AS
38372010-08-20 Andreas Schwab <schwab@linux-m68k.org>
3838
3839 * image.c (imagemagick_clear_image): Remove debugging output.
3840
a2e5caf7
SM
38412010-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
3842
3843 * cmds.c (Vself_insert_face, Vself_insert_face_command): Remove.
3844 (Qpost_self_insert_hook, Vpost_self_insert_hook): New vars.
3845 (internal_self_insert): Run Qpost_self_insert_hook rather than handle
3846 self-insert-face.
3847 (syms_of_cmds): Initialize the new vars.
3848
20d60baf
JR
38492010-08-19 Jason Rumney <jasonr@gnu.org>
3850
cc477da7
JR
3851 * w32menu.c (set_frame_menubar): Remove call to undefined function.
3852
20d60baf
JR
3853 * w32fns.c (w32_wnd_proc): Don't check context before initializing.
3854
2c0ac867
J
38552010-08-19 Jan Djärv <jan.h.d@swipnet.se>
3856
3857 * nsselect.m (nxatoms_of_nsselect): Use "Selection" and "Secondary".
3858
93352106
EZ
38592010-08-18 Eli Zaretskii <eliz@gnu.org>
3860
3861 * xterm.c (x_draw_bar_cursor):
3862 * w32term.c (x_draw_bar_cursor): If the character under cursor is
3863 R2L, draw the bar cursor on its right rather than on its left.
3864
c785836d
SM
38652010-08-18 Stefan Monnier <monnier@iro.umontreal.ca>
3866
0193499f
SM
3867 * eval.c (Fdefmacro): Only obey one declaration.
3868
c785836d
SM
3869 * casefiddle.c (casify_region): Setup gl_state.
3870
9cb728a5
J
38712010-08-18 Jan Djärv <jan.h.d@swipnet.se>
3872
3873 * nsterm.m (ns_define_frame_cursor): Call x_update_cursor (Bug#6868).
3874
e1e18511
J
38752010-08-18 Jan Djärv <jan.h.d@swipnet.se>
3876
1d77b63e 3877 * gtkutil.c (update_frame_tool_bar): Literal strings are const char*.
e1e18511 3878
64cb6c78
J
38792010-08-18 David De La Harpe Golden <david@harpegolden.net>
3880
3881 * nsselect.m (QCLIPBOARD, NXPrimaryPboard): Define.
3882 (symbol_to_nsstring): Map QCLIPBOARD => NSGeneralPboard,
3883 QPRIMARY => NXPrimaryPboard.
3884 (ns_string_to_symbol): NSGeneralPboard => QCLIPBOARD,
3885 NXPrimaryPboard => QPRIMARY.
3886 (nxatoms_of_nsselect): NXPrimaryPboard = PrimarySelection,
3887 NXSecondaryPboard = SecondarySelection.
3888 (syms_of_nsselect): Intern QCLIPBOARD (Bug#6677).
3889
0c9b8993
GM
38902010-08-18 Joakim Verona <joakim@verona.se>
3891
3892 * image.c: Add support for ImageMagick. When HAVE_IMAGEMAGICK is
3893 defined:
3894 (imagemagick_image_p): New function to test for ImageMagic image.
3895 (imagemagick_load): New function to load ImageMagick image.
3896 (imagemagick_load_image): New function, helper for imagemagick_load.
3897 (imagemagick-types): New function.
3898 (Qimagemagick): New Lisp_object.
3899 (imagemagick-render-type): New variable, decides which renderer to use.
ccd80618 3900
c3554f68
SM
39012010-08-17 Stefan Monnier <monnier@iro.umontreal.ca>
3902
3903 * gtkutil.c (update_frame_tool_bar): Don't assume TOOL_BAR_ITEM_LABEL
3904 is a string.
3905
1ff2e434
J
39062010-08-17 Jan Djärv <jan.h.d@swipnet.se>
3907
3908 * nsfns.m (ns_frame_parm_handlers): Add a slot for the
3909 x_set_tool_bar_position handler.
3910
0cc56427
EZ
39112010-08-17 Eli Zaretskii <eliz@gnu.org>
3912
3913 * w32fns.c <w32_frame_parm_handlers>: Add a slot for the
3914 x_set_tool_bar_position handler, needed to support changes from
3915 2010-07-29T16:49:59Z!jan.h.d@swipnet.se for positioning the tool bar. (Bug#6796)
3916
e45a249b
JD
39172010-08-16 Jan Djärv <jan.h.d@swipnet.se>
3918
921242c6
J
3919 * nsselect.m: include keyboard.h for QPRIMARY, remove its
3920 declaration (Bug#6863).
573d150b 3921 (syms_of_nsselect): Don't intern QPRIMARY.
921242c6 3922
e45a249b
JD
3923 * xselect.c: Remove declaration of QPRIMARY (Bug#6864).
3924
3925 * keyboard.h (QPRIMARY): Declare (Bug#6864).
3926
7c23dd44
CY
39272010-08-16 Chong Yidong <cyd@stupidchicken.com>
3928
3929 * keyboard.c (command_loop_1): Avoid setting selection twice,
3930 since it's done in deactivate-mark as well.
3931 (Vselect_active_regions): Change default to t. Replace `lazy'
3932 with non-default value `only', meaning only set PRIMARY for
3933 temporarily active regions.
3934
3935 * insdel.c (prepare_to_modify_buffer): Handle `only' value of
3936 select-active-regions.
3937
0005830c
J
39382010-08-15 Jan Djärv <jan.h.d@swipnet.se>
3939
3940 * keyboard.c (parse_tool_bar_item): Put in a bad label if :label
3941 isn't a string.
3942
603dfc72
AS
39432010-08-15 Andreas Schwab <schwab@linux-m68k.org>
3944
3945 * keyboard.c (parse_tool_bar_item): Avoid excessive use of strlen.
3946
c25ce9d0
J
39472010-08-15 Jan Djärv <jan.h.d@swipnet.se>
3948
c3554f68
SM
3949 * keyboard.c (parse_tool_bar_item): malloc buf.
3950 Set TOOL_BAR_ITEM_LABEL to empty string if not set to
3951 new_lbl (Bug#6855).
c25ce9d0 3952
5872c762
EZ
39532010-08-14 Eli Zaretskii <eliz@gnu.org>
3954
b236615c
EZ
3955 * xterm.c (x_draw_stretch_glyph_string):
3956 * w32term.c (x_draw_stretch_glyph_string): In R2L rows, display
3957 the cursor on the right edge of the stretch glyph.
3958
c3554f68
SM
3959 * xdisp.c (window_box_right_offset, window_box_right):
3960 Fix commentary.
b236615c 3961
5872c762
EZ
3962 * xdisp.c (Fcurrent_bidi_paragraph_direction): Fix paragraph
3963 direction when point is inside a run of whitespace characters.
3964
3965 * bidi.c (bidi_at_paragraph_end): Remove obsolete comment.
3966
e66f9a1b
JR
39672010-08-14 Jason Rumney <jasonr@gnu.org>
3968
3969 * keyboard.c (lispy_function_keys): Do not define VK_PACKET (bug#4836)
3970
79d6f59e
CY
39712010-08-14 Chong Yidong <cyd@stupidchicken.com>
3972
3973 * fns.c (Fmake_hash_table): Doc fix (Bug#6851).
3974
1c9b4129
JR
39752010-08-13 Jason Rumney <jasonr@gnu.org>
3976
3977 * w32menu.c (simple_dialog_show): Use unicode message box if available.
3978 (MessageBoxW_Proc): New function typedef.
3979 (unicode-message-box): New function pointer.
3980 (globals_of_w32menu): Import it from user32.dll. (Bug#5629)
3981
2b4e6277
J
39822010-08-13 Jan Djärv <jan.h.d@swipnet.se>
3983
3984 * frame.h (Qtool_bar_position): Declare.
3985
3986 * xfns.c (Fx_create_frame): Call x_default_parameter for
3987 Qtool_bar_position.
3988
94c97d85
EZ
39892010-08-13 Eli Zaretskii <eliz@gnu.org>
3990
8ee81892
EZ
3991 * unexcoff.c: Remove the parts used when "emacs" is not defined.
3992 (report_error, report_error_1): Ditto.
3993 (write_segment): Remove "#if 0" unused code.
3994 (make_hdr): Remove code that was "#ifndef NO_REMAP" before
3995 NO_REMAP was removed (in 2010-07-29T03:25:08Z!dann@ics.uci.edu).
3996 (start_of_text): Remove unused function (was used only if NO_REMAP
3997 was NOT defined).
3998
891ef8f7
EZ
3999 * msdos.c (IT_set_face): Fix format string to match argument
4000 types.
4001 (IT_write_glyphs, IT_note_mode_line_highlight)
4002 (IT_set_frame_parameters): Remove unused variables.
4003 (x_set_menu_bar_lines): Declare set_menu_bar_lines.
4004 (IT_set_terminal_modes): Disambiguate expression in if clause.
4005 (Fmsdos_remember_default_colors): Return Qnil.
4006 (IT_set_frame_parameters): Add parens to disambiguate boolean
4007 expression for logging the cursor type to termscript.
4008 (keyboard_layout_list, keypad_translate_map)
4009 (grey_key_translate_map): Add braces in inner initializers.
4010 (dos_rawgetc): Add parens in condition for mouse-3 button-press.
4011 (dos_rawgetc): Remove unused label.
4012 (XMenuActivate): Add braces to remove ambiguous `else'.
4013 (dos_ttraw): Always return a value.
4014 (spawnve): Declare.
4015 (run_msdos_command): Cast 3rd arg of spawnve to "char **".
4016
4017 * dosfns.h (x_set_title): Declare.
4018
4019 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
4020 Remove unused variables.
4021
4022 * dosfns.c (Fint86, Fdos_memget, Fdos_memput): Remove unused
4023 variables.
4024 (init_dosfns): Declare get_lim_data.
4025 (system_process_attributes): Declare Fget_internal_run_time.
4026
38e41e0e
EZ
4027 * xmenu.c (xmenu_show) [!USE_X_TOOLKIT && !USE_GTK]: Fix argument
4028 list to be consistent with menu.h.
4029
94c97d85
EZ
4030 * w32menu.c (add_menu_item, name_is_separator): Shut up compiler
4031 warnings due to mixing of "char *" and "const char *".
4032
c5683ceb
SM
40332010-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
4034
4035 Introduce a new comment style "c" flag.
4036 * syntax.c (SYNTAX_FLAGS_COMMENT_STYLEB)
4037 (SYNTAX_FLAGS_COMMENT_STYLEC): New macros.
4038 (SYNTAX_FLAGS_COMMENT_STYLE): Use them, add an argument.
4039 (syntax_prefix_flag_p): New function.
4040 (Fstring_to_syntax): Understand new "c" flag.
4041 (Finternal_describe_syntax_value): Recognize new flag; use the
4042 SYNTAX_FLAGS_* macros.
4043 (scan_sexps_forward, Fparse_partial_sexp): Change representation of
4044 comment style to accomodate the new styles.
4045 (back_comment, forw_comment, Fforward_comment, scan_lists)
4046 (scan_sexps_forward): Update code to obey the new comment style flag.
4047
4048 * syntax.h: Move SYNTAX_FLAGS_FOO() macros to syntax.c.
4049
4050 * casefiddle.c (casify_region): Use the new syntax_prefix_flag_p.
4051
7aee76f4
J
40522010-08-11 Jan Djärv <jan.h.d@swipnet.se>
4053
3a46642b
J
4054 * xfns.c (x_defined_color): If USE_GTK, call xg_check_special_colors
4055 first.
94dff98f 4056 (Fx_hide_tip): Check FRAME_LIVE_P (f) before calling xg_hide_tooltip.
3a46642b
J
4057
4058 * gtkutil.h (xg_check_special_colors): Declare.
4059
4060 * gtkutil.c (xg_check_special_colors, style_changed_cb): New functions.
4061 (xg_create_frame_widgets): Connect theme name changes to
4062 style_changed_cb.
4063
42ca4633
J
4064 * xterm.c (emacs_class): New char[] for EMACS_CLASS.
4065 (xim_open_dpy, xim_initialize, xim_close_dpy): Use emacs_class.
4066 (x_term_init): Use char[] display_opt and name_opt instead of
93acd23d 4067 string literal. file is const char*.
42ca4633
J
4068
4069 * xsmfns.c (NOSPLASH_OPT): Change to char[].
4070 (smc_save_yourself_CB): Do xstrdup on all ->type and ->name for
4071 props. Free them at the end.
4072
4073 * xselect.c (Fx_get_atom_name): Use char empty[] instead of literal "".
4074
c5683ceb
SM
4075 * xrdb.c (get_system_app): Make path const and use char *p for
4076 non-const char.
42ca4633
J
4077
4078 * xmenu.c (Fx_popup_dialog): error_name is const char*.
93acd23d 4079 (xmenu_show): error parameter is const char **. pane_string is const
42ca4633
J
4080 char *.
4081 (button_names): Is const char *.
4082 (xdialog_show): error_name and pane_string is const.
4083
4084 * process.h (synch_process_death): Is const char*.
4085
4086 * w32menu.c (w32_menu_show):
4087 * nsmenu.m (ns_menu_show): error parameter is const char **.
4088
4089 * menu.h (w32_menu_show, ns_menu_show, xmenu_show): error parameter
4090 is const char **.
4091
4092 * menu.c (Fx_popup_menu): error_name is const.
4093
4094 * keyboard.h (_widget_value): Add defined USE_GTK. Replace Boolean
4095 with unsigned char and XtPointer with void *.
4096
4097 * gtkutil.h: Replace widget_value with struct _widget_value.
4098 (enum button_type, struct _widget_value): Remove and use the one from
4099 keyboard.h.
4100
4101 * gtkutil.c (get_utf8_string): Always return an allocated string.
4102 Parameter is const.
4103 (create_dialog, xg_create_one_menuitem, create_menus)
4104 (xg_item_label_same_p, xg_update_menu_item): Free result from
4105 get_utf8_string.
4106 (xg_separator_p, xg_item_label_same_p): label is const.
4107
4108 * font.h (font_open_by_name): Make name const.
4109
4110 * font.c (font_open_by_name): Make name const.
4111
4112 * floatfns.c (matherr): Use a const char* variable for x->name.
4113
4114 * emacs.c (main): Pass char[] to putenv instead of literal.
4115
4116 * callproc.c (synch_process_death): Make const.
4117 (Fcall_process): Make signame const.
4118
9c5bd55a
J
4119 * nsterm.h (parseKeyEquiv, addSubmenuWithTitle)
4120 (addDisplayItemWithImage): Use const char*.
4121
4122 * nsmenu.m (parseKeyEquiv, addSubmenuWithTitle)
4123 (addDisplayItemWithImage, update_frame_tool_bar): Use const char*.
4124
4125 * nsfont.m (ns_descriptor_to_entity): Use const char*.
4126
4127 * keyboard.h (_widget_value): name, value and key are const char*.
4128
7aee76f4
J
4129 * unexmacosx.c (unexec_error): Use const char *.
4130
09d93395
DN
41312010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
4132
4133 * font.h (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
c5683ceb 4134 (font_parse_name, font_open_by_name):
09d93395 4135 * font.c (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
c5683ceb 4136 (font_parse_name, font_open_by_name): Remove const.
09d93395 4137
671d409f
AS
41382010-08-09 Andreas Schwab <schwab@linux-m68k.org>
4139
4140 Use autoconf determined WORDS_BIGENDIAN instead of hardcoded
4141 definition.
4142
4143 * m/alpha.h: Don't define/undef WORDS_BIG_ENDIAN.
4144 * m/amdx86-64.h: Likewise.
4145 * m/arm.h: Likewise.
4146 * m/hp800.h: Likewise.
4147 * m/ia64.h: Likewise.
4148 * m/ibmrs6000.h: Likewise.
4149 * m/ibms390.h: Likewise.
4150 * m/intel386.h: Likewise.
4151 * m/iris4d.h: Likewise.
4152 * m/m68k.h: Likewise.
4153 * m/macppc.h: Likewise.
4154 * m/mips.h: Likewise.
4155 * m/sh3.h: Likewise.
4156 * m/sparc.h: Likewise.
4157 * m/template.h: Likewise.
4158 * m/vax.h: Likewise.
4159 * m/xtensa.h: Likewise.
4160 * fringe.c (init_fringe_bitmap): Test WORDS_BIGENDIAN instead of
4161 WORDS_BIG_ENDIAN.
4162 * lisp.h: Likewise.
4163 * md5.c: Likewise.
4164 * sound.c (le2hl, le2hs, be2hl, be2hs): Likewise.
4165
8ea90aa3
DN
41662010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
4167
4168 Use const char* instead of char*.
4169 Reduce the number of warnings with -Wwrite-strings.
4170 * xrdb.c (get_environ_db, get_system_name):
4171 * unexelf.c (find_section):
4172 * term.c (string_cost, string_cost_one_line, per_line_cost)
4173 (get_named_tty, init_tty):
4174 * sysdep.c (sys_subshell):
4175 * sound.c (sound_perror, sound_warning, vox_open, vox_init)
4176 (alsa_sound_perror, alsa_open, alsa_configure, alsa_init):
4177 * search.c (Freplace_match):
4178 * process.c (Fmake_network_process, send_process, init_process):
4179 * lread.c (Fload, init_lread):
4180 * keymap.c (Fdescribe_buffer_bindings, describe_map_tree):
4181 * keyboard.c (parse_tool_bar_item, struct event_head):
4182 * gtkutil.h (xg_get_font_name):
4183 * gtkutil.c (get_dialog_title, create_dialog, xg_get_font_name)
4184 (make_widget_for_menu_item, make_menu_item, create_menus)
4185 (xg_make_tool_item):
4186 * font.c (parse_matrix, font_parse_name):
4187 * floatfns.c (rounding_driver, float_error_fn_name):
4188 * filelock.c (get_boot_time_1, lock_file_1):
4189 * fileio.c (barf_or_query_if_file_exists, check_writable):
4190 * editfns.c (get_system_name, get_operating_system_release)
4191 (Fencode_time, Fset_time_zone_rule):
4192 * dispextern.h (string_cost, per_line_cost, get_named_tty, init_tty):
4193 * buffer.c (defvar_per_buffer): Use const.
4194
7815fe19 41952010-08-08 Kenichi Handa <handa@m17n.org>
7a84eee5 4196
692f3ddc 4197 * charset.c: Include <stdlib.h>.
7a84eee5
KH
4198 (struct charset_sort_data): New struct.
4199 (charset_compare): New function.
692f3ddc 4200 (Fsort_charsets): New function.
7a84eee5
KH
4201 (syms_of_charset): Declare Fsort_charsets as a Lisp function.
4202
4203 * coding.c (decode_coding_iso_2022): Fix checking of dimension
4204 number in CTEXT extended segment.
4205
7815fe19 42062010-08-08 Juanma Barranquero <lekktu@gmail.com>
f5f6c0e0
JB
4207
4208 * w32fns.c (syms_of_w32fns) <x-max-tooltip-size>: Fix typo in docstring.
4209 * xfns.c (syms_of_xfns) <x-max-tooltip-size>: Reflow docstring.
4210
7815fe19 42112010-08-08 Juanma Barranquero <lekktu@gmail.com>
b756c005
JB
4212
4213 * fns.c (Fsubstring_no_properties, Fnthcdr, Ffeaturep)
4214 (Fhash_table_size): Fix typos in docstrings.
4215 (Fmake_hash_table): Doc fix.
4216
7815fe19 42172010-08-08 Juanma Barranquero <lekktu@gmail.com>
b4f588fa
JB
4218
4219 * minibuf.c (syms_of_minibuf) <read-buffer-function>:
4220 Doc fix (bug#5625).
4221
7815fe19 42222010-08-08 Ken Brown <kbrown@cornell.edu>
9f8c08a7
KB
4223
4224 * dired.c (DIRENTRY_NONEMPTY) [cygwin]: Use d_ino instead of
4225 the MSDOS definition.
4226
1b6d8cf0
DN
42272010-08-08 Dan Nicolaescu <dann@ics.uci.edu>
4228
675e2c69
DN
4229 Use const char* instead of char*.
4230 * xterm.c (x_create_toolkit_scroll_bar):
4231 * xfont.c (xfont_list_pattern):
4232 * xfns.c (x_default_scroll_bar_color_parameter)
4233 (xic_create_fontsetname, x_default_font_parameter)
4234 (x_screen_planes):
4235 * xdisp.c (c_string_pos, number_of_chars, reseat_to_string)
4236 (store_mode_line_string, decode_mode_spec, display_string):
4237 * menu.c (digest_single_submenu):
4238 * keymap.h (initial_define_key, initial_define_lispy_key):
4239 * keymap.c (initial_define_key, initial_define_lispy_key):
4240 * image.c (image_error, image_keyword):
4241 * gtkutil.h (xg_create_widget, xg_create_scroll_bar):
4242 * gtkutil.c (xg_create_widget, xg_create_scroll_bar):
4243 * ftfont.c (struct fc_charset_table, ftfont_spec_pattern)
4244 (ftfont_list, ftfont_match):
4245 * frame.c (frame_parm_table):
4246 * font.h (font_intern_prop, font_parse_xlfd, font_parse_fcname)
4247 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
4248 (font_add_log, font_deferred_log):
4249 * font.c (font_intern_prop, font_parse_xlfd, font_parse_fcname)
4250 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
4251 (font_add_log, font_deferred_log):
4252 * emacs.c (argmatch):
4253 * dispextern.h (struct it):
4254 * coding.c (ENCODE_DESIGNATION):
4255 * charset.c (define_charset_internal): Use const.
4256
25717ca1
DN
4257 * s/freebsd.h (DECLARE_GETPWUID_WITH_UID_T): Remove, unused.
4258
c5683ceb
SM
4259 * xrdb.c: Remove include guard.
4260 Remove DECLARE_GETPWUID_WITH_UID_T conditional it had no effect.
1b6d8cf0
DN
4261 Remove #if 0 code. Replace malloc->xmalloc, free->xfree,
4262 realloc->xrealloc instead of using #defines.
4263
efb41e21
EZ
42642010-08-08 Eli Zaretskii <eliz@gnu.org>
4265
cd21226d 4266 * cmds.c (Fforward_line, Fbeginning_of_line, Fend_of_line):
c5683ceb
SM
4267 * editfns.c (Fline_beginning_position, Fline_end_position):
4268 State in the doc strings that start and end of line are in the
4269 logical order.
cd21226d 4270
efb41e21
EZ
4271 * xdisp.c (display_line): Move the handling of overlay arrow after
4272 the call to find_row_edges. (Bug#6699)
4273
746812d9
CY
42742010-08-07 Chong Yidong <cyd@stupidchicken.com>
4275
4276 * keyboard.c (command_loop_1):
4277 * insdel.c (prepare_to_modify_buffer): Don't call validate_region.
4278
9852377f
CY
42792010-08-07 Chong Yidong <cyd@stupidchicken.com>
4280
4281 * insdel.c (prepare_to_modify_buffer): Save active region text to
4282 Vsaved_region_selection.
4283
4284 * xselect.c (QPRIMARY): Move to keyboard.c.
4285
4286 * keyboard.c (Vselect_active_regions): Move from simple.el.
8d9e03e4
JB
4287 (Vsaved_region_selection, Qx_set_selection, QPRIMARY, Qlazy): New vars.
4288 (command_loop_1): Set window selection prior to deactivating the mark.
9852377f 4289
0e9c8657
JB
42902010-08-07 Juanma Barranquero <lekktu@gmail.com>
4291
4292 * alloc.c (lisp_malloc):
4293 * buffer.c (set_buffer_internal, set_buffer_internal_1):
4294 * charset.h (emacs_mule_charset):
4295 * dispextern.h (inhibit_free_realized_faces, redraw_frame)
4296 (redraw_garbaged_frames, scroll_cost, update_frame, scrolling)
4297 (bitch_at_user):
4298 * lisp.h (Fcheck_coding_system, Fget_text_property)
4299 (Qfunction, Qcompletion_ignore_case, QCwidth, QCsize):
4300 Remove duplicate declarations.
4301
648801d1
DN
43022010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
4303
32bc6709
DN
4304 * process.c: Simplify include logic.
4305
3ef1d108
DN
4306 * keyboard.h (quit_char): Add declaration.
4307 * process.h (QCport, QCspeed, QCprocess, QCbytesize, QCstopbits)
8d9e03e4
JB
4308 (QCparity, Qodd, Qeven, QCflowcontrol, Qhw, Qsw, QCsummary):
4309 Add declarations.
3ef1d108
DN
4310 * sysdep.c:
4311 * w32.c: Remove the above declarations.
4312
97ec208f
DN
4313 Remove extern declarations in .c files, .h files have them.
4314 * xterm.c:
4315 * xdisp.c:
97ec208f
DN
4316 * msdos.c:
4317 * image.c:
4318 * gtkutil.c:
4319 * fileio.c:
4320 * eval.c: Remove declarations.
4321
94eed851
DN
4322 * frame.c (frame_params): Make const.
4323
36e053eb
DN
4324 * lisp.h (fatal_error_signal, emacs_root_dir): Add declaration.
4325
0e843971
DN
4326 * emacs.c (emacs_copyright, emacs_version): Make static.
4327 (Vinitial_window_system, Vauto_save_list_file_name)
4328 (Vinhibit_redisplay): Remove declarations.
4329 (main): Remove HAVE_SHM code, unused. Remove _I386 conditional
4330 for AIX.
4331
648801d1
DN
4332 Use const for some arrays and functions.
4333 * xterm.h (xg_set_icon_from_xpm_data):
4334 * xfns.c (xg_set_icon_from_xpm_data):
4335 * term.c (fkeys):
4336 * keyboard.c (lispy_accent_keys, lispy_function_keys)
4337 (lispy_multimedia_keys, lispy_kana_keys, iso_lispy_function_keys)
4338 (lispy_drag_n_drop_names, scroll_bar_parts, modify_event_symbol)
4339 (frame.c frame_parms):
4340 * emacs-icon.h (gnu_xpm_bits):
4341 * callint.c (callint_argfuns): Use const.
4342
8646d999
J
43432010-08-06 Jan Djärv <jan.h.d@swipnet.se>
4344
4345 * sysdep.c: Move include term.h last of includes (Bug#6812).
4346
cb4545ad
EZ
43472010-08-06 Eli Zaretskii <eliz@gnu.org>
4348
4349 * dispnew.c (realloc_glyph_pool): Zero out newly allocated glyphs.
4350
4351 * msdos.c (IT_display_cursor): Log cursor position on termscript.
4352
4353 * .gdbinit (pgx): Display the avoid_cursor_p flag.
4354
da7e2be6
JB
43552010-08-06 Juanma Barranquero <lekktu@gmail.com>
4356
4357 * makefile.w32-in ($(BLD)/xdisp.$(O)): Update dependencies.
4358
3d608a86
J
43592010-08-06 Jan Djärv <jan.h.d@swipnet.se>
4360
7908fb60
J
4361 * xterm.h (x_get_focus_frame): Declare.
4362
4363 * keyboard.h (poll_for_input_1): Unconditionally declare.
4364
4094bf36
J
4365 * nsterm.h (x_set_menu_bar_lines): Declare.
4366
4367 * window.c: Don't include menu.h, it depends on lots of other .h-files.
4368
3d608a86
J
4369 * xfaces.c (x_create_gc, x_free_gc): Convert to ANSI C prototypes.
4370
4371 * window.c: Include menu.h.
4372
4373 * unexmacosx.c (print_region_list, print_regions)
4374 (build_region_list, find_emacs_zone_regions)
4375 (unexec_regions_merge, read_load_commands, dump_it)
4376 (unexec_init_emacs_zone): Convert to ANSI C prototypes.
4377
4378 * term.c: Check HAVE_SYS_IOCTL_H.
4379
686b968e 4380 * sysdep.c: Check HAVE_TERM_H.
3d608a86 4381
686b968e 4382 * process.c: Check HAVE_UTIL_H. Include nsterm.h if HAVE_NS.
3d608a86
J
4383
4384 * nsterm.m (ns_init_paths, ns_alloc_autorelease_pool)
4385 (ns_ring_bell, ns_defined_color, hide_hourglass)
4386 (x_display_pixel_height, x_display_pixel_width, syms_of_nsterm):
4387 Convert to ANSI C prototypes.
4388 (x_set_window_size, ns_draw_fringe_bitmap, judge): Move declarations
4389 before code.
4390
4391 * nsterm.h : Include sysselect.h.
4392 (x_sync, x_get_focus_frame, x_set_mouse_position)
4393 (x_set_mouse_pixel_position, x_make_frame_visible)
4394 (x_make_frame_invisible, x_iconify_frame, x_char_width, x_char_height)
4395 (x_pixel_width, x_pixel_height, x_set_frame_alpha, x_set_tool_bar_lines)
4396 (x_activate_menubar, free_frame_menubar, ns_init_paths, ns_select)
4397 (syms_of_nsterm, syms_of_nsfns, syms_of_nsmenu, syms_of_nsselect):
686b968e 4398 Declare.
3d608a86
J
4399
4400 * nsmenu.m (popup_activated, name_is_separator)
4401 (syms_of_nsmenu): Convert to ANSI C prototypes.
4402 (runMenuAt): Prototypes and move declarations before code.
4403
4404 * nsimage.m (ns_load_image): Move NSTRACE after declarations.
4405
4406 * nsfont.m (ns_fallback_entity, syms_of_nsfont): Convert to ANSI C
4407 prototypes.
4408
4409 * nsfns.m (have_menus_p, ns_display_info_for_name)
4410 (x_set_cursor_type, ns_appkit_version_str)
4411 (ns_appkit_version_int, ns_do_applescript)
4412 (x_set_scroll_bar_default_width, x_sync, compute_tip_xy)
4413 (syms_of_nsfns): Convert to ANSI C prototypes.
4414
4415 * menu.h (x_set_menu_bar_line): Declare.
4416 (free_menubar_widget_value_tree et.al): Add HAVE_NS for these functions.
4417
4418 * lisp.h (fmod_float): Declare.
4419
4420 * image.c (xpm_scan, xpm_make_color_table_v)
4421 (xpm_put_color_table_v, xpm_get_color_table_v)
4422 (xpm_make_color_table_h, xpm_put_color_table_h)
4423 (xpm_get_color_table_h, xpm_str_to_color_key, xpm_load_image)
4424 (xpm_load): Convert to ANSI C prototypes.
4425
4426 * emacs.c: Include nsterm.h if HAVE_NS.
4427
4428 * bidi.c (bidi_dump_cached_states): Fix fprintf warning.
4429
fce70521
DN
44302010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
4431
4432 * process.c: Remove HAVE_SOCKETS #ifdefs inside #ifdef
4433 subprocesses, only MSDOS does not define HAVE_SOCKETS.
4434 (socket_options): Use const char* for name.
4435
a11889ab
JB
44362010-08-06 Juanma Barranquero <lekktu@gmail.com>
4437
4438 Fix changes in 2010-08-05T23:15:24Z!dann@ics.uci.edu..2010-08-05T23:34:12Z!dann@ics.uci.edu for Windows build.
4439
4440 * xmenu.c [USE_X_TOOLKIT || USE_GTK]:
4441 Don't declare xmalloc_widget_value and digest_single_submenu.
4442
4443 * w32font.c (Qlatin): Remove declaration.
4444
4445 * menu.h (xmalloc_widget_value, digest_single_submenu): Declare.
4446
c95b508f 4447 * dired.c (compile_pattern): Restore declaration.
a11889ab 4448
6254cdda
DN
44492010-08-05 Dan Nicolaescu <dann@ics.uci.edu>
4450
04bab72c
DN
4451 Remove extern declarations in .c files, .h files have them.
4452 * data.c:
4453 * dired.c:
4454 * editfns.c:
4455 * filelock.c:
4456 * fns.c:
4457 * font.c:
4458 * fontset.c:
4459 * frame.c:
4460 * fringe.c:
4461 * ftfont.c:
4462 * gtkutil.c:
4463 * indent.c:
4464 * keyboard.c:
4465 * keymap.c:
4466 * lread.c:
4467 * menu.c:
4468 * print.c:
4469 * search.c:
4470 * sound.c:
4471 * window.c:
4472 * xdisp.c:
4473 * xfaces.c:
4474 * xfns.c:
4475 * xfont.c:
4476 * xftfont.c:
4477 * xmenu.c:
4478 * xterm.c: Remove declarations.
4479
dff94ed5
DN
4480 Cleanup syssignal.h.
4481 * syssignal.h (sighold, sigrelse, RETSIGTYPE): Remove, unused.
4482 (main_thread): Move down to remove #ifdef.
4483 (SIGMASKTYPE, SIGEMPTYMASK, SIGFULLMASK, sigmask, sigunblock):
4484 Remove conditional definition following unconditional ones.
4485
99f3388e
DN
4486 * lisp.h: Remove HAVE_SHM code, unused.
4487 (QCmap, QCrehash_size, QCrehash_threshold, QCsize, QCtest)
4488 (QCweakness, Qabove_handle, Qbackquote, Qbar, Qbelow_handle)
4489 (Qborder, Qbottom, Qbox, Qcircular_list, Qcomma, Qcomma_at)
4490 (Qcomma_dot, Qcursor, Qdefault, Qdown, Qend_scroll, Qeq, Qeql)
4491 (Qequal, Qfile_exists_p, Qfont_param, Qfringe, Qfunction)
4492 (Qfunction_documentation, Qhandle, Qhbar, Qheader_line, Qhollow)
4493 (Qidentity, Qleft_margin, Qmenu, Qmenu_bar_update_hook)
4494 (Qmode_line_inactive, Qmouse, Qoverriding_local_map)
4495 (Qoverriding_terminal_local_map, Qratio, Qregion, Qright_margin)
4496 (Qscroll_bar, Qtool_bar, Qtop, Qup, Qvertical_border, Qwhen)
4497 (Qwindow_scroll_functions, Vafter_load_alist)
4498 (Vauto_save_list_file_name, Vface_alternative_font_family_alist)
4499 (Vface_alternative_font_registry_alist, Vface_font_rescale_alist)
4500 (Vface_ignored_fonts, Vinhibit_redisplay, Vminibuffer_list)
4501 (Vprint_length, Vprint_level, Vscalable_fonts_allowed)
4502 (Vshell_file_name, Vsystem_name, Vwindow_scroll_functions)
4503 (Vwindow_system_version, Vx_no_window_manager, initial_argc)
4504 (initial_argv, last_nonmenu_event, load_in_progress)
4505 (noninteractive_need_newline, scroll_margin): Add declarations.
4506
bba3e508
SM
4507 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
4508 Remove declarations, menu.h has them.
99f3388e
DN
4509 (QCbutton, QCtoggle, QCradio, QClabel, extra_keyboard_modifiers)
4510 (Vinput_method_function, Qinput_method_function)
4511 (Qevent_symbol_element_mask, last_event_timestamp):
4512 * dispextern.h (Voverflow_newline_into_fringe):
4513 * font.h (QCantialias, Qp, syms_of_ftfont, syms_of_xfns)
4514 (syms_of_ftxfont, syms_of_xftfont, syms_of_bdffont)
4515 (syms_of_w32font, syms_of_nsfont):
4516 * fontset.h (find_font_encoding, Qlatin):
4517 * frame.h (Qtooltip, Qrun_hook_with_args, Vmenu_bar_mode)
4518 (Vtool_bar_mode, set_frame_menubar):
4519 * ftfont.h (ftfont_font_format, ftfont_get_fc_charset):
4520 * xterm.h (Qx_gtk_map_stock):
4521 * keymap.h (meta_prefix_char): Add declarations.
4522
9f5dd6f2
DN
4523 * term.c: Remove dead code.
4524
6254cdda
DN
4525 Fix emacs -Q -f server-start & emacsclient -t on GNU/Linux.
4526 * term.c (dissociate_if_controlling_tty): Use USG5 instead of
4527 USG. This is equivalent to defined (USG) && !defined (BSD_PGRPS),
4528 which is what was there before BSD_PGRPS was removed.
4529
29cf3e20
EZ
45302010-08-05 Eli Zaretskii <eliz@gnu.org>
4531
4532 * deps.mk (unexcoff.o): Rename unexec.[co] => unexcoff.[co].
4533
4534 * unexcoff.c: Renamed from unexec.c.
4535
aaa0a19a
SM
45362010-08-04 Stefan Monnier <monnier@iro.umontreal.ca>
4537
4538 * sysdep.c (child_setup_tty): Comment-out left-over non-ICANON code.
4539
8d1d9587
JB
45402010-08-03 Johan Bockgård <bojohan@gnu.org>
4541
4542 * data.c (Flocal_variable_p): Handle variable aliases correctly.
e0d62a9b 4543 (Bug#6744)
8d1d9587 4544
9a747ba6
JD
45452010-08-02 Jan Djärv <jan.h.d@swipnet.se>
4546
4d464ae4
JD
4547 * xterm.c (x_create_toolkit_scroll_bar): Only set XtNbeNiceToColormap
4548 to TRUE if depth of screen is < 16.
4549
ac01763e
JD
4550 * gtkutil.c (hierarchy_ch_cb, qttip_cb): Do not define unless
4551 USE_GTK_TOOLTIP.
e0d62a9b
JB
4552 (xg_prepare_tooltip): Return 0 unless USE_GTK_TOOLTIP.
4553 (xg_show_tooltip, xg_hide_tooltip): Do nothing unless USE_GTK_TOOLTIP.
4d464ae4 4554 (xg_create_frame_widgets): Surround tooltip-related code with ifdef
ac01763e
JD
4555 USE_GTK_TOOLTIP.
4556 (xg_free_frame_widgets): Don't delete ttip_* unless USE_GTK_TOOLTIP.
4557
4558 * xterm.h (USE_GTK_TOOLTIP): New define.
4559 (struct x_output): Put ttip_* inside ifdef USE_GTK_TOOLTIP.
4560
9a747ba6
JD
4561 * sysdep.c (child_setup_tty): Enable ICANON in lflags and set VEOF
4562 to Control-D (Bug#6771).
4563
7b0815ba
JB
45642010-08-02 Juanma Barranquero <lekktu@gmail.com>
4565
4566 * editfns.c (Fregion_beginning, Fregion_end): Doc fixes (bug#6493).
4567 Wording by Drew Adams <drew.adams@oracle.com>.
4568
aa1859f5
J
45692010-08-01 Jan Djärv <jan.h.d@swipnet.se>
4570
4571 * xterm.h (struct x_output): Add ttip_widget, ttip_window and
4572 ttip_lbl.
4573
4574 * xterm.c (x_clear_frame): Check FRAME_GTK_WIDGET (f) before
4575 calling gtk_widget_queue_draw.
4576 (x_free_frame_resources): Call xg_free_frame_widgets.
4577
4578 * xfns.c (x_gtk_use_system_tooltips): New variable.
4579 (Fx_show_tip): If USE_GTK and x_gtk_use_system_tooltips, call
4580 new gtkutil tooltip functions to show the tooltip.
4581 (Fx_hide_tip): Call xg_hide_tooltip.
4582 (syms_of_xfns): Defvar x-gtk-use-system-tooltips.
4583
4584 * gtkutil.h (xg_free_frame_widgets, xg_prepare_tooltip)
4585 (xg_show_tooltip, xg_hide_tooltip): Declare.
4586
4587 * gtkutil.c (hierarchy_ch_cb, qttip_cb, xg_prepare_tooltip)
e0d62a9b
JB
4588 (xg_show_tooltip, xg_hide_tooltip, xg_free_frame_widgets):
4589 New functions.
aa1859f5
J
4590 (xg_create_frame_widgets): Set ttip_* to 0. Set a dummy tooltip
4591 text so qttip_cb is called. Connect query-tooltip to qttip_cb.
4592 Remove code that is commented out.
4593
76417ef4
SM
45942010-08-01 Stefan Monnier <monnier@iro.umontreal.ca>
4595
4596 * keymap.c (Fdefine_key, Flookup_key): Say what event is invalid.
4597
16041401
CY
45982010-07-31 Chong Yidong <cyd@stupidchicken.com>
4599
4600 * xselect.c (x_own_selection): Use list4.
4601
2c09a58f
DN
46022010-07-30 Dan Nicolaescu <dann@ics.uci.edu>
4603
4604 * buffer.c (Qwindow): Do not define, already defined in data.c.
4605 (syms_of_buffer): Do not intern and staticpro Qwindow. (Bug#6760)
4606
59df9fdd 46072010-07-29 Chad Brown <yandros@mit.edu>
1c97e857 4608
59df9fdd
JB
4609 Replace tests for SYSV_SYSTEM_DIR with HAVE_DIRENT_H, set via autoconf.
4610 * dired.c, sysdep.c: Test HAVE_DIRENT_H instead of SYSV_SYSTEM_DIR.
4611 * config.in: Undef HAVE_DIRENT_H.
1c97e857 4612 * s/aix4-2.h, s/bsd-common.h, s/cygwin.h, s/gnu-linux.h,
59df9fdd 4613 * s/msdos.h, s/usg5-4.h: Don't define SYSV_SYSTEM_DIR.
1c97e857 4614
1b231651
DN
46152010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
4616
4617 Rename s/usg5-4.h -> s/usg5-4-common.h.
4618 * s/usg5-4.h: Rename file to ...
4619 * s/usg5-4-common.h: ... this for consistency with what we do for BSD.
4620 * s/unixware.h:
4621 * s/sol2-6.h:
4622 * s/irix6-5.h: Update includes accordingly.
4623
bfeabdc3
JD
46242010-07-29 Jan Djärv <jan.h.d@swipnet.se>
4625
2ebf1083
J
4626 * xfns.c (x_set_tool_bar_position): Remove debug fprintf.
4627
bfeabdc3 4628 * xterm.h (struct x_output): Add toolbar_top_height,
e0d62a9b
JB
4629 toolbar_bottom_height, toolbar_left_width, toolbar_right_width.
4630 Remove toolbar_height.
4631 If USE_GTK: Add hbox_widget and toolbar_in_hbox.
bfeabdc3
JD
4632 (FRAME_TOOLBAR_TOP_HEIGHT, FRAME_TOOLBAR_BOTTOM_HEIGHT)
4633 (FRAME_TOOLBAR_LEFT_WIDTH, FRAME_TOOLBAR_RIGHT_WIDTH): New macros.
4634 (FRAME_TOOLBAR_HEIGHT): Is now TOP_HEIGHT + BOTTOM_HEIGHT.
4635
4636 * xterm.c (x_set_window_size_1): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
4637
4638 * xfns.c (x_set_tool_bar_position): New function.
4639 (xic_set_statusarea): Use FRAME_TOOLBAR_TOP_HEIGHT.
4640 (x_frame_parm_handlers): Add x_set_tool_bar_position.
e0d62a9b 4641 (syms_of_xfns): If USE_GTK, provide move-toolbar.
bfeabdc3
JD
4642
4643 * window.c (calc_absolute_offset): Check for FRAME_TOOLBAR_TOP_HEIGHT
4644 and FRAME_TOOLBAR_LEFT_WIDTH.
4645
4646 * gtkutil.h (xg_change_toolbar_position): Declare.
4647
4648 * gtkutil.c (FRAME_TOTAL_PIXEL_WIDTH): New macro.
4649 (xg_frame_set_char_size): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
4650 (xg_height_or_width_changed): Use FRAME_TOTAL_PIXEL_WIDTH.
4651 (xg_create_frame_widgets): Create a hobox for placing widgets
4652 vertically. Use gtk_box_pack_start.
ef1b0ba7 4653 (xg_height_or_width_changed): Rename from xg_height_changed.
bfeabdc3
JD
4654 (x_wm_set_size_hint): Add FRAME_TOOLBAR_WIDTH to base_width.
4655 (xg_update_frame_menubar, free_frame_menubar): Change to
4656 xg_height_or_width_changed.
4657 (xg_tool_bar_detach_callback): Update left/right/top/bottom tool bar
4658 size correctly. Remove hardcoded 4, instead use handlebox size -
4659 toolbar size.
4660 (xg_tool_bar_attach_callback): Update left/right/top/bottom tool bar
e0d62a9b 4661 size correctly. Use handlebox size + toolbar size as additional size.
bfeabdc3
JD
4662 (xg_pack_tool_bar): POS is a new parameter.
4663 Set orientation of tool bar based on pos.
4664 Only make handlebox_widget if NULL.
4665 Check if tool bar goes to vbox or hbox depending on pos.
4666 (xg_update_tool_bar_sizes): New function.
686b968e 4667 (update_frame_tool_bar): Remove old_req, new_req. Do not get tool bar
bfeabdc3
JD
4668 height, call xg_update_tool_bar_sizes instead.
4669 (free_frame_tool_bar): Remove from hbox or vbox depending on
4670 toolbar_in_hbox, Set all FRAME_TOOLBAR_*_(WIDTH|HEIGHT) to zero.
4671 (xg_change_toolbar_position): New function.
4672
4673 * frame.h (struct frame): Add tool_bar_position.
4674 (Qbottom): Declare.
4675
4676 * frame.c (Qtool_bar_position): New variable.
4677 (make_frame): Set tool_bar_position to Qtop.
4678 (frame_parms): Add tool-bar-position.
4679 (x_report_frame_params): Store tool_bar_position.
4680 (x_set_fringe_width): Reset wm size hint after fringe changes.
4681
26469a38
DN
46822010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
4683
4684 Make lisp_time_argument declaration work on all systems.
4685 * lisp.h (lisp_time_argument): Move declaration ...
4686 * systime.h (lisp_time_argument): ... here
4687 * editfns.c (lisp_time_argument): Remove declaration. (Bug#6751)
4688
8848b728
JD
46892010-07-29 Jan Djärv <jan.h.d@swipnet.se>
4690
4691 * vm-limit.c (POINTER): Add typedef for it.
4692 (start_of_data): Change return type from POINTER to char *.
4693
4694 * frame.h (Qtty_color_mode): Move declaration out of ifdef
4695 HAVE_WINDOW_SYSTEM.
4696
76fd1ee9
DN
46972010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
4698
0441987e
DN
4699 * vm-limit.c: Do not include sys/resource.h, mem-limits.h does it.
4700 Remove reference to __osf__, unused.
4701
56a000c7
DN
4702 * mem-limits.h: Remove duplicated includes.
4703 (NULL): Remove definition, unused.
4704 (POINTER): Remove definition.
4705 (start_of_data): Use char* in prototype, as the function
4706 definition does.
4707
e6cba650
DN
4708 Remove extern declarations from .c files, and them to .h files.
4709 * keyboard.h (Qhelp_echo, waiting_for_input)
4710 (input_available_clear_time, ignore_mouse_drag_p)
4711 (Vdouble_click_time, real_this_command, Vthis_original_command):
4712 * keymap.h (Qremap, Qmenu_item, Voverriding_local_map)
4713 (Voverriding_local_map_menu_flag):
4714 * lisp.h (Qinteractive_form, use_file_dialog)
4715 (Qcursor_in_echo_area, QCascent, QCmargin, QCrelief, Qcount)
4716 (Qextension_data, QCconversion, QCcolor_symbols, QCheuristic_mask)
4717 (QCindex, QCmatrix, QCcolor_adjustment, QCmask)
4718 (Qrisky_local_variable, map_char_table_for_charset, Vprint_level)
4719 (Qfunction, debug_on_next_call, Qfield)
4720 (Vinhibit_field_text_motion, Vuser_login_name, lisp_time_argument)
4721 (Qpriority, Qwindow, Qevaporate, Qbefore_string, Qafter_string)
4722 (Qfile_directory_p, Qinsert_file_contents)
4723 (Qcompletion_ignore_case, Qcompletion_ignore_case)
4724 (Vcompletion_regexp_list, Vhistory_length, completion_ignore_case)
4725 (history_delete_duplicates, minibuffer_auto_raise, Qonly)
4726 (Qfile_name_handler_alist, Qfront_sticky, Qrear_nonsticky)
4727 (Qminibuffer_prompt)
4728 (Vtemporary_file_directory,char_ins_del_vector, Qface):
4729 * xterm.h (gray_bitmap_width, gray_bitmap_height)
4730 (gray_bitmap_bits, xic_create_fontsetname):
4731 * coding.h (Vtranslation_table_for_input): Add extern declarations.
4732
4733 * xsmfns.c (Vuser_login_name):
4734 * xrdb.c (Vdouble_click_time):
4735 * xfaces.c (xic_create_fontsetname):
4736 * w32select.c (waiting_for_input):
4737 * print.c (minibuffer_auto_raise):
4738 * msdos.c (Qhelp_echo):
4739 * macros.c (real_this_command):
4740 * keymap.c (Voverriding_local_map):
4741 * xterm.c (poll_for_input_1, gray_bitmap_width)
4742 (gray_bitmap_height, gray_bitmap_bits;
4743 * xmenu.c ( Voverriding_local_map)
4744 (Voverriding_local_map_menu_flag; Qmenu_item; use_dialog_box)
4745 (use_file_dialog, Xt_app_con):
4746 * xdisp.c (minibuffer_auto_raise, Voverriding_local_map)
4747 (Voverriding_local_map_menu_flag, Qmenu_item, Qface, Qinvisible)
4748 (Qwidth, Qinvisible, Qwindow, Qpriority, Qtool_bar_lines)
4749 (Qtool_bar_lines, ignore_mouse_drag_p):
4750 * minibuf.c (Voverriding_local_map, Qfield, Qfront_sticky)
4751 (Qrear_nonsticky, nconc2):
4752 * keyboard.c (current_global_map, minibuf_level, Qmenu_item)
4753 (Vhistory_length, Vtranslation_table_for_input, Qcomposition)
4754 (Qdisplay, Qafter_string, Qbefore_string, Qundefined):
4755 * fileio.c (use_dialog_box, use_file_dialog, Vuser_login_name)
4756 (minibuf_level, minibuffer_auto_raise, lisp_time_argument):
4757 * eval.c (Qinteractive_form, Qrisky_local_variable, Qfunction)
4758 (gc_in_progress):
4759 * doc.c (Voverriding_local_map, Qremap):
4760 * dired.c (completion_ignore_case, Qcompletion_ignore_case)
4761 (Vcompletion_regexp_list):
4762 * coding.c (Qmac, Qinsert_file_contents, Qwrite_region)
4763 (Qcompletion_ignore_case):
4764 * callint.c (Qcursor_in_echo_area, Qfile_directory_p, Qonly)
4765 (Vhistory_length, Vthis_original_command, real_this_command)
4766 (Qface, Qminibuffer_prompt, history_delete_duplicates):
4767 * image.c (Qrisky_local_variable):
4768 * fontset.c (QCname):
4769 * fns.c (minibuffer_auto_raise, QCname):
4770 * dispnew.c (char_ins_del_cost):
4771 * composite.c (font_fill_lglyph_metrics):
4772 * cmds.c (Qface, Vtranslation_table_for_input):
4773 * charset.c (map_char_table_for_charset, Qfile_name_handler_alist):
4774 * ccl.c (charset_unicode):
4775 * callproc.c (Vtemporary_file_directory):
4776 * buffer.c (emacs_strerror): Remove extern declarations.
4777
4778 * data.c (Qwindow): Make non-static, used from other files too.
4779 * frame.c (validate_x_resource_name): Remove shadow definition for i.
4780
76fd1ee9
DN
4781 * unexec.c (make_hdr): Remove references to NO_REMAP, COFF,
4782 SEGMENT_MASK, SECTION_ALIGNMENT, ADJUST_EXEC_HEADER.
4783 * s/usg5-4.h (COFF):
4784 * s/template.h:
4785 * s/msdos.h (COFF, NO_REMAP):
4786 * s/ms-w32.h (NO_REMAP):
4787 * s/hpux10-20.h (NO_REMAP):
4788 * m/sparc.h (SEGMENT_MASK):
4789 * m/m68k.h (NO_REMAP):
4790 * m/intel386.h (SEGMENT_MASK):
4791 * m/arm.h (NO_REMAP):
4792 * m/alpha.h (COFF):
4793 * m/template.h: Remove references to unused defines.
4794
8a52f00a
JD
47952010-07-28 Jan Djärv <jan.h.d@swipnet.se>
4796
4797 * xsettings.c (Ftool_bar_get_system_style): Also check for
4798 Qtext_image_horiz.
4799
4800 * xdisp.c (Qtext_image_horiz): Define.
4801 (syms_of_xdisp): Initialize Qtext_image_horiz. Add text-image-horiz
087b38a0 4802 to documentation of tool-bar-style.
8a52f00a
JD
4803
4804 * lisp.h (Qtext_image_horiz): Declare.
4805
4806 * gtkutil.c (xg_make_tool_item, xg_show_toolbar_item): Handle tool bar
4807 style text_image_horiz.
4808
89dc303e
DN
48092010-07-27 Dan Nicolaescu <dann@ics.uci.edu>
4810
60799703
DN
4811 * emacs.c (Fkill_emacs): Remove return statement.
4812
37254dc1
DN
4813 * term.c (Qspace, QCalign_to, QCwidth): Remove declarations.
4814 (encode_terminal_code, produce_composite_glyph): Remove unused variables.
bba3e508
SM
4815 (set_tty_color_mode, term_mouse_highlight, term_get_fkeys):
4816 Remove local extern declarations.
37254dc1 4817
71c7345a
DN
4818 * xmenu.c: Do not included lwlib.h, not needed.
4819
6ba577cb
DN
4820 * m/iris4d.h (XUINT, XSET): Remove, not needed.
4821
fdb183d6
DN
4822 * process.c: Move definitions earlier to minimize #ifdefs.
4823
4824 * xterm.h (x_get_customization_string, x_load_resources)
4825 (x_get_resource, x_text_icon, x_text_icon, x_check_errors)
4826 (x_check_errors, x_property_data_to_lisp, defined_color)
4827 (xic_set_xfontset, x_defined_color): Use const.
4828
4829 * xterm.c (xlwmenu_window_p, xlwmenu_redisplay): Remove declarations.
4830 (x_text_icon, x_check_errors, x_connection_closed): Use const.
4831
4832 * xselect.c (selection_data_to_lisp_data)
4833 (x_property_data_to_lisp):
4834 * xrdb.c (x_get_string_resource, file_p)
4835 (x_get_customization_string, magic_file_p, search_magic_path)
4836 (get_system_app, get_user_app, x_load_resources, x_get_resource)
4837 (x_get_string_resource): Use const.
4838
4839 * xfns.c: Include xlwmenu.h when USE_LUCID.
4840 (x_defined_color, xic_set_xfontset): Use const.
4841 (Fx_hide_tip): Remove local extern declaration.
4842
4843 * xfaces.c (Qmouse_face): Remove declaration.
4844 (face_color_gray_p, tty_defined_color, defined_color)
686b968e 4845 (face_color_gray_p, face_color_supported_p): Add const.
fdb183d6
DN
4846
4847 * xdisp.c (do_mouse_tracking): Remove declaration.
4848 (add_to_log): Use const.
4849
4850 * minibuf.c (Qmouse_face): Remove declaration.
4851
4852 * msdos.c (IT_note_mouse_highlight): Remove local extern declaration.
4853
4854 * keyboard.h (do_mouse_tracking): Add declaration.
4855
4856 * image.c (QCwidth, QCheight, QCforeground, QCbackground, QCfile)
4857 (QCdata, QCtype, Qcenter): Remove declarations.
4858
4859 * frame.c (x_get_resource_string, x_get_string_resource)
4860 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
4861 (x_default_parameter): Use const.
4862
4863 * font.c (Qnormal, QCtype, QCfamily, QCweight, QCslant, QCwidth)
4864 (QCheight, QCsize, QCname): Remove declarations.
4865
4866 * emacs.c (main): Remove local extern declaration.
4867
4868 * editfns.c (region_limit, syms_of_editfns): Remove local extern
4869 declarations.
4870
4871 * dispnew.c: Remove duplicate #include <unistd.h>.
4872 (update_window, update_frame_1, init_display): Remove local extern
4873 declarations.
4874
4875 * dispextern.h (add_to_log): Remove declaration.
4876 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
4877 (x_frame_get_and_record_arg, x_default_parameter): Add const.
4878
4879 * dired.c (scmp): Add const.
4880 (directory_files_internal): Remove local extern declaration.
4881
4882 * data.c (Finteractive_form): Use const.
4883
4884 * composite.c (syms_of_composite): Remove local extern declarations.
4885
4886 * charset.c (add_to_log): Remove declaration.
4887
4888 * character.c (strwidth, parse_str_to_multibyte): Add const.
4889
4890 * character.h (strwidth, parse_str_to_multibyte): Likewise.
4891
4892 * buffer.c (Fset_buffer_multibyte): Remove local extern declaration.
4893
89dc303e 4894 * lisp.h (Fkill_emacs): Mark as NO_RETURN.
fdb183d6
DN
4895 (Lisp_Subr): Make doc and intspec constant.
4896 (QCsize, Qspace, Qcenter, QCalign_to, QCdata, QCfile, QCtype)
4897 (Qlocal, Qapply, Qnormal, QCfamily, QCweight, QCslant, QCwidth)
4898 (QCheight, QCsize, QCname, QCwidth, QCforeground)
4899 (QCbackground, add_to_log, stack_base, Vmark_even_if_inactive)
4900 (display_arg): Add declarations.
89dc303e 4901
0ed082fe 49022010-07-27 Christoph Scholtes <cschol2112@gmail.com>
a2a0d36b
CS
4903
4904 * minibuf.c (Fread_buffer): Doc fix (bug#6528).
4905
0ed082fe
JB
4906 * window.c (Fwindow_height): Doc fix (bug#6518).
4907
49082010-07-27 Juanma Barranquero <lekktu@gmail.com>
4909
4910 * buffer.c (syms_of_buffer) <fringe-indicator-alist>: Doc fix.
4911
ccaf0336
DN
49122010-07-26 Dan Nicolaescu <dann@ics.uci.edu>
4913
977105dc
DN
4914 * keyboard.c (Ftop_level, Fexit_recursive_edit)
4915 (Fabort_recursive_edit): Remove return statements in NO_RETURN
4916 functions.
4917
f5ada890
DN
4918 * frame.h (Qtty_color_mode): Add declaration.
4919
ccaf0336
DN
4920 * lisp.h (Ftop_level, Fexit_recursive_edit)
4921 (Fabort_recursive_edit): Mark as NO_RETURN.
4922
dfe3c90f
KH
49232010-07-26 Kenichi Handa <handa@m17n.org>
4924
4925 * font.c (Ffont_shape_gstring): Terminate GSTRING by nil if the
e29eb8cf 4926 number of glyphs gets smaller than the original length. (Bug#6621)
dfe3c90f 4927
7d383292
JB
49282010-07-26 Juanma Barranquero <lekktu@gmail.com>
4929
4930 * lread.c (unreadpure, mapatoms_1): Make static.
4931
da31e629
JB
49322010-07-25 Juanma Barranquero <lekktu@gmail.com>
4933
4934 * terminfo.c (tparam): Fix prototype of tparm.
4935
7bfa6d77
AS
49362010-07-25 Andreas Schwab <schwab@linux-m68k.org>
4937
dcc19aac
AS
4938 * emacs.c (main) [PROFILING]: Use __executable_start if defined to
4939 find start of text segment.
4940 * dispnew.c (safe_bcopy): Don't define if HAVE___EXECUTABLE_START
4941 is defined.
4942
7bfa6d77
AS
4943 * callproc.c (set_initial_environment): Avoid unbalanced braces.
4944
63f9a672
KB
49452010-07-25 Ken Brown <kbrown@cornell.edu>
4946
4947 * vm-limit.c (check_memory_limits): Fix previous change;
4948 accidentally reverted an earlier change.
4949
24933075
KB
49502010-07-25 Ken Brown <kbrown@cornell.edu>
4951
4952 * mem-limits.h (BSD4_2) [cygwin]: Don't define here; instead...
4953 * vm-limit.c: ...add 'defined (CYGWIN)' here (Bug#6715).
4954
361358ea
JB
49552010-07-25 Juanma Barranquero <lekktu@gmail.com>
4956
4957 * callproc.c (relocate_fd): Set inside #ifndef WINDOWSNT.
4958 * dired.c (opendir, readdir): Fix prototypes.
4959 * editfns.c (w32_get_internal_run_time): Fix prototypes.
4960 * keyboard.c (input_available_signal): Declare inside #ifdef SIGIO.
4961 * ndir.h (opendir, readdir, seekdir, closedir): Fix prototypes.
4962 (telldir): Remove declaration.
4963 * ralloc.c (real_morecore, __morecore): Fix prototypes.
4964 * sound.c (alsa_sound_perror): Declare inside #ifdef HAVE_ALSA.
4965 * syssignal.h (strsignal): Fix prototype.
4966 * term.c (tparam): Fix prototype.
4967 (term_get_fkeys_address, term_get_fkeys_kboard, term_get_fkeys_1)
4968 (term_get_fkeys): Set inside "#ifndef DOS_NT".
4969 * vm-limit.c (check_memory_limits): Fix prototypes of real_morecore
4970 and __morecore.
4971 * w32gui.h (XParseGeometry): Fix prototype.
4972 * w32heap.h (get_data_start, get_data_end, init_heap): Fix prototypes.
4973 * w32term.c (my_set_focus): Declare inside #if 0.
4974 * w32term.h (x_window_to_frame, x_display_info_for_name, w32_term_init)
4975 (w32_fill_rect, w32_clear_window, init_crit, delete_crit, signal_quit)
4976 (drain_message_queue, get_next_msg, post_msg, parse_button)
4977 (ClipboardSequence_Proc): Fix prototypes.
4978 (wait_for_sync): Remove declaration.
4979
630b9592
JB
49802010-07-24 Juanma Barranquero <lekktu@gmail.com>
4981
4982 * w32fns.c (w32_to_x_color): Remove, unused.
4983
6a0d6611
AS
49842010-07-24 Andreas Schwab <schwab@linux-m68k.org>
4985
4986 * lisp.h: Remove leftover P_.
4987
4e8608ff
DN
49882010-07-24 Dan Nicolaescu <dann@ics.uci.edu>
4989
4990 * ecrt0.c, unexalpha.c: Remove files, unused.
4991
c8197983
AS
49922010-07-24 Andreas Schwab <schwab@linux-m68k.org>
4993
4994 * cmds.c (internal_self_insert): Make static.
4995 * lisp.h (internal_self_insert): Remove declaration.
4996
97b372d7
JB
49972010-07-23 Juanma Barranquero <lekktu@gmail.com>
4998
33ac0414
JB
4999 * alloc.c (free_float):
5000 * font.c [ENABLE_CHECKING] (font_match_xlfd, font_check_xlfd_parse):
5001 * frame.c (delete_frame_handler):
5002 * ralloc.c (reorder_bloc):
5003 * w32menu.c (menubar_id_to_frame, add_left_right_boundary):
5004 Remove unused static functions.
5005
94da8397
JB
5006 * menu.c (cleanup_popup_menu): Set inside "#ifdef HAVE_NS";
5007 it is called only from NS code.
5008
2e6c8532
JB
5009 * w32term.c (my_set_focus): #ifdef away; it is called only from
5010 "#ifdef 0" code.
5011
97b372d7
JB
5012 * w32fns.c (x_edge_detection):
5013 * xfaces.c (may_use_scalable_font_p):
5014 Remove obsolete static declarations.
5015
7c3320d8
JB
50162010-07-20 Juanma Barranquero <lekktu@gmail.com>
5017
5018 * alloc.c (emacs_blocked_free, emacs_blocked_malloc)
5019 (emacs_blocked_realloc, uninterrupt_malloc):
5020 * fringe.c (w32_reset_fringes):
5021 * image.c (convert_mono_to_color_image, lookup_rgb_color)
5022 (init_color_table, XPutPixel, jpeg_resync_to_restart_wrapper):
5023 * sound.c (be2hs, do_play_sound):
5024 * vm-limit.c (get_lim_data, ret_lim_data):
5025 * w32term.c (x_free_frame_resources):
5026 * xfaces.c (x_create_gc, x_free_gc):
5027 Convert definitions to standard C.
5028
d5273788
SM
50292010-07-20 Stefan Monnier <monnier@iro.umontreal.ca>
5030
5031 * eval.c (Feval, Ffuncall): Use the new names.
5032
5033 * lisp.h (struct Lisp_Subr): Rename `am' to aMANY and add aUNEVALLED.
5034 (DEFUN): Add braces around the union initialisation and use ## to
5035 specify the right union alternative and avoid a cast.
5036
8d16a259
JB
50372010-07-18 Juanma Barranquero <lekktu@gmail.com>
5038
5039 * makefile.w32-in ($(BLD)/keyboard.$(O)): Update dependencies.
5040
3b8eff32
CY
50412010-07-17 Chong Yidong <cyd@stupidchicken.com>
5042
5043 * frame.c (make_initial_frame): Use set_menu_bar_lines (Bug#6660).
5044
499322ce
J
50452010-07-17 Jan Djärv <jan.h.d@swipnet.se>
5046
5047 * gtkutil.c (xg_event_is_for_menubar): Also check that event window
5048 is related to the menu bar (Bug#6499).
a628ad9d 5049 (xg_frame_resized): GTK_IS_MAPPED => gtk_widget_get_mapped, for Gtk 3.0.
499322ce 5050
f6003da5 50512010-07-16 Jan Djärv <jan.h.d@swipnet.se>
b78f9767
J
5052
5053 * xterm.h (x_menubar_window_to_frame): Second parameter is XEvent*.
5054
5055 * xterm.c (handle_one_xevent): Pass event to x_menubar_window_to_frame.
5056
5057 * xmenu.c (x_activate_menubar): Revert previous fix for Bug#6499,
5058 i.e. don't put back ButtonRelease (Bug#6608).
5059
5060 * xfns.c (x_menubar_window_to_frame): Take XEvent as second parameter
5061 instead of Window. Call xg_event_is_for_menubar when
5062 USE_GTK (Bug#6499).
5063
5064 * gtkutil.h (xg_event_is_for_menubar): Declare.
5065
5066 * gtkutil.c (xg_event_is_for_menubar): New function (Bug#6499).
5067
f6003da5 50682010-07-16 Eli Zaretskii <eliz@gnu.org>
1f60c16a
EZ
5069
5070 * w32fns.c (x_set_foreground_color): Fix setting the cursor color
5071 when it's the same as the old foreground. (Bug#6609)
5072
23243f29
J
50732010-07-16 Jan Djärv <jan.h.d@swipnet.se>
5074
5075 * xmenu.c (free_frame_menubar): Only call x_set_window_size if
5076 widget is non-null (Bug#6645).
5077
2b23d2a6
AS
50782010-07-15 Andreas Schwab <schwab@linux-m68k.org>
5079
01b564ff
AS
5080 * xterm.c (x_fully_uncatch_errors, x_trace_wire, x_check_font):
5081 Convert old-style definition.
5082
2b23d2a6
AS
5083 * xmenu.c (create_and_show_popup_menu, xmenu_show): Fix type of
5084 timestamp argument.
5085
c4affd2c
EZ
50862010-07-15 Eli Zaretskii <eliz@gnu.org>
5087
5088 * fringe.c (update_window_fringes): Restore mistakenly reverted
5089 code from 2010-04-17T12:33:05Z!eliz@gnu.org merged in 2010-04-20T13:31:28Z!eliz@gnu.org.
5090
cf28cebc
J
50912010-07-14 Jan Djärv <jan.h.d@swipnet.se>
5092
5093 * xterm.c (xm_scroll_callback, x_process_timeouts): K&R => prototype.
5094 (SET_SAVED_KEY_EVENT): Remove (not used).
5095 (SET_SAVED_MENU_EVENT): Rename to SET_SAVED_BUTTON_EVENT and
5096 remove size parameter.
5097 (handle_one_xevent): Check popup_activated () for menu for Xt also.
5098 Remove #ifdef USE_GTK around finish = X_EVENT_DROP.
5099 Remove #ifdef USE_MOTIF code that did SET_SAVED_BUTTON_EVENT for
5100 ButtonRelease.
6b2c4bd9
J
5101 (x_set_window_size_1): scroll_bar_actual_width is always
5102 SCROLL_BAR_COLS * COLUMN_WIDTH for the purpose of frame sizing.
cf28cebc
J
5103
5104 * xdisp.c (pending_menu_activation): Remove extern declaration.
5105 (prepare_menu_bars): Remove setting of pending_menu_activation.
5106
5107 * xmenu.c (pending_menu_activation): Remove.
f6003da5
JB
5108 (x_activate_menubar): Set popup_activated_flag for Xt also.
5109 Remove setting of pending_menu_activation.
cf28cebc
J
5110 (set_frame_menubar): Remove check of pending_menu_activation.
5111 Declare menubar_size before code. Correct spelling in comment.
5112
f6c1c771
KH
51132010-07-14 Kenichi Handa <handa@m17n.org>
5114
5115 * font.c (font_open_entity): Cancel previous change.
5116 (Ffont_get): Don't check FONT_ENTITY_INDEX of a font-object.
5117
20477505
EZ
51182010-07-13 Eli Zaretskii <eliz@gnu.org>
5119
77defa9a
EZ
5120 Remove subprocesses #ifdefs.
5121 * process.c <inhibit_sentinels>: Move to the common part.
5122 (Fwaiting_for_user_input_p): Move to the common part; return nil
5123 if async subprocesses aren't supported.
5124 * sysdep.c (wait_for_termination) [!MSDOS]: Don't compile on
5125 MS-DOS. Remove "#ifdef subprocesses".
5126 (sys_subshell, sys_select): Remove "#ifdef subprocesses".
5127 (gettimeofday): Remove "#ifdef subprocesses".
5128 (wait_without_blocking): Remove function.
5129 (flush_pending_output, child_setup_tty): Don't compile on MS-DOS.
5130 Remove "#ifdef subprocesses".
5131 (child_setup_tty): Use WINDOWSNT instead of DOS_NT, since not
5132 compiled on MS-DOS.
5133 * callproc.c (Fcall_process) [!MSDOS]: Don't call
5134 wait_for_termination on MS-DOS.
5135 * emacs.c (shut_down_emacs): Remove "#ifndef subprocesses" from
5136 initialization of inhibit_sentinels.
5137 * keyboard.c (record_asynch_buffer_change): Remove "#ifdef
5138 subprocesses" conditional.
5139 * callproc.c (Fcall_process) [!subprocesses]: Don't call
5140 wait_for_termination, since `buffer' cannot be an integer when
5141 async subprocesses are not supported
5142 * xdisp.c (decode_mode_spec): Use `MSDOS' instead of `subprocesses'
5143 for ifdefing away the call to Fprocess_status.
5144
20477505
EZ
5145 * process.c (add_keyboard_wait_descriptor) [!subprocesses]: Ifdef
5146 away the entire body of the function.
5147
b3ffc17c
DN
51482010-07-13 Dan Nicolaescu <dann@ics.uci.edu>
5149
01faa934
DN
5150 Remove subprocesses #ifdefs from term.c.
5151 * process.c (add_keyboard_wait_descriptor)
5152 (delete_keyboard_wait_descriptor): Move to common section, do
5153 nothing when subprocesses is not defined.
a628ad9d
JB
5154 * term.c (Fsuspend_tty, Fresume_tty, init_tty):
5155 Remove subprocesses #ifdefs.
01faa934 5156
b3ffc17c
DN
5157 Convert maybe_fatal to standard C.
5158 * lisp.h (verror): Declare.
5159 * eval.c (verror): New function containing the code from ...
5160 (error): ... this. Call verror.
5161 * term.c (vfatal): New function containing the code from ...
5162 (fatal): ... this. Call vfatal.
5163 (maybe_fatal): Convert to standard C, use variable number of
5164 arguments. Declare as non-return.
5165 (init_tty): Fix maybe_fatal call.
5166
0521f580
DN
51672010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
5168
5169 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_expose)
5170 (_scroll_bar_note_movement): Convert definitions to standard C.
5171 * xmenu.c (menu_help_callback, pop_down_menu, xmenu_show):
5172 * xfns.c (hack_wm_protocols, x_window, x_window): Likewise.
5173
ebd15611
DN
51742010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
5175
5176 * xterm.c (x_frame_of_widget, x_alloc_nearest_color_for_widget)
5177 (x_alloc_lighter_color_for_widget, cvt_string_to_pixel)
5178 (cvt_pixel_dtor, x_window_to_menu_bar, xt_action_hook)
5179 (xaw_jump_callback, xaw_scroll_callback)
5180 (x_create_toolkit_scroll_bar, x_set_toolkit_scroll_bar_thumb)
bba3e508
SM
5181 (x_wm_set_size_hint, x_activate_timeout_atimer):
5182 Convert definitions to standard C.
ebd15611
DN
5183 * xmenu.c (menubar_id_to_frame, popup_get_selection)
5184 (popup_activate_callback, popup_deactivate_callback)
5185 (menu_highlight_callback, menubar_selection_callback)
5186 (apply_systemfont_to_dialog, apply_systemfont_to_menu)
5187 (free_frame_menubar, popup_selection_callback, as)
5188 (create_and_show_popup_menu, dialog_selection_callback)
5189 (create_and_show_dialog):
5190 * xfns.c (hack_wm_protocols, x_window):
5191 * xfaces.c (x_update_menu_appearance):
5192 * widget.c (get_default_char_pixel_size, pixel_to_char_size)
5193 (char_to_pixel_size, round_size_to_char, get_wm_shell)
5194 (set_frame_size, update_wm_hints, setup_frame_gcs)
5195 (update_various_frame_slots, update_from_various_frame_slots)
5196 (EmacsFrameInitialize, EmacsFrameRealize, EmacsFrameResize)
5197 (EmacsFrameSetValues, EmacsFrameQueryGeometry)
5198 (EmacsFrameSetCharSize, widget_store_internal_border): Likewise.
5199
de06a2dd
AS
52002010-07-12 Andreas Schwab <schwab@linux-m68k.org>
5201
a628ad9d 5202 * dbusbind.c (xd_initialize): Don't compare boolean with a constant.
de06a2dd 5203
fc549af9
EZ
52042010-07-12 Eli Zaretskii <eliz@gnu.org>
5205
5206 * process.c (setup_process_coding_systems): Move to the part
5207 shared by non-subprocesses systems, and make its body empty when
5208 subprocesses is not defined.
5209 (close_process_descs): Move to the part shared by non-subprocesses
5210 systems.
1408902e
EZ
5211 (wait_reading_process_output) [!subprocesses]: Convert arg list to
5212 ANSI C.
fc549af9 5213
d5a3eaaf
AS
52142010-07-12 Andreas Schwab <schwab@linux-m68k.org>
5215
5216 * editfns.c (transpose_markers): Convert old-style definition.
5217 * emacs.c (abort, shut_down_emacs, fixup_locale)
5218 (synchronize_system_time_locale)
5219 (synchronize_system_messages_locale, syms_of_emacs): Likewise.
5220 * floatfns.c (extract_float, matherr, init_floatfns)
5221 (syms_of_floatfns): Likewise.
5222 * fns.c (make_hash_table): Likewise.
5223 * ftfont.c (ftfont_get_otf, ftfont_otf_features)
5224 (ftfont_otf_capability, ftfont_get_glyph_id, ftfont_get_metrics)
5225 (ftfont_drive_otf, ftfont_shape_by_flt, ftfont_shape)
5226 (ftfont_variation_glyphs): Likewise.
5227 * gtkutil.c (xg_create_widget, xg_modify_menubar_widgets): Likewise.
5228 * keymap.c (describe_map_tree, describe_map, describe_vector): Likewise.
5229 * lread.c (read_filtered_event): Likewise.
5230 * minibuf.c (read_minibuf_noninteractive, read_minibuf): Likewise.
5231 * process.c (wait_reading_process_output): Likewise.
5232 * scroll.c (do_line_insertion_deletion_costs): Likewise.
5233 * search.c (search_buffer, boyer_moore): Likewise.
5234 * syntax.c (scan_sexps_forward): Likewise.
5235 * xdisp.c (try_scrolling): Likewise.
5236 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
5237 (face_at_string_position): Likewise.
5238 * xfns.c (x_default_scroll_bar_color_parameter): Likewise.
5239 * xselect.c (x_get_window_property, receive_incremental_selection)
5240 (x_get_window_property_as_lisp_data, lisp_data_to_selection_data):
5241 Likewise.
5242 * xterm.c (x_draw_relief_rect, x_draw_box_rect): Likewise.
5243
6f704c76
DN
52442010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
5245
ded80a25
DN
5246 * callproc.c (child_setup): Remove subprocesses conditional.
5247 Remove code dealing with SET_EMACS_PRIORITY, unused.
5248
49d937f4 5249 * buffer.c (Fset_buffer_multibyte): Remove subprocesses conditional.
2e31d424
DN
5250 * process.c (close_process_descs): Use DOS_NT instead of WINDOWSNT.
5251
5252 * emacs.c (__do_global_ctors, __do_global_ctors_aux)
5253 (__do_global_dtors, __main): Use void in definition.
5254 (main): Remove code dealing with SET_EMACS_PRIORITY, unused.
5255 Remove SYMS_MACHINE code, unused. Remove SYMS_SYSTEM, inline
5256 the only users from ...
5257 * s/ms-w32.h (SYMS_SYSTEM): ... here and ...
5258 * s/msdos.h (SYMS_SYSTEM): ... here. Remove.
5259 (HAVE_VOLATILE): Remove, unused.
5260
6f704c76
DN
5261 Convert more function definitions to standard C.
5262 * xdisp.c (window_box_edges, handle_single_display_spec)
5263 (display_string): Convert definition to standard C.
5264 * scroll.c (do_direct_scrolling, scrolling_1):
5265 * dispnew.c (allocate_matrices_for_frame_redisplay)
5266 (mirrored_line_dance):
5267 * coding.c (code_convert_string):
5268 * charset.c (map_charset_chars):
5269 * ccl.c (Fccl_program_p, Fccl_execute, Fccl_execute_on_string)
5270 (Fregister_ccl_program, Fregister_code_conversion_map):
5271 * keyboard.c (kbd_buffer_nr_stored): Likewise.
5272 (head_table): Make static and const.
5273
e6cfa7c3
AS
52742010-07-12 Andreas Schwab <schwab@linux-m68k.org>
5275
5276 * Makefile.in (C_WARNINGS_SWITCH, PROFILING_CFLAGS)
5277 (PROFILING_LDFLAGS): Set from substitution.
5278 (ALL_CFLAGS): Add C_WARNINGS_SWITCH and PROFILING_CFLAGS, put
5279 CFLAGS last.
5280
892dd565
KH
52812010-07-12 Kenichi Handa <handa@m17n.org>
5282
6f2cdcd1
KH
5283 * Makefile.in (lisp): Change hebrew.el to hebrew.elc.
5284 (shortlisp): Likewise.
5285
892dd565
KH
5286 * font.h (enum font_property_index): New member FONT_ENTITY_INDEX.
5287
5288 * font.c (font_open_entity): Record ENTITY in FONT_OBJECT's slot
5289 of FONT_ENTITY_INDEX.
5290 (Ffont_get): If KEY is :otf and the font-object doesn't have the
5291 property, get the property value dynamically.
5292 (Ffont_put): Accept font-entity and font-object too.
ef1b0ba7 5293 (Ffont_get_glyhphs): Rename from Fget_font_glyphs. Arguments and
892dd565 5294 return value changed.
bba3e508 5295 (syms_of_font): Adjust for the above change.
892dd565 5296
ae96d47a
AS
52972010-07-11 Andreas Schwab <schwab@linux-m68k.org>
5298
c8fc18ee
AS
5299 * blockinput.h: Remove obsolete comment.
5300
89887d67
AS
5301 * lisp.h: Include <stddef.h>.
5302 (OFFSETOF): Don't define.
5303 (VECSIZE): Use offsetof instead of OFFSETOF.
5304 (PSEUDOVECSIZE): Likewise.
5305 * process.c (conv_sockaddr_to_lisp): Likewise.
5306 * alloc.c: Don't include <stddef.h>.
5307 * buffer.h (PER_BUFFER_VAR_OFFSET): Use offsetof.
5308
ae96d47a
AS
5309 * process.c: Remove obsolete comment.
5310
635c0aa1
CY
53112010-07-11 Chong Yidong <cyd@stupidchicken.com>
5312
5313 * xfaces.c (Vface_remapping_alist): Doc fix (Bug#6091).
5314
a64df650
AS
53152010-07-11 Andreas Schwab <schwab@linux-m68k.org>
5316
8966b757
AS
5317 * callint.c (Fcall_interactively): Use strchr, strrchr instead of
5318 index, rindex.
5319 * doc.c (get_doc_string, Fsnarf_documentation): Likewise.
5320 * editfns.c (Fuser_full_name, Fformat): Likewise.
5321 * emacs.c (argmatch, sort_args, decode_env_path): Likewise.
5322 * fileio.c (Ffile_symlink_p): Likewise.
5323 * filelock.c (current_lock_owner): Likewise.
5324 * font.c (font_parse_name, font_parse_family_registry): Likewise.
5325 * fontset.c (fontset_pattern_regexp): Likewise.
5326 * lread.c (read1): Likewise.
5327 * sysdep.c (init_system_name): Likewise.
5328 * xfns.c (select_visual): Likewise.
5329 * s/hpux10-20.h (index, rindex): Don't define.
5330 * s/ms-w32.h (index): Likewise.
5331 * s/usg5-4.h: Likewise.
5332
cf237e27
AS
5333 * callproc.c (relocate_fd): Use F_DUPFD if defined.
5334
a8fe7202
AS
5335 * alloc.c (pending_malloc_warning, malloc_warning): Add const.
5336 * callproc.c (relocate_fd, getenv_internal_1, getenv_internal)
5337 (egetenv): Likewise.
5338 * doprnt.c (doprnt): Likewise.
5339 * editfns.c (set_time_zone_rule, format2): Likewise.
5340 * emacs.c (decode_env_path): Likewise.
5341 * eval.c (signal_error, error): Likewise.
5342 * insdel.c (replace_range_2): Likewise.
5343 * keyboard.c (cmd_error_internal): Likewise.
5344 * lread.c (isfloat_string, make_symbol, dir_warning): Likewise.
5345 * print.c (write_string, write_string_1, print_error_message):
5346 Likewise.
5347 * vm-limit.c (warn_function, memory_warnings): Likewise.
5348 * xdisp.c (message1, message1_nolog, message_with_string)
5349 (vmessage, message, message_nolog): Likewise.
5350 * emacs.c: Remove duplicate declaration.
5351 * keyboard.h: Likewise.
5352 * lisp.h: Update prototypes.
5353
bb8e180f
AS
5354 * eval.c: Fix indentation problem.
5355
83380e65
AS
5356 * keyboard.c: Include "process.h"
5357
a64df650
AS
5358 * eval.c: Remove obsolete noinline declaration.
5359 * fns.c: Likewise.
5360
6a8033e1
KR
53612010-07-11 Ken Raeburn <raeburn@raeburn.org>
5362
5363 * doprnt.c (doprnt): Take a va_list argument instead of count and
5364 pointer.
5365 * eval.c (error): Change to a standard-C variadic function.
ef1b0ba7 5366 * xdisp.c (vmessage): Rename from message, made static, and
6a8033e1
KR
5367 changed to take a va_list argument.
5368 (message): New variadic wrapper.
5369 (message_nolog): Now a variadic function, calling vmessage.
5370 * lisp.h: Include stdarg.h for va_list.
5371 (doprnt, error, message, message_nolog): Decls updated.
5372
462aa963
EZ
53732010-07-11 Eli Zaretskii <eliz@gnu.org>
5374
5375 * process.c (syms_of_process) <delete-exited-processes>: Define
5376 even if !subprocesses.
5377 (delete_exited_processes): Ditto.
5378
5379 * msdos.c (syms_of_msdos) <delete-exited-processes>: Remove DEFVAR.
5380 (delete_exited_processes): Don't define.
5381
48104462
CY
53822010-07-10 Chong Yidong <cyd@stupidchicken.com>
5383
5384 * frame.c (make_frame): Initialize menu_bar_lines and
5385 tool_bar_lines members.
bba3e508
SM
5386 (make_initial_frame, make_terminal_frame):
5387 Initialize menu_bar_lines using value of menu-bar-mode.
48104462
CY
5388
5389 * msdos.c (IT_set_frame_parameters): Don't set menu-bar-lines.
5390
f388c88a
EZ
53912010-07-10 Eli Zaretskii <eliz@gnu.org>
5392
5393 * process.c: Reshuffle #include's. Condition some of the global
5394 and static variables on `subprocesses'.
5395 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
5396 Leave only one implementation.
5397 (Fget_buffer_process, Fprocess_inherit_coding_system_flag)
5398 (kill_buffer_processes, Flist_system_processes)
5399 (Fprocess_attributes, init_process, syms_of_process): Unify the
5400 implementations for with subprocesses and without them.
5401
723f5a07
J
54022010-07-09 Jan Djärv <jan.h.d@swipnet.se>
5403
5404 * xmenu.c (set_frame_menubar): Must realize menubar_widget to get the
5405 correct size for Motif.
5406 (free_frame_menubar): Call x_set_window_size to update frame size.
5407
5408 * xfns.c (x_window): Set borderWidth to 0 for pane and
5409 EmacsFrame. Frame size calculation is wrong otherwise.
5410
2536a4b7
MA
54112010-07-09 Michael Albinus <michael.albinus@gmx.de>
5412
5413 * dbusbind.c (xd_initialize): Add new argument RAISE_ERROR, which
5414 allows to suppress errors when polling in Emacs' main loop.
5415 (Fdbus_init_bus, Fdbus_get_unique_name, Fdbus_call_method)
5416 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
5417 (Fdbus_method_error_internal, Fdbus_send_signal)
5418 (xd_get_dispatch_status, xd_read_message, Fdbus_register_signal)
5419 (Fdbus_register_method): Use it. (Bug#6579)
5420
5842a27b
DN
54212010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
5422
5423 * alloc.c: Convert DEFUNs to standard C.
5424 * buffer.c:
5425 * bytecode.c:
5426 * callint.c:
5427 * callproc.c:
5428 * casefiddle.c:
5429 * casetab.c:
5430 * category.c:
5431 * character.c:
5432 * charset.c:
5433 * chartab.c:
5434 * cmds.c:
5435 * coding.c:
5436 * composite.c:
5437 * data.c:
5438 * dbusbind.c:
5439 * dired.c:
5440 * dispnew.c:
5441 * doc.c:
5442 * dosfns.c:
5443 * editfns.c:
5444 * emacs.c:
5445 * eval.c:
5446 * fileio.c:
5447 * filelock.c:
5448 * floatfns.c:
5449 * fns.c:
5450 * font.c:
5451 * fontset.c:
5452 * frame.c:
5453 * fringe.c:
5454 * image.c:
5455 * indent.c:
5456 * insdel.c:
5457 * keyboard.c:
5458 * keymap.c:
5459 * lread.c:
5460 * macros.c:
5461 * marker.c:
5462 * menu.c:
5463 * minibuf.c:
5464 * msdos.c:
5465 * nsfns.m:
5466 * nsmenu.m:
5467 * nsselect.m:
5468 * print.c:
5469 * process.c:
5470 * search.c:
5471 * sound.c:
5472 * syntax.c:
5473 * term.c:
5474 * terminal.c:
5475 * textprop.c:
5476 * undo.c:
5477 * w16select.c:
5478 * w32console.c:
5479 * w32fns.c:
5480 * w32font.c:
5481 * w32menu.c:
5482 * w32proc.c:
5483 * w32select.c:
5484 * window.c:
5485 * xdisp.c:
5486 * xfaces.c:
5487 * xfns.c:
5488 * xmenu.c:
5489 * xselect.c:
5490 * xsettings.c:
5491 * xsmfns.c: Likewise.
5492
d568829b
EZ
54932010-07-08 Eli Zaretskii <eliz@gnu.org>
5494
5495 * process.c (kbd_is_on_hold, hold_keyboard_input)
5496 (unhold_keyboard_input, kbd_on_hold_p) [!subprocesses]: Define.
5497
52214050
J
54982010-07-08 Jan Djärv <jan.h.d@swipnet.se>
5499
5500 * xmenu.c (set_frame_menubar, create_and_show_popup_menu)
5501 (create_and_show_dialog): Don't call apply_systemfont_to_(menu|dialog)
5502 unless USE_LUCID.
5503
313d9eb2
DN
55042010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
5505
a628ad9d
JB
5506 * xdisp.c (store_mode_line_noprop_char): Remove K&R alternative
5507 declaration.
d8825aa3 5508
295d0d8f
DN
5509 Clean up include guards.
5510 * tparam.c: Remove include guards for config.h, string.h and code
5511 that assumes #ifndef emacs.
5512 * termcap.c:
5513 * unexalpha.c:
5514 * sysdep.c:
5515 * filemode.c:
5516 * filelock.c:
5517 * bidi.c: Likewise.
5518
49d9e6b0
DN
5519 Remove prefix-args.c
5520 * prefix-args.c: Remove file.
5521 * autodeps.mk (ALLOBJS): Remove reference to prefix-args.
5522 * Makefile.in (temacs${EXEEXT}): Remove references to
5523 PRE_EDIT_LDFLAGS and POST_EDIT_LDFLAGS.
5524 (mostlyclean): Remove reference to prefix-args.
5525 (prefix-args): Remove.
5526
313d9eb2
DN
5527 Simplify cstart_of_data, start_of_code and related code.
5528 * mem-limits.h: Remove !emacs and _LIBC conditional code.
5529 (start_of_data): Merge into start_of_data function.
5530 * sysdep.c (start_of_text): Remove. Move simplified versions of
5531 it in the only users: unexaix.c and unexec.c.
5532 (read_input_waiting): Remove local declaration of quit_char.
5533 (start, etext): Remove declarations.
5534 (start_of_data): Merge with the version in mem-limits.h and move
5535 to vm-limits.c.
5536 * vm-limit.c (start_of_data): Merged and simplified version of the
5537 code formerly in mem-limits.h and sysdep.c.
5538 * unexec.c (start): New declaration, moved from sysdep.c.
5539 (start_of_text): Simplified version of the code formerly in sysdep.c.
5540 * unexaix.c (start_of_text): Simplified version of the code
5541 formerly in sysdep.c.
5542 * m/alpha.h (HAVE_TEXT_START): Remove.
5543 (TEXT_START): Move ...
5544 * unexalpha.c (TEXT_START): ... here.
5545 * s/hpux10-20.h (TEXT_START): Remove.
5546 * s/darwin.h (TEXT_START):
5547 * m/mips.h (TEXT_START):
5548 * m/macppc.h (HAVE_TEXT_START):
5549 * m/m68k.h (TEXT_START):
5550 * m/iris4d.h (TEXT_START):
5551 * m/intel386.h (TEXT_START):
5552 * m/ibmrs6000.h (TEXT_START):
5553 * m/ia64.h (HAVE_TEXT_START):
5554 * s/msdos.h (TEXT_START): Likewise.
5555
72af86bd
AS
55562010-07-07 Andreas Schwab <schwab@linux-m68k.org>
5557
5558 * alloc.c (overrun_check_malloc, overrun_check_realloc)
5559 (overrun_check_free, xstrdup, allocate_string)
5560 (allocate_string_data, compact_small_strings, Fmake_string)
5561 (make_unibyte_string, make_multibyte_string)
5562 (make_string_from_bytes, make_specified_string, make_float)
5563 (Fcons, allocate_terminal, allocate_frame, make_pure_string)
5564 (Fgarbage_collect): Replace bcopy, safe_bcopy, bzero, bcmp by
5565 memcpy, memmove, memset, memcmp.
5566 * atimer.c (start_atimer, set_alarm): Likewise.
5567 * buffer.c (clone_per_buffer_values, report_overlay_modification)
5568 (mmap_realloc, init_buffer_once): Likewise.
5569 * callint.c (Fcall_interactively): Likewise.
5570 * callproc.c (Fcall_process, Fcall_process_region, child_setup)
5571 (getenv_internal_1): Likewise.
5572 * casefiddle.c (casify_object): Likewise.
5573 * ccl.c (ccl_driver): Likewise.
5574 * character.c (str_as_multibyte, str_to_multibyte): Likewise.
5575 * charset.c (load_charset_map_from_file)
5576 (load_charset_map_from_file, load_charset_map_from_vector)
5577 (Fdefine_charset_internal): Likewise.
5578 * cm.c (Wcm_clear): Likewise.
5579 * coding.c (decode_eol, decode_coding_object)
5580 (Fset_coding_system_priority, make_subsidiaries): Likewise.
5581 * data.c (Faset): Likewise.
5582 * dired.c (directory_files_internal, file_name_completion_stat):
5583 Likewise.
5584 * dispnew.c (new_glyph_matrix, adjust_glyph_matrix)
5585 (clear_glyph_row, copy_row_except_pointers)
5586 (copy_glyph_row_contents, new_glyph_pool, realloc_glyph_pool)
5587 (save_current_matrix, restore_current_matrix)
5588 (build_frame_matrix_from_leaf_window, mirrored_line_dance)
5589 (mirror_line_dance, scrolling_window): Likewise.
5590 * doc.c (Fsnarf_documentation, Fsubstitute_command_keys):
5591 Likewise.
5592 * doprnt.c (doprnt): Likewise.
5593 * editfns.c (Fuser_full_name, make_buffer_string_both)
5594 (Fmessage_box, Fformat, Ftranspose_regions): Likewise.
5595 * emacs.c (sort_args): Likewise.
5596 * eval.c (Fapply, Ffuncall): Likewise.
5597 * fileio.c (Ffile_name_directory, make_temp_name)
5598 (Fexpand_file_name, search_embedded_absfilename)
5599 (Fsubstitute_in_file_name, Ffile_symlink_p, Finsert_file_contents)
5600 (auto_save_error): Likewise.
5601 * fns.c (Fstring_equal, Fcopy_sequence, concat)
5602 (string_to_multibyte, Fstring_as_unibyte, Fstring_as_multibyte)
5603 (internal_equal, Fclear_string, larger_vector, copy_hash_table)
5604 (Fmake_hash_table): Likewise.
5605 * fringe.c (Fdefine_fringe_bitmap): Likewise.
5606 * ftfont.c (ftfont_text_extents): Likewise.
5607 * getloadavg.c (getloadavg): Likewise.
5608 * image.c (define_image_type, make_image, make_image_cache)
5609 (x_create_x_image_and_pixmap, xbm_image_p)
5610 (w32_create_pixmap_from_bitmap_data, xbm_load, xpm_lookup_color)
5611 (xpm_image_p, x_create_bitmap_from_xpm_data, xpm_load)
5612 (init_color_table, x_build_heuristic_mask, pbm_image_p, pbm_load)
5613 (png_image_p, png_read_from_memory, png_load, jpeg_image_p)
5614 (tiff_image_p, tiff_read_from_memory, gif_image_p)
5615 (gif_read_from_memory, gif_load, svg_image_p, gs_image_p):
5616 Likewise.
5617 * indent.c (scan_for_column, compute_motion): Likewise.
5618 * insdel.c (gap_left, gap_right, make_gap_smaller, copy_text)
5619 (insert_1_both, insert_from_gap, replace_range_2): Likewise.
5620 * intervals.c (reproduce_tree, reproduce_tree_obj): Likewise.
5621 * keyboard.c (echo_char, save_getcjmp, restore_getcjmp)
5622 (kbd_buffer_store_event_hold, apply_modifiers_uncached)
5623 (store_user_signal_events, menu_bar_items, tool_bar_items)
5624 (process_tool_bar_item, append_tool_bar_item)
5625 (read_char_minibuf_menu_prompt, read_key_sequence)
5626 (Fread_key_sequence, Fread_key_sequence_vector, Frecent_keys):
5627 Likewise.
5628 * keymap.c (current_minor_maps, Fdescribe_buffer_bindings):
5629 Likewise.
5630 * lisp.h (STRING_COPYIN): Likewise.
5631 * lread.c (Fload, read1, oblookup): Likewise.
5632 * msdos.c (Frecent_doskeys): Likewise.
5633 * nsfns.m (Fx_create_frame): Likewise.
5634 * nsfont.m (nsfont_open, nsfont_text_extents, ns_glyph_metrics):
5635 Likewise.
5636 * nsimage.m (EmacsImage-initFromSkipXBM:width:height:)
5637 (EmacsImage-initForXPMWithDepth:width:height:flip:length:):
5638 Likewise.
5639 * nsmenu.m (ns_update_menubar): Likewise.
5640 * nsterm.m (ns_draw_fringe_bitmap, ns_term_init): Likewise.
5641 * print.c (print_unwind, printchar, strout, print_string)
5642 (print_error_message): Likewise.
5643 * process.c (conv_lisp_to_sockaddr, set_socket_option)
5644 (Fmake_network_process, Fnetwork_interface_list)
5645 (Fnetwork_interface_info, read_process_output, Fprocess_send_eof)
5646 (init_process): Likewise.
5647 * ralloc.c (resize_bloc, r_alloc_sbrk, r_alloc_init): Likewise.
5648 * regex.c (init_syntax_once, regex_compile, re_compile_fastmap):
5649 Likewise.
5650 * scroll.c (do_scrolling, do_direct_scrolling)
5651 (scrolling_max_lines_saved): Likewise.
5652 * search.c (search_buffer, wordify, Freplace_match): Likewise.
5653 * sound.c (wav_init, au_init, Fplay_sound_internal): Likewise.
5654 * syntax.c (skip_chars, skip_syntaxes): Likewise.
5655 * sysdep.c (child_setup_tty, sys_subshell, emacs_get_tty)
5656 (emacs_set_tty): Likewise.
5657 * term.c (encode_terminal_code, calculate_costs)
5658 (produce_special_glyphs, create_tty_output, init_tty, delete_tty):
5659 Likewise.
5660 * termcap.c (tgetst1, gobble_line): Likewise.
5661 * termhooks.h (EVENT_INIT): Likewise.
5662 * tparam.c (tparam1): Likewise.
5663 * unexalpha.c (unexec): Likewise.
5664 * unexec.c (write_segment): Likewise.
5665 * unexmacosx.c (unexec_write_zero): Likewise.
5666 * w32fns.c (w32_wnd_proc, Fx_create_frame, x_create_tip_frame)
5667 (Fx_file_dialog, Fsystem_move_file_to_trash): Likewise.
5668 * w32font.c (w32font_list_family, w32font_text_extents)
5669 (w32font_list_internal, w32font_match_internal)
5670 (w32font_open_internal, compute_metrics, Fx_select_font):
5671 Likewise.
5672 * w32menu.c (set_frame_menubar, add_menu_item)
5673 (w32_menu_display_help, w32_free_submenu_strings): Likewise.
5674 * w32term.c (XCreateGC, w32_initialize_display_info): Likewise.
5675 * w32uniscribe.c (uniscribe_list_family): Likewise.
5676 * w32xfns.c (get_next_msg, post_msg, prepend_msg): Likewise.
5677 * window.c (make_window, replace_window, set_window_buffer)
5678 (Fsplit_window): Likewise.
5679 * xdisp.c (init_iterator, RECORD_OVERLAY_STRING, reseat_to_string)
5680 (add_to_log, message3, x_consider_frame_title)
5681 (append_space_for_newline, extend_face_to_end_of_line)
5682 (decode_mode_spec_coding, init_glyph_string): Likewise.
5683 * xfaces.c (x_create_gc, get_lface_attributes_no_remap)
5684 (Finternal_copy_lisp_face, Finternal_merge_in_global_face)
5685 (face_attr_equal_p, make_realized_face, make_face_cache)
5686 (free_realized_faces, lookup_named_face, smaller_face)
5687 (face_with_height, lookup_derived_face)
5688 (x_supports_face_attributes_p, Finternal_set_font_selection_order)
5689 (Finternal_set_font_selection_order, realize_default_face)
5690 (compute_char_face, face_at_buffer_position)
5691 (face_for_overlay_string, face_at_string_position, merge_faces):
5692 Likewise.
5693 * xfns.c (xic_create_fontsetname, Fx_create_frame)
5694 (Fx_window_property, x_create_tip_frame)
5695 (Fx_backspace_delete_keys_p): Likewise.
5696 * xfont.c (xfont_list, xfont_match, xfont_list_family)
5697 (xfont_text_extents): Likewise.
5698 * xmenu.c (set_frame_menubar, xmenu_show): Likewise.
5699 * xrdb.c (magic_file_p, x_get_resource): Likewise.
5700 * xselect.c (x_queue_event, x_get_window_property)
5701 (receive_incremental_selection): Likewise.
5702 * xsmfns.c (x_session_check_input): Likewise.
5703 * xterm.c (x_send_scroll_bar_event, SET_SAVED_MENU_EVENT)
5704 (handle_one_xevent, x_check_errors, xim_initialize, x_term_init):
5705 Likewise.
5706 * character.h (BCOPY_SHORT): Removed.
5707 * config.in: Regenerate.
5708 * dispnew.c (safe_bcopy): Only define as dummy if PROFILING.
5709 * emacs.c (main) [PROFILING]: Don't declare
5710 dump_opcode_frequencies.
5711 * lisp.h (safe_bcopy): Remove declaration.
5712 (memset) [!HAVE_MEMSET]: Declare.
5713 (memcpy) [!HAVE_MEMCPY]: Likewise.
5714 (memmove) [!HAVE_MEMMOVE]: Likewise.
5715 (memcmp) [!HAVE_MEMCMP]: Likewise.
5716 * s/ms-w32.h (bzero, bcopy, bcmp, GAP_USE_BCOPY)
5717 (BCOPY_UPWARD_SAFE, BCOPY_DOWNWARD_SAFE, HAVE_BCOPY, HAVE_BCMP):
5718 Don't define.
5719 (HAVE_MEMCMP, HAVE_MEMCPY, HAVE_MEMMOVE, HAVE_MEMSET): Define.
5720 * s/msdos.h (GAP_USE_BCOPY, BCOPY_UPWARD_SAFE)
5721 (BCOPY_DOWNWARD_SAFE): Don't define.
5722 * sysdep.c (memset) [!HAVE_MEMSET]: Define.
5723 (memcpy) [!HAVE_MEMCPY]: Define.
5724 (memmove) [!HAVE_MEMMOVE]: Define.
5725 (memcmp) [!HAVE_MEMCMP]: Define.
5726
cb768704
J
57272010-07-07 Jan Djärv <jan.h.d@swipnet.se>
5728
5729 * process.c (kbd_is_on_hold): New variable.
a628ad9d
JB
5730 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
5731 New functions.
cb768704
J
5732 (wait_reading_process_output): If kbd_on_hold_p returns non-zero,
5733 select on empty input mask.
5734 (init_process): Initialize kbd_is_on_hold to 0.
5735
5736 * process.h (hold_keyboard_input, unhold_keyboard_input)
5737 (kbd_on_hold_p): Declare.
5738
5739 * keyboard.c (input_available_signal): Declare.
5740 (kbd_buffer_nr_stored): New function.
5741 (kbd_buffer_store_event_hold): If kbd_buffer_nr_stored returns
5742 more than KBD_BUFFER_SIZE/2, stop reding input (Bug#6571).
5743 (kbd_buffer_get_event): If input is suspended and kbd_buffer_nr_stored
5744 returns less than KBD_BUFFER_SIZE/4, resume reding input (Bug#6571).
5745 (tty_read_avail_input): If input is on hold, return.
5746 Don't read more that free slots in kbd_buffer (Bug#6571).
5747
3a8ce822
EZ
57482010-07-07 Eli Zaretskii <eliz@gnu.org>
5749
5750 * msdos.h:
5751 * msdos.c:
5752 * dosfns.c:
5753 * w16select.c: Convert function definitions to ANSI C.
5754
a628ad9d
JB
5755 * msdos.h (ctrl_break_func, install_ctrl_break_check):
5756 Remove unused prototypes.
3a8ce822 5757
cf84bb53
JB
57582010-07-07 Juanma Barranquero <lekktu@gmail.com>
5759
5760 * coding.c, sysdep.c: Convert some more functions to standard C.
5761
1a4990fb
JB
57622010-07-07 Juanma Barranquero <lekktu@gmail.com>
5763
5764 * coding.c (decode_coding_gap, encode_coding_gap, decode_coding_object)
5765 (encode_coding_object): Use SPECPDL_INDEX.
5766 (syms_of_coding): Use DOS_NT.
5767
c0f2f16b
DN
57682010-07-07 Dan Nicolaescu <dann@ics.uci.edu>
5769
48fb6855
DN
5770 * intervals.h (interval): Use EMACS_UINT instead of unsigned EMACS_INT.
5771
c0f2f16b
DN
5772 Make the function member of Lisp_Subr use standard C prototypes.
5773 * lisp.h (struct Lisp_Subr): Use a union for the function member.
5774 (DECL_ALIGN): Add a cast for the function.
5775 * eval.c (Feval, Ffuncall): Use the proper type for each type
5776 function call.
5777
67aecef9
CY
57782010-07-06 Chong Yidong <cyd@stupidchicken.com>
5779
5780 * fringe.c (draw_fringe_bitmap_1): Use lookup_named_face to get
5781 fringe face id, so face-remapping-alist works (Bug#6091).
5782
b56ceb92
JB
57832010-07-06 Juanma Barranquero <lekktu@gmail.com>
5784
5785 * w32.c, w32console.c, w32fns.c, w32font.c, w32heap.c, w32inevt.c
5786 * w32menu.c, w32proc.c, w32reg.c, w32select.c, w32term.c
5787 * w32uniscribe.c, w32xfns.c: Convert function definitions to standard C.
5788
7af07b96
AS
57892010-07-06 Andreas Schwab <schwab@linux-m68k.org>
5790
5791 * xterm.c (x_get_keysym_name): Change type of parameter to int.
5792 * lisp.h: Declare x_get_keysym_name.
5793 * keyboard.c (modify_event_symbol): Don't declare
5794 x_get_keysym_name here.
5795
69e24e34
DN
57962010-07-06 Dan Nicolaescu <dann@ics.uci.edu>
5797
5798 * ecrt0.c: Revert conversion to standard C.
5799
d3da34e0 58002010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
d2aa42f8
DN
5801
5802 * vm-limit.c (memory_warnings):
5803 * keyboard.c (modify_event_symbol):
5804 * floatfns.c (rounding_driver, ceiling2, floor2, truncate2)
5805 (round2, emacs_rint):
5806 * process.c (send_process, old_sigpipe): Convert function
5807 definitions and declarations to standard C.
5808
58092010-07-05 Juanma Barranquero <lekktu@gmail.com>
d3da34e0
JB
5810
5811 * buffer.c, cm.c, eval.c, keyboard.c, process.c, term.c, vm-limit.c,
5812 * xdisp.c: Convert function definitions to standard C.
5813
5814 * cm.c (cmputc): Arg C is now int, not char.
5815 * process.c (Fmake_network_process): Cast sockaddr_in* to sockaddr*.
5816
00be444c
J
58172010-07-05 James Cloos <cloos@jhcloos.com>
5818
5819 * xterm.h (Xatom_net_wm_name, Xatom_net_wm_icon_name): New.
5820
5821 * xterm.c (x_term_init): Intern the _NET_WM_NAME and
5822 _NET_WM_ICON_NAME atoms.
5823
5824 * xfns.c (x_set_name_internal): Set the EWMH _NET_WM_NAME
5825 and _NET_WM_ICON_NAME properties, too, matching what is
5826 done in the Gtk+ case.
5827
e4c8d29a
J
58282010-07-05 Jan Djärv <jan.h.d@swipnet.se>
5829
ff919460
J
5830 * xterm.c (XTring_bell, XTset_terminal_window): Fix wrong prototype.
5831
e4c8d29a
J
5832 * xsmfns.c (SSDATA): New macro.
5833 (smc_save_yourself_CB, x_session_initialize): Use SSDATA for strings
5834 passed to strlen/strcpy/strcat.
bba3e508
SM
5835 (create_client_leader_window): Surround with #ifndef USE_GTK.
5836 Cast 7:th arg to XChangeProperty to (unsigned char *).
e4c8d29a
J
5837
5838 * xsettings.c (something_changedCB, parse_settings)
5839 (apply_xft_settings): Reformat prototype.
5840 (something_changedCB, init_gconf): Remove unused variable i.
5841 (read_settings): Remove unused variable long_len.
5842
5843 * gtkutil.c (xg_get_pixbuf_from_pix_and_mask)
5844 (xg_get_image_for_pixmap, create_dialog)
5845 (xg_get_file_with_selection, xg_get_file_name, update_cl_data)
5846 (menuitem_highlight_callback, make_menu_item)
5847 (xg_create_one_menuitem, create_menus, xg_update_menu_item)
5848 (xg_create_scroll_bar, xg_update_scrollbar_pos)
5849 (xg_set_toolkit_scroll_bar_thumb, xg_tool_bar_button_cb)
5850 (xg_tool_bar_proxy_help_callback, xg_tool_bar_detach_callback)
5851 (xg_tool_bar_attach_callback, xg_tool_bar_help_callback)
5852 (xg_tool_bar_item_expose_callback): Reformat prototype.
5853 (xg_update_menubar): GList *group => GSList *group.
5854 (xg_modify_menubar_widgets): Initialize witem to 0, check witem != 0
5855 before use.
5856 (update_frame_tool_bar): 4:th param to xg_get_image_for_pixmap changed
5857 to GTK_IMAGE (wimage).
5858
dd4c5104
DN
58592010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
5860
898b4c5c
DN
5861 * atimer.c: Use "" instead of <> for local includes for
5862 consistency with the rest of the code.
5863
dd4c5104
DN
5864 * xsmfns.c (smc_save_yourself_CB, smc_error_handler):
5865 * xrdb.c (get_system_name):
5866 * window.c (shrink_windows):
5867 * syntax.c (forw_comment):
5868 * scroll.c (calculate_scrolling, calculate_direct_scrolling)
5869 (ins_del_costs):
5870 * mem-limits.h (start_of_data):
5871 * lread.c (readevalloop):
5872 * gtkutil.c (xg_dialog_response_cb, xg_get_file_with_chooser)
5873 (xg_get_file_with_selection, xg_update_menubar, xg_update_submenu):
5874 * frame.c (x_get_focus_frame):
5875 * floatfns.c (fmod_float):
5876 * fileio.c (choose_write_coding_system):
5877 * emacs.c (fatal_error_signal, init_cmdargs, argmatch)
5878 (malloc_initialize_hook, sort_args, synchronize_locale):
5879 * doprnt.c (doprnt):
5880 * dired.c (compile_pattern):
5881 * data.c (fmod_float):
5882 * chartab.c (map_sub_char_table, map_sub_char_table_for_charset)
5883 (map_char_table_for_charset):
5884 * charset.c (define_charset_internal):
5885 * alloc.c (Fgarbage_collect): Convert declarations or definitions
5886 to standard C.
5887
9a39b306 58882010-07-04 Tetsurou Okazaki <okazaki@be.to> (tiny change)
9c8a2331 5889 Stefan Monnier <monnier@iro.umontreal.ca>
9a39b306
TO
5890
5891 * lread.c (read1): Fix up last change to not mess up `c'.
5892
e6cb2cbb
JB
58932010-07-04 Juanma Barranquero <lekktu@gmail.com>
5894
5895 * strftime.c: Revert conversion to standard C (2010-07-04T07:50:25Z!dann@ics.uci.edu).
5896
438105ed
JB
58972010-07-04 Juanma Barranquero <lekktu@gmail.com>
5898
5899 Fix prototypes.
5900
e5447b22 5901 * atimer.c (start_atimer): Use EMACS_TIME, not struct timeval.
438105ed 5902 * dired.c (file_name_completion_stat): Use DIRENTRY, not struct dirent.
9c8a2331
JB
5903 * fileio.c (read_non_regular, read_non_regular_quit): Add Lisp_Object
5904 arg, as required by internal_condition_case_1.
dcc7404b 5905 * print.c (strout): Use const char* for arg PTR.
438105ed
JB
5906 * regex.c (bcmp_translate): Use RE_TRANSLATE_TYPE, not Lisp_Object.
5907 (analyse_first): Fix "const const".
e5447b22 5908 * sysdep.c (set_file_times): Use EMACS_TIME, not struct timeval.
b9503078 5909 * unexelf.c (round_up, find_section): Use ElfW macro for arguments.
e5447b22 5910 * xgselect.c (xg_select): Use SELECT_TYPE, EMACS_TIME.
438105ed 5911
971de7fb
DN
59122010-07-04 Dan Nicolaescu <dann@ics.uci.edu>
5913
5914 * alloc.c: Convert function definitions to standard C.
5915 * atimer.c:
5916 * bidi.c:
5917 * bytecode.c:
5918 * callint.c:
5919 * callproc.c:
5920 * casefiddle.c:
5921 * casetab.c:
5922 * category.c:
5923 * ccl.c:
5924 * character.c:
5925 * charset.c:
5926 * chartab.c:
5927 * cmds.c:
5928 * coding.c:
5929 * composite.c:
5930 * data.c:
5931 * dbusbind.c:
5932 * dired.c:
5933 * dispnew.c:
5934 * doc.c:
5935 * doprnt.c:
5936 * ecrt0.c:
5937 * editfns.c:
5938 * fileio.c:
5939 * filelock.c:
5940 * filemode.c:
5941 * fns.c:
5942 * font.c:
5943 * fontset.c:
5944 * frame.c:
5945 * fringe.c:
5946 * ftfont.c:
5947 * ftxfont.c:
5948 * gtkutil.c:
5949 * indent.c:
5950 * insdel.c:
5951 * intervals.c:
5952 * keymap.c:
5953 * lread.c:
5954 * macros.c:
5955 * marker.c:
5956 * md5.c:
5957 * menu.c:
5958 * minibuf.c:
5959 * prefix-args.c:
5960 * print.c:
5961 * ralloc.c:
5962 * regex.c:
5963 * region-cache.c:
5964 * scroll.c:
5965 * search.c:
5966 * sound.c:
5967 * strftime.c:
5968 * syntax.c:
5969 * sysdep.c:
5970 * termcap.c:
5971 * terminal.c:
5972 * terminfo.c:
5973 * textprop.c:
5974 * tparam.c:
5975 * undo.c:
5976 * unexelf.c:
5977 * window.c:
5978 * xfaces.c:
5979 * xfns.c:
5980 * xfont.c:
5981 * xftfont.c:
5982 * xgselect.c:
5983 * xmenu.c:
5984 * xrdb.c:
5985 * xselect.c:
5986 * xsettings.c:
5987 * xsmfns.c:
5988 * xterm.c: Likewise.
5989
ae492bec
EZ
59902010-07-03 Eli Zaretskii <eliz@gnu.org>
5991
76ea4cc9
EZ
5992 * msdos.c (IT_set_frame_parameters): Fix setting of colors in
5993 frames other than the initial one. Fix reversal of colors when
bba3e508
SM
5994 `reverse' is specified in the frame parameters.
5995 Call update_face_from_frame_parameter instead of
76ea4cc9
EZ
5996 internal-set-lisp-face-attribute. Initialize screen colors from
5997 initial_screen_colors[] when f->default_face_done_p is zero,
5998 instead of depending on being called with default-frame-alist as
5999 the alist argument.
6000
6001 * xfaces.c (update_face_from_frame_parameter): Move out of
6002 HAVE_WINDOW_SYSTEM portion. Condition window-system only parts
6003 with HAVE_WINDOW_SYSTEM.
6004
1e6255ae
EZ
6005 * msdos.c (IT_set_frame_parameters): Set menu-bar-lines according
6006 to menu-bar-mode, if not set in the frame parameters or in
6007 default-frame-alist.
6008
ae492bec
EZ
6009 * w32console.c (sys_tputs): Adjust argument list to prototype in
6010 term.c.
6011
3a35a84c
JB
60122010-07-03 Juanma Barranquero <lekktu@gmail.com>
6013
6014 * lisp.h (memory_warnings): Fix prototype.
6015
6016 * cm.h (evalcost): Fix prototype.
6017
6018 * cm.c (evalcost): Fix arg type.
6019
c532d349
DN
60202010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
6021
6022 * term.c (term_clear_mouse_face, Fidentity):
6023 * syssignal.h (signal_handler_t):
6024 * lisp.h (memory_warnings):
6025 * coding.h (preferred_coding_system):
6026 * cm.h (evalcost):
6027 * blockinput.h (reinvoke_input_signal): Convert to standard C prototypes.
6028
c0b36d46
EZ
60292010-07-02 Eli Zaretskii <eliz@gnu.org>
6030
6031 * dosfns.h (msdos_stdcolor_idx, msdos_stdcolor_name): Remove P_
6032 from prototypes.
6033
6034 * msdos.h (load_pixmap): Don't define away.
6035
383e0970
J
60362010-07-02 Jan Djärv <jan.h.d@swipnet.se>
6037
f57e2426
J
6038 * lisp.h:
6039 * atimer.h: Remove define for P_.
6040
6041 * alloc.c: Remove __P and P_ from .c and .m files.
6042 * atimer.c:
6043 * buffer.c:
6044 * callint.c:
6045 * category.c:
6046 * charset.c:
6047 * chartab.c:
6048 * cm.c:
6049 * coding.c:
6050 * composite.c:
6051 * data.c:
6052 * dired.c:
6053 * dispnew.c:
6054 * doc.c:
6055 * editfns.c:
6056 * emacs.c:
6057 * eval.c:
6058 * fileio.c:
6059 * filelock.c:
6060 * fns.c:
6061 * font.c:
6062 * fontset.c:
6063 * frame.c:
6064 * ftfont.c:
6065 * ftxfont.c:
6066 * gmalloc.c:
6067 * gtkutil.c:
6068 * image.c:
6069 * indent.c:
6070 * intervals.c:
6071 * keyboard.c:
6072 * keymap.c:
6073 * lread.c:
6074 * marker.c:
6075 * menu.c:
6076 * minibuf.c:
6077 * print.c:
6078 * process.c:
6079 * scroll.c:
6080 * search.c:
6081 * sound.c:
6082 * strftime.c:
6083 * syntax.c:
6084 * sysdep.c:
6085 * term.c:
6086 * terminal.c:
6087 * textprop.c:
6088 * unexalpha.c:
6089 * w32console.c:
6090 * w32fns.c:
6091 * w32font.c:
6092 * w32menu.c:
6093 * w32term.c:
6094 * w32uniscribe.c:
6095 * window.c:
6096 * xdisp.c:
6097 * xfaces.c:
6098 * xfns.c:
6099 * xfont.c:
6100 * xftfont.c:
6101 * xmenu.c:
6102 * xselect.c:
6103 * xterm.c: Likewise.
6104
383e0970 6105 Remove P_ and __P macros.
f57e2426
J
6106 * atimer.h: Remove P_ and __P macros.
6107 * buffer.h:
383e0970
J
6108 * category.h:
6109 * ccl.h:
6110 * character.h:
6111 * charset.h:
6112 * cm.h:
6113 * coding.h:
6114 * composite.h:
6115 * dispextern.h:
6116 * disptab.h:
9e892c8d 6117 * dosfns.h:
383e0970
J
6118 * font.h:
6119 * fontset.h:
6120 * frame.h:
6121 * gtkutil.h:
6122 * indent.h:
6123 * intervals.h:
6124 * keyboard.h:
6125 * keymap.h:
6126 * lisp.h:
6127 * macros.h:
6128 * md5.h:
6129 * menu.h:
6130 * msdos.h:
6131 * nsterm.h:
6132 * puresize.h:
6133 * region-cache.h:
6134 * syntax.h:
6135 * syssignal.h:
6136 * systime.h:
6137 * termhooks.h:
9e892c8d 6138 * w32font.h:
383e0970
J
6139 * w32term.h:
6140 * widget.h:
6141 * window.h:
6142 * xgselect.h:
6143 * xsettings.h:
6144 * xterm.h: Likewise.
6145
98601119
DN
61462010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
6147
d9170db5
DN
6148 * lisp.h: Document that USE_LISP_UNION_TYPE is now enabled using autoconf.
6149
98601119
DN
6150 Cleanup old code.
6151 * dired.c (BSD4_3): Remove all uses, redundant with BSD4_2.
6152 * syssignal.h: Remove code for Lynx, not supported anymore.
6153 * vm-limit.c: Remove unused code the depends on emacs not being
6154 defined and NO_LIM_DATA being defined.
6155 * mem-limits.h: Remove dead code.
6156
1f984e12
J
61572010-07-01 Jan Djärv <jan.h.d@swipnet.se>
6158
c49d071a
J
6159 * window.c (Fwindow_absolute_pixel_edges): Doc fix.
6160
9d5405ec
J
6161 * window.c (calc_absolute_offset, Fwindow_absolute_pixel_edges)
6162 (Fwindow_inside_absolute_pixel_edges): New functions (bug#5721).
6163
7a18115b
J
6164 * nsfns.m (compute_tip_xy): Do not convert coordinates from frame
6165 parameters, they are already absolute.
6166
a628ad9d
JB
6167 * nsterm.m (x_set_window_size, initFrameFromEmacs):
6168 Rename FRAME_NS_TOOLBAR_HEIGHT to FRAME_TOOLBAR_HEIGHT.
581a8100 6169
a628ad9d 6170 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
581a8100 6171
a628ad9d
JB
6172 * nsmenu.m (update_frame_tool_bar, free_frame_tool_bar):
6173 Update FRAME_TOOLBAR_HEIGHT.
581a8100 6174
a628ad9d
JB
6175 * nsmenu.m (free_frame_tool_bar, update_frame_tool_bar):
6176 Add BLOCK/UNBLOCK_INPUT so asserts don't trigger.
1f984e12 6177
c1ef4455
CY
61782010-06-30 Chong Yidong <cyd@stupidchicken.com>
6179
bba3e508
SM
6180 * frame.c (get_future_frame_param, Fmake_terminal_frame):
6181 Don't check default-frame-alist.
c1ef4455 6182
ce8f5a9a
AS
61832010-06-30 Andreas Schwab <schwab@linux-m68k.org>
6184
6185 * process.c (create_process): Avoid using invalid file descriptors.
6186
6187 * callproc.c (child_setup): Avoid closing a file descriptor twice.
6188
bf935339
J
61892010-06-30 Jan Djärv <jan.h.d@swipnet.se>
6190
6191 * xsettings.c (Ffont_get_system_normal_font, Ffont_get_system_font):
6192 Improve documentation. Return font regardless of use_system_font.
6193 (syms_of_xsettings): Improve documentation for font-use-system-font.
6194
7c33a057
CY
61952010-07-10 Chong Yidong <cyd@stupidchicken.com>
6196
2ec1b5ee
CY
6197 * xfaces.c (realize_face): Garbage the frame if a face is removed
6198 (Bug#6593).
6199
62002010-07-05 Andreas Schwab <schwab@linux-m68k.org>
6201
6202 * keyboard.c: Remove duplicate <setjmp.h>.
6203 (read_key_sequence): Remove volatile qualifiers.
6204
62052010-07-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6206
6207 * dispextern.h (FRINGE_HEIGHT_BITS): New define.
6208 (struct glyph_row): New members left_fringe_offset and
6209 right_fringe_offset.
6210
6211 * xterm.c (x_draw_fringe_bitmap): Don't clip bottom aligned bitmap
6212 specially.
6213 * w32term.c (w32_draw_fringe_bitmap): Likewise.
6214 * nsterm.m (ns_draw_fringe_bitmap): Likewise.
6215
6216 * fringe.c (draw_fringe_bitmap_1): Don't clip bitmap here.
f6003da5 6217 Take account of bitmap offset.
2ec1b5ee
CY
6218 (draw_window_fringes): Take account of window vscroll.
6219 (update_window_fringes): Likewise. Extend top-aligned top indicator
6220 or bottom-aligned bottom indicator to adjacent rows if it doesn't fit
6221 in one row. Don't set redraw_fringe_bitmaps_p outside row comparison.
6222 Set left_fringe_offset and right_fringe_offset (Bug#5634, Bug#6325).
6223
62242010-07-04 Juanma Barranquero <lekktu@gmail.com>
6225
6226 * w32fns.c (Qtooltip): Declare.
6227 Suggested by Andy Moreton <andrewjmoreton@gmail.com>.
6228
62292010-07-03 Jan Djärv <jan.h.d@swipnet.se>
6230
6231 * xmenu.c (x_activate_menubar): Send Press/Release for Gtk+ to avoid
6232 grab on just Press (Bug#6499).
6233
62342010-07-02 Chong Yidong <cyd@stupidchicken.com>
6235
6236 * frame.c (Qtooltip): New var.
6237 (delete_frame): Use it. Fix faulty if statement. Don't update
6238 mode line for tooltip frames. Suggested by Martin Rudalics.
6239
6240 * xfns.c (x_create_tip_frame):
6241 * w32fns.c (x_create_tip_frame): Use it.
6242
62432010-06-17 Naohiro Aota <naota@elisp.net> (tiny change)
769e9d47
KH
6244
6245 * xftfont.c (xftfont_open): Check font width one by one also when
6246 spacing is dual.
6247
6248 * ftfont.c (ftfont_open): Ditto.
6249
6259c2ec
GM
62502010-06-30 Glenn Morris <rgm@gnu.org>
6251
a46007e9
GM
6252 * s/sol2-6.h (INHIBIT_X11R6_XIM): Remove, handled by configure now.
6253
6259c2ec
GM
6254 * Makefile.in (CANNOT_DUMP): Update for configure name change.
6255
6256 * s/freebsd.h (USE_MMAP_FOR_BUFFERS):
6257 * s/irix6-5.h (USE_MMAP_FOR_BUFFERS):
6258 * s/darwin.h (SYSTEM_MALLOC):
6259 * s/sol2-10.h (SYSTEM_MALLOC): Move to configure.
6260
5d1d3d04
J
62612010-06-29 Jan Djärv <jan.h.d@swipnet.se>
6262
6263 * nsfns.m: extern declare Vmenu_bar_mode, Vtool_bar_mode.
6264 (ns_get_screen): Don't assign integer to f.
6265 (Fx_display_color_cells): Declarations before statements.
6266
e547b051
J
62672010-06-28 Jan Djärv <jan.h.d@swipnet.se>
6268
5fc8e5bc
J
6269 * xfns.c (x_default_font_parameter): Remove got_from_system
6270 (Bug#6526).
6271
e547b051 6272 * xterm.h (gtk_widget_get_window, gtk_widget_get_mapped)
bba3e508
SM
6273 (gtk_adjustment_get_page_size, gtk_adjustment_get_upper):
6274 New defines based on what configure finds.
e547b051
J
6275
6276 * xterm.c (XTflash): Use gtk_widget_get_window.
6277 (xg_scroll_callback): Use gtk_adjustment_get_upper and
6278 gtk_adjustment_get_page_size.
6279 (handle_one_xevent): Use gtk_widget_get_mapped.
6280 (x_term_init): Remove HAVE_GTK_MULTIDISPLAY and associated error
6281 messages.
6282
6283 * xmenu.c (create_and_show_popup_menu): Call gtk_widget_get_mapped.
6284
6285 * gtkutil.h: Replace HAVE_GTK_FILE_BOTH with
6286 HAVE_GTK_FILE_SELECTION_NEW.
6287
bba3e508
SM
6288 * gtkutil.c (xg_display_open, xg_display_close):
6289 Remove HAVE_GTK_MULTIDISPLAY, it is always defined.
e547b051
J
6290 (xg_display_open): Return type is void.
6291 (gtk_widget_set_has_window)
6292 (gtk_dialog_get_action_area, gtk_dialog_get_content_area)
6293 (gtk_widget_get_sensitive, gtk_adjustment_set_page_size)
6294 (gtk_adjustment_set_page_increment)
6295 (gtk_adjustment_get_step_increment): #define these if not found
6296 by configure.
6297 (remove_submenu): New define based on Gtk+ version.
bba3e508
SM
6298 (xg_set_cursor, xg_frame_resized, xg_event_is_for_scrollbar):
6299 Use gtk_widget_get_window.
e547b051
J
6300 (xg_frame_resized, xg_update_frame_menubar): Use gtk_widget_get_mapped.
6301 (xg_create_frame_widgets): Use gtk_widget_set_has_window.
6302 (create_dialog): Use gtk_dialog_get_action_area and
6303 gtk_dialog_get_content_area.
6304 (xg_uses_old_file_dialog, xg_get_file_name): Remove HAVE_GTK_FILE_BOTH
6305 and HAVE_GTK_FILE_CHOOSER_DIALOG_NEW. File chooser is always
6306 available, so checking for HAVE_GTK_FILE_SELECTION_NEW is enough.
bba3e508
SM
6307 (xg_update_menubar, xg_update_submenu, xg_show_toolbar_item):
6308 Use g_object_ref and g_object_unref.
6309 (xg_update_menu_item, xg_tool_bar_menu_proxy):
6310 Use gtk_widget_get_sensitive.
e547b051
J
6311 (xg_update_submenu): Use remove_submenu.
6312 (xg_update_scrollbar_pos): Don't use GtkFixedChild, use child
6313 properties instead to get old x and y position.
6314 (xg_set_toolkit_scroll_bar_thumb): Use gtk_adjustment_get_page_size,
6315 gtk_adjustment_get_step_increment, gtk_adjustment_set_page_size,
2b7e356a 6316 gtk_adjustment_set_step_increment and gtk_adjustment_set_page_increment.
e547b051
J
6317 (xg_get_tool_bar_widgets): New function.
6318 (xg_tool_bar_menu_proxy, xg_show_toolbar_item)
6319 (update_frame_tool_bar): Call xg_get_tool_bar_widgets.
6320 (toolbar_set_orientation): New #define based on if configure
6321 finds gtk_orientable_set_orientation.
6322 (xg_create_tool_bar): Call toolbar_set_orientation.
6323 (xg_make_tool_item, xg_show_toolbar_item): Call gtk_box_pack_start
6324 instead of gtk_box_pack_start_defaults.
6325
b9229673
CY
63262010-06-28 Chong Yidong <cyd@stupidchicken.com>
6327
6328 * cmds.c (Fdelete_backward_char): Move into Lisp.
6329
bbc803b0
DN
63302010-06-27 Dan Nicolaescu <dann@ics.uci.edu>
6331
6332 * s/freebsd.h (BSD4_2): Remove redundant definition.
6333 bsd-common.h defines it already.
6334
6431f2e6
CY
63352010-06-27 Chong Yidong <cyd@stupidchicken.com>
6336
6337 * xfns.c (Fx_create_frame): Don't consult X resouces when setting
6338 menu-bar-lines and tool-bar-lines. Use menu-bar-mode and
6339 tool-bar-mode, which are now set using these X resources at
6340 startup, to determine the defaults (Bug#2249).
6341
6342 * w32fns.c (Fx_create_frame):
6343 * nsfns.m (Fx_create_frame): Likewise.
6344
6345 * frame.c (Vmenu_bar_mode, Vtool_bar_mode): New vars.
6346
8c079ebb
JB
63472010-06-24 Juanma Barranquero <lekktu@gmail.com>
6348
6349 * gtkutil.c (xg_update_scrollbar_pos):
6350 Avoid C99 mid-block variable declaration.
6351
e9b7ab96
JD
63522010-06-22 Jan Djärv <jan.h.d@swipnet.se>
6353
bc869eca
JD
6354 * xterm.c (x_scroll_bar_create): Remove call to xg_show_scroll_bar.
6355
2b7e356a 6356 * gtkutil.h (xg_show_scroll_bar): Remove.
bc869eca
JD
6357
6358 * gtkutil.c (xg_update_scrollbar_pos): Show/hide scroll bar as needed
6359 if height is less than scroll bar min size.
6360 (xg_show_scroll_bar): Remove, show moved to xg_update_scrollbar_pos.
6361
e9b7ab96
JD
6362 * xfns.c (x_default_font_parameter): Try to open font from system
6363 before using it (bug#6478). Rename got_from_gconf to got_from_system.
6364
a628ad9d 63652010-06-22 Keith Packard <keithp@keithp.com> (tiny change)
32a679fd
JD
6366
6367 * font.c (font_parse_fcname): Allow . for sizes like 7.5 (bug#6437).
6368
70c4cfbb
EZ
63692010-06-20 Eli Zaretskii <eliz@gnu.org>
6370
6371 * xdisp.c (try_scrolling): When scroll-conservatively is set to
6372 most-positive-fixnum, be extra accurate when scrolling window
6373 start, to avoid missing the cursor line.
6374
ad5a12b5
EZ
63752010-06-19 Eli Zaretskii <eliz@gnu.org>
6376
6377 * xdisp.c (try_scrolling): Compute the limit for searching point
6378 in forward scroll from scroll_max, instead of an arbitrary limit
ef1b0ba7
SM
6379 of 10 screen lines.
6380 See http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00766.html
ad5a12b5
EZ
6381 and
6382 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00773.html
6383 for details.
6384
2a64315a 63852010-06-16 Glenn Morris <rgm@gnu.org>
6fda6a0c
GM
6386
6387 * editfns.c (Fbyte_to_string): Pacify compiler.
6388
288cf4e9
SM
63892010-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
6390
6391 * lread.c (read1): Phase out old-style backquotes a bit more.
6392
6e6e5760
EZ
63932010-06-12 Eli Zaretskii <eliz@gnu.org>
6394
cbc4fd20
EZ
6395 * makefile.w32-in ($(BLD)/bidi.$(O)): Depend on biditype.h and
6396 bidimirror.h.
6397
6398 * deps.mk (bidi.o): Depend on biditype.h and bidimirror.h.
6399
317fbf33
EZ
6400 * bidi.c (bidi_initialize): Remove explicit initialization of
6401 bidi_type_table; include biditype.h instead. Don't support
288cf4e9 6402 entries whose second codepoint is zero. Initialize bidi_mirror_table.
cbc4fd20 6403 (bidi_mirror_char): Use bidi_mirror_table.
317fbf33
EZ
6404
6405 * biditype.h: New file.
6406
cbc4fd20
EZ
6407 * bidimirror.h: New file.
6408
6e6e5760
EZ
6409 * window.c (syms_of_window): Doc fix (bug#6409).
6410
4176cba2
RF
64112010-06-12 Romain Francoise <romain@orebokech.com>
6412
6413 * Makefile.in (lisp, shortlisp): Use new location of vc-hooks and
6414 ediff-hook.
6415
cb4bfcb5
GM
64162010-06-10 Glenn Morris <rgm@gnu.org>
6417
64c60c2f
GM
6418 * editfns.c (Fbyte_to_string): Pacify compiler.
6419
cb4bfcb5
GM
6420 * m/ibms390x.h: Rather than duplicating ibms390.h, just include it.
6421
2ec1b5ee
CY
64222010-06-26 Andreas Schwab <schwab@linux-m68k.org>
6423
6424 * alloc.c (Fmake_byte_code): Don't access undefined argument
6425 (Bug#6517).
6426
64272010-06-25 Chong Yidong <cyd@stupidchicken.com>
6428
6429 * xdisp.c (next_element_from_image): Ensure that after-strings are
6430 read the next time we hit handle_stop (Bug#1336).
6431
64322010-06-23 Andreas Schwab <schwab@linux-m68k.org>
6433
6434 * lread.c (read1): Signal error if #s is not followed by paren.
6435
64362010-06-19 Chong Yidong <cyd@stupidchicken.com>
6437
6438 * image.c (free_image): Mark frame as garbaged (Bug#6426).
6439
6440 * keymap.c (Fdefine_key): Doc fix (Bug#6460).
6441
64422010-06-15 Glenn Morris <rgm@gnu.org>
6443
6444 * editfns.c (Fbyte_to_string): Pacify compiler.
6445
e454a4a3
SM
64462010-06-09 Stefan Monnier <monnier@iro.umontreal.ca>
6447
6448 * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
6449 Check `object's type before accessing its guts.
6450
c1b1acc2
DN
64512010-06-09 Dan Nicolaescu <dann@ics.uci.edu>
6452
6453 * s/usg5-4.h: Fix previous change.
6454 Suggested by Lawrence Mitchell <wence@gmx.li>
6455
657d4c0b
AS
64562010-06-08 Andreas Schwab <schwab@linux-m68k.org>
6457
6458 * minibuf.c (Fall_completions): Add more checks.
6459
9b27fd9f
JB
64602010-06-08 Juanma Barranquero <lekktu@gmail.com>
6461
6462 * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
6463
a99ebb40
DN
64642010-06-08 Dan Nicolaescu <dann@ics.uci.edu>
6465
d7c5d87d
DN
6466 * lread.c (X_OK): Remove, unused.
6467
0263a941
DN
6468 * dispnew.c: Remove obsolete comment.
6469
a99ebb40
DN
6470 Remove INCLUDED_FCNTL.
6471 * xterm.c (INCLUDED_FCNTL):
6472 * callproc.c (INCLUDED_FCNTL):
6473 * alloc.c (INCLUDED_FCNTL):
6474 * systty.h (INCLUDED_FCNTL): Remove all uses, not needed anymore.
6475 (emacs_get_tty, emacs_set_tty): Declare unconditionally.
6476
13b5221f
MR
64772010-06-07 Martin Rudalics <rudalics@gmx.at>
6478
6479 * window.c (Fselect_window): Move `record_buffer' up to the
6480 beginning of this function, so the buffer gets recorded
6481 even if the selected window does not change.
6482 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00137.html
6483
5220357f
JB
64842010-06-07 Juanma Barranquero <lekktu@gmail.com>
6485
6486 * cmds.c (Fforward_char, Fbackward_char): Fix typos in docstrings.
6487 (Fforward_line, Fbeginning_of_line): Reflow docstrings.
6488
3085237c
DN
64892010-06-06 Dan Nicolaescu <dann@ics.uci.edu>
6490
6491 Remove BSTRING related code, all platforms define it.
6492 * s/usg5-4.h (BSTRING): Remove definition.
6493 * s/template.h (BSTRING):
6494 * s/msdos.h (BSTRING):
6495 * s/ms-w32.h (BSTRING):
6496 * s/hpux10-20.h (BSTRING):
6497 * s/gnu-linux.h (BSTRING):
6498 * s/darwin.h (BSTRING):
6499 * s/cygwin.h (BSTRING):
6500 * s/bsd-common.h (BSTRING):
6501 * s/aix4-2.h (BSTRING): Likewise.
6502 * sysdep.c: Remove code depending on BSTRING not being defined.
6503
409f2919
JB
65042010-06-05 Juanma Barranquero <lekktu@gmail.com>
6505
6506 Remove obsolete macro BASE_LEADING_CODE_P.
6507 * character.h (BASE_LEADING_CODE_P): Remove.
6508 * regex.c [!emacs] (BASE_LEADING_CODE_P): Remove.
6509 * buffer.c (Fset_buffer_multibyte):
6510 * indent.c (scan_for_column, compute_motion):
6511 * insdel.c (count_combining_before, count_combining_after):
6512 Use LEADING_CODE_P instead of BASE_LEADING_CODE_P.
6513
087fc47a
JB
65142010-06-04 Juanma Barranquero <lekktu@gmail.com>
6515
6516 Turn `directory-sep-char' into a noop.
6517
6518 * lisp.h [WINDOWSNT] (Vdirectory_sep_char): Don't declare.
6519 (DIRECTORY_SEP): Define unconditionally.
6520
6521 * s/ms-w32.h (DIRECTORY_SEP): Remove.
6522
6523 * emacs.c (decode_env_path): Don't check DIRECTORY_SEP,
6524 call dostounix_filename directly.
6525
6526 * fileio.c (CORRECT_DIR_SEPS): Remove.
6527 (Ffile_name_directory, directory_file_name, Fexpand_file_name)
6528 (Fsubstitute_in_file_name): Use dostounix_filename instead.
6529 (file_name_as_directory): Use dostounix_filename, DIRECTORY_SEP.
6530 (syms_of_fileio) <directory-sep-char>: Move to subr.el.
6531
6532 * w32proc.c (CORRECT_DIR_SEPS): Remove.
6533 (Fw32_short_file_name, Fw32_long_file_name): Use dostounix_filename.
6534
0eb7675e
AS
65352010-06-03 Andreas Schwab <schwab@linux-m68k.org>
6536
a628ad9d
JB
6537 * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4 address.
6538 (Bug#6346)
0eb7675e 6539
78edd3b7
JB
65402010-06-03 Juanma Barranquero <lekktu@gmail.com>
6541
6542 * ccl.c (Fccl_program_p): Fix typo in docstring.
6543
eb697db5
DN
65442010-06-03 Dan Nicolaescu <dann@ics.uci.edu>
6545
6546 Move UNEXEC definition to autoconf.
6547 * s/usg5-4.h (UNEXEC): Remove, move to configure.in.
6548 * s/sol2-10.h (UNEXEC):
6549 * s/irix6-5.h (UNEXEC):
6550 * s/hpux10-20.h (UNEXEC):
6551 * s/gnu-linux.h (UNEXEC):
6552 * s/darwin.h (UNEXEC):
6553 * s/cygwin.h (UNEXEC):
6554 * s/bsd-common.h (UNEXEC):
6555 * s/aix4-2.h (UNEXEC):
6556 * m/alpha.h (UNEXEC): Likewise.
6557 * Makefile.in (UNEXEC_OBJ): Define using @UNEXEC_OBJ@.
6558
aa3830c4
JB
65592010-06-03 Juanma Barranquero <lekktu@gmail.com>
6560
6561 Remove obsolete pre-unicode2 macros.
6562 * character.h (MULTIBYTE_FORM_LENGTH, PARSE_MULTIBYTE_SEQ): Remove.
6563 * composite.c (composition_reseat_it):
6564 * data.c (Faset):
6565 * fns.c (Ffillarray):
6566 * regex.c (re_search_2): Use BYTES_BY_CHAR_HEAD.
6567 [!emacs] (BYTES_BY_CHAR_HEAD): Define instead of MULTIBYTE_FORM_LENGTH.
6568
d234d13e
JL
65692010-06-03 Juri Linkov <juri@jurta.org>
6570
6571 * buffer.c (Fother_buffer): Add CHECK_FRAME.
6572 (Fswitch_to_buffer): Remove unused variable `err'.
6573
0d4bcf4d
GM
65742010-06-03 Glenn Morris <rgm@gnu.org>
6575
e23dc1e2
GM
6576 * m/template.h (NO_SOCK_SIGIO): Remove, no longer used.
6577
05b09564
GM
6578 * m/hp800.h (alloca) [__NetBSD__ && __GNUC__]: No need to define it,
6579 now that AH_BOTTOM does it.
6580
824e2978
GM
6581 * m/hp800.h (HAVE_ALLOCA):
6582 * m/ibms390x.h (HAVE_ALLOCA): Do not define, no longer needed.
6583
0d4bcf4d
GM
6584 * m/ia64.h, s/gnu-linux.h, s/gnu.h, s/netbsd.h, s/usg5-4.h:
6585 Remove NOT_C_CODE tests, it is always true now.
6586
c55d2abf
DN
65872010-06-02 Dan Nicolaescu <dann@ics.uci.edu>
6588
08a494a3
DN
6589 Fix config.h includes.
6590 * xsettings.c:
6591 * xgselect.c:
6592 * nsterm.m:
6593 * nsselect.m:
6594 * nsimage.m:
6595 * nsfont.m:
6596 * nsfns.m:
6597 * dbusbind.c: Use #include <config.h> instead of "config.h" as all
6598 other files do.
6599
75934b1d
DN
6600 * gmalloc.c: Remove BROKEN_PROTOTYPES reference, unused.
6601
9f32a766
DN
6602 * s/sol2-6.h: Remove obsolete comments.
6603
c55d2abf
DN
6604 Remove unnecessary alloca.h includes.
6605 * keymap.c: Do not include alloca.h, config.h does that.
6606 * sysdep.c: Likewise. Do not define fwrite, not used.
6607
06ac62b4
SM
66082010-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
6609
6610 * sysdep.c (child_setup_tty): Move the non-canonical initialization to
6611 the HAVE_TERMIO where it belongs (bug#6149).
6612
1ab8293c
SM
66132010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
6614
6615 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
6616 of bug#6305).
6617
6dcfd253
EZ
66182010-05-30 Eli Zaretskii <eliz@gnu.org>
6619
6620 * bidi.c (bidi_move_to_visually_next): Make sure the sentinel
6621 state is always cached (bug#6306).
6622
6d26bbb2
EZ
66232010-05-29 Eli Zaretskii <eliz@gnu.org>
6624
06fa4a23
EZ
6625 Fix cursor motion in bidi-reordered continued lines.
6626 * xdisp.c (try_cursor_movement): Backup to non-continuation line
6627 only after finding point's row. Fix the logic. Rewrite the loop
ef1b0ba7
SM
6628 over continuation lines in bidi-reordered buffers.
6629 Return CURSOR_MOVEMENT_MUST_SCROLL upon failure to find a suitable row,
6d26bbb2
EZ
6630 rather than CURSOR_MOVEMENT_CANNOT_BE_USED.
6631
f5783df3
MA
66322010-05-28 Michael Albinus <michael.albinus@gmx.de>
6633
6634 * fileio.c (Fdelete_file): Pass TRASH arg to handler call.
6635
7d56b2dd
KH
66362010-05-28 Kenichi Handa <handa@m17n.org>
6637
6638 * font.c (font_delete_unmatched): Check Vface_ignored_fonts.
6639 Don't sheck SPEC if it is nil.
6640 (font_list_entities): Call font_delete_unmatched if
b925d231 6641 Vface_ignored_fonts is non-nil. (Bug#6287)
7d56b2dd 6642
e58d4ff7
GM
66432010-05-28 Glenn Morris <rgm@gnu.org>
6644
6645 * Makefile.in (LIBES): Remove $LOADLIBES, it is never set.
6646
f1a5d776
CY
66472010-05-27 Chong Yidong <cyd@stupidchicken.com>
6648
6649 * fileio.c (Fdelete_file): Change meaning of optional arg to mean
6650 whether to trash.
6651 (internal_delete_file, Frename_file): Callers changed.
6652 (delete_by_moving_to_trash): Doc fix.
6653 (Fdelete_directory_internal): Don't move to trash.
6654
6655 * callproc.c (delete_temp_file):
6656 * buffer.c (Fkill_buffer): Callers changed.
6657
6658 * lisp.h: Update prototype.
6659
f44a59e6
CY
66602010-05-27 Chong Yidong <cyd@stupidchicken.com>
6661
6662 * xdisp.c (redisplay_window): After redisplay, check if point is
6663 still valid before setting it (Bug#6177).
6664
81ac4f35
GM
66652010-05-27 Glenn Morris <rgm@gnu.org>
6666
6667 * Makefile.in, autodeps.mk, deps.mk, ns.mk:
6668 Convert comments to Makefile format.
6669
6670 * Makefile.in (bootstrap-clean): No more Makefile.c.
6671
ccd89fb3
GM
66722010-05-26 Glenn Morris <rgm@gnu.org>
6673
90278cb6
GM
6674 * Makefile.in (YMF_PASS_LDFLAGS): Remove.
6675 (temacs${EXEEXT}): Use PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS.
6676
ccd89fb3
GM
6677 * Makefile.in (NS_IMPL_GNUSTEP_INC, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
6678 Remove.
6679 (TEMACS_LDFLAGS): Do not use NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
6680
b7050583
KH
66812010-05-26 Kenichi Handa <handa@m17n.org>
6682
6683 * composite.c (composition_compute_stop_pos): Fix condition for
6684 backward scanning.
6685
e5458003
GM
66862010-05-25 Glenn Morris <rgm@gnu.org>
6687
c345fe90
GM
6688 * Makefile.in (@NS_IMPL_GNUSTEP_INC@, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
6689 Move before TEMACS_LDFLAGS.
6690 (TEMACS_LDFLAGS): Use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
6691 (temacs${EXEEXT}): Do not use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
6692
2e0689ab
GM
6693 * Makefile.in (NOT_C_CODE): No longer define.
6694 (config.h): No longer include.
6695
8009a5e8
GM
6696 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): Move definition after some
6697 variables it may reference.
6698
e5458003
GM
6699 * Makefile.in (LD_SWITCH_SYSTEM_EXTRA): Remove.
6700 (TEMACS_LDFLAGS): Remove LD_SWITCH_SYSTEM_EXTRA.
6701
10f72a37
KH
67022010-05-25 Kenichi Handa <handa@m17n.org>
6703
6704 * dispextern.h (struct composition_it): New members rule_idx and
6705 charpos.
6706
6707 * xdisp.c (set_iterator_to_next): While scanning backward, assume
6708 that the character positions of IT point the last character of the
6709 current grapheme cluster.
6710 (next_element_from_composition): Don't change character positions
6711 of IT.
6712 (append_composite_glyph): Set glyph->charpos to
6713 it->cmp_it.charpos.
6714
6715 * composite.c (autocmp_chars): Change the first argument to RULE,
6716 and try composition with RULE only.
6717 (composition_compute_stop_pos): Record the index number of the
6718 composition rule in CMP_IT->rule_idx.
6719 (composition_reseat_it): Call autocmp_chars repeatedly until the
6720 correct rule of the composition is found.
6721 (composition_update_it): Set CMP_IT->charpos. Assume the CHARPOS
6722 is at the last character of the current grapheme cluster when
6723 CMP_IT->reversed_p is nonzero.
6724
171eda53 67252010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
f5b416d2 6726
171eda53
SM
6727 * editfns.c (Fbyte_to_string): New function.
6728
66a9f7f4
SM
67292010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
6730
6731 * process.c (Fmake_network_process): Set :host to nil if it's not used.
6732 Suggested by Masatake YAMATO <yamato@redhat.com>.
6733
d8c315d1
EZ
67342010-05-23 Eli Zaretskii <eliz@gnu.org>
6735
171eda53 6736 * dispextern.h (init_iterator): Sync prototype with changed definition.
d8c315d1 6737
f5b416d2 67382010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
6739
6740 * s/netbsd.h: If terminfo is found, use it in preference to
6741 termcap. (Bug#6190) [Backport from trunk]
6742
0416466c
EZ
67432010-05-19 Eli Zaretskii <eliz@gnu.org>
6744
11117830 6745 Redesign and reimplement bidi-aware edge positions of glyph rows.
d36fe237
EZ
6746
6747 * dispextern.h (struct glyph_row): New members minpos and maxpos.
6748 (MATRIX_ROW_START_CHARPOS, MATRIX_ROW_START_BYTEPOS)
6749 (MATRIX_ROW_END_CHARPOS, MATRIX_ROW_END_BYTEPOS): Reference minpos
6750 and maxpos members instead of start.pos and end.pos, respectively.
6751
6752 * xdisp.c (display_line): Compare IT_CHARPOS with the position in
6753 row->start.pos, rather than with MATRIX_ROW_START_CHARPOS.
6754 (cursor_row_p): Use row->end.pos rather than MATRIX_ROW_END_CHARPOS.
66a9f7f4
SM
6755 (try_window_reusing_current_matrix, try_window_id):
6756 Use ROW->minpos rather than ROW->start.pos.
d36fe237
EZ
6757 (init_from_display_pos, init_iterator): Use EMACS_INT for
6758 character and byte positions.
66a9f7f4 6759 (find_row_edges): Rename from find_row_end. Accept additional
d36fe237
EZ
6760 arguments for minimum and maximum buffer positions seen by
6761 display_line for this row. Don't use iterator to find the
6762 position following the maximum one; instead, increment the
11117830
EZ
6763 position found by display_line directly. Fix logic; eol_pos
6764 should be tested before the rest. Handle the case of characters
6765 delivered from display vector (bug#6036). Fix tests related to
6766 it->method. Handle the truncated_on_right_p rows.
6767 (RECORD_MAX_MIN_POS): New macro.
6768 (display_line): Use it to record the minimum and maximum buffer
6769 positions for glyphs in the row being assembled. Record the
6770 position of the newline that terminates the line. If word wrap is
6771 in effect, restore minimum and maximum positions seen up to the
6772 wrap point, when iterator returns to it.
6773 (try_window_reusing_current_matrix): Give up if in bidi-reordered
6774 row and cursor not already at point. Restore original pre-bidi
6775 code for unidirectional buffers.
d36fe237
EZ
6776
6777 * dispnew.c (increment_row_positions, check_matrix_invariants):
6778 Increment and check row->start.pos and row->end.pos, in addition
6779 to MATRIX_ROW_START_CHARPOS and MATRIX_ROW_END_CHARPOS.
6780
11117830
EZ
6781 * .gdbinit (prowlims): Display row->minpos and row->maxpos.
6782 Display truncated_on_left_p and truncated_on_right_p flags.
6783 Formatting fixes.
6784 (pmtxrows): Display the ordinal number of each row. Don't display
6785 rows beyond the last one.
6786
6787 * bidi.c (bidi_cache_iterator_state): Don't zero out new_paragraph:
6788 it is not copied by bidi_copy_it.
6789
6e83d800
EZ
67902010-05-22 Eli Zaretskii <eliz@gnu.org>
6791
6792 * w32.c (sys_write): Break writes into chunks smaller than 32MB.
6793 (Bug#6237)
6794
110683ad
CY
67952010-05-22 Chong Yidong <cyd@stupidchicken.com>
6796
6797 * image.c (Fimage_flush): Rename from image-refresh.
6798
98fe5161
CY
67992010-05-21 Chong Yidong <cyd@stupidchicken.com>
6800
6801 * xdisp.c (redisplay_internal): Clear caches even if redisplaying
6802 just one window.
6803
6804 * image.c (Vimage_cache_eviction_delay): Decrease to 300.
6805 (clear_image_cache): If the number of cached images is unusually
6806 large, decrease the cache eviction delay (Bug#6230).
6807
e8752c66
GM
68082010-05-21 Glenn Morris <rgm@gnu.org>
6809
66dbf213
GM
6810 * Makefile.in (${ns_appdir}, ${ns_appbindir}Emacs, ns-app):
6811 Move these rules to ns.mk.
6812 * ns.mk: New file.
6813
04384b2d
GM
6814 * Makefile.in (../src/$(OLDXMENU), $(OLDXMENU)): Always define rules.
6815
e8752c66
GM
6816 * Makefile.in (CANNOT_DUMP): New, set by configure.
6817 (emacs${EXEEXT}, bootstrap-emacs${EXEEXT}): Use $CANNOT_DUMP.
6818
2e2bbddb
JL
68192010-05-20 Juri Linkov <juri@jurta.org>
6820
6821 * fileio.c (Fdelete_file): Change interative spec to use
6822 `read-file-name' like in `find-file-read-args' where the default
6823 value is `default-directory' instead of `buffer-file-name'.
6824 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00533.html
6825
31c4aaf6
KR
68262010-05-20 Kevin Ryde <user42@zip.com.au>
6827
6828 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
6829 (Voverriding_terminal_local_map, Vsystem_key_alist)
6830 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
6831
9d5cf9b6
GM
68322010-05-20 Glenn Morris <rgm@gnu.org>
6833
6834 * Makefile.in (DEPDIR): New constant.
6835 (DEPFLAGS): Set with configure, not cpp.
6836 (MKDEPDIR): New, set by configure.
6837 (.c.o, .m.o, ecrt0.o): Use $MKDEPDIR.
6838 (clean): Use $DEPDIR.
6839 (deps_frag): Include from configure.
6840 Move static/dynamic dependency stuff to deps.mk/autodeps.mk.
6841 * deps.mk, autodeps.mk: New files, extracted from Makefile.in.
6842
bba3e508
SM
6843 * bidi.c (bidi_cache_shrink, bidi_cache_iterator_state):
6844 Fix reallocation of the cache. (Bug#6210)
ead6f8f5 6845
7f34aec3
GM
68462010-05-19 Glenn Morris <rgm@gnu.org>
6847
d494e8f2
GM
6848 * s/msdos.h (ORDINARY_LINK): Move to sed2v2.inp.
6849
c1d0dcfd
GM
6850 * Makefile.in (LD, YMF_PASS_LDFLAGS): Set with configure, not cpp.
6851 (GNULIB_VAR): Remove.
6852 (LIBES): Use LIB_GCC instead of GNULIB_VAR.
6853
6854 * m/ibms390x.h (LINKER):
6855 * m/macppc.h (LINKER) [GNU_LINUX]:
6856 * s/aix4-2.h (ORDINARY_LINK):
6857 * s/cygwin.h (LINKER):
6858 * s/darwin.h (ORDINARY_LINK):
6859 * s/gnu.h (ORDINARY_LINK):
6860 * s/netbsd.h (LINKER):
6861 * s/usg5-4.h (ORDINARY_LINK):
6862 Move to configure.
6863
7f34aec3
GM
6864 * s/aix4-2.h (LINKER): Remove; this file sets ORDINARY_LINK.
6865
754790b6
CY
68662010-05-18 Chong Yidong <cyd@stupidchicken.com>
6867
6868 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
6869 prevent stack overflow if number of arguments is too large
6870 (Bug#6214).
6871
161e44d1
JB
68722010-05-18 Juanma Barranquero <lekktu@gmail.com>
6873
6874 * charset.c (load_charset_map_from_file): Don't call close after fclose.
6875
be4ff9da
GM
68762010-05-18 Glenn Morris <rgm@gnu.org>
6877
9539dc5d
GM
6878 * s/gnu-linux.h: Combine two conditionals.
6879
6880 * Makefile.in (otherobj): Include $(VMLIMIT_OBJ) separately from
6665f4c5
GM
6881 $(POST_ALLOC_OBJ).
6882
40dc6bf4
GM
6883 * Makefile.in (RALLOC_OBJ): New, set by configure.
6884 (rallocobj): Replace with the previous variable.
6885 (otherobj): Use $RALLOC_OBJ.
6886
6887 * s/gnu.h (REL_ALLOC) [DOUG_LEA_MALLOC]:
6888 * s/gnu-linux.h (REL_ALLOC) [DOUG_LEA_MALLOC]: Move undef to configure.
6889
be4ff9da
GM
6890 * Makefile.in (GMALLOC_OBJ, VMLIMIT_OBJ): New, set by configure.
6891 (gmallocobj, vmlimitobj): Replace with previous two variables.
6892 (otherobj): Use $GMALLOC_OBJ, $VMLIMIT_OBJ.
6893
16455a85
GM
68942010-05-17 Glenn Morris <rgm@gnu.org>
6895
6896 * Makefile.in (OLDXMENU_DEPS): New, set by configure.
6897 (stamp-oldxmenu): Use $OLDXMENU_DEPS.
6898
5fdb7468
GM
68992010-05-16 Glenn Morris <rgm@gnu.org>
6900
7ca1f3f9
GM
6901 * Makefile.in (${ns_appbindir}Emacs, ns-app): Always define these rules.
6902
7541dad5
GM
6903 * Makefile.in (clean): Get rid of HAVE_NS conditional.
6904
da53fab9
GM
6905 * Makefile.in (ns_appdir, ns_appbindir): Now configure adds the
6906 trailing "/".
6907
b02a6645
GM
6908 * Makefile.in (TEMACS_LDFLAGS2): New, set by configure.
6909 (temacs${EXEEXT}): Combine the NS_IMPL_GNUSTEP case with the default.
6910
8877ca0f
GM
6911 * Makefile.in (GNUSTEP_SYSTEM_LIBRARIES): Remove, unused.
6912 (NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): New, set by configure.
6913 (LD) [NS_IMPL_GNUSTEP]: Set to $(CC) -rdynamic.
6914 (temacs${EXEEXT}): Remove $LOCALCPP, never defined or referenced.
6915 Make most of the NS_IMPL_GNUSTEP case the same as the default case.
6916
5fdb7468
GM
6917 * Makefile.in (temacs${EXEEXT}) [!NS_IMPL_GNUSTEP]:
6918 Remove ${STARTFLAGS}, nothing ever sets it.
6919
95adb4b1
DN
69202010-05-16 Dan Nicolaescu <dann@ics.uci.edu>
6921
6922 * m/ia64.h (UNEXEC): Remove, set in s/*.h.
6923
676b6304
GM
69242010-05-16 Glenn Morris <rgm@gnu.org>
6925
9beab9ce
GM
6926 * Makefile.in (LIBX_BASE): Always define.
6927
8a95f0e7
GM
6928 * Makefile.in (LIBX_OTHER): Move out of cpp section.
6929
676b6304
GM
6930 * Makefile.in (LIBXT): Always define.
6931
6e546d18
GM
69322010-05-15 Glenn Morris <rgm@gnu.org>
6933
4235ca47 6934 * Makefile.in (OLDXMENU, LIBXMENU, LIBX_OTHER): Always define.
02d4ac0e 6935
6e546d18
GM
6936 * Makefile.in (FONT_DRIVERS): Remove, replace with $FONT_OBJ.
6937 (obj, SOME_MACHINE_OBJECTS): Use $FONT_OBJ.
6938
8c5ff6dd
KR
69392010-05-15 Ken Raeburn <raeburn@raeburn.org>
6940
560bb7ae 6941 * lisp.h (XFLOAT_DATA): Use "0?x:x" to generate an rvalue. (Bug#5916)
52766425
KR
6942 (LISP_MAKE_RVALUE) [!USE_LISP_UNION_TYPE && !__GNUC__]: Likewise.
6943
8b4eb796
KR
6944 * emacs.c (main): Initialize initial-environment and
6945 process-environment before generating from env, not after.
6946
8c5ff6dd
KR
6947 Handle --version reasonably in CANNOT_DUMP configuration.
6948 * emacs.c (emacs_version, emacs_copyright): New string variables.
6949 (Vemacs_version, Vemacs_copyright): New Lisp_Object variables.
6950 (syms_of_emacs): Defvar them, and initialize them from the C
6951 string variables.
6952 (main): If initialization hasn't been done, print initial version
6953 info from the C strings, instead of starting an interactive session.
6954
dbd3f723
EZ
69552010-05-15 Eli Zaretskii <eliz@gnu.org>
6956
d20e1419
EZ
6957 * bidi.c (bidi_paragraph_init): Don't leave alone garbage values
6958 of bidi_it->paragraph_dir. Call bidi_initialize if needed.
2e9abc3d
EZ
6959 (bidi_paragraph_init): Remove redundant assertion that we are at
6960 the beginning of a line after call to bidi_find_paragraph_start.
d20e1419
EZ
6961
6962 * xdisp.c (Fcurrent_bidi_paragraph_direction): New function.
6963 (syms_of_xdisp): Defsubr it.
6964
d36fe237
EZ
6965 * cmds.c (Fforward_char, Fbackward_char): Doc fix.
6966
dbd3f723
EZ
6967 * Makefile.in: Fix MSDOS-related comments.
6968
02be533b
GM
69692010-05-15 Glenn Morris <rgm@gnu.org>
6970
1a82cca9
GM
6971 * Makefile.in (OLDXMENU_TARGET): New, set by configure.
6972 (really-lwlib, really-oldXMenu): Always define.
6973 ($OLDXMENU): Depend on $OLDXMENU_TARGET.
6974
3df7b338
GM
6975 * Makefile.in: Simplify cpp conditional.
6976
2b5f541b
GM
6977 * Makefile.in (${ns_appdir}): Simplify using umask.
6978
02be533b
GM
6979 * Makefile.in (${ns_appdir}): Remove references to CVS-related files.
6980
4e2db1fe
SM
69812010-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
6982
6983 * eval.c (specbind): Remove left-over duplicate test.
6984 Disallow let-binding frame-local vars. Add comment.
6985
4b292a22
EZ
69862010-05-14 Eli Zaretskii <eliz@gnu.org>
6987
2fe72643 6988 Make the cache of bidi iterator states dynamically allocated.
1edbd309 6989 * bidi.c (bidi_cache_shrink): New function.
2fe72643
EZ
6990 (bidi_init_it): Call it.
6991 (bidi_cache_iterator_state): Enlarge the cache if needed.
6992
4e2db1fe 6993 * bidi.c (bidi_move_to_visually_next): Rename from
4b292a22
EZ
6994 bidi_get_next_char_visually. All callers changed.
6995
82ebc97b
KH
69962010-05-14 Kenichi Handa <handa@m17n.org>
6997
6998 * dispextern.h (struct composition_it): New member reversed_p.
6999
7000 * composite.c (composition_compute_stop_pos): Search backward if
7001 ENDPOS < CHARPOS.
7002 (composition_reseat_it): Handle the case that ENDPOS < CHARPOS.
7003 Set CMP_IT->reversed_p.
b4b6e17e 7004 (composition_update_it): Pay attention to CMP_IT->reversed_p.
82ebc97b 7005
4e2db1fe
SM
7006 * xdisp.c (set_iterator_to_next):
7007 Call composition_compute_stop_pos with negative ENDPOS if we are
82ebc97b
KH
7008 scanning backward. Call composition_compute_stop_pos if scan
7009 direction is changed.
7010 (next_element_from_buffer): Call composition_compute_stop_pos with
7011 negative ENDPOS if we are scanning backward.
7012 (next_element_from_composition): Pay attention to
7013 IT->cmp_it.reversed_p.
7014
0e5d7800
KH
70152010-05-14 Kenichi Handa <handa@m17n.org>
7016
560bb7ae 7017 * font.c (font_range): Return the range for the font found at first.
0e5d7800 7018
cb027b32
GM
70192010-05-14 Glenn Morris <rgm@gnu.org>
7020
177b0288
GM
7021 * Makefile.in (ns_appdir, ns_appbindir, ns_appsrc): Always define.
7022
fbc00890
GM
7023 * Makefile.in (mktime, X11, register): Move undefs to configure.
7024
f14d1dfd
GM
7025 * Makefile.in (MSDOS_OBJ): Default to empty, let msdos scripts set it.
7026 (MSDOS_X_OBJ): New variable.
7027 (MSDOS_SUPPORT_REAL): New constant.
7028 (MSDOS_SUPPORT): Set as a variable, not with cpp.
7029 (obj): Use MSDOS_X_OBJ.
7030 (lisp): Use MSDOS_SUPPORT as a variable.
7031
11842bd8
GM
7032 * Makefile.in (REAL_MOUSE_SUPPORT): New constant.
7033 (GPM_MOUSE_SUPPORT): Now it's a constant.
7034 (MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): Set with configure,
7035 not cpp.
7036
489d31a4 7037 * Makefile.in (@NS_IMPL_GNUSTEP_INC@): Use in place of #ifdef.
845612ac 7038 (ns_appresdir): Remove, unused.
e20f1f07 7039
489d31a4
GM
7040 * Makefile.in (SHELL): Move outside cpp section.
7041
cb027b32
GM
7042 * s/netbsd.h (AMPERSAND_FULL_NAME): Remove (defined in AH_BOTTOM).
7043
5a903aa9
GM
70442010-05-13 Glenn Morris <rgm@gnu.org>
7045
3369c79f
GM
7046 * Makefile.in (FONT_DRIVERS): Place with other HAVE_X_WINDOWS stuff.
7047 (TOOLTIP_SUPPORT): Place with other HAVE_WINDOW_SYSTEM stuff.
7048
d5e982a6
GM
7049 * Makefile.in (FONT_DRIVERS): If HAVE_X_WINDOWS is defined,
7050 HAVE_WINDOW_SYSTEM must be too.
7051
6192e163
GM
7052 * Makefile.in (WINNT_SUPPORT): Remove, nt build does not use this file.
7053 (lisp): Remove WINNT_SUPPORT.
7054
472c5d6b
GM
7055 * Makefile.in (OLDXMENU, LIBXMENU) [!HAVE_MENUS]:
7056 Let configure set these variables (to empty) in this case as well.
7057
0116466b
GM
7058 * Makefile.in (LD_SWITCH_X_SITE): Define as a variable, not via cpp.
7059 (LIBX_BASE): Use $LD_SWITCH_X_SITE.
7060
5a903aa9
GM
7061 * Makefile.in (C_SWITCH_X_SYSTEM, C_SWITCH_X_SITE, LIB_STANDARD)
7062 (LIB_MATH, FONTCONFIG_CFLAGS, FONTCONFIG_LIBS, FREETYPE_CFLAGS)
7063 (FREETYPE_LIBS, LIBOTF_CFLAGS, LIBOTF_LIBS, M17N_FLT_CFLAGS)
7064 (M17N_FLT_LIBS, GNU_OBJC_CFLAGS, GNUSTEP_SYSTEM_LIBRARIES, LIBGPM)
7065 (LIBRESOLV, UNEXEC_OBJ): For clarity, define variables to hold
c0a2b70a 7066 the values output by configure.
5a903aa9
GM
7067 (ALL_CFLAGS, obj, LIBES, temacs${EXEEXT}): Use the above variables.
7068
1a0d7c06
GM
70692010-05-12 Glenn Morris <rgm@gnu.org>
7070
b5457f14
GM
7071 * Makefile.in (YMF_PASS_LDFLAGS, LD, LINKER): Simplify the logic.
7072 (LINKER_WAS_SPECIFIED): Remove.
7073
1a0d7c06
GM
7074 * Makefile.in (LIB_GCC): Set using configure, not cpp.
7075 (GNULIB_VAR) [!ORDINARY_LINK]: Always set to $LIB_GCC.
7076 * m/arm.h (LIB_GCC) [GNU_LINUX]:
7077 * s/cygwin.h (LIB_GCC):
7078 * s/freebsd.h (LIB_GCC):
7079 * s/gnu-linux.h (LIB_GCC):
7080 * s/msdos.h (LIB_GCC):
7081 * s/netbsd.h (LIB_GCC):
7082 Move to configure.
7083
d1ddd1d0 70842010-05-11 Karel Klíč <kklic@redhat.com>
c90ca7b7
KH
7085
7086 * ftfont.c: Fix incorrect parentheses of #if condition for
7087 definining M17N_FLT_USE_NEW_FEATURE.
7088
acddf8ae
GM
70892010-05-11 Glenn Morris <rgm@gnu.org>
7090
7091 * Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset.
7092 * s/msdos.h (MSDOS_LIBS_SYSTEM): Remove.
7093
ae5e04fa
EZ
70942010-05-10 Eli Zaretskii <eliz@gnu.org>
7095
7096 * xdisp.c (init_iterator): Don't turn on bidi reordering in
7097 unibyte buffers. See
7098 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00263.html.
7099
7490175b
GM
71002010-05-10 Glenn Morris <rgm@gnu.org>
7101
97efb629
GM
7102 * Makefile.in (LIBS_SYSTEM): Set using configure, not cpp.
7103 (LIBS_SYSTEM) [MSDOS]: Reset with MSDOS_LIBS_SYSTEM.
7104 (LIBES): Use LIBS_SYSTEM as a variable.
7105 * s/msdos.h (LIBS_SYSTEM): Rename to MSDOS_LIBS_SYSTEM. Always define.
7106 * s/aix4-2.h (LIBS_SYSTEM):
7107 * s/freebsd.h (LIBS_SYSTEM):
7108 * s/hpux10-20.h (LIBS_SYSTEM):
7109 * s/sol2-6.h (LIBS_SYSTEM):
7110 * s/unixware.h (LIBS_SYSTEM):
7111 Move to configure.
7112
7490175b
GM
7113 * s/aix4-2.h (MAIL_USE_LOCKF):
7114 * s/bsd-common.h (MAIL_USE_FLOCK):
7115 * s/darwin.h (MAIL_USE_FLOCK):
7116 * s/gnu-linux.h (MAIL_USE_FLOCK):
7117 * s/irix6-5.h (MAIL_USE_FLOCK):
7118 * s/template.h (MAIL_USE_FLOCK):
7119 Move to configure.
7120
0235128c 71212010-05-08 Chong Yidong <cyd@stupidchicken.com>
61a808e8
CY
7122
7123 * Version 23.2 released.
7124
0235128c 71252010-05-08 Andreas Schwab <schwab@linux-m68k.org>
5dcde606
AS
7126
7127 * composite.c (autocmp_chars): Save point as marker before calling
7128 auto-composition-function (Bug#5984).
7129
7130 * lisp.h (restore_point_unwind): Add prototype.
7131
7132 * fileio.c (restore_point_unwind): Remove static attribute.
7133
0235128c 71342010-05-08 Kenichi Handa <handa@m17n.org>
c4170e32
KH
7135
7136 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
7137 new feature of libotf and m17n-flt.
0235128c
SM
7138 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
7139 Call OTF_check_features even if no specific feature is given.
c4170e32
KH
7140 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
7141 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
7142 that OUT is NULL. Use OTF_drive_gsub_with_log and
7143 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
7144 OTF_drive_gpos.
7145 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
0235128c
SM
7146 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
7147 Setup mflt_enable_new_feature and mflt_try_otf.
7148
4721152c
J
71492010-05-08 Jan Djärv <jan.h.d@swipnet.se>
7150
7151 * xsettings.c (Ftool_bar_get_system_style): Correct comment.
7152
7153 * gtkutil.c (xg_pack_tool_bar): Change show_all to show for handle
7154 box and toolbar (Bug #6139).
7155 (xg_create_tool_bar): Remove comment (Bug #6139).
7156 (xg_make_tool_item): Remove gtk_widget_show_all (Bug #6139).
7157 (xg_show_toolbar_item): Add gtk_widget_show for weventbox (Bug #6139).
7158
ee0a16cf
JB
71592010-05-08 Juanma Barranquero <lekktu@gmail.com>
7160
7161 * makefile.w32-in ($(BLD)/eval.$(O), $(BLD)/w32fns.$(O)):
7162 Update dependencies.
7163
96d79611
EZ
71642010-05-08 Eli Zaretskii <eliz@gnu.org>
7165
7166 * fringe.c (update_window_fringes): Set up truncation bitmaps for
7167 R2L lines.
7168
40c17879
GM
71692010-05-08 Glenn Morris <rgm@gnu.org>
7170
7b42b29f
GM
7171 * Makefile.in (THIS_IS_MAKEFILE): Remove, unused.
7172
40c17879
GM
7173 * Makefile.in (LIBS_TERMCAP): Set with configure, not cpp.
7174 (TERMCAP_OBJ): New, set by configure, replacing termcapobj.
7175 (termcapobj): Replace with TERMCAP_OBJ.
7176 (otherobj): Use $TERMCAP_OBJ instead of $termcapobj.
7177 (LIBES): Use LIBS_TERMCAP as a variable.
7178
7179 * s/freebsd.h (osreldate.h): No longer include, since this file
7180 does not use __FreeBSD_version any more.
7181
7182 * s/aix4-2.h (TERMINFO):
7183 * s/cygwin.h (TERMINFO):
7184 * s/darwin.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
7185 * s/freebsd.h (TERMINFO, LIBS_TERMCAP):
7186 * s/gnu-linux.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
7187 * s/gnu.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
7188 * s/hpux10-20.h (TERMINFO, LIBS_TERMCAP):
7189 * s/irix6-5.h (TERMINFO):
7190 * s/netbsd.h (LIBS_TERMCAP):
7191 * s/openbsd.h (TERMINFO, LIBS_TERMCAP):
7192 * s/sol2-6.h (LIBS_TERMCAP) [!TERMINFO]:
7193 * s/usg5-4.h (TERMINFO):
7194 Move to configure.
7195
94b612ad
SM
71962010-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
7197
7198 * eval.c (unbind_to): Don't unbind a local binding into the global
7199 binding when the local binding disappeared. Inversely, don't unbind
7200 a global binding into a newly created local binding.
7201 * data.c (set_internal): Make its `buf' arg into a `where' arg so we
7202 can specify the frame to use, when applicable. Adjust callers.
7203
15e12598 72042010-05-07 Vincent Belaïche <vincent.belaiche@gmail.com>
acd0102a 7205 Stefan Monnier <monnier@iro.umontreal.ca>
15e12598
VB
7206
7207 * floatfns.c (Fisnan, Fcopysign, Ffrexp, Fldexp): New functions.
7208
f724825e
EZ
72092010-05-07 Eli Zaretskii <eliz@gnu.org>
7210
5cba3209
EZ
7211 * w32fns.c: Include w32.h.
7212 (Fw32_shell_execute): Decode the error message before passing it
7213 to `error'. (Bug#6126)
7214
d16bdfc3
EZ
7215 * msdos.c (dos_set_window_size):
7216 * w16select.c (Fx_selection_exists_p): Use `Fsymbol_value (foo)'
7217 instead of `XSYMBOL (foo)->value'.
7218
59d93e87
EZ
72192010-05-07 Eli Zaretskii <eliz@gnu.org>
7220
9fdec8bc
EZ
7221 Fix the MS-DOS build, broken by autoconfiscation.
7222
7223 * Makefile.in: Don't use Make-style comments past the "start of
7224 cpp stuff" line.
7225 (MSDOS_OBJ): Remove xmenu.o (it is now defined by XMENU_OBJ).
7226
7227 * s/msdos.h (UNEXEC): Don't define (@unexec@ in Makefile.in is
7228 edited directly by msdos/sed1v2.inp).
f724825e 7229
2f86b22b
GM
72302010-05-07 Glenn Morris <rgm@gnu.org>
7231
7232 * Makefile.in (LD_SWITCH_SYSTEM): Set with configure, not cpp.
7233 (LD_SWITCH_SYSTEM_EXTRA): New variable, set by configure.
7234 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM and $LD_SWITCH_SYSTEM_EXTRA,
7235 move out of cpp section.
7236 * s/freebsd.h (LD_SWITCH_SYSTEM):
7237 * s/gnu-linux.h (LD_SWITCH_SYSTEM):
7238 * s/netbsd.h (LD_SWITCH_SYSTEM):
7239 * s/openbsd.h (LD_SWITCH_SYSTEM): Move to configure.in.
7240
49ebbd65
DN
72412010-05-07 Dan Nicolaescu <dann@ics.uci.edu>
7242
7243 Define LIB_STANDARD and START_FILES using autoconf.
7244 * s/usg5-4.h (LIB_STANDARD):
7245 * s/netbsd.h (START_FILES):
7246 * s/irix6-5.h (LIB_STANDARD):
7247 * s/hpux10-20.h (LIB_STANDARD, START_FILES):
7248 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
7249 * s/freebsd.h (START_FILES):
7250 * s/darwin.h (START_FILES):
7251 * s/cygwin.h (START_FILES):
7252 * s/aix4-2.h (LIB_STANDARD):
7253 * m/ibmrs6000.h (START_FILES): Remove, move logic to configure.in.
7254 * Makefile.in (STARTFILES): Rename to START_FILES, define using
7255 autoconf, not cpp.
7256
d43c06d6
DN
72572010-05-06 Dan Nicolaescu <dann@ics.uci.edu>
7258
28823648
DN
7259 Remove NEED_BSDTTY and NEED_UNISTD_H.
7260 * s/hpux10-20.h (NEED_BSDTTY): Remove.
7261 * s/aix4-2.h (NEED_UNISTD_H): Remove.
7262 * systty.h: Simplify conditionals for including <sys/bsdtty.h>,
7263 <sys/ptyio.h> and <unistd.h>.
7264
aca00430
DN
7265 * emacs.c (main): Remove NO_DIR_LIBRARY conditional, unused.
7266
d43c06d6
DN
7267 * Makefile.in (STARTFILES): Conditionally define to make the usage clear.
7268 * s/gnu.h (START_FILES): Remove empty definition.
7269
3e56b11d
JD
72702010-05-06 Jan Djärv <jan.h.d@swipnet.se>
7271
7272 * xterm.c (x_draw_image_relief): Move declaration of extra to beginning.
7273
e3cf0cde
GM
72742010-05-06 Glenn Morris <rgm@gnu.org>
7275
7276 * Makefile.in (CPP, LN_S): Remove unused variables.
7277
774b9a60
SM
72782010-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
7279
7280 * syntax.c (Fchar_syntax): Check the arg is a character (bug#6080).
7281
4ab92842
LM
72822010-05-05 Lawrence Mitchell <wence@gmx.li>
7283
7284 * m/sparc.h: Fix typo in earlier change.
7285
178f2507
SM
72862010-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
7287
7288 Misc tweaks.
7289 * eval.c (Fdefvaralias): Remove unintended nested if.
7290 (internal_condition_case_2, internal_condition_case_n): Use ANSI type.
7291
80f00217 72922010-05-04 Bernhard Herzog <bh@intevation.de> (tiny change)
991be6d4
JD
7293
7294 * xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
7295
ef03a4e6
DN
72962010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
7297
58eb6cf0
DN
7298 Remove BSD_PGRPS.
7299 * s/bsd-common.h (BSD_PGRPS): Remove undef.
7300 * s/gnu-linux.h (BSD_PGRPS): Remove.
7301 * term.c (dissociate_if_controlling_tty):
7302 * sysdep.c (narrow_foreground_group, widen_foreground_group)
7303 (init_sys_modes, reset_sys_modes):
7304 * emacs.c (main):
7305 * callproc.c (Fcall_process, child_setup): Remove code depending
7306 on BSD_PGRPS.
7307
ef03a4e6
DN
7308 Remove POSIX_SIGNALS.
7309 * s/usg5-4.h (POSIX_SIGNALS):
7310 * s/netbsd.h (POSIX_SIGNALS):
7311 * s/msdos.h (POSIX_SIGNALS):
7312 * s/ms-w32.h (POSIX_SIGNALS):
7313 * s/hpux11.h (POSIX_SIGNALS):
7314 * s/gnu.h (POSIX_SIGNALS):
7315 * s/gnu-linux.h (POSIX_SIGNALS):
7316 * s/freebsd.h (POSIX_SIGNALS):
7317 * s/darwin.h (POSIX_SIGNALS):
7318 * s/cygwin.h (POSIX_SIGNALS):
7319 * s/aix4-2.h (POSIX_SIGNALS): Remove definition.
7320 * s/unixware.h:
7321 * s/sol2-6.h: Remove comments on POSIX_SIGNALS.
7322 * process.c (create_process):
7323 * syssignal.h:
7324 * sysdep.c (wait_for_termination, init_signals):
7325 * process.c (create_process):
7326 * msdos.c: POSIX_SIGNALS is always defined on all platforms,
7327 remove all code that assumes the contrary.
7328
49628785
GM
73292010-05-04 Glenn Morris <rgm@gnu.org>
7330
27a2cdfc
GM
7331 * s/gnu-linux.h (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX as a shell
7332 variable.
7333 * s/netbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
7334 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH.
7335 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
7336 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH instead of
7337 LD_SWITCH_SYSTEM_tmp.
7338 * Makefile.in (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH):
7339 New variables, set by configure.
7340
eb21eab5
GM
7341 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
7342 * s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
7343 (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
7344 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
7345 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.
7346
49628785
GM
7347 * s/aix4-2.h (C_SWITCH_SYSTEM):
7348 * m/alpha.h (C_SWITCH_MACHINE):
7349 Move to configure.in.
7350 * Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
7351 New variables, set by configure.
7352 (ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
7353 $c_switch_machine and $c_switch_system.
7354
7dff330b
DN
73552010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
7356
7357 * s/hpux10-20.h (LIB_STANDARD): New definition.
7358 * Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
7359 on it, not used anymore.
7360
53967e09
CY
73612010-05-03 Chong Yidong <cyd@stupidchicken.com>
7362
7363 * eval.c (internal_condition_case_n): Rename from
7364 internal_condition_case_2.
7365 (internal_condition_case_2): New function.
7366
7367 * xdisp.c (safe_call): Use internal_condition_case_n.
7368
7369 * fileio.c (Fdelete_file, internal_delete_file): New arg FORCE.
7370 (internal_delete_file, Frename_file): Callers changed.
7371
7372 * buffer.c (Fkill_buffer):
7373 * callproc.c (delete_temp_file): Callers changed (Bug#6070).
7374
7375 * lisp.h: Update prototypes.
7376
3dee6fdb
GM
73772010-05-03 Glenn Morris <rgm@gnu.org>
7378
7379 * Makefile.in (LIBX_EXTRA, LIBX_BASE): New variables.
7380 (LIBXT_OTHER, LIBX_OTHER): New, set by configure.
7381 (LIBXT): Set with configure, not cpp.
7382 (LIBX): Remove.
7383 (LIBES): Replace $LIBX with $LIBX_BASE and $LIBX_OTHER.
7384
a101e0fb
DN
73852010-05-02 Dan Nicolaescu <dann@ics.uci.edu>
7386
7387 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove.
7388 The FreeBSD is not needed, the default works, Solaris version is
7389 not needed, and the remaining case is not supported by configure.
7390
f63d0028
JD
73912010-05-02 Jan Djärv <jan.h.d@swipnet.se>
7392
7393 * xsmfns.c (CHDIR_OPT): New define.
7394 (smc_save_yourself_CB): Add CHDIR_OPT to options to use when
7395 restarting emacs.
7396
7397 * xterm.c (x_connection_closed): Call Fkill_emacs instead of
7398 shut_down_emacs.
7399
7400 * emacs.c (USAGE1): Mention --chdir.
7401 (main): Handle --chdir.
7402 (standard_args): Add --chdir.
7403 (fatal_error_signal): Call Fkill_emacs for SIGTERM and SIGHUP (Bug
7404 #5552).
7405
e4814a9f
DN
74062010-05-01 Dan Nicolaescu <dann@ics.uci.edu>
7407
cd03c74a
DN
7408 Remove LD_SWITCH_MACHINE.
7409 * Makefile.in (LD_SWITCH_MACHINE): Remove definition, unused.
7410 (TEMACS_LDFLAGS): Do not use LD_SWITCH_MACHINE.
7411
c3a398a1
DN
7412 Clean up IRIX code.
7413 * m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
7414 * s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.
7415
87e7285c
DN
7416 Clean up AIX code.
7417 * m/ibmrs6000.inp: Remove file, unused.
7418 * m/ibmrs6000.h (IBMR2AIX): Remove, unused.
7419 (LD_SWITCH_MACHINE): Rename to LD_SWITCH_SYSTEM_TEMACS, and move
7420 definition ...
7421 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): ... here.
7422
80f00217
JB
7423 * sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code,
7424 unused.
e4814a9f 7425
59ca28de
EZ
74262010-05-01 Eli Zaretskii <eliz@gnu.org>
7427
197daef4
EZ
7428 Emulate POSIX_SIGNALS on MS-Windows.
7429
7430 * s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
7431 (SIG_SETMASK, SIG_UNBLOCK): Define.
d6dae14b
EZ
7432
7433 * sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
7434 (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
7435 from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
7436
80f00217
JB
7437 * w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask):
7438 New stubs.
197daef4 7439
af7c7572
EZ
7440 Miscellaneous fixes of bidi display.
7441
59ca28de
EZ
7442 * xdisp.c (find_row_end): New function, refactored from display_line.
7443 (display_line): Use it.
017ea819
EZ
7444 (extend_face_to_end_of_line): In almost-filled rows, extend only
7445 if the row is R2L and not continued.
166e930d 7446 (display_line): Fix prepending of truncation glyphs to R2L rows.
af7c7572 7447 Preserve overlay and string info in row->end.
166e930d
EZ
7448 (insert_left_trunc_glyphs): Support addition of left truncation
7449 glyphs to R2L rows.
b47e0dcf 7450 (set_cursor_from_row): Don't place cursor on the vertical border
af7c7572
EZ
7451 glyph between adjacent windows. Fix a crash when a display string
7452 is continued to the next line. Don't return zero if cursor was
7453 found by `cursor' property of a display string.
b47e0dcf
EZ
7454 (try_cursor_movement): Don't assume that row->end == (row+1)->start,
7455 test for that explicitly.
59ca28de 7456
7acac9f4
GM
74572010-05-01 Glenn Morris <rgm@gnu.org>
7458
7459 * Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null,
7460 for clarity.
7461 (OTHER_OBJ): Remove.
7462 (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure.
7463 (otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ.
7464
45841e65
KK
74652010-05-01 Karel Klíč <kklic@redhat.com>
7466
7467 * fileio.c (Ffile_selinux_context): Context functions may return null.
7468
afc61943
DN
74692010-04-30 Dan Nicolaescu <dann@ics.uci.edu>
7470
80f00217 7471 * s/gnu.h (POSIX_SIGNALS, START_FILES): New definitions.
afc61943 7472
5a1bb006
GM
74732010-04-30 Glenn Morris <rgm@gnu.org>
7474
7475 * Makefile.in (vmlimitobj) [!SYSTEM_MALLOC]: New variable. (Bug#6065)
7476 (OTHER_OBJ): Define as a separate variable, for clarity.
7477
210af043
J
74782010-04-30 Jan Djärv <jan.h.d@swipnet.se>
7479
7480 * xsettings.c: include limits.h and update file comment.
7481
0a7df391
GM
74822010-04-30 Glenn Morris <rgm@gnu.org>
7483
d5096f16
GM
7484 * Makefile.in (OLDXMENU, LIBXMENU) [HAVE_MENUS]:
7485 Set with configure, not cpp.
7486 (LIBW): Remove, replace with $TOOLKIT_LIBW.
7487
7eb1ac33
GM
7488 * Makefile.in (mallocobj): Remove.
7489 (otherobj): Simplify using @OTHER_OBJ@.
7490
517d086b
GM
7491 * Makefile.in (dispnew.o, frame.o, fringe.o, font.o, fontset.o)
7492 (keyboard.o, window.o, xdisp.o, xfaces.o, menu.o):
7493 Don't bother making nsgui.h dependency platform-specific.
7494
0a7df391
GM
7495 * Makefile.in (nsfns.o): Remove duplicate nsgui.h dependency.
7496
d6d23852
SM
74972010-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
7498
d2630aef
SM
7499 * process.c (read_process_output, exec_sentinel): Don't burp if the
7500 sentinel/filter kills the current buffer (bug#6060).
7501
f9dddf52 7502 Fix wrong-docstring problem introduced with hash-consing. (Bug#6008)
d6d23852
SM
7503 * eval.c (Fautoload): Set doc to a unique number rather than to 0.
7504 Remove unused var `args'.
7505 * lisp.h (XSETCARFASTINT, XSETCDRFASTINT): Remove.
7506 (LOADHIST_ATTACH): Wrap with do...while to avoid surprises for callers.
7507 * doc.c (store_function_docstring): Use XSETCAR.
7508
f1e3642a
GM
75092010-04-28 Glenn Morris <rgm@gnu.org>
7510
faf535f8
GM
7511 * Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
7512 (WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.
7513
c40f9449
GM
7514 * Makefile.in (CYGWIN_OBJ): Set with configure, not cpp.
7515
658f86ca
GM
7516 * Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure.
7517 (MOUSE_SUPPORT) [!HAVE_MOUSE]: Use $GPM_MOUSE_SUPPORT.
7518
bc0b5f61
GM
7519 * Makefile.in (FONT_OBJ): New, set by configure.
7520 (FONT_DRIVERS): Use $FONT_OBJ.
7521
294c50a0
GM
7522 * Makefile.in (LIBXMU): Set with configure, not cpp.
7523 * s/aix4-2.h (LIBXMU):
7524 * s/hpux10-20.h (LIBXMU):
7525 Remove definition, now set in configure.
7526
e6ec4e99
GM
7527 * Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.
7528
f1e3642a
GM
7529 * m/amdx86-64.h [i386]: Move this test to configure.in.
7530
c6ea2936
GM
75312010-04-27 Glenn Morris <rgm@gnu.org>
7532
8fdac2c3
GM
7533 * Makefile.in (LIBXTR6): Set with configure, not cpp.
7534 * s/unixware.h (NEED_LIBW): Remove definition.
7535
986fb647
GM
7536 * Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
7537 (TOOLKIT_LIBW): New, set by configure.
7538 (@X_TOOLKIT_TYPE@): No longer define it.
7539
c6ea2936
GM
7540 * Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
7541 (MOTIF_LIBW): Set with configure, not cpp.
7542 * s/aix4-2.h (LIB_MOTIF):
7543 * s/gnu-linux.h (LIB_MOTIF):
7544 * s/unixware.h (LIB_MOTIF): Move to configure.in.
7545
aaa36002
DN
75462010-04-27 Dan Nicolaescu <dann@ics.uci.edu>
7547
7548 Reduce CPP usage.
7549 * Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
7550 (obj): Use autoconf for unexec instead of cpp.
bba3e508
SM
7551 (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE):
7552 Remove definitions and undefs. Inline definitions in the only user.
ed6281b0 7553 (ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.
aaa36002 7554
b678dd8b
GM
75552010-04-27 Glenn Morris <rgm@gnu.org>
7556
76cda504
GM
7557 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
7558 since the defaults (set by the system file) are fine in most cases.
7559 [GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
7560 * m/ibms390x.h (START_FILES, LIB_STANDARD):
7561 * m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
7562 * m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
7563 Remove definitions, since they are set correctly in s/gnu-linux.h.
7564 * s/freebsd.h (START_FILES, LIB_STANDARD):
7565 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
7566 * s/hpux10-20.h (START_FILES):
7567 * s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
7568 Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
7569
b678dd8b
GM
7570 * Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
7571 (MOTIF_LIBW): Use $LIBXP.
7572 (otherobj): Use $WIDGET_OBJ.
7573
9452ded1
DN
75742010-04-26 Dan Nicolaescu <dann@ics.uci.edu>
7575
7e10844c
DN
7576 * Makefile.in (LIBS_MACHINE): Remove, unused.
7577
9452ded1
DN
7578 Use autoconf instead of cpp for LIB_MATH.
7579 * s/darwin.h (LIB_MATH): Do not define here, move to configure.
7580 * s/cygwin.h (LIB_MATH): Likewise.
7581 * Makefile.in (LIB_MATH): Do not define with cpp.
7582 (LIBES): Use autoconf for LIB_MATH.
7583
fcebfc6a
KH
75842010-04-26 Kenichi Handa <handa@m17n.org>
7585
7586 * composite.c (Ffind_composition_internal): Fix the return value
7587 for an automatic composition.
7588
39e2ad1b
DN
75892010-04-25 Dan Nicolaescu <dann@ics.uci.edu>
7590
7591 Remove all NO_ARG_ARRAY uses.
7592 * fns.c (concat2, concat3, nconc2):
7593 * eval.c (apply1, call1, call2, call3, call4, call5, call6)
7594 (call7): Remove NO_ARG_ARRAY usage, assume it's always true.
7595 * m/xtensa.h (NO_ARG_ARRAY):
7596 * m/template.h (NO_ARG_ARRAY):
7597 * m/sparc.h (NO_ARG_ARRAY):
7598 * m/sh3.h (NO_ARG_ARRAY):
7599 * m/mips.h (NO_ARG_ARRAY):
7600 * m/macppc.h (NO_ARG_ARRAY):
7601 * m/iris4d.h (NO_ARG_ARRAY):
7602 * m/intel386.h (NO_ARG_ARRAY):
7603 * m/ibms390x.h (NO_ARG_ARRAY):
7604 * m/ibms390.h (NO_ARG_ARRAY):
7605 * m/ibmrs6000.h (NO_ARG_ARRAY):
7606 * m/ia64.h (NO_ARG_ARRAY):
7607 * m/hp800.h (NO_ARG_ARRAY):
7608 * m/arm.h (NO_ARG_ARRAY):
7609 * m/amdx86-64.h (NO_ARG_ARRAY):
7610 * m/alpha.h (NO_ARG_ARRAY): Remove definition.
7611
adf4f59c
EZ
76122010-04-25 Eli Zaretskii <eliz@gnu.org>
7613
6bdf5d65
EZ
7614 * xdisp.c (display_line): Don't assume 2nd call to
7615 get_next_display_element cannot return zero. (Bug#6030)
f538fcec
EZ
7616 (iterate_out_of_display_property): New function, body from pop_it.
7617 (pop_it): Use it.
adf4f59c 7618
dfbbda83
GM
76192010-04-24 Glenn Morris <rgm@gnu.org>
7620
7621 * m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]:
7622 For clarity, revert to using fixed /usr/lib rather than $CRT_DIR.
7623 (START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case,
7624 since CRT_DIR defaults to /usr/lib. Suggested by Dan Nicolaescu.
7625
2d4018aa
EZ
76262010-04-24 Eli Zaretskii <eliz@gnu.org>
7627
a49884a6
EZ
7628 * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
7629 use `get_next_display_element' and `set_iterator_to_next' to
7630 advance to the next character, when looking for the character that
7631 begins the next row.
7632
76db6fcc 7633 * .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
2d4018aa
EZ
7634 definition of "struct Lisp_Symbol".
7635
70eab5c1
GM
76362010-04-24 Glenn Morris <rgm@gnu.org>
7637
7638 * Makefile.in (CRT_DIR): New variable, set by configure.
7639 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
7640 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
7641
1ad4cc3d
DN
76422010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
7643
e769f484
DN
7644 * Makefile.in: Remove C_SWITCH_X_MACHINE, unused.
7645
4196ff33
DN
7646 * s/cygwin.h (LIBS_DEBUG): Remove, unused.
7647
879b0ee4
DN
7648 Remove redundant flags.
7649 * s/freebsd.h (C_SWITCH_SYSTEM):
7650 * s/hpux10-20.h (C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
7651 * s/netbsd.h (C_SWITCH_SYSTEM):
7652 * s/openbsd.h (LD_SWITCH_X_DEFAULT): Remove, configure takes care
7653 of these.
7654
03cbbcb8
DN
7655 Simplify m/intel386.h.
7656 * m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
7657 user: ecrt0.c.
7658 (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
7659 (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
7660 the only user: s/unixware.h.
7661 * ecrt0.c: Remove #ifndef static. Inline CRT0_DUMMIES definition
7662 from m/intel386.h.
bba3e508
SM
7663 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE):
7664 Definitions moved here from m/intel386.h.
03cbbcb8 7665
1ad4cc3d
DN
7666 * m/mips.h: Remove #if 0 code.
7667
8785b888
EZ
76682010-04-23 Eli Zaretskii <eliz@gnu.org>
7669
728588cc
EZ
7670 Fix display of composed characters from L2R scripts in bidi buffers.
7671 * xdisp.c (set_iterator_to_next, next_element_from_composition):
7672 After advancing IT past the composition, resync the bidi iterator
7673 with IT's position. (Bug#5977)
7674
a63f80b4
DN
76752010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
7676
7677 * Makefile.in (LD_SWITCH_MACHINE_TEMACS): Remove, unused.
7678 (TEMACS_LDFLAGS): Don't use LD_SWITCH_SYSTEM_TEMACS.
7679
ff5dec5c
SM
76802010-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
7681
7682 * gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.
7683
8785b888
EZ
76842010-04-23 Eli Zaretskii <eliz@gnu.org>
7685
58ccf243 7686 Support `display' text properties and overlay strings in bidi buffers.
8785b888
EZ
7687 * xdisp.c (pop_it): When the stack is popped after displaying
7688 from a string, bidi-iterate to exit from the text portion covered
7689 by the `display' property or overlay. (Bug#5988, bug#5920)
7690
feeb1604
DN
76912010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
7692
8e324eb6
DN
7693 * m/macppc.h (LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
7694 (LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.
7695
809fcaba
DN
7696 * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
7697 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
7698
ed710380
DN
7699 Simplify STARTFILES definition.
7700 * s/hpux10-20.h (START_FILES): Explicitly define here instead of
7701 relying on Makefile.in to define it.
7702 * s/cygwin.h (START_FILES): Likewise.
7703 * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
7704
feeb1604
DN
7705 Clean up Solaris code.
7706 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
7707 (LIB_MOTIF): Remove, configure takes care of this.
7708 (NOT_USING_MOTIF): Remove, unused.
7709 * xrdb.c: Remove #if 0-ed #include.
7710 (SYSV): Remove conditional for old SysV.
7711 * sysdep.c (closedir): Remove conditional code for Solaris,
7712 Solaris has closedir.
7713
a0d0b563
JD
77142010-04-22 Jan Djärv <jan.h.d@swipnet.se>
7715
7716 * xsettings.c (read_and_apply_settings): Check if current_font is
7717 NULL before strcmp (Bug#6001).
7718
56bae7c7
DN
77192010-04-21 Dan Nicolaescu <dann@ics.uci.edu>
7720
7721 Clean up HP-UX files.
7722 * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
7723 (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
7724 (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
7725 * s/hpux10-20.h: ... to the only user, here.
7726
372b7a95
EZ
77272010-04-21 Eli Zaretskii <eliz@gnu.org>
7728
7729 * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
7730 use buffer-local values of paragraph-start and paragraph-separate.
7731 <paragraph_start_re, paragraph_separate_re>: Rename from
7732 fallback_paragraph_start_re and fallback_paragraph_separate_re.
7733 (Bug#5992)
7734
f904c0f9
JD
77352010-04-21 Jan Djärv <jan.h.d@swipnet.se>
7736
7737 * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
7738 current_tool_bar_style are new.
7739 (store_config_changed_event): Rename from store_font_changed_event.
7740 (XSETTINGS_TOOL_BAR_STYLE): New define.
7741 (SEEN_FONT, SEEN_TB_STYLE): New enum values.
7742 (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
7743 HAVE_XFT.
7744 (something_changedCB): store_font_changed_event is now
c4cc8b9a 7745 store_config_changed_event.
bba3e508
SM
7746 (parse_settings): Rename from parse_xft_settings.
7747 Read non-xft xsettings outside #ifdef HAVE_XFT.
ef1b0ba7 7748 (read_settings): Rename from read_xft_settings.
f904c0f9
JD
7749 (apply_xft_settings): Take current settings as parameter. Do not
7750 call read_(xft)_settings.
7751 (read_and_apply_settings): New function.
bba3e508
SM
7752 (xft_settings_event): Do non-xft stuff out of HAVE_XFT.
7753 Call read_and_apply_settings if there are settings to be read.
ef1b0ba7 7754 (init_xsettings): Rename from init_xfd_settings.
f904c0f9
JD
7755 Call read_and_apply_settings unconditionally.
7756 (xsettings_initialize): Call init_xsettings.
7757 (Ftool_bar_get_system_style): New function.
7758 (syms_of_xsettings): Define Qmonospace_font_name and
7759 Qtool_bar_style. Initialize current_tool_bar_style to nil.
f9dddf52 7760 defsubr Stool_bar_get_system_style. Fprovide on
f904c0f9 7761 dynamic-setting.
31a01b90 7762 Move misplaced HAVE_GCONF
f904c0f9
JD
7763
7764 * xsettings.h (Ftool_bar_get_system_style): Declare.
7765
7766 * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
7767 Qtext, Qboth, Qboth_horiz are new.
7768 (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
7769 Vtool_bar_style, tool_bar_max_label_size.
7770
7771 * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
7772
7773 * keyboard.c: QClabel is new.
7774 (parse_tool_bar_item): Take out QClabel from tool bar items.
7775 Try to construct a label if ther is no QClabel.
7776 (syms_of_keyboard): Intern :label as QClabel.
7777
7778 * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
7779 (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
7780 New.
7781
7782 * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
7783 dynamic-setting.el.
7784
7785 * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
7786 (xg_make_tool_item, xg_show_toolbar_item): New function.
7787 (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
7788 Call xg_make_tool_item to make a tool bar item.
7789 Call xg_show_toolbar_item. Use wtoolbar instead of x->toolbar_widget.
7790
7791 * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
7792 into account for toolbars.
7793
c632dfda
JD
77942010-04-21 Jan Djärv <jan.h.d@swipnet.se>
7795
7796 * data.c (make_blv): Declarations before code (Bug#5993).
7797
10efe302
GM
77982010-04-21 Glenn Morris <rgm@gnu.org>
7799
7800 * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
7801 Define using autoconf, not cpp.
7802 (LIBXSM): New variable, set by autoconf.
7803 (LIBXT): Use $LIBXSM.
7804
4285ac5a
DN
78052010-04-21 Dan Nicolaescu <local_user@dannlt>
7806
3ec759e7
DN
7807 Remove NOMULTIPLEJOBS, unused.
7808 * s/template.h (NOMULTIPLEJOBS):
7809 * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
7810
4285ac5a
DN
7811 Simplify LD_SWITCH_SYSTEM_TEMACS usage.
7812 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
7813 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
7814 detects -znocombreloc and passes it to the linker
7815 * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
7816
2807228d
GM
78172010-04-21 Glenn Morris <rgm@gnu.org>
7818
7819 * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
7820
574c05e2
KK
78212010-04-21 Karel Klíč <kklic@redhat.com>
7822
7823 * Makefile.in (LIBSELINUX_LIBS): New.
7824 (LIBES): Add $LIBSELINUX_LIBS.
7825 * eval.c, lisp.h (call7): New function.
7826 * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
7827 (Ffile_selinux_context, Fset_file_selinux_context):
7828 New functions.
7829 (Fcopy_file): New parameter preserve-selinux-context.
7830 (Frename_file): Preserve selinux context when renaming by copy-file.
7831
91eac4bb 78322010-04-21 Juanma Barranquero <lekktu@gmail.com>
acd0102a 7833 Eli Zaretskii <eliz@gnu.org>
91eac4bb 7834
50426a04
JB
7835 Don't depend on cm.c or termcap.c on Windows, use stubs.
7836 * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
7837 ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
7838 * w32console.c (current_tty, cost): New vars; lifted from cm.c.
7839 (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
7840 (sys_tputs, sys_tgetstr): New stubs.
7841 * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
7842 (tputs, tgetstr): New; define to sys_*.
91eac4bb 7843
938efb77
JB
78442010-04-20 Juanma Barranquero <lekktu@gmail.com>
7845
7846 * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
7847
b4bf28b7
SM
78482010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
7849
8b1e1112
SM
7850 * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
7851 Just signal a warning rather than an error when inside a let.
7852 (Fmake_variable_frame_local): Add the same test.
7853
933ac235
SM
7854 * font.c (syms_of_font): Make the style table vars read-only.
7855
b4bf28b7
SM
7856 * buffer.h (struct buffer): Remove unused var `direction_reversed'.
7857 * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
7858
7859 * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
7860
93d68d0c
EZ
78612010-04-20 Eli Zaretskii <eliz@gnu.org>
7862
7863 Fix R2L paragraph display on TTY.
7864
7865 * xdisp.c (unproduce_glyphs): New function.
7866 (display_line): Use it when produced glyphs are discarded from R2L
7867 glyph rows.
7868 (append_composite_glyph): In R2L rows, prepend the glyph rather
7869 than appending it.
7870
7871 * term.c (append_composite_glyph): In R2L rows, prepend the glyph
7872 rather than append it. Set up the resolved_level and bidi_type
7873 attributes of the appended glyph.
283ccc18
EZ
7874 (produce_special_glyphs): Mirror the backslash continuation
7875 character in R2L lines.
93d68d0c 7876
283ccc18 7877 Implement display of R2L paragraphs in GUI sessions.
26cdf528 7878
283ccc18
EZ
7879 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
7880 append_stretch_glyph.
bba3e508
SM
7881 (set_cursor_from_row) <cursor_x>: Remove unused variable.
7882 Fix off-by-one error in computing x at end of text in the row.
283ccc18
EZ
7883 (append_stretch_glyph): In reversed row, prepend the glyph rather
7884 than append it. Set resolved_level and bidi_type of the glyph.
7885 (extend_face_to_end_of_line): If the row is reversed, prepend a
7886 stretch glyph whose width is such that the rightmost glyph will be
7887 drawn at the right margin of the window. Fix off-by-one error on
bba3e508
SM
7888 TTY frames in testing whether a line needs face extension.
7889 Fix face extension at ZV. If this is the last glyph row, use
283ccc18
EZ
7890 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
7891 region face.
bba3e508
SM
7892 (set_cursor_from_row, display_line):
7893 Use MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
26cdf528 7894 row->continuation_lines_width.
283ccc18
EZ
7895 (next_element_from_buffer): Don't call bidi_paragraph_init if we
7896 are at ZV. Fixes a crash when reseated to ZV by
7897 try_window_reusing_current_matrix.
45903529
EZ
7898 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
7899 which happens with R2L glyph rows. Fixes a crash when inserting a
7900 character at end of an R2L line.
283ccc18
EZ
7901 (set_cursor_from_row): Don't be fooled by truncated rows: don't
7902 treat them as having zero-width characters. Improve comments.
7903 Don't reverse pos_before and pos_after for reversed glyph rows.
7904 Set cursor.x to negative value when the cursor might be on the
7905 left fringe.
7906 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
7907 left fringe, not the right one.
f951a506
EZ
7908 (notice_overwritten_cursor, draw_phys_cursor_glyph)
7909 (erase_phys_cursor): For reversed cursor_row, support cursor on
7910 the left fringe.
7911
283ccc18
EZ
7912 * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
7913 of continuation indicators on the fringes.
7914 (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
7915 left fringe.
7916
f951a506
EZ
7917 * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
7918 draw cursor on the left fringe.
7919
7920 * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
7921 cursor on the left fringe.
7922
f951a506
EZ
7923 * dispnew.c (update_text_area): Handle reversed desired rows when
7924 the cursor is on the left fringe.
7925 (set_window_cursor_after_update): Limit cursor's hpos by -1 from
7926 below, not by 0, for when the cursor is on the left fringe.
7927
3bb49aaf
JD
79282010-04-20 Jan Djärv <jan.h.d@swipnet.se>
7929
7930 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
7931 widget is a scrollbar.
7932
c0be27fd
KH
79332010-04-20 Kenichi Handa <handa@m17n.org>
7934
7935 * charset.c (char_charset): Consider Vcharset_non_preferred_head
7936 only when the arg CHARSET_LIST is nil.
7937
ce5b453a
SM
79382010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
7939
7940 Make variable forwarding explicit rather the using special values.
7941 Basically, this makes the structure of buffer-local values and object
7942 forwarding explicit in the type of Lisp_Symbols rather than use
7943 special Lisp_Objects for that. This tends to lead to slightly more
7944 verbose code, but is more C-like, simpler, and makes it easier to make
7945 sure we handled all cases, among other things by letting the compiler
7946 help us check it.
7947 * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
7948 Removing forwarding objects.
7949 (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
7950 (struct Lisp_Symbol): Make the various forms of variable-forwarding
7951 explicit rather than hiding them inside Lisp_Object "values".
7952 (XFWDTYPE): New macro.
7953 (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
7954 (XBUFFER_LOCAL_VALUE): Remove.
7955 (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
7956 (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
7957 (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
7958 (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
7959 (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
7960 Remove the Lisp_Misc_* header.
7961 (struct Lisp_Buffer_Local_Value): Redefine.
7962 (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
7963 (struct Lisp_Misc_Any): Add filler to get the right size.
7964 (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
7965 Lisp_Intfwd.
7966 (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
7967 (DEFVAR_KBOARD): Allocate a forwarding object.
7968 * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
7969 (let_shadows_global_binding_p): New function.
7970 (union Lisp_Val_Fwd): New type.
7971 (make_blv): New function.
7972 (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
7973 (store_symval_forwarding, swap_in_global_binding, Fboundp)
7974 (swap_in_symval_forwarding, find_symbol_value, Fset)
7975 (let_shadows_buffer_binding_p, set_internal, default_value)
7976 (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
7977 (Fkill_local_variable, Fmake_variable_frame_local)
7978 (Flocal_variable_p, Flocal_variable_if_set_p)
7979 (Fvariable_binding_locus):
7980 * xdisp.c (select_frame_for_redisplay):
7981 * lread.c (Fintern, Funintern, init_obarray, defvar_int)
7982 (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
7983 * frame.c (store_frame_param):
7984 * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
7985 * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
7986 value structure.
7987 * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
7988 (clone_per_buffer_values): Only adjust markers into the current buffer.
7989 (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
7990 (Fbuffer_local_value, set_buffer_internal_1)
7991 (swap_out_buffer_local_variables):
7992 Adapt to the new symbol value structure.
7993 (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
7994 (defvar_per_buffer): Take a new arg for the fwd object.
7995 (buffer_lisp_local_variables): Return a proper alist (different fix
7996 for bug#4138).
7997 * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
7998 (Fgarbage_collect): Don't handle buffer_defaults specially.
7999 (mark_object): Handle new symbol value structure rather than the old
8000 special Lisp_Misc_* objects.
8001 (gc_sweep) <symbols>: Free also the buffer-local-value objects.
8002 * term.c (set_tty_color_mode):
8003 * bidi.c (bidi_initialize): Don't access the ->value field directly.
8004 * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
8005 a buffer_local_flags.
8006 * print.c (print_object): Get rid of impossible forwarding objects.
8007
fd3998ff
EZ
80082010-04-19 Eli Zaretskii <eliz@gnu.org>
8009
8010 * bidi.c (bidi_get_type, bidi_get_category)
8011 (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
ce5b453a
SM
8012 (bidi_type_of_next_char, bidi_level_of_next_char):
8013 Declare static. Use `INLINE' rather than `inline'.
fd3998ff 8014
e42cd1a7
JB
80152010-04-19 Juanma Barranquero <lekktu@gmail.com>
8016
8017 * dired.c (Ffile_attributes): Fix typo in docstring.
8018
6e104790 80192010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
79353a53
AR
8020
8021 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
8022 NSInteger (Bug#5811).
8023
6e104790 80242010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
658b9b93
YM
8025
8026 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
8027 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
8028
6e104790 80292010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16009a0e
YM
8030
8031 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
8032
6e104790
SM
80332010-04-19 Chong Yidong <cyd@stupidchicken.com>
8034
8035 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
8036 terminal frames (Bug#5837).
8037
37dcfea0
EZ
80382010-04-19 Eli Zaretskii <eliz@gnu.org>
8039
d1da276f
EZ
8040 * .gdbinit (xsubchartable): New command.
8041
37dcfea0
EZ
80422010-04-19 Eli Zaretskii <eliz@gnu.org>
8043
8044 * xdisp.c (display_line): Don't write beyond the last glyph row in
9166b0f3 8045 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
37dcfea0
EZ
8046 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
8047 and
8048 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
8049
e9515805
SM
80502010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
8051
8052 * alloc.c (Fpurecopy): Hash-cons if requested.
8053 (syms_of_alloc): Update purify-flag docstring.
8054
22aa44a8
JD
80552010-04-18 Jan Djärv <jan.h.d@swipnet.se>
8056
8057 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
8058 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
8059
ebb5722e
EZ
80602010-04-17 Eli Zaretskii <eliz@gnu.org>
8061
8062 Fix a crash when an NSM character is inserted at BEGV.
8063
8064 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
8065 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
8066 NEUTRAL_B or UNKNOWN_BT.
8067
0f4442ef
EZ
80682010-04-16 Eli Zaretskii <eliz@gnu.org>
8069
8070 * xdisp.c (set_cursor_from_row): Don't consider possibility of
8071 other rows with cursor unless they are different from this row and
8072 this row is part of a continued line. (Bug#5943)
8073
7d4e45f8
DN
80742010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
8075
8076 * s/freebsd.h: Restore osreldate.h include.
8077 Suggested by Naohiro Aota.
8078
5ba5ec85
J
80792010-04-16 Jan Djärv <jan.h.d@swipnet.se>
8080
8081 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
8082
20af301d
CY
80832010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
8084
8085 * s/cygwin.h: Avoid linking against static libgcc.
8086
a4b000fb
JL
80872010-04-15 Juri Linkov <juri@jurta.org>
8088
8089 * window.c: Add Qscroll_command.
8090 Remove Vscroll_preserve_screen_position_commands.
8091 (window_scroll_pixel_based, window_scroll_line_based): Check the
8092 `scroll-command' property on the last command instead of searching
8093 the last command in Vscroll_preserve_screen_position_commands.
8094 (syms_of_window): Initialize and staticpro `Qscroll_command'.
8095 Put Qscroll_command property on Qscroll_up and Qscroll_down.
8096 (scroll-preserve-screen-position): Doc fix.
8097 (Vscroll_preserve_screen_position_commands): Remove variable.
8098
bc319ba4
DN
80992010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
8100
6bb24457
DN
8101 * xdisp.c (message): Do not use NO_ARG_ARRAY.
8102
19d4c244
DN
81032010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
8104
8105 Reduce cpp use in Makefile.in.
8106 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
8107 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
8108 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
8109 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
8110 (CRT0_COMPILE): Remove, inline it in the only user.
8111
32129746
JL
81122010-04-14 Juri Linkov <juri@jurta.org>
8113
8114 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
8115 `scroll-up-command' and `M-v' from `scroll-down' to
8116 `scroll-down-command'.
8117
9013a7f8
JL
81182010-04-14 Juri Linkov <juri@jurta.org>
8119
8120 * window.c (Vscroll_preserve_screen_position_commands): New variable
8121 with the default value as the list of Qscroll_down and Qscroll_up.
8122 (window_scroll_pixel_based, window_scroll_line_based): Search the
8123 last command in the list Vscroll_preserve_screen_position_commands
8124 instead of comparing with Qscroll_up and Qscroll_down.
8125
4bef8d26
JD
81262010-04-13 Jan Djärv <jan.h.d@swipnet.se>
8127
92848133
JD
8128 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
8129 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
8130 does that.
8131
4bef8d26
JD
8132 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
8133 to zero.
8134
58b963f7
SM
81352010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
8136
84164a0d
SM
8137 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
8138
2b0a91e7
SM
8139 Try to solve the problem of spurious EOF chars in long lines of text
8140 sent to interactive subprocesses.
8141 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
8142 (system_process_attributes): Remove unused var `ttotal'.
8143 * process.c (send_process): Don't bother breaking long line with EOF
8144 chars when talking to ttys any more.
8145 (wait_reading_process_output): Output a warning when called in such
8146 a way that it could block without being interruptible.
8147
58b963f7
SM
8148 Try to detect file modification within the same second.
8149 * buffer.h (struct buffer): New field modtime_size.
8150 * buffer.c (reset_buffer): Initialize it.
8151 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
8152 (Fverify_visited_file_modtime): Check it.
8153 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
8154 (Fset_visited_file_modtime): Set (or clear) it.
8155
01f5787b
SM
81562010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
8157
8158 * process.c (status_notify): Remove unused var `ro'.
8159
83725342
JD
81602010-04-12 Jan Djärv <jan.h.d@swipnet.se>
8161
8162 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
8163 more than one visual (Bug#5938).
8164
b9465836
DN
81652010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
8166
50426a04
JB
8167 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
8168 Undefine.
b9465836 8169
8d9c8ece
DN
81702010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
8171
b1f52161
DN
8172 Remove C_SWITCH_SYSTEM_TEMACS.
8173 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
8174 (malloc, realloc, free): Use emacs, not temacs for conditional
8175 definition.
8176
8177 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
8178 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
8179
8d9c8ece
DN
8180 Use autoconf, not cpp for some variables.
8181 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
8182 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
8183 (ALL_CFLAGS): Use them as make variables.
8184 (really-lwlib, really-oldXMenu): Do not pass them.
8185
1ecb2d3f
JD
81862010-04-11 Jan Djärv <jan.h.d@swipnet.se>
8187
8188 * xmenu.c (apply_systemfont_to_dialog): New.
8189 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
8190
3a4fa2f2
SM
81912010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
8192
97e53006
SM
8193 * process.c (exec_sentinel): Preserve current-buffer.
8194
3a4fa2f2
SM
8195 * process.c (read_process_output): Move the save-current-buffer to
8196 apply to both the filter and the non-filter branches.
8197
88df7221
DN
81982010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
8199
8200 * s/msdos.h (UNEXEC): New definition.
8201
5634ff85
YM
82022010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8203
6eff5c3d
YM
8204 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
8205 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
8206
8207 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
8208 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
8209 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
8210 TRY_WINDOW_CHECK_MARGINS.
8211
8212 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
5b253e9c
YM
8213 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
8214 width only when it is for padding.
5634ff85 8215
b13aef54
J
82162010-04-09 Jan Djärv <jan.h.d@swipnet.se>
8217
8218 * xfns.c (Fx_show_tip): Call try_window in a loop until
8219 fonts_changed_p is zero (Bug#2423).
8220
21d28484
EZ
82212010-04-08 Eli Zaretskii <eliz@gnu.org>
8222
8223 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
8224 the end of TEXT_AREA. (Bug#5856)
8225
0269ef77
JD
82262010-04-08 Jan Djärv <jan.h.d@swipnet.se>
8227
8228 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
8229 HAVE_GCONF.
8230
5930fe97
EZ
82312010-04-08 Eli Zaretskii <eliz@gnu.org>
8232
8233 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
8234 prev.orig_type, for resolving type of NSM. (Bug#5858)
8235
99852628
JD
82362010-04-08 Jan Djärv <jan.h.d@swipnet.se>
8237
8238 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
8239 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
8240 in current_font.
8241 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
50426a04
JB
8242 (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
8243 New functions.
8244 (syms_of_xsettings): Initialize current_font.
8245 defsubr Sfont_get_system_normal_font.
99852628 8246
686b968e
JB
8247 * xsettings.h (Ffont_get_system_normal_font)
8248 (xsettings_get_system_normal_font): Declare.
99852628
JD
8249
8250 * xfns.c (extern xlwmenu_default_font): Remove.
8251 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
8252 to xlwmenu.c.
8253
8254 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
8255 menu items in UTF-8.
8256
8257 * xmenu.c: include xsettings.h and xlwmenu.h if USE_LUCID.
8258 (apply_systemfont_to_menu): New function.
bba3e508
SM
8259 (set_frame_menubar, create_and_show_popup_menu):
8260 Call apply_systemfont_to_menu.
99852628 8261
7fc874c4
J
82622010-04-07 Jan Djärv <jan.h.d@swipnet.se>
8263
8264 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
8265 FRAME_LINE_TO_PIXEL_Y.
8266
8267 * xterm.c (x_set_window_size_1): Don't add border_width/height to
8268 pixelwidth/height.
8269
863bf481
DN
82702010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
8271
5e5a3b92
DN
8272 Simplify code for HP machines.
8273 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
8274 for GNU_LINUX, not needed.
8275 (UNEXEC, NEED_BSDTTY): Move definitions...
8276 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
8277
863bf481
DN
8278 * m/iris4d.h (UNEXEC): Move definition ...
8279 * s/irix6-5.h (UNEXEC): ... here.
8280
3e6bec3b
JD
82812010-04-04 Jan Djärv <jan.h.d@swipnet.se>
8282
8283 * xfns.c (set_machine_and_pid_properties): New function.
8284 (Fx_create_frame): Call set_machine_and_pid_properties.
8285
2912322b
SM
82862010-04-03 Eli Zaretskii <eliz@gnu.org>
8287
bba3e508
SM
8288 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char):
8289 Check bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
1502b819
EZ
8290 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
8291
2912322b
SM
8292 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
8293 in this function. (Bug#5703)
8294
82952010-04-03 Chong Yidong <cyd@stupidchicken.com>
8296
8297 * nsterm.h: Fix last change.
8298
c435b432
DN
82992010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
8300
a568f507
DN
8301 * m/intel386.h (NO_REMAP): Move definition ...
8302 * s/msdos.h (NO_REMAP): ... here.
8303
4cd9f6c2
DN
8304 * m/vax.h (CRT0_DUMMIES): Remove, unused.
8305
c435b432
DN
8306 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
8307 used on those platforms.
8308
42a2c622
DN
83092010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
8310
8311 Remove extern errno declarations.
8312 * xterm.c:
8313 * xrdb.c:
8314 * w32term.c:
8315 * unexec.c:
8316 * unexaix.c:
8317 * sysdep.c:
8318 * process.c:
8319 * lread.c:
8320 * keyboard.c:
8321 * floatfns.c:
8322 * filelock.c:
8323 * fileio.c:
8324 * emacs.c (main):
8325 * ecrt0.c:
8326 * dispnew.c:
8327 * callproc.c:
8328 * buffer.c: Remove errno extern declarations.
8329 * s/netbsd.h (NEED_ERRNO): Remove.
8330
8224f93d
DN
83312010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
8332
8333 Remove all uses of LIBX11_SYSTEM.
8334 * Makefile.in (LIBX11_SYSTEM): Remove.
8335 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
8336 instead.
8337
814062c7
EZ
83382010-04-01 Eli Zaretskii <eliz@gnu.org>
8339
ed68db4d
EZ
8340 Remove support for DJGPP v1.x (bug#5813).
8341
8342 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
8224f93d
DN
8343 * s/msdos.h:
8344 * unexec.c (make_hdr, copy_text_and_data):
8345 * sysdep.c (wait_for_termination, sys_subshell):
ed68db4d 8346 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
52f4d8d5
EZ
8347 (IT_set_terminal_modes, __write, _rename, gethostname)
8348 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
8349 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
8350 the value of __DJGPP__.
ed68db4d
EZ
8351 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
8352 compatibility code.
8224f93d
DN
8353 * lread.c:
8354 * gmalloc.c (memalign):
8355 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
8356 * emacs.c (main):
8357 * dosfns.c (init_dosfns):
ed68db4d
EZ
8358 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
8359
52f4d8d5
EZ
83602010-04-01 Eli Zaretskii <eliz@gnu.org>
8361
814062c7
EZ
8362 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
8363 string with `cursor' property comes from an `after-string'
8364 overlay. (Bug#5816)
8365
0dc2e11d
GM
83662010-04-01 Glenn Morris <rgm@gnu.org>
8367
8368 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
8369 Define as Makefile variables.
8370 (LIBX): Use above variables rather than directly using autoconf.
8371
1d29df59
DN
83722010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
8373
8374 Clean up BSD_SYSTEM use.
8375 * xterm.c:
8376 * process.c:
8377 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
8378 for including <sys/ioctl.h>.
8379 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
8380 code is only used for MSDOS.
8381
1546c559
JL
83822010-03-31 Juri Linkov <juri@jurta.org>
8383
8384 * image.c: Add `Qextension_data'.
8385 (syms_of_image): Initialize and staticpro `Qextension_data'.
8386 (Fimage_metadata): Rename from `Fimage_extension_data'.
8387 (gif_load): Put GIF extension data to the property
8388 `Qextension_data'.
8389
6521c534
CY
83902010-03-31 Chong Yidong <cyd@stupidchicken.com>
8391
8392 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
8393 * nsterm.h: Fix prototype.
8394
52c30783
EZ
83952010-03-31 Eli Zaretskii <eliz@gnu.org>
8396
8397 * xdisp.c (highlight_trailing_whitespace): Support highlight of
8398 trailing whitespace in right-to-left rows.
8399
855a0da7
SM
84002010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
8401
8402 Get rid of the direct_output optimizations.
8403 * keyboard.c (nonundocount): Remove extern declaration.
8404 (command_loop_1): Remove brittle optimisation for cheap and
8405 common operations.
8406 * xdisp.c (redisplay_internal): Don't bother checking
8407 redisplay_performed_directly_p any more.
8408 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
8409 any more.
8410 * dispnew.c (redisplay_performed_directly_p)
8411 (direct_output_for_insert, direct_output_forward_char):
8412 * dispextern.h (redisplay_performed_directly_p)
8413 (direct_output_for_insert, direct_output_forward_char): Remove.
8414 * cmds.c (nonundocount): Make it static.
8415
85738751 84162010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
a6d676d9
CY
8417
8418 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
8419
85738751 84202010-03-31 Jan Djärv <jan.h.d@swipnet.se>
67fee863
JD
8421
8422 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
8423 invisible (Bug#5766).
8424
85738751 84252010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
9ae6e189 8426
855a0da7
SM
8427 * xdisp.c (x_consider_frame_title, update_window_cursor):
8428 Remove HAVE_NS conditionals.
194d44e7 8429 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
9ae6e189
CY
8430
8431 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
8432 filename for the title.
8433 (ns_set_doc_edited): Do nothing if the selected window is a
8434 minibuffer window.
8435
8436 * nsterm.h: Add prototypes for ns_set_name_as_filename and
8437 ns_set_doc_edited.
8438
8439 * nsterm.m: Remove unneeded prototype.
8440
85738751 84412010-03-31 Glenn Morris <rgm@gnu.org>
25c72475
GM
8442
8443 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
8444 in the DOC file. (Bug#5336)
8445
85738751 84462010-03-31 Chong Yidong <cyd@stupidchicken.com>
f79a01db
CY
8447
8448 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
8449
75d1428c
SM
84502010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
8451
8452 * window.c (keys_of_window): Remove redundant/overridden bindings.
8453
82043cfb
EZ
84542010-03-30 Eli Zaretskii <eliz@gnu.org>
8455
8456 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
8457 Restore original behavior when the iterator is not bidi_p.
8458
b5dd0ae7
DN
84592010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
8460
8461 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
8462
bd924a5d
EZ
84632010-03-30 Eli Zaretskii <eliz@gnu.org>
8464
8465 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
8466 are outside the range of cached character positions.
8467
3580374b
JB
84682010-03-30 Juanma Barranquero <lekktu@gmail.com>
8469
8470 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
8471
a7b02820
EZ
84722010-03-30 Eli Zaretskii <eliz@gnu.org>
8473
8474 Initial support for bidirectional editing.
8475
8476 * Makefile.in (obj): Include bidi.o.
8477 (bidi.o): New target.
8478
8479 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
8480 ($(BLD)/bidi.$(O)): New target.
8481
8482 * bidi.c: New file.
8483
8484 * buffer.h (struct buffer): New members bidi_display_reordering
8485 and bidi_paragraph_direction.
8486
8487 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
8488 and bidi_paragraph_direction.
8489 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
8490 and bidi-paragraph-direction.
8491 (Fbuffer_swap_text): Swap the values of
8492 bidi_display_reordering and bidi_paragraph_direction.
8493
8494 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
8495 (bidi_type_t, bidi_dir_t): New types.
8496 (bidi_saved_info, bidi_stack, bidi_it): New structures.
8497 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
8498 prev_stop, base_level_stop, and eol_pos.
8499 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
8500 (IT_STACK_SIZE): Enlarge to 5.
8501 (struct glyph_row): New member reversed_p.
8502 <string_buffer_position>: Update prototype.
8503 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
8504 glyph_row if bidi_it.paragraph_dir == R2L.
8505 (struct glyph): New members resolved_level and bidi_type.
8506
8507 * dispnew.c (direct_output_forward_char): Give up if we need bidi
8508 processing or buffer's direction is right-to-left.
8509 (prepare_desired_row): Preserve the reversed_p flag.
8510 (row_equal_p): Compare the reversed_p attributes as well.
8511
bba3e508
SM
8512 * xdisp.c (init_iterator): Initialize it->bidi_p.
8513 Call bidi_init_it and set it->paragraph_embedding from the current
a7b02820
EZ
8514 buffer's value of bidi_paragraph_direction.
8515 (reseat_1): Initialize bidi_it.first_elt.
8516 (set_iterator_to_next, next_element_from_buffer): Use the value of
8517 paragraph_embedding to determine the paragraph direction.
8518 (set_iterator_to_next): Under bidi reordering, call
8519 bidi_get_next_char_visually. Call bidi_paragraph_init if the
8520 new_paragraph flag is set in the bidi iterator.
8521 (next_element_from_buffer): If bidi_it.first_elt is set,
8522 initialize paragraph direction and find the first character to
8523 display in the visual order. If reseated to a middle of a line,
bba3e508
SM
8524 prime the bidi iterator starting at the line's beginning.
8525 Handle the situation where we overstepped stop_charpos due to
a7b02820
EZ
8526 non-linearity of the bidi iteration. Likewise for when we back up
8527 beyond the previous stop_charpos. When moving across stop_charpos,
8528 record it in prev_stop.
8529 (display_line): Set row->end and it->start for the next row to the
8530 next character in logical order. Always extend reversed_p rows to
8531 the end of line, even if they end at ZV. Copy the reversed_p flag
8532 to the next glyph row. Keep calling set_cursor_from_row for
8533 bidi-reordered rows even if we already have a possible candidate
8534 for cursor position. Set row_end after all the row's glyphs have
8535 been produced, by looping over the glyphs. Record the position
8536 after EOL in it->eol_pos, and use it to set end_pos of the last
8537 row produced for a continued line.
8538 <Qright_to_left, Qleft_to_right>: New variables.
8539 (syms_of_xdisp): Initialize and staticpro them.
8540 (string_buffer_position_lim): New function.
8541 (string_buffer_position): Most of code moved to
8542 string_buffer_position_lim. Last argument and return value are
8543 now EMACS_INT; all callers changed.
8544 (set_cursor_from_row): Rewritten to support bidirectional text and
8545 reversed glyph rows.
bba3e508
SM
8546 (text_outside_line_unchanged_p, try_window_id):
8547 Disable optimizations if we are reordering bidirectional text and the
a7b02820
EZ
8548 paragraph direction can be affected by the change.
8549 (append_glyph, append_composite_glyph)
8550 (produce_image_glyph, append_stretch_glyph): Set the
8551 resolved_level and bidi_type members of each glyph.
8552 (append_glyph): If the glyph row is reversed, prepend the glyph
8553 rather than appending it.
8554 (handle_stop_backwards): New function.
8555 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
8556 (reseat): call handle_stop_backwards to recompute prev_stop and
8557 base_level_stop for the new position.
8558 (handle_invisible_prop): Under bidi iteration, skip invisible text
8559 using bidi_get_next_char_visually. If we are `reseat'ed, init the
8560 paragraph direction. Update IT->prev_stop after skipping
8561 invisible text.
8562 (move_it_in_display_line_to): New variables prev_method
8563 and prev_pos. Compare for strict equality in
8564 BUFFER_POS_REACHED_P.
8565 (try_cursor_movement): Examine all the candidate rows that occlude
8566 point, to return the best match. If rows are bidi-reordered
8567 and point moved backwards, back up to the row that is not a
8568 continuation line, and start looking for a suitable row from
8569 there.
8570
8571 * term.c (append_glyph): Reverse glyphs by pre-pending them,
8572 rather than appending, if the glyph_row's reversed_p flag is set.
8573 Set the resolved_level and bidi_type members of each glyph.
8574
8575 * .gdbinit (pbiditype): New command.
8576 (pgx): Use it to display bidi level and type of the glyph.
8577 (pitx): Display some bidi information about the iterator.
8578 (prowlims, pmtxrows): New commands.
8579
32a8894e
DN
85802010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
8581
8582 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
8583 * s/usg5-4.h (LIBS_DEBUG):
8584 * s/irix6-5.h (C_DEBUG_SWITCH):
8585 * s/gnu-linux.h (LIBS_DEBUG):
8586 * s/darwin.h (LIBS_DEBUG):
8587 * s/bsd-common.h (LIBS_DEBUG):
8588 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
8589 * m/iris4d.h (LIBS_DEBUG):
8590 * m/hp800.h (LIBS_DEBUG): Remove definitions.
8591
8592 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
8593 (LIBS_DEBUG): Remove definition.
8594
649dbf36
CY
85952010-03-27 Chong Yidong <cyd@stupidchicken.com>
8596
8597 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
8598 Windows.
8599
cad4261f
YM
86002010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8601
8602 * process.c (Fmake_network_process): Don't call turn_on_atimers around
8603 `connect' (Bug#5723).
8604
cd591dbc
HE
86052010-03-25 Helmut Eller <eller.helmut@gmail.com>
8606
8607 * process.c (Fmake_network_process): Call `select' for interrupted
8608 `connect' rather than creating new socket (Bug#5173).
8609
e867cb5d 86102010-03-24 Jan Djärv <jan.h.d@swipnet.se>
93318cbd
JD
8611
8612 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
8613
8614 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
8615
8616 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
8617
e867cb5d 86182010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ad13a3ee
YM
8619
8620 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
8621 XLoadQueryFont.
8622
e867cb5d 86232010-03-24 Kenichi Handa <handa@m17n.org>
fbdc1721
KH
8624
8625 * coding.c (decode_coding_ccl): Fix previous change for the
8626 multibyte case.
fb608df3
KH
8627 (encode_coding_ccl): Don't setup ccl program here. Fix for the
8628 case that the output buffer is fullfilled.
8629 (encode_coding): Setup ccl program here.
fbdc1721 8630
5845f0ed
DN
86312010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
8632
814fb708
DN
8633 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
8634
5845f0ed
DN
8635 Simplify LIBS_MACHINE definitions.
8636 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
8637 * m/iris4d.h (LIBS_MACHINE): Likewise.
8638 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
8639 * s/aix4-2.h (LIBS_SYSTEM): ... here.
38e3487c 8640 * s/netbsd.h: Remove commented out code.
5845f0ed 8641
b7064064
DN
86422010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
8643
df7734b2
DN
8644 Remove dead code dealing with POSIX_SIGNALS.
8645 * atimer.c (set_alarm): Remove dead code, all USG systems define
8646 POSIX_SIGNALS.
8647 * data.c (arith_error): Likewise.
8648 * keyboard.c (input_available_signal, handle_user_signal)
8649 (interrupt_signal): Likewise.
8650 * process.c (sigchld_handler): Likewise.
8651 (create_process): Remove if 0 code. Remove HPUX conditional when
8652 !defined (POSIX_SIGNALS), it cannot be true.
8653 * syssignal.h: Remove USG5_4 and USG conditionals when
8654 !POSIX_SIGNALS, they cannot be true.
8655
b7064064
DN
8656 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
8657 NO_SOCK_SIGIO, not used anymore.
8658
55da5ee3
DN
86592010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
8660
0be96e3a
DN
8661 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
8662 support vax on BSDs.
8663
55da5ee3
DN
8664 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
8665 * s/aix4-2.h (ORDINARY_LINK): ... here.
8666
c0282183
AS
86672010-03-21 Andreas Schwab <schwab@linux-m68k.org>
8668
82c3d67a
AS
8669 * Makefile.in (abs_builddir): Define.
8670 (bootstrap_exe): Use it.
8671 (VPATH): Use $(srcdir) instead of @srcdir@.
c0282183 8672
3613edce
SM
86732010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
8674
8675 * Makefile.in (bootstrap_exe): Use an absolute name.
8676
7f110ddc
DN
86772010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
8678
22e87574
DN
8679 Remove support for old GNU/Linux using libc version 5.
8680 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
8681 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
8682
05a670e6
DN
8683 Consolidate redundant definitions in s/bsd-common.h.
8684 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
8685 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
8686 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
8687 doing it in all files that include this one.
8688 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
8689 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
8690 (LDAV_SYMBOL, KERNEL_FILE): Remove.
8691 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
8692 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
8693 (LDAV_SYMBOL, KERNEL_FILE): Remove.
8694 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
8695 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
8696 (LDAV_SYMBOL, KERNEL_FILE): Remove.
8697
2968f561
DN
8698 Consolidate redundant definitions.
8699 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
8700 it's undefined in all files that include this one.
8701 (POSIX_SIGNALS): Define here instead of doing it in all files that
8702 include this one.
8703 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
8704 (POSIX_SIGNALS): Do not define.
8705 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
8706 (POSIX_SIGNALS): Do not define.
8707 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
8708 (POSIX_SIGNALS): Do not define.
8709
15d25dc0
DN
8710 Remove support for old UNIX System V systems.
8711 * s/unixware.h: Add the contents of s/usg-5-4-2.h.
8712 * s/usg-5-4-2.h: Remove.
8713
07e339e4
DN
8714 Remove support for Solaris on PPC and for old versions.
8715 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
8716 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
8717 that cancel each other.
8718 * s/sol2-3.h:
8719 * s/sol2-4.h:
8720 * s/sol2-5.h: Remove.
8721 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
8722 (NO_REMAP): Remove, unused.
8723 (UNEXEC): Move definition ...
8724 * s/aix4-2.h (UNEXEC): ... here.
8725
7f110ddc
DN
8726 * s/openbsd.h: Remove support for non-ELF and for systems that do
8727 not support shared libraries.
8728 * s/netbsd.h:
8729 * s/freebsd.h: Likewise.
8730
605f35cd
DN
87312010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
8732
8733 Remove non-working support for lynxos 3.0.
8734 * s/lynxos.h: Remove file.
8735
8736 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
8737 COFF_BSD_SYMBOLS, nothing defines it anymore.
8738
aed71cf4
DN
87392010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
8740
8741 Remove obsolete uses of HAVE_SHM.
8742 * emacs.c (standard_args):
8743 (Fdump_emacs):
8744 (syms_of_emacs): Remove code depending on HAVE_SHM.
8745
8746 * alloc.c: Remove HAVE_SHM dependent definition.
8747
8748 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
8749
aded53ff
GM
87502010-03-18 Glenn Morris <rgm@gnu.org>
8751
17284745
GM
8752 * emacs.c (USAGE4): Hard-code bug address.
8753 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
8754 (bug_reporting_address): Remove.
8755 (main): Don't call bug_reporting_address.
8756
aded53ff
GM
8757 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
8758 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
8759
303500aa
CY
87602010-03-15 Chong Yidong <cyd@stupidchicken.com>
8761
8762 * xfns.c (Fx_create_frame):
8763 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
8764 on left.
8765
cef3058f
CY
87662010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
8767
8768 * editfns.c (Fformat): Account for string precision when computing
8769 field width (Bug#5710).
8770
a647d59d
CY
87712010-03-12 Chong Yidong <cyd@stupidchicken.com>
8772
4fa42018
CY
8773 * xfns.c (Fx_create_frame): Set default to Qright.
8774
a647d59d
CY
8775 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
8776 all window systems.
8777
6da23aaa
EZ
87782010-03-12 Eli Zaretskii <eliz@gnu.org>
8779
a96f6398 8780 These changes remove termcap.c from the build on Posix platforms.
83d02def 8781 * Makefile.in (termcapobj): Move termcap.o from here...
6da23aaa
EZ
8782 (MSDOS_OBJ): ...to here.
8783 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
8784 now identical to when LIBS_TERMCAP is defined.
8785
8786 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
8787
8788 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
8789
a96f6398 8790 * config.in: Regenerated. (See top-level ChangeLog.)
6da23aaa 8791
288f9fc0
CY
87922010-03-10 Chong Yidong <cyd@stupidchicken.com>
8793
8794 * Branch for 23.2.
8795
d48cd3f4
SM
87962010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
8797
8798 Cleanup setup of gl_state in various parts of the code.
8799 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
8800 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
8801 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
8802 (skip_chars):
8803 * regex.c (regex_compile): Use it.
8804 (re_compile_pattern): Don't set gl_state.current_syntax_table since
8805 it's now set in regex_compile when/if we need it.
8806
618db430
SM
88072010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
8808
c0335e02
SM
8809 Make it possible to C-g in a tight bytecode loop again (bug#5680).
8810 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
8811 (QUIT): Use it to consolidate code and remove redundancy.
8812 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
8813
254c06a8
SM
8814 * regex.c (regex_compile): Setup gl_state as well.
8815
618db430
SM
8816 * syntax.c (skip_chars): Setup gl_state (bug#3823).
8817 (in_classes): Use CONSP before XCAR/XCDR.
8818
233f0c9f
CY
88192010-03-03 Chong Yidong <cyd@stupidchicken.com>
8820
8821 * keymap.c (Fwhere_is_internal): Use Fequal to compare
8822 definitions, so that keyboard macros are correctly handled
8823 (Bug#5481).
8824
75f80e63
EZ
88252010-03-02 Eli Zaretskii <eliz@gnu.org>
8826
8827 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
8828 text that could be relocated inside the call to emacs_mule_char.
8829 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
8830 (CODING_DECODE_CHAR): Add a comment describing its purpose.
8831
dcfb9bc4
KH
88322010-03-02 Kenichi Handa <handa@m17n.org>
8833
fc9a17bc
KH
8834 * character.c (parse_str_as_multibyte): Fix handling of the
8835 multibyte form of raw-bytes.
8836 (str_as_multibyte): Likewise.
8837
dcfb9bc4
KH
8838 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
8839 form of raw-bytes.
8840
412c01b6
CY
88412010-02-28 Chong Yidong <cyd@stupidchicken.com>
8842
8843 * charset.c (load_charset_map_from_file)
8844 (load_charset_map_from_vector): Zero out allocated
8845 charset_map_entries before using them.
8846
df7e1ea0
AS
88472010-02-27 Andreas Schwab <schwab@linux-m68k.org>
8848
8849 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
8850
fe69a722
CY
88512010-02-27 Chong Yidong <cyd@stupidchicken.com>
8852
4ed28cf4
CY
8853 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
8854 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
fe69a722 8855
7379cfce
KH
88562010-02-26 Kenichi Handa <handa@m17n.org>
8857
f88cc4d6
KH
8858 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
8859
7379cfce
KH
8860 * xdisp.c (reseat_to_string): Fix previous change.
8861
cf2fdcfb
CY
88622010-02-26 David Reitter <david.reitter@gmail.com>
8863
8864 * nsfont.m (nsfont_draw): ns_antialias_text should be a
8865 Lisp_Object (Bug#4736).
8866
cc6c7c75
KH
88672010-02-25 Kenichi Handa <handa@m17n.org>
8868
8869 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
8870
32e737d7
JD
88712010-02-24 Jan Djärv <jan.h.d@swipnet.se>
8872
8873 * xterm.c (XTflash): Move declarations before statements.
8874
8875 * gtkutil.c (xg_get_gdk_display): Remove (unused).
8876 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
8877 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
8878 (xg_create_tool_bar): Remove unused variables.
8879 (x_wm_set_size_hint): Move declarations before statements.
a73f9c9d 8880 (xg_create_frame_widgets): Remove variable grav.
32e737d7 8881
676cae9f
CY
88822010-02-21 Chong Yidong <cyd@stupidchicken.com>
8883
8884 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
8885
886cc2b8
SM
88862010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
8887
8888 * term.c (fatal): Add a final \n if needed (bug#5596).
8889
ddb2d8e2
CY
88902010-02-18 Chong Yidong <cyd@stupidchicken.com>
8891
8892 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
8893
2a4f8d3d
GM
88942010-02-18 Glenn Morris <rgm@gnu.org>
8895
8896 * callint.c (Finteractive): Doc fix.
8897
ebaf11b6
KH
88982010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
8899
886cc2b8
SM
8900 * coding.c (record_conversion_result):
8901 Handle CODING_RESULT_INSUFFICIENT_DST.
ebaf11b6
KH
8902 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
8903 memory allocation error.
8904
d0396581
KH
89052010-02-17 Kenichi Handa <handa@m17n.org>
8906
886cc2b8
SM
8907 * coding.c (decode_coding_ccl): Don't setup ccl program here.
8908 Fix for the case that the output buffer is fullfilled.
d0396581
KH
8909 (decode_coding): Setup ccl program here. Keep looping when the
8910 decoder stopped because the output buffer is
8911 fullfilled (bug#5534).
8912
8913 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
8914
98599f74
JD
89152010-02-13 Jan Djärv <jan.h.d@swipnet.se>
8916
471e4f04 8917 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
98599f74 8918 bug #5571.
886cc2b8 8919 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
471e4f04 8920 overdrawn.
98599f74 8921
182659ae
JD
89222010-02-10 Jan Djärv <jan.h.d@swipnet.se>
8923
8924 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
8925 doing_interact here.
8926 (ice_connection_closed): New function.
8927 (x_session_check_input, smc_die_CB, ice_io_error_handler)
8928 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
8929 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
8930 returns I/O error.
8931 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
8932 bug #5512.
8933
9be32c4e 89342010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
14a225f9
CY
8935
8936 * nsfont.m (nsfont_open): The system's value for the font descent
8937 is negative, so round it down to avoid clipping.
8938
a2f3eb19
CY
89392010-02-06 Chong Yidong <cyd@stupidchicken.com>
8940
8941 * charset.c (load_charset_map_from_file)
8942 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
953d248c 8943 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
a2f3eb19 8944
3088147c
CY
89452010-02-05 Chong Yidong <cyd@stupidchicken.com>
8946
8947 * charset.c (load_charset_map_from_file): Allocate large
8948 charset_map_entries structure on the heap rather than the stack.
8949 (Bug#5526).
8950
b57d9029
KH
89512010-01-31 Kenichi Handa <handa@m17n.org>
8952
8953 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
115e4fd3 8954 size in NAME is invalid, return -1 (Bug#5396).
b57d9029 8955
c67d885b
CY
89562010-01-31 Chong Yidong <cyd@stupidchicken.com>
8957
8958 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
8959 <deactivated@gmail.com> (Bug#3605).
8960
8fab2362
CY
89612010-01-31 David De La Harpe Golden <david@harpegolden.net>
8962
8963 * fileio.c (Frename_file): Correctly rename symlinks to
8964 directories (Bug#5496).
8965
cb2a62f2
CY
89662010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
8967
8968 * nsterm.m (ns_ring_bell): Handle visible bell like X.
8969
944c7a26
AS
89702010-01-30 Andreas Schwab <schwab@linux-m68k.org>
8971
8972 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
8973
c024ac08
CY
89742010-01-29 Chong Yidong <cyd@stupidchicken.com>
8975
8976 * frame.c (DEFAULT_ROWS): Change default to 35.
8977
8978 * xfns.c (x_default_font_parameter): Change default XFT font to
8979 monospace-10 (Bug#3643).
8980
af93af83
EZ
89812010-01-29 Eli Zaretskii <eliz@gnu.org>
8982
8983 * w32inevt.c (key_event): Remove unnecessary comparison of
8984 event->uChar.AsciiChar with 128.
8985
ca0eb708
CY
89862010-01-28 Chong Yidong <cyd@stupidchicken.com>
8987
b242dbfc
CY
8988 * fileio.c (Frename_file): Fix last change (Bug#5487).
8989
ca0eb708
CY
8990 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
8991
8992 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
8993
45d45af5
JD
89942010-01-28 Jan Djärv <jan.h.d@swipnet.se>
8995
8996 * xfns.c (Fx_create_frame): Remove window size matching code from
8997 2010-01-15.
a73f9c9d 8998 (x_get_current_desktop, x_get_desktop_workarea): Remove.
45d45af5 8999
7e233730
JR
90002010-01-27 Jason Rumney <jasonr@gnu.org>
9001
9002 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
a292592c 9003 (key_event): Use unicode for characters 128 and higher (Bug#4567).
7e233730 9004
86e893e3
KH
90052010-01-27 Kenichi Handa <handa@m17n.org>
9006
9007 * regex.c (analyse_first): Fix setting of fastmap for unibyte
c8b96b2a 9008 pattern string (Bug#4209).
86e893e3 9009
8719abec
CY
90102010-01-27 David De La Harpe Golden <david@harpegolden.net>
9011
9012 * fileio.c (Frename_file): Call copy-directory and
9013 delete-directory for directories, in order to handle cross-device
9014 renaming (Bug#3353).
9015
844794c8
JD
90162010-01-25 Jan Djärv <jan.h.d@swipnet.se>
9017
aa3e13b5 9018 * xfns.c (Fx_create_frame): If frame height is too big, try
ac146f82 9019 sizes 24 and 10. Bug #3643.
844794c8 9020
bd4b5750
SM
90212010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
9022
8dc1adf6 9023 Try and fix bug#788, hopefully for real this time.
bd4b5750
SM
9024 * keymap.c (shadow_lookup): Add `remap' arg.
9025 (describe_map, describe_vector): Update calls to shadow_lookup.
9026 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
9027 `remapped' so this flag is applicable to `sequence'. Be careful to
8dc1adf6
SM
9028 perform remapping during shadow_lookup check of remapped_sequences.
9029
285d07e2
CY
90302010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
9031
9032 * image.c (png_load): Use png_sig_cmp instead of the obsolete
9033 png_check_sig, which has been removed in libpng 1.4.
9034
c6d09b8d
CY
90352010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
9036
9037 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
9038 lacks this header file).
9039
3d782998
YM
90402010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9041
9042 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
9043 as in Emacs 22.
9044
2aff7c53
YM
90452010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9046
9047 * lisp.h (make_pure_string): String pointer arg now points to const.
9048
9049 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
9050 args now point to const.
9051
74327f7a
EZ
90522010-01-22 Eli Zaretskii <eliz@gnu.org>
9053
9054 * lread.c (Fload): Don't treat files without .elc extension as
9055 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
9056 them. (bug#5303)
9057
4d1e6632
KH
90582010-01-20 Kenichi Handa <handa@m17n.org>
9059
9060 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
9061 treat the source as actual byte sequence.
9062
1fdede8f
AM
90632010-01-19 Alan Mackenzie <acm@muc.de>
9064
9065 Fix spurious before-change-functions invocation from (insert ?\n).
194d44e7 9066 * textprop.c (set_text_properties): Rename parameter
1fdede8f
AM
9067 `signal_after_change_p' to `coherent_change_p', and make the
9068 invocation of `modify_region' conditional on it.
9069
67477f30
JD
90702010-01-19 Jan Djärv <jan.h.d@swipnet.se>
9071
9072 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
9073 for debug purpose.
9074 (syms_of_xsettings): Declare xft-settings.
9075
244b023e
CY
90762010-01-18 Chong Yidong <cyd@stupidchicken.com>
9077
9078 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
9079
617364fe
CY
90802010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
9081
9082 * xterm.c (event_handler_gdk): Block input (Bug#5037).
9083
4fe22cdf
CY
90842010-01-16 Chong Yidong <cyd@stupidchicken.com>
9085
9086 * emacs.c (standard_args): Adjust arg priorities to reflect how
9087 they are processed in startup.el.
9088
e118d2be
AS
90892010-01-16 Andreas Schwab <schwab@linux-m68k.org>
9090
9091 * Makefile.in (lisp, shortlisp): Update.
9092
523ae620
SM
90932010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
9094
9095 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
9096 code, link the new kboard into all_kboard before running Lisp code,
9097 and protect the new terminal with GCPRO (Bug#5365).
9098 (x_term_init): Remove unused var `atom'.
9099 (x_delete_display, x_delete_terminal): Remove unused var `i'.
9100
f0d13888
JD
91012010-01-15 Jan Djärv <jan.h.d@swipnet.se>
9102
9103 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
9104 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
9105 to find out usable size of the desktop. Don't make frames larger than
ac146f82 9106 this. Bug #3643.
f0d13888 9107
cc320f07
KH
91082010-01-15 Kenichi Handa <handa@m17n.org>
9109
9110 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
9111
7ffdf101
CY
91122010-01-15 Chong Yidong <cyd@stupidchicken.com>
9113
9114 * nsterm.m (Qnone): Define.
9115
9116 * nsfns.m (Qnone): Move definition to nsterm.m.
9117
d12bd917
KH
91182010-01-14 Kenichi Handa <handa@m17n.org>
9119
9120 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
9121 systems.
9122
d9a7c140
KH
91232010-01-14 Kenichi Handa <handa@m17n.org>
9124
9125 Make auto-composition work on all buffers even if they are
9126 fundamental mode.
9127
9128 * composite.c (Vauto_composition_mode): New variable.
9129 (composition_compute_stop_pos): Check Vauto_composition_mode
9130 instead of Vauto_composition_function.
9131 (composition_adjust_point, Ffind_composition_internal): Likewise.
9132 (syms_of_composite): Declare Lisp variable
9133 "auto-composition-mode" here.
9134
63286bb2
CY
91352010-01-13 Chong Yidong <cyd@stupidchicken.com>
9136
9137 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
9138 during call to vendor-specific-keysyms (Bug#5365).
9139
c2623ee7
YM
91402010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9141
9142 * keyboard.c (input_available_signal) [SYNC_INPUT]:
9143 Call SIGNAL_THREAD_CHECK (Bug#5333).
9144
9145 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
9146 Call SIGNAL_THREAD_CHECK.
9147
0b5397c2
SM
91482010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
9149
9150 Try to fix bug#5314. This is probably not the final word, tho.
9151 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
9152 recent-auto-save-p as a side-effect.
9153 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
9154 * buffer.c (Fkill_buffer, reset_buffer):
9155 * editfns.c (Fsubst_char_in_region):
9156 * fileio.c (Finsert_file_contents, Fdo_auto_save)
9157 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
9158
dc954cb2
KH
91592010-01-13 Kenichi Handa <handa@m17n.org>
9160
9161 Display buffer name, etc. in mode line by composing correctly.
9162
9163 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
9164 STRING is not nil.
0b5397c2 9165 (display_mode_element): Adjust for the change of
dc954cb2
KH
9166 decode_mode_spec and display_line.
9167 (decode_mode_spec): Change arg MULTIBYTE to STRING.
9168 (display_string): Handle the case that STRING is non-null and
9169 LISP_STRING is not nil.
9170
0b5397c2
SM
9171 * xterm.c (x_draw_composite_glyph_string_foreground):
9172 Pay attention to s->face->overstrike.
dc954cb2
KH
9173
9174 * composite.c (composition_reseat_it): Don't check PT if STRING is
9175 non nil.
9176
4a00eaca
YM
91772010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9178
9179 * keyboard.c (read_char): Don't apply previous change when current
9180 buffer is unchanged by command execution.
9181
60abb287
JD
91822010-01-12 Jan Djärv <jan.h.d@swipnet.se>
9183
9184 * keyboard.c (read_char): Return after executing from special map.
9185
893db5bc
GM
91862010-01-12 Glenn Morris <rgm@gnu.org>
9187
9188 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
9189 bug-gnu-emacs rather than emacs-pretest-bug.
9190
4d03ece0
CY
91912010-01-11 Chong Yidong <cyd@stupidchicken.com>
9192
9193 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
9194 initializing the Lisp variables that depend on them.
9195
1df47e38
YM
91962010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9197
9198 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
9199 Clear areas that will not be updated after change of menu bar lines.
9200 Clear the menu bar window's current matrix when the window gets empty.
9201
2f1c6384
CY
92022010-01-09 Chong Yidong <cyd@stupidchicken.com>
9203
e398c61c
CY
9204 * intervals.h, textprop.c (extend_property_ranges): Return value
9205 and args changed. Discard properties that begin at or after the
9206 new end (Bug#5306).
9207
9208 * editfns.c (Fformat): Caller changed.
9209
e5a29a10
CY
9210 * nsterm.m (ns_set_default_prefs): Delete function.
9211 (syms_of_nsterm): Initialize ns_command_modifier,
9212 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
9213 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
9214
2f1c6384
CY
9215 * xdisp.c (pos_visible_p): Check for invisible text at the correct
9216 position (Bug#4040).
9217
d427a9fa
EZ
92182010-01-09 Eli Zaretskii <eliz@gnu.org>
9219
9220 * editfns.c (Ffloat_time): Doc fix.
9221
21b9df2f
JD
92222010-01-09 Jan Djärv <jan.h.d@swipnet.se>
9223
9224 * xfns.c (Fx_create_frame): Don't create frame larger than display
9225 by default bug#3643.
9226
4b00d3b1
YM
92272010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9228
9229 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
9230 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
9231 windows above internal border.
9232
9233 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
9234 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
9235 windows above internal border.
9236
9237 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
9238 tool bar windows specially.
9239
9240 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
9241
9242 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
9243 specially.
9244 (XTflash): Take account of menu bar height.
9245
9246 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
9247 specially.
9248
5075d853
JD
92492010-01-08 Jan Djärv <jan.h.d@swipnet.se>
9250
ac146f82 9251 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
5075d853
JD
9252 also be true before we can return early (bug #5339).
9253
474217c8
CY
92542010-01-06 David Reitter <david.reitter@gmail.com>
9255
9256 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
9257 (Fns_display_usable_bounds): Rewrite, computing bounds properly
9258 (Bug#3233).
9259
c0e6d47d
JD
92602010-01-06 Jan Djärv <jan.h.d@swipnet.se>
9261
d0cf45b7
JD
9262 * font.c (font_open_entity): Enable chache and call cached_font_ok
9263 for the driver if defined.
9264 (QCuser_spec): New symbol.
9265 (font_spec_from_name): Save name as user-spec.
9266 (font_load_for_lface): Keep user-spec instead of name.
9267 (font_open_by_name): Save name as user-spec.
9268 (syms_of_font): Initialize QCuser_spec.
b7f8e4f5 9269 (font_clear_prop): Clear name if it exists in font (bug#5157).
d0cf45b7
JD
9270
9271 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
9272 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
9273 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
9274
9275 * font.h (struct font_driver): Add cached_font_ok.
9276
c0e6d47d
JD
9277 * xterm.c (x_clear_frame): Queue draw for scroll bars.
9278
7c583cd8
JD
92792010-01-05 Jan Djärv <jan.h.d@swipnet.se>
9280
9281 * xterm.c (x_new_font): Move code for setting rows/cols before
9282 resizing ...
ac146f82 9283 (x_set_window_size): ... to here. Bug #2568.
7c583cd8
JD
9284
9285 * gtkutil.c (xg_clear_under_internal_border): New function.
0b5397c2
SM
9286 (xg_frame_resized, xg_frame_set_char_size):
9287 Call xg_clear_under_internal_border.
7c583cd8 9288 (xg_update_scrollbar_pos): Clear under old scroll bar position.
69e2f185 9289
03f77f0a
CY
92902010-01-05 Chong Yidong <cyd@stupidchicken.com>
9291
9292 * keyboard.c (read_key_sequence): Catch keyboard switch after
9293 making a new tty frame (Bug#5095).
9294
2a1ef5be
KH
92952010-01-05 Kenichi Handa <handa@m17n.org>
9296
9297 * fontset.c (fontset_find_font): Fix getting the frame pointer.
9298
e3eb1dae
SM
92992010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
9300
9301 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
9302 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
9303 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
9304
777013f2
MA
93052010-01-03 Michael Albinus <michael.albinus@gmx.de>
9306
9307 * dbusbind.c (xd_add_watch): Improve debug message.
9308 (xd_remove_watch): Improve debug message. If DATA is the session
9309 bus, unset D-Bus session environment.
9310 (Fdbus_init_bus): Pass the bus as argument to
9311 dbus_connection_set_watch_functions. (Bug#5283)
7c583cd8 9312
8932b1c2
CY
93132010-01-01 Chong Yidong <cyd@stupidchicken.com>
9314
87231e2c
CY
9315 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
9316
4801c5fa
CY
9317 * lread.c (syms_of_lread): Make it clearer that these are the
9318 names of loaded files (Bug#5068).
9319
8932b1c2
CY
9320 * eval.c (run_hook_with_args): Handle the case where the global
9321 value has the obsolete single-function form (Bug#5026).
9322
11e3c684
CY
93232009-12-27 Chong Yidong <cyd@stupidchicken.com>
9324
9325 * minibuf.c (Fall_completions): Minor optimization.
9326
5b28ce35
EZ
93272009-12-26 Eli Zaretskii <eliz@gnu.org>
9328
5ce6e4f4
JB
9329 * .gdbinit (pgx): Fix display of composite glyphs.
9330 Display cmp.from and cmp.to as well.
9331 (pitx): Fix last change.
5b28ce35 9332
bcffff46
KH
93332009-12-25 Kenichi Handa <handa@m17n.org>
9334
9335 * composite.h (composition_adjust_point): Update prototype.
9336
9337 * composite.c (composition_reseat_it): Don't make a composition
9338 spanning over point.
9339 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
9340 composable characters.
9341 (composition_adjust_point): New arg NEW_PT. Callers changed.
9342
9343 * keyboard.c (command_loop_1): Force redisplay if the last point
9344 was within a composition.
9345 (adjust_point_for_property): Don't adjust point for automatic
9346 composition when called after buffer modification.
9347
3f670e9a
EZ
93482009-12-19 Eli Zaretskii <eliz@gnu.org>
9349
5ce6e4f4
JB
9350 * .gdbinit (pitx): Don't use enum names, use their values.
9351 Remove reference to non-existing value GET_FROM_COMPOSITION.
be996d82
EZ
9352 (pgx): Don't use enum names, use their values.
9353 (pitmethod): New helper command.
9354 (pitx): Use it to display iteration method.
9355 (pgrowit): New command.
9356
ad903955
EZ
9357 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
9358
3f670e9a
EZ
9359 Update dependencies in Makefile.in.
9360
9361 * Makefile.in (alloc.o): Depend on termhooks.h.
9362 (atimer.o): Depend on blockinput.h.
9363 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
9364 and frame.h.
9365 (callint.o): Depend on systime.h, coding.h, and composite.h.
9366 (callproc.o): Depend on buffer.h.
9367 (casefiddle.o): Don't depend on charset.h.
9368 (casetab.o): Depend on character.h.
9369 (ccl.o): Depend on composite.h.
9370 (chartab.o): Depend on ccl.h.
9371 (cm.o): Depend on dispextern.h.
9372 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
9373 (coding.o): Don't depend on $(INTERVALS_H).
9374 (composite.o): Don't depend on dispextern.h explicitly (it's in
9375 $(INTERVALS_H)). Depend on ccl.h.
9376 (data.o): Depend on systime.h, coding.h, composite.h,
9377 dispextern.h, font.h, and ccl.h.
9378 (dired.o): Depend on composite.h.
9379 (dispnew.o): Depend on coding.h. Don't depend explicitly on
9380 composite.h (it's in $(INTERVALS_H)).
9381 (doc.o): Depend on systime.h, coding.h, and composite.h.
9382 (editfns.o): Don't depend explicitly on dispextern.h.
9383 (emacs.o): Depend on frame.h and coding.h.
9384 (eval.o): Depend on coding.h, composite.h, and xterm.h.
9385 (fileio.o): Depend on frame.h and commands.h. Don't depend
9386 explicitly on dispextern.h.
9387 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
9388 composite.h.
9389 (fns.o): Don't depend on termhooks.h.
9390 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
9391 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
9392 coding.h, $(INTERVALS_H), window.h, xterm.h.
9393 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
9394 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
9395 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
9396 fontset.h, ccl.h, and ftfont.h.
9397 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
9398 (gtkutil.o): Depend on dispextern.h and composite.h.
9399 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
9400 termhooks.h, and ccl.h.
9401 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
9402 (intervals.o): Depend on systime.h and coding.h.
9403 (keyboard.o): Depend on composite.h and coding.h.
9404 (keymap.o): Depend on coding.h and frame.h.
9405 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
9406 (macros.o): Depend on systime.h, coding.h, and composite.h.
9407 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
9408 and atimer.h.
9409 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
9410 dispextern.h explicitly.
0b5397c2
SM
9411 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
9412 Don't depend explicitly on dispextern.h and composite.h.
3f670e9a
EZ
9413 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
9414 (regex.o): Don't depend on charset.h.
9415 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
9416 (search.o): Don't depend explicitly on composite.h.
9417 (sound.o): Depend on atimer.h and systime.h.
9418 (syntax.o): Don't depend explicitly on composite.h.
9419 (sysdep.o): Depend on coding.h and composite.h.
9420 (term.o): Depend on xterm.h and buffer.h.
9421 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
9422 (textprop.o): Don't depend on dispextern.h explicitly.
9423 (undo.o): Depend on dispextern.h.
9424 (window.o): Depend on coding.h and termhooks.h. Don't depend on
9425 dispextern.h and composite.h explicitly.
9426 (xdisp.o): Depend on ccl.h.
9427 (xfaces.o): Depend on coding.h and ccl.h.
9428 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
9429 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
9430 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
9431 ftfont.h.
9432 (xgselect.o): New dependency.
9433 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
9434 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
9435 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
9436 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
9437 (xsmfns.o): Depend on frame.h and dispextern.h.
9438 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
9439 sysselect.h.
9440
7a6f7fea
AS
94412009-12-19 Andreas Schwab <schwab@linux-m68k.org>
9442
9443 * font.c (Fclear_font_cache): Pass correct cache argument to
9444 font_clear_cache.
9445
f4c21026
AS
94462009-12-16 Andreas Schwab <schwab@linux-m68k.org>
9447
9448 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
9449 twice.
9450
f7ab0997
CY
94512009-12-15 Chong Yidong <cyd@stupidchicken.com>
9452
9453 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
9454 calling file-remote-p. Reported by Jim Meyering.
9455
fa8e045a
MA
94562009-12-15 Michael Albinus <michael.albinus@gmx.de>
9457
9458 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
777013f2 9459 avoid compiler warnings. (Bug #5217)
fa8e045a 9460
a63dba42
KH
94612009-12-14 Kenichi Handa <handa@m17n.org>
9462
9463 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
9464 in 8-bit encoding.
9465
5ce6e4f4 94662009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
36acb2a7
JD
9467
9468 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
9469 tooltip windows.
9470
223e5fc6
JD
94712009-12-13 Jan Djärv <jan.h.d@swipnet.se>
9472
36acb2a7
JD
9473 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
9474 Xatom_net_window_type.
9475
9476 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
9477 Xatom_net_window_type.
9478
b8f00677
JD
9479 * xterm.c (my_log_handler): New function.
9480 (x_term_init): Set my_log_handler as log handler during gtk_init
5ce6e4f4 9481 so we can filter out buggy messages. (Bug #5120).
b8f00677 9482
e5f0bc9a
JD
9483 * xterm.c (xg_scroll_callback): Parameter list changed,
9484 use parameter GtkScrollType to determine scroll/line/page.
9485 Only allow dragging if a button < 4 is grabbed (bug #5177).
9486 (xg_end_scroll_callback): New function.
9487 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
9488 xg_create_scroll_bar.
9489
9490 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
9491 (scroll_end_callback): Remove.
9492 (xg_create_scroll_bar): Add parameter end_callback, bind it to
9493 button-release-event. Replace value-changed event with change-value,
c4cc8b9a 9494 bug #5177.
e5f0bc9a
JD
9495 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
9496 bug #5177.
9497
9498 * gtkutil.h (XG_LAST_SB_DATA): Remove.
9499 (xg_create_scroll_bar): Add GCallback end_callback.
9500
223e5fc6
JD
9501 * xftfont.c (QClcdfilter): New variable.
9502 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
9503 (syms_of_xftfont): Initialize QClcdfilter.
9504
3c055b77
JD
95052009-12-12 Jan Djärv <jan.h.d@swipnet.se>
9506
9507 * xsettings.c (struct xsettings): Add member seen.
9508 (parse_xft_settings): Update member seen with what we have read.
ba68c0b0 9509 Return non-zero if Xft-settings have been parsed, 0 otherwise.
3c055b77
JD
9510 (apply_xft_settings): Only update Xft settings with what member seen
9511 indicates as new.
9512
05fe33ff
EZ
95132009-12-12 Eli Zaretskii <eliz@gnu.org>
9514
c4cc8b9a 9515 * dispextern.h (struct text_pos): Use EMACS_INT.
05fe33ff
EZ
9516 (struct glyph): Use EMACS_INT for charpos.
9517 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
9518 region_beg_charpos, region_end_charpos,
9519 redisplay_end_trigger_charpos, and also for
9520 iterator_stack_entry.end_charpos and
9521 iterator_stack_entry.stop_charpos.
9522
e8d7886a
JD
95232009-12-12 Jan Djärv <jan.h.d@swipnet.se>
9524
5ce6e4f4 9525 * gtkutil.c (scroll_end_callback): New function (bug #5177).
e8d7886a
JD
9526 (xg_create_scroll_bar): Call scroll_end_callback on button release
9527 event (bug #5177).
9528 (xg_event_is_for_scrollbar): != replaced with ==.
9529
d0db2ec8
KH
95302009-12-12 Kenichi Handa <handa@m17n.org>
9531
9532 * ftfont.c (struct ftfont_info): New member matrix.
9533 (ftfont_open): Setup xftfont_info->matrix.
9534 (MFLTFontFT): New member matrix.
9535 (FLOOR, CEIL, ROUND): New macros.
9536 (ftfont_get_metrics): Handle matrix transformation.
9537 (ftfont_shape_by_flt): New arg matrix. Callers changed.
9538
9539 * xftfont.c (struct xftfont_info): New member matrix.
9540 (xftfont_open): Setup xftfont_info->matrix.
9541
95422009-12-10 Kenichi Handa <handa@m17n.org>
9543
9544 * xdisp.c (append_space_for_newline): Consider face-remapping.
9545
2cc7b62f
AS
95462009-12-09 Andreas Schwab <schwab@linux-m68k.org>
9547
b87dd913
AS
9548 * xsettings.c: Include "keyboard.h".
9549
eba5eb94
AS
9550 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
9551
2cc7b62f
AS
9552 Fix implicit function declarations.
9553 * cmds.c: Include "frame.h".
9554 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
9555 * frame.h: Move declaration of delete_frame outside of
9556 HAVE_WINDOW_SYSTEM.
9557
a4ef73c8
CY
95582009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
9559
9560 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
9561
9562 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
9563 GTK builds.
9564
944a300c
AS
95652009-12-07 Andreas Schwab <schwab@linux-m68k.org>
9566
9567 * unexelf.c (unexec): Don't search for .data twice.
9568
022eef62
CY
95692009-12-05 Chong Yidong <cyd@stupidchicken.com>
9570
426ac949
CY
9571 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
9572 if push failed.
9573 (handle_line_prefix): Set avoid_cursor_p here. Check return value
9574 of push_display_prop (Bug#5000).
9575
022eef62
CY
9576 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
9577 value of font_list_entities (Bug#5085).
9578
be95bee9
JB
95792009-12-04 Juanma Barranquero <lekktu@gmail.com>
9580
9581 Fix `string-to-number' to deal consistently with integers and floats.
9582 * lread.c (isfloat_string): New argument ignore_trailing to accept all
9583 trailing characters, not just whitespace.
9584 (read1): Pass new arg 0 to keep old behavior.
9585 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
9586 trailing chars, as it is already done for integers. Doc fixes.
9587 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
9588
24c2d7ce
EZ
95892009-12-04 Eli Zaretskii <eliz@gnu.org>
9590
0b5397c2
SM
9591 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
9592 Delete unused enumeration value.
24c2d7ce 9593
7e694795
EZ
95942009-12-03 Eli Zaretskii <eliz@gnu.org>
9595
9596 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
9597
84b31826
SM
95982009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
9599
9600 * process.c (Fmake_network_process): Fix up the tests for
9601 "connectionless socket", so they DTRT for seqpacket sockets as well.
9602
f00c449b
SM
96032009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
9604
9605 * process.c (Qseqpacket): New symbol.
9606 (HAVE_SEQPACKET): New macro.
9607 (Fmake_network_process): Accept new :type `seqpacket'.
9608 (init_process): Add `seqpacket' feature when applicable.
9609 (syms_of_process): Initialize Qseqpacket.
9610
8096a0ff
YM
96112009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9612
9613 * font.c (font_load_for_lface, font_open_by_name): Don't store name
9614 if entity is Qnil.
9615
3e0de07f
SM
96162009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
9617
9618 * print.c (print_preprocess): Preprocess the key_and_value table of
9619 hashtables, even tho they're "hidden" (bug#5082).
9620
abeafb2a
JD
96212009-11-29 Jan Djärv <jan.h.d@swipnet.se>
9622
9623 * frame.c (frame_make_pointer_invisible)
9624 (frame_make_pointer_visible): Declare f before statements.
9625
4bf47195
EZ
96262009-11-28 Eli Zaretskii <eliz@gnu.org>
9627
9628 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
9629 omitted dependencies on lisp.h.
9630
c525b3f2
JD
96312009-11-27 Jan Djärv <jan.h.d@swipnet.se>
9632
ece2d4ed
JD
9633 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
9634 is NULL.
9635
9636 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
9637
9638 * frame.c (frame_make_pointer_invisible)
3e0de07f 9639 (frame_make_pointer_visible): Just return if there isn't any selected
ece2d4ed
JD
9640 frame.
9641
c525b3f2
JD
9642 * search.c (simple_search): Remove warning by making *p const.
9643
2f00e299
DN
96442009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
9645
9646 * xdisp.c (power_letter): Remove duplicate const.
9647
084b049b
JD
96482009-11-25 Jan Djärv <jan.h.d@swipnet.se>
9649
a1fadc6f
JD
9650 * term.c (delete_tty): Remove check for last terminal (bug#4970).
9651
5ce6e4f4 9652 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
084b049b
JD
9653 defaults (bug #5025).
9654
28259cac
SM
96552009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
9656
9657 * insdel.c (adjust_markers_for_delete): Move it in the
9658 right direction! (bug#4803)
9659
e8e14166
YM
96602009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9661
9662 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
9663
9664 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
9665
86677b58
GM
96662009-11-24 Glenn Morris <rgm@gnu.org>
9667
9668 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
9669
581e51e8
JD
96702009-11-23 Jan Djärv <jan.h.d@swipnet.se>
9671
cfc86c7a
JD
9672 * Makefile.in: Must create deps for ecrt0.o in its rule.
9673
581e51e8
JD
9674 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
9675 because that is what Gtk+ font dialog understands.
9676
9677 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
9678 of Fcopy_sequence.
9679 (font_open_by_name): Put name given into QCname for font-object returned.
9680
9681 * frame.c (x_set_font): Save original font name as frame parameter
9682 font-parameter.
9683
9684 * xsettings.c (set_default_xft_settings): New function.
9685 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
9686 is found.
9687
8b264ecb
AS
96882009-11-22 Andreas Schwab <schwab@linux-m68k.org>
9689
9690 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
9691 searching backwards through multibyte buffer.
9692
872870b2
JD
96932009-11-21 Jan Djärv <jan.h.d@swipnet.se>
9694
9695 * xterm.c: #include xgselect.h.
9696 (x_initialize): Call xgselect_initialize.
9697
9698 * xsettings.c (something_changedCB): C++ comments => C comments.
9699 (init_gconf): Do not deal with any GLib file descriptors, xg_select
9700 does that now.
9701
9702 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
9703 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
9704 (scroll_bar_button_cb): Remove.
5ce6e4f4 9705 (create_menus): C++ comments => C comments. Don't bind grab-notify
872870b2
JD
9706 event.
9707 (xg_create_scroll_bar): Don't bind button-press-event and
9708 button-release-event.
9709
9710 * process.c: Include xgselect.h if defined (USE_GTK) ||
9711 defined (HAVE_GCONF).
9712 (wait_reading_process_output): Call xg_select for the same condition.
9713
9714 * xgselect.c (xg_select): New function to better integrate with
9715 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
9716
9717 * xgselect.h: New file, declare xg_select, xgselect_initialize.
9718
9719 * Makefile.in (XOBJ): Add xgselect.o.
9720
62a6e103
AS
97212009-11-21 Andreas Schwab <schwab@linux-m68k.org>
9722
0b5397c2
SM
9723 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
9724 Remove ignored second argument. All callers changed.
62a6e103
AS
9725 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
9726 (RE_STRING_CHAR_AND_LENGTH): Likewise.
9727 * xdisp.c (string_char_and_length): Likewise.
9728
b0ca0f33
DN
97292009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
9730
9731 * xterm.c (x_new_font):
9732 * print.c (print_object):
9733 * cmds.c (Fself_insert_command): Move declarations before statements.
9734
dd5a6279
CY
97352009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
9736
9737 * s/cygwin.h: Remove unneeded linker flags.
9738
4a8e097d
JD
97392009-11-20 Jan Djärv <jan.h.d@swipnet.se>
9740
0d1d0d26
JD
9741 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
9742
9743 * xsettings.h: Declare xsettings_get_system_font.
9744
9745 * xsettings.c (xsettings_get_system_font): New function.
9746 (init_gconf): No use initiating gconf unless we have Xft also.
9747 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
9748 HAVE_GCONF.
9749
4a8e097d
JD
9750 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
9751 add a blank entry so it doesn't collapse into nothing.
9752
8ab1650e
SM
97532009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
9754
9755 * lread.c (Funintern): Comment out last change.
9756
82c602f0
RS
97572009-11-19 Richard Stallman <rms@gnu.org>
9758
9759 * lread.c (Funintern): Error if symbol is t or nil.
9760
87e32266
SM
97612009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
9762
9763 * insdel.c (make_gap_larger): Don't make as many assumptions about the
9764 representation of Lisp integers.
9765 Reported by MJ Chan <mjchan.inbox@gmail.com>.
9766
1b9ac145
AS
97672009-11-17 Andreas Schwab <schwab@linux-m68k.org>
9768
9769 * lisp.h: Remove declaration of Ffont_get_system_font.
9770 * xfns.c: Move include of "xsettings.h".
9771 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
9772
dfb3c4c6
JD
97732009-11-17 Jan Djärv <jan.h.d@swipnet.se>
9774
87e32266
SM
9775 * xsettings.c (something_changedCB, Ffont_get_system_font):
9776 Check use_system_font.
dfb3c4c6
JD
9777 (syms_of_xsettings): DEFVAR font-use-system-font.
9778
9370c1d8
AS
97792009-11-17 Andreas Schwab <schwab@linux-m68k.org>
9780
25fe851a
AS
9781 * xfns.c (x_default_font_parameter): Remove dead assignment.
9782
9370c1d8
AS
9783 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
9784
637fa988
JD
97852009-11-17 Jan Djärv <jan.h.d@swipnet.se>
9786
87e32266 9787 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
21050de1 9788 not have FC_LCD_*. #define them if not there.
a6eb20d8 9789
87e32266 9790 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
a6eb20d8 9791
637fa988
JD
9792 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
9793
9794 * xterm.c (handle_one_xevent): Call xft_settings_event for
9795 ClientMessage, PropertyNotify and DestroyNotify.
9796 (x_term_init): If we have XFT, get DPI from Xft.dpi.
9797 Call xsettings_initialize.
9798
9799 * xftfont.c (xftfont_fix_match): New function.
9800 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
9801 Call xftfont_fix_match after XftFontMatch.
9802
9803 * xfont.c (xfont_driver): Initialize all members.
9804
87e32266
SM
9805 * xfns.c (x_default_font_parameter):
9806 Try font from Ffont_get_system_font.
637fa988
JD
9807 Do not get font from x_default_parameter if we got one from
9808 Ffont_get_system_font.
87e32266 9809 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
637fa988
JD
9810
9811 * w32font.c (w32font_driver): Initialize all members.
9812
9813 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
9814
9815 * lisp.h: Declare syms_of_xsettings.
9816
87e32266
SM
9817 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
9818 Handle CONFIG_CHANGED_EVENT.
637fa988
JD
9819
9820 * ftfont.c (ftfont_filter_properties): New function.
9821
9822 * frame.c (x_set_font): Remove unused variable lval.
9823
87e32266 9824 * font.h (struct font_driver): Add filter_properties.
637fa988
JD
9825
9826 * font.c (font_put_extra): Don't return if val is nil, it means
9827 boolean option is off.
9828 (font_parse_fcname): Collect all extra properties in extra_props
9829 and call filter_properties for all drivers with extra_props and
9830 font as parameter.
87e32266
SM
9831 (font_open_entity): Do not use cache, it does not pick up new
9832 fontconfig settings like hinting.
637fa988
JD
9833 (font_load_for_lface): If spec had a name in it, store it in entity.
9834
a73f9c9d 9835 * emacs.c (main): Call syms_of_xsettings.
637fa988
JD
9836
9837 * config.in: HAVE_GCONF is new.
9838
9839 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
9840 xsettings.o is new.
9841
5a942932
KH
98422009-11-17 Kenichi Handa <handa@m17n.org>
9843
9844 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
9845 back to the default font in case that no suitable font is found.
9846
b7c7a4d1
SM
98472009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
9848
9849 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
9850 Suggested by Chad Brown <yandros@mit.edu>.
9851 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
9852
072f1e39
JD
98532009-11-16 Jan Djärv <jan.h.d@swipnet.se>
9854
9855 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
9856
5d1e70a2
AS
98572009-11-14 Andreas Schwab <schwab@linux-m68k.org>
9858
87e32266 9859 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5d1e70a2 9860
a53cfbe5
JD
98612009-11-14 Jan Djärv <jan.h.d@swipnet.se>
9862
473a99b7
JD
9863 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
9864 has a parent.
9865
a53cfbe5 9866 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
5ce6e4f4 9867 dependency files in deps/. Include those files into Makefile.
a53cfbe5
JD
9868
9869 * config.in: Generated (AUTO_DEPEND).
9870
f04bb9b2
MA
98712009-11-13 Michael Albinus <michael.albinus@gmx.de>
9872
b7c7a4d1 9873 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
9874 Vdbus_registered_functions_table, because it contains also
9875 properties. Fix docstring.
b7c7a4d1 9876 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 9877
8f11f7ec
SM
98782009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
9879
9880 * alloc.c (mark_object): Don't reprocess marked strings.
9881 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
9882 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
9883
8a605fe8
KH
98842009-11-13 Kenichi Handa <handa@m17n.org>
9885
8f11f7ec 9886 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
9887 semantics of Vword_combining_categories.
9888 (Vword_combining_categories): Describe the slight change of the
9889 semantics.
9890
241c4680
EZ
98912009-11-13 Eli Zaretskii <eliz@gnu.org>
9892
9893 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
9894
9895 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
9896
5d58e44c
SM
98972009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
9898
9899 * xdisp.c (syms_of_xdisp): Fix typo in last change.
9900
5e13f9d3
JB
99012009-11-12 Juanma Barranquero <lekktu@gmail.com>
9902
9903 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
9904
cf54c754
DR
99052009-11-11 David Reitter <david.reitter@gmail.com>
9906
9907 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
9908 variables to fix 2009-11-09 change.
9909
a4ada374
DN
99102009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
9911
91433552
DN
9912 * process.c (ifflag_def): Make flag_sym constant.
9913 (Fnetwork_interface_info): Use a constant pointer.
9914 (ifflag_table):
9915 * xfns.c (cursor_bits):
9916 * xdisp.c (power_letter):
9917 * termcap.c (speeds, esctab):
9918 * sysdep.c (baud_convert):
9919 * keyboard.c (lispy_accent_codes, modifier_names):
9920 * image.c (xbm_format, xpm_format, pbm_format, png_format)
9921 (jpeg_format, tiff_format, gif_format, svg_format)
9922 (interlace_start, interlace_increment, gs_format):
9923 * gtkutil.c (separator_names):
9924 * fringe.c (swap_nibble):
9925 * fns.c (base64_value_to_char, base64_char_to_value):
9926 * fileio.c (make_temp_name_tbl):
9927 * coding.c (suffixes): Make constant.
9928
f4265f6c
DN
9929 * frame.c (make_initial_frame):
9930 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
9931 build_string.
9932 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
9933
04420943
DN
9934 * s/freebsd.h:
9935 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
9936
0a5d24ae
DN
9937 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
9938 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
9939
a4ada374
DN
9940 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
9941 * xterm.c (syms_of_xterm):
9942 * xfaces.c (syms_of_xfaces):
9943 * xdisp.c (syms_of_xdisp):
9944 * lread.c (syms_of_lread):
9945 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
9946 build_string.
91433552 9947
a4ada374
DN
9948 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
9949
af98fc7f
SM
99502009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
9951
8ab1650e 9952 * fns.c (Fplist_get): Merge the active and the commented out code.
af98fc7f 9953
e90292a9
JD
99542009-11-10 Jan Djärv <jan.h.d@swipnet.se>
9955
9956 * keyboard.h: Declare timer_check.
9957
9958 * keyboard.c (timer_check_2): New function that does what the old
9959 timer_check did.
9960 (timer_check): Call timer_check_2 until -1 or a non-zero time is
9961 returned, i.e. don't return -1 with timers pending.
9962
9963 * process.c: Remove extern declaration of timer_check.
9964
9965 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
9966 even if timer_check returned -1.
9967
af98fc7f
SM
9968 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
9969 xg_dialog_data.
e90292a9
JD
9970 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
9971 the event loop.
9972 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
9973 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
9974 Destroy the dialog after xg_dialog_run.
9975
045b83c0
SM
99762009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
9977
9978 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
9979
1fb99a3a
JD
99802009-11-10 Jan Djärv <jan.h.d@swipnet.se>
9981
9982 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
9983
04e452cb
JB
99842009-11-09 Juanma Barranquero <lekktu@gmail.com>
9985
9986 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
9987
ef7417fd
SM
99882009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
9989
9990 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
9991 w32menu.c, and nsmenu.m.
9992 Simplify the obsolete case where position is nil.
9993 (cleanup_popup_menu): New function, moved from nsmenu.m.
9994 (struct skp): Remove slot `notreal'.
9995 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
9996 adjust callers.
9997 (single_menu_item): Adjust call to parse_menu_item.
9998 (syms_of_menu): Defsubr x-popup-menu.
9999 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
10000 (keymap_panes): Don't export any more.
10001 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
10002 (xmenu_show): Declare.
10003 * keyboard.c (parse_menu_item): Remove arg `notreal'.
10004 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
10005 * keyboard.h (parse_menu_item): Update declaration.
10006 * xmenu.c (Fx_popup_menu): Remove.
10007 (syms_of_xmenu): Don't defsubr x-popup-menu.
10008 * w32menu.c (Fx_popup_menu): Remove.
10009 (syms_of_w32menu): Don't defsubr x-popup-menu.
10010 * nsmenu.m (cleanup_popup_menu): Remove.
10011 (ns_menu_show): Rename from ns_popup_menu and remove all the code
10012 moved to menu.c's Fx_popup_menu.
10013 (Fx_popup_menu): Remove.
10014 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
10015 menu_items (it's done in menu.c already).
10016
424d6179
SM
100172009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
10018
10019 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
10020 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
10021
c0df13a6 100222009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
10023
10024 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 10025 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
10026 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
10027 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
10028
2de9f71c
SM
100292009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
10030
10031 Let integers use up 2 tags to give them one extra bit and thus double
10032 their range.
10033 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
10034 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
10035 New macros.
10036 (enum Lisp_Type): Use them. Give explicit values.
10037 (Lisp_Type_Limit): Remove.
10038 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
10039 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
10040 Pay attention to USE_2_TAGS_FOR_INTS.
10041 (INTEGERP): Use LISP_INT_TAG_P.
10042 * fns.c (internal_equal): Simplify the default case.
10043 (sxhash): Use case_Lisp_Int.
10044 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
10045 any more.
10046 (Ftype_of): Use case_Lisp_Int.
10047 (store_symval_forwarding): Take into account the fact that Ints can
10048 now have more than one tag.
10049 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
686b968e 10050 (buffer_slot_type_mismatch):
2de9f71c
SM
10051 * xfaces.c (face_attr_equal_p):
10052 * print.c (print_object):
10053 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
10054 Use case_Lisp_Int.
10055
323637a2
EZ
100562009-11-06 Eli Zaretskii <eliz@gnu.org>
10057
7ac65b38
EZ
10058 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
10059
323637a2
EZ
10060 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
10061 warning.
10062
e511451f
JD
100632009-11-06 Jan Djärv <jan.h.d@swipnet.se>
10064
10065 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
10066
10067 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
10068
10069 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
10070 ButtonPressRelease and MotionNotify (bug#4870).
10071
5e2327cf
DN
100722009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
10073
5adc433e
DN
10074 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
10075
d67b4f80
DN
10076 * xterm.c (syms_of_xterm):
10077 * xselect.c (syms_of_xselect):
10078 * xmenu.c (syms_of_xmenu):
10079 * xfns.c (syms_of_xfns):
10080 * xfaces.c (syms_of_xfaces):
10081 * xdisp.c (syms_of_xdisp):
10082 * window.c (syms_of_window):
10083 * w32fns.c (syms_of_w32fns):
10084 * undo.c (syms_of_undo):
10085 * textprop.c (syms_of_textprop):
10086 * terminal.c (syms_of_terminal):
10087 * syntax.c (syms_of_syntax):
10088 * sound.c (syms_of_sound):
10089 * search.c (syms_of_search):
10090 * print.c (syms_of_print):
10091 * minibuf.c (syms_of_minibuf):
10092 * macros.c (syms_of_macros):
10093 * keymap.c (syms_of_keymap, initial_define_key)
10094 (initial_define_lispy_key):
10095 * keyboard.c (syms_of_keyboard):
10096 * insdel.c (syms_of_insdel):
10097 * image.c (syms_of_image):
10098 * fringe.c (syms_of_fringe):
10099 * frame.c (syms_of_frame):
10100 * fontset.c (syms_of_fontset):
10101 * fns.c (syms_of_fns):
10102 * fns.c (syms_of_fns):
10103 * fileio.c (syms_of_fileio):
10104 * fileio.c (syms_of_fileio):
10105 * eval.c (syms_of_eval):
10106 * doc.c (syms_of_doc):
10107 * dispnew.c (syms_of_display):
10108 * dired.c (syms_of_dired):
10109 * dbusbind.c (syms_of_dbusbind):
10110 * data.c (syms_of_data):
10111 * composite.c (syms_of_composite):
10112 * coding.c (syms_of_coding):
10113 * cmds.c (syms_of_cmds):
10114 * charset.c (define_charset_internal, syms_of_character):
10115 * ccl.c (syms_of_ccl):
10116 * category.c (syms_of_category, init_category_once):
10117 * casetab.c (syms_of_casetab):
10118 * casefiddle.c (syms_of_casefiddle):
10119 * callint.c (syms_of_callint):
10120 * bytecode.c (syms_of_bytecode):
10121 * buffer.c (keys_of_buffer, syms_of_buffer):
10122 * alloc.c (syms_of_alloc):
10123 * process.c (syms_of_process, init_process):
10124 * lread.c (syms_of_lread, init_obarray):
10125 * font.c (build_style_table):
10126 * emacs.c (syms_of_emacs, main): Replace calls to intern with
10127 intern_c_string, calls to make_pure_string with
10128 make_pure_c_string. Use pure_cons instead of Fcons.
10129
5e2327cf
DN
10130 * process.c (socket_options): Make it const.
10131 (set_socket_option, init_process): Use a const pointer.
10132
10133 * lread.c (intern_c_string): New function.
10134 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
10135 (defvar_int): Uset it. Make the name const char*.
10136
10137 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
10138 (defvar_int): Update prototypes.
10139 (DEFUN, EXFUN): Support for prototypes is now required.
10140 (intern_c_string): New prototype.
10141 (struct Lisp_Subr): Make symbol_name constant.
10142
10143 * font.c (struct table_entry): Remove unused member. Make NAMES
10144 constant.
10145 (weight_table, slant_table, width_table): Make constant.
10146
10147 * emacs.c (struct standard_args): Make name and longname constant.
10148
10149 * character.h (DEFSYM): Use intern_c_string.
10150
a56eaaef
DN
101512009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
10152
10153 * alloc.c (make_pure_c_string): New function.
10154
10155 * eval.c (Fautoload): Purecopy all arguments.
10156
f6a07420
KH
101572009-11-05 Kenichi Handa <handa@m17n.org>
10158
10159 * fileio.c (Finsert_file_contents): Be sure set coding-system of
10160 the buffer in case of replace.
10161
5d28d4b1
DN
101622009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
10163
10164 * puresize.h (BASE_PURESIZE): Increase to 1620000.
10165
b349d111
SM
101662009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
10167
d528b1ce
SM
10168 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
10169 when applicable (bug#4851).
10170
b349d111
SM
10171 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
10172 (P_): Support for prototypes is now required.
10173
c38eb027
CY
101742009-10-31 Chong Yidong <cyd@stupidchicken.com>
10175
10176 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
10177 (Bug#4827).
10178
0405f8d9
EZ
101792009-10-30 Eli Zaretskii <eliz@gnu.org>
10180
d528b1ce 10181 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 10182
ca0a881a
DN
101832009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
10184
10185 * puresize.h (BASE_PURESIZE): Increase to 1470000.
10186
d528b1ce
SM
10187 * lread.c (Fload): Purecopy the file name when building
10188 Vpreloaded_file_list.
ca0a881a 10189
47e0e0e4
JR
101902009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
10191
10192 * w32fns.c (syms_of_w32fns): Change default value of
10193 w32-scroll-lock-modifier to nil. (Bug#2827)
10194
057bce6f
JB
101952009-10-26 Juanma Barranquero <lekktu@gmail.com>
10196
782a943e 10197 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 10198
242bc74c
AS
101992009-10-26 Andreas Schwab <schwab@redhat.com>
10200
10201 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
10202
522d013a
JB
102032009-10-26 Juanma Barranquero <lekktu@gmail.com>
10204
10205 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
10206 For delta < 0, skip check that only makes sense when the mini-window
10207 is going to be enlarged. (Bug#4534)
10208
18060980
CY
102092009-10-25 Chong Yidong <cyd@stupidchicken.com>
10210
10211 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
10212 string in menu maps (Bug#4471).
10213
fec8f0fe
CY
102142009-10-24 Chong Yidong <cyd@stupidchicken.com>
10215
10216 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
10217 FRAME_NS_VIEW on terminal frames (Bug#4765).
10218
10d66ec0
AS
102192009-10-24 Andreas Schwab <schwab@linux-m68k.org>
10220
1cae01f7
AS
10221 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
10222 DBUS_TYPE_UINTnn separately to get proper sign extension.
10223
58a12889
AS
10224 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
10225 can properly handle unsigned types.
d528b1ce 10226 (make_uid, make_gid): Remove.
58a12889 10227
987c9327
AS
10228 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
10229 types again.
10230
522d013a 10231 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
10232 (system_process_attributes): Likewise.
10233
905a9ed3
DN
102342009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
10235
10236 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
10237
10238 * eval.c (Fautoload): Purecopy the filename. Simplify.
10239
10240 * category.c (Fdefine_category): Purecopy docstring.
10241
a599b3e8
AS
102422009-10-23 Andreas Schwab <schwab@linux-m68k.org>
10243
7b792fc9
AS
10244 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
10245
a599b3e8
AS
10246 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
10247
b35ac83e
CY
102482009-10-23 Chong Yidong <cyd@stupidchicken.com>
10249
10250 * window.c (Fwindow_edges, Fwindow_pixel_edges)
10251 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
10252 (Bug#4775).
10253
e8903e00
SM
102542009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
10255
10256 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
10257 (init_fileio_once):
10258 * lisp.h (init_fileio_once): Remove.
10259 * emacs.c (main): Don't call init_fileio_once.
10260
8f43cbf3
DN
102612009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
10262
10263 * puresize.h (BASE_PURESIZE): Increase to 1430000.
10264
26898943
AS
102652009-10-21 Andreas Schwab <schwab@linux-m68k.org>
10266
10267 * doprnt.c (doprnt): Fix overflow check.
10268
5c646d5a
JD
102692009-10-21 Jan Djärv <jan.h.d@swipnet.se>
10270
3132a7ea
JD
10271 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
10272
5c646d5a
JD
10273 * xterm.h (x_wait_for_event): Declare it.
10274
10275 * xterm.c (pending_event_wait): New variable.
10276 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
10277 see pending_event_wait.eventtype.
10278 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
10279 (x_new_font): Call change_frame_size with new rows/columns before we
10280 try to resize the frame.
5c646d5a 10281 (x_wait_for_event): New function.
d528b1ce
SM
10282 (x_set_window_size_1): Don't change gravity unless change_gravity
10283 is set.
5c646d5a
JD
10284 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
10285 don't change frame size, instead wait for the ConfigureNotify.
10286 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
10287 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
10288 (x_initialize): Initialize pending_event_wait.
10289
10290 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
10291 size.
10292
10293 * widget.c (EmacsFrameSetValues): Add comment.
10294 (EmacsFrameSetCharSize): Just call x_set_window_size.
10295
10296 * gtkutil.c (xg_frame_set_char_size): Flush events and call
10297 x_wait_for_event.
d528b1ce 10298 (flush_and_sync): Remove again.
5c646d5a
JD
10299 (xg_get_font_name): Suggest monospace if no previous font is known.
10300
e9c1637d
SM
103012009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
10302
10303 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 10304 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 10305
5a72cccb
YM
103062009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10307
10308 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
10309 processing pending events when event is filtered for input method.
ab04798f 10310 (Bug#3681)
5a72cccb 10311
2629aa37
JB
103122009-10-20 Juanma Barranquero <lekktu@gmail.com>
10313
10314 * fns.c: Add #endif accidentally removed in previous change.
10315
c3417a74
DN
103162009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
10317
10318 * fns.c: Remove code for unsupported system: MAC_OS.
10319 * image.c: Likewise. Include setjmp.h.
10320
9685cef2
JD
103212009-10-19 Jan Djärv <jan.h.d@swipnet.se>
10322
10323 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
10324 pixel -1 (bug #4742).
10325
d7306fe6
DN
103262009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
10327
019d2c4c
DN
10328 * process.c (create_pty): Remove conditionals for no longer
10329 supported systems: UNIPLUS and RTU.
10330
ee6bacd4
DN
10331 * xterm.c:
10332 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
10333
d7306fe6
DN
10334 * alloc.c: Do not define struct catchtag.
10335 * eval.c: Move struct catchtag definition ...
10336 * lisp.h: ... here.
10337
10338 * image.c: Move png.h #include earlier to avoid warnings.
10339
10340 * xterm.c:
10341 * xsmfns.c:
10342 * xselect.c:
10343 * xrdb.c:
10344 * xmenu.c:
10345 * xftfont.c:
10346 * xfont.c:
10347 * xfns.c:
10348 * xfaces.c:
10349 * xdisp.c:
10350 * window.c:
10351 * widget.c:
10352 * w32xfns.c:
10353 * w32uniscribe.c:
10354 * w32term.c:
10355 * w32select.c:
10356 * w32reg.c:
10357 * w32proc.c:
10358 * w32menu.c:
10359 * w32inevt.c:
10360 * w32heap.c:
10361 * w32font.c:
10362 * w32fns.c:
10363 * w32console.c:
10364 * w32.c:
10365 * w16select.c:
10366 * vm-limit.c:
10367 * unexsol.c:
10368 * unexec.c:
10369 * unexcw.c:
10370 * unexaix.c:
10371 * undo.c:
10372 * tparam.c:
10373 * textprop.c:
10374 * terminfo.c:
10375 * terminal.c:
10376 * termcap.c:
10377 * term.c:
10378 * syntax.c:
10379 * sound.c:
10380 * sheap.c:
10381 * search.c:
10382 * scroll.c:
10383 * region-cache.c:
10384 * regex.c:
10385 * ralloc.c:
10386 * process.c:
10387 * print.c:
b024548b
DN
10388 * nsterm.m:
10389 * nsselect.m:
10390 * nsmenu.m:
10391 * nsimage.m:
10392 * nsfont.m:
10393 * nsfns.m:
d7306fe6
DN
10394 * msdos.c:
10395 * minibuf.c:
10396 * menu.c:
10397 * marker.c:
10398 * macros.c:
10399 * keymap.c:
10400 * keyboard.c:
10401 * intervals.c:
10402 * insdel.c:
10403 * indent.c:
10404 * gtkutil.c:
10405 * ftxfont.c:
10406 * ftfont.c:
10407 * fringe.c:
10408 * frame.c:
10409 * fontset.c:
10410 * font.c:
10411 * fns.c:
10412 * floatfns.c:
10413 * filelock.c:
10414 * fileio.c:
10415 * emacs.c:
10416 * editfns.c:
10417 * dosfns.c:
10418 * doprnt.c:
10419 * doc.c:
10420 * dispnew.c:
10421 * dired.c:
10422 * dbusbind.c:
10423 * data.c:
10424 * composite.c:
10425 * coding.c:
10426 * cmds.c:
10427 * cm.c:
10428 * chartab.c:
10429 * charset.c:
10430 * character.c:
10431 * ccl.c:
10432 * category.c:
10433 * casetab.c:
10434 * casefiddle.c:
10435 * callproc.c:
10436 * callint.c:
10437 * bytecode.c:
10438 * buffer.c:
10439 * atimer.c: Include setjmp.h. (Bug#4643)
10440
fd5f21e6
SM
104412009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
10442
4c0354d7
SM
10443 Remove leftover table unibyte_to_multibyte_table.
10444 * character.c (unibyte_to_multibyte_table): Remove.
10445 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
10446 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
10447 * character.h (UNIBYTE_TO_CHAR): New macro.
10448 (MAKE_CHAR_MULTIBYTE): Use it.
10449 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
10450 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
10451 (message_dolog, set_message_1):
10452 * search.c (Freplace_match):
10453 * editfns.c (Fcompare_buffer_substrings):
10454 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
10455 (concat):
10456 * insdel.c (copy_text, count_size_as_multibyte):
10457 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
10458 * term.c (produce_glyphs):
10459 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
10460 * regex.c (RE_CHAR_TO_MULTIBYTE):
10461 * cmds.c (internal_self_insert):
10462 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
10463
fd5f21e6
SM
10464 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
10465
4418646e
DN
104662009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
10467
10468 * puresize.h (BASE_PURESIZE): Increase to 1310000.
10469
35f5c1d2
JB
104702009-10-16 Juanma Barranquero <lekktu@gmail.com>
10471
10472 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
10473
a0cd8f6b
AR
104742009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
10475
10476 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
10477 still needed under Tiger.
10478
10479 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
10480
10481 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
10482 __Apple__.
10483
10484 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
10485
01a8d3fa
KH
104862009-10-15 Kenichi Handa <handa@m17n.org>
10487
10488 * print.c (print_object): Escape a symbol like "2E10" too.
10489
bf6c75c9 104902009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
10491
10492 Cleanups and changes for 64-bit compile under Snow Leopard.
10493 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
10494
10495 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
10496
c5959062 10497 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
10498 (ns_findfonts, nsfont_list_family): Use long format in printf, and
10499 cast argument.
10500 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 10501 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
10502
10503 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
10504
10505 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
10506 where appropriate.
10507
10508 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
10509 where appropriate.
6e4780c5
JB
10510 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
10511 Use stringWithUTF8String.
bf6c75c9
AR
10512 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
10513
6e4780c5
JB
10514 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
10515 Add formal protocol mention to inheritance.
bf6c75c9
AR
10516 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
10517
6e4780c5
JB
10518 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
10519 Fix printf format.
bf6c75c9
AR
10520 (ns_query_color): Use CGFloat where appropriate.
10521 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
ac146f82 10522 (EmacsScroller-mouseDown:): Use long format in printf, and cast
bf6c75c9
AR
10523 argument.
10524
3d87f118
AR
10525 * config.in (NS_HAVE_NSINTEGER): Drop.
10526
a95c8102
AR
10527 * dbusbind.c (dbus-method-return-internal)
10528 (dbus-method-error-internal): Use long format in printf, and cast
10529 argument.
10530
10531 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
10532 in printf, and cast argument.
10533
6873acca 10534 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
10535 cast argument.
10536
9ec6f100
GM
105372009-10-11 Glenn Morris <rgm@gnu.org>
10538
10539 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
10540
5be883cd
JD
105412009-10-08 Jan Djärv <jan.h.d@swipnet.se>
10542
10543 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
10544 menu bar with a small width so it doesn't enlarge the frame.
10545
d7a39b51
JB
105462009-10-08 Juanma Barranquero <lekktu@gmail.com>
10547
10548 * fontset.c (Fset_fontset_font): Fix typos in error messages.
10549
0c2b6f8e
GM
105502009-10-06 Glenn Morris <rgm@gnu.org>
10551
10552 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
10553 SOME_MACHINE_LISP (this enters indirectly via DOC).
10554
e02131a2
EZ
105552009-10-05 Eli Zaretskii <eliz@gnu.org>
10556
10557 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
10558
b4744254
EZ
105592009-10-04 Eli Zaretskii <eliz@gnu.org>
10560
10561 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
10562 Doc fix.
10563
dbf64827
JB
105642009-10-03 Martin Rudalics <rudalics@gmx.at>
10565
10566 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
10567
e9a0aef8
MA
105682009-10-02 Michael Albinus <michael.albinus@gmx.de>
10569
d528b1ce 10570 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
10571 used anymore outside fileio.c.
10572
10573 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
10574
64eb2b56
JB
105752009-10-01 Juanma Barranquero <lekktu@gmail.com>
10576
10577 * lisp.h (Qdelete_directory_internal):
10578 Declare, instead of Qdelete_directory.
10579
10580 * w32fns.c (Fsystem_move_file_to_trash): Use it.
10581
9d28c33e
SM
105822009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
10583
10584 * eval.c (Fcalled_interactively_p): Add `kind' argument.
10585
9d8f3bd9
MA
105862009-10-01 Michael Albinus <michael.albinus@gmx.de>
10587
9d28c33e 10588 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
10589 Fdelete_directory. It is not a command anymore. It has no file
10590 name handler.
10591
9694740b
SM
105922009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
10593
10594 * xdisp.c (get_next_display_element): Use an enum in last change.
10595
748e162f
KH
105962009-09-28 Kenichi Handa <handa@m17n.org>
10597
9694740b 10598 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
10599 unibyte_display_via_language_environment in handling
10600 Vnobreak_char_display.
10601
17efd58d
AR
106022009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
10603
10604 * nsterm.h (ns_app_name): New extern variable.
10605
10606 * nsterm.m (ns_app_name): New variable.
10607 (ns_term_init): Set and use it.
10608 (ns_term_shutdown): Use it.
10609
10610 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
10611 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
10612
10613 * nsfns.m (ns_set_name_iconic, ns_set_name)
10614 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
10615 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
10616
9694740b
SM
10617 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
10618 Remove double-casting in client_data comparison.
31c2d412 10619
3208cb35
YM
106202009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10621
10622 * keyboard.c (make_lispy_event): Remember last wheel direction.
10623 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
10624
b7d552d6
GM
106252009-09-26 Glenn Morris <rgm@gnu.org>
10626
10627 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
10628 internal.elc. Add term/pc-win.elc.
10629 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
10630 term/x-win.elc.
10631 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
10632 term/w32-win.elc.
10633 (NS_SUPPORT): New.
10634 (lisp): Add NS_SUPPORT.
10635 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
10636
4ff670a8
DR
106372009-09-25 David Reitter <david.reitter@gmail.com>
10638
10639 * nsmenu.m (EmacsMenu-clear): Recognize application menu
10640 on Mac OS X 10.6+ (bug#4513).
10641
feabfb6c
JB
106422009-09-24 Juanma Barranquero <lekktu@gmail.com>
10643
10644 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
10645 some parts of Emacs code (like font selection) don't grok them.
10646 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 10647
de59072a
AS
106482009-09-24 Andreas Schwab <schwab@redhat.com>
10649
10650 * coding.c (decode_coding_iso_2022): Fix operator precedence.
10651
a489517b
JB
106522009-09-24 Juanma Barranquero <lekktu@gmail.com>
10653
10654 * dired.c (Fdirectory_files): Fix typo in docstring.
10655
0592970c
AR
106562009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
10657
10658 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
10659 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
10660 (EmacsScroller-setPosition:portion:whole:): Remove -display call
10661 under GNUstep.
10662 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
10663
10664 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
10665 glyph advancement.
10666
48e8a88b
AR
106672009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
10668
10669 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 10670 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
10671
10672 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
10673 deleted (bug #4492).
10674
e14f0a78
AR
10675 * nsfont.m (Vns_reg_to_script): New lisp variable.
10676 (syms_of_nsfont): Declare it.
10677 (ns_registry_to_script): New function.
10678 (ns_get_req_script): Call it.
10679 (ns_findfonts): Don't give up on non-unicode registry.
10680
10681 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
10682
5b650faa
SM
106832009-09-20 Tom Tromey <tromey@redhat.com>
10684
10685 * eval.c (find_handler_clause): Make stack-trace-on-error work in
10686 batch mode (bug#4228).
10687
a489517b 106882009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
10689
10690 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 10691 carefully. (Bug #4339)
0bae4e09 10692
fcfe06f3
CY
106932009-09-18 Chong Yidong <cyd@stupidchicken.com>
10694
d798ba87 10695 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 10696
31642728
AR
106972009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
10698
10699 * emacs.c (inhibit_x_resources): Update doc string for NS.
bba3e508
SM
10700 (main) [HAVE_NS]: Don't process --no-init-file option.
10701 Remove legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
10702
10703 * nsterm.h (ns_no_defaults): Remove.
10704
10705 * nsterm.m (ns_no_defaults): Remove.
10706 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
10707 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
10708 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
10709 don't update the NSWindow itself.
bba3e508
SM
10710 (EmacsView-windowWillUseStandardFrame:defaultFrame:):
10711 Improve state detection and store user rect ourselves. (Bug #3581)
31642728
AR
10712
10713 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
10714 ns_use_qd_smoothing.
10715
10716 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
10717 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 10718 (x-close-connection): Drop PSFlush() under OS X.
a489517b 10719 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 10720
8686ac71
JB
107212009-09-17 Juanma Barranquero <lekktu@gmail.com>
10722
10723 * emacs.c (inhibit_x_resources): New variable.
10724 (main) [HAVE_NS]: Don't process --quick command line option.
10725 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
10726
10727 * lisp.h (inhibit_x_resources): Declare it extern.
10728
10729 * w32reg.c (x_get_string_resource):
10730 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
10731
e227ba05
EZ
107322009-09-17 Eli Zaretskii <eliz@gnu.org>
10733
362654a6
JB
10734 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
10735 Add lisp/term/internal.elc.
e227ba05 10736
742d40e8
SM
107372009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
10738
10739 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
10740 (bug#4461).
10741
005bd5a2
DN
107422009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
10743
10744 * puresize.h (BASE_PURESIZE): Increase to 1290000.
10745
10746 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
10747 (OBJECTS_MACHINE): Remove, unused.
10748
f9af9719
SM
107492009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
10750
10751 * frame.c (x_get_resource_string): Remove unused.
10752
0307c7d2
JD
107532009-09-15 Jan Djärv <jan.h.d@swipnet.se>
10754
10755 * xterm.c (x_new_font): Call change_frame_size before calling
10756 x_set_window_size, in case frame size won't change.
10757
10758 * frame.c (x_set_font): Remove dead code.
10759
428b13d6
SM
107602009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
10761
10762 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
10763
5766c380
SM
107642009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
10765
10766 * lread.c (Fload): Don't output a message after loading an obsolete
10767 package any more (done in Lisp now).
10768
2fd0161b
CY
107692009-09-12 Chong Yidong <cyd@stupidchicken.com>
10770
10771 * fns.c (syms_of_fns): Doc fix (Bug#4227).
10772
bc5e75b6
SM
107732009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
10774
10775 * keymap.c (Fwhere_is_internal): Use nconc2.
10776
c31c985e
AM
107772009-09-11 Alan Mackenzie <acm@muc.de>
10778
10779 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
10780 batch mode.
10781
78012bd2
AS
107822009-09-11 Andreas Schwab <schwab@linux-m68k.org>
10783
10784 * xdisp.c (display_mode_element): Detect cycles.
10785
9d889332
SM
107862009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
10787
10788 * keymap.c (where_is_internal): Don't erroneously return nil right after
10789 filling the cache.
10790 (where_is_internal_1): Fix up typo.
10791
7ab5d780
GM
107922009-09-11 Glenn Morris <rgm@gnu.org>
10793
10794 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
10795 share a common doc-string.
10796
5238a749
SM
107972009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
10798
66d77eda
SM
10799 * keymap.c (get_keymap): Return the actual keymap symbol rather than
10800 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
10801
5238a749
SM
10802 * keymap.c (QCadvertised_binding): New constant.
10803 (syms_of_keymap): Initialize it.
10804 (Fwhere_is_internal): Try and use bindings from :advertised-binding
10805 if applicable.
10806
19f48442
SM
108072009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
10808
50d4ba39
SM
10809 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
10810 (parse_menu_item): Streamline since bindings are recomputed all the
10811 time anyway. Don't bother checking Vdefine_key_rebound_commands any
10812 more and don't support lmenu's menu-alias any more either.
10813
a88a5372
SM
10814 * keymap.c (where_is_internal_data): Make noindirect a boolean.
10815 (where_is_internal): Strip it down to only traverse the keymaps.
10816 Move the cache handling from Fwhere_is_internal to here.
10817 (Fwhere_is_internal): Move the handling of remapping and the choice of
10818 the best binding from where_is_internal to here.
10819 Unify the cached/noncached paths, so remapping is also handled
10820 correctly when the cache is used, and so the cache can be used to
10821 speed up remap-handling when applicable.
10822 Give preference to non-remapped bindings.
10823 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
10824 non-remapped bindings.
10825 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
10826 command remapping.
10827
19f48442
SM
10828 * xdisp.c (display_mode_element): Move list length limit from 50 to
10829 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
10830
599498c3 108312009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
10832
10833 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
10834
f9b7b5ac
SM
108352009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
10836
a53af587
JB
10837 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
10838 (Bug#4334)
10839
f9b7b5ac
SM
10840 * keymap.c (where_is_internal): Filter out shadowed remappings.
10841 Assume that where_is_internal returns unshadowed bindings to simplify
10842 the code and get rid of the gotos. Use ASIZE.
10843
04f4b72d
JD
108442009-09-04 Jan Djärv <jan.h.d@swipnet.se>
10845
4da146f2
JD
10846 * xterm.c (x_focus_changed): If we get a focusout and pointer
10847 is invisible, make it visible.
10848
04f4b72d
JD
10849 * xterm.h: Remove condition for declaration of
10850 x_*_window_to_frame.
10851
7cef7ce3
SM
108522009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
10853
10854 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
10855 initial terminal as well.
10856
a54fa5b7
JD
108572009-09-02 Jan Djärv <jan.h.d@swipnet.se>
10858
10859 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 10860 x_menubar_window_to_frame.
a54fa5b7 10861
50426a04 10862 * xterm.c: Remove declarations also in xterm.h.
a54fa5b7
JD
10863 (XTmouse_position): Do not return valid positions
10864 for clicks in the menubar and the toolbar for Gtk+.
10865
10866 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
10867 if the widget for the event has the same top level as a frame,
10868 return the frame.
10869 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
10870 internal windows, bug #4122.
10871 (x_non_menubar_window_to_frame): Remove.
10872
5a021dd0
GM
108732009-09-02 Glenn Morris <rgm@gnu.org>
10874
10875 * buffer.c (default-major-mode): Move most of the doc from here...
10876 (major-mode): ... to here.
10877
548fe2f3
NR
108782009-08-30 Nick Roberts <nickrob@snap.net.nz>
10879
10880 * process.c (wait_reading_process_output): Keep the descriptor
10881 when pty is used by a non-child process, e.g., in I/O buffer of
10882 GDB this allows inferior to be restarted.
10883
e0840eef
EZ
108842009-08-29 Eli Zaretskii <eliz@gnu.org>
10885
10886 * xdisp.c (redisplay_internal): Remove redundant test and collapse
10887 both branches into one.
10888
82e98df4
SM
108892009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
10890
10891 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
10892 (main): Use enable-multibyte-characters rather than
10893 default-enable-multibyte-characters. Output a warning message when
10894 running a unibyte session.
10895
890617cb
YM
108962009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10897
10898 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
10899 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
10900 (copy_data_segment): Also copy __program_vars section.
10901 (copy_dyld_info) [LC_DYLD_INFO]: New function.
10902 (dump_it) [LC_DYLD_INFO]: Use it.
10903
10904 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
10905
e7adeadc
EZ
109062009-08-28 Eli Zaretskii <eliz@gnu.org>
10907
10908 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
10909 $(SRC)/buildobj.h.
ef1b0ba7 10910 (buildobj.h): Rename from $(SRC)/buildobj.h.
e7adeadc
EZ
10911 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
10912 $(SRC)/buildobj.h.
10913 (clean): Add buildobj.h.
10914
3ed8bbdc
TZ
109152009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
10916
10917 * print.c (print_object): Set escapeflag to 1 when printing
10918 hashtable keys and values.
10919
155a6764
SM
109202009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
10921
10922 * lread.c (read_integer): Use doubles (and potentially return a float
10923 number) as we do in string-to-number.
10924 (read1): Use strtol to read integers, signal errors on strtol's
10925 overflow and use floats if strtol's output is too large for
10926 Elisp integers.
10927
877610de
EZ
109282009-08-27 Eli Zaretskii <eliz@gnu.org>
10929
10930 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
10931 (make-buildobj-SH): Fix last change.
10932 (SRC): Move to before where it's first used.
10933
ef73e7be
KH
109342009-08-27 Kenichi Handa <handa@m17n.org>
10935
550c8289
KH
10936 * process.c (send_process): Use encode_coding_object instead of
10937 encode_coding_string to perform eol-conversion even if the string
10938 is unibyte.
10939
60afa08d
KH
10940 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
10941 character.
10942
ef73e7be 10943 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 10944 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 10945
7b3a82d7
DN
109462009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
10947
5654bf63
DN
10948 * callproc.c (Fcall_process): Remove always true #if.
10949
7b3a82d7
DN
10950 * lisp.h: Replace #if 0 code for checking with text pointing to
10951 the --enable-checking configure flag.
10952
10953 * emacs.c (main): Mention the --enable-profiling configure flag
10954 instead of using CFLAGS.
10955
878bde49
KR
109562009-08-26 Ken Raeburn <raeburn@raeburn.org>
10957
10958 * Makefile.in (buildobj.h): New target.
10959 (doc.o): Depend on it.
10960 (temacs${EXEEXT}): Don't generate buildobj.lst.
10961 (mostlyclean): Delete buildobj.h, not buildobj.lst.
10962 * makefile.w32-in ($(SRC)/buildobj.h): New target.
10963 ($(BLD)/doc.$(O)): Depend on it.
10964 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
10965 provided by Eli Zaretskii.)
10966 ($(TEMACS)): Don't generate buildobj.lst.
10967 * doc.c: Include buildobj.h.
10968 (buildobj): New static variable.
10969 (Fsnarf_documentation): Use it, instead of opening and reading
10970 buildobj.lst.
10971
1574224c
MA
109722009-08-25 Michael Albinus <michael.albinus@gmx.de>
10973
10974 * dbusbind.c (Fdbus_call_method)
10975 (Fdbus_call_method_asynchronously): Use English numeric format for
10976 timeout values in doc string.
10977
d9da2f45
KH
109782009-08-25 Kenichi Handa <handa@m17n.org>
10979
ef73e7be
KH
10980 * alloc.c (mark_char_table): New function.
10981 (mark_object): Use mark_char_table for a char-table.
10982
d9da2f45
KH
10983 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
10984 (CHAR_TABLE_REF): Use it.
10985
c8edcc01
KR
109862009-08-23 Ken Raeburn <raeburn@raeburn.org>
10987
10988 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
10989 before invoking the newly build emacs to check for load-path
10990 shadowing.
10991
7763401b
GM
109922009-08-22 Glenn Morris <rgm@gnu.org>
10993
10994 * Makefile.in (bootstrap_exe): New variable.
10995 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
10996 Use ${bootstrap_exe}.
10997
729eadda
EZ
109982009-08-22 Eli Zaretskii <eliz@gnu.org>
10999
11000 * coding.h (encode_coding_string): Don't encode unibyte strings.
11001 (Bug#4047)
11002
eb4c6ace
MA
110032009-08-22 Michael Albinus <michael.albinus@gmx.de>
11004
11005 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
11006
11007 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
11008 intended as hotfix only.
11009 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
11010
36e34d1b
AR
110112009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
11012
11013 * nsterm.m (ns_get_color): Update documentation properly for last
bba3e508
SM
11014 change, and clean up loose ends in the code left by it.
11015 Fix longstanding bug with 16-bit hex parsing, and add support for
36e34d1b
AR
11016 yet another X11 format (rgb:r/g/b) for compatibility.
11017 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
11018 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
11019
f983eb8a
SM
110202009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
11021
11022 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
11023
3f56d3c6
MA
110242009-08-20 Michael Albinus <michael.albinus@gmx.de>
11025
11026 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
11027 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
11028 (xd_initialize, xd_pending_messages): Check, whether
11029 $DBUS_SESSION_BUS_ADDRESS is set.
11030
fb641d68
YM
110312009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11032
11033 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
11034
11035 * nsterm.m (ns_get_color): Remove incompatible color formats again.
11036
cf59a374
GM
110372009-08-20 Glenn Morris <rgm@gnu.org>
11038
11039 * emacs.c (system-type): Doc fix.
11040
1373f3be
SM
110412009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
11042
11043 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
11044 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
11045
058ed861
MA
110462009-08-18 Michael Albinus <michael.albinus@gmx.de>
11047
1373f3be
SM
11048 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
11049 New functions.
058ed861
MA
11050 (xd_initialize): Revert change from 2009-08-16.
11051
563a866e 110522009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
11053
11054 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 11055 font-group vector, return nil.
5fc05db0 11056
e42bdf01
CY
110572009-08-17 Chong Yidong <cyd@stupidchicken.com>
11058
11059 * process.c (status_notify): Don't perform redisplay.
11060 (Fdelete_process, list_processes_1, process_send_signal):
11061 Expliticly perform redisplay.
11062 (wait_reading_process_output): Always check process status, but
11063 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
11064
4230ab74
KR
110652009-08-17 Ken Raeburn <raeburn@raeburn.org>
11066
1373f3be 11067 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
11068 (XFLOAT_INIT): New macro for storing a float value.
11069 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
11070 * fns.c (sxhash): Copy out the value of a float in order to
11071 examine its bytes.
11072 * dbusbind.c (xd_append_arg): Likewise.
11073
4230ab74
KR
11074 * emacs.c (main): Don't call syms_of_data twice.
11075
a0645cdd
MA
110762009-08-16 Michael Albinus <michael.albinus@gmx.de>
11077
11078 * dbusbind.c (xd_initialize): Add connection file descriptor to
11079 input_wait_mask, in order to let select() detect, whether a new
11080 message has been arrived.
ca4f31ea 11081 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 11082
485db0ba
MA
110832009-08-15 Michael Albinus <michael.albinus@gmx.de>
11084
1373f3be
SM
11085 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
11086 New functions.
485db0ba
MA
11087
11088 * lisp.h (xd_pending_messages): Declare.
11089
11090 * keyboard.c (readable_events): Call xd_pending_messages.
11091
b5b98ff4
CY
110922009-08-15 Chong Yidong <cyd@stupidchicken.com>
11093
1373f3be 11094 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 11095
f8354c6e
CY
11096 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
11097
b5b98ff4
CY
11098 * buffer.c (set_buffer_internal_1)
11099 (swap_out_buffer_local_variables): Check for unbound local
11100 variables (Bug#4138).
11101
8b9fc636
EZ
111022009-08-14 Eli Zaretskii <eliz@gnu.org>
11103
11104 * process.c (create_pty): Fix last change.
11105
ce959360
CY
111062009-08-13 Chong Yidong <cyd@stupidchicken.com>
11107
11108 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
11109 (xbm_load_image): Caller changed.
64b807c9 11110 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 11111
c7baf7e9
NR
111122009-08-13 Nick Roberts <nickrob@snap.net.nz>
11113
11114 * process.c (create_pty): New function.
11115 (Fstart_process): Use it to allow Emacs to just associate a pty
11116 with the buffer. See associated change in gdb-mi.el.
11117 (list_processes_1): Deal with no program name.
11118 (start_process_unwind): Use pid == -2 to mean no process.
11119
1ac9108a
SM
111202009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
11121
11122 * cmds.c (nonundocount): New global variable.
11123 (keys_of_cmds): Initialize it.
11124 (Fself_insert_command): Use it to combine upto 20 sequential chars
11125 into a single undo entry, just like the Qself_insert_command code in
11126 keyboard.c does.
11127 Call frame_make_pointer_invisible, also like the Qself_insert_command
11128 code in keyboard.c does.
11129 * keyboard.c (command_loop_1): Use the new global nonundocount rather
11130 than its own local replacement for it.
11131
e267324c
KR
111322009-08-10 Ken Raeburn <raeburn@raeburn.org>
11133
1ac9108a 11134 * fns.c (concat): Don't re-set string length to its current value.
77437343 11135
1ac9108a
SM
11136 * coding.h (decode_coding_string, encode_coding_string):
11137 Use SBYTES macro.
f0bed503 11138
1ac9108a 11139 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
11140 (doprnt): Merge with doprnt1, discarding lispstrings code.
11141 * lisp.h (doprnt_lisp): Don't declare.
11142
416e006d
JL
111432009-08-07 Juri Linkov <juri@jurta.org>
11144
11145 * puresize.h (BASE_PURESIZE): Increase to 1270000.
11146
6f7d5780
DN
111472009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
11148
11149 * print.c (syms_of_print): Undo previous change.
11150
f19a0f5b
TZ
111512009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
11152
11153 * lread.c (read1, syms_of_lread): Read hashtables back from the
11154 readable format.
11155
11156 * print.c (print_preprocess, print_object): Print hashtables fully
11157 and readably.
11158 (syms_of_print): Provide 'hashtable-print-readable.
11159
b9173dc2
AR
111602009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
11161
11162 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
11163 no family set.
11164 (nsfont_open): Handle case when entity has no family.
11165
1586503c
AR
111662009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
11167
11168 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
11169 element, not a list, for match case.
11170
087048cd
KH
111712009-07-28 Kenichi Handa <handa@m17n.org>
11172
11173 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
11174 rigidly.
11175
11176 * xfont.c (xfont_list_pattern): Don't ignore the return value of
11177 font_parse_xlfd. Check font properties more rigidly.
11178
780c2506
DN
111792009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
11180
31fd7c5c
JB
11181 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
11182 bsd-common.h.
780c2506 11183
a8c0cc18
KH
111842009-07-27 Kenichi Handa <handa@m17n.org>
11185
11186 * xfaces.c (face_with_height): Call font_clear_prop.
11187
4fbe2306
CY
111882009-07-26 Chong Yidong <cyd@stupidchicken.com>
11189
111d9af3
CY
11190 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
11191
11192 * xterm.c (x_term_init): Use Qx.
11193
4fbe2306
CY
11194 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
11195
1ac9108a 11196 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
11197 (ns_get_color): Revert 2009-07-16 change.
11198
beb0b7f9
EZ
111992009-07-25 Eli Zaretskii <eliz@gnu.org>
11200
11201 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 11202 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 11203
2baf5e76
KR
112042009-07-25 Ken Raeburn <raeburn@raeburn.org>
11205
1ac9108a
SM
11206 * coding.h (decode_coding_string, encode_coding_string):
11207 Use SCHARS macro.
8890e5f5 11208
2baf5e76 11209 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 11210 (load_depth): Delete.
2baf5e76
KR
11211 (Qload_in_progress): New variable.
11212 (load_unwind): Don't reference load_depth or load_in_progress.
11213 (Fload): Likewise; specbind Qload_in_progress instead.
11214 (init_lread): Don't initialize load_depth.
11215 (syms_of_lread): Initialize and protect Qload_in_progress.
11216
1395c6f5
AR
112172009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
11218
11219 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
11220
4e2f36cf
AR
112212009-07-23 Yavor Doganov <yavor@gnu.org>
11222
11223 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
11224
5dd9a6f7
AR
112252009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
11226
11227 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
11228 Bugs 3792, 3720, 2402.
11229 (ns_lookup_indexed_color): Check for bad index.
11230 (ns_index_color): Init unused slot to 0.
11231 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
11232 Bug 3714, possibly 3082.
5dd9a6f7 11233
c902b920
JR
112342009-07-22 Jason Rumney <jasonr@gnu.org>
11235
1ac9108a
SM
11236 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
11237 Position IME window at cursor (Bug#2570).
c902b920
JR
11238 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
11239 (globals_of_w32fns): Dynamically load functions required above.
11240
11241 * w32term.c (w32_draw_window_cursor): Send message to reposition
11242 any IME window.
11243
090101cf
CY
112442009-07-21 Chong Yidong <cyd@stupidchicken.com>
11245
11246 * fileio.c: Revert 2009-07-16 changes.
11247 (Vauto_save_include_big_deletions): New variable.
11248 (Fdo_auto_save): Disable auto-save only if
11249 auto-save-include-big-deletions is nil.
11250
e6583e3d
CY
112512009-07-21 Chong Yidong <cyd@stupidchicken.com>
11252
11253 * xdisp.c (move_it_to): For continued lines ending in a tab, take
11254 the overflowed pixels into account (Bug#3879).
11255
ece435a5
KR
112562009-07-21 Ken Raeburn <raeburn@raeburn.org>
11257
11258 * lread.c (load_depth): New variable.
11259 (Fload, load_unwind, init_lread): Set it to the load recursion
11260 depth; set load_in_progress as a simple boolean based on the
11261 current load_depth. (Bug#3892)
11262
40b2d973
AR
112632009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
11264
11265 * nsfont.m (ns_has_attribute): Remove.
11266 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
11267
10be7e0d
JL
112682009-07-18 Juri Linkov <juri@jurta.org>
11269
11270 * process.c (Fset_process_query_on_exit_flag): Mention killing
11271 a buffer in docstring.
11272
fa055055
KH
112732009-07-17 Kenichi Handa <handa@m17n.org>
11274
11275 * casetab.c (shuffle): Fix the logic of setting up the cycle.
11276
042f7b69
YM
112772009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11278
11279 * nsfns.m (Fns_set_alpha): Remove function.
11280 (syms_of_nsfns): Don't defsubr it.
11281
11282 * nsterm.m (ns_get_color): Remove incompatible color formats.
11283 (ns_color_to_lisp): Generate #rrggbb color format string.
11284
4be941e3
RS
112852009-07-16 Richard Stallman <rms@gnu.org>
11286
11287 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
11288 (Fset_buffer_auto_saved): Handle save_length = -2.
11289
4e6b227d
CY
112902009-07-16 Chong Yidong <cyd@stupidchicken.com>
11291
11292 * xterm.c (Qx_gtk_map_stock): New var.
11293
11294 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
11295 of calling intern each time.
11296
a1856973
YM
112972009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11298
11299 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
11300 does tiling.
11301
11302 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
11303
497e54d8
KH
113042009-07-14 Kenichi Handa <handa@m17n.org>
11305
72d36834
KH
11306 * font.c (font_vconcat_entity_vectors): New function.
11307 (struct font_sort_data): New member font_driver_preference.
11308 (font_compare): Check font_driver_preference.
11309 (font_sort_entities): The format of the first argument changed.
11310 (font_delete_unmatched): Likewise.
11311 (font_list_entities): The return type changed.
11312 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
11313 (font_find_for_lface): Adjuste for the above changes.
11314 Don't suppress the checking of C even if the repertory supports it.
11315 (Flist_fonts): Adjust for the above changes.
72d36834 11316
1ac9108a
SM
11317 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
11318 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
11319 Reject a font who has adstyle property that is different from a
11320 langname derived from registry property.
1ac9108a 11321 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 11322
b6046155
EZ
113232009-07-13 Eli Zaretskii <eliz@gnu.org>
11324
11325 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
11326 local copy of dirfilename.
11327
fb6b6049
KH
113282009-07-13 Kenichi Handa <handa@m17n.org>
11329
e2402a5e
KH
11330 * chartab.c (sub_char_table_ref_and_range): Fix the range check
11331 against max_char.
11332
fb6b6049
KH
11333 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
11334 calling XSYMBOL (sym).
11335
65156807
EZ
113362009-07-11 Eli Zaretskii <eliz@gnu.org>
11337
1ac9108a
SM
11338 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
11339 New function.
11340 (directory_files_internal) [WINDOWSNT]:
11341 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
11342 the filesystem of the directory is fast or slow.
11343
11344 * w32.c (logon_network_drive): Don't assume PATH is an absolute
11345 file name.
11346 (is_slow_fs): New function.
11347 (stat): Use it to determine whether to issue more system calls to
11348 get accurate file attributes, when w32-get-true-file-attributes is
11349 `local'.
11350
e0ab5fcf
JD
113512009-07-10 Jan Djärv <jan.h.d@swipnet.se>
11352
11353 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 11354 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
11355 parameter font-parameter as default to the font dialog.
11356
784ceded
KH
113572009-07-10 Kenichi Handa <handa@m17n.org>
11358
11359 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
11360
fb8edc0b
EZ
113612009-07-09 Eli Zaretskii <eliz@gnu.org>
11362
1ac9108a 11363 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 11364
fb8edc0b
EZ
11365 * w32.c (stat): Treat UNC file names as residing on remote
11366 drives. (Bug#3542)
11367
635c75b1
KH
113682009-07-09 Kenichi Handa <handa@m17n.org>
11369
11370 * fontset.c (fontset_find_font): Fix previous change.
11371
c1d5ce94
MA
113722009-07-08 Michael Albinus <michael.albinus@gmx.de>
11373
11374 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
11375 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
11376 error flag.
11377
edb61b39
KH
113782009-07-08 Kenichi Handa <handa@m17n.org>
11379
374bf7e4
KH
11380 * fontset.c (fontset_find_font): Fix the logic of handling
11381 charset_matched.
11382 (font_for_char): Delete unused var.
11383 (generate_ascii_font_name): Delete it.
11384
edb61b39
KH
11385 * coding.h (JIS_TO_SJIS2): Fix the code range check.
11386
11387 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
11388 (encode_coding_sjis): Fix the code range check.
11389
0f3f018c
CY
113902009-07-07 Chong Yidong <cyd@stupidchicken.com>
11391
11392 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
11393 (Fexpand_file_name): Copy string data properly (Bug#3772).
11394
fcaf6f3a
JD
113952009-07-07 Jan Djärv <jan.h.d@swipnet.se>
11396
11397 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
11398 first MapNotify.
11399
6809ca75
KH
114002009-07-07 Kenichi Handa <handa@m17n.org>
11401
11402 * character.h (unibyte_has_multibyte_table): Delete extern.
11403 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
11404
11405 * charset.c (Fset_charset_priority): Update charset_unibyte.
11406 (syms_of_charset): Initialize charset_unibyte.
11407
11408 * character.c (unibyte_has_multibyte_table): Delete it.
11409 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
11410 charset_unibyte.
11411 (multibyte_char_to_unibyte_safe): Likewise.
11412 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
11413
1ac9108a 11414 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
11415 (x_produce_glyphs): Likewise.
11416
11417 * .gdbinit (xcharset): Fix the treating $arg0.
11418
ad9e2d54
EZ
114192009-07-04 Eli Zaretskii <eliz@gnu.org>
11420
11421 Emulation of `getloadavg' on MS-Windows.
50426a04 11422 * w32.c: Include float.h.
ad9e2d54
EZ
11423 (g_b_init_get_native_system_info, g_b_init_get_system_times)
11424 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
11425 (get_native_system_info, get_system_times): New functions.
11426 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
11427 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
11428 (globals_of_w32): Initialize g_b_init_get_native_system_info,
11429 g_b_init_get_system_times, and num_of_processors.
11430
0a3472c7
JR
114312009-07-03 Jason Rumney <jasonr@gnu.org>
11432
11433 * w32term.c (w32_initialize): Use standard types.
11434
80904120
EZ
114352009-07-03 Eli Zaretskii <eliz@gnu.org>
11436
11437 * dired.c (Ffile_attributes): Decode user and group names by the
11438 locale's encoding. (Bug#3443)
11439
6978862d
DN
114402009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
11441
f8d23104
DN
11442 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
11443 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
11444
11445 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
11446
11447 * term.c (init_tty): Remove spurious #ifdef.
11448
6978862d
DN
11449 * m/mips.h: Mention this file is also used for netbsd.
11450 * m/pmax.h: Remove file.
11451
e044e4fc
JD
114522009-07-03 Jan Djärv <jan.h.d@swipnet.se>
11453
11454 * xterm.h (struct x_display_info): Add invisible_cursor.
11455 (struct x_output): Add current_cursor.
11456
11457 * xterm.c (XTtoggle_invisible_pointer): New function.
11458 (x_define_frame_cursor): Don't define cursor if invisible or the
11459 same as before. Set current_cursor.
11460 (x_create_terminal): Set toggle_invisible_pointer_hook.
11461
11462 * xfns.c (make_invisible_cursor): New function.
11463 (x_set_mouse_color): Call make_invisible_cursor.
11464 Set current_cursor.
11465 (x_window): Set current_cursor.
11466
11467 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
11468
11469 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
11470 inserting a character.
11471 (read_avail_input): Call frame_make_pointer_visible.
11472
11473 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
11474 (frame_make_pointer_invisible, frame_make_pointer_visible):
11475 New functions.
e044e4fc
JD
11476 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
11477
11478 * frame.h: Declare frame_make_pointer_invisible and
11479 frame_make_pointer_visible.
11480 (struct frame): Add pointer_invisible.
11481
574c8efa
JD
114822009-07-02 Jan Djärv <jan.h.d@swipnet.se>
11483
7b507248
JD
11484 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
11485 frame isn't visible.
11486 (xg_frame_resized): If width/height is -1, get size of window
11487 from X server.
11488
11489 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
11490 for MapNotify.
11491
835bdaa7 11492 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 11493 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 11494 (flush_and_sync): Reintroduce.
574c8efa 11495
3f1c6666 114962009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 11497
31fd7c5c 11498 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
11499
11500 * xterm.c (x_handle_net_wm_state): Also look for sticky.
11501 (x_term_init): Initialize Xatom_net_wm_state_sticky.
11502
11503 * frame.h: Declare Qsticky.
11504
cad9ef74
JD
11505 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
11506
11507 * nsfns.m (ns_frame_parm_handlers): Ditto.
11508
11509 * frame.c: Declare Qsticky.
11510 (frame_parms): Add sticky.
11511
11512 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
11513
11514 * xterm.h: Declare x_set_sticky.
11515
11516 * xterm.c (x_set_sticky): New function.
11517
69b16610
JD
11518 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
11519 (xg_tool_bar_menu_proxy): Attach enter/leave events to
11520 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
11521
11522 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
11523
11524 * frame.c: Qmaximized is new.
11525 (x_set_frame_parameters): Do not handle fullscreen specially.
11526 Only set width and height if explicitly set.
11527 (x_set_fullscreen): Handle Qmaximized.
11528 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
11529 (syms_of_frame): Initialize Qmaximized.
11530
1ac9108a
SM
11531 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
11532 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
11533
11534 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
11535 for Expose event. Add call to x_check_fullscreen for MapNotify event.
11536 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
11537 set gravity to NorthWestGravity when USE_GTK.
11538 (set_wm_state): New function.
31fd7c5c 11539 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
11540 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
11541 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 11542 or the case when no window manager is running. That means remove calls
3f1c6666
JD
11543 to x_real_positions and x_fullscreen_adjust.
11544
11545 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
11546 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
11547 flush_and_sync.
11548 (xg_height_changed): New function.
11549 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
11550 and gtk_window_set_policy. Set frame gravity after parsing the
11551 geometry string.
3f1c6666
JD
11552 (xg_update_frame_menubar, free_frame_menubar)
11553 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
11554 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
11555 Remove calls to xg_frame_set_char_size.
11556
fd503d99
KH
115572009-07-01 Kenichi Handa <handa@m17n.org>
11558
11559 * keyboard.c (decode_keyboard_code): New function.
11560 (tty_read_avail_input): Decode the input bytes if necessary.
11561
1ac9108a
SM
11562 * coding.c (setup_coding_system):
11563 Initialize coding->carryover_bytes to 0.
fd503d99
KH
11564 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
11565 use Qno_conversion.
11566
24ed93fb
YM
115672009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11568
11569 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
11570
99061dfc
CY
115712009-06-30 Chong Yidong <cyd@stupidchicken.com>
11572
1ac9108a 11573 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 11574
ff90fbde
JR
115752009-06-30 Jason Rumney <jasonr@gnu.org>
11576
11577 * w32term.c (w32_initialize): Use GetModuleHandle for library that
11578 is already loaded.
11579 Set user model ID if supported (bug#1849).
11580
5f445726
JM
115812009-06-29 Jim Meyering <meyering@redhat.com>
11582
11583 Remove useless if-before-xfree test.
11584 * nsfont.m (nsfont_close): Remove useless test.
11585 * term.c (delete_tty): Likewise.
11586 * w32.c (system_process_attributes): Likewise.
11587 * w32font.c (w32font_close): Likewise.
11588 * xfaces.c (x_free_gc): Likewise.
11589 * xselect.c (buffer): Likewise.
11590
b9607587
AS
115912009-06-28 Andreas Schwab <schwab@linux-m68k.org>
11592
11593 * process.c (send_process): Keep decoded string in a local
11594 variable and protect it from GC. (Bug#3521)
11595
89ba96f4
EZ
115962009-06-28 Eli Zaretskii <eliz@gnu.org>
11597
11598 * term.c (create_tty_output) [MSDOS]: #ifdef away.
11599 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
11600
098a1589
CY
116012009-06-28 Chong Yidong <cyd@stupidchicken.com>
11602
485422be
CY
11603 * xdisp.c (start_display, handle_face_prop)
11604 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
11605 (redisplay_window, try_window_id, produce_image_glyph):
11606 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 11607
098a1589
CY
11608 * xterm.c (x_update_window_begin, x_new_focus_frame)
11609 (x_scroll_bar_handle_click, handle_one_xevent)
11610 (handle_one_xevent, XTread_socket, x_focus_on_frame)
11611 (x_make_frame_visible, x_make_frame_invisible)
11612 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
11613 code chunks that are now obsolete.
11614
78c38319
MA
116152009-06-28 Michael Albinus <michael.albinus@gmx.de>
11616
11617 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
11618 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
11619 for hours, when optimzation is enabled.
11620 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
11621 (xd_read_message): Make them static.
11622
4189ed40
CY
116232009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
11624
11625 * term.c (turn_on_face): Allow simultaneously bold and dim
11626 terminal faces (Bug#3530).
11627
cd9b5e16
CY
116282009-06-27 Chong Yidong <cyd@stupidchicken.com>
11629
4e23bedb
CY
11630 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
11631
cd9b5e16
CY
11632 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
11633 truncation glyphs (Bug#3686).
11634
07cc3c35
GM
116352009-06-27 Glenn Morris <rgm@gnu.org>
11636
11637 * m/pmax.h: Restore file, with only netbsd portions.
11638
31fd7c5c 116392009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 11640
cd9b5e16 11641 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 11642
42d4a64f
KH
116432009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
11644
11645 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
11646 the arg FORCE_SYMBOL.
11647
930fe55b 116482009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
11649
11650 * fontset.c (fontset_find_font): When a usable rfont_def is found
11651 in a fallback font-group, make it the first element of the group.
11652
57ebc3fd
CY
116532009-06-24 Chong Yidong <cyd@stupidchicken.com>
11654
11655 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
11656
f084f942
KH
116572009-06-24 Kenichi Handa <handa@m17n.org>
11658
11659 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
11660 set for C.
11661 (fontset_font): Record the availability of a font for C both in
11662 the realized fontsets of the current one and the default one.
11663
2f686c87
DN
116642009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
11665
11666 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
11667 conditional, it is always defined on AIX.
11668
666e158e
MB
116692009-06-23 Miles Bader <miles@gnu.org>
11670
11671 * window.c (Vrecenter_redisplay): New variable.
11672 (syms_of_window): Initialize it.
11673 (Qtty): New extern declaration.
11674 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
11675
c6da7cd2
JM
116762009-06-23 Jim Meyering <meyering@redhat.com>
11677
1ac9108a
SM
11678 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
11679 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 11680 pointer dereferences are guaranteed to be valid.
c6da7cd2 11681
678dca3d
KH
116822009-06-23 Kenichi Handa <handa@m17n.org>
11683
74d75424
KH
11684 * emacs.c (main): Call init_font ().
11685
11686 * font.h (Vfont_log): Extern it.
11687 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
11688
11689 * font.c (font_sort_entities, font_list_entities)
11690 (font_matching_entity, font_open_entity)
11691 (font_close_object): Change font_add_log to FONT_ADD_LOG.
11692 (Vfont_log): Delete static.
11693 (font_log_env_checked): Delete this variable.
11694 (font_add_log): Don't check font_log_env_checked.
11695 (font_deferred_log): Check Vfont_log.
11696 (init_font): New function.
11697
678dca3d
KH
11698 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
11699
11700 * w32font.c: Change font_add_log to FONT_ADD_LOG.
11701
11702 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
11703
11704 * xfont.c: Change font_add_log to FONT_ADD_LOG.
11705
11706 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
11707 (face_for_char): Don't call font_deferred_log here.
11708 (font_for_char): Likewise.
11709
8a668709
CY
117102009-06-22 Chong Yidong <cyd@stupidchicken.com>
11711
9a01ee33
CY
11712 * w32term.c (x_draw_glyph_string): Use the glyph string's width
11713 rather than its background_width for drawing the overline and
11714 underline (Bug#489).
11715
11716 * xterm.c (x_draw_glyph_string): Use the glyph string's width
11717 rather than its background_width for drawing the overline and
11718 underline (Bug#489).
ec7c9926
CY
11719 (xg_default_icon_file): New variable.
11720 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
11721 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 11722
8a668709
CY
11723 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
11724 (load_overlay_strings): Remove externs.
11725 (fast_find_position): Function deleted.
11726 (mouse_face_from_buffer_pos): New function, based on
11727 fast_find_position. Correctly handle before-strings,
11728 display-strings, and after-strings (Bug#1220).
11729 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
11730
4d4c02d8
CY
117312009-06-21 Chong Yidong <cyd@stupidchicken.com>
11732
1ac9108a 11733 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
11734 (move_it_in_display_line_to, move_it_in_display_line_to)
11735 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
11736
70243478
CY
117372009-06-21 Chong Yidong <cyd@stupidchicken.com>
11738
11739 * Branch for 23.1.
11740
13087e59
JR
117412009-06-21 Jason Rumney <jasonr@gnu.org>
11742
11743 * w32term.c (keyboard_codepage): New static variable.
11744 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
11745 (w32_read_socket) [WM_CHAR]: Use it to decode character
11746 input (bug#3237).
11747 (w32_initialize): Initialize it.
11748 (codepage_for_locale): New function.
11749
4735b74e
KR
117502009-06-20 Ken Raeburn <raeburn@raeburn.org>
11751
11752 * process.c (status_message): Pass Faset index argument as a lisp
11753 object, so as to work with USE_LISP_UNION_TYPE.
11754
0e727afa
YM
117552009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11756
11757 * coding.c (Ffind_coding_systems_region_internal):
11758 Cache checked characters.
11759
cf299835
KH
117602009-06-18 Kenichi Handa <handa@m17n.org>
11761
1ac9108a 11762 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 11763
90f20d94
AS
117642009-06-18 Andreas Schwab <aschwab@redhat.com>
11765
11766 * xdisp.c (redisplay_internal): Check that the frame is still
11767 live after redisplay of its windows.
11768 (redisplay_windows): Check that the window is still live.
11769
7f1faf1c
KH
117702009-06-17 Andreas Schwab <schwab@linux-m68k.org>
11771
11772 * coding.c (detect_coding_utf_16): Fix previous change.
11773
cc13543e
KH
117742009-06-16 Kenichi Handa <handa@m17n.org>
11775
11776 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
11777 UTF-16 by checking the dispersion of Eth and Oth bytes.
11778
977b85f4
AS
117792009-06-15 Andreas Schwab <schwab@linux-m68k.org>
11780
11781 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
11782
66bd43d1
KH
117832009-06-15 Kenichi Handa <handa@m17n.org>
11784
11785 * process.c (status_message): Fix previous change. Be sure to
11786 decode a localized string.
11787
cb5ca9c5
YM
117882009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11789
11790 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
11791 add comment explaining why.
11792
ec7709ba 117932009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 11794
ec7709ba 11795 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 11796
4b7f335c
AR
117972009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
11798
11799 * nsfont.m (ns_attribute_value): Remove.
11800 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
11801 (ns_has_attribute): Shrink the normal range.
11802 (ns_findfonts): Don't worry about requested spec in determining
11803 need for synthItal.
e41820ee 11804 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 11805
73b26103
SZ
118062009-06-14 Seiji Zenitani <zenitani@mac.com>
11807
11808 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
11809
5753e4da
KH
118102009-06-11 Kenichi Handa <handa@m17n.org>
11811
11812 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
11813 overhang for the static composition case.
11814
3561b671
KH
118152009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11816
5753e4da
KH
11817 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
11818 overhang for the automatic composition case.
11819
3561b671
KH
11820 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
11821 composition case.
11822
852bbd41
CY
118232009-06-10 Chong Yidong <cyd@stupidchicken.com>
11824
11825 * xdisp.c (get_next_display_element): When handling wrap-prefix
11826 and line-prefix, treat \n as a control character (bug#3502).
11827
9903d1e6
KH
118282009-06-10 Kenichi Handa <handa@m17n.org>
11829
11830 * font.c (font_parse_family_registry): Fix for one-char foundry.
11831 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
11832
0bcbaaaa
CY
118332009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
11834
11835 * process.c (status_message): Fix handling of multibyte signal
11836 string (Bug#3499).
11837
40aa3f13
JM
118382009-06-09 Jim Meyering <meyering@redhat.com>
11839
1f80c7e2
CY
11840 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
11841 color name is missing.
40aa3f13 11842
72d51285
KH
118432009-06-09 Kenichi Handa <handa@m17n.org>
11844
11845 * charset.c (Fmap_charset_chars): In docstring, state clearly that
11846 FROM-CODE and TO-CODE are codepoints of CHARSET.
11847
c1d04d84
AR
118482009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
11849
11850 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
11851
118522009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
11853
11854 Changes to support :script/:lang/:otf in NS font driver.
11855 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
11856 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
11857 indicate not part of font driver interface, and change callers.
11858 (ns_get_family): Remove pointless null check.
11859 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
11860 ns_spec_to_descriptor, ns_descriptor_to_entity.
11861 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
11862 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
11863 (ns_spec_to_descriptor, ns_descriptor_to_entity)
11864 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
11865 (ns_get_req_script, ns_accumulate_script_ranges)
11866 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
11867 New functions.
11868 (nsfont_list, nsfont_match): Use ns_findfonts.
11869 (nsfont_open): Use font descriptor instead of traits.
11870 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
11871 (dump_glyphstring): Rename to ns_dump_glyphstring.
11872
c7eb9816
AR
11873 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
11874
c1d04d84
AR
11875 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
11876
11877 * fontset.c (fontset_from_font): Remove NS-specific code.
11878
ec7709ba 118792009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
11880
11881 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
11882 nonactive windows.
11883
31fd7c5c 118842009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 11885
1ac9108a 11886 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 11887
68852c13 118882009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
11889
11890 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
11891
6756cd1d
CY
118922009-06-07 Chong Yidong <cyd@stupidchicken.com>
11893
11894 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
11895 account for the overflowing of newlines into the last glyph on the
11896 display line (Bug#3482).
11897
28bf482a
DR
118982009-06-05 David Reitter <david.reitter@gmail.com>
11899
ec7709ba
JB
11900 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
11901 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
11902 Fns_selection_exists_p, Fns_selection_owner_p.
11903
fdb55376
JR
119042009-06-03 Jason Rumney <jasonr@gnu.org>
11905
11906 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
11907 available. (Bug#3379)
11908
05129fbe
KH
119092009-05-29 Kenichi Handa <handa@m17n.org>
11910
1ac9108a
SM
11911 * coding.c (get_translation_table):
11912 Check Venable_character_translation.
05129fbe 11913
ec7709ba 119142009-05-26 David Reitter <david.reitter@gmail.com>
15891144 11915
ec7709ba
JB
11916 * nsterm.m (ns_raise_frame): Only raise frame if visible.
11917 (x_make_frame_visible): Move frame to front rather than calling
15891144 11918 ns_raise_frame().
ec7709ba 11919 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 11920 isn't key window.
ec7709ba 11921 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
11922 drawRect may be called by NSView even if the frame is hidden.
11923
ec7709ba
JB
11924 * nsfns.m (Fx_create_frame): Follow other ports in
11925 determining visibility; default to t. Ensure async_visible is set.
15891144 11926
21f73755
EZ
119272009-05-23 Eli Zaretskii <eliz@gnu.org>
11928
11929 * dired.c (Ffile_attributes): Doc fix.
11930
34001e41
CY
119312009-05-22 Chong Yidong <cyd@stupidchicken.com>
11932
11933 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
11934
46306a17
SM
119352009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
11936
11937 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
11938 and xfont_scratch_props.
11939 (syms_of_xfont): Do it here instead.
11940 (xfont_find_ccl_program): Delete, unused.
11941 (xfont_open): Delete unused var `i'.
11942
ef6e0694
KH
119432009-05-21 Kenichi Handa <handa@m17n.org>
11944
11945 * fontset.c (Qlatin): Don't make it static.
11946
46306a17
SM
11947 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
11948 New functions.
ef6e0694
KH
11949 (xfont_scripts_cache, xfont_scratch_props): New variables.
11950 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
11951 (xfont_list_pattern): Argument changed. Callers changed.
11952 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
11953 (xfont_list): Don't reject a font spec with :script property.
11954 (xfont_has_char): Fix setting of encoding.
11955 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
11956 xfont_scratch_props.
11957
119582009-05-19 Kenichi Handa <handa@m17n.org>
11959
46306a17 11960 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
11961 Callers changed.
11962
119632009-05-18 Kenichi Handa <handa@m17n.org>
11964
11965 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
11966
ac71ced7
SM
119672009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
11968
11969 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
11970 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
11971
1c6d1051
YM
119722009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11973
11974 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
11975 (x_delete_terminal): Dissociate resource database from display and
11976 then call XrmDestroyDatabase before closing display.
11977
9b9b779c
AR
119782009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
11979
11980 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
11981 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
11982 whether selected frame is viable before raising it (based on patch
11983 by David Reitter), and improve commentary.
11984 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 11985
cccd42d5
KH
119862009-05-15 Kenichi Handa <handa@m17n.org>
11987
11988 * font.c (Ffont_spec): Check arguments.
11989
337fbd17
CY
119902009-05-14 Chong Yidong <cyd@stupidchicken.com>
11991
11992 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
11993 weight when testing attributes (Bug#3282).
11994
47a6002f
JD
119952009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11996
11997 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
11998 what we expect to get in the next ConfigureNotify event.
11999
9cb363db
YM
12000 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
12001 before Xft one (Bug#1696).
12002
b9126609
CY
120032009-05-07 David Reitter <david.reitter@gmail.com>
12004
12005 * nsfns.m (Fx_display_planes): Compute bitplanes using
12006 NSBitsPerPixelFromDepth (Bug#3207).
12007
27a69fd9
CY
120082009-05-10 Chong Yidong <cyd@stupidchicken.com>
12009
12010 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
12011
00f37552
TTN
120122009-05-10 Ulrich Mueller <ulm@gentoo.org>
12013
12014 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
12015
2d82a920
DR
120162009-05-07 David Reitter <david.reitter@gmail.com>
12017
ec7709ba
JB
12018 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
12019 Respect mouse face background.
2d82a920 12020
46b0d52d
DR
120212009-05-07 David Reitter <david.reitter@gmail.com>
12022
ec7709ba
JB
12023 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
12024 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
12025 in ns_update_begin and ns_update_end.
12026
ce1b23bb
SM
120272009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
12028
5996e1b7
SM
12029 * nsfns.m (ns_get_screen): Rewrite.
12030 Don't presume selected-frame is of type `ns'.
12031
ba98e3a0
SM
12032 * font.c (font_update_drivers): Sanity fallback to avoid disabling
12033 all drivers.
12034
ce1b23bb
SM
12035 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
12036
bcda200f
YM
120372009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12038
12039 * keyboard.h (add_user_signal): Fix typo in extern.
12040
12041 * lisp.h (add_user_signal): Remove extern.
12042
12043 * unexelf.c (unexec): Consider a section to precede the .bss section
12044 if its addresses overlap that of .bss.
12045 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
12046 instead of dumping process.
12047
864660a2
SM
120482009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
12049
12050 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
12051
50da4e56
SM
120522009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
12053
12054 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
12055
51520a1a
DN
120562009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
12057
12058 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
12059 any statements.
12060
409ea3a1
AS
120612009-05-02 Andreas Schwab <schwab@linux-m68k.org>
12062
59c4c60f
AS
12063 * process.c (read_process_output): Make sure the current buffer is
12064 always restored.
12065
409ea3a1
AS
12066 * coding.c (record_conversion_result): Don't modify
12067 Vlast_code_conversion_error for successful result.
12068 (alloc_destination): Don't clobber conversion result. (Bug#1650)
12069
56f00ed2
KH
120702009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
12071
12072 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 12073 (load_charset_map): Remove unnecessary code.
56f00ed2 12074
4491c9d2
DR
120752009-04-30 David Reitter <david.reitter@gmail.com>
12076
35f5b128 12077 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
12078 through f24.
12079
6970f632
CY
120802009-04-30 Chong Yidong <cyd@stupidchicken.com>
12081
12082 * xfaces.c (face_at_buffer_position): New arg base_face_id.
12083
12084 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
12085 face_at_buffer_position.
12086 (face_before_or_after_it_pos, get_next_display_element)
12087 (note_mouse_highlight): Update face_at_buffer_position call.
12088
12089 * term.c (term_mouse_highlight):
12090 * msdos.c (IT_note_mouse_highlight):
12091 * fontset.c (Finternal_char_font):
35f5b128 12092 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
12093
12094 * dispextern.h (face_at_buffer_position): Update prototype.
12095
0c616f63
KH
120962009-04-30 Kenichi Handa <handa@m17n.org>
12097
35f5b128 12098 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 12099
ad3aaf33
AS
121002009-04-29 Andreas Schwab <schwab@linux-m68k.org>
12101
12102 * callproc.c (Fcall_process): Fix GC protection. Make sure
12103 current buffer is always restored.
12104
c3c963a0
YM
121052009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12106
12107 * atimer.c (init_atimer): Also clear stopped_atimers.
12108
12109 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
12110
7e3386cb
YM
12111 * process.c (create_process): Clean up merger residues of
12112 2008-07-17 change.
12113
91f68422
CY
121142009-04-29 Ulrich Mueller <ulm@gentoo.org>
12115
12116 * lread.c (Vread_circle): New variable.
12117 (read1): Disable recursive read if Vread_circle is nil.
12118
24b34550
KH
121192009-04-29 Kenichi Handa <handa@m17n.org>
12120
12121 * fontset.h (set_default_ascii_font): Delete extern.
12122
12123 * fontset.c (set_default_ascii_font): Delete this unused function.
12124
12125 * frame.c (x_set_font): When ARG is a font-object, check if the
12126 font-object matches with the ASCII font-spec of the frame's
9c358bda 12127 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 12128
77bf07e1
AS
121292009-04-28 Andreas Schwab <schwab@linux-m68k.org>
12130
12131 * fns.c (Flocale_info): Protect vector from GC during decoding.
12132
12133 * process.c (Fstart_process): Protect argv strings from GC during
12134 encoding.
12135
2c55aacf
AS
121362009-04-27 Andreas Schwab <schwab@linux-m68k.org>
12137
12138 * sysdep.c: Include <ctype.h>.
12139
b892d3c9
DR
121402009-04-27 David Reitter <david.reitter@gmail.com>
12141
35f5b128 12142 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
12143 Remove commented-out code.
12144
9d0644c4
JB
121452009-04-26 Johan Bockgård <bojohan@gnu.org>
12146
12147 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
12148
b7053016
JR
121492009-04-25 Jason Rumney <jasonr@gnu.org>
12150
12151 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
12152
4e8231f3
YM
121532009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12154
12155 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
12156 Swap bytes in short integer if fringe bitmap width > 8.
12157
493dcf2c
KH
121582009-04-23 Kenichi Handa <handa@m17n.org>
12159
12160 * xfaces.c (Fx_list_fonts): If a font size is specified in
12161 PATTERN, set it in returned scalable fonts.
12162
401e9e57
CY
121632009-04-22 Chong Yidong <cyd@stupidchicken.com>
12164
708e05dc
CY
12165 * keyboard.c (Fset_input_meta_mode): Doc fix.
12166
12167 * dispnew.c (Fsend_string_to_terminal): Doc fix.
12168
1ac9108a 12169 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
12170
12171 * coding.c (Fterminal_coding_system): Doc fix.
12172
12173 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
12174 (Fx_display_pixel_height, Fx_display_planes)
12175 (Fx_display_color_cells, Fx_server_max_request_size)
12176 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
12177 (Fx_display_mm_height, Fx_display_mm_width)
12178 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
12179 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
12180 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
12181 (check_x_display_info): Handle terminal objects instead of
12182 terminal ids.
12183
401e9e57
CY
12184 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
12185 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
12186 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
12187 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 12188
df80c7f0
KH
121892009-04-21 Kenichi Handa <handa@m17n.org>
12190
5a8f12af 12191 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 12192 (font_score): Check AVGWIDTH too.
908567ef 12193
df80c7f0
KH
12194 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
12195 worst case.
1ac9108a
SM
12196 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
12197 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 12198
705af33f
JR
121992009-04-19 Jason Rumney <jasonr@gnu.org>
12200
12201 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 12202 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
12203
12204 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
12205 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
12206 get_phys_cursor_geometry.
12207
b71ac3dd 12208 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
12209 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
12210 using get_phys_cursor_geometry.
12211
12212 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
12213 correctly calculated.
12214
dc2933eb
JD
122152009-04-19 Jan Djärv <jan.h.d@swipnet.se>
12216
1ac9108a
SM
12217 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
12218 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
12219 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
12220 is deprecated.
12221
973e7849
AS
122222009-04-18 Andreas Schwab <schwab@linux-m68k.org>
12223
12224 * font.c (font_put_frame_data): Use xfree instead of free.
12225
314d66f4
JB
122262009-04-17 Juanma Barranquero <lekktu@gmail.com>
12227
12228 * w32font.c (Qja, Qko): Remove declarations.
12229 (syms_of_w32font): Don't DEFSYM them.
12230
cf702558
CY
122312009-04-17 Chong Yidong <cyd@stupidchicken.com>
12232
12233 * font.c (Qja, Qko): Move definitions here from ftfont.c.
12234
12235 * font.h (Qja, Qko): Extern them.
12236
12237 * ftfont.c (Qja, Qko): Remove declarations.
12238
12239 * xfont.c (Qja, Qko): Remove declarations.
12240
b50504f5
KH
122412009-04-17 Kenichi Handa <handa@m17n.org>
12242
bde25748
KH
12243 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
12244 string from a vector to handle Latin-1 characters correctly.
12245
b50504f5
KH
12246 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
12247 entity even if the cache hits.
12248
f4646fff
AS
122492009-04-16 Andreas Schwab <schwab@linux-m68k.org>
12250
12251 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 12252 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 12253
e7deaab0
AS
12254 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
12255 * lisp.h: Adjust prototypes.
12256
0a0e7d49
CY
122572009-04-16 Chong Yidong <cyd@stupidchicken.com>
12258
12259 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
12260 change (Bug#3003).
12261
3c908a57
KH
122622009-04-16 Kenichi Handa <handa@m17n.org>
12263
1ac9108a 12264 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
12265
12266 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
12267 adstyle.
12268
12269 * ftfont.c (Qja, Qko): Don't make them static.
12270 (enum ftfont_cache_for): New enum.
12271 (fc_charset_table): Undo the previous change.
12272 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
12273 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
12274 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
12275 non-scarable font, try to get AVERAGE_WIDTH.
12276 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
12277 Change ft_face_cache from a list of a hash-table. Don't check
12278 `ja' and `ko' adstyle here.
12279 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
12280 FTFONT_CACHE_FOR_CHARET.
12281 (ftfont_get_charset): Undo the previous change.
1ac9108a 12282 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
12283 (ftfont_close): Likewise.
12284 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
12285
12286 * font.c (font_sort_entites): Change the meaning of the arg
12287 BEST-ONLY. Don't optimize for VEC of lenght 1.
12288 (font_select_entity): Just return the value of font_sort_entites.
12289
12290 * xfaces.c (merge_face_vectors): Reflect font properties in
12291 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
12292 font_clear_prop if a face attribute doesn't change.
12293
3c908a57
KH
12294 * charset.h (charset_ksc5601): Extern it.
12295
12296 * charset.c (charset_ksc5601): New variable.
12297 (Fdefine_charset_internal): Set charset_ksc5601.
12298 (init_charset_once): Initialize charset_ksc5601 to -1.
12299
d65859c3
DN
123002009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
12301
12302 * fileio.c (history_delete_duplicates): Remove unused declaration.
12303
12304 * callint.c (history_delete_duplicates): New declaration.
12305 (Fcall_interactively): Remove command history duplicates when
12306 history_delete_duplicates is true.
12307
3ba010e5
EZ
123082009-04-14 Eli Zaretskii <eliz@gnu.org>
12309
12310 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
12311
06f19b91
KH
123122009-04-14 Kenichi Handa <handa@m17n.org>
12313
12314 * font.c (Ffont_info): Fix docstring. Fix the second element of
12315 the returned value (bug#2949).
12316
2cce8bfc
CY
123172009-04-14 Chong Yidong <cyd@stupidchicken.com>
12318
12319 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
12320
d156542d
KH
123212009-04-14 Kenichi Handa <handa@m17n.org>
12322
12323 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
12324 encoding charset is ascii_compatible.
12325
12326 * charset.c (Fdefine_charset_internal): Make charset
12327 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
12328 code_offset is 0, and covers all ASCII characters.
12329
86fa089e
SM
123302009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
12331
12332 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
12333 (ns_string_to_pasteboard_internal):
12334 * nsmenu.m (process_dialog):
12335 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
12336 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
12337 * lisp.h (Fx_load_color_file): Declare.
12338
a8a3728b
KH
123392009-04-13 Kenichi Handa <handa@m17n.org>
12340
1ac9108a 12341 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
12342 (font_select_entity): Suppress the code to optimize for the same
12343 kind of fonts.
12344 (font_load_for_lface): Get a font that supports at least ASCII
12345 characters.
12346
12347 * ftfont.c (Qja, Qko): New variables.
12348 (fc_charset_table): Delete uniquifier data for iso8859-1.
12349 (ftfont_get_latin1_charset): New function.
12350 (get_adstyle_property): New function.
12351 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
12352 bitmap fonts.
12353 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
12354 Delete iso-8859-1 range from the charset of fonts whose adstyle is
12355 `ko' or `ja'.
12356 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 12357 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
12358 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
12359 property.
12360 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
12361 (syms_of_ftfont): DEFSYM Qja and Qko.
12362
483670b5
KH
123632009-04-09 Kenichi Handa <handa@m17n.org>
12364
12b55765
KH
12365 * charset.c (map_charset_chars): For a charset of `superset'
12366 method, fix calculation of code range.
12367
483670b5
KH
12368 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
12369 from the list of extra properties.
12370 (font_clear_prop): Be sure to delete `:name' font property.
12371
57d3b93b
KH
123722009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12373
b4b2c2ca
YM
12374 * dispnew.c (redraw_overlapping_rows): Fix detection of
12375 overlapping for topmost and bottommost rows.
12376
1ac9108a 12377 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 12378
472c3609
JR
123792009-04-06 Jason Rumney <jasonr@gnu.org>
12380
12381 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
12382
ab193662
KH
123832009-04-06 Kenichi Handa <handa@m17n.org>
12384
12385 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
12386
12387 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
12388
0c26f026
KH
123892009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12390
12391 * ftfont.c (ftfont_open): Fix checking of the return value of
12392 FT_Load_Char. Fix setting font->underline_thickness.
12393
e173bbce
CY
123942009-04-04 Chong Yidong <cyd@stupidchicken.com>
12395
12396 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
12397 (Fterminal_parameters, Fterminal_parameter)
12398 (Fset_terminal_parameter): In doc string, refer to terminal
12399 objects rather than terminal ids.
12400
693a2698
EZ
124012009-04-04 Eli Zaretskii <eliz@gnu.org>
12402
12403 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
12404 ret_lim_data. (Bug#2867)
12405
d5221487
CY
124062009-04-03 Chong Yidong <cyd@stupidchicken.com>
12407
12408 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
12409 so they don't get wider than the window, matching 2006-01-23
12410 change to the partner function in xdisp.c (Bug#2800).
12411
223509a3
KH
124122009-04-03 Kenichi Handa <handa@m17n.org>
12413
12414 * print.c (print_object): Make each lowest sub_char_table start a
12415 new line (Bug#2866).
12416
74fcd0b1
KH
124172009-04-02 Kenichi Handa <handa@m17n.org>
12418
12419 * fontset.c (fontset_font): Record no-font when a fontset
12420 explicitly tells not to try another font-specs.
12421
c542407d
SM
124222009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
12423
12424 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
12425
e3869731
KH
124262009-03-30 Kenichi Handa <handa@m17n.org>
12427
d8d2f142
KH
12428 * fontset.c (fontset_from_font): Specify only registry in a
12429 font-spec for all characters supported by that registry.
12430
e3869731
KH
12431 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
12432 even if HAVE_M17N_FLT is not defined.
12433
5da5f805
CY
124342009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
12435
12436 * ftfont.c: Conditionalize prototyping and use of
12437 ftfont_variation_glyphs.
12438
ab226c50
SM
124392009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
12440
9628fed7
SM
12441 * frame.c (delete_frame): Work around compiler bug.
12442
12443 * editfns.c (general_insert_function): Adjust to insdel.c changes.
12444 * insdel.c (prepare_to_modify_buffer, signal_before_change):
12445 Some more EMACS_INT.
12446 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
12447
12448 * xdisp.c (dump_glyph): Fix typo.
12449
ae19ba7c
SM
12450 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
12451 (adjust_markers_gap_motion, adjust_markers_for_delete)
12452 (adjust_markers_for_insert, adjust_point)
12453 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
12454 (make_gap, copy_text, count_size_as_multibyte, insert)
12455 (insert_and_inherit, insert_before_markers)
12456 (insert_before_markers_and_inherit, insert_1)
12457 (count_combining_before, count_combining_after, insert_1_both)
12458 (insert_from_string, insert_from_string_before_markers)
12459 (insert_from_string_1, insert_from_gap, insert_from_buffer)
12460 (insert_from_buffer_1, adjust_after_replace)
12461 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
12462 (replace_range_2, del_range, del_range_1, del_range_byte)
12463 (del_range_both, del_range_2, modify_region)
12464 (prepare_to_modify_buffer, signal_before_change)
12465 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
12466 for buffer positions and sizes.
12467 * lisp.h: Adjust prototypes accordingly.
12468
12469 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
12470 (non_regular_inserted, non_regular_nbytes, read_non_regular)
12471 (Finsert_file_contents): Use EMACS_INT for buffer positions.
12472
ab226c50
SM
12473 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
12474
46dfb8fb
JD
124752009-03-27 Jan Djärv <jan.h.d@swipnet.se>
12476
12477 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
12478 lines and columns so we keep the same pixel height and width.
12479
12480 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
12481 the property _NET_WM_STATE has changed.
46dfb8fb
JD
12482 (x_handle_net_wm_state): New function to update frame parameter
12483 fullscreen.
12484 (x_term_init): Initialize atoms for _NET_WM_STATE.
12485
12486 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
12487
d347e494
SM
124882009-03-27 Kevin Ryde <user42@zip.com.au>
12489
12490 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
12491 Gpm_GetEvent as an error that justifies closing the filedescriptor.
12492 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
12493 (Fgpm_mouse_stop): Pass that new parameter.
12494 * termhooks.h (close_gpm): Adjust prototype.
12495
84db11d6
SM
124962009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
12497
c95a5008
SM
12498 * lisp.h (Fx_focus_frame): Declare.
12499
84db11d6
SM
12500 * callint.c (Fcall_interactively): For '^' just delegate the work to
12501 handle-shift-selection.
12502 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
12503
0a1958d6
CY
125042009-03-24 Chong Yidong <cyd@stupidchicken.com>
12505
0bfdff23
CY
12506 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
12507
0a1958d6
CY
12508 * data.c (Qinteractive_form): New variable.
12509 (Finteractive_form): Use it.
12510
12511 * eval.c (Fcommandp): Use Qinteractive_form.
12512
58aec0d6
JR
125132009-03-24 Jason Rumney <jasonr@gnu.org>
12514
12515 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
12516 Calculate total size precisely. Decode environment variables
12517 before substituting. (Bug#38)
12518
553dd618
KH
125192009-03-24 Kenichi Handa <handa@m17n.org>
12520
12521 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 12522 encoding (Bug#2722).
553dd618 12523
c39ea606
JD
125242009-03-23 Jan Djärv <jan.h.d@swipnet.se>
12525
12526 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
12527 that gdpy is set.
12528
bc9b2b5e
AM
125292009-03-22 Alan Mackenzie <acm@muc.de>
12530
12531 * callint.c (Finteractive): Clarify the doc string - even
12532 promptless elements need \n separators.
12533
9f995a76
JR
125342009-03-22 Jason Rumney <jasonr@gnu.org>
12535
12536 * w32term.c (syms_of_w32term): Doc fix for
12537 x-use-underline-position-properties.
12538
22749e9a
EZ
125392009-03-21 Eli Zaretskii <eliz@gnu.org>
12540
12541 * w32.c (getpwuid): Change argument type to unsigned.
12542 (struct w32_id): Change type of `rid' member to unsigned.
12543 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
12544 argument ID to unsigned. All callers changed.
12545 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
12546
e00553bf
EZ
125472009-03-20 Eli Zaretskii <eliz@gnu.org>
12548
12549 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
12550 negative, produce a float value.
12551
12552 * dired.c (make_uid, make_gid): New functions.
12553 (Ffile_attributes): Use them to avoid negative UID and GID.
12554
f761d6b6
JB
125552009-03-20 Juanma Barranquero <lekktu@gmail.com>
12556
12557 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
12558 (syms_of_keyboard) <command-hook-internal, input-method-function>:
12559 Fix typos in docstrings.
12560
d507f8d7
KH
125612009-03-19 Kenichi Handa <handa@m17n.org>
12562
12563 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
12564 changed, use font_load_for_lface to get a new font object.
12565 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
12566
12567 * frame.c (x_set_font): Handle the case that ARG is a cons.
12568
c68845e0
GM
125692009-03-19 Glenn Morris <rgm@gnu.org>
12570
12571 * fileio.c (Fsubstitute_in_file_name): Doc fix.
12572
bfa49dd1
CY
125732009-03-19 Chong Yidong <cyd@stupidchicken.com>
12574
12575 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
12576
8458d4c1
KH
125772009-03-19 Kenichi Handa <handa@m17n.org>
12578
12579 * charset.c (load_charset_map_from_file): When a mapfile can't be
12580 loaded, signal an error.
12581
78e7d1fe
EZ
125822009-03-18 Eli Zaretskii <eliz@gnu.org>
12583
12584 * dired.c (Ffile_attributes): Make sure UID and GID are always
12585 positive, even if the value is too large for a positive EMACS_INT.
12586 Doc fix.
12587
12588 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
12589
5da9fdfa
YM
125902009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12591
12592 * xmenu.c (xdialog_show): Move Fredisplay call ...
12593 (Fx_popup_dialog): ... here.
12594
7519c40d
SM
125952009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
12596
12597 * dired.c (file_name_completion): Disable the first optimization just
12598 installed, since it is not implemented correctly.
12599
2cd298e2
SM
126002009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
12601
12602 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 12603 only if the entry can affect bestmatch.
2cd298e2
SM
12604 Stop the search early, as Ftry_completion already does.
12605
48d37adf
CY
126062009-03-17 Chong Yidong <cyd@stupidchicken.com>
12607
e10c9c93 12608 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 12609
9286b16a
CY
126102009-03-15 Chong Yidong <cyd@stupidchicken.com>
12611
12612 * keyboard.c (parse_menu_item): Don't display remappings as menu
12613 equivalent bindings (Bug#788).
12614
f7b146dc
JR
126152009-03-15 Jason Rumney <jasonr@gnu.org>
12616
12617 * w32term.h (WM_EMACS_PAINT): New message.
12618 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
12619 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
12620 before passing to lisp thread. (Bug#950)
12621
f761d6b6 126222009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 12623
d93f9575
CY
12624 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
12625 variable as it was never reset.
12626 (ns_term_init): Remove initialization of Lisp-settable defaults
12627 and ns_expand_space.
12628 (-setPanelFromDefaultValues): Remove ns_expand_space.
12629 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
12630 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
12631 i.e. no additional spacing, similar to Carbon port.
12632
d93f9575
CY
12633 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
12634 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 12635
305018ec
JD
126362009-03-14 Jan Djärv <jan.h.d@swipnet.se>
12637
12638 * sound.c (alsa_configure): Remove call to deprecated
12639 snd_pcm_sw_params_set_xfer_align.
12640
f761d6b6 126412009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
12642
12643 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
12644 after clicking in a detached tool bar.
12645 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
12646
46e722a9
SM
126472009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
12648
348db3dd
SM
12649 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
12650 int/Lisp_Object mixup).
46e722a9 12651
a3d16f39
KH
126522009-03-13 Kenichi Handa <handa@m17n.org>
12653
12654 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 12655 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
12656 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
12657 (set_fontset_font): Change ARG to a vector. Handle range_list in
12658 ARG correctly.
12659 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 12660 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
12661 the above change.
12662 (fontset_from_font): Fix previous change.
fe24f56a 12663 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
12664 entry. If FONTSET is the default fontset, don't set the extra
12665 slot of the returning char-table.
12666
b066e6b6
JB
126672009-03-12 Juanma Barranquero <lekktu@gmail.com>
12668
12669 * nsfns.m (Fx_close_connection): Doc fix.
12670 (Fns_do_applescript): Reflow docstring.
12671 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
12672 (Fx_display_pixel_width, Fx_display_pixel_height)
12673 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
12674 Fix typos in docstrings.
12675 (Fns_set_alpha): Fix typos in error messages.
12676
d472514e 126772009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 12678
d472514e 12679 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
12680 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
12681 were used for such events.
12682
d472514e
JB
12683 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
12684 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 12685
d472514e 12686 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
12687 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
12688
fb930676
KH
126892009-03-11 Kenichi Handa <handa@m17n.org>
12690
ff85581a
KH
12691 * font.h (font_open_by_spec): Extern it.
12692
c50b7e98
KH
12693 * font.c (font_open_by_spec): New function.
12694 (font_open_by_name): Use font_open_by_spec.
12695
fb930676
KH
12696 * frame.c (x_set_font): When ARG is a font-object, don't alter the
12697 fontset of the frame.
12698
12699 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
12700 modify the default font of frames that use this fontset.
12701 (num_auto_fontsets): New variable.
12702 (fontset_from_font): Use num_auto_fontsets to decide a fontset
12703 name. Be sure to set FONTSET_ASCII to the correct font name.
12704 (update_auto_fontset_alist): New function.
12705
df4e8455
JB
127062009-03-11 Juanma Barranquero <lekktu@gmail.com>
12707
12708 * makefile.w32-in: Update dependencies.
12709
0a375797
AR
127102009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
12711
12712 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
12713
61313fa3
SM
127142009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
12715
12716 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
12717
b55103fb
CY
127182009-03-10 Chong Yidong <cyd@stupidchicken.com>
12719
12720 * lread.c (Feval_buffer): Doc fix.
12721
dde2559c
KH
127222009-03-09 Kenichi Handa <handa@m17n.org>
12723
12724 * charset.c (Qfile_name_handler_alist): Extern it.
12725 (load_charset_map_from_file): Temporarily bind
12726 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
12727
df4e8455 127282009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 12729
47f588bb
GM
12730 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
12731 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 12732
4ddf94bd
AR
127332009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
12734
4c9bdfc2
AR
12735 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
12736 (x_set_window_size): Change back to calculated method of setting
12737 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
12738 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
12739 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
12740
fe41ae9e
AR
12741 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
12742
4c9bdfc2
AR
12743 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
12744 accelerator in parens under GNUstep.
12745
825d0875
KH
127462009-03-06 Kenichi Handa <handa@m17n.org>
12747
12748 These changes are to detect incorrect composition sequence without
f3b3be74 12749 looking ahead the source. (Bug#2370)
825d0875
KH
12750
12751 * coding.h: Include "composite.h".
12752 (enum compisition_state): New enum.
12753 (struct compisition_status): New struct.
12754 (struct iso_2022_spec): New member cmp_status.
12755 (struct emacs_mule_spec): New struct.
12756 (struct coding_system): New members ctext_extended_segment_len and
12757 embedded_utf_8. Change the union member
12758 spec.emacs_mule_full_support to spec.emacs_mule.
12759
12760 * coding.c (CODING_ISO_CMP_STATUS): New macro.
12761 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 12762 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
12763 (ADD_COMPOSITION_DATA): New arg nbytes.
12764 (emacs_mule_char): New arg cmp_status.
12765 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
12766 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
12767 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
12768 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
12769 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
12770 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
12771 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
12772 (EMACS_MULE_COMPOSITION_END): New macro.
12773 (emacs_mule_finish_composition): New function.
12774 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
12775 (decode_coding_emacs_mule): Avoid long looking ahead while
12776 handling composition.
12777 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
12778 (ENCODE_COMPOSITION_RULE): New macro.
12779 (finish_composition): New function.
12780 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
12781 (DECODE_COMPOSITION_START): New implementation.
12782 (DECODE_COMPOSITION_END): Likewise.
12783 (STORE_COMPOSITION_RULE): New macro.
12784 (decode_coding_iso_2022): Avoid long looking ahead while handling
12785 composition, CTEXT extended segment, and embedded UTF-8.
12786 (setup_coding_system): For a coding of type iso-2022, reset
12787 CODING_ISO_EXTSEGMENT_LEN (coding) and
12788 CODING_ISO_EMBEDDED_UTF_8 (coding).
12789 (get_translation): Delete arguments last_block, from_nchars,
12790 to_nchars. Callers changed.
12791 (produce_chars): Don't modify charbuf. Adjusted for the change of
12792 get_translation.
98a326f7 12793 (produce_composition): Adjust for the new annotation sequence.
825d0875 12794 (handle_composition_annotation): Likewise.
98a326f7 12795 (consume_chars): Adjust for the change of get_translation.
825d0875 12796
ccbc4452
AR
127972009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
12798
4ddf94bd 12799 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 12800
988a7ddb
KH
128012009-03-05 Kenichi Handa <handa@m17n.org>
12802
12803 * font.c (font_select_entity): New function.
12804 (font_find_for_lface): Use font_select_entity to select a font.
12805
12806 * fontset.c (fontset_find_font): If a font found without
a8a3728b 12807 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
12808 font with C restriction.
12809
98a326f7 128102009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 12811
be1bce46 12812 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 12813
10ea2b82
JR
128142009-03-04 Jason Rumney <jasonr@gnu.org>
12815
2c93b248 12816 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 12817 characters that have already been read. (Bug#2569)
2c93b248 12818
10ea2b82
JR
12819 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
12820 Log an error message if check_image_size failed.
12821 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 12822 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 12823
71a0c011
EZ
128242009-03-02 Eli Zaretskii <eliz@gnu.org>
12825
12826 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
12827 when decoding process output.
12828
2f63bba8
RS
128292009-03-01 Richard M Stallman <rms@gnu.org>
12830
12831 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
12832
12833 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
12834
0a9564cb
EZ
128352009-02-28 Eli Zaretskii <eliz@gnu.org>
12836
12837 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
12838 (decode_coding_emacs_mule, decode_coding_iso_2022)
12839 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
12840 (decode_coding_raw_text, decode_coding_charset)
12841 (setup_coding_system, decode_eol, decode_coding, consume_chars):
12842 Honor inhibit-eol-conversion. (Bug #2186)
12843
449148b3
JR
128442009-02-28 Jason Rumney <jasonr@gnu.org>
12845
12846 * coding.c (detect_coding_charset): If not checking latin extra,
12847 fail on characters between 0x80 and 0xA0. (Bug#2354)
12848
a4aee864
EZ
128492009-02-28 Eli Zaretskii <eliz@gnu.org>
12850
12851 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 12852 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 12853
d88bee5a
GM
128542009-02-27 Glenn Morris <rgm@gnu.org>
12855
12856 * callint.c (Finteractive): Doc fix.
12857
a808f22d
KH
128582009-02-27 Kenichi Handa <handa@m17n.org>
12859
12860 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
12861
caf8d60c
CY
128622009-02-27 Chong Yidong <cyd@stupidchicken.com>
12863
12864 * font.c (font_style_to_value): Set value for unknown symbols to
12865 100 instead of 255.
b61137ea
CY
12866 (weight_table, slant_table, width_table): Treat "unspecified" as
12867 the default value.
caf8d60c 12868
1a0de25c
JB
128692009-02-26 Juanma Barranquero <lekktu@gmail.com>
12870
12871 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
12872
8fc45744
JB
128732009-02-25 Juanma Barranquero <lekktu@gmail.com>
12874
107bd7d1
JB
12875 * lread.c (Fload): Stop checking Vloads_in_progress and signal
12876 error as soon as a recursive load is detected.
8fc45744 12877
f097e223
AR
128782009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
12879
12880 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
12881 before caching.
12882
8810a12f
KH
128832009-02-24 Kenichi Handa <handa@m17n.org>
12884
12885 * fontset.c (fontset_find_font): Fix the condition for checking
12886 unavailable font.
12887
2c7d1565
GM
128882009-02-24 Glenn Morris <rgm@gnu.org>
12889
12890 * xfaces.c (Finternal_set_font_selection_order): Remove leading
12891 whitespace that confuses documentation.
12892
a20878b6
MB
128932009-02-23 Miles Bader <miles@gnu.org>
12894
12895 * process.c (Flist_system_processes, Fprocess_attributes)
12896 (syms_of_process): Rename `system-process-attributes' to
12897 `process-attributes'.
12898
b3b58c01
AS
128992009-02-22 Andreas Schwab <schwab@linux-m68k.org>
12900
1b3b981b
AS
12901 * coding.h (struct coding_system): Make safe_charsets a pointer to
12902 unsigned char.
12903 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
12904 being 255.
12905 (SAFE_CHARSET_P): Likewise.
12906 (setup_iso_safe_charsets): Properly setup safe_charsets.
12907 (Fdefine_coding_system_internal): Likewise.
12908 (setup_coding_system): Likewise. Remove unneeded casts.
12909 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
bba3e508
SM
12910 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS.
12911 Remove unneeded casts.
1b3b981b 12912
b3b58c01
AS
12913 * insdel.c (del_range_2): Don't modify gap contents when called
12914 from decode_coding_object. (Bug#1809)
12915
0b6f228c
CY
129162009-02-21 Chong Yidong <cyd@stupidchicken.com>
12917
12918 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
12919 Qfont_object.
12920 (Ftype_of): Recognize font objects.
12921
12922 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
12923
bba3e508
SM
12924 * font.c (Qfont_spec, Qfont_entity, Qfont_object):
12925 Definitions moved to data.c.
0b6f228c 12926
52f8870b
AR
129272009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
12928
12929 * nsterm.m (x_make_frame_invisible): Unset async_visible,
12930 async_iconified. Based on a patch by Christian Lynbech
12931 <christian.lynbech@tieto.com>.
12932 (EmacsView-windowDidMiniaturize:): Unset async_visible.
12933
7087d5e9
GM
129342009-02-20 Glenn Morris <rgm@gnu.org>
12935
12936 * syntax.c (Fskip_chars_forward): Fix doc typo.
12937
41d2ceef
CY
129382009-02-20 Chong Yidong <cyd@stupidchicken.com>
12939
12940 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
12941
1a3b7ca6
CY
129422009-02-19 Chong Yidong <cyd@stupidchicken.com>
12943
12944 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
12945
73cce38d
KH
129462009-02-19 Kenichi Handa <handa@m17n.org>
12947
12948 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 12949 Don't overflow coding->carryover. (Bug#2370)
73cce38d 12950
a51092ee
DN
129512009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
12952
12953 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
12954
c423ecca
KH
129552009-02-18 Kenichi Handa <handa@m17n.org>
12956
12957 * font.c (font_check_otf_features): Fix handling of `nil' element.
12958 (Ffont_spec): Describe :lang and :otf in the docstring.
12959
4c1958f4
AS
129602009-02-16 Andreas Schwab <schwab@suse.de>
12961
12962 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
12963 string.
12964
5704f39a
KH
129652009-02-16 Kenichi Handa <handa@m17n.org>
12966
12967 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 12968 (Bug#1723)
5704f39a 12969
8f0085aa
CY
129702009-02-14 Chong Yidong <cyd@stupidchicken.com>
12971
a057d86a 12972 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
12973
12974 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
12975 (handle_line_prefix): Suppress wrapping of wrap prefixes.
12976
aff01dd9
EZ
129772009-02-14 Eli Zaretskii <eliz@gnu.org>
12978
12979 * msdos.c (MAX_SCREEN_BUF): New macro.
12980 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
12981 Encode the entire run of glyphs sharing the same face, instead of
12982 doing that one glyph at a time (fixes a bug with displaying
12983 double-size characters).
12984
ba301db3
AR
129852009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
12986
12987 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
12988
12989 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
12990 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 12991 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
12992
12993 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 12994 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 12995
51d861de
SM
129962009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
12997
ac146f82 12998 * keyboard.c (adjust_point_for_property): Allow stopping between two
51d861de
SM
12999 invisible areas.
13000
7fed8996
JR
130012009-02-12 Jason Rumney <jasonr@gnu.org>
13002
631ea4fb
JR
13003 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
13004 (add_font_entity_to_list): Call check_face_name even when family
13005 is unspecified.
13006
cb4a3e42
JR
13007 * w32term.c (x_display_pixel_height, x_display_pixel_width):
13008 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 13009 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 13010
7fed8996 13011 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 13012 raster fonts. (Bug#2219)
7fed8996 13013
895416e3
KH
130142009-02-12 Kenichi Handa <handa@m17n.org>
13015
13016 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
13017 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
13018 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 13019 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
13020 (find_automatic_composition): While looking forward and backward,
13021 check static composition. Fix where to stop looking forward.
13022 (composition_adjust_point): Fix checking of static composition.
13023 (Fcomposition_get_gstring): Pay attention to
1dacf998 13024 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
13025
13026 * lisp.h (fast_looking_at): Extern it.
13027
13028 * search.c (fast_looking_at): New function.
13029
51d861de 13030 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
13031 <struct glyph>.u.cmp.to.
13032 (append_composite_glyph): Likewise.
13033
51d861de 13034 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
13035 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
13036 composition.
51d861de 13037 (append_composite_glyph): Adjust for the change of
895416e3
KH
13038 <strcut glyph>.u.cmp.to.
13039
8510724d
JB
130402009-02-11 Juanma Barranquero <lekktu@gmail.com>
13041
13042 * casetab.c (init_casetab_once):
13043 * coding.c (ALLOC_CONVERSION_WORK_AREA):
13044 * font.c (font_update_lface):
13045 * fontset.c (Fnew_fontset):
13046 * ftfont.c (ftfont_drive_otf):
13047 * xfont.c (xfont_open):
13048 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
13049
294fa707
SM
130502009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
13051
13052 * fileio.c (Fwrite_region): !NILP -> CONSP.
13053
b5bfebec
AS
130542009-02-10 Andreas Schwab <schwab@suse.de>
13055
13056 * process.c (send_process): Properly relocate pointer into data
adab88bd 13057 when using encoded data. (Bug#2272)
b5bfebec 13058
cb84a2be
KH
130592009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
13060
13061 * coding.c (detect_coding_charset): Fix previous change.
13062
89e09428
JR
130632009-02-08 Jason Rumney <jasonr@gnu.org>
13064
13065 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 13066 disappeared while hourglass was displayed. (Bug #2193)
89e09428 13067
4470a277
AS
130682009-02-07 Andreas Schwab <schwab@suse.de>
13069
13070 * unexelf.c (unexec): Fix error message.
13071
3175b12a
AR
130722009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
13073
13074 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 13075 when modal window is active. (Bug #2152)
3175b12a
AR
13076 (applicationShouldTerminate:): Remove now-unneeded while loop
13077 around NSRunAlertPanel.
13078
13079 * nsmenu.m (popupSession): New file-global variable.
13080 (pop_down_menu): End the popupSession before closing dialog.
13081 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
13082 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
13083 don't query NSApp for events (just sleep instead).
13084
8434d0b8
EZ
130852009-02-07 Eli Zaretskii <eliz@gnu.org>
13086
51d861de
SM
13087 * coding.c (syms_of_coding) <translation-table-for-input>:
13088 Modify doc string to discourage use for character code unification.
8434d0b8 13089
aa82edfd
CY
130902009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13091
13092 * atimer.c (run_timers): Update pending_atimers.
13093
2d283c7c
CY
130942009-02-06 Chong Yidong <cyd@stupidchicken.com>
13095
eb306cab
CY
13096 * image.c (svg_load_image): Fix last change.
13097
2d283c7c
CY
13098 * xfns.c (Fx_create_frame): Signal an error if no font is
13099 found (Bug#2147).
13100
4d8e170e
JB
131012009-02-05 Juanma Barranquero <lekktu@gmail.com>
13102
13103 * character.c (syms_of_character) <script-representative-chars>:
13104 Fix typo in docstring.
13105
c96169a0
AR
131062009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
13107
13108 * nsmenu.m (pop_down_menu): New function.
13109 (ns_popup_dialog): Call it on unwind.
13110 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
13111 call timer_check() (Bug#2154).
13112 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
13113 handling_signal is set.
13114 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
13115
31fd7c5c 13116 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
13117
13118 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
13119
13120 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
13121
51d861de
SM
13122 * keyboard.c (poll_for_input_1, handle_async_input):
13123 Set handling_signal under HAVE_NS.
c96169a0 13124
aacd8ba1
GM
131252009-02-04 Glenn Morris <rgm@gnu.org>
13126
13127 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
13128
4cb75c4b
KH
131292009-02-04 Kenichi Handa <handa@m17n.org>
13130
13131 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
13132
13133 * charset.c (Fchar_charset): New optional arg restriction.
13134
13135 * coding.h (coding_system_charset_list): Extern it.
13136
13137 * coding.c (coding_system_charset_list): New function.
13138
13139 * composite.c: Include coding.h and termhooks.h.
13140 (composition_gstring_p): Fix for the terminal case.
13141 (composition_gstring_width): Likewise.
13142 (fill_gstring_body): Likewise.
13143 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
13144 the frame.
13145 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
13146 is within a composition.
867d4bb3 13147 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
13148
13149 * term.c (encode_terminal_code): Fix handling of composition.
13150 (produce_composite_glyph): For static composition, get pixel_width
13151 from struct composition.
13152
826ba17e
AS
131532009-02-02 Andreas Schwab <schwab@suse.de>
13154
13155 * unexelf.c (unexec): Handle unaligned bss offset.
13156
8ad093db
AR
131572009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
13158
13159 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
13160 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 13161
8ad093db
AR
13162 * keyboard.c (handle_interrupt): Don't call
13163 quit_throw_to_read_char() under NS.
d0a76a6e 13164
8ad093db
AR
13165 * blockinput.h: Remove NS-specific code.
13166
4d18a7a2
DN
131672009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
13168
db878925
DN
13169 * dispnew.c (window_change_signal): Don't try to get the size of a
13170 suspended tty frame.
13171 * term.c (Fresume_tty): Resize if the size has changed while the
13172 tty was suspended.
13173
4d18a7a2
DN
13174 * alloc.c (mark_stack): Properly conditionalize previous change.
13175
8984df7c
JB
131762009-01-30 Juanma Barranquero <lekktu@gmail.com>
13177
13178 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
13179 * w32term.c (w32_read_socket) [SYNC_INPUT]:
13180 Remove; this code is not used on Windows.
13181
75f4f1ac
EZ
131822009-01-30 Eli Zaretskii <eliz@gnu.org>
13183
13184 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
13185 EOLs that also has stray ^M characters.
13186
07a1e794
JB
131872009-01-30 Juanma Barranquero <lekktu@gmail.com>
13188
13189 * atimer.c (run_timers, alarm_signal_handler):
13190 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
13191 * w32inevt.c (w32_console_read_socket):
13192 * w32term.c (w32_read_socket):
13193 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
13194
a8b11cc9
CY
131952009-01-30 Chong Yidong <cyd@stupidchicken.com>
13196
13197 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
13198 Initialize it as a relative filename pattern.
13199 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
13200 (Fcall_process_region): Simplify temp file creation using
13201 temporary-file-directory.
13202
c279587b
EZ
132032009-01-29 Eli Zaretskii <eliz@gnu.org>
13204
13205 * msdos.c: Rename pending_signals to msdos_pending_signals.
13206 (sig_suspender, sigprocmask): Adjust.
13207
a8fe3242
CY
132082009-01-29 Chong Yidong <cyd@stupidchicken.com>
13209
13210 * keyboard.c (pending_signals): New var.
13211 (poll_for_input, input_available_signal, init_keyboard): Set it.
13212 (process_pending_signals): New function.
13213
13214 * lisp.h (QUIT): Check pending_signals instead of
13215 interrupt_input_pending. Use process_pending_signals.
13216
51d861de 13217 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 13218
51d861de 13219 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
13220
13221 * sysdep.c (emacs_write): Use process_pending_signals.
13222
13223 * xterm.c (XTread_socket): Update pending_signals.
13224
13225 * w32term.c (w32_read_socket): Update pending_signals.
13226
13227 * w32inevt.c (w32_console_read_socket): Update pending_signals.
13228
6570a1c4
KH
132292009-01-29 Kenichi Handa <handa@m17n.org>
13230
13231 * xftfont.c (xftfont_has_char): New function.
13232 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
13233
d72a4afa
AR
132342009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
13235
13236 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
13237 under GNUstep.
13238 (ns_query_color): New declaration.
13239
13240 * nsterm.m (ns_confirm_quit): New variable.
13241 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
13242 (EmacsApp-applicationShouldTerminate:): Use it.
13243 (EmacsPrefsController): Let user set it.
13244 (ns_query_color): New function.
13245 (ns_defined_color): Use it.
13246 (ns_initialize): Drop.
13247 (ns_term_init): Add two lines from ns_initialize(), and set
13248 input_interrupt_mode to nil.
13249
13250 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 13251 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 13252
9fe78804
KH
132532009-01-28 Kenichi Handa <handa@m17n.org>
13254
13255 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
13256 (fontset_get_font_group): Remember that no font-group is specified
13257 for C.
9fe78804 13258
fa57de36
CY
132592009-01-27 Chong Yidong <cyd@stupidchicken.com>
13260
930600e9
CY
13261 * fns.c (concat): Check for string overflow (bug#1787).
13262
fa57de36
CY
13263 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
13264 Quadruple undo limits (bug#1501).
13265
7179ce7b
KH
132662009-01-27 Kenichi Handa <handa@m17n.org>
13267
13268 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
13269 directly use GT_Get_Char_index.
13270
13271 * xftfont.c (struct xftfont_info): New member `index'.
13272
13273 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 13274 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 13275
5be8fcc0
CY
132762009-01-26 Kenichi Handa <handa@m17n.org>
13277
13278 * fontset.c (fontset_find_font): Fix handling of non-cons return
13279 value of fontset_get_font_group.
13280 (fontset_font): Revert last change.
13281
19ae3e61
JR
132822009-01-26 Jason Rumney <jasonr@gnu.org>
13283
13284 * w32font.c (w32font_list_internal): Return quickly if registry is
13285 unknown. Simplify final return.
13286 (add_font_entity_to_list): Break complex logic down into more
13287 manageable chunks. Move unknown registry check to
13288 w32font_list_internal.
13289
8612b71a
AR
132902009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
13291
13292 Changes to remove Feval calls from GUI under NS.
13293
d8038940
JB
13294 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
13295 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
13296 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
13297
13298 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
13299 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
13300 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
13301 instead of NON_ASCII_KEYSTROKE_EVENT.
13302 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
13303 (EmacsApp-applicationShouldTerminate:): Query user.
13304 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
13305 instead of Feval.
13306
13307 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
13308
13309 * keyboard.c (kbd_buffer_get_event): Check for it.
13310 (keys_of_keyboard): Define lispy keys for
13311 ns-put/unput-working-text.
13312
13313 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
13314 versions.
13315 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
13316
6288ae55
CY
133172009-01-25 Chong Yidong <cyd@stupidchicken.com>
13318
13319 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 13320 setting current_buffer directly. (Bug#2044)
6288ae55 13321
289e7f8f
CY
133222009-01-24 Chong Yidong <cyd@stupidchicken.com>
13323
5ce87308 13324 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 13325 any work. (Bug#1952, bug#1990).
5ce87308 13326
64cc3cf6 13327 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 13328
b3243e6f
AR
133292009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
13330
13331 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
13332 (ns_no_defaults): New declaration.
13333 (main): Use it.
e0d2e69a 13334
d900b2af 13335 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 13336
d900b2af 13337 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 13338
d900b2af
AR
13339 * nsterm.m (ns_no_defaults): New variable.
13340 (ns_initialize): Don't read defaults when ns_no_defaults.
13341 (EmacsView-readSelectionFromPasteboard:)
13342 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 13343 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
13344 (ns_dumpglyphs_stretch): New function.
13345 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 13346 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 13347
e0d2e69a
AR
13348 * nsimage.m (setPixmapData:): Set to ignore image DPI.
13349
3ac71f5d
CY
133502009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
13351
13352 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
13353 call for Sparc64.
13354
3fe53a83
AR
133552009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
13356
13357 * nsfns.m:
13358 * nsgui.h:
13359 * nsmenu.m:
13360 * nsselect.m:
13361 * nsterm.h:
13362 * nsterm.m: Remove '23' comments that indicated code added during
13363 update from emacs-20 -> emacs-23.
13364
10f87c6f 133652009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
13366
13367 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 13368 ns_alternate_modifier. (Bug#1217)
a3b53a85 13369
c7cef62d
AR
13370 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
13371 Display all shortcuts, including those w/o super modifier.
13372
575fb8bd
AR
13373 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
13374
918b848b
CY
133752009-01-22 Chong Yidong <cyd@stupidchicken.com>
13376
13377 * fileio.c (Vwrite_region_post_annotation_function)
13378 (Vwrite_region_annotation_buffers): New vars.
13379 (build_annotations_unwind): Just reset
13380 Vwrite_region_annotation_buffers.
13381 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
13382 Call write-region-post-annotation-function.
13383 (build_annotations): Add to Vwrite_region_annotation_buffers if
13384 buffer changes.
13385
a39e2539
AR
133862009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
13387
13388 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
13389 Tiger.
51d861de
SM
13390 * nsfns.m (ns_do_applescript):
13391 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 13392
35ed44db
AR
133932009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
13394
13395 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
13396
cbe0b5bf
AR
133972009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
13398
13399 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 13400
6049d3a0
AR
13401 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
13402
13403 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
13404 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
13405 handle Ctrl-tab. (Bug#1841)
13406 (ns_get_color): Use unsigned long long for scanned hex string value.
13407 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 13408 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 13409 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 13410 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 13411 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 13412 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 13413 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 13414
d3810c21 13415 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 13416 DPI. (Bug#1316)
d3810c21
AR
13417 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
13418 values in onTiger section.
4c7077c3 13419
e301e634
CY
134202009-01-19 Chong Yidong <cyd@stupidchicken.com>
13421
7f82490b
CY
13422 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
13423 Check return value of font_spec_from_name.
64cc3cf6 13424 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
13425
13426 * font.c (font_spec_from_name): Return Qnil if font name could not
13427 be parsed.
13428 (font_parse_name): Treat a `?' character as part of an XLFD.
13429
e301e634
CY
13430 * fns.c (Fsubstring): Doc fix.
13431
1c0db158
KH
134322009-01-19 Kenichi Handa <handa@m17n.org>
13433
51d861de 13434 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
13435 (ftfont_list): Likewise.
13436
acf20901
JB
134372009-01-18 Juanma Barranquero <lekktu@gmail.com>
13438
fff4e459
JB
13439 * dbusbind.c (Fdbus_register_signal):
13440 * process.c (conv_sockaddr_to_lisp):
13441 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
13442
acf20901
JB
13443 * callproc.c (Fgetenv_internal): Doc fix.
13444
e7abcdfb
CY
134452009-01-16 Chong Yidong <cyd@stupidchicken.com>
13446
13447 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
13448 it is not even used.
13449
b60861e6
GM
134502009-01-16 Glenn Morris <rgm@gnu.org>
13451
13452 * font.c (Ffont_variation_glyphs): Silence compiler.
13453
8db52afe
JB
134542009-01-15 Juanma Barranquero <lekktu@gmail.com>
13455
13456 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
13457 Reported by David Robinow <drobinow@gmail.com>.
13458
4cddb209
KH
134592009-01-15 Kenichi Handa <handa@m17n.org>
13460
51d861de 13461 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 13462
f247f67b
JR
134632009-01-14 Jason Rumney <jasonr@gnu.org>
13464
13465 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 13466 never a fontset. (Bug#1562)
f247f67b 13467
f56a4450
KH
134682009-01-14 Kenichi Handa <handa@m17n.org>
13469
13470 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 13471 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 13472
4e99855e
CY
134732009-01-13 Chong Yidong <cyd@stupidchicken.com>
13474
13475 * font.c (font_clear_prop): If clearing the family, clear the font
13476 width index too.
13477
fff4e459 13478 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 13479
24f01470
JB
134802009-01-12 Juanma Barranquero <lekktu@gmail.com>
13481
13482 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
13483 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
13484 functions, use sizeof.
13485
a41240a3
MR
134862009-01-12 Martin Rudalics <rudalics@gmx.at>
13487
13488 * keyboard.c (read_char): Fix case where last_nonmenu_event
13489 returned a bad value with submenus. (Bug#447)
13490
944636b8
CY
134912009-01-12 Chong Yidong <cyd@stupidchicken.com>
13492
13493 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
13494 family, clear the font width index too.
13495
0dad7c6f
JR
134962009-01-11 Jason Rumney <jasonr@gnu.org>
13497
13498 * keyboard.c (cmd_error_internal): Exit when errors occur before
13499 frame creation and not in daemon mode. (Bug#1836)
13500
7c2363af
CY
135012009-01-10 Chong Yidong <cyd@stupidchicken.com>
13502
13503 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
13504 of a display vector, backtrack.
13505 (try_window_reusing_current_matrix): Check glyph type before
13506 referencing charpos member.
13507
97b1b294
EZ
135082009-01-10 Eli Zaretskii <eliz@gnu.org>
13509
13510 Fix Bug #876:
13511
13512 * coding.c (inhibit_null_byte_detection): New variable.
13513 (detect_coding, detect_coding_system): Don't pay attention to null
13514 bytes if inhibit_null_byte_detection is non-zero.
51d861de 13515 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
13516 <inhibit-iso-escape-detection>: Doc fix.
13517
4624b6e3
JR
135182009-01-09 Jason Rumney <jasonr@gnu.org>
13519
13520 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 13521 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
13522 Only report Unicode Plane 2 fonts as unicode-sip.
13523
323b840c
CY
135242009-01-09 Chong Yidong <cyd@stupidchicken.com>
13525
51d861de
SM
13526 * xfaces.c (Fx_font_family_list): Delete function.
13527 Move compatibility version to faces.el.
323b840c 13528
51d861de 13529 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 13530
eba7400d
MR
135312009-01-09 Martin Rudalics <rudalics@gmx.at>
13532
13533 * frame.c (x_set_frame_parameters): Remember requested value for
13534 fullscreen before it's reset by the parameter handler.
13535
4b09796d
GM
135362009-01-09 Glenn Morris <rgm@gnu.org>
13537
13538 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 13539 (last_command_event): ... and update all users.
4b09796d
GM
13540 (last_input_char): For clarity, rename to...
13541 (last_input_event): ... and update all users.
13542 (last-command-char, last-input-char): Move to subr.el as aliases.
13543 * cmds.c, commands.h: Update for last_command_char rename.
13544
14ccea62
CY
135452009-01-08 Chong Yidong <cyd@stupidchicken.com>
13546
51d861de 13547 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 13548
5f004711
JR
135492009-01-08 Jason Rumney <jasonr@gnu.org>
13550
13551 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
13552 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
13553 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
13554 Don't declare.
fff4e459 13555 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
13556 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
13557
b71f6f73
KH
135582009-01-07 Kenichi Handa <handa@m17n.org>
13559
50b06221 13560 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 13561 remember the coding system used for decoding in
50b06221
KH
13562 coding_system (Bug#1039).
13563
b71f6f73 13564 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 13565 breaking the loop. (Bug#870)
b71f6f73
KH
13566 (decode_coding_utf_16, decode_coding_emacs_mule)
13567 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
13568 (decode_coding_charset): Likewise.
13569
56f668f7
MR
135702009-01-05 Martin Rudalics <rudalics@gmx.at>
13571
13572 * frame.c (x_set_frame_parameters): Make sure height (width) get
13573 applied when fullwidth (fullheight) is set. (Bug#1522)
13574
5da9424d
JB
135752009-01-04 Juanma Barranquero <lekktu@gmail.com>
13576
13577 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
13578 (utc_base): Declare as ULONGLONG, not long double.
13579 (convert_time_raw): Delete.
13580 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
13581 (initialize_utc_base): New function.
13582 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
13583 (convert_from_time_t): Use initialize_utc_base; compute result with
13584 64-bit arithmetic.
13585 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
13586
c4605e09
EZ
135872009-01-03 Eli Zaretskii <eliz@gnu.org>
13588
9acef61c 13589 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
13590 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
13591 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
13592 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
13593 [!subprocesses]: Define.
13594 (syms_of_process) [!subprocesses]: Intern and staticpro them.
13595 (Flist_system_processes, Fsystem_process_attributes)
13596 [!subprocesses]: Call list_system_processes and
13597 system_process_attributes instead of returning Qnil.
13598
9acef61c
JB
13599 * dosfns.c (system_process_attributes, list_system_processes):
13600 New functions.
c4605e09
EZ
13601
13602 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
13603
13604 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
13605 Don't use the default (no-op) implementation.
13606
8b7d0a16
JR
136072009-01-03 Jason Rumney <jasonr@gnu.org>
13608
a6d46bc1
JR
13609 * keyboard.c (parse_modifiers_uncached): Wheel events are
13610 clicks (bug#687).
13611
8b7d0a16
JR
13612 * w32term.c (x_query_colors, x_query_color): New functions.
13613
13614 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
13615 (svg_load_image): Cast returned pointers from dynamically loaded
13616 functions. Eliminate W32 specific code.
13617
bfe11752
DN
136182009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
13619
89e2438a
DN
13620 * nsfns.m (x_set_foreground_color, x_set_background_color)
13621 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
13622 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
13623 x_ prefix instead of ns_. Update references.
13624 (syms_of_nsfns): Add a FIXME comment.
13625
13626 * nsterm.m (x_set_cursor_type): New prototype.
13627 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
13628
bfe11752
DN
13629 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
13630 for Solaris instead of incorrectly providing Qutime and Qcutime.
13631
031da700
EZ
136322009-01-02 Eli Zaretskii <eliz@gnu.org>
13633
13634 * w32.c (process_times): Compute sum of utime and stime.
13635 (system_process_attributes): Add Qtime to the alist.
13636
13637 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
13638 and add them to the alist.
13639
13640 * process.c (top level) <Qtime, Qctime>: New variables.
13641 (syms_of_process): staticpro them.
13642 (Fsystem_process_attributes): Add their documentation to the doc
13643 string.
13644
13645 * process.h: Declare Qtime and Qctime.
13646
df23bf08
JR
136472009-01-02 Jason Rumney <jasonr@gnu.org>
13648
9acef61c 13649 * image.c (Qgobject): New symbol.
df23bf08
JR
13650 (syms_of_image): Initialize it.
13651 (init_svg_functions): Load some functions from gobject library.
13652
5bbdf7aa
DN
136532009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
13654
13655 * frame.c (make_terminal_frame): Remove redundant code and useless
13656 block.
13657
63136da6
AS
136582009-01-01 Andreas Schwab <schwab@suse.de>
13659
13660 * process.c (conv_sockaddr_to_lisp): Add workaround for
13661 getsockname bug on BSD.
13662
9ef69046
CY
136632009-01-01 Chong Yidong <cyd@stupidchicken.com>
13664
d6fafbe0
CY
13665 * xfns.c (x_create_tip_frame): Set border width of the X window.
13666
51d861de 13667 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 13668
f9c34147
JR
136692009-01-01 Jason Rumney <jasonr@gnu.org>
13670
9acef61c 13671 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
13672 Don't block input, as per earlier xterm.c changes.
13673
f5497e45
AR
136742008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
13675
13676 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
13677 (ns_appkit_version_int): New function.
13678 (x-server-version): Use ns_appkit_version_int and follow 21+
13679 convention of returning 3 integers.
13680
c19cab20
KH
136812008-12-30 Kenichi Handa <handa@m17n.org>
13682
13683 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
13684 (CHAR_SURROGATE_PAIR_P): New macro.
13685
13686 * font.h (struct font_driver): New member get_variation_glyphs.
13687
9acef61c 13688 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
13689 (Ffont_variation_glyphs): New function.
13690 (syms_of_font): Defsubr it.
13691
13692 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
13693 ftfont_variation_glyphs.
13694 (setup_otf_gstring): New function.
13695 (ftfont_drive_otf): Use it.
13696 (ftfont_shape_by_flt): Handle variation selector.
13697 (ftfont_variation_glyphs): New function.
13698
28cd591f
MR
136992008-12-30 Martin Rudalics <rudalics@gmx.at>
13700
13701 * frame.c (Vemacs_iconified): Remove.
13702
7f714baf
JR
137032008-12-30 Jason Rumney <jasonr@gnu.org>
13704
13705 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 13706 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 13707
9d2d22ab
CY
137082008-12-30 Chong Yidong <cyd@stupidchicken.com>
13709
13710 * indent.c (Fvertical_motion): Don't advance iterator if we have
13711 reseated to the desired position.
13712
13713 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
13714 checking for pos match.
13715
545312c2
KH
137162008-12-30 Kenichi Handa <handa@m17n.org>
13717
1ede3eb6
KH
13718 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
13719 just get the low 8-bit of the code.
13720
545312c2
KH
13721 * font.c (font_intern_prop): Validate str as multibyte.
13722
bd7bbf29
DN
137232008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
13724
31e0750e
DN
13725 * dispextern.h (struct face): Move lface and hash from the middle
13726 of bitfields.
13727
bd7bbf29
DN
13728 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
13729
b5672e7c
DN
137302008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
13731
13732 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
13733 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
13734 instead of intervals.h.
13735
d704470f
AS
137362008-12-26 Andreas Schwab <schwab@suse.de>
13737
13738 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
13739 cons.
13740
54b33868
MR
137412008-12-26 Martin Rudalics <rudalics@gmx.at>
13742
13743 * textprop.c (Qminibuffer_prompt): New variable.
13744 (syms_of_textprop): Initialize it.
13745 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
13746 in minibuffer-prompt face. (Bug#1662)
13747
40b615d6
JR
137482008-12-25 Jason Rumney <jasonr@gnu.org>
13749
13750 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
13751
baae5c2d
JR
137522008-12-24 Jason Rumney <jasonr@gnu.org>
13753
13754 * ralloc.c (r_alloc_reset_variable): New function.
13755
13756 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 13757 record of what points where. (Bug#716)
baae5c2d 13758
a9051c88
DN
137592008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
13760
13761 * minibuf.c (read_minibuf): Follow the non-interactive case when
13762 running as a daemon, before detaching.
13763
8b146312
AS
137642008-12-22 Andreas Schwab <schwab@suse.de>
13765
13766 * buffer.c (init_buffer): Use realloc instead of xrealloc.
13767 * gtkutil.c (free_widget_value): Use xfree instead of free.
13768
56f2de10
MR
137692008-12-22 Martin Rudalics <rudalics@gmx.at>
13770
13771 * frame.c (delete_frame): New function derived from
13772 Fdelete_frame to handle Qnoelisp value for FORCE argument.
13773 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
13774 (Fdelete_frame): Call delete_frame. Remove line from doc-string
13775 saying that FORCE non-nil doesn't run `delete-frame-functions'.
13776 * frame.h: Extern delete_frame.
13777 * window.c (window_loop):
13778 * terminal.c (delete_terminal):
13779 * xterm.c (x_connection_closed):
13780 * xfns.c (Fx_hide_tip):
9acef61c 13781 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 13782
1fc200d6
JR
137832008-12-21 Jason Rumney <jasonr@gnu.org>
13784
13785 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
13786 when character maps to .notdef character.
13787
5e252df2
SM
137882008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
13789
13790 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
13791
99b72cc4
JR
137922008-12-20 Jason Rumney <jasonr@gnu.org>
13793
13794 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 13795 a graphical frame on Windows. (Bug#1325)
99b72cc4 13796
acc49a52
JD
137972008-12-20 Jan Djärv <jan.h.d@swipnet.se>
13798
13799 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
13800
6ea15123
CY
138012008-12-20 Chong Yidong <cyd@stupidchicken.com>
13802
13803 * minibuf.c (Fread_buffer): Doc fix.
13804
b2dab6c8
JR
138052008-12-20 Jason Rumney <jasonr@gnu.org>
13806
54ea0c87 13807 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 13808 server name in UNC paths. (Bug#719)
54ea0c87 13809
b2dab6c8 13810 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 13811 charbuf. (Bug#1035)
b2dab6c8 13812
6d1921be
DN
138132008-12-19 Daniel Engeler <engeler@gmail.com>
13814
13815 * sysdep.c (serial_configure): Fix typo.
13816
53934c98
DN
138172008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
13818
13819 * sysdep.c: Include alloca.h.
f4f634e8
DN
13820 (system_process_attributes): Add implementation for Solaris.
13821
13822 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 13823
06e111a6
DN
138242008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
13825
13826 Reorganize implementation of Flist_system_processes and
13827 Fsystem_process_attributes. No functional changes.
13828 * process.c: Don't #include pwd.h, grp.h and limits.h.
13829 (Flist_system_processes): Just call list_system_processes.
13830 (Fsystem_process_attributes): Just call system_process_attributes.
13831 (procfs_list_system_processes, time_from_jiffies)
13832 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
13833 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
13834
13835 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
13836 (list_system_processes): Rename from
13837 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
13838 Provide a do nothing implementation.
13839 (system_process_attributes): Rename from
13840 procfs_list_system_processes.
13841 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 13842 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
13843
13844 * w32.c (list_system_processes): Rename from
13845 w32_list_system_processes.
13846 (system_process_attributes): Rename from
13847 w32_system_process_attributes.
13848
13849 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
13850
13851 * process.h (w32_list_system_processes)
13852 (w32_system_process_attributes): Remove.
362654a6
JB
13853 (list_system_processes, system_process_attributes):
13854 New prototypes.
06e111a6 13855
6a705b23
KH
138562008-12-19 Kenichi Handa <handa@m17n.org>
13857
13858 * xfont.c (xfont_decode_coding_xlfd): New function.
13859 (xfont_encode_coding_xlfd): New function.
13860 (xfont_list_pattern): Decode XLFD by iso-8859-1.
13861 (xfont_list): Decode and encode XLFD by iso-8859-1.
13862 (xfont_match): Likewise.
13863 (xfont_list_family): Likewise.
13864 (xfont_open): Likewise.
13865
d66c0241 13866 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
13867 names are utf-8.
13868
d66c0241 13869 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
13870 names are utf-8.
13871
5a130941
JD
138722008-12-18 Jan Djärv <jan.h.d@swipnet.se>
13873
13874 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
13875 changed.
bfd20325
JD
13876 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
13877 clicked on a detached tool bar button.
5a130941 13878
fd95644b
DN
138792008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
13880
13881 * emacs.c (main): Print and error and exit when no data is read
13882 from the pipe.
13883
e6eee6ae
JR
138842008-12-17 Jason Rumney <jasonr@gnu.org>
13885
13886 * w32font.c (w32font_has_char): Always return -1.
13887
a35dd56b
KH
138882008-12-16 Kenichi Handa <handa@m17n.org>
13889
13890 * font.c (font_open_entity): Fix previous change.
13891
0e3635c2
DN
138922008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
13893
13894 * process.c: Include <limits.h>.
13895
d4835507 138962008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
13897
13898 * font.c (font_update_drivers): Fix mistake in reconstructing the
13899 driver list.
13900
139012008-12-16 Chong Yidong <cyd@stupidchicken.com>
13902
13903 * font.c (font_clear_cache): Fix format of font cache data.
13904
e2cbc401
CY
139052008-12-15 Chong Yidong <cyd@stupidchicken.com>
13906
13907 * xftfont.c (xftfont_open): Free Xft font pattern if
13908 XftFontOpenPattern fails.
13909
13910 * xterm.c (x_free_frame_resources): Remove extraneous call to
13911 free_frame_faces.
13912
b131d535
CY
139132008-12-13 Chong Yidong <cyd@stupidchicken.com>
13914
13915 * xterm.c (x_delete_display): Move xim_close_dpy call to
13916 x_delete_terminal.
13917 (x_delete_terminal): Call xim_close_dpy.
13918
e6df5336
JR
139192008-12-13 Jason Rumney <jasonr@gnu.org>
13920
13921 * w32font.c (intern_font_name): New function.
13922 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
13923 (w32font_open_internal, Fx_select_font): Decode font name.
13924 (fill_in_logfont, list_all_matching_fonts): Encode font name.
13925
13926 * w32font.h (intern_font_name): Declare new function.
13927
13928 * w32uniscribe.c (add_opentype_font_name_to_list):
13929 Use intern_font_name.
13930
20d68145
CY
139312008-12-13 Chong Yidong <cyd@stupidchicken.com>
13932
9f2554de
CY
13933 * frame.c (Fdelete_frame): Call free_font_driver_list.
13934
3d9bec9a
CY
13935 * font.c (free_font_driver_list): Implement missing function.
13936
20d68145
CY
13937 * w32term.c (w32_term_init): Don't initialize the image cache
13938 here; it will be done in init_frame_faces.
13939
13940 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
bba3e508
SM
13941 (struct x_display_info): Remove unused member null_pixel.
13942 New member xim_callback_data.
20d68145
CY
13943
13944 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
13945 (xim_initialize): Save pointer to callback function data.
13946 (xim_close_dpy): Free callback function data. Call XCloseIM,
13947 reverting 2008-11-04 change by David Smith.
13948 (x_term_init): Don't initialize the image cache here; it will be
13949 done in init_frame_faces. Remove ancient "null_pixel" cruft.
13950 (x_delete_display): Free x_dnd_atoms member.
13951
96f9306b
KH
139522008-12-13 Kenichi Handa <handa@m17n.org>
13953
ef1b0ba7 13954 * font.c (font_rescale_ratio): Move from xfaces.c.
6dec9044 13955 Argument type changed. Handle a font-spec too.
96f9306b 13956 (font_score): Check Vface_font_rescale_alist.
6dec9044 13957 (font_open_entity): Likewise. (Bug#1547)
96f9306b 13958
ef1b0ba7 13959 * xfaces.c (font_rescale_ratio): Move to font.c.
96f9306b 13960
8d5b4964
CY
139612008-12-13 Chong Yidong <cyd@stupidchicken.com>
13962
13963 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
13964
e6df5336
JR
139652008-12-12 Jason Rumney <jasonr@gnu.org>
13966
bba3e508
SM
13967 * w32fns.c (x_display_info_for_name, Fx_open_connection):
13968 Set Vwindow_system_version to the real w32 major version.
e6df5336 13969
97c6058a
DN
139702008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
13971
13972 * term.c (init_tty): Move setting the terminal name before the
13973 potential user: maybe_fatal.
13974
ec4e88d7
CY
139752008-12-11 Chong Yidong <cyd@stupidchicken.com>
13976
ef1b0ba7 13977 * term.c (tty_free_frame_resources): Rename from delete_tty_output;
d4835507 13978 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 13979
b4233ec9
JR
139802008-12-11 Jason Rumney <jasonr@gnu.org>
13981
8ec71e23 13982 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 13983 SYMBOL_CHARSET. (Bug#547)
8ec71e23 13984
b4233ec9 13985 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 13986 size for surrogates. (Bug#1096, bug#872)
b4233ec9 13987
011a0143
JB
139882008-12-11 Juanma Barranquero <lekktu@gmail.com>
13989
13990 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
13991
3c309f34
JB
139922008-12-11 Juanma Barranquero <lekktu@gmail.com>
13993
13994 * process.c (Fsystem_process_attributes, syms_of_process):
13995 Fix typo in name of Ssystem_process_attributes.
13996 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
13997
fedc6ab5
JB
139982008-12-11 Juanma Barranquero <lekktu@gmail.com>
13999
14000 * syntax.c (Fmodify_syntax_entry): Doc fix.
14001
ba3de0e8
JB
140022008-12-10 Juanma Barranquero <lekktu@gmail.com>
14003
14004 * font.c (Ffont_spec): Move usage to end of docstring.
14005
174f1c74
JR
140062008-12-10 Jason Rumney <jasonr@gnu.org>
14007
14008 * w32font.c (Qcham): New symbol.
14009 (font_supported_scripts): Add cham, and comments for other new
14010 scripts in bitfield from OpenType spec.
9d32f818
JR
14011 (add_font_entity_to_list): Limit unicode-sip fonts to those that
14012 contain characters beyond the bmp.
174f1c74 14013
7b649478
KH
140142008-12-10 Kenichi Handa <handa@m17n.org>
14015
14016 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 14017 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
14018 Qunicode_sip.
14019
2133e2d1
JB
140202008-12-10 Juanma Barranquero <lekktu@gmail.com>
14021
14022 * coding.c (QCdefault_char): Rename from QCdefalut_char.
14023 (Fcoding_system_put): Use QCdefault_char.
14024 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
14025
9af886ee
CY
140262008-12-09 Chong Yidong <cyd@stupidchicken.com>
14027
74d819eb
CY
14028 * xftfont.c (syms_of_xftfont): Fix typo.
14029
4ccfa1c0 14030 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 14031
7c19d3ae
DN
140322008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
14033
14034 * emacs.c (main): Close daemon_pipe on exec.
14035
567826bb
CY
140362008-12-08 Chong Yidong <cyd@stupidchicken.com>
14037
14038 * termchar.h (struct tty): New members termcap_term_buffer and
14039 termcap_strings_buffer.
14040
14041 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 14042 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
14043 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
14044 All callers changed.
14045 (init_tty): Store termcap data and string buffers in new struct
14046 tty members termcap_term_buffer and termcap_strings_buffer.
14047 (delete_tty): Free them.
4ccfa1c0 14048 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 14049
aa96c42b
SZ
140502008-12-07 Seiji Zenitani <zenitani@mac.com>
14051
14052 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 14053 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 14054
b7e1d896
CY
140552008-12-06 Chong Yidong <cyd@stupidchicken.com>
14056
14057 * coding.c (make_conversion_work_buffer): Disable buffer
14058 modification hooks in the work buffer.
14059
b5ec91a5
EZ
140602008-12-05 Eli Zaretskii <eliz@gnu.org>
14061
14062 * process.c (procfs_system_process_attributes): If `nread' has a
14063 negative value, assign zero to it.
14064
a5d2a52b
CY
140652008-12-05 Chong Yidong <cyd@stupidchicken.com>
14066
68c5540b 14067 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 14068
7bf1bb21
KH
140692008-12-05 Kenichi Handa <handa@m17n.org>
14070
14071 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
14072 second character is a combining character.
14073
2fdc7d00
EZ
140742008-12-05 Eli Zaretskii <eliz@gnu.org>
14075
14076 * process.c (procfs_system_process_attributes): Don't use cmd,
14077 cmdsize, and q without initializing them first.
14078
bf6bfba8
JR
140792008-12-04 Jason Rumney <jasonr@gnu.org>
14080
14081 * w32font.c (w32font_draw): Initialize orig_clip before getting
14082 it, and delete it when finished.
14083
a3b1a468
DN
140842008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
14085
14086 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
14087 case when running as a daemon before detaching.
14088
8b8be8eb
JB
140892008-12-03 Juanma Barranquero <lekktu@gmail.com>
14090
805f2638 14091 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 14092
b1bde622
KH
140932008-12-03 Kenichi Handa <handa@m17n.org>
14094
e500c47d
KH
14095 * font.c (font_at): Set `multibyte' at first.
14096
ca516334
KH
14097 * coding.c (decode_coding_charset): Check type of an element of
14098 vector VALIDS.
7bf1bb21 14099 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 14100
4ccfa1c0 14101 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
14102 (font_for_char): Likewise.
14103
1e5ecd37
CY
141042008-12-03 Chong Yidong <cyd@stupidchicken.com>
14105
d5b01609 14106 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
14107 (font_update_lface): Handle fonts with corrupted size specs,
14108 i.e. non-int and non-float.
d5b01609 14109
11e3a6e4 14110 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 14111 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 14112 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 14113
ab06788b
CY
14114 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
14115
1e5ecd37 14116 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 14117 underline_minimum_offset for underline position.
1e5ecd37 14118
63c125ab
DN
141192008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
14120
14121 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
14122
14123 * character.c (c_string_width): Specify the type for LEN.
14124
3a8406e1
KH
141252008-12-03 Kenichi Handa <handa@m17n.org>
14126
4ccfa1c0 14127 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 14128 (decode_coding_utf_8): Likewise.
4ccfa1c0 14129 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 14130 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 14131
651df7d9
CY
141322008-12-02 Chong Yidong <cyd@stupidchicken.com>
14133
14134 * keyboard.c (make_lispy_position): Only use PT if the selected
14135 window is current.
14136
1f625c6c
AS
141372008-12-02 Andreas Schwab <schwab@suse.de>
14138
f7741ce9
AS
14139 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
14140
1f625c6c
AS
14141 * doprnt.c (doprnt1): Fix size of charbuf.
14142
92bc2678
CY
141432008-12-02 Chong Yidong <cyd@stupidchicken.com>
14144
14145 * keyboard.c (timer_check): Revert last change.
14146
93b9e8cc
JB
141472008-12-02 Juanma Barranquero <lekktu@gmail.com>
14148
14149 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
14150
fd7a37d5
JB
141512008-12-01 Juanma Barranquero <lekktu@gmail.com>
14152
14153 * makefile.w32-in: Update dependencies.
14154 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
14155
c115043b
AS
141562008-12-01 Andreas Schwab <schwab@suse.de>
14157
14158 * font.c (register_font_driver): Use xmalloc.
14159 (font_put_frame_data): Likewise.
14160
f5668d2a
CY
141612008-12-01 Chong Yidong <cyd@stupidchicken.com>
14162
860d96be
CY
14163 * xfaces.c (realize_x_face): Make abort condition clearer.
14164
f5668d2a
CY
14165 * gtkutil.c (update_frame_tool_bar): Initialize variable.
14166
379c17e7
CY
141672008-11-30 Chong Yidong <cyd@stupidchicken.com>
14168
14169 * keyboard.c (timer_check): After a timer runs, ensure that the
14170 selected window's buffer is current.
14171
35f36d65
JB
141722008-11-30 Juanma Barranquero <lekktu@gmail.com>
14173
f952c61c
JB
14174 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
14175 It was accidentally restored by the Unicode merge.
14176
35f36d65
JB
14177 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
14178
b23077df
JB
141792008-11-29 Juanma Barranquero <lekktu@gmail.com>
14180
14181 * w32proc.c: Include "coding.h".
14182 (Fw32_short_file_name): Encode filename passed to Windows API.
14183 (Fw32_long_file_name): Encode filename passed to Windows API and
14184 decode back the result. (Bug#1433)
14185
b8ebe9dd
KH
141862008-11-29 Kenichi Handa <handa@m17n.org>
14187
8cc53f96
KH
14188 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
14189 not before accessing it.
14190
b8ebe9dd
KH
14191 * charset.c (Fdefine_charset_internal): After calculating
14192 min_char, max_char, and fastmap, copy the charset structure again.
14193 (encode_char): Fix the previous change.
14194
59bc82c0
SZ
141952008-11-28 Seiji Zenitani <zenitani@mac.com>
14196
14197 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
14198
14199 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
14200
14201 * nsterm.m (x_set_frame_alpha): New function.
14202
32247e3d
EZ
142032008-11-27 Eli Zaretskii <eliz@gnu.org>
14204
14205 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
14206
b003e5ff
JB
142072008-11-27 Juanma Barranquero <lekktu@gmail.com>
14208
14209 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
14210 pointer to check_face_name.
14211
708550f5
KH
142122008-11-27 Kenichi Handa <handa@m17n.org>
14213
14214 * category.h (SET_CATEGORY_SET): Call set_category_set.
14215 (set_category_set): Extern it.
14216
14217 * category.c (hash_get_category_set): New function.
bba3e508 14218 (Fmodify_category_entry): Adjust for the change of
708550f5
KH
14219 char_table_ref_and_range. Call hash_get_category_set to get a
14220 category set to store in the table.
14221
14222 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
14223 Funify_charset.
14224
2ae37cf0 14225 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
14226 (DECODE_CHAR): Check if the decoder vector is ready.
14227 (ENCODE_CHAR): Check if the encoder char-table is ready.
14228 (maybe_unify_char): Extern it.
14229
14230 * charset.c (Vchar_unified_charset_table): Delete it.
14231 (inhibit_load_charset_map): New variable.
14232 (temp_charset_work): New variable.
14233 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
14234 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
14235 New macros.
bba3e508
SM
14236 (load_charset_map): Meaning of control_flag changed.
14237 If inhibit_load_charset_map is nonzero, setup a table in
708550f5
KH
14238 temp_charset_work.
14239 (load_charset): New argument control_flag.
14240 (map_charset_for_dump): New function.
14241 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
14242 map_charset_for_dump.
14243 (Fdefine_charset_internal): If the charset method is MAP, load
14244 mapping tables by calling load_charset.
14245 (Funify_charset): Don't load a mapping table but directly set
14246 Vchar_unify_table.
14247 (maybe_unify_char): New function.
14248 (decode_char): Don't handle the deleted method MAP_DEFERRED.
14249 Handle the case of inhibit_load_charset_map being nonzero.
14250 (encode_char): Don't handle the deleted method MAP_DEFERRED.
14251 Handle the case of inhibit_load_charset_map being nonzero.
14252 (Fclear_charset_maps): Just free temp_charset_work.
14253 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
14254 variable.
14255
bba3e508 14256 * chartab.c (sub_char_table_ref_and_range): Adjust for the
708550f5
KH
14257 change of char_table_ref_and_range.
14258 (char_table_ref_and_range): Change the meaning of argument FROM
14259 and TO. Now the caller must provide initial values for *FROM
14260 and *TO.
14261
bba3e508 14262 * fontset.c (fontset_add): Adjust for the change of
708550f5
KH
14263 char_table_ref_and_range.
14264 (fontset_get_font_group): Likewise.
14265 (Ffontset_info): Likewise.
14266
bba3e508 14267 * keymap.c (describe_vector): Adjust for the change of
708550f5
KH
14268 char_table_ref_and_range. For char-table, put boundary between
14269 non-ASCII and 8-bit characters.
14270
14271 * print.c (print_object): For bool-vector, delete unnecessary
14272 check of ASCII_BYTE_P.
14273
9196133b
JR
142742008-11-26 Jason Rumney <jasonr@gnu.org>
14275
14276 * w32font.c (w32font_open_internal): Don't include external
9acef61c 14277 leading in font height. (Bug#879)
9196133b 14278
9f688acf
GM
142792008-11-26 Glenn Morris <rgm@gnu.org>
14280
14281 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
14282 redefinition with ifdef. (Bug#1383)
14283
90d19aff
AR
142842008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
14285
14286 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
14287
4ccfa1c0 142882008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
14289
14290 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
14291 New EmacsView methods.
14292 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
14293 Fixes bug #1048,1357,1414.
14294
142952008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
14296
14297 Fix bug #1362.
14298 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
14299 is not an indexed color.
14300 * nsterm.m (free_indexed_color): Add argument checking.
14301 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
14302
e7d5ecb3
CY
143032008-11-24 Chong Yidong <cyd@stupidchicken.com>
14304
14305 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
14306 Document confirm-after-completion value for
14307 minibuffer-completion-confirm.
14308
c285743c
JR
143092008-11-24 Jason Rumney <jasonr@gnu.org>
14310
14311 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
14312 warning.
14313
b0857706
JR
143142008-11-23 Jason Rumney <jasonr@gnu.org>
14315
14316 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
14317 restored before returning.
14318
14319 * w32font.c (check_face_name): New function.
14320 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 14321 fonts. (Bug#642)
b0857706 14322
ee50ff07
MR
143232008-11-22 Martin Rudalics <rudalics@gmx.at>
14324
14325 * buffer.c (Fswitch_to_buffer): Reword and mention new option
14326 confirm-nonexistent-file-or-buffer in doc-string.
14327
b8ff72fa
SM
143282008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
14329
14330 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
14331 Fix copy/paste typo. Add checks.
14332
cee53ed4
KH
143332008-11-21 Kenichi Handa <handa@m17n.org>
14334
14335 * coding.c (detect_coding_iso_2022): Reject invalid composition
14336 sequence.
14337 (DECODE_COMPOSITION_START): If the current source is the last
14338 block, and the current composition doesn't end, regard this
14339 sequence as invalid.
14340 (decode_coding_iso_2022): Handle invalid composition sequence.
14341
f6ef1e65
MR
143422008-11-20 Martin Rudalics <rudalics@gmx.at>
14343
14344 * window.c (coordinates_in_window): Don't return
14345 ON_VERTICAL_BORDER for the rightmost position of a mode/header
14346 line when the window is not the rightmost one. (Bug#1372)
14347
e08b1705
MR
143482008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
14349
14350 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
14351
ad98e89f
EZ
143522008-11-15 Eli Zaretskii <eliz@gnu.org>
14353
14354 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
14355 and bright_bg if noninteractive is non-zero.
14356
fb098a4b
CY
143572008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14358
14359 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
14360 x_draw_glyph_string_background.
14361
14362 * w32term.c (x_draw_glyph_string): Likewise.
14363
ce952b6e
CY
143642008-11-15 Chong Yidong <cyd@stupidchicken.com>
14365
14366 * xterm.c (x_draw_glyph_string): Stop drawing the background of
14367 the next glyph string once past the overhang width.
14368
14369 * nsterm.m (ns_draw_glyph_string): Likewise.
14370
14371 * w32term.c (x_draw_glyph_string): Likewise.
14372
26ea7079
CY
143732008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
14374
14375 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
14376 double file close.
14377
1c33c906
MR
143782008-11-14 Martin Rudalics <rudalics@gmx.at>
14379
14380 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
14381 dedicated status of window before attempting to display another
14382 buffer in it.
14383
8fc29035
JB
143842008-11-14 Juanma Barranquero <lekktu@gmail.com>
14385
14386 * msdos.c (Fmsdos_long_file_names):
14387 (syms_of_msdos) <dos-unsupported-char-glyph>:
14388 * dosfns.c (Fint86): Fix typos in docstrings.
14389
55fb4286
EZ
143902008-11-14 Eli Zaretskii <eliz@gnu.org>
14391
14392 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
14393
3fda0315
KY
143942008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
14395
14396 * puresize.h (BASE_PURESIZE): Increase to 1260000.
14397
7e849c17
CY
143982008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
14399
14400 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
14401
14402 * frame.h: Negative alpha means "don't touch".
14403
14404 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
14405
14406 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
14407
b9fd67bd
DN
144082008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
14409
14410 * hftctl.c:
14411 * chpdef.h:
14412 * acldef.h: Remove files used only for systems no longer supported.
14413
14414 * Makefile.in: Fix .o alphabetical ordering.
14415 (hftctl.o): Remove dependency, file removed.
14416 (keymap.o, print.o): Depend on charset.h.
14417
d5998e03
KH
144182008-11-10 Kenichi Handa <handa@m17n.org>
14419
2ae37cf0 14420 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 14421
be70e183
CY
144222008-11-08 Chong Yidong <cyd@stupidchicken.com>
14423
14424 * dired.c (file_name_completion): If completion_ignore_case is
14425 enabled, ignore case when checking completion-regexp-list.
14426
7cf94eac
EZ
144272008-11-08 Eli Zaretskii <eliz@gnu.org>
14428
14429 * vm-limit.c (get_lim_data): Fix last change.
14430
ee107a89
KH
144312008-11-08 Kenichi Handa <handa@m17n.org>
14432
14433 * character.c (Fget_byte): New function.
14434 (syms_of_character): Defsubr Fget_byte.
14435
5fd15622
CY
144362008-11-07 Chong Yidong <cyd@stupidchicken.com>
14437
14438 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
14439 cursor position is valid after scrolling.
14440
13d62fad
JB
144412008-11-06 Juanma Barranquero <lekktu@gmail.com>
14442
14443 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
14444
a1dd2936
GM
144452008-11-06 Glenn Morris <rgm@gnu.org>
14446
14447 * xterm.c (handle_one_xevent): Don't let popup menus cause
14448 mouse-autoselect-window related window switching. (Bug#1261)
14449
860cd236
CY
144502008-11-04 David Smith <davidsmith@acm.org> (tiny change)
14451
14452 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
14453
653a3150
AS
144542008-11-04 Andreas Schwab <schwab@suse.de>
14455
14456 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
14457
870f5cac
CY
144582008-11-03 Chong Yidong <cyd@stupidchicken.com>
14459
14460 * xfns.c (Fx_wm_set_size_hint): New function.
14461
1e02f3cb
MR
144622008-11-03 Martin Rudalics <rudalics@gmx.at>
14463
14464 * textprop.c (Fprevious_single_char_property_change): Return 0
14465 when there's no change in a string. (Bug#1301)
14466
e630dfc6
MR
144672008-11-02 Martin Rudalics <rudalics@gmx.at>
14468
14469 * frame.c (do_switch_frame): New argument NORECORD passed to
14470 Fselect_window.
14471 (Fselect_frame): New argument NORECORD passed to
14472 do_switch_frame.
14473 (Fset_frame_selected_window): New argument NORECORD passed to
14474 Fselect_frame.
14475 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
14476 in call of do_switch_frame.
14477 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
14478 Handle NORECORD argument in call of Fselect_frame.
14479 * lisp.h (do_switch_frame, Fselect_frame)
14480 (Fset_frame_selected_window): Adjust declarations.
14481 * window.c (select_frame_norecord): New function.
14482 (run_window_configuration_change_hook): Use it and call
14483 Fselect_frame with NORECORD set.
14484 (Fselect_window): Pass NORECORD to Fselect_frame.
14485 (Fset_window_configuration): Handle NORECORD argument in call of
14486 do_switch_frame.
14487 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
14488 Fset_frame_selected_window.
14489 * keyboard.c (command_loop_1): Handle NORECORD in call of
14490 Fselect_frame (currently ifdefd).
14491
9020b223
GM
144922008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
14493
14494 * emacs.c (USAGE2): Untabify.
14495
793ffee8
SM
144962008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
14497
14498 * composite.c (fill_gstring_header): Fix copy/paste typo.
14499
ab6d1131
MR
145002008-10-31 Martin Rudalics <rudalics@gmx.at>
14501
14502 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
14503 (Fother_window): Rename argument and rewrite doc-string.
14504 (select_window_norecord): Fix return value. (Bug#1276)
14505
601a9cf1
JB
145062008-10-30 Juanma Barranquero <lekktu@gmail.com>
14507
14508 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
14509 new frames overriding foreground for tooltips. Based on similar patch
14510 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
14511
813b0652
CY
145122008-10-29 Chong Yidong <cyd@stupidchicken.com>
14513
14514 * emacs.c (Fdaemon_initialized): Initialize nfd.
14515
4414f58f
MR
145162008-10-29 Martin Rudalics <rudalics@gmx.at>
14517
14518 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
14519 (Fwindow_text_height): Clarify doc-strings.
14520 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
14521 doc-string of window-scroll-functions.
14522
ecdcaa09
RS
145232008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
14524
14525 * category.c (syms_of_category): Fix typo in docstring.
14526
23fe745a
JB
145272008-10-28 Juanma Barranquero <lekktu@gmail.com>
14528
14529 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
14530 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
14531 Fix typos in docstrings.
14532
ff808935
DN
145332008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
14534
14535 * emacs.c (daemon_pipe): Make non-static.
14536 (IS_DAEMON): Move definition ...
14537 * lisp.h (IS_DAEMON): ... here.
14538 (daemon_pipe): Declare.
14539 (is_daemon): Remove.
14540 * dispnew.c (init_display): Use IS_DAEMON.
14541
fc012771
SM
145422008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
14543
14544 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
14545 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
14546
14547 * emacs.c (is_daemon): Remove.
14548 (main): Don't set is_daemon.
14549 (IS_DAEMON): New macro.
14550 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 14551 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
14552 parent exits.
14553 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
14554
d8bdbe6f
CY
145552008-10-27 Chong Yidong <cyd@stupidchicken.com>
14556
d1a072bf
CY
14557 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
14558 over-sized glyph, draw it with the default glyph width.
14559
e2e325aa
CY
14560 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
14561 glyph, draw it with the default glyph width.
14562
14563 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
14564 glyph, draw it with the default glyph width.
14565
d8bdbe6f
CY
14566 * xdisp.c (try_scrolling): When computing the distance from the
14567 scroll margin to PT, try moving some distance past the window
14568 bottom before giving up.
14569
7bfac547
MR
145702008-10-27 Martin Rudalics <rudalics@gmx.at>
14571
14572 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
14573 (Fset_window_buffer): Explain in doc-string that a window can be
14574 "strongly" dedicated to its buffer.
14575
4ff029f6
DN
145762008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
14577
14578 * emacs.c (daemon_name): New variable.
14579 (main): Deal with --daemon=SERVER_NAME.
14580 (Fdaemonp): Return a name if one was passed to --daemon.
14581
5790ef40
DN
145822008-10-26 Romain Francoise <romain@orebokech.com>
14583
f9bd0df9 14584 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
14585 (main): Create a pipe before forking, make the parent exit only after
14586 the child has closed its end of the pipe. Move closing the
14587 descriptors ...
14588 (Fdaemon_initialized): ... here. New function.
14589
f5385255
SM
145902008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
14591
4d632321
SM
14592 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
14593 the previous unoptimized table.
14594
f5385255
SM
14595 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
14596 the distinction between non-nil and non-t value of `dedicated'.
14597
6c56a0f3
CY
145982008-10-25 Chong Yidong <cyd@stupidchicken.com>
14599
14600 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 14601 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 14602
fec89261
MR
146032008-10-25 Martin Rudalics <rudalics@gmx.at>
14604
14605 * window.c (Fget_buffer_window, Fdelete_windows_on)
14606 (Freplace_buffer_in_windows): Make buffer argument optional and
14607 rename to buffer_or_name.
14608
34fcddd0
CY
146092008-10-24 Chong Yidong <cyd@stupidchicken.com>
14610
f5385255
SM
14611 * xdisp.c (handle_single_display_spec, handle_display_prop):
14612 Undo 2005-05-16 change.
34fcddd0
CY
14613 (handle_stop): Pop iterator if it's loaded with an empty string.
14614 (get_overlay_strings_1): Don't save iterator if it's loaded with
14615 an empty string (bug#1201).
14616
064766f2
KH
146172008-10-24 Kenichi Handa <handa@m17n.org>
14618
14619 * ftfont.c (ftfont_otf_features): Fix previous change.
14620 (ftfont_otf_capability): Check FeatureList.FeatureCount before
14621 calling ftfont_otf_features.
14622
f9bd0df9 146232008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
14624
14625 * font.c (font_match_p): Fix for the case that a vector of
14626 characters is in script-representative-chars.
14627
1dae9197
MA
146282008-10-24 Michael Albinus <michael.albinus@gmx.de>
14629
14630 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 14631 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
14632 (xd_read_queued_messages): Catch Qdbus_error from the macros.
14633 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
777013f2 14634 macro. (Bug#1186)
1dae9197 14635
f9bd0df9 146362008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
14637
14638 * s/sol2-10.h: New file.
14639
878a4584
JB
146402008-10-23 Juanma Barranquero <lekktu@gmail.com>
14641
14642 * xdisp.c (fill_glyph_string): Fix typo in source (though the
14643 poor beast has survived 9+ years and the jump from xterm.c!).
14644
cd265ca6
MR
146452008-10-23 Martin Rudalics <rudalics@gmx.at>
14646
14647 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
14648 Reword doc-string.
f5385255 14649 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 14650
472a4dc9
JB
146512008-10-23 Juanma Barranquero <lekktu@gmail.com>
14652
14653 * character.c (syms_of_character) <script-representative-chars>:
14654 <unicode-category-table>: Doc fixes.
14655
159bd5a2
NF
146562008-10-23 Noah Friedman <friedman@splode.com>
14657
14658 * coding.c (make_conversion_work_buffer): Check that
14659 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
14660 Fget_buffer_create.
14661
49f9c344
KH
146622008-10-23 Kenichi Handa <handa@m17n.org>
14663
14664 * font.c (font_add_log): Check the values of extra properties.
14665
12bb3111
MR
146662008-10-22 Martin Rudalics <rudalics@gmx.at>
14667
14668 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
14669 Reword doc-string.
14670 (Fset_window_parameter): Use NILP.
14671 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 14672 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 14673
bbeb4e99
JB
146742008-10-22 Juanma Barranquero <lekktu@gmail.com>
14675
14676 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
14677
146782008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
14679
14680 * nsfns.m (ns_appkit_version): New function.
14681 (x-server-version): Use it.
14682 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
14683 (x-server-vendor): Don't check_ns().
14684
14685 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
14686
a9b555d3
JB
146872008-10-22 Juanma Barranquero <lekktu@gmail.com>
14688
14689 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
14690 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
14691
4626499f
KH
146922008-10-22 Kenichi Handa <handa@m17n.org>
14693
e3681952
KH
14694 * syntax.c (scan_words): Call word_boundary_p instead of comparing
14695 scripts.
14696
4626499f
KH
14697 * category.c (word_boundary_p): Check scripts instead of charset.
14698 Handle nil value in word-separating-categories and
14699 word-combining-categories.
14700 (syms_of_category): Fix docstrings of word-separating-categories
14701 and word-combining-categories.
14702
1560f91a
EZ
147032008-10-21 Eli Zaretskii <eliz@gnu.org>
14704
14705 * coding.c (Fencode_coding_region, Fdecode_coding_region)
14706 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
14707
f4668441
MR
147082008-10-21 Martin Rudalics <rudalics@gmx.at>
14709
14710 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
14711 Rename arg "buffer" to "buffer_or_name".
14712 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
14713 it optional.
14714 (no_switch_window): Remove since the return value is not used.
a9b555d3 14715 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
14716 Consider window as dedicated when Fwindow_dedicated_p returns a
14717 non-nil value.
14718 * lisp.h: Remove prototype for no_switch_window.
14719
fd75ddb2
JD
147202008-10-21 Jan Djärv <jan.h.d@swipnet.se>
14721
14722 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 14723 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 14724
07295713
KH
147252008-10-21 Kenichi Handa <handa@m17n.org>
14726
14727 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
14728 check Vlatin_extra_code_table.
14729
712adc82
EZ
147302008-10-20 Eli Zaretskii <eliz@gnu.org>
14731
14732 * fileio.c (Fset_file_modes): Doc fix.
14733
f549eb0b
MA
147342008-10-19 Michael Albinus <michael.albinus@gmx.de>
14735
14736 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
14737 in arrays.
14738
aac0c6e3
MR
147392008-10-19 Martin Rudalics <rudalics@gmx.at>
14740
14741 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
14742 Mention kill-buffer in doc-string.
14743 (Fset_window_buffer): Reinsert tem check removed in last commit.
14744 (Fenlarge_window, Fshrink_window): Have argument names and
14745 doc-string follow Elisp manual more closely.
14746
147472008-10-18 Eli Zaretskii <eliz@gnu.org>
14748
14749 * fileio.c (Fset_file_modes): Doc fix.
14750
147512008-10-18 Martin Rudalics <rudalics@gmx.at>
14752
14753 * window.c (Fwindow_width, Fset_window_start)
14754 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
14755 (Fdelete_windows_on, Freplace_buffer_in_windows):
14756 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
14757 (Fwindow_dedicated_p): Make window argument optional.
14758 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
14759 (Fset_window_buffer): Respect any non-nil dedicated value for
14760 window. Rename "buffer" argument to "buffer_or_name".
14761
147622008-10-18 Ulrich Mueller <ulm@gentoo.org>
14763
14764 * m/sh3.h: New file, machine description for SuperH.
14765
147662008-10-17 Martin Rudalics <rudalics@gmx.at>
14767
14768 * window.c (Fsplit_window): Rename arg horflag to horizontal.
14769
147702008-10-17 Kenichi Handa <handa@m17n.org>
14771
14772 * ftfont.c (ftfont_otf_features): Fix indexing
14773 gsub_gpos->FeatureList.Feature. Check the validity of indices.
14774
147752008-10-16 Magnus Henoch <mange@freemail.hu>
14776
14777 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
14778 (Fdbus_call_method_asynchronously): Ditto.
14779 This change makes C-h f display the argument list.
14780
147812008-10-16 Chong Yidong <cyd@stupidchicken.com>
14782
14783 * fileio.c (Fexpand_file_name): Doc fix.
14784
14785 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
14786 of :foreground and :background equivalent to unspecified (20.x
14787 compatibility).
14788
147892008-10-15 Eli Zaretskii <eliz@gnu.org>
14790
14791 * buffer.c (syms_of_buffer): Doc fix.
14792
147932008-10-14 Kenichi Handa <handa@m17n.org>
14794
14795 * font.c (font_clear_prop): When clearing font width, clear the
14796 average width field too.
14797
147982008-10-12 Andreas Schwab <schwab@suse.de>
14799
14800 * ftfont.c (ftfont_shape_by_flt): Make static.
14801 * ftfont.h (ftfont_shape_by_flt): Don't declare.
14802
14803 * font.c: Don't include <m17n-flt.h>.
14804
148052008-10-10 Eli Zaretskii <eliz@gnu.org>
14806
14807 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
14808
148092008-10-09 Eli Zaretskii <eliz@gnu.org>
14810
14811 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
14812 away code.
14813
148142008-10-09 Chong Yidong <cyd@stupidchicken.com>
14815
14816 * dispnew.c (update_text_area): Avoid looping due to large glyph
14817 overhangs (bug#1070).
14818
148192008-10-09 Kenichi Handa <handa@m17n.org>
14820
14821 * fontset.c (face_for_char): If face->fontset is negative, just
14822 return ascii_face.
14823
f5385255
SM
14824 * font.c (font_delete_unmatched): Fix previous change.
14825 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
14826
148272008-10-09 Martin Rudalics <rudalics@gmx.at>
14828
14829 * frame.c (Fraise_frame): On text-only terminals select frame in
14830 order to make it visible. (Bug#1061)
14831
148322008-10-08 Chong Yidong <cyd@stupidchicken.com>
14833
14834 * fontset.c (fontset_find_font): Check frame validity.
14835
148362008-10-07 Chong Yidong <cyd@stupidchicken.com>
14837
a9b555d3 14838 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
14839 (xg_display_close): Allow Emacs to close all displays (bug#985).
14840
148412008-10-06 Andreas Schwab <schwab@suse.de>
14842
f5385255 14843 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
14844
148452008-10-06 Chong Yidong <cyd@stupidchicken.com>
14846
f5385255 14847 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 14848
a9b555d3 14849 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
14850
14851 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
14852 during initialization.
14853
148542008-10-04 Eli Zaretskii <eliz@gnu.org>
14855
14856 * xdisp.c (redisplay_internal): If frame switched, redisplay the
14857 whole thing on MSDOS frames as well as on a TTY.
14858
14859 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
14860 well as for TTY.
14861 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
14862 well as on a TTY.
14863
14864 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
14865 as well as for TTY.
14866
14867 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
14868
14869 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
14870 MSDOS frames as well.
14871
148722008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
14873
14874 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
14875 correct arguments.
b71ac3dd 14876 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
14877
148782008-10-03 Glenn Morris <rgm@gnu.org>
14879
14880 * emacs.c (USAGE1): Add --daemon.
14881
148822008-10-02 Eli Zaretskii <eliz@gnu.org>
14883
14884 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
14885 100, so it's in percents as advertised.
14886
148872008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
14888
14889 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
14890 (ns_output.current_cursor, ns_output.desired_cursor)
14891 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
14892 (FRAME_NEW_CURSOR_COLOR): Remove.
14893
14894 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 14895 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
14896 enumeration (HOLLOW_BOX_CURSOR, etc.).
14897
14898 * nsterm.m (ns_frame_rehighlight): Remove commented code.
14899 (draw_window_cursor): Simplify code.
f5385255
SM
14900 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
14901 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 14902 updates manually.
a9b555d3
JB
14903 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
14904 Use core Emacs cursor types.
aac0c6e3 14905
b8ff72fa 14906 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
14907
149082008-10-02 Martin Rudalics <rudalics@gmx.at>
14909
14910 * process.c (Faccept_process_output): Fix doc-string.
14911
149122008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
14913
14914 * gmalloc.c (__sbrk): Also define for uClibc.
14915
14916 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
14917 for uClibc.
14918
149192008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
14920
14921 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
14922 styles.
14923 (nsfont_open): Reenable the cache.
14924
149252008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
14926
14927 * font.c (font_matching_entity): Reflect ATTRS in font selection.
14928 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
14929
149302008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
14931
14932 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
14933 a suspended terminal.
14934
149352008-09-30 Michael Albinus <michael.albinus@gmx.de>
14936
14937 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
14938
149392008-09-30 Eli Zaretskii <eliz@gnu.org>
14940
14941 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
14942
149432008-09-30 Chong Yidong <cyd@stupidchicken.com>
14944
14945 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
14946 in a continued line coincides with a line beginning.
14947
149482008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
14949
14950 * nsfont.m (nsfont_trait_distance): Fix bug.
14951 (nsfont_list): Return a list rather than a vector (syncs with Handa
14952 changes of 2008-05-14).
14953 (nsfont_open): Improve logging.
14954
149552008-09-29 Andreas Schwab <schwab@suse.de>
14956
14957 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
14958
149592008-09-28 Martin Rudalics <rudalics@gmx.at>
14960
14961 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
14962 name as char-resolve-modifiers.
14963 Reported by: Markus Triska <markus.triska@gmx.at>
14964
149652008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
14966
14967 * dispnew.c (init_display): Return earlier when running as a daemon.
14968
149692008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
14970
14971 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
14972
149732008-09-27 Eli Zaretskii <eliz@gnu.org>
14974
14975 * composite.c (Fcomposition_get_gstring)
14976 (Fcompose_region_internal, Fcompose_string_internal)
14977 (Ffind_composition_internal): Doc fix.
14978 (syms_of_composite) <compose-chars-after-function>: Doc fix.
14979 (syms_of_composite) <auto-composition-function>: Doc fix.
14980 (syms_of_composite) <composition-function-table>: Doc fix.
14981
149822008-09-25 Chong Yidong <cyd@stupidchicken.com>
14983
14984 * search.c (wordify): New argument for lax word-ends.
14985 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
14986
149872008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
14988
14989 * lisp.h (is_daemon): Declare.
14990 * dispnew.c (init_display): Do not try to initialize the terminal
14991 when running as a daemon.
14992
149932008-09-22 Chong Yidong <cyd@stupidchicken.com>
14994
14995 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
14996 x_display_pixel_height.
14997
149982008-09-22 Martin Rudalics <rudalics@gmx.at>
14999
15000 * undo.c (record_point): Don't call Fundo_boundary for first
15001 change. (Bug#731)
15002
150032008-09-22 Juanma Barranquero <lekktu@gmail.com>
15004
15005 * emacs.c (Fdaemonp): Doc fix.
15006
150072008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
15008
15009 * emacs.c (main): Place #ifdef in the proper place.
15010
150112008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
15012
15013 * emacs.c (standard_args): Add --daemon.
15014 (main): Disconnect from the terminal when --daemon is passed.
15015 (is_daemon): New variable.
15016 (Fdaemonp): New function.
15017 (syms_of_emacs): Defsubr it.
15018
150192008-09-20 Chong Yidong <cyd@stupidchicken.com>
15020
15021 * xdisp.c (get_next_display_element): Handle string display
15022 correctly when checking for the end of a box run.
15023
150242008-09-20 Glenn Morris <rgm@gnu.org>
15025
15026 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
15027 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
15028 (Frename_file): Avoid copying to trash if a rename involves
15029 a delete. (Bug#964).
15030
150312008-09-20 Eli Zaretskii <eliz@gnu.org>
15032
15033 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
15034 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
15035 frames as well as termcap frames.
15036 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
15037 get_named_tty.
15038
150392008-09-19 Eli Zaretskii <eliz@gnu.org>
15040
15041 * process.c (procfs_system_process_attributes): Fix cmdline in
15042 case /proc/PID/cmdline is empty.
15043
15044 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
15045 x_display_pixel_height.
15046
150472008-09-19 Juanma Barranquero <lekktu@gmail.com>
15048
15049 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
15050
15051 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
15052 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
15053
150542008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
15055
15056 * dispextern.h (struct it): Move line_wrap away from the middle of
15057 bitfields. Move voffset in struct iterator_stack_entry after the
15058 bitfields. Move tab_width near after another short.
15059
150602008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
15061
15062 * frame.h (struct frame): Move alpha from the middle of bitfields.
15063
15064 * window.h (struct window): Move frozen_window_start_p after the
15065 rest of the bitfields to reduce padding.
15066
150672008-09-18 Chong Yidong <cyd@stupidchicken.com>
15068
15069 * xterm.h (x_display_info): Remove `height' and `width' members.
15070
15071 * nsterm.h (ns_display_info): Remove `height' and `width' members.
15072
15073 * w32term.h (w32_display_info): Remove `height', `width',
15074 `height_in', and `width_in' members.
15075
b8ff72fa
SM
15076 * xterm.c (x_display_pixel_height, x_display_pixel_width):
15077 New functions.
aac0c6e3
MR
15078 (x_calc_absolute_position): Use them.
15079 (x_term_init): Omit removed `height' and `width' members.
15080
b8ff72fa
SM
15081 * w32term.c (x_display_pixel_height, x_display_pixel_width):
15082 New functions.
aac0c6e3
MR
15083 (w32_read_socket, x_calc_absolute_position): Use them.
15084 (w32_initialize_display_info, w32_term_init): Omit removed members
15085 of w32_display_info.
15086
b8ff72fa
SM
15087 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
15088 New functions.
15089 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 15090
b8ff72fa
SM
15091 * xterm.c (x_display_pixel_height, x_display_pixel_width):
15092 New functions.
aac0c6e3
MR
15093 (x_calc_absolute_position): Use them.
15094 (x_term_init): Omit removed `height' and `width' members.
15095
15096 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
15097 (compute_tip_xy):
15098 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
15099 * xmenu.c (menu_position_func): Use x_display_pixel_height and
15100 x_display_pixel_width.
15101
151022008-09-18 Kenichi Handa <handa@m17n.org>
15103
15104 * composite.c (fill_gstring_header): Don't check FROM and TO here.
15105 (composition_compute_stop_pos): Fix handling of static composition.
15106 (Fcomposition_get_gstring): Check FROM and TO at first.
15107
151082008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
15109
46e722a9 15110 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
15111 mixup (YAILOM).
15112
151132008-09-17 Chong Yidong <cyd@stupidchicken.com>
15114
15115 * indent.c (Fvertical_motion): Use position reported by iterator
15116 instead of PT for determining screen motion (bug#943).
15117
151182008-09-17 Romain Francoise <romain@orebokech.com>
15119
15120 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
15121
151222008-09-17 Kenichi Handa <handa@m17n.org>
15123
15124 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
15125
15126 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
15127 if necessary.
15128
151292008-09-16 Kenichi Handa <handa@m17n.org>
15130
15131 * coding.c (make_conversion_work_buffer): Avoid calling
15132 Fget_buffer_create if it is not necessary.
15133
151342008-09-15 Martin Rudalics <rudalics@gmx.at>
15135
15136 * window.c (Fselect_window): Don't update window_select_count and
15137 use_time when norecord is not nil.
15138
151392008-09-14 Kenichi Handa <handa@m17n.org>
15140
15141 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
15142 specpdl_ptr.
15143
151442008-09-12 Kenichi Handa <handa@m17n.org>
15145
15146 * indent.c (scan_for_column): Don't handle automatic composition
15147 if the current buffer is not associated with a window.
15148
15149 * composite.c (composition_reseat_it): If the current buffer is
15150 not associated with a window, ignore the automatic composition.
15151 (find_automatic_composition): Likewise.
15152
151532008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
15154
15155 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
15156 (Fgpm_mouse_stop): Use it.
15157 * termhooks.h (close_gpm): Declare.
15158 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
15159 connection if Gpm_GetEvent fails.
15160
15161 * window.c (set_window_buffer): Always preserve current-buffer.
15162
151632008-09-12 Glenn Morris <rgm@gnu.org>
15164
15165 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
15166
151672008-09-11 Glenn Morris <rgm@gnu.org>
15168
15169 * charset.c (charset-map-path): Doc fix.
15170
151712008-09-10 Kenichi Handa <handa@m17n.org>
15172
15173 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
15174
15175 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
15176 compose a grapheme cluster with the preceding base glyph.
15177
15178 * composite.c (composition_compute_stop_pos): Fix previous change.
15179 Reset cmp_it->id to -1 at first.
15180
151812008-09-10 Glenn Morris <rgm@gnu.org>
15182
15183 * Makefile.in (character.o, chartab.o): Fix config.h typo.
15184
151852008-09-09 Chong Yidong <cyd@stupidchicken.com>
15186
15187 * keyboard.c (read_key_sequence): Reapply translation maps when
15188 switching keyboards.
15189
151902008-09-09 Kenichi Handa <handa@m17n.org>
15191
15192 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
15193 characters.
15194
15195 * composite.c (FORWARD_CHAR): Fix calculation
15196 of (POSITION).pos_byte.
15197 (composition_compute_stop_pos): Limit the search of composition to
15198 at most 500 characters ahead. If we reach the limit or find a
15199 newline, set cmp_it->ch to -2 and return 0.
15200 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
15201
152022008-09-08 Kenichi Handa <handa@m17n.org>
15203
15204 * indent.c (Fvertical_motion): Be sure to set
15205 it_overshoot_expected if it.cmp_it.id is non-negative.
15206
152072008-09-07 Andreas Schwab <schwab@suse.de>
15208
15209 * callproc.c (Fcall_process): Don't hold references to string data
15210 across garbage collection. Move initialisation of new_argv down
15211 to avoid compiler bug.
15212
152132008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
15214
15215 * process.c (Fsystem_process_attributes): Doc fix.
15216
152172008-09-07 Chong Yidong <cyd@stupidchicken.com>
15218
15219 * callproc.c (Fcall_process): Canonicalize current directory name.
15220
15221 * xdisp.c (move_it_to): When moving by vpos, ensure that the
15222 iterator advances to the next line if the current line ends in a
15223 continued tab.
15224
152252008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
15226
15227 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
15228 member to point to cmp_from.
15229
15230 * xdisp.c: Doc fix for references to gidx data member.
15231
152322008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
15233
15234 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
15235
152362008-09-07 Kenichi Handa <handa@m17n.org>
15237
15238 * composite.c (FORWARD_CHAR): Check STOP after
15239 incrementing (POSITION).pos.
15240
152412008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
15242
15243 * process.c (Fsystem_process_attributes): Doc fix.
15244
152452008-09-06 Chong Yidong <cyd@stupidchicken.com>
15246
15247 * keyboard.c (Ftop_level): Doc fix.
15248
152492008-09-06 Eli Zaretskii <eliz@gnu.org>
15250
15251 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
15252 minibuffer, don't let lower part of menu invade the echo area.
15253
15254 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
15255 "char *q" to access menu text and advance through it. Revert the
15256 change that displayed ">" instead of ASCII character 0x10.
15257
152582008-09-05 Eli Zaretskii <eliz@gnu.org>
15259
15260 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
15261 toggle boxes and radio buttons on MS-DOS as well.
15262
152632008-09-05 Kenichi Handa <handa@m17n.org>
15264
15265 * composite.c (autocmp_chars): Check lookback count.
15266 (composition_compute_stop_pos): Set cmp_it->lookback.
15267 (composition_reseat_it): Check lookback count.
15268 (struct position_record): New struct.
15269 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
15270 (find_automatic_composition): New function.
15271 (composition_adjust_point): Use find_automatic_composition.
15272
15273 * dispextern.h (struct composition_it): New member lookback.
15274
152752008-09-02 Chong Yidong <cyd@stupidchicken.com>
15276
15277 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
15278 if moving by a single line.
15279
152802008-09-02 Andreas Schwab <schwab@suse.de>
15281
15282 * xterm.c (x_delete_display): Fix merge error.
15283
15284 * fileio.c (Fexpand_file_name): Remove unused variables.
15285
152862008-09-02 Eli Zaretskii <eliz@gnu.org>
15287
15288 * fileio.c (Fexpand_file_name): Copy argument `name' into local
15289 storage on all platforms, not just on DOS_NT.
15290
152912008-09-02 Jason Rumney <jasonr@gnu.org>
15292
b8ff72fa
SM
15293 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
15294 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
15295
152962008-09-01 Chong Yidong <cyd@stupidchicken.com>
15297
15298 * xfaces.c (Finternal_set_alternative_font_family_alist)
15299 (Finternal_set_alternative_font_registry_alist): Properly copy
15300 entire alist structure.
15301
153022008-09-01 Kenichi Handa <handa@m17n.org>
15303
d66c0241 15304 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 15305 representative chars of the script is a vector.
d66c0241
JB
15306 (ftfont_list): Handle the case where the representative chars of
15307 the script is a vector.
aac0c6e3
MR
15308
15309 * character.c (syms_of_character): Docstring of
15310 script-representative-chars fixed.
15311
153122008-08-31 Eli Zaretskii <eliz@gnu.org>
15313
15314 * msdos.c (BUILD_CHAR_GLYPH): New macro.
15315 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
15316 the menu. Allocate larger buffer for `text', to account for
15317 possible ^C characters.
15318
153192008-08-31 Martin Rudalics <rudalics@gmx.at>
15320
15321 * xdisp.c (prepare_menu_bars): Don't call
15322 Vwindow_size_change_functions with arg Qt.
15323
153242008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
15325
15326 * font.h (font_range):
15327 * fileio.c (report_file_error):
46e722a9
SM
15328 * composite.c (composition_update_it): Yet another int/Lisp_Object
15329 mixup (YAILOM).
aac0c6e3
MR
15330
153312008-08-30 Glenn Morris <rgm@gnu.org>
15332
15333 * data.c (Fmake_variable_frame_local): Doc fix.
15334
15335 * frame.c (Fmodify_frame_parameters): Doc fix.
15336
153372008-08-30 Eli Zaretskii <eliz@gnu.org>
15338
15339 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
15340 needed by GetTokenInformation.
15341 (w32_system_process_attributes): Check return values of all system
15342 APIs.
15343
15344 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
15345 only when the state changes.
15346 (IT_update_begin, IT_update_end): Add termscript trace.
15347
15348 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
15349 clipboard is unavailable. Set dst to NULL if it doesn't point to
15350 malloc'ed data.
15351 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
15352 passing random values to xfree.
15353
15354 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 15355 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
15356
153572008-08-29 Jason Rumney <jasonr@gnu.org>
15358
15359 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
15360
153612008-08-29 Eli Zaretskii <eliz@gnu.org>
15362
15363 * composite.c (fill_gstring_body): Avoid compiler warnings.
15364
15365 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
15366 LGLYPH_SET_CODE to avoid compiler warnings.
15367
2ae37cf0 15368 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
15369
15370 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
15371
15372 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
15373 LGLYPH_SET_CODE.
15374
153752008-08-29 Kenichi Handa <handa@m17n.org>
15376
15377 * fileio.c (report_file_error): Don't downcase the first character
15378 of errstring if it is still unibyte.
15379
153802008-08-29 Kenichi Handa <handa@m17n.org>
15381
15382 These changes are to re-implement the automatic composition so
15383 that it doesn't use text properties.
15384
15385 * Makefile.in (ftfont.o): Depend on composite.h.
15386 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
15387
15388 * character.h (Vunicode_category_table): Extern it.
15389
15390 * character.c (Vunicode_category_table): New variable.
15391 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
15392
15393 * chartab.c (optimize_sub_char_table): Perform more greedy
15394 optimization.
15395
b8ff72fa
SM
15396 * composite.h (enum composition_method):
15397 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
15398 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
15399 (Vcomposition_function_table): Extern it.
15400 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
15401 (composition_gstring_put_cache, composition_gstring_from_id)
15402 (composition_gstring_p, composition_gstring_width)
15403 (composition_compute_stop_pos, composition_reseat_it)
15404 (composition_update_it, composition_adjust_point): Extern them.
15405 (Fcomposition_get_gstring): EXFUN it.
15406
d66c0241 15407 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
15408 (Vcomposition_function_table)
15409 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
15410 (gstring_hash_table, gstring_work, gstring_work_headers):
15411 New variables.
aac0c6e3
MR
15412 (gstring_lookup_cache, composition_gstring_put_cache)
15413 (composition_gstring_from_id, composition_gstring_p)
15414 (composition_gstring_width, fill_gstring_header)
15415 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
15416 (composition_reseat_it, composition_update_it)
b8ff72fa 15417 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
15418 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
15419 and gstring_work_headers. DEFVAR_LISP composition-function-table.
a73f9c9d 15420 Defsubr composition_get_gstring.
aac0c6e3
MR
15421
15422 * dispextern.h (struct glyph): New union u.cmp. Delete the member
15423 cmp_id.
15424 (struct glyph_string): Delete the member gidx. New members
15425 cmp_id, cmp_from, and cmp_to.
15426 (enum it_method): Delete GET_FROM_COMPOSITION.
15427 (struct composition_it): New struct.
15428 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
15429 Delete c, len, cmp_id, cmp_len in u.comp.
15430
15431 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 15432 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 15433 (enum lglyph_indices): Likewise.
b8ff72fa 15434 (font_range): Adjust extern.
aac0c6e3
MR
15435 (font_fill_lglyph_metrics): Extern it.
15436
15437 * font.c (QCf): New variable.
15438 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
15439 (font_prepare_composition): Delete this function.
15440 (font_range): Type and arguments changed.
15441 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
15442 (font_fill_lglyph_metrics): New function.
b8ff72fa 15443 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 15444 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
15445 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
15446 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
15447
15448 * fontset.h (font_for_char): Extern it.
15449
15450 * fontset.c (font_for_char): New function.
15451
15452 * ftfont.c: Include composite.h.
15453 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 15454 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
15455
15456 * indent.c: Include composite.h and dispextern.h.
15457 (check_composition): Delete this function.
15458 (scan_for_column): Handle composition by
15459 composition_compute_stop_pos, composition_reseat_it, and
15460 composition_update_it.
15461 (compute_motion): Likewise.
15462 (Fvertical_motion): Fix checking of composition.
15463
15464 * keyboard.c (adjust_point_for_property): Check composition by
15465 composition_adjust_point.
15466
b8ff72fa 15467 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
15468 struct glyph_string.
15469
b8ff72fa
SM
15470 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
15471 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
15472 struct glyph.
15473 (produce_composite_glyph): Likewise.
15474
b8ff72fa
SM
15475 * w32term.c (x_draw_composite_glyph_string_foreground):
15476 Adjust for the change of struct glyph_string.
aac0c6e3
MR
15477 (x_draw_glyph_string): Likewise.
15478
15479 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
15480 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
15481
15482 * xdisp.c: Include font.h.
15483 (it_props): Delete the entry for Qauto_composed.
15484 (init_iterator): Initialize it->cmp_it.id to -1.
15485 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 15486 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
15487 (handle_auto_composed_prop): Delete it.
15488 (handle_composition_prop): Handle only static composition.
15489 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
15490 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 15491 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
15492 (pop_it): Likewise.
15493 (get_next_element): Delete next_element_from_composition.
15494 (CHAR_COMPOSED_P): New macro.
15495 (get_next_display_element): For automatic composition, get a face
15496 from the font in the glyph-string.
15497 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 15498 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
15499 (next_element_from_string): Check if the character at the current
15500 position is composed by CHAR_COMPOSED_P.
15501 (next_element_from_buffer): Likewise.
d66c0241
JB
15502 (next_element_from_composition): Adjust for the change of struct it.
15503 Update it->cmp_it.
b8ff72fa
SM
15504 (dump_glyph): Adjust for the change of struct glyph.
15505 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
15506 it and struct glyph. Don't handle automatic composition here.
15507 (fill_gstring_glyph_string): New function.
15508 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 15509 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
15510 (BUILD_GSTRING_GLYPH_STRING): New macro.
15511 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
15512 automatic composition.
b8ff72fa 15513 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 15514 struct glyph.
b8ff72fa 15515 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 15516
b8ff72fa 15517 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
15518 the change of struct glyph_string.
15519 (x_draw_glyph_string): Likewise.
15520
155212008-08-29 Glenn Morris <rgm@gnu.org>
15522
15523 * buffer.c (word-wrap): Doc fix.
15524 * xdisp.c (truncate-partial-width-windows): Doc fix.
15525 Increase default to 50.
15526
155272008-08-29 Chong Yidong <cyd@stupidchicken.com>
15528
15529 * xdisp.c (update_tool_bar_unwind): New function.
15530 (update_tool_bar): Temporarily set selected frame before building
15531 tool-bar items.
15532
155332008-08-28 Michael Albinus <michael.albinus@gmx.de>
15534
15535 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
15536 snprintf, respectively.
15537 (xd_append_arg): Convert strings with Fstring_make_unibyte.
15538
155392008-08-28 Chong Yidong <cyd@stupidchicken.com>
15540
15541 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
15542 LDFLAGS to GNUstep CC invocation.
15543
155442008-08-27 Chong Yidong <cyd@stupidchicken.com>
15545
15546 * indent.c (Fvertical_motion): Revert last change. Handle the
15547 general case where we are moving forward, and PT spans multiple
15548 screen lines.
15549
15550 * eval.c (find_handler_clause): Temporarily increase
15551 max-lisp-eval-depth while printing the backtrace buffer, to
15552 guarantee that help-mode code can run.
15553
155542008-08-27 Eli Zaretskii <eliz@gnu.org>
15555
15556 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
15557 colors under -rv.
15558 (IT_set_frame_parameters): Don't swap foreground and background
15559 colors if `(reverse . t)' is present in the frame properties.
15560 (internal_terminal_init): Call init_frame_faces only for the
15561 initial frame.
15562
155632008-08-27 Andreas Schwab <schwab@suse.de>
15564
15565 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
15566
155672008-08-27 Andreas Schwab <schwab@suse.de>
15568
15569 * search.c (search_buffer): Set char_base to zero only at the end.
15570
155712008-08-27 Kenichi Handa <handa@m17n.org>
15572
b8ff72fa 15573 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
15574
155752008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
15576
15577 * xterm.c (x_term_init): Temporarily hide the partially
15578 initialized terminal while calling vendor-specific-keysyms.
15579
155802008-08-26 Eli Zaretskii <eliz@gnu.org>
15581
15582 * msdos.c (internal_terminal_init): Most initializations done only
15583 once, especially initial_screen_colors[] and termscript open.
15584
155852008-08-26 Chong Yidong <cyd@stupidchicken.com>
15586
15587 * eval.c (Fcondition_case): Doc fix.
15588
15589 * widgetprv.h (EmacsFramePart): Change font member to the new font
15590 struct.
15591
15592 * widget.c: Include character.h and font.h for XSETFONT.
15593 (setup_frame_gcs): Compute X font id from font struct, just once.
15594
155952008-08-26 Eli Zaretskii <eliz@gnu.org>
15596
15597 * term.c (get_named_tty): Fix last change.
15598
155992008-08-26 Chong Yidong <cyd@stupidchicken.com>
15600
15601 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 15602 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
15603
156042008-08-25 Eli Zaretskii <eliz@gnu.org>
15605
15606 * frame.c (do_switch_frame): Mark previously displayed frame as
15607 obscured for FRAME_MSDOS_P frames as well.
15608
156092008-08-24 Eli Zaretskii <eliz@gnu.org>
15610
15611 * frame.c (make_terminal_frame): Initialize f->terminal,
15612 f->terminal->reference_count, and scroll bars on MS-DOS as well.
15613 Set the top frame to newly created frame.
15614 (Fmake_terminal_frame): Reuse the_only_display_info.
15615
15616 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
15617 estimating available memory.
15618
b97439ce 156192008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
15620
15621 * nsterm.m (ns_draw_window_cursor): Don't call
15622 NSDisableScreenUpdates and NSEnableScreenUpdates on
15623 non-NS_IMPL_COCOA systems.
15624
156252008-08-23 Andreas Schwab <schwab@suse.de>
15626
15627 * process.c (procfs_system_process_attributes): Fix use of
15628 uninitialized variables.
15629
156302008-08-23 Eli Zaretskii <eliz@gnu.org>
15631
15632 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
15633
15634 * dispnew.c (init_display): Remove MS-DOS specific conditions for
15635 calling tty-set-up-initial-frame-faces.
15636
b8ff72fa
SM
15637 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
15638 Allow MSDOS frames along with X frames.
aac0c6e3
MR
15639
15640 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
15641 addition to output_termcap.
15642
15643 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
15644
15645 * termchar.h (FRAME_TTY): Support output_msdos_raw.
15646 (struct tty_display_info) [MSDOS]: Add fields related to mouse
15647 highlight.
15648
15649 * process.c [!subprocesses]: Define QCname.
15650 (syms_of_process): Intern and staticpro it.
15651
15652 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
15653 Adjust for changes in encoding/decoding routines.
15654 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
15655 encode_coding and decode_coding.
15656
b8ff72fa 15657 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
15658
15659 * dosfns.c: Include frame.h before termhooks.h.
15660 (dos_cleanup): Use CURTTY ()->termscript instead of a global
15661 variable termscript.
15662
15663 * s/msdos.h (USER_FULL_NAME): Define.
15664 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
15665
15666 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
15667 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
15668 pw->pw_gecos.
15669
15670 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
15671 SELECTED_FRAME as additional (1st) argument.
15672 (tty_read_avail_input): Handle output_msdos_raw in
15673 addition to output_termcap.
15674
15675 * msdos.c: Include frame.h before termhooks.h.
15676 (mouse_on, mouse_off, mouse_moveto, mouse_init)
15677 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
15678 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
15679 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
15680 (IT_set_terminal_modes, IT_reset_terminal_modes)
15681 (IT_set_frame_parameters): Use tty->termscript instead of a global
15682 variable termscript.
15683 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
15684 global variable terminal_coding. Don't refer to
15685 Vnonascii_translation_table.
15686 (internal_terminal_init): Set Vwindow_system in current_kboard.
15687 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
15688 Announce date and time of session start, if termscript is open.
15689 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
15690 term.c:init_tty). Open termscript only of not already open.
15691 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
15692 here instead of dos_ttraw. Don't initialize display if this is an
15693 initial tty. Don't set FRAME_FONT.
15694 (Vwindow_system_version): Bump to 23.
15695 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
15696 is available, set up mouse_position_hook.
15697 (dos_ttraw, IT_set_terminal_modes): If called with initial
15698 terminal, do nothing.
15699 (IT_set_frame_parameters): Handle the Qtty_type frame
15700 parameter by calling internal_terminal_init.
15701 (dos_set_window_size, show_mouse_face)
15702 (clear_mouse_face, IT_note_mode_line_highlight)
15703 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
15704 (dos_rawgetc): Use tty_display_info instead of x_display_info.
15705 (initialize_msdos_display): New function.
15706 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
15707 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
15708 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
15709 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 15710 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
15711 (request_sigio, unrequest_sigio): Don't define, now defined on
15712 sysdep.c.
15713 (IT_write_glyphs): Rewrite to use encode_terminal_code.
15714
15715 * term.c [MSDOS]: Include msdos.h.
15716 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
15717 conditional to DOS_NT. Allow only one call to this function in a
15718 session. Don't allocate a new struct tty_display_info; instead,
15719 reuse the_only_display_info. Call get_tty_size to get screen
15720 dimensions. Call init_baud_rate to set bad_rate.
15721 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
15722 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 15723 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
15724 (get_tty_terminal, get_named_tty, Ftty_type)
15725 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
15726 output_termcap.
b8ff72fa
SM
15727 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
15728 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 15729 only when subprocesses are supported.
aac0c6e3
MR
15730
15731 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
15732 f->output_data.x.
15733 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
15734 terminal devices.
15735
5582fbc7 15736 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
15737 x_output.
15738 (FRAME_FONT): Use output_data.tty.
15739 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
15740 (struct x_display_info): Rename from display_info. Update all users in
15741 msdos.c.
aac0c6e3 15742 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 15743 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
15744 (dos_ttraw): Update prototype.
15745
15746 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
15747 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
15748
157492008-08-23 Jason Rumney <jasonr@gnu.org>
15750
15751 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
15752 (fn_TIFFSetDirectory): New library function used.
15753 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
15754 (tiff_load): Use :index to select among multiple images. Set count
15755 property when multiple images exist.
15756 (gif_format): Use :index, not :image.
15757
157582008-08-23 Chong Yidong <cyd@stupidchicken.com>
15759
15760 * xdisp.c (try_scrolling): Check INT_MAX instead of
15761 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
15762 to obtain INT_MAX.
15763
157642008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
15765
15766 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
15767
157682008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
15769
15770 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
15771 GNUstep library location.
15772
157732008-08-21 Chong Yidong <cyd@stupidchicken.com>
15774
15775 * xfaces.c (x_update_menu_appearance): Check validity of menu font
15776 before using it.
15777
15778 * puresize.h (BASE_PURESIZE): Increase to 1250000.
15779
157802008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
15781
15782 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
15783 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
15784 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
15785 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
15786 (EmacsApp-cursor_blink_handler): Remove declaration.
15787 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
15788 match 01 Feb 2008 changes in xterm.c.
15789 (ns_read_socket): Add cast to avoid warning.
15790 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
15791 GNUstep.
15792
157932008-08-20 Chong Yidong <cyd@stupidchicken.com>
15794
15795 * xselect.c (x_get_foreign_selection): Return nil if desired
15796 selection could not be obtained, instead of signalling an error.
15797
157982008-08-20 David Reitter <david.reitter@gmail.com>
15799
15800 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
15801 * nsterm.m: Remove ns-specific code for cursor blinking.
15802 (ns_draw_window_cursor): Clear cursor properly rather than
15803 redrawing the area. Respect width of bar cursors.
15804 These changes enable the use of generic blink-cursor-mode and
15805 generic cursor types in NS and support smooth cursor movements (do
15806 not blink off after command).
15807 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
15808 Nextstep, too.
15809
158102008-08-19 Kenichi Handa <handa@m17n.org>
15811
15812 * font.c (Vfont_log_deferred): New variable.
15813 (font_add_log): Check Vfont_log_deferred.
15814 (font_deferred_log): New function.
15815
15816 * font.h (font_deferred_log): Extern it.
15817
15818 * fontset.c (reorder_font_vector): Use encoding charset of fonts
15819 for sorting.
15820 (face_for_char): Use deferred log.
15821
158222008-08-18 Kenichi Handa <handa@m17n.org>
15823
15824 * fontset.c (face_for_char): Add font log.
15825
15826 * font.c (font_add_log): Add the font properties :script, :lang,
15827 and :otf in the log.
15828
158292008-08-17 Chong Yidong <cyd@stupidchicken.com>
15830
15831 * xdisp.c: Remove dead code.
15832 (handle_invisible_prop, next_overlay_string): Defer call to
15833 setup_for_ellipsis.
15834 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
15835
158362008-08-15 Chong Yidong <cyd@stupidchicken.com>
15837
15838 * xfaces.c (lookup_derived_face): Properly handle possible zero
15839 return value of get_lface_attributes.
15840 (merge_faces): Don't tell lookup_derived_face to signal an error
15841 if face is not found.
15842
15843 * dired.c (Fdirectory_files): Doc fix.
15844
15845 * process.c (make_process): Initialize kill_without_query struct
15846 member.
15847
158482008-08-15 Eli Zaretskii <eliz@gnu.org>
15849
15850 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
15851 Alternative calculation of totphys for Visual Studio 6.
15852
15853 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
15854
15855 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
15856 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
15857 All users changed.
15858 (stat): Only root directory passed to GetDriveType. Allow RAM
15859 disk as well as local fixed disk when w32-get-true-file-attributes
15860 is set to `local'.
15861 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
15862 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
15863 (w32_cached_id, w32_add_to_cache): New functions.
15864 (get_name_and_id): Look account names in the cache before calling
15865 lookup_account_sid.
15866 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
15867 New initialization flags.
15868 (globals_of_w32): Initialize them to zero.
15869 (w32_system_process_attributes): Use w32_cached_id and
15870 w32_add_to_cache.
15871
158722008-08-14 Lawrence Mitchell <wence@gmx.li>
15873
15874 * lread.c (Fread_char, Fread_char_exclusive): If no character
15875 event is read before timeout is reached, return nil, rather than
15876 converting to a number.
15877
158782008-08-14 Chong Yidong <cyd@stupidchicken.com>
15879
15880 * fns.c (use_dialog_box): Doc fix.
15881
15882 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
15883 on OS X.
15884
158852008-08-13 Chong Yidong <cyd@stupidchicken.com>
15886
15887 * frame.c (Qns_parse_geometry): New var.
15888 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
15889
158902008-08-11 Chong Yidong <cyd@stupidchicken.com>
15891
15892 * xdisp.c (x_produce_glyphs): Handle the case when font has no
15893 space character in calculating tabs.
15894
158952008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
15896
15897 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
15898
158992008-08-10 Glenn Morris <rgm@gnu.org>
15900
15901 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
15902 silence gcc "limited range of data type" warnings in some
15903 make_fixnum_or_float calls.
15904
159052008-08-09 Eli Zaretskii <eliz@gnu.org>
15906
15907 * w32.c (w32_system_process_attributes): If the process does not
15908 exist, return nil.
15909
15910 * w32.c: Include thelp32.h, psapi.h and coding.h.
15911 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
15912 declarations.
15913 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
15914 (Process32Next_Proc): New typedefs.
15915 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
15916 (g_b_init_process32_next, g_b_init_open_thread_token)
15917 (g_b_init_impersonate_self, g_b_init_revert_to_self)
15918 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
15919 (g_b_init_get_process_working_set_size)
15920 (g_b_init_global_memory_status_ex): New static variables.
15921 (globals_of_w32): Initialize them.
15922 (create_toolhelp32_snapshot, process32_first, process32_next)
15923 (open_thread_token, impersonate_self, revert_to_self)
15924 (get_process_memory_info, get_process_working_set_size)
15925 (global_memory_status, global_memory_status_ex): New wrapper
15926 functions.
15927 (w32_list_system_processes, w32_system_process_attributes)
15928 (enable_privilege, restore_privilege, ltime, process_times):
15929 New functions.
15930 (convert_time_raw): New function.
15931 (convert_time): Remove conversion of FILETIME into time in 100
15932 nsec units, call convert_time_raw instead.
15933
15934 * process.h (w32_list_system_processes, w32_system_process_attributes):
15935 Add prototypes.
15936 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
15937 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
15938 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
15939 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
15940
15941 * process.c (Fsystem_process_attributes): Doc fix.
15942
159432008-08-08 Chong Yidong <cyd@stupidchicken.com>
15944
15945 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
15946 a continued multi-char glyph; if so, advance to the actual glyph.
15947
159482008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
15949
15950 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
15951
15952 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
15953 (.m.o): Use it.
15954 * config.in: Regenerate.
15955
159562008-08-07 Chong Yidong <cyd@stupidchicken.com>
15957
15958 * xdisp.c (redisplay_window): Revert last change.
15959 (try_window): Check bottom scroll margin too.
15960
159612008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
15962
15963 * config.in: Regenerate.
15964
15965 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
15966 -list-load-path-shadows'.
15967 (nsgui.h): Reduce number of things depending on it.
15968
159692008-08-06 Chong Yidong <cyd@stupidchicken.com>
15970
15971 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
15972 instead of window-end which does the wrong thing at eob.
15973 (try_cursor_movement): Minor optimization.
15974 (redisplay_window): If scroll margin is defined, don't assume
15975 window doesn't need scrolling.
15976
159772008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
15978
15979 * config.in: Regenerate.
15980
15981 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
15982 (mostlyclean): Don't delete *.d under NS.
15983
15984 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
15985
159862008-08-06 Kenichi Handa <handa@m17n.org>
15987
15988 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
15989
159902008-08-06 Andreas Schwab <schwab@suse.de>
15991
15992 * config.in: Regenerate.
15993
159942008-08-05 Chong Yidong <cyd@stupidchicken.com>
15995
15996 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
15997 forcing a window start.
15998
15999 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
16000 (auto_save_1): Update modtime when auto-save-list-file-name is on.
16001
160022008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
16003
16004 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
16005 argument.
16006
160072008-08-05 Juanma Barranquero <lekktu@gmail.com>
16008
16009 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
16010 <scroll-down-aggressively, before-change-functions>:
16011 <after-change-functions>: Reflow docstrings.
16012
160132008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
acd0102a 16014 Ken Raeburn <raeburn@gnu.org>
aac0c6e3
MR
16015
16016 Dock menu customization, based on a patch by Ken Raeburn, plus some
16017 other fixes.
16018 * nsmenu.m (dockMenu): New variable.
16019 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
16020
16021 * nsterm.h (dockMenu): Declare.
16022
16023 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
16024 (ns_term_init): Initialize dockMenu.
16025 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
16026 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
16027 left.
16028
16029 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
16030
160312008-08-04 Chong Yidong <cyd@stupidchicken.com>
16032
16033 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
16034
16035 * config.in: Regenerate.
16036
160372008-08-04 Seiji Zenitani <zenitani@mac.com>
16038
16039 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
16040
160412008-08-04 Chong Yidong <cyd@stupidchicken.com>
16042
16043 * nsterm.h (find_and_call_menu_selection): Fix prototype.
16044
160452008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
16046
16047 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
16048
16049 * keyboard.h: Comment an #endif.
16050
16051 * lisp.h (have_menus_p): Adjust comment.
16052
16053 * menu.c (find_and_return_menu_selection): Fix comparison with
16054 client_data.
16055
16056 * nsmenu.m (popup_activated_flag): New variable.
16057 (popup_activated): New function.
16058 (menu-or-popup-active-p): New exported lisp definition.
16059 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
16060 when popup done.
16061 (ns_popup_dialog): Set popup_activated_flag.
16062
16063 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
16064 version for GNUstep (handled by conditional typedef in nsterm.m).
16065 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
16066 in rgb.txt).
16067
16068 * process.c (init_process): Use DARWIN_OS, not DARWIN.
16069
16070 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
16071
16072 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
16073
16074 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
16075 shortcircuit if popup_activated like GTK and X toolkit.
16076
16077 * m/inter386.h: Change DARWIN to DARWIN_OS.
16078
16079 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
16080 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
bba3e508
SM
16081 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood.
16082 Expand comment on NO_SOCK_SIGIO.
aac0c6e3
MR
16083
160842008-08-03 Chong Yidong <cyd@stupidchicken.com>
16085
16086 * nsterm.m (windowDidResize): Remove stopModal call.
16087
160882008-08-03 Andreas Schwab <schwab@suse.de>
16089
16090 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
16091 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
16092
160932008-08-02 Chong Yidong <cyd@stupidchicken.com>
16094
16095 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
16096 Don't use uninitialized pointer variable when using getrlimit.
16097
160982008-08-02 Jason Rumney <jasonr@gnu.org>
16099
16100 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
16101
161022008-08-02 Eli Zaretskii <eliz@gnu.org>
16103
16104 * alloc.c (NSTATICS): Bump to 0x640.
16105
16106 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
16107
16108 * lisp.h: Add prototype for directory_files_internal.
16109
16110 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
16111 New functions.
16112 (syms_of_process): Defsubr them. Add initializations for various
16113 Q* symbols used in procfs_system_process_attributes.
16114 (procfs_list_system_processes, procfs_system_process_attributes)
16115 [HAVE_PROCFS]: New functions.
16116 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
16117 (procfs_get_total_memory): New functions.
16118
161192008-08-01 Juanma Barranquero <lekktu@gmail.com>
16120
16121 * xfaces.c (Fx_load_color_file): Fix previous change;
16122 it is #ifdef WINDOWSNT, not WINDOWS_NT.
16123
161242008-08-01 Michael Albinus <michael.albinus@gmx.de>
16125
16126 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
16127
161282008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
16129
16130 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
16131
161322008-08-01 Chong Yidong <cyd@stupidchicken.com>
16133
16134 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
16135
16136 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
16137 define NSApplicationDelegateReplySuccess.
16138 (EmacsView -converstationIdentifier): Use long instead of
16139 NSInteger for GNUstep, since it doesn't have NSInteger.
16140
16141 * xmenu.c: Revert last change.
16142
16143 * keyboard.h: Fix last change.
16144
161452008-08-01 Juanma Barranquero <lekktu@gmail.com>
16146
16147 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
16148 on Windows.
16149
161502008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
16151
16152 Warning clearing and clean-up in NS port.
16153 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
16154 Add prototypes.
16155 * nsgui.h (FACE_DEFAULT): Remove, unused.
16156 (XGCValues): Change colors to unsigned long.
16157 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
16158 nsterm.m.
16159 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
16160 (ns_list_fonts): Remove, unused.
16161 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
16162 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
16163 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
16164 (nsfont_draw): Compare face colors to 0, not nil.
16165 * nsmenu.m (struct widget_value): Drop unneeded declaration.
16166 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
16167 (-addSubmenuWithTitle:): Use NSMenuItem class.
16168 (ns_popup_menu): Use NO, not NULL, for enabled setting.
16169 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
16170 (ns_clip_to_row): Make gc arg a BOOL.
16171 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
16172 ns_clip_to_row() call.
16173 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
16174 used). Cast FRAME_FONT assignments.
16175 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
16176 (ns_string_to_lispmod): Change arg to const char.
16177 (ns_term_init): Use NSMenuItem class.
16178 (EmacsApp -openFile:): Move to different section of file.
16179 (EmacsApp -application:openFiles:): Don't return a value, call
16180 -replyToOpenOrPrint:.
16181 (EmacsView -keyDown:): Fix up cast.
16182 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
16183 (EmacsView -menuDown:): Cast tag in call to
16184 find_and_call_menu_selection().
16185 (ns_list_fonts): Remove, unused.
16186 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
16187 (ns_fontname_to_xlfd): Make static.
16188 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
16189 Remove prototypes (now in keyboard.h).
16190 (next_menubar_widget_id): Remove, unused.
16191 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
16192 Remove prototypes (now in keyboard.h).
16193 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
16194
161952008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
16196
16197 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
16198 (floatfns.o): Depend on syssignal.h.
16199 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
16200
16201 * systty.h: Fix previous change that removed BSD_TERMIOS.
16202 Add comments to #ifdefs.
16203
162042008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
16205
16206 * w32fns.c (w32-load-color-file): Remove.
16207 (x-open-connection): Use renamed Fx_load_color_file.
16208 * xfaces.c (x-load-color-file): Add.
16209 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
16210 Emacs.clr.
16211 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
16212
162132008-07-31 Michael Albinus <michael.albinus@gmx.de>
16214
16215 * dbusbind.c (Fdbus_call_method_asynchronously)
16216 (Fdbus_method_error_internal): New defuns.
16217 (xd_read_message): Handle also reply messages.
16218 (Vdbus_registered_functions_table): Extend docstring.
16219
162202008-07-31 Juanma Barranquero <lekktu@gmail.com>
16221
16222 * keyboard.c (gobble_input): Fix previous change.
16223
162242008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
16225
16226 * bitmaps/README:
16227 * xfns.c:
16228 * termcap.c:
16229 * term.c:
16230 * syswait.h:
16231 * systty.h:
16232 * systime.h:
16233 * syssignal.h:
16234 * sysdep.c:
16235 * process.h:
16236 * process.c:
16237 * print.c:
16238 * ndir.h:
16239 * lread.c:
16240 * keyboard.c:
16241 * getpagesize.h:
16242 * floatfns.c:
16243 * fileio.c:
16244 * emacs.c:
16245 * doc.c:
16246 * dispnew.c:
16247 * dired.c:
16248 * data.c:
16249 * callproc.c:
16250 * buffer.c:
16251 * README:
16252 * Makefile.in:
16253 * s/template.h:
16254 * s/msdos.h:
16255 * m/vax.h: Remove VMS support.
16256 * s/vms.h:
16257 * vlimit.h:
16258 * uaf.h:
16259 * temacs.opt:
16260 * param.h:
16261 * ioctl.h: Remove file.
16262
162632008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
16264
16265 * s/ms-w32.h (MULTI_KBOARD): Remove.
16266 * xterm.c:
16267 * xselect.c:
16268 * xfns.c:
16269 * window.c:
16270 * w32term.c:
16271 * w32fns.c:
16272 * terminal.c:
16273 * termhooks.h:
16274 * term.c:
16275 * sysdep.c:
16276 * keyboard.h:
16277 * keyboard.c:
16278 * frame.h:
16279 * frame.c:
16280 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
16281 * config.in: Regenerate.
16282
162832008-07-30 Jason Rumney <jasonr@gnu.org>
16284
16285 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
16286
16287 * w32font.c (w32font_encode_char): Leave as unicode if in range.
16288 (w32font_open_internal): Get unicode version of textmetrics.
16289 Don't enable or disable glyph indices here.
16290 (w32font_open): Disable use of glyph indices.
16291
16292 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
16293
162942008-07-30 Chong Yidong <cyd@stupidchicken.com>
16295
16296 * minibuf.c (Vread_buffer_function): Doc fix.
16297
162982008-07-30 John Paul Wallington <jpw@pobox.com>
16299
16300 * minibuf.c (read_buffer_completion_ignore_case): New var.
16301 (Fread_buffer): Use it.
16302
163032008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
16304
16305 * systty.h (sensemode): Remove empty #if. Remove reference to
16306 BSD_TERMIOS, unused.
16307
16308 * sysdep.c: Remove reference to DGUX.
16309 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
16310
16311 * config.in: Regenerate.
16312
163132008-07-30 Jason Rumney <jasonr@gnu.org>
16314
16315 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
16316
163172008-07-29 Jason Rumney <jasonr@gnu.org>
16318
16319 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
16320 is populated.
16321 (uniscribe_encode_char): Always use uniscribe.
16322 Avoid using context if cache is populated.
16323
163242008-07-29 Jan Djärv <jan.h.d@swipnet.se>
16325
16326 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
16327 open menu.
16328
16329 * gtkutil.c (menu_nav_ended): Remove.
16330 (create_menus): Remove signal connect for menu_nav_ended.
16331
163322008-07-28 Chong Yidong <cyd@stupidchicken.com>
16333
16334 * xdisp.c (redisplay_window): Check return value of
16335 compute_window_start_on_continuation_line before forcing a window
16336 start.
16337
163382008-07-28 Jason Rumney <jasonr@gnu.org>
16339
16340 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
16341
16342 * w32term.c (w32_enable_unicode_output, cleartype_active):
16343 Remove obsolete display options.
16344 (x_draw_glyph_string_background): Don't use old cleartype_active
16345 workaround.
16346 (w32_initialize): Remove cleartype_active initialization.
16347 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
16348
163492008-07-28 Andreas Schwab <schwab@suse.de>
16350
16351 * lisp.h (init_weak_hash_tables, syms_of_font)
16352 (xd_read_queued_messages, syms_of_dbusbind): Declare.
16353 (remove_hash_entry): Don't declare.
16354 * eval.c (maybe_call_debugger): Make static and move before use.
16355 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
16356 * xdisp.c: Include "gtkutil.h" if USE_GTK.
16357 * xterm.h (x_set_frame_alpha): Declare.
16358
163592008-07-28 Jan Djärv <jan.h.d@swipnet.se>
16360
16361 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
16362 (create_menus): Connect selection-done to menu_nav_ended.
16363
163642008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
16365
16366 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
16367 Set Vx_resource_name to a fallback. Replace read of 'buffered'
16368 parameter with read of 'alpha' one.
16369 (Qns_frame_parameter): Remove.
5582fbc7 16370 * nsselect.m (selection-coding-system)
aac0c6e3
MR
16371 (next-selection-coding-system, Vselection_coding_system)
16372 (Vnext_selection_coding_system): Drop.
16373
163742008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
16375
16376 * nsfns.m (do-applescript, do_applescript): Rename to
16377 ns-do-applescript, ns_do_applescript, and move within file.
16378
163792008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
16380
16381 Remove support for Mac Carbon.
16382 * mactoolbox.c:
16383 * macterm.h:
16384 * macterm.c:
16385 * macselect.c:
16386 * macmenu.c:
16387 * macgui.h:
16388 * macfns.c:
16389 * mac.c: Remove file.
16390 * s/darwin.h:
16391 * m/intel386.h:
16392 * xfaces.c:
16393 * xdisp.c:
16394 * window.c:
16395 * tparam.c:
16396 * termhooks.h:
16397 * termcap.c:
16398 * term.c:
16399 * syssignal.h:
16400 * sysselect.h:
16401 * sysdep.c:
16402 * process.c:
16403 * lread.c:
16404 * lisp.h:
16405 * keyboard.c:
16406 * image.c:
16407 * fringe.c:
16408 * frame.h:
16409 * frame.c:
16410 * fontset.c:
16411 * font.h:
16412 * font.c:
16413 * fns.c:
16414 * fileio.c:
16415 * emacs.c:
16416 * dispnew.c:
16417 * dispextern.h:
16418 * config.in:
16419 * atimer.c:
2ae37cf0 16420 * Makefile.in: Remove code for Carbon.
aac0c6e3 16421
f0131492 164222008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
16423
16424 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
16425
164262008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16427
16428 * macterm.h (kCGBitmapByteOrder32Host): New define for
16429 non-universal SDKs.
16430
16431 * image.c (mac_create_cg_image_from_image, image_load_image_io)
16432 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
16433
16434 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
16435 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
16436
164372008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
16438
16439 * w32inevt.c: Include dispextern.h.
16440
164412008-07-26 Andreas Schwab <schwab@suse.de>
16442
16443 * print.c (print_object): Fix off-by-one in last change.
16444
164452008-07-25 Juanma Barranquero <lekktu@gmail.com>
16446
16447 * term.c (syms_of_term): Don't initialize default_orig_pair,
16448 default_set_foreground and default_set_background on Windows.
16449
164502008-07-25 Jason Rumney <jasonr@gnu.org>
16451
16452 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
16453 ScriptItemize. Clean up return value checking. Remove unused
16454 variables.
16455 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
16456 shaping engine.
16457
16458 * w32font.c (w32font_has_char): Handle the case where we can't
16459 determine the script for a character.
16460
164612008-07-25 Chong Yidong <cyd@stupidchicken.com>
16462
16463 * term.c (syms_of_term): Initialize default_orig_pair,
16464 default_set_foreground, and default_set_background.
16465
16466 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
16467 clash (bug#86).
16468 (getloadavg): Callers changed.
16469
16470 * image.c (svg_load_image): Fix last change.
16471 (svg_load_image): Use rsvg_handle_get_dimensions to check that
16472 image size is valid. Use g_object_unref instead of deprecated
16473 rsvg_handle_free to free rsvg handle.
16474 (x_from_xcolors): Don't initialize pixmap (silence compiler).
16475
164762008-07-25 Jason Rumney <jasonr@gnu.org>
16477
16478 * w32font.c (w32font_encode_char): Encode characters outside BMP as
16479 surrogates before looking up glyph index.
16480 (w32font_text_extents): Encode as surrogates if falling back to
16481 functions that need UTF-16 wide chars.
16482
16483 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
16484 BMP as surrogates before looking up glyph index.
16485
164862008-07-25 Chong Yidong <cyd@stupidchicken.com>
16487
16488 * image.c (svg_load_image): Check for failure in return value of
16489 rsvg_handle_get_pixbuf. Free rsvg handle when done.
16490
164912008-07-25 Jason Rumney <jasonr@gnu.org>
16492
16493 * w32font.c (Fx_select_font): Reverse sense of second arg.
16494
164952008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
16496
16497 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
16498 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
16499
16500 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
16501 (PURESIZE): Use it.
16502
165032008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
16504
16505 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
16506 * m/alpha.h (TEXT_END):
16507 * m/ibmrs6000.h (TEXT_END):
16508 * m/macppc.h (TEXT_END):
16509 * s/darwin.h (TEXT_END):
16510 * s/msdos.h (TEXT_END): Remove, unused.
16511 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
16512 * s/cygwin.h: Remove comment.
16513
16514 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
16515 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
16516 * m/intel386.h (DOT_GLOBAL_START):
16517 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
16518 (USG): Remove, file not used on USG platforms.
16519
16520 * Makefile.in (HAVE_X11): Remove empty #else.
16521
165222008-07-24 Andreas Schwab <schwab@suse.de>
16523
16524 * fileio.c (Finsert_file_contents): Properly adjust undo list
16525 after format conversion.
16526
165272008-07-24 Jan Djärv <jan.h.d@swipnet.se>
16528
16529 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
16530 (menu_nav_ended): Remove.
16531 (create_menus): Remove signal connect for menu_nav_ended.
16532 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
16533 create_menus.
16534 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
16535
165362008-07-23 Jason Rumney <jasonr@gnu.org>
16537
16538 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
16539 with opened font.
16540 (w32font_open): Set font type to gdi.
16541
16542 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
16543
165442008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
16545
16546 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
16547 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
16548 defines it.
16549 * unexec.c (ADDR_CORRECT): Define unconditionally.
16550
16551 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
16552
16553 * unexec.c: Remove code depending on !COFF and USG, the file is
16554 not used for such systems.
16555
16556 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
16557 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
16558 (LD_SWITCH_SYSTEM_1): Remove, update users.
16559
16560 * s/darwin.h (DATA_END):
16561 * m/intel386.h (DATA_END):
16562 * m/ibmrs6000.h (DATA_END):
16563 * m/alpha.h (DATA_END): Remove, unused.
16564
16565 * config.in: Regenerate.
16566 * s/ms-w32.h (subprocesses): Define unconditionally.
16567 * s/template.h (subprocesses): Update comment.
16568 * s/vms.h (subprocesses):
16569 * s/usg5-4.h (subprocesses):
16570 * s/hpux10-20.h (subprocesses):
16571 * s/gnu-linux.h (subprocesses):
16572 * s/cygwin.h (subprocesses):
16573 * s/bsd-common.h (subprocesses):
16574 * s/aix4-2.h (subprocesses):
16575 * s/darwin.h (subprocesses): Do not define, defined by default now.
16576
16577 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
16578 Remove all references.
16579 (temacs): Add GNUstep specific ld flags.
16580
16581 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
16582 similarly to what X does.
16583
165842008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
16585
16586 * nsfns.m (x-list-fonts): Remove.
16587 (syms_of_nsfns): Drop the x-list-fonts declaration.
16588 * nsterm.m: Get rid of remaining "//" comments.
16589
165902008-07-22 Chong Yidong <cyd@stupidchicken.com>
16591
16592 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
16593
16594 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
16595 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
16596 (Fns_own_selection_internal, Fx_disown_selection_internal)
16597 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
16598
16599 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
16600 ... */' style of docstrings. Doc fixes.
16601
166022008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
16603
16604 * terminfo.c (UP, BC, PC): Undo previous change.
16605
16606 * nsfns.m: Rename ns prefixed functions/variables to the
16607 corresponding x versions. Update references.
16608
166092008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
16610
16611 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
16612
166132008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
16614
16615 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
16616 Remove forwarding functions.
16617 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
16618 non-static.
16619 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
16620 non-static.
16621 (ns_frame_parm_handlers): Use the new names.
16622 (syms_of_nsfns): Move to the end of file.
16623
16624 * nsterm.m (syms_of_nsterm): Move to the end of file.
16625
16626 * dispnew.c (init_display): Remove code for X10.
16627
166282008-07-22 Jason Rumney <jasonr@gnu.org>
16629
16630 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
16631 bare drive.
16632
166332008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
16634
16635 * nsterm.m (syms_of_nsterm): Remove debugging println.
16636
166372008-07-22 David Reitter <david.reitter@gmail.com>
16638
16639 * nsfns.m (do_applescript, F_do_applescript): NS version of the
16640 Carbon implementation of the same functionality: execute arbitrary
16641 AppleScript code.
16642
166432008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
16644
16645 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
16646 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
16647 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
16648 (Fx_display_mm_height, Fx_display_mm_width)
16649 (Fx_display_backing_store, Fx_display_visual_class)
16650 (Fx_display_save_under, Fx_open_connection)
16651 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
16652 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
16653 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
16654 (Fx_display_pixel_width, Fx_display_pixel_height)
16655 (Fx_display_usable_bounds, Fx_display_planes)
16656 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
16657 ... */' style of docstrings.
16658
166592008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
16660
16661 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
16662 on this platform.
16663 (mips):
16664 * m/iris4d.h (mips): Do not define.
16665 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
16666
16667 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
16668
16669 * image.c:
16670 * nsfns.m:
16671 * nsselect.m:
16672 * nsterm.h:
16673 * nsterm.m: Rename ns prefixed functions/variables to the
16674 corresponding x versions. Update references.
16675
16676 * m/ibms390x.h (NO_REMAP): Do not undefine.
16677
16678 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
16679
166802008-07-21 Chong Yidong <cyd@stupidchicken.com>
16681
16682 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
16683 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
16684 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
16685 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
16686 (Fns_display_mm_height, Fns_display_mm_width)
16687 (Fns_display_backing_store, Fns_display_visual_class)
16688 (Fns_display_save_under, Fns_open_connection)
16689 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
16690 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
16691 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
16692 (Fns_display_pixel_width, Fns_display_pixel_height)
16693 (Fns_display_usable_bounds, Fx_display_planes)
16694 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
16695
166962008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
16697
16698 * print.c (print_object): Check print_depth before searching for
16699 circularities.
16700
167012008-07-21 Michael Albinus <michael.albinus@gmx.de>
16702
16703 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
16704 only sprintf.
16705
167062008-07-21 Kenichi Handa <handa@m17n.org>
16707
16708 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
16709
167102008-07-20 Andreas Schwab <schwab@suse.de>
16711
16712 * syntax.c (find_start_pos, find_start_value)
16713 (find_start_value_byte, find_start_begv, find_defun_start)
16714 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
16715
167162008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
16717
16718 * s/sol2-3.h: Insert contents of s/sol2.h.
16719 (LD_SWITCH_SYSTEM): Remove redundant definition.
16720 * s/sol2.h: Remove, unused.
16721
167222008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
16723
16724 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
16725
167262008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
16727
16728 * Makefile.in (ns_appdir): Fix typo in find command.
16729
167302008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
16731
16732 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
16733
16734 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
16735 added not supported anymore.
16736
16737 * s/usg5-4-2.h (LIBS_SYSTEM):
16738 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
16739
16740 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
16741 * s/lynxos.h (GETPGRP_NO_ARG):
16742 * s/hpux10-20.h (NO_SIOCTL_H):
16743 * s/gnu.h (GETPGRP_NO_ARG):
16744 * s/gnu-linux.h (NO_SIOCTL_H):
16745 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
16746 * s/cygwin.h (GETPGRP_NO_ARG):
16747 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
16748 (C_DEBUG_SWITCH): Remove duplicate definition.
16749
16750 * m/ibms390.h: Remove boilerplate comments.
16751
16752 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
16753
16754 * process.c (HAVE_SERIAL): Consolidate ifdefs.
16755 (wait_reading_process_output): Remove code for SunOS, platform not
16756 supported anymore. Use SOLARIS2 instead of sun.
16757
167582008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
16759
16760 * font.c (font_open_by_name): Under NS, default lface height to zero.
16761 (font_open_for_lface): Under NS, set size based on frame fontsize.
16762 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
16763 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
16764
167652008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
16766
16767 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
16768 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
16769 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
16770 YES/NO.
16771 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
16772 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
16773 * Makefile.in (clean): Clear out build destination dir.
16774
167752008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
16776
16777 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
16778 xterm, xselect.
16779 * lisp.h: Remove declaration of hash_remove.
16780 * nsgui.h: Remove redefinitions of hash_remove.
16781 * fns.c (hash_remove): Rename to hash_remove_from_table.
16782
167832008-07-19 Seiji Zenitani <zenitani@mac.com>
16784
16785 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
16786 strdup() the family UTF8String before modifying it.
16787
167882008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
16789
16790 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
16791 NS_FACE_BACKGROUND with 0 instead of nil.
16792 * nsfont.m (nsfont_draw): Same.
16793
167942008-07-19 Chong Yidong <cyd@stupidchicken.com>
16795
16796 * nsfns.m (ns_set_background_color): Fix crash.
16797
167982008-07-18 Chong Yidong <cyd@stupidchicken.com>
16799
16800 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
16801
168022008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
16803
16804 * puresize.h (BASE_PURESIZE): Increase to 1240000.
16805
168062008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16807
16808 * gtkutil.c: Include <config.h> instead of "config.h".
16809
16810 * lisp.h (Foverlay_buffer): Add EXFUN.
16811
16812 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
16813 child process to complete child_setup. Undo 2005-09-21 change.
16814
16815 * s/darwin.h: Mention setsid after vfork.
16816
168172008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16818
16819 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
16820 Depend on macgui.h.
16821
16822 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
16823 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
16824
16825 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
16826 and f19.
16827 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
16828
16829 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
16830 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
16831 Remove enumerators.
16832
16833 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
16834 Check if FACE_FROM_ID returns NULL.
16835
168362008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
16837
16838 * w32inevt.c (change_frame_size): Remove extern declaration.
16839 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
16840 change_frame_size.
16841
168422008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
16843
16844 * getloadavg.c: Revert last change (2008-07-15).
16845
168462008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
16847
16848 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 16849 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
16850 from configure.
16851
168522008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
16853
16854 * s/sol2.h:
16855 * s/sol2-4.h: Reorganize conditionals.
16856
16857 * ecrt0.c: Remove code depending on m68000, not used anymore.
16858
16859 * fns.c (hash_remove): Make static.
16860 * lisp.h (hash_remove): Don't prototype.
16861
16862 * m/ibmrs6000.h:
16863 * m/ibms390x.h:
16864 * m/macppc.h: Remove boilerplate comments.
16865
16866 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
16867 Solaris, which does not need them.
16868
16869 * m/vax.h: Remove comments about unsupported systems.
16870
16871 * s/darwin.h: Reorganize ifdefs.
16872
168732008-07-17 Andreas Schwab <schwab@suse.de>
16874
16875 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
16876
168772008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
16878
16879 Use SDATA. Follow coding convention of placing operators at
16880 beginning of next line rather than end of previous line, and placing
16881 spaces around infix operators.
16882
16883 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
16884 in case it was defined already.
16885 USE @GNUSTEP_MAKEFILES@ rather than envvars.
16886 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
16887 ns_default.
16888 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
16889 Lisp_Objects.
16890 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
16891 (ns_defined_color, ns_color_to_lisp): Declare.
16892 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
16893 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
16894 it's accepted even with USE_LISP_UNION_TYPE.
16895 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
16896 (update_frame_tool_bar): Remove apparently obsolete tests for
16897 non-integerness of f->tool_bar_lines.
16898 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
16899 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
16900 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
16901 (nsfont_open): Don't confuse NULL for Qnil.
16902 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
16903 * menu.h (find_and_call_menu_selection):
16904 * menu.c (find_and_call_menu_selection): Use just int for vector size.
16905 (find_and_return_menu_selection): Always return something.
16906 * frame.h: Include dispextern.h for Display_Info.
16907 (display_x_get_resource): Declare.
16908
169092008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
16910
16911 * syntax.c: Remove stdio.h include accidentally introduced in
16912 Emacs.app commit.
16913 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
16914 NS_IMPL_COCOA.
16915 * keyboard.c (handle_async_input, input_available_signal): Remove
16916 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
16917
169182008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
16919
16920 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
16921 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
16922 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
16923 Use SDATA.
16924
16925 * keymap.c: Remove all NS-specific code.
16926 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
16927 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
16928 where_is_preferred_modifier, return a different value depending on how
16929 preferred is the binding.
16930 (where_is_internal): Adjust accordingly.
16931 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
16932 Adjust to new preferred_sequence_p.
16933 (syms_of_keymap): Declare `where-is-preferred-modifier'.
16934 * keyboard.c (parse_solitary_modifier): Not static any more.
16935 * keyboard.h (parse_solitary_modifier): Declare.
16936
169372008-07-16 Andreas Schwab <schwab@suse.de>
16938
16939 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
16940 of easymenu.
16941
169422008-07-16 Chong Yidong <cyd@stupidchicken.com>
16943
16944 * xdisp.c (move_it_in_display_line): Account for word wrap, so
16945 that we don't move off the line.
16946
169472008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
16948
16949 * keyboard.c (Qsuper): Remove.
16950 (parse_menu_item): Don't call where_is_internal specially for NS.
16951
169522008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
16953
16954 * s/gnu-linux.h: Remove boilerplate comments.
16955
16956 * m/alpha.h (__ELF__): Consolidate conditions.
16957
16958 * m/m68k.h (linux): Use GNU_LINUX instead.
16959 Remove boilerplate comments.
16960
16961 * m/intel386.h: Undo refactoring from previous change.
16962 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
16963 too, remove dead code.
16964 (linux): Use GNU_LINUX instead.
16965
169662008-07-16 Jason Rumney <jasonr@gnu.org>
16967
16968 * w32gui.h: Repeat 26 June changes lost by last change.
16969
169702008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
16971
16972 * systty.h: Remove code for Aix on 386, unsupported platform.
16973
16974 * s/ms-w32.h: Remove boilerplate comments.
16975 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
16976
16977 * s/gnu-linux.h (TERM): Remove support.
16978 (HAVE_SYSVIPC): Remove, unused.
16979 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
16980 for this system.
16981
16982 * process.c: Remove support for IRIS, unused.
16983 Remove support for TERM, not relevant anymore.
16984
16985 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
16986 used with the definition.
16987
16988 * s/aix4-2.h (static): Do not undef.
16989
16990 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
16991 only used on Aix.
16992 (HAVE_SYSVIPC): Remove, unused.
16993
16994 * m/hp800.h (CANNOT_DUMP): Do not undef.
16995
16996 * m/alpha.h: Fix comment.
16997
16998 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
16999 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
17000 used by this configuration.
17001 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
17002 * unexec.c: Remove code depending on HPUX and
17003 USG_SHARED_LIBRARIES, not used with this file. Remove code
17004 depending on IRIS, unused. Remove if 0-ed code.
17005
17006 * s/template.h: Remove comments about static.
17007
17008 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
17009 Remove if 0-ed code.
17010 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
17011 were the same as the default.
17012 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
17013 Remove boilerplate comments.
17014 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
17015 (HAVE_SYSVIPC): Remove, unused.
17016 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
17017
17018 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
17019 Remove boilerplate comments.
17020 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
17021 Remove boilerplate comments.
17022 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
17023 Remove boilerplate comments.
17024 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
17025
17026 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
17027 USG systems which do not use DATA_SEG_BITS.
17028 Refactor code. Remove boilerplate comments.
17029
17030 * m/ibms390.h:
17031 * m/m68k.h:
17032 * s/bsd-common.h:
17033 * s/cygwin.h:
17034 * s/darwin.h:
17035 * s/freebsd.h:
17036 * s/gnu.h:
17037 * s/msdos.h: Remove boilerplate comments.
17038
17039 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 17040 do not use this file.
aac0c6e3
MR
17041 (IRIS_4D): Remove, unused.
17042
17043 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 17044 do not use this file.
aac0c6e3
MR
17045 (SIGN_EXTEND_CHAR):
17046 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
17047 * unexmips.c: Remove file, unused.
17048
17049 * editfns.c (Fuser_full_name): Replace the only use of
17050 USER_FULL_NAME with its value.
17051 * config.in: Regenerate.
17052
170532008-07-16 David Reitter <david.reitter@gmail.com>
17054
17055 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
17056 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
17057
170582008-07-16 Glenn Morris <rgm@gnu.org>
17059
17060 * emacs.c (system-type): Doc fix.
17061
170622008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
17063
17064 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
17065 If the cache doesn't work, let's fix it, rather than work around it.
17066
170672008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
17068
17069 * Makefile.in: Correct additions for nsfont.o in last commit.
17070 * nsfont.m: New file (forgot last commit).
17071
170722008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
17073
bba3e508
SM
17074 * callproc.c (set_initial_environment):
17075 Initialize Vprocess_environment under CANNOT_DUMP (fixes crash when
aac0c6e3
MR
17076 batch-compiling for bootstrap).
17077
170782008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
acd0102a 17079 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3 17080
c4cc8b9a
JB
17081 * frame.c (make_initial_frame): Call init_frame_faces(f) in
17082 CANNOT_DUMP case -- fix crash due to different init order.
aac0c6e3
MR
17083
170842008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
17085
17086 Changes and additions for NeXTstep windowing system (Cocoa and
17087 GNUstep) support.
17088
17089 * Makefile.in:
17090 * config.in: Support defines and build commands for NS port.
17091 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
17092 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
17093 * dispextern.h: Include nsgui.h and add needed typedefs under NS
17094 windowing.
17095 (struct face): Add synth_ital field.
17096 * dispnew.c: Include nsterm.h when compiling under NS windowing.
17097 (init_display): Initialize Vinitial_window_system to "ns" when so
17098 compiled.
17099 * emacs.c: Include GSConfig.h when compiling under GNUstep.
17100 (display_arg): Use under NS.
17101 (main): Under NS, allocate autorelease pool and handle command line
17102 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
17103 (standard_args): Add NS-specific args.
17104 (shut_down_emacs): Shut down NS terminal if compiled under NS.
17105 * font.c (DEFAULT_ENCODING): New variable.
17106 (font_find_for_lface): Use it.
17107 (syms_of_font): Load syms_of_nsfont under NS.
17108 * font.h: Declare nsfont_driver when compiled under NS.
17109 * fontset.c: When compiling under NS, include nsterm.h.
17110 (fontset_from_font): Autoconstruct fontset under NS.
17111 * frame.c (various): Under NS, include nsterm.h, add Qns window system
17112 symbol, document and use it.
17113 (do_switch_frame): When for_deletion under Cocoa, add
17114 Fraise_frame(Qnil).
17115 (x_set_frame_parameters): Ensure font attribute changes are picked up.
17116 (x_get_arg): Allow "yes" and "no" as boolean values.
17117 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
17118 Qright under Cocoa.
17119 (focus-follows-mouse): Default to 0 under NS.
17120 * frame.h (enum output_method): Add output_ns.
17121 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
17122 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
17123 (FRAME_WINDOW_P): NS-specific definition.
17124 * fringe.c (max_used_fringe_bitmap): Make public.
17125 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
17126 (getloadavg): Use NeXT code under descendant OS's.
17127 * image.c (includes and header section, x_create_bitmap_from_data)
17128 (x_create_bitmap_from_file, free_bitmap_record, image_background)
17129 (image_background_transparent, x_clear_image_1)
17130 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
17131 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
17132 (x_to_xcolors, x_from_xcolors, x_disable_image)
17133 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
17134 other GUIs, including XPM support using code originally written for
17135 Carbon GUI.
17136 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
17137 using NS API.
17138 (image_ascent): Use font metrics macros instead of direct struct field
17139 access.
17140 * keyboard.c (includes): Add nsterm.h when compiling under NS.
17141 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
17142 Also, handle NS as GTK for menu bar purposes.
17143 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
17144 toolkit where they differ.
17145 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
17146 use cachelist, still needed under NS.
17147 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
17148 (struct widget_value): Define it here for menu.c.
17149 * keymap.c (includes): Include modifier internals.
17150 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
17151 NS.
17152 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
17153 support for preferring sequences using certain modifiers, specified by
17154 the FIRSTONLY argument.
17155 * lisp.h (hash_remove): Rename to avoid name clash when compiling
17156 under NS GNUstep implementation.
17157 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
17158 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
17159 * menu.c: Include nsterm.h under NS.
17160 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
17161 (free_menubar_widget_tree_value, update_submenu_strings)
17162 (find_and_call_menu_selection): Treat NS as X and NT.
17163 (find_and_return_menu_selection): New function, used for popup menus.
17164 * nsgui.h:
17165 * nsterm.h:
17166 * nsfns.m:
17167 * nsimage.m:
17168 * nsmenu.m:
17169 * nsselect.m:
17170 * nsterm.m: New files.
17171 * process.c (wait_reading_process_output): Under NS, call ns_select()
17172 instead of plain select().
17173 * syntax.c (char_quoted): Under NS, avoid a crash when called near
17174 beginning of buffer.
17175 * sysselect.h (init_process): Rename when compiling under Cocoa to
17176 avoid name conflict.
17177 * termhooks.h (display_info): Add ns_display_info to union.
17178 * terminal.c (Fterminal_live_p): Add ns to terminal types.
17179 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
17180 COCOA environment.
17181 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
17182 unexec() signature. (Note, this will dump, but the resulting file
17183 crashes; unexosx is used instead; keeping around for reference and
17184 possible aid in getting dump working under GNUstep.)
17185 * w32gui.h (button_type, widget_value): Remove definitions (now in
17186 keyboard.h).
17187 * window.c: Include nsterm.h when compiling under NS.
17188 * xdisp.c (includes): Include nsterm.h when compiling under NS.
17189 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
17190 other GUI windowing systems.
17191 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
17192 GTK.
17193 (x_consider_frame_title): Under NS, set icon type and frame
17194 modified-state indicator; use ns_set_name_as_filename() when using
17195 formatted title.
17196 (update_window_cursor): Make public when compiling under NS.
17197 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
17198 (hourglass_atimer, Vhourglass_delay
17199 * xfaces.c (header section, init_frame_faces, clear_font_table)
17200 (defined_color, unload_color, x_face_list_fonts)
17201 (prepare_face_for_display): Add NS support parallel to other GUIs.
17202 Emulate GCs like other non-X GUIs.
17203 (split_font_name): Don't lowercase font name under NS.
17204 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
17205 under NS.
17206 * s/darwin.h: Add support for compilation under NS.
17207
172082008-07-15 Jason Rumney <jasonr@gnu.org>
17209
17210 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
17211 (w32_show_hourglass): Rename from show_hourglass.
17212 (w32_hide_hourglass): Rename from hide_hourglass.
17213 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
17214 (Vhourglass_delay): Declare extern.
17215 (hourglass_started): Remove.
17216
17217 * xdisp.c (Vhourglass_delay): Remove static.
17218 (hourglass_started, start_hourglass, cancel_hourglass):
17219 Don't include these versions on WINDOWSNT.
17220
172212008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
17222
17223 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
17224 variables (formerly in xfns.c).
17225 (show_hourglass, hide_hourglass): New prototypes (same).
17226 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
17227 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
17228 in xfns.c).
17229 (syms_of_xdisp): Declare/initialize display-hourglass,
17230 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
17231 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
17232 formerly in xfns.c.
17233 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
17234 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
17235 (start_hourglass, cancel_hourglass): Remove.
17236 (show_hourglass, hide_hourglass): Remove prototypes and static
17237 modifiers.
17238 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
17239 hourglass_atimer, hourglass_shown_p declaration/initialization.
17240 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
17241 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
17242 (start_hourglass, cancel_hourglass): Remove.
17243 (show_hourglass, hide_hourglass): Remove prototypes and static
17244 modifiers.
17245 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
17246 hourglass_atimer, hourglass_shown_p declaration/initialization.
17247 * w32fns.c (display_hourglass_p, Vhourglass_delay)
17248 (DEFAULT_HOURGLASS_DELAY): Remove.
17249 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
17250 hourglass_shown_p declaration/initialization.
17251
172522008-07-14 Jason Rumney <jasonr@gnu.org>
17253
17254 * w32fns.c (w32_get_arg): Remove wrapper function.
17255 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
17256 directly.
17257 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
17258
172592008-07-14 Kenichi Handa <handa@m17n.org>
17260
17261 * xfont.c (xfont_open): Add workaround for X's bug.
17262
172632008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
17264
17265 * fontset.c: Include <stdio.h> unconditionally.
17266
172672008-07-13 Michael Albinus <michael.albinus@gmx.de>
17268
17269 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
17270 for filtering.
17271
172722008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
17273
17274 * s/vms.h: Use __GNUC__ instead of _GNUC_.
17275
17276 * m/macppc.h:
17277 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
17278
c4cc8b9a 17279 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default.
aac0c6e3
MR
17280 (SPECIAL_EMACS_INT):
17281 * m/ia64.h (SPECIAL_EMACS_INT):
17282 * m/amdx86-64.h (SPECIAL_EMACS_INT):
17283 * s/gnu.h (NLIST_STRUCT):
17284 * s/aix4-2.h (X11R5_INHIBIT_I18N):
17285 * s/gnu-linux.h (LINUX):
17286 * s/msdos.h (HAVE_FACES):
17287 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
17288
17289 * systty.h:
17290 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
17291 anymore.
17292
172932008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
17294
17295 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
17296 always defined as int.
17297
17298 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
17299 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
17300 * s/gnu-linux.h (HAVE_WAIT_HEADER):
17301 * s/freebsd.h (HAVE_WAIT_HEADER):
17302 * s/bsd-common.h (HAVE_UNION_WAIT):
17303 * s/aix4-2.h (HAVE_WAIT_HEADER):
17304 * m/mips.h (HAVE_UNION_WAIT):
17305 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
17306 (COFF, static): Do not define, they are undefined later in the file.
17307
17308 * process.c (update_status): Don't use a union.
17309 (status_convert):
17310 (sigchld_handler): Use int instead of WAITTYPE.
17311
173122008-07-12 Chong Yidong <cyd@stupidchicken.com>
17313
17314 * indent.c (Fvertical_motion): Restore hscroll before moving to
17315 goal column.
17316
173172008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
17318
17319 * lisp.h: Remove left over code.
17320
173212008-07-11 Andreas Schwab <schwab@suse.de>
17322
17323 * lisp.h: Fix logic in last change.
17324
17325 * menu.h: New file.
17326 * menu.c: Include it.
17327 * xmenu.c: Likewise.
17328 * Makefile.in: Update dependencies.
17329
173302008-07-11 Kenichi Handa <handa@m17n.org>
17331
17332 * fontset.c (fontset_from_font): Cancel the previous change.
17333
173342008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
17335
17336 * lisp.h:
17337 * w32heap.c:
17338 * emacs.c:
17339 * alloc.c: Replace all references of NO_UNION_TYPE with
17340 USE_LISP_UNION_TYPE.
17341
17342 * m/xtensa.h (NO_UNION_TYPE):
17343 * m/vax.h (NO_UNION_TYPE):
17344 * m/template.h (NO_UNION_TYPE):
17345 * m/sparc.h (NO_UNION_TYPE):
17346 * m/mips.h (NO_UNION_TYPE):
17347 * m/macppc.h (NO_UNION_TYPE):
17348 * m/m68k.h (NO_UNION_TYPE):
17349 * m/iris4d.h (NO_UNION_TYPE):
17350 * m/intel386.h (NO_UNION_TYPE):
17351 * m/ibms390x.h (NO_UNION_TYPE):
17352 * m/ibms390.h (NO_UNION_TYPE):
17353 * m/ibmrs6000.h (NO_UNION_TYPE):
17354 * m/ia64.h (NO_UNION_TYPE):
17355 * m/hp800.h (NO_UNION_TYPE):
17356 * m/arm.h (NO_UNION_TYPE):
17357 * m/amdx86-64.h (NO_UNION_TYPE):
17358 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
17359 defining it the same.
17360
173612008-07-10 Chong Yidong <cyd@stupidchicken.com>
17362
17363 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
17364
173652008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
17366
17367 * fileio.c:
50426a04 17368 * sysdep.c:
aac0c6e3
MR
17369 * systty.h:
17370 * m/ibmrs6000.h:
17371 * m/iris4d.h:
17372 * s/aix4-2.h:
17373 * s/freebsd.h:
17374 * s/gnu-linux.h:
17375 * s/hpux10-20.h:
17376 * s/hpux11.h:
17377 * s/netbsd.h:
17378 * s/sol2-3.h:
17379 * s/sol2-4.h:
17380 * s/sol2.h:
17381 * s/usg5-4.h:
17382 * s/vms.h: Remove references to unused variables.
17383
173842008-07-10 Andreas Schwab <schwab@suse.de>
17385
17386 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
17387 pattern before matching the generic family.
17388
173892008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
17390
17391 * unexec.c:
17392 * s/vms.h:
17393 * s/usg5-4-2.h:
17394 * s/sol2-5.h:
17395 * s/freebsd.h:
17396 * s/darwin.h: Remove dead code.
17397
17398 * m/template.h:
17399 * m/sparc.h:
17400 * m/mips.h:
17401 * m/m68k.h:
17402 * m/iris4d.h:
17403 * m/intel386.h:
17404 * m/ibms390x.h:
17405 * m/ibms390.h:
17406 * m/ia64.h:
17407 * m/hp800.h:
17408 * m/arm.h:
17409 * m/amdx86-64.h: Remove dead code and references to unused
17410 and compiler defined symbols.
17411
17412 * unexmips.c:
17413 * unexelf.c: Remove references to desupported systems.
17414
17415 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
17416
17417 * m/powermac.h: Remove boilerplate comments.
17418 (NO_REMAP): Remove unused definition.
17419
17420 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
17421 define them.
17422
174232008-07-10 Kenichi Handa <handa@m17n.org>
17424
17425 * xfont.c (xfont_open): Log the reason of failure.
17426
174272008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
17428
17429 * fontset.c (fontset_get_font_group):
17430 * font.c (font_check_otf): Specify argument types.
17431
174322008-07-09 Kenichi Handa <handa@m17n.org>
17433
17434 * coding.c (detect_coding_utf_8): Set detect_info->found only when
17435 non-ASCII char is found.
17436
17437 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
17438 (reorder_font_vector): Change the arg preferred_family to font.
17439 Prefer the spec matching with font.
17440 (fontset_get_font_group): New function.
17441 (fontset_find_font): Change the format of an element of a realized
17442 fontset. Use fontset_get_font_group.
17443 (fontset_font): Try the current fontset, the default fontset, the
17444 fallbacks of the current fontset, and the fallbacks of the default
17445 fontset in this order.
17446 (face_for_char): Delete the shortcut to use the current font.
17447 (fontset_from_font): Don't set fonts for Latin in the fontset.
17448
17449 * font.h (font_make_object, font_match_p): Adjust prototypes.
17450
17451 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
17452
17453 * font.c (font_make_object): New arg entity and pixelsize.
17454 (font_check_otf_features, font_check_otf): New functions.
17455 (font_match_p): Check :lang, :script, and :otf properties.
17456
17457 * xfont.c (xfont_open): Adjust it for the change of
17458 font_make_object.
17459 (xfont_text_extents): Fix initial setting of metrics.
17460
17461 * ftfont.c (struct ftfont_info): New member index, delete member
17462 fc_charset_idx. Make the member order compatible with struct
17463 xftfont_info.
17464 (fc_charset_table): Change charset names to registry names.
17465 (ftfont_pattern_entity): Delete the args registry and
17466 fc_charset_idx. Change the value of :font-entity property
17467 to (FONTNAME . INDEX). Always set :registry property to
17468 `iso10646-1'.
17469 (struct ftfont_cache_data): New struct.
17470 (ftfont_lookup_cache): New arg for_face.
17471 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
17472 (ftfont_driver): Set the member otf_capability.
17473 (ftfont_get_charset): Adjust it for the change of
17474 fc_charset_table.
17475 (OTF_TAG_SYM): New macro.
17476 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
17477 for the change of fc_charset_table.
17478 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
17479 ftfont_pattern_entity. Add FC_INDEX to objset.
17480 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
17481 and ftfont_pattern_entity.
17482 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
17483 font_make_object, struct ftfont_info.
17484 (ftfont_has_char): Use ftfont_get_fc_charset.
17485 (ftfont_otf_features, ftfont_otf_capability): New functions.
17486 (ftfont_shape): Use ftfont_get_otf.
17487 (ftfont_text_extents): Fix initial setting of metrics.
17488
17489 * xftfont.c (struct xftfont_info): New member ft_size. Make the
17490 member order compatible with struct ftfont_info.
bba3e508
SM
17491 (xftfont_open): Add FC_CHARSET to the pattern.
17492 Set xftfont_info->ft_size. Don't unlock the face. Check BDF
aac0c6e3
MR
17493 properties if appropriate.
17494 (xftfont_close): Unlock the face.
17495 (xftfont_anchor_point, xftfont_shape): Deleted.
17496 (syms_of_xftfont): Don't set members anchor_point and shape of
17497 xftfont_driver.
17498
17499 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
17500 font_make_object.
17501
17502 * w32font.c (w32font_open): Adjust it for the change of
17503 font_make_object.
17504 (w32font_open_internal): Don't set properties of font_object here.
17505
175062008-07-08 Chong Yidong <cyd@stupidchicken.com>
17507
17508 * macfns.c (x_create_tip_frame):
17509 * w32fns.c (x_create_tip_frame):
17510 * xfns.c (x_create_tip_frame): Pass parameter argument to
17511 face-set-after-frame-default.
17512
17513 * xfaces.c (Finternal_merge_in_global_face): Save merged
17514 attributes for the default face back into the face vector.
17515
175162008-07-08 Andreas Schwab <schwab@suse.de>
17517
17518 * fontset.h: Declare fontset_from_font. Don't declare
17519 new_fontset_from_font and fontset_from_font_name.
17520 * xterm.c: Include "fontset.h".
17521 * Makefile.in (xterm.o): Update dependencies.
17522
175232008-07-08 Glenn Morris <rgm@gnu.org>
17524
17525 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
17526 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
17527
175282008-07-07 Chong Yidong <cyd@stupidchicken.com>
17529
17530 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
17531 (x_set_frame_parameters): Don't bind it.
17532
175332008-07-07 Juanma Barranquero <lekktu@gmail.com>
17534
17535 * w32fns.c (map_w32_filename): Declare extern.
17536
175372008-07-07 Jason Rumney <jasonr@gnu.org>
17538
17539 * w32term.c (WS_EX_LAYERED): Define if not already.
17540
175412008-07-06 Chong Yidong <cyd@stupidchicken.com>
17542
17543 * xfaces.c (set_font_frame_param): Don't try to set the font
17544 parameter if it is still unspecified in the lface.
17545
175462008-07-05 Chong Yidong <cyd@stupidchicken.com>
17547
17548 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
17549 face if it didn't already exist.
17550
17551 * xdisp.c (try_window_id): Give up if word-wrapping is on.
17552
175532008-07-05 Andreas Schwab <schwab@suse.de>
17554
17555 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
17556
175572008-07-05 Chong Yidong <cyd@stupidchicken.com>
17558
17559 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
17560 word-wrapping.
17561 (IT_DISPLAYING_WHITESPACE): New macro.
17562 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
17563 when word-wrapping. Simplify word-wrapping logic. Use correct
17564 pixel positions when saving copies of the iterator.
17565 (display_line): Use proper wrap point if the last character on a
17566 line was preceded by whitespace.
17567
175682008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
17569
17570 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
17571
175722008-07-04 Kenichi Handa <handa@m17n.org>
17573
17574 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
17575
17576 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
17577
175782008-07-02 Jason Rumney <jasonr@gnu.org>
17579
17580 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 17581 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
17582
17583 * xdisp.c (next_element_from_display_vector): Move assignment out
17584 of if statement.
17585
175862008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
17587
17588 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
17589
17590 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
17591 (syms_of_fileio): Initialize and export them.
17592 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
17593
17594 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
17595 (Fsystem_move_file_to_trash): New function.
17596 (syms_of_w32fns): Export it to lisp.
17597
175982008-07-01 Jason Rumney <jasonr@gnu.org>
17599
17600 * w32font.c (w32font_text_extents): Don't count overhang as part
17601 of width.
17602
176032008-06-30 Miles Bader <miles@gnu.org>
17604
17605 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
17606 Add `avoid_cursor_p' field.
17607
17608 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
17609 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
17610 (append_glyph, append_composite_glyph, produce_image_glyph)
17611 (append_stretch_glyph): Initialize avoid_cursor_p.
17612 (get_it_property): Rename from `get_line_height_property'.
17613 (x_produce_glyphs): Use get_it_property.
17614 (handle_line_prefix, push_display_prop): New functions.
17615 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
17616 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
17617 New variables.
17618 (syms_of_xdisp): Initialize them.
17619
176202008-06-30 Kenichi Handa <handa@m17n.org>
17621
17622 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
17623 XftDefaultSubstitute (they are called in XftFontMatch).
17624 (xftfont_open): Fix args to ftfont_font_format.
17625
17626 * ftfont.c (fc_charset_table): New member lang.
17627 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 17628 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
17629 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
17630 (ftfont_open): Fix args to ftfont_font_format.
17631 (ftfont_font_format): New arg filename.
17632
176332008-06-30 Chong Yidong <cyd@stupidchicken.com>
17634
17635 * xfaces.c (Finternal_merge_in_global_face): If default face was
17636 modified, realize it again. Update the font face attribute.
17637
176382008-06-29 Jason Rumney <jasonr@gnu.org>
17639
17640 * w32term.c (x_set_frame_alpha): Fix logic.
17641
176422008-06-29 Kenichi Handa <handa@m17n.org>
17643
17644 * fontset.c (Finternal_char_font): Return font-object instead of
17645 font-name.
17646
17647 * composite.c (get_composition_id): Fix the width calculation for TAB.
17648
176492008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
17650
17651 * indent.c (Fvertical_motion): Properly handle float column arg.
17652
176532008-06-28 Jason Rumney <jasonr@gnu.org>
17654
17655 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
17656 (pfnSetLayeredWindowAttributes): New function pointer.
17657 (w32_initialize): Initialize it when supported.
17658 (x_set_frame_alpha): New function.
17659
17660 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
17661 (w32_frame_parm_handlers): Set alpha handler.
17662
17663 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
17664
176652008-06-27 Jason Rumney <jasonr@gnu.org>
17666
17667 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
17668 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
17669 (w32_to_x_charset, x_to_w32_charset)
17670 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
17671 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
17672 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
17673 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
17674 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
17675 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
17676 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
17677 (Qw32_charset_unicode): Remove.
17678 (syms_of_w32fns): Update for above changes.
17679
17680 * w32font.c (w32_to_x_charset, x_to_w32_charset)
17681 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
17682 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
17683 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
17684 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
17685 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
17686 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
17687 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
17688 (syms_of_w32font): Update for above changes.
17689
176902008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
17691
17692 * s/usg5-4.h: Fix previous change: keep the correct branch of a
17693 removed #if.
17694 (USG_SHARED_LIBRARIES): Remove duplicate definition.
17695
176962008-06-26 Juanma Barranquero <lekktu@gmail.com>
acd0102a 17697 Eli Zaretskii <eliz@gnu.org>
aac0c6e3
MR
17698
17699 * makefile.w32-in (LOCAL_FLAGS):
17700 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
17701
17702 * sysdep.c (_spawnlp, _getpid):
17703 Declare with explicit _cdecl instead of _CRTAPI1.
17704
17705 * editfns.c (Fget_internal_run_time):
17706 Check for WINDOWSNT with #ifdef, not #if.
17707
177082008-06-26 Jason Rumney <jasonr@gnu.org>
17709
17710 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
17711
17712 * w32term.c (x_draw_glyph_string_foreground)
17713 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
17714 Use FONT_HANDLE macro.
17715 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
17716
17717 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
17718 (uniscribe_encode_char): Use FONT_HANDLE macro.
17719
17720 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
17721 (w32font_text_extents): Use precast w32_font.
17722 (w32font_close): Free cached metrics.
17723 (w32font_open_internal): Allocate space for name on stack.
17724
177252008-06-26 Chong Yidong <cyd@stupidchicken.com>
17726
17727 * xdisp.c (extend_face_to_end_of_line): Fix last change.
17728
177292008-06-26 Jason Rumney <jasonr@gnu.org>
17730
17731 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
17732 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
17733
177342008-06-26 Juanma Barranquero <lekktu@gmail.com>
17735
17736 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
17737
177382008-06-26 Jason Rumney <jasonr@gnu.org>
17739
17740 * w32bdf.c, w32bdf.h: Remove obsolete files.
17741
17742 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
17743
17744 * w32gui.h: Don't include w32bdf.h.
17745 (XCharStruct, enum w32_char_font_type, W32FontStruct):
17746 Remove obsolete font support.
17747
17748 * w32font.h (struct w32font_info): Remove compat_w32_font.
17749 Add hfont member.
17750 (FONT_COMPAT): Remove obsolete macro.
17751
17752 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
17753 (w32font_encode_char, w32font_text_extents): Use new hfont member.
17754 (w32font_open_internal): Remove compat code. Set new hfont member.
17755 (Fx_select_font): Use new hfont member.
17756
17757 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
17758 (uniscribe_encode_char): Use new hfont member.
17759
17760 * w32term.c (x_draw_glyph_string_foreground)
17761 (x_draw_composite_glyph_string_foreground): Use new hfont member.
17762 (x_draw_glyph_string): Use metrics in w32font_info.
17763
177642008-06-26 Kenichi Handa <handa@m17n.org>
17765
17766 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
17767
177682008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
17769
17770 * unexnext.c:
17771 * m/ews4800.h:
17772 * m/hp9000s300.h:
17773 * m/ibm370aix.h:
17774 * m/mips-siemens.h:
17775 * m/ncr386.h:
17776 * m/next.h:
17777 * m/pmax.h:
17778 * m/powerpcle.h:
17779 * m/tandem-s2.h:
17780 * s/386bsd.h:
17781 * s/bsd386.h:
17782 * s/bsd4-1.h:
17783 * s/bsd4-2.h:
17784 * s/bsdos2-1.h:
17785 * s/bsdos2.h:
17786 * s/bsdos3.h:
17787 * s/bsdos4.h:
17788 * s/nextstep.h:
17789 * s/ultrix4-3.h:
17790 * s/usg5-0.h:
17791 * s/usg5-2-2.h:
17792 * s/usg5-2.h:
17793 * s/usg5-4-3.h:
17794 * s/ux4800.h:
17795 * s/uxpds.h:
17796 * s/uxpv.h: Remove support for obsolete systems.
17797 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 17798 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
17799 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
17800 Remove, insert contents in s/aix4-2.h.
17801 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
17802 * s/bsd4-3.h: Rename to ...
17803 * s/bsd-common.h: ... this.
17804 * data.c:
17805 * doc.c:
17806 * ecrt0.c:
17807 * emacs.c:
17808 * fileio.c:
17809 * floatfns.c:
17810 * keyboard.c:
17811 * mem-limits.h:
17812 * print.c:
17813 * process.c:
17814 * sysdep.c:
17815 * syssignal.h:
17816 * systty.h:
17817 * syswait.h:
17818 * term.c:
17819 * unexec.c:
17820 * unexelf.c:
17821 * unexhp9k800.c:
17822 * m/hp800.h:
17823 * m/ibmrs6000.h:
17824 * m/mips.h:
17825 * m/vax.h:
17826 * s/darwin.h:
17827 * s/freebsd.h:
17828 * s/gnu.h:
17829 * s/ms-w32.h:
17830 * s/msdos.h:
17831 * s/netbsd.h:
17832 * s/template.h: Remove references to obsolete variables.
17833
17834 * Makefile.in: Add dependencies for all unexec files.
17835 (admindir): Remove unused variable.
17836 (UNEXEC_SRC): Remove references.
17837
178382008-06-25 Chong Yidong <cyd@stupidchicken.com>
17839
17840 * xfns.c (x_default_font_parameter): If Xft is available, first
17841 try Monospace-12 for the default font.
17842
178432008-06-25 Jason Rumney <jasonr@gnu.org>
17844
17845 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
17846
178472008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
17848
17849 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
17850
17851 * buffer.c (syms_of_buffer): Remove default-word-wrap.
17852
178532008-06-25 Juanma Barranquero <lekktu@gmail.com>
17854
17855 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
17856 <scroll-conservatively>: Fix typo in docstring.
17857
17858 * xselect.c (Fx_send_client_event): Doc fix.
17859
178602008-06-25 Kenichi Handa <handa@m17n.org>
17861
17862 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
17863
17864 * font.c (font_parse_fcname): Remove unused variables.
17865 (font_sort_entites): Delete the arg SPEC. Caller changed.
17866 Fix for the case of ! best_only.
17867 (font_delete_unmatched): Check DPI and AVGWIDTH too.
17868
17869 * lisp.h (Fstring_to_unibyte): EXFUN it.
17870
17871 * character.h (str_to_unibyte): Extern it.
17872
17873 * character.c (str_to_unibyte): New function.
17874
17875 * fns.c (Fstring_to_unibyte): New function.
17876 (syms_of_fns): Defsubr it.
17877
178782008-06-24 Kenichi Handa <handa@m17n.org>
17879
17880 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
17881 DPI too.
17882 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
17883
178842008-06-24 Andreas Schwab <schwab@suse.de>
17885
17886 * Makefile.in (${lispsource}loaddefs.el): Rename from
17887 ../lisp/loaddefs.el.
17888 (bootstrap-clean): Do what distclean does but don't remove
17889 Makefile.
17890 (distclean): Depend on bootstrap-clean and remove Makefile.
17891
178922008-06-24 Chong Yidong <cyd@stupidchicken.com>
17893
17894 * buffer.h (struct buffer): New member word_wrap.
17895
17896 * buffer.c (syms_of_buffer): New variables default-word-wrap and
17897 word-wrap.
17898 (init_buffer_once): Initialize them.
17899
17900 * dispextern.h (struct it): Replace bool truncate_lines_p with a
17901 line_wrap enum possessing three possible values.
17902
17903 * termopts.h: Replace truncate_partial_width_windows with
17904 Vtruncate_partial_width_windows.
17905
17906 * dispnew.c (direct_output_for_insert): Avoid direct output when
17907 inserting a space with word wrap on.
17908
17909 * indent.c (compute_motion): Obey integer values of
17910 truncate-partial-width-windows.
17911
17912 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
17913 replacing truncate_partial_width_windows.
17914 (init_iterator): If Vtruncate_partial_width_windows is an integer,
17915 truncate only if the window width is below that integer.
17916 (start_display, resize_mini_window, produce_stretch_glyph)
17917 (display_string, move_it_in_display_line_to): Use line_wrap.
bba3e508
SM
17918 (back_to_previous_visible_line_start, reseat_1):
17919 Reset string_from_display_prop_p.
aac0c6e3
MR
17920 (display_line): Extend default face to end of line when wrapping.
17921
179222008-06-24 Kim F. Storm <storm@cua.dk>
17923
17924 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
17925 to wrap continued lines at word boundaries.
17926
179272008-06-24 Jason Rumney <jasonr@gnu.org>
17928
17929 * font.c (Ffont_face_attributes): Multiply pixel size before point
17930 conversion to avoid multiplying rounding error.
17931
179322008-06-23 Jason Rumney <jasonr@gnu.org>
17933
17934 * w32term.c (x_draw_glyph_string_background)
17935 (x_draw_glyph_string): Remove old bdf font code.
17936
17937 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
17938
179392008-06-22 Kenichi Handa <handa@m17n.org>
17940
17941 * font.c (font_find_for_lface): Try the adstyle specified in
17942 the property of LFACE_FONT of LFACE (if any).
17943
179442008-06-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 17945 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
17946
17947 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
17948
179492008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
17950
17951 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
17952 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
17953 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
17954 (witness-emacs): Remove.
17955 (lisp, shortlisp): Move loaddefs.el earlier.
17956 (mostlyclean): Forget about witness-emacs.
17957
179582008-06-22 Glenn Morris <rgm@gnu.org>
17959
17960 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
17961 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
17962
179632008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
17964
17965 * Makefile.in (PRECOMP): Remove.
17966 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
17967 (witness-emacs): Run `compile-first'.
17968 (.el.elc): Use the new compile-onefile target.
17969
179702008-06-21 Kenichi Handa <handa@m17n.org>
17971
17972 * xftfont.c (xftfont_open): Handle QCembolden only when
17973 FC_EMBOLDEN is defined.
17974
179752008-06-21 Andreas Schwab <schwab@suse.de>
17976
17977 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
17978 (.el.elc): Likewise.
17979
179802008-06-21 Miles Bader <miles@gnu.org>
17981
17982 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
17983 build dir, not the lisp source dir.
17984
179852008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
17986
17987 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
17988 (bootstrapclean): Remove.
17989 (.el.elc): New rule.
17990 (PRECOMP): New var.
17991 (../lisp/subdirs.el): Remove.
17992 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
17993 (witness-emacs): New target.
17994 (mostlyclean): Remove witness-emacs as well.
17995 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
17996 Add witness-emacs dependency.
17997
179982008-06-20 Chong Yidong <cyd@stupidchicken.com>
17999
18000 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
18001 defined by the font.
18002
180032008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
18004
18005 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
18006 (bootstrap-clean): New target that keeps TAGS around.
18007 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
18008 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
18009
180102008-06-20 Jason Rumney <jasonr@gnu.org>
18011
18012 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
18013 Remove obsolete font code.
18014
18015 * w32font.c (font_matches_spec): Use csb bitfield from font signature
18016 to determine language support.
18017
180182008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
18019
18020 * sysdep.c (cfsetspeed): New fun extracted from the code.
18021 (cfmakeraw): Move before first use.
18022
180232008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
18024
18025 * sysdep.c (cfmakeraw): Provide fallback implementation.
18026 (serial_configure): Provide fallback implementation of cfsetspeed.
18027
180282008-06-20 Kenichi Handa <handa@m17n.org>
18029
18030 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
18031 the pattern.
18032
18033 * fontset.c (fontset_from_font): Copy font_spec before changing
18034 the elements.
18035
18036 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
18037
180382008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
18039
18040 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
18041 for explicit `font' parameters.
18042
18043 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
18044
180452008-06-19 Kenichi Handa <handa@m17n.org>
18046
18047 * frame.c: Include <ctype.h>.
18048 (x_set_font_backend): Allow spacing characters in the X resource
18049 for FontBackend.
18050
180512008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
18052
18053 * w32fns.c, xfns.c (Qfont_param): New var.
18054 (syms_of_w32fns): Initialize it.
18055 (x_default_font_parameter): Record explicit `font' into
18056 `font-parameter'.
18057
180582008-06-18 Kenichi Handa <handa@m17n.org>
18059
18060 * font.c (font_parse_xlfd): Fix previous change.
18061 (font_parse_fcname): Don't use :fc-unknown-spec.
18062 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
18063 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
18064 (font_add_log): Prepend the driver name to the resulting fonts.
18065
18066 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
18067 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
18068 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
18069
18070 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
18071 (QCembolden): New variables.
18072 (syms_of_xftfont): DEFSYM them.
18073 (xftfont_open): Call XftFontMatch. Don't trust the result of
18074 XftTextExtents8 if the pixel_size is less than 5.
18075
180762008-06-18 Andreas Schwab <schwab@suse.de>
18077
18078 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
18079 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
18080
180812008-06-18 Jason Rumney <jasonr@gnu.org>
18082
18083 * w32font.c (w32font_list, w32font_match): Add logging.
18084
18085 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
18086
180872008-06-17 Chong Yidong <cyd@stupidchicken.com>
18088
18089 * font.c (font_parse_fcname): Store divider characters for
18090 unknown-spec list. For known key symbols, intern using correct
18091 symbol name.
18092
180932008-06-17 Kenichi Handa <handa@m17n.org>
18094
18095 * xfaces.c (realize_default_face): If the frame is not on window
18096 system, set the fontset of face to nil.
18097
180982008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
18099
18100 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
18101
181022008-06-16 Juanma Barranquero <lekktu@gmail.com>
18103
18104 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
18105 (build_font_name_from_vector): Delete externs.
18106
18107 * xfaces.c (struct font_name): Don't declare.
18108
181092008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
18110
18111 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
18112
181132008-06-16 Chong Yidong <cyd@stupidchicken.com>
18114
18115 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
18116
181172008-06-16 Juanma Barranquero <lekktu@gmail.com>
18118
18119 * font.c (Ffont_spec): Fix usage in docstring.
18120 (Ffont_face_attributes): Doc fix.
18121
181222008-06-16 Andreas Schwab <schwab@suse.de>
18123
18124 * font.c (Ffont_face_attributes): Fix definition.
18125
181262008-06-16 Jason Rumney <jasonr@gnu.org>
18127
18128 * font.h (font_style_symbolic_from_value): Remove.
18129
18130 * font.c (font_style_symbolic_from_value): Remove.
18131 (font_style_symbolic): Revert to pre 2008-06-13 version.
18132
18133 * w32font.c (w32_to_fc_weight): New function.
18134 (w32font_full_name, logfont_to_fcname): Use it.
18135
181362008-06-16 Kenichi Handa <handa@m17n.org>
18137
18138 * font.c (font_check_object): Delete it.
18139 (font_clear_cache): Check if a font-object is alive.
18140 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
18141 font-object to nil.
18142 (font_close_object): Don't check FONT_CLOSE_OBJECT.
18143 (font_at): Don't call font_check_object.
18144 (Ffont_get): Return a symbol for :weight, :slant, and :width.
18145
181462008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
18147
18148 * puresize.h (BASE_PURESIZE): Increase to 1230000.
18149
181502008-06-16 Chong Yidong <cyd@stupidchicken.com>
18151
18152 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
18153
181542008-06-15 Chong Yidong <cyd@stupidchicken.com>
18155
18156 * font.c (font_parse_fcname): Only one decimal point.
18157 (font_unparse_fcname): Handle data in family and foundry indices
18158 as symbols, not strings.
18159 (font_unparse_gtkname, Ffont_face_attributes): New functions.
18160
18161 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
18162
18163 * font.h (font_unparse_gtkname): Add prototype.
18164
181652008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
18166
18167 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
18168
181692008-06-15 Andreas Schwab <schwab@suse.de>
18170
18171 * font.c (font_update_drivers): Fix crash when no drivers match.
18172
181732008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
18174
18175 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
18176 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
18177
181782008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
18179
18180 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
18181
181822008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
18183
18184 * process.c (Fserial_process_configure, Fprocess_send_eof):
18185 Use EQ to compare Lisp_Objects.
18186
181872008-06-13 Jason Rumney <jasonr@gnu.org>
18188
18189 * w32fns.c (Fw32_select_font): Remove old font API function.
18190
18191 * w32font.c (logfont_to_fcname): New function.
18192 (Fx_select_font): New font dialog function compatible with
18193 GTK/fontconfig version.
18194
18195 * font.c (font_style_symbolic_from_value): New function.
18196 (font_style_symbolic): Use it.
18197
18198 * font.h (font_style_symbolic_from_value): Declare new function.
18199
182002008-06-13 Juanma Barranquero <lekktu@gmail.com>
18201
18202 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
18203 <font-width-table>: Fix typos in docstrings.
18204
182052008-06-13 Daniel Engeler <engeler@gmail.com>
18206
18207 These changes add serial port access.
18208 * process.c: Add HAVE_SERIAL.
18209 (Fdelete_process, Fprocess_status, Fset_process_buffer)
18210 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
18211 (list_processes_1, select_wrapper, Fstop_process)
18212 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
18213 (status_notify): Modify to handle serial processes.
18214 [HAVE_SERIAL] (Fserial_process_configure)
18215 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
18216 New functions.
18217 * process.h (struct Lisp_Process): Add `type'.
18218 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
18219 New functions.
18220 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
18221 serial ports.
b71ac3dd 18222 (serial_open, serial_configure): New functions.
aac0c6e3
MR
18223 * w32.h: Add FILE_SERIAL.
18224 (struct _child_process): Add ovl_read, ovl_write.
18225
182262008-06-13 Kenichi Handa <handa@m17n.org>
18227
18228 * dispextern.h (enum lface_attribute_index): New member
18229 LFACE_FOUNDRY_INDEX.
18230
18231 * font.c (font_score): Delete arg alternate_families. Check only
18232 weight, slant, width, and size. Ignore the difference of alias
18233 style symbols.
18234 (font_sort_entites): Adjust for the above change. Reflect the
18235 order of font-driver to scores.
18236 (font_list_entities): Don't check alternate_familes here.
18237 (font_clear_prop): Handle foundry.
18238 (font_update_lface): Don't parse "foundry-family" form here.
18239 Handle FONT_FOUNDRY_INDEX.
18240 (font_find_for_lface): Likewise. Handle alternate families here.
18241 If registry is nil, try iso8859-1 and ascii-0.
18242 (font_open_for_lface): Pay attention to size in ENTITY.
18243 (font_open_by_name): Simplify by calling font_load_for_lface.
18244 (free_font_driver_list): Delete it.
18245 (font_update_drivers): Preserve the order of backends.
18246 (syms_of_font): Setting of sort_shift_bits adjusted for the change
18247 of font_score and font_sort_entites.
18248 (font_update_sort_order): Likewise.
18249
18250 * xfaces.c (LFACE_FOUNDRY): New macro.
18251 (check_lface_attrs): Check foundry.
18252 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
18253 (merge_face_vectors): Check foundry.
18254 (merge_face_ref): Likewise.
18255 (Finternal_set_lisp_face_attribute): Likewise.
18256 (x_update_menu_appearance): Likewise.
18257 (Finternal_get_lisp_face_attribute): Likewise.
18258 (lface_hash): Likewise.
18259 (lface_same_font_attributes_p): Likewise.
18260 (x_supports_face_attributes_p): Likewise.
18261 (tty_supports_face_attributes_p): Likewise.
18262 (Finternal_set_alternative_font_family_alist): Intern strings.
18263 (Finternal_set_alternative_font_registry_alist): Downcase strings.
18264 (realize_default_face): Set LFACE_FOUNDRY (lface).
18265
18266 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
18267 font-driver at first.
18268
18269 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
18270
182712008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
18272
18273 * lread.c (Fload): Use xfree, not free on saved_doc_string.
18274
182752008-06-12 Jim Meyering <meyering@redhat.com>
18276
18277 Make unexec_free handle NULL the same way free does.
18278 * unexmacosx.c (unexec_free): Ignore a NULL argument.
18279
182802008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
18281
18282 * character.h (CHAR_TO_BYTE_SAFE): New macro.
18283 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
18284 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
18285 (WEAK_ALIAS): Simplify.
18286 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
18287 when searching a unibyte buffer.
18288
182892008-06-12 Chong Yidong <cyd@stupidchicken.com>
18290
18291 * xfns.c (Fx_select_font): Rename from x-font-dialog.
18292
182932008-06-12 Juanma Barranquero <lekktu@gmail.com>
18294
18295 * w32font.c: Include ctype.h.
18296
182972008-06-11 Jason Rumney <jasonr@gnu.org>
18298
18299 * w32font.c (w32font_encode_char): Detect missing glyphs that are
18300 misreported as space.
18301 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
18302 as aliases for registry iso10646-1.
18303
183042008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
18305
18306 * buffer.c (clone_per_buffer_values): Skip `name'.
18307
183082008-06-11 Chong Yidong <cyd@stupidchicken.com>
18309
18310 * font.c (font_parse_fcname): Fix last change; accept decimal
18311 points in font size.
18312
183132008-06-10 Jason Rumney <jasonr@gnu.org>
18314
18315 * w32uniscribe.c (add_opentype_font_name_to_list):
18316 Skip non unicode fonts.
18317
183182008-06-10 Chong Yidong <cyd@stupidchicken.com>
18319
18320 * xfns.c (Fx_font_dialog): New function.
18321
18322 * gtkutil.c (xg_dialog_response_cb): Rename from
18323 xg_file_response_callback.
18324 (pop_down_dialog): Rename from pop_down_file_dialog.
18325 (xg_get_file_name): Callers changed.
18326 (xg_get_font_name): New function.
18327
18328 * gtkutil.h (xg_get_font_name): Insert prototype.
18329
183302008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
18331
18332 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
18333 x_underline_minimum_display_offset.
18334 (syms_of_xdisp): Declare it here rather than in xterm.c.
18335 * dispextern.h (underline_minimum_offset): Declare it.
18336 * w32term.c (x_draw_glyph_string): Use it.
18337 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
18338 (syms_of_xterm): Don't declare it any more.
18339 (x_draw_glyph_string): Adjust to the new name.
18340
8719abec 183412008-06-10 David De La Harpe Golden <david@harpegolden.net>
aac0c6e3
MR
18342
18343 * xterm.c (x_underline_minimum_display_offset): New var.
18344 (x_draw_glyph_string): Use it.
18345 (syms_of_xterm): Declare it.
18346
183472008-06-10 Chong Yidong <cyd@stupidchicken.com>
18348
18349 * font.c (font_parse_fcname): Accept GTK-style font names too.
18350
183512008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
18352
18353 * dired.c (file_name_completion): Don't return t if the match is exact
18354 but with different capitalization.
18355 * minibuf.c (Ftry_completion): Simplify.
18356
18357 * window.c (Vwindow_point_insertion_type): New var.
18358 (set_window_buffer): Use it.
18359 (syms_of_window): Init and export it to Lisp.
18360
183612008-06-10 Kenichi Handa <handa@m17n.org>
18362
18363 * font.h (font_intern_prop): Prototype adjusted.
18364
18365 * font.c (font_intern_prop): New arg force_symbol.
18366 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
18367 Adjust for the change of font_intern_prop.
18368
18369 * ftfont.c (ftfont_pattern_entity):
18370 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
18371 (w32_registry):
18372 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
18373 the change of font_intern_prop.
18374
183752008-06-09 Juanma Barranquero <lekktu@gmail.com>
18376
18377 * w32menu.c (digest_single_submenu): Declare extern.
18378
183792008-06-09 Jason Rumney <jasonr@gnu.org>
18380
18381 * w32term.c (x_make_frame_visible): Use alternate restore flags.
18382
18383 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
18384 (parse_single_submenu): Remove.
18385 (digest_single_submenu): Remove.
18386 (syms_of_w32menu): Don't initialise variables that have moved
18387 to menu.c.
18388 (set_frame_menubar): Sync with version in xmenu.c.
18389 (w32_menu_show): Sync with xmenu_show in xmenu.c.
18390
18391 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
18392 Make static again.
18393
183942008-06-09 Jason Rumney <jasonr@gnu.org>
18395
18396 Changes to w32 files related to the move of common menu code
18397 to menu.c on 2008-06-08 by Chong Yidong.
18398
18399 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
18400 defs to w32gui.h.
18401 (single_keymap_panes, push_menu_item, push_menu_pane):
18402 Make globally visible.
18403
18404 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
18405 (local_free, malloc_widget_value, free_widget_value)
18406 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
18407 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
18408 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
18409 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
18410 (menu_items, menu_items_allocated, menu_items_used)
18411 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
18412 (init_menu_items, finish_menu_items, discard_menu_items)
18413 (grow_menu_items, push_submenu_start, push_submenu_end)
18414 (push_left_right_boundary, push_menu_pane, push_menu_item)
18415 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
18416 (free_menubar_widget_tree_value, parse_single_submenu)
18417 (update_submenu_strings): Remove functions.
18418 (xmalloc_widget_value): Remove and declare extern.
18419
18420 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
18421 (OBJ1): Build it.
18422
18423 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
18424 (local_heap, local_alloc, local_free, malloc_widget_value)
18425 (free_widget_value): Define here.
18426
184272008-06-09 Kenichi Handa <handa@m17n.org>
18428
18429 * font.h (Qascii_0): Extern it.
18430
18431 * font.c (Qascii_0): New variable.
18432 (syms_of_font): DEFSYM it.
18433 (font_open_by_name): If the registry "iso8859-1" fails, try also
18434 "ascii-0".
18435
18436 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
18437
184382008-06-08 Kenichi Handa <handa@m17n.org>
18439
18440 * .gdbinit (xfont): New command.
18441
184422008-06-08 Andreas Schwab <schwab@suse.de>
18443
18444 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
18445 * Makefile.in (menu.o): Update dependencies.
18446
18447 * Makefile.in (obj): Always add menu.o.
18448 * emacs.c (main): Always call syms_of_menu.
18449 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
18450
184512008-06-08 Chong Yidong <cyd@stupidchicken.com>
18452
18453 * Makefile.in: Compile menu.c.
18454
18455 * lisp.h: Declare syms_of_menu.
18456
18457 * emacs.c (main): Call syms_of_menu.
18458
18459 * keyboard.h: Relocate platform-independent menu definitions from
18460 xmenu.c.
18461
18462 * menu.c: New file. Relocate platform-independent menu
18463 definitions from xmenu.c. Suggested by Adrian Robert.
18464
18465 * xmenu.c: Remove platform-independent menu definitions.
560bb7ae 18466 (menu_items, menu_items_inuse, menu_items_allocated)
aac0c6e3
MR
18467 (menu_items_used, menu_items_n_panes)
18468 (menu_items_submenu_depth): Move to keyboard.h.
18469 (init_menu_items, finish_menu_items, unuse_menu_items)
18470 (discard_menu_items, restore_menu_items, save_menu_items)
18471 (grow_menu_items, push_submenu_start, push_submenu_end)
18472 (push_left_right_boundary, push_menu_pane, push_menu_item)
18473 (keymap_panes, single_keymap_panes, single_menu_item)
18474 (list_of_panes, list_of_items, find_and_call_menu_selection)
18475 (xmalloc_widget_value, free_menubar_widget_value_tree)
18476 (parse_single_submenu, digest_single_submenu)
18477 (update_submenu_strings): Move to menu.c.
18478
184792008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
18480
18481 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
18482
184832008-06-06 Miles Bader <miles@gnu.org>
18484
18485 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
18486 face, not frame default.
18487
184882008-06-05 Martin Rudalics <rudalics@gmx.at>
18489
18490 * window.c (pop_up_windows, pop_up_frames)
18491 (display_buffer_reuse_frames, Vpop_up_frame_function)
18492 (Vdisplay_buffer_function, Veven_window_heights)
18493 (Vspecial_display_buffer_names, Vspecial_display_regexps)
18494 (Vspecial_display_function, Vsame_window_buffer_names)
18495 (Vsame_window_regexps, split_height_threshold)
18496 (Vsplit_window_preferred_function): Move those vars to window.el.
18497 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
18498 (Fdisplay_buffer): Move those functions to window.el.
18499 (syms_of_window): Remove corresponding declarations.
18500 (display_buffer): New function.
18501 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
18502 * dispnew.c (Flast_nonminibuf_frame): New function.
18503 * buffer.c (Fpop_to_buffer): Move to window.el.
18504
185052008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
18506
18507 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
18508
185092008-06-05 Kenichi Handa <handa@m17n.org>
18510
18511 * coding.c (detect_coding): Fix previous change.
18512 (detect_coding_system): Likewise.
18513
185142008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
18515
18516 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
18517
18518 * keymap.c (Vminibuffer_local_filename_must_match_map):
18519 Rename from Vminibuffer_local_must_match_filename_map.
18520 (syms_of_keymap):
18521 * minibuf.c (Fcompleting_read): Adjust accordingly.
18522 * commands.h: Rename declaration as well.
18523
185242008-06-05 Kenichi Handa <handa@m17n.org>
18525
18526 * font.c (Ffont_spec): Don't use font_parse_family_registry for
18527 family name.
18528 (Ffont_put): Likewise.
18529
18530 * fontset.c (fontset_find_font): Call font_open_for_lface with the
18531 current font-spec.
18532
18533 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
18534 is unspecified.
18535
18536 * xfaces.c (realize_x_face): If the font-related face attributes
18537 are the same as those of default face, realize a new fontset from
18538 default->fontset.
18539 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
18540
185412008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
18542
18543 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
18544 (move_it_in_display_line): New wrapper.
18545
18546 * window.c (window_scroll_pixel_based_preserve_x)
18547 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
18548 (window_scroll_pixel_based, window_scroll_line_based):
18549 Use them to preserve column positions.
18550 (syms_of_window): Initialize them.
18551
18552 * indent.c (Fvertical_motion): Extend first arg to allow passing an
18553 (HPOS . VPOS) pair.
18554
18555 * dispextern.h (move_it_in_display_line): Declare.
18556
185572008-06-05 Juanma Barranquero <lekktu@gmail.com>
18558
18559 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
18560 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
18561 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
18562
185632008-06-04 Juanma Barranquero <lekktu@gmail.com>
18564
18565 * window.c (Fset_window_parameter): Doc fix.
18566 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
18567
185682008-06-04 Joakim Verona <joakim@verona.se>
18569
18570 * window.h (struct window): Add new member window_parameters.
18571
18572 * window.c (Fwindow_parameters, Fwindow_parameter)
18573 (Fset_window_parameter): New defuns.
18574 (syms_of_window): Defsubr the new defuns.
18575 (make_window): Initialize window_parameters to nil.
18576
185772008-06-04 John Paul Wallington <jpw@pobox.com>
18578
18579 * eval.c (Fdefmacro): Doc fix.
18580
185812008-06-04 Kenichi Handa <handa@m17n.org>
18582
18583 * coding.c (detect_coding): Fix handling of coding->head_ascii.
18584 Be sure to call setup_coding_system when we find a proper coding system.
18585 (detect_coding_system): Fix handling of coding->head_ascii.
18586
185872008-06-03 Andreas Schwab <schwab@suse.de>
18588
18589 * font.c (font_prop_validate_spacing): Fix last change.
18590
185912008-06-03 Kenichi Handa <handa@m17n.org>
18592
18593 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
18594 (font_parse_fcname): Fix handling of unknown key.
18595
18596 * xfont.c (xfont_list): Try an alias.
18597
18598 * charset.c (char_charset): Return NULL if the arg charset_list is
18599 specified and C doesn't belong to any of them.
18600
186012008-06-02 Chip Coldwell <coldwell@redhat.com>
18602
18603 * font.c (font_pixel_size): Don't take cdr of an integer.
18604
186052008-06-02 Jim Meyering <meyering@redhat.com>
18606
18607 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
18608 * alloc.c (xfree): Return right away for a NULL arg.
18609 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
18610 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
18611 * mac.c (create_apple_event_from_event_ref): Likewise.
18612 (create_apple_event_from_drag_ref, cfstring_create_normalized):
18613 Likewise.
18614 * doprnt.c (doprnt1): Likewise.
18615 * frame.c (frame): Likewise.
18616 * keyboard.c (wipe_kboard): Likewise.
18617 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
18618 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
18619 * term.c (tty_default_color_capabilities, maybe_fatal)
18620 (delete_tty): Likewise.
18621 * w16select.c (string): Likewise.
18622 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
18623 * w32bdf.c (w32_free_bdf_font): Likewise.
18624 * w32fns.c (w32_unload_font): Likewise.
18625 * w32font.c (w32font_close): Likewise.
18626 * window.c (size_window): Likewise.
18627 * xselect.c (receive_incremental_selection): Likewise.
18628 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
18629 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
18630 * w32.c (stat): Likewise.
18631
18632 Remove useless if-before-free tests.
18633 * editfns.c (Fset_time_zone_rule): Likewise.
18634 * lread.c (nosuffix): Likewise.
18635 * ralloc.c (get_bloc): Likewise.
18636 * regex.c (reg_free): Likewise.
18637 * xftfont.c (xftfont_open, xftfont_close): Likewise.
18638 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
18639 * xsmfns.c (smc_save_yourself_CB): Likewise.
18640
186412008-06-02 Kenichi Handa <handa@m17n.org>
18642
18643 * font.c (font_find_for_lface): Handle float font size.
18644 (font_open_for_lface): Likewise.
18645
18646 * xfaces.c (x_supports_face_attributes_p): Check face->font before
18647 comparing the properties.
18648
186492008-06-01 Jason Rumney <jasonr@gnu.org>
18650
18651 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
18652 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
18653 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
18654 Don't add empty script list.
18655 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
18656
186572008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
18658
18659 * Makefile.in (dot, dotdot): Remove, update users.
18660 ".." has been used elsewhere in the file for a long time.
18661 (LIBXT_STATIC): Remove conditional based on unused variable.
18662
186632008-06-01 Miles Bader <miles@gnu.org>
18664
18665 * xfaces.c (Vface_remapping_alist): New variable.
18666 (syms_of_xfaces): Initialize it.
18667 (enum named_merge_point_kind): New type.
18668 (struct named_merge_point): Add `named_merge_point_kind' field.
18669 (push_named_merge_point): Make cycle detection respect different
18670 named-merge-point kinds.
18671 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
18672 Remove face-name alias resolution.
18673 (lface_from_face_name): New definition using
18674 `lface_from_face_name_no_resolve'.
18675 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
18676 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
18677 (get_lface_attributes): New definition that layers face-remapping on
18678 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
18679 (lookup_basic_face): New function.
18680 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
18681 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
18682 `get_lface_attributes'.
18683 (face_at_buffer_position): Use `lookup_basic_face' to lookup
18684 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
18685 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
18686
18687 * xdisp.c (init_iterator): Pass base_face_id through
18688 `lookup_basic_face' when we actually use it as a face-id.
18689 (handle_single_display_prop): Use `lookup_basic_face' to lookup
18690 DEFAULT_FACE_ID.
18691
18692 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
18693 lookup the initial face-id.
18694
18695 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
18696
186972008-06-01 Juanma Barranquero <lekktu@gmail.com>
18698
18699 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
18700 (Fremove_text_properties): Fix typos in docstrings.
18701
187022008-05-31 Kenichi Handa <handa@m17n.org>
18703
18704 * font.c (font_list_entities): Fix the car part of data to be
18705 stored in the cache.
18706
18707 * ftfont.c (ftfont_font_format): Don't use strcasestr.
18708
187092008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
18710
18711 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
18712 Add a `test' argument so another predicate than `equal' can be used.
18713 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
18714 (map_char_table): Remove unused vars `c' and `i'.
18715 * lisp.h (Foptimize_char_table): Adjust declaration.
18716 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
18717
187182008-05-30 Kenichi Handa <handa@m17n.org>
18719
18720 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
18721 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
18722 defined.
18723
187242008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
18725
18726 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
18727 (Fmake_variable_frame_local): Disallow mixing buffer-local and
18728 frame-local settings for the same variable.
18729
187302008-05-30 Kenichi Handa <handa@m17n.org>
18731
18732 * fontset.c (Ffont_info): Move to font.c.
18733 (syms_of_fontset): Delete defsubr of Sfont_info.
18734
18735 * font.c (font_style_to_value, font_score): Delete casting of the
18736 args to xstcasecmp.
18737 (register_font_driver): Increment num_font_drivers only when
18738 registering the driver globally.
18739 (Ffont_info): Move from fontset.c. Handle a font object too.
18740 (syms_of_font): Defsubr Sfont_info.
18741
187422008-05-29 Kenichi Handa <handa@m17n.org>
18743
18744 * coding.h (enum define_coding_utf8_arg_index): New enum.
18745 (enum coding_attr_index): Change coding_attr_utf_16_bom to
18746 coding_attr_utf_bom.
18747 (enum utf_bom_type): Rename from utf_16_bom_type.
18748 (struct utf_16_spec): Adjust for the above change.
18749 (struct coding_system): Add utf_8_bom in `spec' union.
18750
18751 * coding.c (CODING_UTF_8_BOM): New macro.
18752 (enum coding_category): Delete coding_category_utf_8, add
18753 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
18754 coding_category_utf_8_sig.
18755 (CATEGORY_MASK_UTF_8): Delete it.
18756 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
18757 (CATEGORY_MASK_UTF_8_SIG): New macros.
18758 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
18759 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
18760 CATEGORY_MASK_UTF_8_SIG.
18761 (CATEGORY_MASK_UTF_8): New macro.
18762 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
18763 (detect_coding_utf_8): Check BOM.
18764 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
18765 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
18766 (encode_coding_utf_16): Likewise.
18767 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
18768 (detect_coding, detect_coding_system): Handle utf-8-auto.
18769 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
18770 (syms_of_coding): Fix setting up of Vcoding_category_table.
18771
187722008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
18773
18774 * process.c (Faccept_process_output): If `millisec' is non-nil,
18775 `seconds' default to 0.
18776 (wait_reading_process_output): Also return non-nil if we read output
18777 from a non-running process.
18778
187792008-05-29 Jason Rumney <jasonr@gnu.org>
18780
18781 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
18782 `raster' specified.
18783 (add_font_entity_to_list): Allow non-opentype truetype fonts back
18784 in the uniscribe backend, but disallow any font that has no
18785 unicode subrange support.
18786
187872008-05-29 Juanma Barranquero <lekktu@gmail.com>
18788
18789 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
18790 Fix typos in docstrings.
18791
187922008-05-29 Kenichi Handa <handa@m17n.org>
18793
18794 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
18795 (Fx_family_fonts): Set frame correctly.
18796
187972008-05-28 Jason Rumney <jasonr@gnu.org>
18798
18799 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
18800
188012008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
18802
18803 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
18804 calling build_annotations.
18805
188062008-05-28 Juanma Barranquero <lekktu@gmail.com>
18807
18808 * coding.c (Fdecode_coding_region, Fencode_coding_region)
18809 (Fencode_coding_string):
18810 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
18811 <latin-extra-code-table>: Fix typos in docstrings.
18812 (syms_of_coding) <coding-system-alist>: Doc fix.
18813 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
18814
188152008-05-28 Kenichi Handa <handa@m17n.org>
18816
18817 * fontset.c (Ffont_info): Don't call font_close_object.
18818
18819 * font.c (font_parse_family_registry): Use Ffont_put to validate
18820 foundry and family.
18821 (font_delete_unmatched): Don't check spacing.
18822 (font_list_entities): Add spacing to the spec to list fonts.
18823
18824 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
18825 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
18826
18827 * coding.c (encode_coding_raw_text): Fix previous change.
18828 (encode_coding_object): When the dst_object is a buffer and is
18829 different from src_object, move gap to PT.
18830
188312008-05-27 Chong Yidong <cyd@stupidchicken.com>
18832
18833 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
18834
188352008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
18836
18837 * coding.c (encode_coding_raw_text): Set coding->produced_char for
18838 all branches. Compute it differently.
18839
18840 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
18841
188422008-05-27 Juanma Barranquero <lekktu@gmail.com>
18843
18844 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
18845 into "else if () ... else ...".
18846
188472008-05-27 Jason Rumney <jasonr@gnu.org>
18848
18849 * w32font.c (w32font_open_internal): Determine if glyph indices
18850 are likely to work here.
18851
188522008-05-27 Chong Yidong <cyd@stupidchicken.com>
18853
18854 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
18855 draw overlap glyphs with appropriate highlighting.
18856
188572008-05-27 Kenichi Handa <handa@m17n.org>
18858
18859 * xfont.c (xfont_open): Fix calculation of font->average_width.
18860
188612008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
18862
18863 * casefiddle.c (casify_object): Try to guess better whether the
18864 argument is a byte or a char.
18865
188662008-05-26 Andreas Schwab <schwab@suse.de>
18867
18868 * xselect.c (x_reply_selection_request): Properly handle format == 32.
18869 Always send multiples of format size.
18870
18871 * xterm.c (x_set_frame_alpha): Fix type mismatch.
18872
188732008-05-26 Jason Rumney <jasonr@gnu.org>
18874
18875 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
18876 (compute_metrics): Don't set failure if we just cleared the cache.
18877 (w32_weight_table): Remove unused variable.
18878 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
18879 backwards compatibility.
18880
188812008-05-25 Kenichi Handa <handa@m17n.org>
18882
18883 * w32term.c (x_draw_glyph_string):
18884 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
18885
18886 * xfaces.c: Delete unused function prototypes.
18887 (xstrlwr, font_frame): Delete them.
18888 (clear_face_cache): Delete unused variable.
18889
18890 * xftfont.c (xftfont_open): Delete unused variable.
18891 If underline_thickness is not 1, adjust underline_position.
18892
18893 * ftxfont.c (ftxfont_open): Delete unused variable.
18894
18895 * fontset.c (face_for_char): Optimize for the case of no charset
18896 property.
18897
18898 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
18899 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
18900 (otf_open, font_otf_capability, generate_otf_features)
18901 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
18902 Comment out by surrounding "#if 0" and "#endif" for the moment.
18903 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
18904 (syms_of_font): Codes for accessing above commented out.
18905
189062008-05-24 Eli Zaretskii <eliz@gnu.org>
18907
18908 * w32proc.c: Include dispextern.h.
18909
18910 * w32.c: Include dispextern.h.
18911
189122008-05-23 Juanma Barranquero <lekktu@gmail.com>
18913
18914 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
18915 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
18916 Fix typos in docstrings.
18917
189182008-05-23 Jason Rumney <jasonr@gnu.org>
18919
18920 * xsmfns.c: Remove includes that are already included by config.h.
18921
189222008-05-23 Kenichi Handa <handa@m17n.org>
18923
18924 * charset.c (Qemacs, charset_emacs): New variables.
18925 (char_charset): Fix for non-Unicode characters.
18926 (syms_of_charset): Define charset_emacs.
18927
18928 * w32term.c (x_draw_glyph_string): Be sure to update
18929 s->underline_thickness and s->underline_position. Be sure to draw
18930 underline within the current line area.
18931
18932 * xterm.c (x_draw_glyph_string): Be sure to update
18933 s->underline_thickness and s->underline_position. Be sure to draw
18934 underline within the current line area.
18935
18936 * fontset.c: Delete unused variables and add casting for char *
18937 throughout the file.
18938 (fontset_font): Try the fallback fonts of the current fontset
18939 before consulting the default fontset.
18940
18941 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
18942
18943 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
18944
189452008-05-22 Jason Rumney <jasonr@gnu.org>
18946
18947 * font.c: Don't include strings.h.
18948
18949 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
18950
18951 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
18952 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
18953 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
18954 to call xstrcasecmp.
18955
18956 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
18957
18958 * fontset.c (fs_query_fontset): Use xstrcasecmp.
18959
18960 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
18961
18962 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
18963
189642008-05-22 Kenichi Handa <handa@m17n.org>
18965
18966 * puresize.h (BASE_PURESIZE): Increase to 1220000.
18967
18968 * font.c (font_prop_validate_style): Adjust for the format
18969 change of font_style_table.
18970
18971 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
18972 two args.
18973
18974 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
18975 two args.
18976
189772008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
18978
18979 * minibuf.c (keys_of_minibuf): Delete.
18980 * lisp.h (keys_of_minibuf): Delete.
18981 * emacs.c (main): Don't call keys_of_minibuf.
18982
189832008-05-22 Kenichi Handa <handa@m17n.org>
18984
18985 * ftfont.c (ftfont_resolve_generic_family): Rename from
18986 ftfont_list_generic_family. Return a single family for each
18987 generic family.
18988 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
18989 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
18990 Call font_add_log.
18991 (ftfont_match): Call font_add_log.
18992
18993 * font.h (Ffont_xlfd_name): EXFUN adjusted.
18994 (FONT_DEBUG): Define it.
18995 (font_add_log): Extern it.
18996 (font_assert): Rename from xassert.
18997
18998 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
18999 (xfont_list_family): Call font_add_log.
19000 (xfont_match): Likewise.
19001 (memq_no_quit): Delete.
19002
19003 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
19004 call of Ffont_xlfd_name.
19005
19006 * xfaces.c (struct table_entry, slant_table, weight_table)
19007 (swidth_table): Move to font.c.
19008
19009 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
19010 xassert are changed to font_assert. Delete many unused variables.
19011 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
19012 New variables.
19013 (struct table_entry): Move from xfaces.c and modified.
19014 (weight_table, slant_table, width_table): Move from xfaces.c and
19015 contents adjusted for the change of struct table_entry.
19016 (font_style_to_value, font_style_symbolic): Adjust for the
19017 format change of font_style_table.
19018 (font_parse_family_registry): Don't overwrite existing foundry and
19019 family of font_spec.
19020 (font_score): Fix calculation of diff for sizes.
19021 (font_sort_entites): Call font_add_log.
19022 (font_delete_unmatched): Return a newly created list.
19023 (font_list_entities): Fix previous change. Call font_add_log.
19024 (font_matching_entity, font_open_entity, font_close_entity):
19025 Call font_add_log.
19026 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
19027 (Finternal_set_font_style_table): Delete.
19028 (BUILD_STYLE_TABLE): New macro.
19029 (build_style_table): New function.
19030 (Vfont_log, font_log_env_checked): New variables.
19031 (font_add_log): New function.
19032 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
19033 Declare Lisp variables "font-weight-table", "font-slant-table",
19034 "font-width-table", and "font-log". Initialize font_style_table.
19035
190362008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
19037
19038 * xterm.c (x_set_frame_alpha): Move declarations before statements.
19039
190402008-05-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 19041 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
19042
19043 * frame.c (Qalpha): Add a new frame parameter `alpha'.
19044 (Vframe_alpha_lower_limit): New variable.
19045 (x_set_alpha): New function.
19046
19047 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
19048
19049 * xfns.c (x-create-frame, Qalpha):
19050 Initialize the frame parameter `alpha'.
19051 * xterm.c (OPAQUE, OPACITY): New.
19052 (x_set_frame_alpha): New function.
19053 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
19054
19055 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
19056 * w32fns.c (w32_frame_parm_handlers): Likewise.
19057
190582008-05-20 Jason Rumney <jasonr@gnu.org>
19059
19060 * w32font.c (add_font_entity_to_list): Don't add non-opentype
19061 truetype fonts to opentype list.
19062
190632008-05-20 Juanma Barranquero <lekktu@gmail.com>
19064
19065 * fontset.c (Ffontset_info): Doc fix.
19066 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
19067 <ignore-relative-composition>: Fix typos in docstrings.
19068
19069 * font.c (syms-of-font) <font-encoding-alist>:
19070 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
19071 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
19072 (Ffont_otf_alternates): Doc fixes.
19073
190742008-05-20 Kenichi Handa <handa@m17n.org>
19075
19076 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
19077 font.h through out the file.
19078 (FONT_DRIVERS): Rename from FONTOBJ.
19079 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
19080 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
19081
19082 * emacs.c (main): Call syms_of_font unconditionally.
19083
19084 * font.h (find_font_encoding): Extern it.
19085
19086 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
19087 fontset.c.
194d44e7 19088 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
aac0c6e3
MR
19089 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
19090 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
19091 only when HAVE_WINDOW_SYSTEM is defined.
19092 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
19093 when HAVE_WINDOW_SYSTEM is defined.
19094
19095 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
19096 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
19097
19098 * xfaces.c: Include font.h unconditionally.
19099 (merge_face_ref, merge_face_vectors)
19100 (Finternal_set_lisp_face_attribute): Cancel the previous change.
19101
191022008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
19103
19104 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
19105 indirect_variable.
19106 * eval.c (lisp_indirect_variable): New fun.
19107 (Fuser_variable_p): Use it.
19108
191092008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
19110
19111 * lisp.h (indirect_variable):
19112 * data.c (indirect_variable, let_shadows_buffer_binding_p):
19113 Use Lisp_Symbol pointers rather than Lisp_Object.
19114 Adjust callers.
19115 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
19116 To this end, change calling-convention.
19117
19118 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
19119 if some non-hidden buffers are selected by string&pred.
19120
191212008-05-19 Chong Yidong <cyd@stupidchicken.com>
19122
19123 * process.c (wait_reading_process_output): Always check status
19124 when in batch mode.
19125
191262008-05-19 Kenichi Handa <handa@m17n.org>
19127
19128 * font.c (font_list_entities): Fix handling of cache.
19129 (font_matching_entity): Likewise.
19130
19131 * ftfont.c (cs_iso8859_1): Delete.
19132 (ft_face_cache): New variable.
19133 (struct ftfont_info): New member fc_charset_idx.
19134 (ftfont_build_basic_charsets): Delete.
19135 (fc_charset_table): New variable.
19136 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
19137 . FC_CHARSET_IDX) as :font-entity property in the font entity.
19138 Callers changed.
19139 (ftfont_lookup_cache, ftfont_get_charset): New functions.
19140 (ftfont_spec_pattern): New argument fc_charset_idx.
19141 Check registry more rigidly. Change callers.
19142 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
19143 change of :font-entity property of the font.
19144
19145 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
19146 property of the font.
19147
191482008-05-18 Juanma Barranquero <lekktu@gmail.com>
19149
19150 * coding.c (Fcoding_system_p): Rename argument to match docstring.
19151 (Funencodable_char_position, Fcheck_coding_systems_region)
19152 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
19153 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
19154 (Ffind_operation_coding_system, Fset_coding_system_priority)
19155 (Fcoding_system_eol_type): Doc fixes.
19156
191572008-05-17 Glenn Morris <rgm@gnu.org>
19158
19159 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
19160
191612008-05-16 Eli Zaretskii <eliz@gnu.org>
19162
19163 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
19164 and st_gid.
19165
19166 * frame.c (Fdelete_frame): Don't call font_update_drivers if
19167 HAVE_WINDOW_SYSTEM is not defined.
19168
19169 * xfaces.c (merge_face_ref, merge_face_vectors)
19170 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
19171 HAVE_WINDOW_SYSTEM is defined.
19172 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
19173
191742008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
19175
19176 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
19177
191782008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19179
19180 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
19181
191822008-05-15 Kenichi Handa <handa@m17n.org>
19183
19184 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
19185 preference.
19186
191872008-05-15 Glenn Morris <rgm@gnu.org>
19188
19189 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
19190
191912008-05-15 Chong Yidong <cyd@stupidchicken.com>
19192
19193 * fns.c (init_fns): Don't initialize weak_hash_tables here.
19194 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
19195
19196 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
19197
191982008-05-15 Kenichi Handa <handa@m17n.org>
19199
19200 * ftfont.c (ftfont_list): Downcase family name to check generic
19201 families.
19202
19203 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
19204 font-spec for QCfont value.
19205
19206 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
19207 buffer. Check the return value of it.
19208
192092008-05-14 Jason Rumney <jasonr@gnu.org>
19210
19211 * w32term.c (w32_get_glyph_overhangs): Remove.
19212 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
19213
192142008-05-14 Kenichi Handa <handa@m17n.org>
19215
19216 * font.c (font_prop_validate): Make nil a valid value.
19217 (font_clear_cache): Check if the cached vector of entities is nil
19218 or not.
19219
192202008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19221
19222 * emacs.c (main_thread): Conditionalize on
19223 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
19224 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
19225
19226 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
19227 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
19228 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
19229
192302008-05-14 Kenichi Handa <handa@m17n.org>
19231
19232 * coding.c (detect_coding_iso_2022): Ignore a coding category that
19233 has no corresponding coding system.
19234
192352008-05-14 Jason Rumney <jasonr@gnu.org>
19236
19237 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
19238
19239 * w32font.h (w32font_open_internal): Update declaration.
19240
19241 * w32font.c (w32font_open_internal): Change last argument from
19242 w32font_info struct to font object. Fill in font object from
19243 font_entity. Get Outline metrics if possible. Use them to
19244 calculate underline position and thickness. Use xlfd name as name
19245 property. Don't set codepage.
19246 (w32font_open): Pass font_object to w32font_open_internal. Don't
19247 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
19248 (w32font_draw): Use s->font.
19249 (clear_cached_metrics): Don't clear non-existent blocks.
19250
19251 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
19252 font was not found.
19253 (x_draw_glyph_string): Use underline position and thickness from font.
19254
19255 * w32uniscribe.c (uniscribe_open): Pass font_object to
19256 w32font_open_internal.
19257
192582008-05-14 Kenichi Handa <handa@m17n.org>
19259
19260 These changes are to delete all legacy font-handling codes, and
19261 make Emacs use only font-backends.
19262
19263 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
19264 (frame.o, image.o, print.o): Depend on $(FONTSRC).
19265
19266 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
19267
19268 * charset.h (Vcharset_non_preferred_head)
19269 (Vcurrent_iso639_language): Extern them.
19270
19271 * charset.c (Vcharset_non_preferred_head): New variable.
19272 (Vcurrent_iso639_language): New variable.
19273 (syms_of_charset): Declare it as a Lisp variable.
19274 (char_charset): Don't check non preferred charsets. As a last
19275 resort, return charset_unicode.
19276 (Fset_charset_priority): Update Vcharset_non_preferred_head.
19277
19278 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
19279 conditionals. Don't check enable_font_backend. Delete all codes
19280 used only when USE_FONT_BACKEND is not defined.
19281
19282 * dispextern.h (struct glyph_string): Change type of `font' to
19283 `struct font *'.
19284 (struct glyph_string): New member underline_position and
19285 underline_thickness.
19286 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
bba3e508
SM
19287 (struct face): Change type of `font' to `struct font *'.
19288 Remove members `font_name', `font_info_id'.
aac0c6e3
MR
19289 (per_char_metric, encode_char): Delete externs.
19290 (calc_pixel_width_or_height): Adjust the prototype.
19291
19292 * emacs.c (enable_font_backend): Delete extern.
19293 (main): Don't set enable_font_backend. Don't check the command
19294 line argument "-disable-font-backend".
19295
19296 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
19297 (enum font_property_index): New members FONT_DPI_INDEX,
19298 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
19299 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
19300 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
19301 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
19302 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
19303 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
19304 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
19305 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
19306 (struct font_spec, struct font_entity): New structs.
ef1b0ba7 19307 (FONT_ENCODING_NOT_DECIDED): Move from fontset.h.
aac0c6e3
MR
19308 (struct font): Many members from old "struct font_info" moved to
19309 here. Members font and entity deleted.
19310 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
19311 the new font-related objects.
19312 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
19313 (CHECK_FONT_GET_OBJECT): Likewise.
19314 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
ef1b0ba7 19315 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Move from font.h.
bba3e508
SM
19316 (struct font_driver): New members case_sensitive anc check.
19317 Type of the member list and open changed.
aac0c6e3
MR
19318 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
19319 (font_symbolic_width, font_find_object, font_get_spec)
19320 (font_set_lface_from_name): Delete extern.
19321 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
19322
19323 * font.c: Include <strings.h>.
19324 (enable_font_backend): Delete it.
19325 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
19326 (CHECK_VALIDATE_FONT_SPEC): Delete it.
ef1b0ba7 19327 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Move to font.h.
aac0c6e3
MR
19328 (null_string): Delete it.
19329 (null_vector): Make it static.
19330 (font_family_alist): Delete it.
19331 (Qnormal): Extern it.
19332 (QCextra, QClanguage): Delete it.
19333 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
19334 (font_make_spec, font_make_entity, font_make_object)
ef1b0ba7 19335 (font_intern_prop): Rename from intern_downcase. Don't downcase
aac0c6e3 19336 the string. Callers changed.
bba3e508 19337 (font_pixel_size): Adjust for the format change of font-related
aac0c6e3
MR
19338 objects.
19339 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
19340 (font_style_to_value, font_style_symbolic): New function.
19341 (build_font_family_alist): Delete it.
19342 (font_registry_charsets): Use Fassoc_string instead of
19343 assq_no_quit.
19344 (font_prop_validate_symbol): Don't return null_string.
bba3e508 19345 (font_prop_validate_style): Adjust for the change of
aac0c6e3
MR
19346 style-related values in a font vector.
19347 (font_property_table): Delete entries for QClanguage and
19348 QCantialias, add entries for QCavgwidth.
19349 (get_font_prop_index): Delete the 2nd argument FROM.
19350 (font_prop_validate): Arguments changed.
bba3e508 19351 (font_put_extra): Adjust for the change of font-related objects.
aac0c6e3
MR
19352 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
19353 (font_parse_fcname, font_unparse_fcname)
19354 (font_prepare_composition): Likewise.
ef1b0ba7 19355 (font_parse_family_registry): Rename from font_merge_old_spec.
aac0c6e3 19356 (otf_open): Delete the 1st arg entity.
bba3e508 19357 (font_otf_capability): Adjust for the above change.
aac0c6e3
MR
19358 (font_score): New arg alternate_families. Adjusted for the change
19359 of font-related objects.
19360 (font_sort_entites): New arg best_only.
19361 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
19362 Delete them.
19363 (font_match_p): Check alternate families.
19364 (font_find_object): Delete it.
19365 (font_check_object): New function.
bba3e508 19366 (font_clear_cache): Adjust for the change of font-related objects.
aac0c6e3
MR
19367 (font_delete_unmatched): New arg.
19368 (font_list_entities): Call font_driver->list with a spec that
19369 doesn't specify style-related properties.
19370 (font_matching_entity): Arguments changed. Caller changed.
bba3e508 19371 (font_open_entity): Adjust for the change of font-related objects.
aac0c6e3
MR
19372 (font_close_object, font_has_char, font_encode_char)
19373 (font_get_name, font_get_spec): Likewise.
19374 (font_spec_from_name, font_clear_prop, font_update_lface):
19375 New functions.
19376 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
19377 (font_prepare_for_face, font_done_for_face, font_open_by_name)
bba3e508 19378 (font_at): Adjust for the change of font-related objects.
aac0c6e3
MR
19379 (font_range): New function.
19380 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
bba3e508 19381 (Ffont_xlfd_name): Adjust for the change of font-related objects.
aac0c6e3 19382 (Fcopy_font_spec, Fmerge_font_spec): New function.
ef1b0ba7 19383 (Ffont_family_list): Rename from list-families.
aac0c6e3
MR
19384 (Finternal_set_font_style_table): Arguments changed.
19385 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
bba3e508 19386 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjust for the
aac0c6e3
MR
19387 change of font-related objects.
19388 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
19389
19390 * fontset.h (struct font_info): Delete it. Most members go to
19391 struct font.
ef1b0ba7 19392 (FONT_ENCODING_NOT_DECIDED): Move to font.h.
aac0c6e3
MR
19393 (enum FONT_SPEC_INDEX): Delete it.
19394 (font_info, list_fonts_func, load_font_func, query_font_func)
19395 (set_frame_fontset_func, find_ccl_program_func)
bba3e508
SM
19396 (get_font_repertory_func, new_fontset_from_font_name):
19397 Delete externs.
aac0c6e3
MR
19398 (fontset_from_font_name): Extern it.
19399 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
19400 (FONT_INFO_FROM_FACE): Deleted.
19401 (face_for_font): Adjust prototype.
19402
19403 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
19404 conditionals. Don't check enable_font_backend. Delete all codes
19405 used only when USE_FONT_BACKEND is not defined.
19406 (get_font_info_func, list_font_func, load_font_func)
19407 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
19408 (get_font_repertory_func): Delete them.
19409 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
19410 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
19411 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
19412 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
19413 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
19414 (fontset_compare_rfontdef): New function.
19415 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
19416 rfont-defs by qsort. Adjusted for the change of font-group vector.
19417 (load_font_get_repertory): Deleted.
19418 (fontset_find_font): Use new macros to ref/set elements of
19419 font-def and rfont-def.
19420 (fontset_font): Fix the timing of remembering that no font for C.
19421 (free_face_fontset): Do nothing if the face has no fontset.
19422 (face_suitable_for_char_p): Use new macros to ref/set elements of
19423 rfont-def.
19424 (face_for_char): Likewise. Call face_for_char with font_object.
19425 (fs_load_font): Delete. Delete #pragma surrounding it.
19426 (fs_query_fontset): Use strcasecmp instead of strcmp.
bba3e508 19427 (generate_ascii_font_name): Adjust for the format change of
aac0c6e3
MR
19428 font-spec.
19429 (Fset_fontset_font): Likewise. Use new macros to set elements of
19430 font-def.
19431 (Fnew_fontset): Use font_unparse_xlfd to generate
19432 FONTSET_ASCII (fontset).
19433 (new_fontset_from_font_name): Deleted.
ef1b0ba7 19434 (fontset_from_font): Rename from new_fontset_from_font. Check if
aac0c6e3
MR
19435 a fontset is already created for the font. FIx updating of
19436 Vfontset_alias_alist.
19437 (fontset_ascii_font): Deleted.
bba3e508 19438 (Ffont_info): Adjust for the format change of font-spec.
aac0c6e3
MR
19439 (Finternal_char_font): Likewise.
19440 (Ffontset_info): Likewise.
19441 (syms_of_fontset): Don't check load_font_func.
19442
19443 * fns.c (internal_equal): Handle PREV_FONT.
19444
19445 * frame.h: Delete USE_FONT_BACKEND conditional.
19446
19447 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
19448 conditionals. Don't check enable_font_backend. Delete all codes
19449 used only when USE_FONT_BACKEND is not defined.
19450 (x_set_font): Call x_new_font, not x_new_fontset2.
19451 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
19452 already set for the frame.
19453
bba3e508
SM
19454 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed.
19455 Make a font-entity by font_make_entity. Use font_intern_prop instead
aac0c6e3
MR
19456 of intern_downcase. Use FONT_SET_STYLE to set a style-related
19457 font property. If a font is scalable, set avgwidth property to 0.
19458 Set font-entity property by font_put_extra.
19459 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
bba3e508 19460 (ffont_driver): Adjust for the change of struct font_driver.
aac0c6e3
MR
19461 (ftfont_spec_pattern): New function.
19462 (ftfont_list): Return a list, not vector.
19463 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
19464 (ftfont_list_family): Don't downcase names.
19465 (ftfont_free_entity): Deleted.
19466 (ftfont_open): Return a font-object. Adjusted for the change of
19467 struct font. Get underline_thickness and underline_position from
19468 font property. Don't update dpyinfo->smallest_font_height and
19469 dpyinfo->smallest_char_width.
19470 (ftfont_close): Don't free `struct font'.
bba3e508 19471 (ftfont_has_char): Adjust for the format change of font-entity.
aac0c6e3
MR
19472 (ftfont_encode_char, ftfont_text_extents): Likewise.
19473
19474 * ftxfont.c (ftxfont_list): Return a list, not vector.
19475 (ftxfont_open): Return a font-object. Adjusted for the change of
19476 struct font. Get underline_thickness and underline_position from
19477 font property. Don't update dpyinfo->smallest_font_height and
19478 dpyinfo->smallest_char_width.
19479 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
bba3e508 19480 (ftxfont_draw): Adjust for the change of struct font.
aac0c6e3 19481
bba3e508
SM
19482 * image.c (image_ascent): Don't include "charset.h".
19483 Include "character.h" and "font.h".
aac0c6e3
MR
19484
19485 * lisp.h (enum pvec_type): New member PREV_FONT.
19486 (Fassoc_string): EXFUN it.
19487
19488 * print.c: Include font.h.
19489 (print_object): Handle font-related objects.
19490
19491 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
19492 conditionals. Don't check enable_font_backend. Delete all codes
19493 used only when USE_FONT_BACKEND is not defined.
19494 (handle_auto_composed_prop): Do nothing if it->f is not on a
19495 window system. Check how many following characters can be
19496 displayed by the same font.
19497 (calc_pixel_width_or_height): Type of the 4th arg is changed to
19498 'struct font *'.
19499 (get_char_face_and_encoding): Assign the whole encoding task to
19500 the `encode-char' method of a font driver.
bba3e508 19501 (fill_composite_glyph_string): Adjust for the change of `struct
aac0c6e3
MR
19502 face' and `struct glyph_string'.
19503 (fill_glyph_string): Likewise.
19504 (get_per_char_metric): Arguments changed.
bba3e508 19505 (x_get_glyph_overhangs): Adjust for the change of `struct face'
aac0c6e3
MR
19506 and `struct glyph_string'.
19507 (produce_stretch_glyph, calc_line_height_property)
19508 (x_produce_glyphs): Likewise.
19509
19510 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
19511 conditionals. Don't check enable_font_backend. Delete all codes
bba3e508
SM
19512 used only when USE_FONT_BACKEND is not defined.
19513 Use FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
aac0c6e3
MR
19514 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
19515 (Qp): Extern them.
19516 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
19517 Deleted.
19518 (struct font_name): Deleted.
19519 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
19520 (compare_fonts_by_sort_order): New function.
19521 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
19522 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
19523 Deleted.
19524 (Fx_family_fonts): Use font_list_entities, and sort fonts by
19525 compare_fonts_by_sort_order.
19526 (Fx_font_family_list): Call Ffont_family_list.
19527 (face_numeric_value, face_numeric_weight, face_numeric_slant)
19528 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
19529 (face_symbolic_slant, face_symbolic_swidth)
19530 (split_font_name_into_vector, build_font_name_from_vector)
19531 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
19532 (font_rescale_ratio, split_font_name, build_font_name)
19533 (free_font_names, sort_fonts, x_face_list_fonts)
19534 (face_font_available_p, sorted_font_list, cmp_font_names)
19535 (font_list_1, concat_font_list, font_list, remove_duplicates):
19536 Deleted.
19537 (Fx_list_fonts): Use Ffont_list.
19538 (LFACE_AVGWIDTH): Deleted.
19539 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
19540 by FONTP.
19541 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
19542 (set_lface_from_font_name): Delete it.
ef1b0ba7 19543 (set_lface_from_font): Rename from
aac0c6e3
MR
19544 set_lface_from_font_and_fontset. Caller changed. Don't set
19545 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
19546 for face.
19547 (merge_face_vectors): Copy font-spec if necessary.
19548 Clear properties of the font-spec if necessary.
19549 (merge_face_ref): Clear properties of the font-spec if necessary.
19550 (Finternal_set_lisp_face_attribute): Likewise.
19551 (set_font_frame_param): Use font_load_for_lface to load a
19552 font-object, and call Fmodify_frame_parameters with it.
19553 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
19554 font name by Ffont_xlfd_name.
19555 (Finternal_lisp_face_attribute_values): Don't check QCweight,
19556 QCslant, and QCwidth.
19557 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
19558 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
19559 Compare fonts by EQ.
19560 (lookup_non_ascii_face): Deleted.
19561 (face_for_font): The 2nd argument changed.
19562 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
19563 Check atomic font properties by case insensitive.
19564 (realize_non_ascii_face): Set face->overstrike correctly.
19565 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
19566 (dump_realized_face): Get font name from
19567 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
19568
19569 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
19570 conditionals. Don't check enable_font_backend. Delete all codes
19571 used only when USE_FONT_BACKEND is not defined.
19572 (xic_create_xfontset): Original code deleted and renamed from
19573 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
19574 (x_make_gc): Don't set GCFont in GCs.
19575 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
19576 opened by "fixed".
19577 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
19578 find_ccl_program_func, query_font_func, set_frame_fontset_func,
19579 get_font_repertory_func.
19580
19581 * xfont.c: Include <stdlib.h> and "ccl.h".
19582 (struct xfont_info): New structure.
19583 (xfont_query_font): Deleted.
ef1b0ba7 19584 (xfont_find_ccl_program): Rename from x_find_ccl_program and
aac0c6e3 19585 moved from xterm.c.
bba3e508 19586 (xfont_driver): Adjust for the change of struct font_driver.
aac0c6e3 19587 (compare_font_names): New function.
ef1b0ba7
SM
19588 (xfont_list_pattern): Sort font names case insensitively.
19589 Make font_entity by calling font_make_entity. Avoid auto-scaled fonts.
aac0c6e3
MR
19590 (xfont_list): Return a list, not vector.
19591 (xfont_match): If the font doesn't have QCname property, generate
19592 a name from the other font properties.
19593 (xfont_open): Return a font-object. Adjusted for the change of
19594 struct font. Get underline_thickness and underline_position from
19595 font property. Don't update dpyinfo->smallest_font_height and
19596 dpyinfo->smallest_char_width.
19597 (xfont_close): Don't free struct font.
bba3e508 19598 (xfont_prepare_face): Adjust for the change of struct font.
aac0c6e3 19599 (xfont_done_face): Deleted.
bba3e508 19600 (xfont_has_char): Adjust for the change of struct font.
aac0c6e3
MR
19601 (xfont_encode_char, xfont_draw): Likewise.
19602 (xfont_check): New function.
19603
bba3e508 19604 * xftfont.c (xftfont_list): Adjust for the change of `list'
aac0c6e3 19605 callback function.
bba3e508
SM
19606 (xftfont_match): Adjust for the format change of font-entity.
19607 (xftfont_open): Adjust for the format change of font-entity and
aac0c6e3
MR
19608 font-object. Adjusted for the change of struct font. Return a
19609 font-object. Don't update dpyinfo->smallest_font_height and
19610 dpyinfo->smallest_char_width.
19611 (xftfont_close): Block input while calling XftFontClose.
19612 (xftfont_prepare_face): Don't block input while calling
19613 xftfont_get_colors. Adjusted for the change of struct font.
19614 (xftfont_shape): Return value of error case fixed.
19615
19616 * xrdb.c (x_load_resources): Don't setup a fontset resource.
19617
19618 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
19619 conditionals.
19620 (FONT_WIDTH): Return (f)->max_width.
19621 (struct x_display_info): Delete member `font'.
19622 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
19623 (x_find_ccl_program, x_get_font_repertory): Delete externs.
19624 (struct x_output): Change type of `font' to `struct font *'.
19625
19626 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
19627 conditionals. Don't check enable_font_backend. Delete all codes
19628 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
19629 (x_per_char_metric, x_encode_char): Deleted.
19630 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
bba3e508 19631 (x_compute_glyph_string_overhangs): Adjust for the change of
aac0c6e3
MR
19632 `struct face'.
19633 (x_draw_glyph_string_foreground)
19634 (x_draw_composite_glyph_string_foreground): Likewise.
19635 (x_draw_glyph_string): Likewise. Use font->underline_position and
19636 font->underline_thickness.
ef1b0ba7 19637 (x_new_font): Rename from x_new_fontset2.
aac0c6e3
MR
19638 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
19639 (x_check_font): Call `check' method of a font driver.
19640 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
19641 (x_query_font, x_get_font_repertory): Deleted.
ef1b0ba7 19642 (x_find_ccl_program): Rename and moved to xfont.c.
bba3e508 19643 (x_redisplay_interface): Adjust for the change of `struct
aac0c6e3
MR
19644 redisplay_interface'.
19645
19646 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
19647 conditionals. Don't check enable_font_backend. Delete all codes
19648 used only when USE_FONT_BACKEND is not defined. Surround non-used
19649 code by "#ifdef OLD_FONT" and "endif".
19650 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
19651
19652 * w32font.h (struct w32font_info): New member.
19653 (FONT_COMPAT): New macro.
19654 (w32font_open_internal): Prototype adjusted.
19655
19656 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
19657 OLD_FONT" and "endif".
19658
19659 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
19660 conditionals. Don't check enable_font_backend. Delete all codes
19661 used only when USE_FONT_BACKEND is not defined.
19662 (w32font_open): Return a font-object. Make a font-object by
19663 font_make_object. Adjusted for the change of struct w32font_info.
19664 (w32font_close): Don't free struct font. Adjusted for the change
19665 of struct w32font_info.
19666 (w32font_encode_char, w32font_text_extents, w32font_draw):
ef1b0ba7 19667 Adjust for the change of struct w32font_info.
aac0c6e3
MR
19668 (w32font_draw): Likewise.
19669 (w32font_list_internal): Return a list, not vector.
19670 (w32font_open_internal): Change the 4th arg to font-object.
19671 Adjusted for the change of struct w32font_info and font-object format.
19672 (add_font_name_to_list): Don't downcase names.
19673 (w32_enumfont_pattern_entity): Make a font-entity by
19674 font_make_entity. Adjusted for the format change of font-entity.
19675 Use FONT_SET_STYLE to set a style-related font property. If a
19676 font is scalable, set avgwidth property to 0. Set font-entity
19677 property by font_put_extra.
bba3e508 19678 (font_matches_spec): Adjust for the format change of font-entity.
aac0c6e3
MR
19679 (w32_weight_table, w32_decode_weight): New variables.
19680 (w32_encode_weight): New function.
bba3e508 19681 (fill_in_logfont): Adjust for the format change of font-spec.
aac0c6e3
MR
19682 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
19683 weight value.
bba3e508 19684 (w32font_driver): Adjust for the change of struct font_driver.
aac0c6e3
MR
19685
19686 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
19687 conditionals. Don't check enable_font_backend. Surround non-used
19688 code by "#ifdef OLD_FONT" and "endif".
19689 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
bba3e508 19690 (FONT_AVG_WIDTH): Adjust for the change of struct font.
aac0c6e3
MR
19691
19692 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
19693 conditionals. Don't check enable_font_backend. Delete all codes
19694 used only when USE_FONT_BACKEND is not defined. Surround non-used
19695 code by "#ifdef OLD_FONT" and "endif".
19696
19697 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
19698 (uniscribe_open): Return value changed to font-object.
19699 Adjusted for the format change of font-object.
bba3e508 19700 (uniscribe_otf_capability): Adjust for the change of struct font.
aac0c6e3 19701 (add_opentype_font_name_to_list): Don't downcase names.
bba3e508 19702 (uniscribe_font_driver): Adjust for the change of struct
aac0c6e3
MR
19703 font_driver.
19704
197052008-05-13 Chong Yidong <cyd@stupidchicken.com>
19706
19707 * dispnew.c (update_frame_1): Check if tty output is still valid
19708 before flushing it.
19709
197102008-05-13 Jan Djärv <jan.h.d@swipnet.se>
19711
19712 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
19713 to Gtk+ menus.
19714
197152008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
19716
19717 * dired.c (file_name_completion): Tweak the code so as to always do it
19718 in a single pass. Tighten the scope of some variables.
19719
19720 * dired.c (Qdefault_directory): New var.
19721 (file_name_completion): Use it instead of Fexpand_file_name.
19722 (syms_of_dired): Initialize it.
19723
197242008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
19725
19726 * fileio.c (double_dollars): Remove dead code.
19727
197282008-05-10 Eli Zaretskii <eliz@gnu.org>
19729
19730 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
19731 Mention w32-get-true-file-attributes in doc string.
19732
19733 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
19734
197352008-05-09 Glenn Morris <rgm@gnu.org>
19736
19737 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
19738 2008-04-23.
19739
197402008-05-09 Eli Zaretskii <eliz@gnu.org>
19741
19742 Support for reporting owner and group of each file on MS-Windows:
19743 * dired.c (stat_uname, stat_gname): New functions, with special
19744 implementation for w32.
19745 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
19746
19747 * w32.c: Rename the_passwd_* to dflt_passwd_*.
19748 (dflt_group_name): New static variable.
19749 (dflt_group): Rename from the_group.
19750 (init_user_info): Init dflt_group fields. Get user's group name
19751 from LookupAccountSid.
19752 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
19753 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
19754 New initialization states.
19755 (globals_of_w32): Initialize them to zero. Initialize the default
19756 group name to "None".
19757 (GetFileSecurity_Name): New global var, the name of the function
19758 to call for GetFileSecurity.
19759 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
19760 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
19761 (get_file_security, get_security_descriptor_owner)
19762 (get_security_descriptor_group, is_valid_sid)
19763 (get_file_security_desc, get_rid, get_name_and_id)
19764 (get_file_owner_and_group): New functions.
19765 (stat): Use get_file_security_desc and get_file_owner_and_group to
19766 report the owner and primary group of each file. Don't ignore the
19767 high 32 bits of file's size, now that st_size is 64-bit wide.
19768 Fix test when to get true file attributes.
19769 (init_user_info): Use get_rid instead of equivalent inline code.
19770 (fstat): Don't ignore the high 32 bits of file's size.
19771
197722008-05-09 Chong Yidong <cyd@stupidchicken.com>
19773
19774 * image.c (png_load): Use correct bit-depth for setting background
19775 color.
19776
197772008-05-08 Eli Zaretskii <eliz@gnu.org>
19778
19779 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
19780 epa-hook.elc.
19781
197822008-05-08 Juanma Barranquero <lekktu@gmail.com>
19783
19784 * font.c (Ffont_match_p): Don't use `iff' in docstring.
19785
197862008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
19787
19788 * macfns.c (Fx_create_frame): Make a copy of frame parameters
19789 because the original parameters are in pure storage now.
19790 (mac_window): Remove unused params. Update callers.
19791
197922008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
19793
19794 * lread.c (substitute_object_recurse): Use lower-level primitives.
19795 Don't signal errors when traversing sub-char-tables.
19796 Don't loop over all the possible characters when traversing char-tables.
19797
19798 * print.c (print_preprocess): Add sub-char-tables to the print-table,
19799 just like we do in print.c.
19800
198012008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
19802
19803 * minibuf.c (Ftry_completion): Remove code left over from when we used
19804 scmp instead of Fcompare_strings.
19805
198062008-05-04 Juanma Barranquero <lekktu@gmail.com>
19807
19808 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
19809
198102008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19811
19812 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
19813 Create bitmap context in native byte order.
19814
19815 * macterm.c (XDrawLine)
19816 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
19817 context in native byte order.
19818
198192008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19820
19821 * config.in: Regenerate.
19822
19823 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
19824 New definitions for Image I/O support.
19825 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
19826 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
19827 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
19828 (mac_data_provider_release_data, image_load_image_io)
19829 [USE_MAC_IMAGE_IO]: New functions.
19830 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
19831 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
19832 (init_image_func_pointer) [MAC_OSX]: Remove function.
19833 (image_load_quartz2d) [MAC_OSX]: Check availability of
19834 CGImageCreateWithPNGDataProvider at compile time.
19835 Use lowercase `false' for boolean constant.
19836 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
19837 Use image_load_image_io.
19838 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
19839 Don't check MyCGImageCreateWithPNGDataProvider.
19840 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
19841 Don't call init_image_func_pointer.
19842
19843 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
19844
19845 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
19846 Make variable non-static.
19847 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
19848 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
19849
19850 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
19851 (RED_FROM_ULONG): Mask off higher bits.
19852 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
19853
19854 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
19855 Include AvailabilityMacros.h.
19856 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
19857 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
19858
198592008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
19860
19861 * chartab.c (Fset_char_table_range): If range is t, really set all
19862 chars to that value.
19863
198642008-05-03 Eli Zaretskii <eliz@gnu.org>
19865
19866 * dired.c (Ffile_attributes): Don't allow the device number become
19867 negative.
19868
198692008-05-02 Daiki Ueno <ueno@unixuser.org>
19870
19871 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
19872
198732008-05-02 Juri Linkov <juri@jurta.org>
19874
19875 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
19876 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
19877 DEFAULT argument as a list of default values in docstrings.
19878
198792008-05-01 Chong Yidong <cyd@stupidchicken.com>
19880
19881 * puresize.h (BASE_PURESIZE): Increase to 1210000.
19882
198832008-05-01 Martin Rudalics <rudalics@gmx.at>
19884
19885 * dispnew.c (change_frame_size_1): Preserve small windows when
19886 shrinking frames by calling set_window_height|width with third
19887 arg 2.
19888
19889 * window.h (struct window): Replace field too_small_ok by field
19890 resize_proportionally.
19891
19892 * window.c (make_window): Initialize resize_proportionally.
19893 (enlarge_window): Temporarily set resize_proportionally to make
19894 sure that shrink_windows does scale the window proportionally.
19895 (shrink_windows): When window has resize_proportionally set try
19896 to shrink it proportionally by stealing from other windows.
19897 (struct saved_window, Fset_window_configuration)
19898 (compare_window_configurations): Handle resize_proportionally.
19899 (WINDOW_TOTAL_SIZE): New macro.
19900 (window_min_size, shrink_windows, size_window): Use it.
19901 (check_min_window_sizes): Remove. Invalid values of
19902 window-min-height|width are handled by window_min_size_2 now.
19903 (size_window, Fsplit_window, enlarge_window)
19904 (adjust_window_trailing_edge, grow_mini_window): Don't call
19905 check_min_window_sizes.
19906 (window_min_size_2, window_min_size_1, window_min_size):
19907 New argument safe_p for retrieving "safe" minimum sizes.
19908 (Fdisplay_buffer, Fsplit_window, enlarge_window)
19909 (adjust_window_trailing_edge, grow_mini_window):
19910 Adjust arguments of window_min_size... functions.
19911 (shrink_windows): Argument min_size removed. New argument
19912 safe_p allows shrinking windows to their safe minimum sizes.
19913 Calculate minimum size and decide whether a window shall be
19914 deleted for each window individually.
19915 (size_window): When nodelete_p equals 2, tell shrink_windows to
19916 delete windows only if their new minimum size is no more safe.
19917 (shrink_window_lowest_first): Call window_min_size_1 to make
19918 sure to preserve modeline of bottom-most window when resizing
19919 the minibuffer.
19920 (Fset_window_configuration, Fcurrent_window_configuration)
19921 (compare_window_configurations): Do not handle
19922 window-min-height|width any more.
19923 (syms_of_window): Clarify window-min-height|width doc-strings.
19924
199252008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
19926
19927 * dired.c (file_name_completion): Fix up the encoding/decoding issue
19928 some more. Copy some of the code from Ftry_completions.
19929 Remove special case code that dates back to initial revision when the
19930 slash was only added when necessary and that can't trigger nowadays.
19931
199322008-04-27 Kenichi Handa <handa@m17n.org>
19933
19934 * font.c (font_prop_validate): Signal `error' instead of `font'.
19935
199362008-04-29 Jason Rumney <jasonr@gnu.org>
19937
19938 * w32fns.c (Fw32_battery_status): New defun.
19939 (syms_of_w32fns): Defsubr it.
19940
199412008-04-28 Andreas Schwab <schwab@suse.de>
19942
19943 * dired.c (file_name_completion): Fix another mixing of encoded
19944 and decoded names.
19945
199462008-04-28 Juanma Barranquero <lekktu@gmail.com>
19947
19948 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
19949
199502008-04-27 Juanma Barranquero <lekktu@gmail.com>
19951
19952 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
19953
199542008-04-27 Andreas Schwab <schwab@suse.de>
19955
19956 * dired.c (file_name_completion): Fix inappropriate mixing of
19957 encoded and decoded names.
19958
19959 * xterm.c (XTread_socket): Fix use of uninitialized variable.
19960
19961 * puresize.h (BASE_PURESIZE): Increase to 1200000.
19962
199632008-04-26 Eli Zaretskii <eliz@gnu.org>
19964
19965 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
19966 2008-03-31, it's not needed anymore with `struct stat' definition
19967 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
19968 for the same reasons.
19969
199702008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
19971
19972 * m/sparc.h: Additional redefinitions for GNU/Linux.
19973
199742008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19975
19976 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
19977 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
19978 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
19979 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
19980 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
19981 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
19982 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
19983 Likewise.
19984
19985 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
19986 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
19987 (mac_ax_number_of_characters): Add externs.
19988 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
19989 [USE_MAC_TSM]: Likewise.
19990 (mac_handle_text_input_event) [MAC_OSX]:
19991 Handle kEventTextInputOffsetToPos for no active input area case.
19992 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
19993 (mac_handle_document_access_event)
19994 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
19995 (install_application_handler) [MAC_OSX]: Register handlers for
19996 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
19997 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
19998 Register mac_handle_document_access_event.
19999
20000 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
20001 Make functions non-static.
20002
200032008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
20004
20005 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
20006 (read_file_name_completion_ignore_case, insert_default_directory)
20007 (Qdefault_directory): Move to minibuffer.el.
20008 (Fread_file_name): Call the new `read-file-name' instead.
20009
200102008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20011
20012 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
20013 Make function non-static.
20014 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
20015 Remove function.
20016 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
20017 Move to mactoolbox.c.
20018 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
20019
20020 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
20021 (mac_rect_make): New macro.
20022
20023 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
20024 instead of float.
20025 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
20026 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
20027 (XSetBackground) [USE_CG_DRAWING]: Likewise.
20028 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
20029 CGRectMake.
20030 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
20031 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
20032 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
20033 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
20034 instead of WindowRef in argument type.
20035 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
20036 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
20037 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
20038 instead of DISPLAY. All uses changed.
20039 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
20040 (x_calc_absolute_position): Simplify so as not to use
20041 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
20042
20043 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
20044 instead of WindowRef in argument type.
20045 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
20046 [TARGET_API_MAC_CARBON]: Remove externs.
20047 (create_apple_event, mac_event_parameters_to_lisp)
20048 [TARGET_API_MAC_CARBON]: Add externs.
20049
20050 * mactoolbox.c (Vmac_ts_script_language_on_focus)
20051 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
20052 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
20053 is clicked.
20054 (x_activate_menubar): Remove extern for saved_menu_event_location.
20055 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
20056 Move from mac.c.
20057
200582008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20059
20060 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
20061 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
20062
200632008-04-23 Jason Rumney <jasonr@gnu.org>
20064
20065 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
20066 attributes only for local files.
20067
20068 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
20069 default to Qlocal.
20070
200712008-04-22 Juri Linkov <juri@jurta.org>
20072
20073 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
20074 read-buffer-to-switch instead of using the letter "B".
20075
200762008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
20077
20078 * fileio.c (Qdefault_directory): New variable.
20079 (Fread_file_name): Use it to pass `dir' to the completion functions.
20080
200812008-04-20 Chong Yidong <cyd@stupidchicken.com>
20082
20083 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
20084
200852008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
20086
20087 * keyboard.c (Vpre_help_message): Remove.
20088 (show_help_echo): Remove default C code.
20089
20090 * dired.c (directory_files_internal, file_name_completion):
20091 Only call ENCODE_FILE if the string is indeed decoded.
20092
200932008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
20094
20095 * Makefile.in (TOOLKIT_DEFINES): Remove.
20096 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
20097
200982008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20099
20100 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
20101 (mactoolbox.o): New target.
20102
20103 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
20104 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
20105
20106 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
20107 Use mac_set_frame_window_background instead of XSetWindowBackground.
20108 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
20109 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
20110 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
20111 instead of SetWindowTitleWithCFString.
20112 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
20113 Move function to mactoolbox.c.
20114 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
20115 Use mac_set_window_modified instead of SetWindowModified.
20116 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
20117 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
20118 (Fx_focus_frame): Use mac_front_non_floating_window instead of
20119 FrontNonFloatingWindow. Use mac_activate_window instead of
20120 ActivateWindow. Use mac_active_non_floating_window instead of
20121 ActiveNonFloatingWindow.
20122 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
20123 Use mac_show_hourglass and mac_hide_hourglass.
20124 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
20125 instead of GetGlobalMouse.
20126 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
20127 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
20128 Use mac_bring_window_to_front instead of BringToFront.
20129 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
20130 mactoolbox.c.
20131 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
20132 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
20133 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
20134 mactoolbox.c.
20135
20136 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
20137 (XtPointer): Move typedef from macmenu.c.
20138 (enum button_type): Move enum from macmenu.c.
20139 (widget_value): Move typedef from macmenu.c.
20140 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
20141 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
20142 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
20143 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
20144 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
20145 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
20146 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
20147 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
20148 (Selection): Move typedef from macselect.c.
20149 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
20150 macterm.c.
20151 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
20152 (mac_is_window_collapsed, mac_bring_window_to_front)
20153 (mac_send_window_behind, mac_hide_window, mac_show_window)
20154 (mac_collapse_window, mac_front_non_floating_window)
20155 (mac_active_non_floating_window, mac_activate_window)
20156 (mac_move_window_structure, mac_move_window, mac_size_window)
20157 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
20158
20159 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
20160 (enum mac_menu_kind): Move enum to mactoolbox.c.
20161 (min_menu_id): Move variable to mactoolbox.c.
20162 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
20163 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
20164 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
20165 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
20166 [TARGET_API_MAC_CARBON]: Likewise.
20167 (XtPointer): Move typedef to macgui.h.
20168 (enum button_type): Move enum to macgui.h.
20169 (widget_value): Move typedef to macgui.h.
20170 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
20171 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
20172 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
20173 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
20174 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
20175 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
20176 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
20177 (popup_activated_flag): Make variable non-static.
20178 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
20179 (add_menu_item, fill_menu, dispose_menus):
20180 Move functions to mactoolbox.c.
20181 (restore_show_help_function, menu_target_item_handler)
20182 (install_menu_target_item_handler, mac_handle_dialog_event)
20183 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
20184 [TARGET_API_MAC_CARBON]: Likewise.
20185 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
20186 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
20187 (find_and_call_menu_selection, name_is_separator): Make function
20188 non-static.
20189 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
20190 to mactoolbox.c.
20191 (set_frame_menubar): Don't call install_menu_quit_handler.
20192 (menu_item_selection): New variable.
20193 (mac_menu_show): Use create_and_show_popup_menu.
20194 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
20195 selection but set variable menu_item_selection. All uses changed.
20196 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
20197 Call install_menu_quit_handler. Move to mactoolbox.c.
20198
20199 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
20200 (Selection): Move typedef to macgui.h.
20201 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
20202 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
20203 Make variables non-static.
20204 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
20205 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
20206 Make functions non-static.
20207 (Vmac_service_selection) [MAC_OSX]: Likewise.
20208 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
20209 (mac_valid_selection_target_p, mac_clear_selection)
20210 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
20211 (mac_put_selection_value, mac_selection_has_target_p)
20212 (mac_get_selection_value, mac_get_selection_target_list)
20213 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
20214 Move functions to mactoolbox.c.
20215 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
20216 Likewise.
20217 (copy_scrap_flavor_data, mac_handle_service_event)
20218 (install_service_handler) [MAC_OSX]: Likewise.
20219 (syms_of_macselect) <Vmac_dnd_known_types>:
20220 Use mac_dnd_default_known_types.
20221
20222 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
20223 Move to mactoolbox.c.
20224 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
20225 (Fx_selection_owner_p): Add EXFUN.
20226 (install_window_handler, remove_window_handler, XSetWindowBackground):
20227 Remove externs.
20228 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
20229 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
20230 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
20231 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
20232 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
20233 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
20234 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
20235 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
20236 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
20237 (create_and_show_popup_menu, mac_get_selection_from_symbol)
20238 (mac_valid_selection_target_p, mac_clear_selection)
20239 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
20240 (mac_put_selection_value, mac_selection_has_target_p)
20241 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
20242 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
20243 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
20244 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
20245 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
20246 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
20247 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
20248 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
20249 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
20250
20251 * mactoolbox.c: New file.
20252
202532008-04-18 Jason Rumney <jasonr@gnu.org>
20254
20255 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
20256
202572008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
20258
20259 * character.c (Fmultibyte_char_to_unibyte):
20260 Return latin1 chars unchanged.
20261
20262 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
20263 relocated if it points to `name'.
20264
202652008-04-17 Kenichi Handa <handa@m17n.org>
20266
20267 * data.c (Faset): Allow setting a multibyte character in an
20268 ASCII-only unibyte string.
20269
20270 * lisp.h (STRING_SET_MULTIBYTE): New macro.
20271
202722008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
20273
20274 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
20275 done in config.h.
20276
202772008-04-16 Juanma Barranquero <lekktu@gmail.com>
20278
20279 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
20280 (Fchar_direction): Add usage in the docstring.
20281
202822008-04-15 Chong Yidong <cyd@stupidchicken.com>
20283
20284 * keyboard.c (read_key_sequence): Remove always-true checks.
20285
202862008-04-14 Jason Rumney <jasonr@gnu.org>
20287
20288 * w32font.c (w32font_open_internal): Set max_bounds.descent in
20289 compatibility struct, for better underline positioning.
20290
202912008-04-13 David Hansen <david.hansen@gmx.net>
20292
20293 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
20294 string.
20295
202962008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
20297
20298 * m/hp800.h (XUINT, XSET): Remove.
20299
203002008-04-12 Juanma Barranquero <lekktu@gmail.com>
20301
20302 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
20303 previous change.
20304
203052008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
20306
20307 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
20308 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
20309
203102008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
20311
20312 * keymap.h (map_keymap_canonical): Declare.
20313 * xmenu.c (single_keymap_panes): Use it.
20314
203152008-04-11 Glenn Morris <rgm@gnu.org>
20316
20317 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
20318 set the target's value to that of the alias.
20319
203202008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
20321
20322 * term.c (set_tty_color_mode): Left over typo.
20323
203242008-04-10 Michael Albinus <michael.albinus@gmx.de>
20325
20326 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
20327 only after check for file name handler functions. Signal, when
20328 native functionality is not supported.
20329 (syms_of_fileio): Declare it unconditionally.
20330
203312008-04-10 Jason Rumney <jasonr@gnu.org>
20332
20333 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
20334 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
20335
20336 * w32.c (logon_network_drive): Also logon to remote drives that
20337 are mapped to drive letters.
20338
203392008-04-10 Glenn Morris <rgm@gnu.org>
20340
20341 * xdisp.c (truncate-partial-width-windows): Doc fix.
20342
203432008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
20344
20345 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
20346 Move functions to minibuffer.el.
20347 (syms_of_fileio): Don't declare them.
20348
203492008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
20350
20351 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
20352 (syms_of_minibuf): Remove its initialization.
20353
20354 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
20355
203562008-04-09 Juanma Barranquero <lekktu@gmail.com>
20357
20358 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
20359
203602008-04-09 Jason Rumney <jasonr@gnu.org>
20361
20362 * makefile.w32-in (distclean): Delete makefile too.
20363 (maintainer-clean): New target.
20364
20365 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
20366
20367 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
20368 for new font backend and composite cases.
20369
203702008-04-09 Jan Djärv <jan.h.d@swipnet.se>
20371
20372 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
20373 Most of the code moved to run_timers.
20374 (do_pending_atimers): Call run_timers.
20375 (run_timers): New function.
20376
20377 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
20378 run atimers.
20379
20380 * process.c (wait_reading_process_output): The same as above.
20381
203822008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
20383
20384 * minibuf.c (last_exact_completion): Remove variable.
20385 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
20386 (complete_and_exit_1, complete_and_exit_2)
20387 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
20388 (Fdisplay_completion_list, display_completion_list_1)
20389 (Fminibuffer_completion_help, Fself_insert_and_exit)
20390 (Fexit_minibuffer, Fminibuffer_message): Move functions to
20391 minibuffer.el.
20392 (syms_of_minibuf): Remove corresponding initializations.
20393
20394 * keyboard.c (Qdeactivate_mark): New var.
20395 (command_loop_1): Use it to call `deactivate-mark'.
20396 (syms_of_keyboard): Initialize it.
20397
20398 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
20399 to another frame.
20400 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
20401 Don't call set_tty_color_mode.
20402 (store_frame_param): Reset previous_frame rather than call
20403 set_tty_color_mode.
20404 * term.c (set_tty_color_mode): Rewrite.
20405 * dispextern.h (set_tty_color_mode): New type.
20406 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
20407
204082008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
20409
20410 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
20411 for generic chars, which do not exist any more in emacs-unicode.
20412
204132008-04-08 Michael Albinus <michael.albinus@gmx.de>
20414
20415 * coding.c (detect_coding_emacs_mule)
20416 (Ffind_operation_coding_system): Fix typo.
20417
204182008-04-08 Jason Rumney <jasonr@gnu.org>
20419
20420 * w32uniscribe.c (SNAME): Extract only symbol name.
20421
20422 * w32font.h (struct w32_metric_cache): New struct.
20423 (w32font_info): Use it.
20424 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
20425 (CACHE_BLOCKSIZE): New constants.
20426
20427 * w32font.c (Qja, Qko, Qzh): New symbols.
20428 (syms_of_w32font): Initialise them.
20429 (font_matches_spec): Use them to filter by language.
20430 (recompute_cached_metrics): Remove function.
20431 (compute_metrics, clear_cached_metrics): New functions.
20432 (w32font_encode_char): Use them to manage metric cache.
20433 (w32font_text_extents): Cache metrics for all glyphs on demand.
20434 Delay converting glyph indices to WORD until needed.
20435 (w32font_open_internal): Initialize metric cache to empty.
20436 (registry_to_w32_charset): Charset should always be a symbol.
20437 (fill_in_logfont, list_all_matching_fonts): Family should
20438 always be a symbol.
20439
204402008-04-06 Jason Rumney <jasonr@gnu.org>
20441
20442 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
20443 Give up if glyph indices not supported. Use uniscribe obtained
20444 ABC widths for individual metrics. Map glyph clusters back to
20445 characters using fClusterStart flag. Return number of glyphs
20446 produced, not chars processed.
20447 (uniscribe_shape): Map char at FROM to current glyph.
20448
204492008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20450
20451 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
20452 Use SetMenuItemHierarchicalMenu.
20453
204542008-04-05 Jason Rumney <jasonr@gnu.org>
20455
20456 * image.c (pbm_load): Allow color values up to 65535.
20457 Throw an error if max_color_idx is outside the supported range.
20458 Report an error when image size is invalid.
20459 Read two bytes at a time when raw images have max_color_idx above 255.
20460
aac0c6e3
MR
204612008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
20462
20463 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
20464 append "CCL: Quitted" when the CCL program is quitted.
20465 (setup_ccl_program): Initialize ccl->quit_silently to zero.
20466
20467 * ccl.h (struct ccl_program): New member quit_silently.
20468
204692008-04-05 Chong Yidong <cyd@stupidchicken.com>
20470
20471 * search.c (compile_pattern_1): Treat non-nil and non-string of
20472 search-spaces-regexp as nil.
20473
20474 * minibuf.c (Fassoc_string): Tweak docstring.
20475
204762008-04-05 Eli Zaretskii <eliz@gnu.org>
20477
20478 * dired.c (Ffile_attributes): Support inode numbers wider than 32
20479 bits. Remove ugly WINDOWSNT-specific kludge introduced on
20480 2008-03-14 to force inode be positive.
20481
20482 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
20483 _S_* ones, since we now use our own sys/stat.h.
20484 (stat, fstat): Don't mangle the inode number.
20485 (init_user_info): Don't restrict UID and GID to 0-60000 range.
20486
204872008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
20488
20489 * frame.h (struct frame): Give one more bit to `visible' since we use
20490 values larger than 1 to indicate obscured frames on ttys.
20491
20492 * keymap.c (Qkeymap_canonicalize): New var.
20493 (Fmap_keymap_internal): New fun.
20494 (describe_map): Use keymap-canonicalize.
20495
20496 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
20497 (Fundo_boundary): Set them.
20498 (syms_of_undo): Initialize them.
20499 (record_point): Use them instead of last_point_position*.
20500 (last_undo_buffer): Change type.
20501
205022008-04-04 Jason Rumney <jasonr@gnu.org>
20503
20504 * w32font.c (w32font_text_extents): Use font's ascent and descent.
20505 (recompute_cached_metrics): Don't set ascent and descent per char.
20506
20507 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
20508 (uniscribe_check_otf): Add GC protection before consing.
20509 Rearrange loop for counting features.
20510
205112008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
20512
20513 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
20514 buffer with byte-size of source buffer.
20515
205162008-04-03 Chong Yidong <cyd@stupidchicken.com>
20517
20518 * callint.c (Fcall_interactively): Handle temporary region even
20519 when shift-select-mode is off.
20520
205212008-04-03 Jason Rumney <jasonr@gnu.org>
20522
20523 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
20524
205252008-04-03 Kenichi Handa <handa@m17n.org>
20526
20527 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
20528 (CATEGORY_MASK_UTF_16): Likewise.
20529 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
20530 binary file.
20531 (detect_coding): Add null-byte detection for a binary file.
20532 (detect_coding_system): Likewise.
20533
205342008-04-03 Jason Rumney <jasonr@gnu.org>
20535
20536 * w32uniscribe.c: New file.
20537
20538 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
20539
20540 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
20541
20542 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
20543 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
20544 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
20545 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
20546 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
20547 (Qphonetic): New symbols.
20548 (syms_of_w32font): Initialize them.
20549 (font_supported_scripts): Use them.
20550 (w32font_list_family): List all charsets.
20551 (w32font_text_extents, recompute_cached_metrics): Fix metric
20552 calculations.
20553 (w32_enumfont_pattern_entity): Make full_type a DWORD.
20554 Give opentype fonts their own format.
20555 (font_matches_spec): New arguments backend and logfont.
20556 Handle :otf spec for uniscribe backend.
20557 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
20558 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
20559
20560 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
20561 font backend.
20562 (globals_of_w32fns): Initialize uniscribe font backend.
20563
20564 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
20565 dependencies.
20566 (w32uniscribe.$(O)): New file to build.
20567 (FONT_OBJ): Include w32uniscribe.$(O).
20568 (LIBS): Add uniscribe libraries.
20569
20570 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
20571
205722008-04-02 Chong Yidong <cyd@stupidchicken.com>
20573
20574 * callint.c (Vshift_select_mode): New var.
20575 (Finteractive): Document new ^ spec.
20576 (Fcall_interactively): Call handle-shift-selection if the ^ spec
20577 is present.
20578
20579 * keyboard.c (Vthis_command_keys_shift_translated): New var.
20580 (command_loop_1): Avoid running the direct display versions of
20581 forward-char and backward-char if shift-selection may occur.
20582 (read_key_sequence): Set Vthis_command_keys_shift_translated if
20583 shift-translation takes place.
20584
20585 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
20586 avoid clobbering by define-minor-mode.
20587
20588 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
20589 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
20590
20591 * syntax.c (Fforward_word): Add ^ interactive spec.
20592
20593 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
20594 (Fscroll_right): Add ^ interactive spec.
20595
205962008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
20597
20598 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
20599
20600 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
20601
20602 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
20603
206042008-03-31 Juri Linkov <juri@jurta.org>
20605
20606 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
20607
206082008-03-30 Jan Djärv <jan.h.d@swipnet.se>
20609
20610 * gtkutil.c (xg_set_geometry): Fix indentation.
20611 (xg_resize_outer_widget): Remove.
20612 (x_wm_size_hint_off): Fix indentation.
20613 (xg_frame_set_char_size): Call flush_and_sync after
20614 gtk_window_resize.
20615 (x_wm_set_size_hint): Pass NULL as geometry window to
20616 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
20617 Add menu bar and tool bar height to base height.
20618 (xg_update_frame_menubar, free_frame_menubar)
20619 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
20620 (update_frame_tool_bar, free_frame_tool_bar):
20621 Change xg_resize_outer_widget to xg_frame_set_char_size.
20622
206232008-03-30 Michael Albinus <michael.albinus@gmx.de>
20624
20625 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
20626 (Fdbus_call_method): New parameter TIMEOUT.
20627 (dbus-send-signal): Optimize UNGCPRO call.
20628
206292008-03-29 Juri Linkov <juri@jurta.org>
20630
20631 * window.c (Fdisplay_buffer): Move call to
20632 Vsplit_window_preferred_function out of conditions that check
20633 if window is eligible for vertical splitting.
20634 When Vsplit_window_preferred_function is non-nil, call it and use
20635 its non-nil return value as window. Otherwise, continue doing
20636 vertical splitting using Fsplit_window with arg horflag=nil.
20637 (syms_of_window) <Vsplit_window_preferred_function>: Change the
20638 default value from `split-window' to nil.
20639
206402008-03-29 Juri Linkov <juri@jurta.org>
20641
20642 * callint.c (Fcall_interactively): Revert 2008-03-16 change
20643 for interactive code letters 'b' and 'B'.
20644
206452008-03-29 Eli Zaretskii <eliz@gnu.org>
20646
20647 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
20648 multibyte string.
20649
206502008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
20651
20652 * keyboard.c (pending_funcalls): New var.
20653 (timer_check): Run it.
20654 (syms_of_keyboard): Initialize it.
20655 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
20656 (Vdelete_terminal_functions): New vars.
20657 (syms_of_terminal): Initialize them.
20658 (Fdelete_terminal): Run delete-terminal-functions.
20659 * xdisp.c (safe_eval): Rewrite.
20660 (safe_call2): New fun.
20661 * frame.c (Qdelete_frame_functions): New var.
20662 (syms_of_frame): Initialize it.
20663 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
20664 * lisp.h (safe_call2, pending_funcalls): Declare.
20665
206662008-03-28 Andreas Schwab <schwab@suse.de>
20667
20668 * indent.c (Fmove_to_column): Move declaration before statements.
20669
206702008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
20671
20672 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
20673 (struct frame): Use bit fields for boolean vars.
20674
20675 * process.c (server_accept_connection): Simplify naming.
20676 (emacs_get_tty_pgrp): Use SDATA.
20677
20678 * coding.c (decode_coding_object): Fix last change.
20679
206802008-03-27 Jason Rumney <jasonr@gnu.org>
20681
20682 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
20683
206842008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
20685
20686 * charset.c (Fdefine_charset_internal): Change the way of
20687 registering charsets in Vcharset_order_list.
20688 (syms_of_charset): Make the charset `eight-bit' supplementary.
20689
206902008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
20691
20692 * regex.c (EXTEND_BUFFER): Change order of pointer addition
20693 operations, to avoid having the difference between pointers
20694 overflow.
20695
206962008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
20697
20698 * indent.c (check_display_width): New fun.
20699 (scan_for_column): Use it.
20700
20701 * data.c (syms_of_data): Mark most-positive-fixnum and
20702 most-negative-fixnum as constants.
20703
20704 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
20705
20706 * indent.c (scan_for_column): Extract from current_column_1.
20707 Merge with the same code from Fmove_to_column.
20708 (current_column_1, Fmove_to_column): Use it.
20709
207102008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
20711
20712 * keymap.c (map_keymap_internal): New fun.
20713 (map_keymap): Use it.
20714 (Fmap_keymap_internal): New fun.
20715 (Fmap_keymap): Remove left-out test from before make_save_value.
20716
20717 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
20718
20719 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
20720 Use XCAR/XCDR.
20721
20722 * process.h (struct Lisp_Process): Remove filter_multibyte.
20723 * process.c (QCfilter_multibyte): Remove.
20724 (setup_process_coding_systems): Don't use filter_multibyte.
20725 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
20726 (read_process_output): Don't adjust multibyteness to filter_multibyte.
20727 (Fset_process_filter_multibyte): Change the coding-system to
20728 approximate the previous behavior.
20729 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
20730 coding-system.
20731
20732 * coding.c (decode_coding_object): When not decoding into a buffer,
20733 obey the coding system's preference of (uni|multi)byte.
20734
207352008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
20736
20737 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
20738 every char is changed and has a different byte-length.
20739 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
20740 Fix int -> EMACS_INT.
20741
207422008-03-23 David Hansen <david.hansen@gmx.net>
20743
20744 * dbusbind.c (xd_read_message): Remove extra copying of message
20745 strings. Check for NULL `interface' or `member'.
20746
207472008-03-22 Eli Zaretskii <eliz@gnu.org>
20748
20749 * w32.c (readdir): If FindFirstFile/FindNextFile return in
20750 cFileName a file name that includes `?' characters, use the 8+3
20751 alias in cAlternateFileName instead.
20752
207532008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
20754
20755 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
20756
207572008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
20758
20759 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
20760 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
20761 work on current_buffer only instead (that was already the case
20762 for some of the code anyway).
20763 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
20764 (temp_set_point, temp_set_point_both): Use EMACS_INT.
20765 (SET_PT, SET_PT_BOTH): Adjust.
20766 * intervals.h (set_point, temp_set_point, set_point_both)
20767 (temp_set_point_both): Remove redundant declarations.
20768
207692008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
20770
20771 * fileio.c (Finsert_file_contents):
20772 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
20773 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
20774 when buffer != current_buffer anyway.
20775
207762008-03-20 Andreas Schwab <schwab@suse.de>
20777
20778 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
20779 as default.
20780
207812008-03-19 Jason Rumney <jasonr@gnu.org>
20782
20783 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
20784 (syms_of_w32fns): Initialize them.
20785 (HOURGLASS_ID): New constant.
20786 (x_window_to_frame): Don't check hourglass_window.
20787 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
20788 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
20789 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
20790 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
20791 Only change the cursor if hourglass is not active.
20792 (Fx_create_frame): Initialize frame's current_cursor.
20793 (hourglass_atimer): Remove.
20794 (hourglass_started): New function.
20795 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
20796 (show_hourglass): Adapt to w32, changing argument to frame.
20797
20798 * w32term.h (struct w32_output): Remove hourglass_window.
20799 Add current_cursor.
20800
20801 * eval.c (call_debugger, Fsignal):
20802 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
20803 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
20804 (Fexecute_extended_command, cancel_hourglass_unwind):
20805 * minibuf.c (read_minibuf):
20806 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
20807
208082008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
20809
20810 * window.c (run_funs): New fun.
20811 (run_window_configuration_change_hook): Use it to run the buffer-local
20812 and the global part of the hook.
20813
20814 * xdisp.c (format_mode_line_unwind_data): Add window argument.
20815 (unwind_format_mode_line): Restore selected window.
20816 (x_consider_frame_title, Fformat_mode_line): Set selected window.
20817
208182008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
20819
20820 * editfns.c (Fchar_equal): Check they are valid characters.
20821
20822 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
20823
208242008-03-17 Andreas Schwab <schwab@suse.de>
20825
20826 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
20827 against a charset.
20828
20829 * lisp.h (Fbuffer_list): Declare.
20830
208312008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 20832
aac0c6e3
MR
20833 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
20834 handlebox_widget is != 0.
20835
208362008-03-16 Juri Linkov <juri@jurta.org>
20837
20838 * callint.c (Fcall_interactively): For interactive code letters
20839 'b' and 'B' put the buffer list into the list of default "future"
20840 values of the minibuffer.
20841
208422008-03-16 Andreas Schwab <schwab@suse.de>
20843
20844 * keyboard.c (read_key_sequence): Fix downcasing of letters with
20845 modifiers.
20846
20847 * regex.c (re_match_2_internal): Correct matching of a charset
20848 against latin-1 characters.
20849
208502008-03-16 Kenichi Handa <handa@m17n.org>
20851
20852 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
20853 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
20854 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
20855 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
20856 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
20857 CHAR_STRING_ADVANCE.
20858 (produce_chars): Fix for the case that the source and the
20859 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
20860 instead of CHAR_STRING_ADVANCE.
20861 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
20862 STRING_CHAR_ADVANCE.
20863
208642008-03-15 Andreas Schwab <schwab@suse.de>
20865
20866 * regex.c (re_match_2_internal): Correct matching of eight bit
20867 characters in unibyte strings.
20868
208692008-03-15 Martin Rudalics <rudalics@gmx.at>
20870
20871 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
20872 at end of range when it coincides with the end of the buffer.
20873
208742008-03-14 Eli Zaretskii <eliz@gnu.org>
20875
20876 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
20877
20878 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
20879
208802008-03-14 Jason Rumney <jasonr@gnu.org>
20881
20882 * editfns.c (initial_tz): New variable.
20883 (syms_of_editfns): Initialize it.
20884 (Fset_time_zone_rule): Set it when first called.
20885 Use it when TZSTRING is nil.
20886
20887 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
20888 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
20889 (monitor_from_point_fn, get_monitor_info_fn): New globals.
20890 (globals_of_w32fns): Initialize them.
20891 (compute_tip_xy): Use them to position tooltips.
20892
208932008-03-14 Glenn Morris <rgm@gnu.org>
20894
20895 * emacs.c (main): Revert previous change.
20896 (standard_args): Revert -internal-script back to -scriptload,
20897 and remove the long-option form.
20898
208992008-03-13 Glenn Morris <rgm@gnu.org>
20900
20901 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
20902 Remove option -enable-font-backend.
20903
209042008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
20905
20906 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
20907
209082008-03-11 Jan Djärv <jan.h.d@swipnet.se>
20909
20910 * xterm.c (x_connection_closed): For GTK: If this is the last
20911 terminal just exit without closing the display.
20912
209132008-03-11 Jason Rumney <jasonr@gnu.org>
20914
20915 * w32font.c (w32font_full_name): Use floor to round.
20916
f0131492 209172008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
20918
20919 * sound.c (alsa_configure): Declare vol at beginning of block.
20920
20921 * fontset.c (Ffontset_info): Remove extra semicolon.
20922
209232008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
20924
20925 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
20926 size of resulting string.
20927
209282008-03-10 Jason Rumney <jasonr@gnu.org>
20929
20930 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
20931
209322008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20933
20934 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
20935 Don't pretend as if characters with display property haven't been
20936 consumed for string-replacing-string case.
20937
209382008-03-08 Kim F. Storm <storm@cua.dk>
20939
20940 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
20941 (get_next_display_element, next_element_from_string)
20942 (next_element_from_ellipsis, next_element_from_buffer): Use it.
20943
209442008-03-08 Andreas Schwab <schwab@suse.de>
20945
20946 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
20947
209482008-03-06 Jason Rumney <jasonr@gnu.org>
20949
20950 * w32font.c (w32_registry): Take font_type argument. Use ANSI
20951 when charset not specified. Only translate ANSI to unicode when
20952 font_type is truetype.
20953 (w32font_coverage_ok): New function.
20954 (add_font_entity_to_list): Use it to filter unsuitable fonts.
20955
209562008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
20957
20958 * lread.c (Fread_char): Resolve modifiers.
20959 (Fread_char_exclusive): Likewise.
20960
20961 * character.c (char_resolve_modifier_mask): New function.
20962 (char_string): Use char_resolve_modifier_mask.
20963 (Fchar_resolve_modifiers): New function.
20964 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
20965 function.
20966
209672008-03-04 Jason Rumney <jasonr@gnu.org>
20968
20969 * makefile.w32-in: Always include w32font.c in the build.
20970 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
20971
209722008-03-04 Andreas Schwab <schwab@suse.de>
20973
20974 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
20975 (versionclean): Likewise.
20976
209772008-03-04 Juanma Barranquero <lekktu@gmail.com>
20978
20979 * .cvsignore: Add oo.
20980
209812008-03-03 Andreas Schwab <schwab@suse.de>
20982
20983 * coding.c (decode_coding_object): Inhibit gap shrinking while
20984 decoding in place.
20985
209862008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
20987
20988 * w32term.c: Remove unused include "gnu.h".
20989 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
20990
20991 * gnu.h: Rename to ...
20992 * emacs-icon.h: ... this.
20993 * xterm.c: Use emacs-icon.h instead of gnu.h.
20994 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
20995
209962008-03-03 Juanma Barranquero <lekktu@gmail.com>
20997
20998 * w32font.c: Include math.h.
20999
210002008-03-03 Jason Rumney <jasonr@gnu.org>
21001
21002 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
21003 Compute options separately.
21004 (w32font_open_internal): Set glyph_idx before caching metrics.
21005
21006 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
21007 Define if system headers don't.
21008 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
21009 (w32font_encode_char): Don't declare here.
21010
21011 * w32font.c (Quniscribe, QCformat): New symbols.
21012 (syms_of_w32font): Define them.
21013 (w32font_has_char): Indicate uncertainty.
21014 (w32font_encode_char): Encode as glyph point. Make static.
21015 (recompute_cached_metrics): New function.
21016 (w32font_open_internal): Use it. Set font to use glyph points
21017 initially. Set format based on type of font.
21018 (w32font_text_extents, w32font_draw): Optionally use glyph points.
21019 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
21020 on it. Set format based on information available here.
21021 (add_font_entity_to_list): Identify backend based on opentype_only.
21022
210232008-03-02 Andreas Schwab <schwab@suse.de>
21024
21025 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
21026
21027 * coding.c (decode_coding_big5, produce_chars):
21028 Fix typos in last change.
21029
210302008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
21031
21032 * gnu.h: New icon.
21033
210342008-03-02 Kenichi Handa <handa@m17n.org>
21035
21036 * coding.c (decode_coding_utf_8): When eol-type of CODING is
21037 `dos', don't decode '\r' if that is the last in the source.
21038 (decode_coding_utf_16, decode_coding_emacs_mule)
21039 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
21040 (decode_coding_raw_text, decode_coding_charset): Likewise.
21041 (produce_chars): Don't decode EOL here. Use EMACS_INT.
21042
210432008-03-01 Jason Rumney <jasonr@gnu.org>
21044
21045 * w32font.c (w32font_full_name): Report point size for scalable fonts.
21046
210472008-03-01 Kim F. Storm <storm@cua.dk>
21048
21049 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
21050
210512008-03-01 Jason Rumney <jasonr@gnu.org>
21052
21053 * w32font.c (w32font_full_name): New function.
21054 (w32font_open_internal): Use it.
21055
210562008-03-01 Kim F. Storm <storm@cua.dk>
21057
21058 * dispnew.c (line_draw_cost): Fix invalid glyph check.
21059
210602008-03-01 Jason Rumney <jasonr@gnu.org>
21061
21062 * font.c (font_unparse_fcname): Increase len when style is a symbol.
21063
210642008-03-01 Jan Djärv <jan.h.d@swipnet.se>
21065
21066 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
21067 xg_frame_resized when the event is for the edit widget.
21068
ef1b0ba7 21069 * gtkutil.h (xg_frame_resized): Rename from xg_resize_widgets.
aac0c6e3
MR
21070
21071 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
21072 set_char_size.
ef1b0ba7 21073 (xg_frame_resized): Rename from xg_resize_widgets. Remove all
aac0c6e3
MR
21074 operations on widgets here. Just set frame size if needed.
21075 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
21076 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
21077 (x_wm_set_size_hint): Set size hints on the edit widget only, not
21078 the whole frame.
21079 (xg_create_tool_bar): Move attachment of the tool bar to
21080 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
21081 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
21082
210832008-03-01 Jason Rumney <jasonr@gnu.org>
21084
21085 * w32fns.c (w32_msg_pump): Disable debug code.
21086
210872008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21088
21089 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
21090
210912008-02-29 Chong Yidong <cyd@stupidchicken.com>
21092
21093 * xdisp.c (next_overlay_string): Don't set
21094 overlay_strings_at_end_processed_p if we're currently reading from
21095 a display string.
21096
210972008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
21098
21099 * xdisp.c (get_overlay_strings_1): Fix typo.
21100
211012008-02-29 Chong Yidong <cyd@stupidchicken.com>
21102
21103 * xdisp.c (get_overlay_strings_1): Add missing argument type.
21104
211052008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
21106
21107 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
21108
21109 * xdisp.c (display_mode_element): Cancel the previous change.
21110 (decode_mode_spec): Likewise.
21111 (handle_auto_composed_prop): Don't make composition if it->string
21112 is a string.
21113
211142008-02-27 Kim F. Storm <storm@cua.dk>
21115
21116 * lisp.h (GLYPH): Change type from int to struct with separate char
21117 and face_id members.
21118 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
21119 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
21120 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
21121 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
21122 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
21123 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
21124 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
21125 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
21126 handle new Lisp glyph code encoding, either an integer or a cons.
21127
21128 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
21129 (GLYPH_ALIAS): Delete.
21130 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
21131 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
21132 (GLYPH_FROM_CHAR): Replace macro by ...
21133 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
21134
21135 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
21136 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
21137 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
21138 (GLYPH_INVALID_P): New macro.
21139 (spec_glyph_lookup_face): Update prototype.
21140
21141 * dispnew.c (line_draw_cost): Adapt to new glyph type.
21142 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
21143 new glyph code encoding.
21144 (spec_glyph_lookup_face): No return value; update passed glyph instead.
21145 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
21146
21147 * xdisp.c (get_next_display_element, next_element_from_display_vector):
21148 Adapt to new glyph type and new glyph code encoding.
21149
21150 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
21151
21152 * indent.c (current_column, current_column_1, Fmove_to_column)
21153 (compute_motion): Adapt to new glyph code encoding.
21154
21155 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
21156
211572008-02-27 Chong Yidong <cyd@stupidchicken.com>
21158
21159 * process.c (wait_reading_process_output): Check for window
21160 changes caused by timers.
21161 Suggested by Johan Bockgård.
21162
211632008-02-27 Glenn Morris <rgm@gnu.org>
21164
21165 * emacs.c (USAGE1): Add `--disable-font-backend'.
21166
211672008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
21168
21169 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
21170 is made to the buffer.
21171
211722008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
21173
21174 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
21175 (face_at_string_position):
21176 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
21177 (face_at_string_position):
21178 * xdisp.c (display_string, next_overlay_change):
21179 * buffer.h (overlays_at):
21180 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
21181 Update callers.
21182
211832008-02-26 Chong Yidong <cyd@stupidchicken.com>
21184
21185 * editfns.c (Fformat): Doc fix.
21186
211872008-02-26 Juanma Barranquero <lekktu@gmail.com>
21188
21189 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
21190 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
21191 (Ffont_otf_alternates, Fquery_font): Doc fixes.
21192
211932008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
21194
21195 * buffer.c (Fbuffer_swap_text): New function.
21196 (syms_of_buffer): Defsubr it.
21197
211982008-02-25 Chong Yidong <cyd@stupidchicken.com>
21199
21200 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
21201
212022008-02-25 Jason Rumney <jasonr@gnu.org>
21203
21204 * w32font.c (w32font_draw): Draw one character at a time when padding.
21205
212062008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
21207
21208 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
21209 Handle a nil arg. Use run_window_configuration_change_hook.
21210 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
21211 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
21212 Use run_window_configuration_change_hook.
21213
212142008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
21215
21216 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
21217 1-pixel width.
21218
212192008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
21220
21221 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
21222 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
21223 if the glyph in the font is zero pixel with.
21224
21225 * dispextern.h (struct glyph_string): New member padding_p.
21226
21227 * w32font.c (w32font_draw): Pay attention to s->padding_p.
21228
21229 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
21230
21231 * xfont.c (xfont_draw): Pay attention to s->padding_p.
21232
21233 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
21234
21235 * font.c: If the font driver doesn't have `shape' function, return Qnil.
21236
212372008-02-25 Jason Rumney <jasonr@gnu.org>
21238
21239 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
21240
212412008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
21242
21243 Allow fine-grained image-cache flushing.
21244 * dispextern.h (struct image): Add `dependencies' field.
21245 (clear_image_caches): Change arg to Lisp_Object.
21246 * image.c (make_image): Initialize `dependencies' field.
21247 (clear_image_cache): Change arg to allow fine-grained flushing.
21248 Perform the flush even if image-cache-eviction-delay is nil.
21249 (clear_image_caches): Change arg to Lisp_Object.
21250 (Fclear_image_cache): Expand meaning of the argument.
21251 (mark_image): Mark `dependencies' field.
21252 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
21253 (lface_hash): Use XHASH rather than XFASTINT.
21254 (face_at_buffer_position): Fix int -> EMACS_INT position.
21255 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
21256 (select_frame_for_redisplay): Remove code duplication.
21257 (redisplay_internal): Adapt arg to call to clear_image_caches.
21258
212592008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
21260
21261 * s/vms4-0.h:
21262 * s/vms4-2.h:
21263 * s/vms4-4.h:
21264 * s/vms5-5.h: Remove, unused.
21265
21266 * s/irix5-2.h:
21267 * s/irix6-0.h:
21268 * s/riscos5.h:
21269 * s/mach-bsd4-3.h:
21270 * m/mips4.h: Remove files for obsolete systems.
21271
21272 * Makefile.in:
21273 * filelock.c:
21274 * unexmips.c:
21275 * m/hp9000s300.h:
21276 * m/iris4d.h:
21277 * s/aix3-1.h:
21278 * s/hpux.h:
21279 * s/msdos.h:
21280 * s/usg5-0.h:
21281 * s/usg5-2-2.h:
21282 * s/usg5-2.h:
21283 * s/usg5-3.h: Remove references to obsolete variables.
21284
21285 * s/irix5-0.h: Remove, move all the contents ...
21286 * s/irix6-5.h: ... here. Simplify.
21287 * config.in: Regenerate.
21288
212892008-02-24 Jason Rumney <jasonr@gnu.org>
21290
21291 * w32term.c (x_draw_glyph_string_background): Clear the background
21292 manually when cleartype is in use.
21293 (x_draw_glyph_string_foreground): Draw text transparently when
21294 cleartype is in use.
21295
21296 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
21297 a font into it unless we have to.
21298
212992008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
21300
21301 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
21302 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 21303
aac0c6e3
MR
213042008-02-18 Jason Rumney <jasonr@gnu.org>
21305
21306 * w32fns.c (Fw32_shell_execute): Encode parameters.
21307
213082008-02-09 Eli Zaretskii <eliz@gnu.org>
21309
21310 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
21311
213122008-02-05 Juanma Barranquero <lekktu@gmail.com>
21313
21314 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
21315
213162008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
21317
21318 * xterm.c (x_set_offset): Don't change the gravity if
21319 CHANGE_GRAVITY is -1.
21320
213212008-02-23 Chong Yidong <cyd@stupidchicken.com>
21322
21323 * fileio.c (auto_save_error_occurred): New var.
21324 (auto_save_error): Set it.
21325 (Fdo_auto_save): Don't overwrite the error message if an auto-save
21326 error occurred.
21327
213282008-02-23 Eli Zaretskii <eliz@gnu.org>
21329
21330 * w32.c (globals_of_w32): Add initializations for
21331 g_b_init_get_sid_sub_authority and
21332 g_b_init_get_sid_sub_authority_count.
21333
213342008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
21335
21336 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
21337 (font_parse_xlfd): Use them for sanity check.
21338 (Finternal_set_font_style_table): Make sure the table is bijective.
21339
21340 Consolidate the image_cache to the terminal struct.
21341 * termhooks.h (P_): Remove redundant def.
21342 (struct terminal): New field `image_cache'.
21343 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
21344 of FRAME_X_IMAGE_CACHE.
21345 * xterm.h (struct x_display_info): Remove image_cache field.
21346 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
21347 * w32term.h (struct w32_display_info): Remove image_cache field.
21348 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
21349 * macterm.h (struct mac_display_info): Remove image_cache field.
21350 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
21351 * xterm.c (x_term_init):
21352 * w32term.c (w32_term_init):
21353 * macterm.c (mac_term_init): Set the image_cache in the terminal.
21354 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
21355 Remove declarations.
21356 (clear_image_caches, mark_image_cache): New declarations.
21357 * xfaces.c (clear_face_cache):
21358 * xdisp.c (redisplay_internal): Use clear_image_caches.
21359 * image.c (clear_image_cache): Don't check that a frame is on
21360 a window-system before checking if it shares the same cache.
21361 (clear_image_caches): New function.
21362 (Fclear_image_cache): Use it.
21363 (mark_image): Move from allo.c.
21364 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
21365 * alloc.c (mark_image, mark_image_cache): Move to image.c.
21366 (mark_object): Don't call mark_image_cache for frames.
21367 (mark_terminals): Call mark_image_cache.
21368
21369 * lisp.h (Fdelete_terminal): Declare.
21370
21371 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
21372 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
21373 wrong_type_argument.
21374
213752008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
21376
21377 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
21378 malayalam.el, and tamil.el. Add sinhala.el.
21379
213802008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
21381
21382 * xterm.c (x_connection_closed): Consolidate identical tests.
21383 (x_delete_terminal): Don't crash if called via x_connection_closed.
21384
213852008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
21386
21387 * xdisp.c (decode_mode_spec): New arg string.
21388 (display_mode_element): Adjust for the above change.
21389
213902008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
21391
21392 * callint.c (Fcall_interactively): Use AREF.
21393
213942008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
21395
21396 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
21397
213982008-02-18 Jan Djärv <jan.h.d@swipnet.se>
21399
21400 * xfns.c (Fx_show_tip): Set string to " " if empty.
21401
214022008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
21403
21404 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
21405 with Qt.
21406
214072008-02-17 Kenichi Handa <handa@m17n.org>
21408
21409 * ftfont.c (ftfont_shape): Return Lispy number.
21410
21411 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
21412 for GCs.
21413 (Finternal_set_font_selection_order): Call font_update_sort_order
21414 only when enable_font_backend is set.
21415 (realize_x_face): Set face->font_info to that of default face only
21416 when enable_font_backend is set.
21417
21418 * xdisp.c (handle_composition_prop): Set it->c to the fist
21419 character of the composed region.
21420 (fill_composite_glyph_string): Set base_face->font_info to
21421 s->font_info. Get a face for ascii from base_face->ascii_face.
21422 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
21423 with a face already decided.
21424 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
21425 non-negative.
21426 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
21427 call font_prepare_composition unconditionally.
21428
21429 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
21430
21431 * xterm.h (struct x_display_info): New member font.
21432
21433 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
21434 (x_set_mouse_face_gc, x_new_font): Likewise.
21435 (x_term_init): Setup display_info->font.
21436 (x_delete_terminal): Free display_info->font.
21437
21438 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
21439
21440 * ftxfont.c (ftxfont_default_fid): Delete it.
21441 (ftxfont_open): Set xfont->fid to 0.
21442 (ftxfont_end_for_frame): Clear data specific to the frame and the
21443 font-driver.
21444
21445 * xftfont.c (xftfont_default_fid): Delete it.
21446 (xftfont_open): Set xfont->fid to 0.
21447
21448 * fontset.c (FONTSET_OBJLIST): New macro.
21449 (fontset_find_font): Update font-object list of the fontset.
21450 (free_realized_fontset): New function.
21451 (free_face_fontset): Call free_realized_fontset.
21452 (Ffont_info): Call font_close_object only when enable_font_backend
21453 is set.
21454
21455 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
21456 [HAVE_NTGUI]: Include w32term.h.
21457 [MAC_OS]: Include macterm.ch.
21458 (font_otf_ValueRecord): Use make_number.
21459 (font_finish_cache): Fix handling of reference count.
21460 (font_clear_cache): Update num_fonts.
21461 (font_open_entity): Update smallest_char_width and
21462 smallest_font_height of the frame.
21463 (font_close_object): Update num_fonts.
21464 (Fclear_font_cache): Fix finding the target cache data.
21465
214662008-02-16 Glenn Morris <rgm@gnu.org>
21467
21468 * fontset.c (Finternal_char_font): Fix compilation warning.
21469
214702008-02-16 Eli Zaretskii <eliz@gnu.org>
21471
21472 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
21473 instead of char arrays. Enlarge the size of array passed to
21474 get_token_information.
21475
21476 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
21477 warnings.
21478
214792008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
21480
21481 * .gdbinit: Don't set `args', it breaks gdb --args.
21482
214832008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
21484
21485 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
21486 within a narrowed buffer.
21487
214882008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
21489
21490 * coding.c (decode_coding_object, encode_coding_object):
21491 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
21492
214932008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
21494
21495 * coding.c (coding_set_destination): Use BEG_BYTE rather than
21496 hardcoding 1.
21497 (detect_coding_system):
21498 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
21499 (string_char_to_byte, string_byte_to_char, insert_from_gap):
21500 * insdel.c (insert_from_gap):
21501 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
21502 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
21503 (string_to_multibyte):
21504 * character.c (chars_in_text, multibyte_chars_in_text):
21505 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
21506
21507 * character.h (FETCH_STRING_CHAR_ADVANCE)
21508 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
21509 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
21510 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
21511
21512 * casefiddle.c (casify_region): Only call after-change and composition
21513 functions on the part of the region that was changed.
21514
21515 * keyboard.c (read_avail_input):
21516 * frame.c (Fdelete_frame): Call Fdelete_terminal.
21517
215182008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
21519
21520 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
21521 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
21522
215232008-02-11 Juanma Barranquero <lekktu@gmail.com>
21524
21525 * w32menu.c (push_submenu_start, push_submenu_end)
21526 (push_left_right_boundary, push_menu_pane, push_menu_item):
21527 * keyboard.c (read_key_sequence): Don't pass args with side effects
21528 to AREF, it fails when compiling with -DENABLE_CHECKING.
21529
215302008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
21531
21532 * Makefile.in (${lispsource}international/charprop.el):
21533 Delete this target.
21534
21535 * search.c (boyer_moore): Fix incorrect synching of the trunk and
21536 emacs-unicode-2.
21537
215382008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
21539
21540 * terminal.c (Fdelete_terminal): Clean up the `force' path.
21541
215422008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
21543
21544 * frame.c (Qnoelisp): New symbol.
21545 (syms_of_frame): Initialize it.
21546 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
21547 harmless Elisp code, from a strong `force' from x_connection_closed.
21548 * frame.h (Qnoelisp): Declare.
21549 * xterm.c (x_connection_closed): Pass `noelisp'.
21550
21551 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
21552 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
21553 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
21554 rather than `int' for the type of `type'.
21555
215562008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
21557
21558 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
21559
21560 * Makefile.in (GNUC): Remove support for gcc-1.x.
21561
215622008-02-10 Richard Stallman <rms@gnu.org>
21563
21564 * lisp.h (ASET): Use AREF, not ASLOT.
21565
215662008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
21567
21568 * lisp.h (ASET): Check bounds.
21569
215702008-02-10 Glenn Morris <rgm@gnu.org>
21571
21572 * buffer.c (mode-name): Doc fix.
21573
215742008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
21575
21576 * Makefile.in:
21577 * emacs.c:
21578 * gmalloc.c:
21579 * keyboard.c:
21580 * lisp.h:
21581 * m/ibm370aix.h:
21582 * process.c:
21583 * regex.c:
21584 * s/hpux.h:
21585 * sysdep.c:
21586 * sysselect.h:
21587 * systty.h:
21588 * unexec.c:
21589 * w32term.c:
21590 * xsmfns.c:
21591 * xterm.c: Remove code that deals with obsolete variables.
21592
21593 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
21594
21595 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
21596 nothing else needs it anymore.
21597
215982008-02-09 Eli Zaretskii <eliz@gnu.org>
21599
21600 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
21601 instead of unibyte_char_to_multibyte.
21602
216032008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
21604
21605 * s/gnu-linux.h: Remove commented out code.
21606
21607 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
21608
21609 * Makefile.in: Update what RMS says about using autoconf.
21610 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
21611 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
21612 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
21613 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
21614
216152008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
21616
21617 * keymap.c (Fkey_description): Move side effect outside of macro call.
21618
21619 * xfaces.c (Finternal_make_lisp_face):
21620 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
21621
21622 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
21623 (syms_of_fontset): Use ASET.
21624
21625 * fns.c (concat): Move side effect outside of macro call.
21626 (hash_clear): Use ASET.
21627
216282008-02-08 Richard Stallman <rms@gnu.org>
21629
21630 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
21631 If FORCE, and frame has a surrogate minibuffer for another frame,
21632 delete the other frame first.
21633
216342008-02-07 Timo Savola <timo.savola@iki.fi>
21635
21636 * xterm.c (x_detect_focus_change): Handle embed client message.
21637 (handle_one_xevent): Ditto.
21638 (handle_one_xevent): If embedded and we get a button press/release,
21639 request focus.
21640 (xembed_set_info, xembed_send_message): New functions.
21641 (x_make_frame_visible): Call xembed_set_info if embedded.
21642 (x_make_frame_invisible): Call xembed_set_info if embedded.
21643 (x_term_init): Initialize Xatom_XEMBED.
21644 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
21645 (x_iconify_frame): Ditto.
21646
21647 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
21648 (enum xembed_info, enum xembed_message, enum xembed_focus)
21649 (enum xembed_modifier, enum xembed_accelerator): New.
21650 (xembed_set_info, xembed_send_message): Declare.
21651 (FRAME_X_EMBEDDED_P): New.
21652
21653 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
21654 gtk_plug_new.
21655
21656 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
21657 window ID of a frame.
21658 (x_window): Reparent frame if embedded.
21659 (Fx_create_frame): Don't set border width if embedded.
21660
21661 * emacs.c (USAGE3): Add --parent-id.
21662 (standard_args): Ditto.
21663
216642008-02-07 Jan Djärv <jan.h.d@swipnet.se>
21665
21666 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
21667
216682008-02-07 Jim Meyering <meyering@redhat.com>
21669
21670 Use "do...while (0)", not "if (1)...else" in macro definitions.
21671 The latter provokes a warning from gcc about the empty else, when
21672 followed by ";". Also, without that trailing semicolon, it would
21673 silently swallow up any following statement.
21674 * syntax.h (SETUP_SYNTAX_TABLE)
21675 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
21676 * buffer.h (DECODE_POSITION): Likewise.
21677 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
21678 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
21679 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
21680 (FETCH_CHAR_ADVANCE): Likewise.
21681 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
21682
216832008-02-07 Jim Meyering <meyering@redhat.com>
21684
21685 * lread.c [lint]: Don't include <sys/inode.h>.
21686
216872008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
21688
21689 * xselect.c (x_handle_dnd_message):
21690 * xmenu.c (digest_single_submenu, xmenu_show):
21691 * xdisp.c (with_echo_area_buffer_unwind_data)
21692 (format_mode_line_unwind_data, unwind_format_mode_line)
21693 (display_menu_bar):
21694 * eval.c (Ffetch_bytecode):
21695 * doc.c (store_function_docstring):
21696 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
21697 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
21698 * buffer.c (add_overlay_mod_hooklist): Use ASET.
21699
217002008-02-07 Kenichi Handa <handa@m17n.org>
21701
21702 * ftxfont.c (ftxfont_open): Don't set
21703 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
21704
21705 * ftfont.c (ftfont_open): Fix previous change.
21706
217072008-02-06 Jason Rumney <jasonr@gnu.org>
21708
21709 * w32font.c (w32font_text_extents): Fill in lbearing metric.
21710 Use cached metrics for ASCII characters.
21711 (w32font_open_internal): Don't set font's owning_frame.
21712 Cache metrics for ASCII characters.
21713
21714 * w32font.h (struct w32font_info): Add ascii_metrics.
21715 Remove owning_frame.
21716
217172008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
21718
21719 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
21720 to negative value.
21721
21722 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
21723
21724 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
21725
21726 * charset.c (syms_of_charset): Set QCtest and Qeq.
21727
217282008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
21729
21730 * process.c (Fstart_process):
21731 * callproc.c (Fcall_process): Handle the case where
21732 Funhandled_file_name_directory returns nil.
21733
21734 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
21735 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
21736 * font.c (check_gstring): Use them and AREF to access the vector before
21737 we know it's really a gstring.
21738 (Ffont_shape_text): Fix typo.
46e722a9 21739 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
21740
21741 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
21742 Declare.
21743
21744 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
21745
217462008-02-05 Jason Rumney <jasonr@gnu.org>
21747
21748 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
21749 Set smallest_font_height and smallest_char_width in display info.
21750
217512008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
21752
21753 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
21754
217552008-02-05 Miles Bader <miles@gnu.org>
21756
21757 * xfaces.c (get_lface_attributes, merge_named_face)
21758 (lookup_named_face, lookup_derived_face, realize_named_face):
21759 Revert 2008-02-01 change by cyd@stupidchicken.com.
21760
217612008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
21762
21763 * fontset.c (Ffontset_info): Handle the case of inhibitting the
21764 fallback fonts.
21765 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
21766
217672008-02-04 Jason Rumney <jasonr@gnu.org>
21768
21769 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
21770 set full_name.
21771 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
21772
217732008-02-03 Jason Rumney <jasonr@gnu.org>
21774
21775 * makefile.w32-in (OBJ1): Include font.o here.
21776 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
21777
217782008-02-02 Jason Rumney <jasonr@gnu.org>
21779
21780 * makefile.w32-in (temacs): Bump EMHEAP to 21.
21781
217822008-02-01 Jason Rumney <jasonr@gnu.org>
21783
21784 * s/cygwin.h: Define VIRT_ADDR_VARIES.
21785
21786 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
21787
217882008-02-01 Andreas Schwab <schwab@suse.de>
21789
21790 * Makefile.in (shortlisp, lisp): Update for rename of
21791 ../lisp/language/myanmar.el.
21792
217932008-02-01 Chong Yidong <cyd@stupidchicken.com>
21794
21795 * xfaces.c (get_lface_attributes): Delete function.
21796 (merge_named_face, lookup_named_face, lookup_derived_face)
21797 (realize_named_face): Call lface_from_face_name directly, and use
21798 the fact that merge_face_vectors does not alter its FROM argument.
21799
218002008-02-01 Jason Rumney <jasonr@gnu.org>
21801
21802 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
21803 input in the default locale. Handle non-Unicode multibyte input.
21804
218052008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21806
21807 * fontset.c (reorder_font_vector): Exclude nil elements from the
21808 font group. Don't try multiple fonts.
21809 (fontset_font): Adjust for the above change.
21810 (Finternal_char_font): Return nil if the found font doesn't
21811 contain the character ch.
21812
21813 * Makefile.in (lisp, shortlisp): Add cham.el.
21814
218152008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21816
21817 * font.h (FONTP): Make it return 1 also for a font-object.
21818
21819 * .gdbinit (xfontset): New function.
21820
21821 * font.c (font_find_for_lface): Check if the character C is
21822 supported or not only for the first font.
21823
21824 * fontset.c (reorder_font_vector): Fix typo.
21825 (fontset_find_font): Don't add a font-spec specifying a script.
21826 Use 0 (not Qt) for the indication of empty font-group. Change the
21827 format of RFONT-DEF. Return Qt if no font in the font-group
21828 support the character.
21829 (fontset_font): Adjust for the above change. If no font was
21830 found the character, remember that.
21831 (face_for_char): Adjust for the change of RFONT-DEF.
21832 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
21833 no font for the target.
21834 (Finternal_char_font): Adjust for the change of RFONT-DEF.
21835
218362008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21837
21838 * font.c (font_load_for_face): Handle the case that the font in
21839 face->lface is a string.
21840
218412008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21842
21843 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
21844
218452008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21846
21847 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
21848 Fix previous change. If the frame is not on a window system,
21849 signal an error.
21850
218512008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21852
bba3e508
SM
21853 * coding.c (decode_coding_object, encode_coding_object):
21854 Adjust marker positions after conversion.
aac0c6e3
MR
21855
21856 * lisp.h (struct Lisp_Marker): New member need_adjustment.
21857
218582008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21859
21860 * font.c (font_find_for_lface): Fix the handling of the return
21861 value of font_has_char.
21862 (Ffont_shape_text): Fix previous change.
21863
21864 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
21865 (fontset_ref_and_range): Delete it.
21866 (fontset_find_font): Call char_table_ref_and_range instead of
21867 FONTSET_REF_AND_RANGE.
21868 (make_fontset): Don't setup font groups of Latin here.
21869 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
21870 (new_fontset_from_font): Make the specified font the default for
21871 all Latin characters.
21872
218732008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21874
21875 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
21876 is on a window system before accessing the fontset of the frame.
21877
218782008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21879
21880 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
21881
21882 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
21883 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
21884
21885 * font.c (Ffont_shape_text): If the font driver doesn't have a
21886 shaper function, make zero-width glyphs to have at least one-pixel
21887 width. Fix setting of `to' field of glyphs.
21888
218892008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21890
21891 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
21892 glyphs.
21893
21894 * font.h (struct font_driver): Improve docstring of member `shape'.
21895
218962008-02-01 Kenichi Handa <handa@m17n.org>
21897
21898 * composite.c (syms_of_composite): Fix docstring of
21899 auto-composition-function.
21900
21901 * font.h (LGLYPH_SIZE): New macro.
21902
21903 * font.c (Ffont_fill_gstring): Stop filling when a character not
21904 supported by the font is found.
21905 (Ffont_shape_text): When a shape callback function returns nil,
21906 try at most two more times with larger gstring.
21907 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
21908
21909 * xdisp.c (handle_auto_composed_prop): Change the argument to
21910 auto-composition-function.
21911
21912 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
21913 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
21914 Lispy glyph and store it in the lgstring.
21915
21916 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
21917
21918 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
21919
219202008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21921
21922 * font.c (Ffont_shape_text): Avoid unnecessary composition.
21923
21924 * fontset.c (Vfont_encoding_charset_alist): New variable.
21925 (syms_of_fontset): DEFVAR it.
21926 (reorder_font_vector, fontset_find_font): Optimize for the case of
21927 no need of reordering.
21928 (face_for_char): Map the charset property by
21929 Vfont_encoding_charset_alist.
21930
219312008-02-01 Jason Rumney <jasonr@gnu.org>
21932
21933 * w32font.c (logfonts_match): Don't check adstyle here.
21934 (font_matches_spec): Check here against physical font instead.
21935 (add_font_entity_to_list): Avoid some substitutions.
21936
21937 * font.c (font_parse_fcname): Default weight and slant to normal.
21938 (font_score): Prefer normal fonts if weight or slant unspecified.
21939 (font_score) [WINDOWSNT]: Scale weight difference down to closer
21940 match freetype scores.
21941
219422008-02-01 Jason Rumney <jasonr@gnu.org>
21943
21944 * w32font.c (w32font_text_extents): Don't use the frame stored in the
21945 font, as it may have been deleted.
21946 (w32_enumfont_pattern_entity): Map generic family to adstyle using
21947 most common hyphenless variation.
21948 (logfonts_match): Check generic family.
21949 (font_matches_spec): Don't check generic family here.
21950 (fill_in_logfont): Set generic family based on adstyle.
21951
21952 * w32font.h (w32font_get_cache): Update declaration.
21953
219542008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21955
21956 * ftfont.c (ftfont_get_cache): Adjust the argument type.
21957
21958 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
21959 If none of the new drivers are available, call font_update_drivers
21960 with the old drivers.
21961
21962 * w32font.c (w32font_get_cache): Adjust the argument type.
21963
21964 * xfont.c (xfont_get_cache): Adjust the argument type.
21965
21966 * font.h (struct font_driver): Change argument type of get_cache.
21967
21968 * xftfont.c (xftfont_start_for_frame): Delete prototype.
21969
21970 * font.c (Ffont_get): Fix arguments to Fassoc.
21971 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
21972 (font_clear_cache): New function.
21973 (font_list_entities, font_matching_entity): Use font_get_cache.
21974 (font_update_drivers): Call font_clear_cache when finishing a driver.
21975
21976 * fontset.c (fontset_find_font): Fix previous change.
21977
219782008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21979
21980 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
21981 dpyinfo->font_table.
21982 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
21983 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
21984
21985 * font.c (font_at): Handle the case that the arg C is negative.
21986 Handle the unibyte case.
21987 (Ffont_at): Call font_at with the arg C -1.
21988
21989 * xdisp.c (handle_auto_composed_prop): Don't get a character at
21990 the position here, and call font_at with the arg C -1.
21991 Don't check the range of the existing composition at the point.
21992
219932008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21994
21995 * fontset.c (fontset_add): New args charset_id and family.
21996 Change caller.
21997 (load_font_get_repertory, fontset_find_font): Assume that
21998 font_spec is always a font-spec object.
21999 (Fset_fontset_font): Always store a font-spec object in a fontset.
22000
22001 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
22002 instead of get_property_and_range.
22003
220042008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22005
22006 * xftfont.c (struct xftfont_info): Delete the member ft_face.
22007 (xftfont_open): Don't keep locking face.
22008 (xftfont_close): Don't unlock face.
22009 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
22010
22011 * fontset.c (fontset_find_font): Don't prefer a font of
22012 supplementary charset.
22013
220142008-02-01 Kenichi Handa <handa@m17n.org>
22015
22016 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
22017 script, langsys_tag to langsys, new member script.
22018 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 22019 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
22020 listing to the script specified in that property. Fix arg to
22021 OTF_check_features.
22022
220232008-02-01 Jason Rumney <jasonr@gnu.org>
22024
22025 * w32font.h: New file.
22026
22027 * w32font.c: Include it.
22028 (struct w32font_info): Add owning_frame field. Move to w32font.h.
22029 (w32font_open): Set owning_frame.
22030 (w32font_text_extents): Use owning_frame.
22031 (struct font_callback_data): Add opentype_only field.
22032 (add_font_entity_to_list): Use it to filter fonts.
22033 Don't check against full name.
22034 (w32font_list_internal): New function.
22035 (w32font_list): Use it.
22036 (w32font_match_internal): New function.
22037 (w32font_match): Use it.
22038 (w32font_open_internal): New function.
22039 (w32font_open): Use it.
22040 (w32font_get_cache, w32font_close, w32font_has_char)
22041 (w32font_encode_char, w32font_text_extents, w32font_draw):
22042 Make non-static.
22043
22044 * makefile.w32-in (w32font.o): Depend on w32font.h.
22045
220462008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22047
22048 * charset.c (Fdefine_charset_internal): Record a supplementary
22049 charset at the tail of Vcharset_order_list.
22050
22051 * font.c (Ffont_shape_text): Fix the return value.
22052
22053 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
22054
22055 * xdisp.c (handle_auto_composed_prop): Fix previous change.
22056
220572008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22058
22059 * ftfont.c (struct OpenTypeSpec): New struct.
22060 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
22061 (ftfont_get_open_type_spec): New function.
22062 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
22063
22064 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
22065
220662008-02-01 Jason Rumney <jasonr@gnu.org>
22067
22068 * w32font.c (add_font_entity_to_list): Compare only the beginning
22069 of full name.
22070
220712008-02-01 Kenichi Handa <handa@m17n.org>
22072
22073 * xdisp.c (handle_auto_composed_prop): Simplify the code.
22074 Never return HANDLED_RECOMPUTE_PROPS.
22075
220762008-02-01 Kenichi Handa <handa@m17n.org>
22077
22078 * font.c (font_gstring_produce): Delete it.
22079
22080 * composite.h (COMPOSITION_METHOD):
22081 Handle COMPOSITION_WITH_GLYPH_STRING.
22082
220832008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22084
22085 * xfont.c (Qx): Delete.
22086 (syms_of_xfont): Don't initialize Qx.
22087
22088 * composite.h (enum composition_method):
22089 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
22090
220912008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22092
22093 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
22094 (choose_face_font): Accept new form of font-spec.
22095
22096 * frame.h (font_driver_list): Declare it unconditionally.
22097 (struct frame): Define members font_driver_list and font_data_list
22098 unconditionally.
22099
22100 * fontset.c: Include "font.h" unconditionally.
22101 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
22102 (Fset_fontset_font): Accept a font-spec object.
22103
22104 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
22105 PIXEL_SIZE part a wild card.
22106
22107 * dispextern.h (struct glyph_string): Define members clip and
22108 num_clips unconditionally.
22109 (struct face): Define members font_info and extra unconditionally.
22110
22111 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
22112 ftfont_info only when HAVE_LIBOTF is defined.
22113
221142008-02-01 Andreas Schwab <schwab@suse.de>
22115
22116 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
22117 and end.
22118
221192008-02-01 Jason Rumney <jasonr@gnu.org>
22120
22121 * w32font.c (w32font_driver): Add new fields.
22122
221232008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22124
22125 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
22126 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
22127 (LIBES): Add @M17N_FLT_CFLAGS@.
22128
22129 * composite.c (compose_text): Don't treat the new style
22130 composition specially.
22131
22132 * emacs.c (main): Call syms_of_font unconditionally.
22133
22134 * font.h (FONT_ENTITY_NOT_LOADABLE)
22135 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
22136 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
22137 (struct font_driver): New member shape.
22138 (font_registry_charsets): Extern it.
22139 (font_find_for_lface, font_prepare_composition): Adjust prototype.
22140 (font_otf_capability, font_drive_otf): Delete their externs.
22141
22142 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
22143 (font_charset_alist, font_registry_charsets): Move from xfont.c
22144 and rename.
22145 (font_prop_validate_otf): New function.
22146 (font_property_table): Register it for QCotf.
22147 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
22148 (font_drive_otf): Delete.
22149 (font_prepare_composition): New arg F. Adjust for the change of
22150 lispy gstring.
22151 (font_find_for_lface): New arg C.
22152 (font_load_for_face): Adjust for the change of font_find_for_lface.
22153 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
22154 lispy gstring.
22155 (Ffont_shape_text): New function.
22156 (Fopen_font): If the font size is not given, use 12-pixel.
22157 (Ffont_at): New arg STRING.
40b1a3a9 22158 (syms_of_font): Initialize font_charset_alist.
aac0c6e3
MR
22159 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
22160 conditionally.
22161
22162 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
22163 fonts of the same font-spec. Change the format of RFONT-DEF.
22164 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
22165 Adjust for the change of RFONT-DEF.
22166 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
22167
22168 * ftfont.h: New file.
22169
22170 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
22171 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
22172 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
22173 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
22174 font_otf_capability and font_drive_otf, set ftfont_shape.
22175 (ftfont_list): Adjust for the change of :otf property value.
22176 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
22177 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
22178 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
22179 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
22180 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
22181 (otf_gstring, gstring, m17n_flt_initialized): New variables.
22182
22183 * w32term.c (x_draw_composite_glyph_string_foreground):
22184 Adjust for the change of lispy gstring.
22185
22186 * xdisp.c (handle_composition_prop): Adjust for the change of
22187 lispy gstring. Call a function for auto-composition with the
22188 third arg it->window.
22189 (fill_composite_glyph_string): Adjust for the change of lispy string.
22190 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
22191
22192 * xfaces.c (set_font_frame_param): Adjust for the change of
22193 font_find_for_lface.
22194
22195 * xfont.c (x_font_charset_alist): Move to font.c and rename.
22196 (xfont_registry_charsets): Likewise. Change caller.
22197 (syms_of_xfont): Don't handle x_font_charset_alist.
22198
22199 * xftfont.c: Include "ftfont.h".
22200 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
22201 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
22202 (xftfont_close) [HAVE_LIBOTF]: Close otf.
22203 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
22204 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
22205 Set xftfont_driver.shape to xftfont_shape.
22206
22207 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
22208 the change of lispy gstring.
22209
222102008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22211
22212 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
22213
222142008-02-01 Jason Rumney <jasonr@gnu.org>
22215
22216 * w32font.c (w32font_draw): Fill background manually.
22217
222182008-02-01 Jason Rumney <jasonr@gnu.org>
22219
22220 * font.c (Qfontp): Remove unused symbol.
22221 (QCantialias): New symbol.
22222 (syms_of_font): Define it.
22223 (font_property_table): Set a validator for QCantialias.
22224
22225 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
22226 Define if not already.
22227 (QCfamily): Share with xfaces.c.
22228 (Qstandard, Qsubpixel, Qnatural): New symbols.
22229 (syms_of_w32font): Define them. Don't define QCfamily here.
22230 (w32_antialias_type, lispy_antialias_type): New functions.
22231 (w32_enumfont_pattern_entity): New arg requested_font.
22232 Set antialias parameter if non-default was requested.
22233 (fill_in_logfont): Fill in lfQuality if :antialias specified.
22234
222352008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22236
22237 * lread.c (read1): Undo the previous change.
22238
222392008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
22240
22241 * frame.c (Fdelete_frame): Call font_update_drivers only when
22242 USE_FONT_BACKEND is defined.
22243
222442008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22245
22246 * font.h (struct font_bitmap): New member bits_per_pixel.
22247 (struct font_driver): New members start_for_frame and end_for_frame.
22248 (struct font_data_list): New struct.
22249 (font_put_frame_data, font_get_frame_data): Extern them.
22250
22251 * frame.h (struct frame): New member font_data_list.
22252
22253 * font.c (font_update_drivers): Call driver->start_for_frame and
22254 driver->end_for_frame at proper timings.
22255 (font_put_frame_data, font_get_frame_data): New functions.
22256 (Ffont_spec): Add usage in the docstring.
22257
22258 * frame.c (make_frame): Initialize f->font_data_list to NULL.
22259 (Fdelete_frame): Call font_update_drivers.
22260
22261 * xftfont.c (struct xftface_info): Delete the member xft_draw.
22262 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
22263 (xftfont_get_xft_draw): New function.
22264 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
22265 (xftfont_end_for_frame): New function.
22266 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
22267
22268 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
22269 Change argument. Cache GCs in the per-frame data.
22270 (struct ftxfont_frame_data): New struct.
22271 (ftxfont_draw_bitmap): New arg gc_fore and flush.
22272 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
22273 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
22274 (ftxfont_end_for_frame): New function.
22275 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
22276
22277 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
22278
222792008-02-01 Kenichi Handa <handa@m17n.org>
22280
22281 * xselect.c (Vselection_coding_system)
22282 (Vnext_selection_coding_system): Delete them.
22283 (syms_of_xselect): Don't declare selection-coding-system and
22284 next-selection-coding-system. They are declared in select.el.
22285
222862008-02-01 Jason Rumney <jasonr@gnu.org>
22287
22288 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
22289
22290 * w32fns.c: Include imm.h.
22291 (get_composition_string_fn, get_ime_context_fn): New optional
22292 system functions.
22293 (globals_of_w32fns): Load them from imm32.dll.
22294 (ignore_ime_char): New flag.
22295 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
22296 WM_IME_ENDCOMPOSITION messages.
22297
22298 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
22299 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
22300
223012008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22302
22303 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
22304 (READCHAR_REPORT_MULTIBYTE): New macro.
22305 (readchar): New 2nd arg MULTIBYTE.
22306 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
22307 Make symbol's name multibyte according to the multibyteness of the
22308 source.
22309
223102008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22311
22312 * xfaces.c (face_for_overlay_string): Call lookup_face with
22313 correct arguments (fix of synching with the trunk).
22314
223152008-02-01 Kenichi Handa <handa@m17n.org>
22316
22317 * font.c (font_prop_validate_symbol, font_prop_validate_style)
22318 (font_prop_validate_non_neg, font_prop_validate_spacing):
22319 Delete argument prop_index.
22320 (font_property_table): Change arguments to validater. Change Callers.
22321 (font_lispy_object): Delete.
22322 (font_at): Use font_find_object instead fo font_lispy_object.
22323
223242008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22325
22326 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
22327 and file names.
22328
223292008-02-01 Jason Rumney <jasonr@gnu.org>
22330
22331 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
22332 (font_matches_spec): Remove debug output.
22333 (add_font_entity_to_list): Avoid using substituted fonts.
22334
223352008-02-01 Jason Rumney <jasonr@gnu.org>
22336
22337 * doc.c (Fsnarf_documentation):
22338 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
22339
223402008-02-01 Miles Bader <miles@gnu.org>
22341
22342 * dispextern.h (struct glyph_row): Only define "clip" field if
22343 HAVE_WINDOW_SYSTEM is defined.
22344
223452008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
22346
22347 Fix up multi-tty merge.
22348
22349 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
22350 and indentation.
22351
22352 * xfaces.c (free_realized_face, clear_face_gcs):
22353 Include font_done_for_face in the input_blocked section, just in case.
22354
22355 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
22356 (get_char_face_and_encoding): Undo last change and remove the *other*
22357 duplicate definition (i.e. keep the one that's better scoped and that
22358 includes code for the font-backend).
22359
22360 * terminal.c (create_terminal): Default keyboard_coding to
22361 `no-conversion' and terminal_coding to `undecided'.
22362
22363 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
22364
22365 * fontset.c (free_realized_fontsets): Check that the table entry does
22366 contain a fontset before trying to compare it to `base'.
22367
22368 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
22369 syms_of_charset, and syms_of_coding earlier because init_window_once
22370 now needs Vcoding_system_hash_table to be setup.
22371
22372 * coding.h (default_buffer_file_coding): Remove.
22373
22374 * coding.c (default_buffer_file_coding): Remove.
22375 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
22376 than ->symbol, and use the terminal-local coding system.
22377 (syms_of_coding): Don't setup the coding-systems that are not
22378 terminal-local.
22379 (Fdefine_coding_system_internal): Use XCAR/XCDR.
22380
22381 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
22382 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
22383
22384 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
22385 in chartab.c and were re-added here by mistake.
22386 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
22387
22388 * doc.c (Fsnarf_documentation):
22389 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
22390 src to etc.
22391
22392 * ChangeLog.10: Add mistakenly removed entry.
22393
223942008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
22395
22396 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
22397
223982008-02-01 Miles Bader <miles@gnu.org>
22399
22400 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
22401 Add extra args to FACE_FOR_CHAR.
22402
224032008-02-01 Kenichi Handa <handa@m17n.org>
22404
22405 * keymap.c (where_is_internal_1): If key is a cons, store the copy
22406 in sequence.
22407
22408 * chartab.c (map_sub_char_table, map_char_table): If the range
22409 contains just one character, call the function with that character
22410 even if the depth is not 3.
22411
224122008-02-01 Jason Rumney <jasonr@gnu.org>
22413
22414 * w32font.c (w32font_text_extents): Calculate metrics for the
22415 whole string.
22416
224172008-02-01 Jason Rumney <jasonr@gnu.org>
22418
22419 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
22420
224212008-02-01 Jason Rumney <jasonr@gnu.org>
22422
bba3e508
SM
22423 * w32term.c (x_set_glyph_string_clipping):
22424 Use get_glyph_string_clip_rects.
aac0c6e3
MR
22425 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
22426 Adjust for the change of struct glyph_string.
22427
22428 * w32font.c (w32font_draw): Do clipping here.
22429
224302008-02-01 Kenichi Handa <handa@m17n.org>
22431
22432 * xftfont.c (xftfont_draw): Adjust for the change of struct
22433 glyph_string.
22434
bba3e508
SM
22435 * xterm.c (x_set_glyph_string_clipping):
22436 Use get_glyph_string_clip_rects.
aac0c6e3
MR
22437 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
22438 Adjust for the change of struct glyph_string.
22439
22440 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
22441 the resulting clip(s}.
22442 (expose_overlaps): Add arg r. Change callers. Set it to
22443 row->clip temporarily.
22444 (expose_window): Redraw rows overlapping the exposed area.
22445
22446 * dispextern.h (struct glyph_row): New member clip.
22447 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
22448 clip_height, new member clip, and num_clips.
22449
224502008-02-01 Kenichi Handa <handa@m17n.org>
22451
22452 * data.c (Fchar_or_string_p): Fix docstring.
22453
224542008-02-01 Kenichi Handa <handa@m17n.org>
22455
22456 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
22457 create a temporary XftDraw object.
22458
224592008-02-01 Kenichi Handa <handa@m17n.org>
22460
22461 * font.c (Ffontp): Fix docstring.
22462
22463 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
22464 strong evidence of ISO-2022.
22465
224662008-02-01 Kenichi Handa <handa@m17n.org>
22467
22468 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
22469 SYNTAX_ENTRY_FOLLOW_PARENT.
22470
224712008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
22472
22473 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
22474 its type.
22475 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
22476 Update to the new type of weak_hash_tables and next_weak.
22477
22478 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
22479 a plain C pointer to Lisp_Hash_Table.
22480
22481 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
22482 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
22483 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
22484 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
22485 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
22486 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
22487 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
22488 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
22489 (GC_EQ): Remove since they've been identical to their non-GC_
22490 alter-egos ever since the markbit was eradicated.
22491
22492 * alloc.c:
22493 * buffer.c:
22494 * buffer.h:
22495 * data.c:
22496 * fileio.c:
22497 * filelock.c:
22498 * fns.c:
22499 * frame.h:
22500 * lisp.h:
22501 * macterm.c:
22502 * print.c:
22503 * process.c:
22504 * w32fns.c:
22505 * w32menu.c:
22506 * w32term.c:
22507 * xfns.c:
22508 * xmenu.c:
22509 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
22510
225112008-02-01 Kenichi Handa <handa@m17n.org>
22512
22513 * chartab.c (map_sub_char_table): Make it work for the top-level
22514 char-table. Fix handling of parent char-table.
22515 (map_char_table): Adjust for the above change.
22516
225172008-02-01 Jason Rumney <jasonr@gnu.org>
22518
22519 * w32font.c (Qgdi): Rename from Qw32.
22520
225212008-02-01 Jason Rumney <jasonr@gnu.org>
22522
22523 * w32bdf.c (get_quoted_string): Make function static.
22524
225252008-02-01 Kenichi Handa <handa@m17n.org>
22526
22527 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
22528 bigger ascent and descent than those of the font, use them as
22529 font's ascent and descent.
22530
225312008-02-01 Kenichi Handa <handa@m17n.org>
22532
22533 * Makefile.in (${lispsource}international/charprop.el): Move this
22534 target within "#ifdef HAVE_UNIDATA" and "#endif".
22535
225362008-02-01 Kenichi Handa <handa@m17n.org>
22537
22538 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
22539 (shortlisp): Add ../lisp/language/tai-viet.el.
22540
225412008-02-01 Ulrich Mueller <ulm@gentoo.org>
22542
22543 * Makefile.in (${lispsource}international/charprop.el): Depend on
22544 temacs${EXEEXT}.
22545
225462008-02-01 Jason Rumney <jasonr@gnu.org>
22547
22548 * w32font.c (w32font_close): Delete the GDI font object.
22549
22550 * w32menu.c: Include character.h.
22551
22552 * w32proc.c: Likewise.
22553
22554 * w32select.c: Likewise.
22555
22556 * makefile.w32-in (w32proc.o): Depend on character.h.
22557
225582008-02-01 Jason Rumney <jasonr@gnu.org>
22559
22560 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
22561
22562 * w32menu.c (syms_of_w32menu): Likewise.
22563
22564 * w32proc.c (syms_of_ntproc): Likewise.
22565
22566 * w32select.c (syms_of_w32select): Likewise.
22567
22568 * w32term.c (syms_of_w32term): Likewise.
22569
225702008-02-01 Jason Rumney <jasonr@gnu.org>
22571
22572 * w32font.c (w32font_draw): Delete brush after using it.
22573
225742008-02-01 Jason Rumney <jasonr@gnu.org>
22575
22576 * w32font.c (w32font_open): Don't set font_idx.
22577 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
22578 to font settings.
22579 (w32font_draw): Fill background explicitly.
22580
225812008-02-01 Jason Rumney <jasonr@gnu.org>
22582
22583 * w32term.c (w32_initialize): Don't call w32font_initialize.
22584
22585 * w32font.c (w32font_info): Remove subranges.
22586 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
22587 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
22588 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
22589 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
22590 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
22591 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
22592 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
22593 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
22594 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
22595 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
22596 New symbols.
22597 (font_callback_data): New struct.
22598 (w32font_list, w32font_match): Use it.
22599 (w32font_open): Don't populate subranges.
22600 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
22601 (w32font_encode_char): Always return unicode code-point as-is.
22602 (w32font_text_extents): Supply a transformation matrix to
22603 GetGlyphOutline. Never look up by glyph index. Avoid looping
22604 twice. Use unicode version of GetTexExtentPoint32 instead of
22605 glyph index version.
22606 (set_fonts_frame): Remove.
22607 (w32_enumfont_pattern_entity): Add frame parameter, use it to
22608 set frame parameter. Use backward compatible fake foundries.
22609 Save generic family in extra slot under QCfamily. Make width slot
22610 constant. Save QCspacing value. Save list of scripts instead of
22611 binary subranges.
22612 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
bba3e508
SM
22613 (add_font_entity_to_list): Use font_callback_data struct.
22614 Filter unwanted fonts.
aac0c6e3
MR
22615 (add_one_font_entity_to_list): Use font_callback_data struct.
22616 (w32_registry): Default to iso10646_1.
22617 (fill_in_logfont): Use dpi from extra slot. Don't bother with
22618 string font registries. Don't fill in font name if it is a generic
22619 family name, fill family instead. Use spacing, family and script
22620 extra info to fill pitch, family and charset fields.
22621 (list_all_matching_fonts): Use font_callback_data struct.
22622 (unicode_range_for_char): Remove.
22623 (font_supported_scripts): New function.
22624 (w32font_initialize): Remove.
22625 (syms_of_w32font): Update which symbols are defined.
22626
226272008-02-01 Jason Rumney <jasonr@gnu.org>
22628
22629 * font.c (font_pixel_size): Reverse assq_no_quit args.
22630
22631 * w32term.h (FONT_WIDTH): Report max width, not average.
22632 (FONT_MAX_WIDTH): Remove.
22633 (FONT_AVG_WIDTH): New macro.
22634
22635 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
22636 redefinition of FONT_WIDTH.
22637
22638 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
22639 (w32_cache_char_metrics): Use FONT_WIDTH.
22640
22641 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
22642
226432008-02-01 Jason Rumney <jasonr@gnu.org>
22644
22645 * w32font.c (w32font_open): Make lfHeight negative.
22646
22647 * w32fns.c (x_default_font_parameter): Use new style font name.
22648 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
22649
226502008-02-01 Jason Rumney <jasonr@gnu.org>
22651
22652 * w32font.c (QCsubranges): New symbol.
22653 (w32font_open, w32font_has_char): Get subranges from subproperty
22654 of extra.
22655 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
22656 (syms_of_w32font): Define :subranges symbol.
22657
22658 * font.c (font_put_extra): Expose externally.
22659
22660 * font.h (font_put_extra): Move declaration from font.c.
22661
22662 * font.c (Ffont_get): Use font driver to determine otf capability.
22663 (adjust_anchor): Check if driver defines anchor_point before using.
22664
22665 * w32font.c (w32font_open): Handle size, height and pixel_size better.
22666 (w32font_draw): Use options.
22667 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
22668 Fix detection of truetype fonts.
22669 (registry_to_w32_charset): Handle charsets other than iso8859-1
22670 expressed as lisp symbols.
22671 (w32_registry): Express charset as lisp symbol.
22672 (fill_in_logfont): Reverse pixel and point height logic.
22673 Don't set width here. Set quality to default.
22674
22675 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
22676 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
22677
22678 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
22679 Remove redundant loop and allocation.
22680
22681 * makefile.w32-in (font.o, w32font.o): New objects.
22682 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
22683 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
22684
22685 * xdisp.c (fill_composite_glyph_string): Make the first arg to
22686 STORE_XCHARB a valid l-value.
22687
22688 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
22689 calculations for non-Truetype fonts.
22690 (x_draw_glyph_string): Sync with xterm.c.
22691 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
22692 Remove redundant code.
22693 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
22694
22695 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
22696 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
22697
22698 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
22699 (x_to_w32_charset, w32_to_x_charset): Expose externally.
22700
22701 * w32font.c: New file for w32 font backend.
22702
227032008-02-01 Kenichi Handa <handa@m17n.org>
22704
22705 * term.c: Don't include "buffer.h" twice.
22706
227072008-02-01 Kenichi Handa <handa@m17n.org>
22708
22709 * character.c (Funibyte_string): New function.
22710 (syms_of_character): Defsubr it.
22711
227122008-02-01 Jason Rumney <jasonr@gnu.org>
22713
22714 * w32term.c [USE_FONT_BACKEND]:
22715 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
22716 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
22717 (x_draw_glyph_string, x_draw_glyph_string_foreground)
22718 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
22719 (x_free_frame_resources): Sync with xterm.c.
22720
227212008-02-01 Andreas Schwab <schwab@suse.de>
22722
22723 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
22724 char-table size.
22725
227262008-02-01 Kenichi Handa <handa@m17n.org>
22727
22728 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
22729
227302008-02-01 Kenichi Handa <handa@m17n.org>
22731
22732 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
22733 font_otf_gpos, add font_drive_otf.
22734
22735 * fontset.c (fontset_find_font): Pay attention to font size
22736 specified for a font.
22737 (reorder_font_vector): Check contents of font_def.
22738
22739 * font.c (struct otf_list): Delete it.
22740 (otf_list): Make it a lisp variable.
22741 (otf_open): Use lispy otf_list.
22742 (generate_otf_features): Rename from parse_gsub_gpos_spec.
22743 (check_otf_features): New function.
22744 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
22745 New functions.
22746 (font_drive_otf): New function merging font_otf_gsub and
22747 font_otf_gpos.
22748 (font_open_for_lface): New arg spec. Change argument order.
22749 (font_load_for_face): Adjust for the change of font_open_for_lface.
22750 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
22751 Ffont_otf_gpos.
22752 (syms_of_font): Staticpro otf_list. Delete defsubr of
22753 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
22754
22755 * xfaces.c (set_font_frame_param): Adjust for the change of
22756 font_open_for_lface.
22757
22758 * font.h (font_open_for_lface): Adjust prototype.
22759 (struct font_driver): Delete members otf_gsub and otf_gpos, add
22760 member otf_drive.
22761 (font_otf_gsub, font_otf_gpos): Delete externs.
22762 (font_drive_otf): Extern it.
22763
227642008-02-01 Kenichi Handa <handa@m17n.org>
22765
22766 * font.c (font_at): If the window W is not on a window system,
22767 return Qnil.
22768
22769 * coding.c (produce_chars, encode_coding): Don't call
22770 insert_from_gap if no characters to produce.
22771
227722008-02-01 Kenichi Handa <handa@m17n.org>
22773
22774 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
22775 Fclear_face_cache.
22776
22777 * xfaces.c (face_for_font): Check also face->font==font->font.font.
22778
227792008-02-01 Miles Bader <miles@gnu.org>
22780
22781 * emacs.c (main): Change default value of `enable_font_backend' to 1.
22782 Parse "--disable-font-backend" option.
22783 (standard_args): Add "--disable-font-backend" option.
22784
227852008-02-01 Kenichi Handa <handa@m17n.org>
22786
22787 * fontset.c (fontset_find_font): New function.
22788 (fontset_font): Use fontset_find_font.
22789 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
22790 Register the specified font for all Latin characters.
22791 (new_fontset_from_font): Register the specified font for all Latin
22792 characters.
22793 (dump_fontset): For a realized fontset, include the base fontset
22794 name in the returned vector.
22795
227962008-02-01 Kenichi Handa <handa@m17n.org>
22797
22798 * character.h (CHAR_STRING): Cast C to unsigned on calling
22799 char_string.
22800
22801 * character.c (char_string): Type of arg C changed to unsigned.
22802 Signal an error if C is an invalid character code.
22803
22804 * editfns.c (general_insert_function, Fchar_to_string):
22805 Use CHARACTERP, not INTEGERP.
22806
228072008-02-01 Kenichi Handa <handa@m17n.org>
22808
22809 * character.h (MIN_MULTIBYTE_LEADING_CODE)
22810 (MAX_MULTIBYTE_LEADING_CODE): New macros.
22811
22812 * regex.c (analyse_first): Fix for multibyte characters in "case
22813 charset:" and "case categoryspec:".
22814
228152008-02-01 Andreas Schwab <schwab@suse.de>
22816
22817 * Makefile.in (LIBES): Move standard libraries to the end.
22818
228192008-02-01 Kenichi Handa <handa@m17n.org>
22820
22821 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
22822 nonzero, don't shrink the buffer nextb.
22823
22824 * buffer.h (struct buffer_text): New member inhibit_shrinking.
22825
22826 * coding.c (coding_alloc_by_making_gap): New arg offset.
22827 (alloc_destination): Call coding_alloc_by_making_gap with the arg
22828 offset.
22829 (decode_coding_iso_2022): Update coding->safe_charsets.
22830 (decode_coding_gap): Temporarily set
22831 current_buffer->text->inhibit_shrinking to 1.
22832
228332008-02-01 Kenichi Handa <handa@m17n.org>
22834
bba3e508
SM
22835 * xterm.c (x_draw_composite_glyph_string_foreground):
22836 Fix indexing into elements of s->cmp and s->char2b.
aac0c6e3
MR
22837
228382008-02-01 Juanma Barranquero <lekktu@gmail.com>
22839
22840 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
22841
228422008-02-01 Kenichi Handa <handa@m17n.org>
22843
22844 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
22845 target_multibyte instead of multibyte.
22846 (re_match_2_internal): Call bcmp_translate with target_multibyte.
22847 (bcmp_translate): Change the argument name from multibyte to
22848 target_multibyte.
22849
228502008-02-01 Kenichi Handa <handa@m17n.org>
22851
22852 These changes are to compile a regexp into a pattern that can be
22853 used both for multibyte and unibyte targets.
22854
22855 * Makefile.in (search.o): Depend on charset.h.
22856
22857 * character.c (multibyte_char_to_unibyte_safe): New function.
22858
22859 * search.c: Include "charset.h".
22860 (compile_pattern_1): Delete argument multibyte. Don't set
22861 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
22862 (compile_pattern): Don't compare cp->buf.target_multibyte.
22863 Compare cp->buf.charset_unibyte.
22864 (compile_pattern): Set cp->buf.target_multibyte.
22865
22866 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
22867
22868 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
22869
22870 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
22871 multibyte. Change callers.
22872 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
22873 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
22874 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
22875 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
22876 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
22877 (regex_compile): Make the compiled pattern usable both for
22878 multibyte and unibyte targets.
22879 (analyse_first): Make the fastmap usable both for multibyte and
22880 unibyte targets.
22881 (TRANSLATE_VIA_MULTIBYTE): Delete.
22882 (re_match_2_internal): Pay attention to the case that the
22883 multibyteness of bufp and target may be different.
22884
228852008-02-01 Kenichi Handa <handa@m17n.org>
22886
22887 * xdisp.c (x_produce_glyphs): When a font is not found, make the
22888 empty box occupy at least one column width.
22889
228902008-02-01 Miles Bader <miles@gnu.org>
22891
22892 * Makefile.in: Remove redundant HAVE_XFT clause.
22893
228942008-02-01 Kenichi Handa <handa@m17n.org>
22895
22896 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
22897
228982008-02-01 Kenichi Handa <handa@m17n.org>
22899
22900 * fontset.c (Finternal_char_font): Fix for the case of POSITION
22901 being nil.
22902
229032008-02-01 Kenichi Handa <handa@m17n.org>
22904
22905 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
22906
229072008-02-01 Kenichi Handa <handa@m17n.org>
22908
22909 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
22910
229112008-02-01 Kenichi Handa <handa@m17n.org>
22912
22913 * search.c (simple_search): Fix previous change.
22914
229152008-02-01 Kenichi Handa <handa@m17n.org>
22916
22917 * xftfont.c (ftfont_font_format): Extern declaration.
22918
22919 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
22920
22921 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
22922 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
22923
22924 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
22925 (ftfont_font_format): Fix previous change.
22926
22927 * font.h (Ffont_xlfd_name): EXFUN it.
22928
22929 * font.c (font_parse_xlfd): Fix the array size of `f'.
22930 (register_font_driver): Use EQ to compare driver->type.
22931
22932 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
22933 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
22934 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
22935
229362008-02-01 Kenichi Handa <handa@m17n.org>
22937
22938 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
22939 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
22940
229412008-02-01 Kenichi Handa <handa@m17n.org>
22942
22943 * xfont.c (xfont_open): Set font->format.
22944
22945 * xftfont.c (xftfont_open): Set font->format.
22946
22947 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
22948 (ftfont_list): Include FC_FONTFORMAT in FcObject.
22949 (ftfont_open): Set font->format.
22950 (ftfont_font_format): New function.
22951
22952 * font.h (struct font): New member format.
22953
22954 * font.c (Qopentype): New variable.
22955 (syms_of_font): Defsym it.
22956 (Fquery_font): Change the format of the last element of the return
22957 value.
22958
229592008-02-01 Kenichi Handa <handa@m17n.org>
22960
22961 * xfns.c (xic_create_xfontset): Try the default fontset name as a
22962 last resort.
22963
229642008-02-01 Kenichi Handa <handa@m17n.org>
22965
22966 * coding.c (detect_coding_charset): Fix detection of multi-byte
22967 charset.
22968
229692008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
22970
22971 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
22972
229732008-02-01 Kenichi Handa <handa@m17n.org>
22974
22975 * xdisp.c (get_next_display_element): Set it->face_id for the
22976 first component of a composition.
22977 (x_produce_glyphs): Check if the font is changed or not for composition.
22978
229792008-02-01 Kenichi Handa <handa@m17n.org>
22980
22981 * fontset.c (Qlatin): New variable.
22982 (syms_of_fontset): Define it as a lisp symbol.
22983 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
22984
229852008-02-01 Kenichi Handa <handa@m17n.org>
22986
22987 * font.c (font_unparse_fcname): Pay attention to the case that
22988 some of font property is a null string.
22989
229902008-02-01 Kenichi Handa <handa@m17n.org>
22991
22992 * term.c: Include "composite.h".
22993 (encode_terminal_code): Output all components of composition.
22994 Check the size of encode_terminal_src.
22995 (produce_glyphs): For composition, call produce_composite_glyph.
22996 (append_composite_glyph, produce_composite_glyph): New functions.
22997
22998 * xdisp.c (x_produce_glyphs): In handling composition, if a font
22999 is not found, get font_info from the current ascii face.
23000
230012008-02-01 Kenichi Handa <handa@m17n.org>
23002
23003 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
23004 buffer-file-name to Qnil before calling insert_from_buffer.
23005
23006 * font.c (font_unparse_fcname): Pay attention to the case that
23007 foundry is a null string.
23008
230092008-02-01 Kenichi Handa <handa@m17n.org>
23010
23011 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
23012
23013 * font.c (Qunicode_sip): New variable.
23014 (syms_of_font): Declare it as a Lisp symbol.
23015
23016 * font.h (Qunicode_sip): Extern it.
23017
230182008-02-01 Kenichi Handa <handa@m17n.org>
23019
23020 * composite.c (get_composition_id): Pay attention to TAB component.
23021
23022 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
23023 TAB. Adjust for the change of s->char2b which always points to
23024 the first element of allocated memory.
23025
23026 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
23027
23028 * xdisp.c (handle_composition_prop): Set it->c to the first
23029 non-TAB component.
23030 (fill_composite_glyph_string): Change argument.
23031 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
23032 (x_produce_glyphs): Fix handling of left/right padding.
23033
230342008-02-01 Kenichi Handa <handa@m17n.org>
23035
23036 * coding.c (detect_coding_system): Fix for handling off
23037 inhibit_iso_escape_detection. Fix for the case that no coding
23038 system is defined for a specific coding category.
23039
230402008-02-01 Kenichi Handa <handa@m17n.org>
23041
23042 * font.c (font_matching_entity): Delete unused local var.
23043
23044 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
23045 opening a font.
23046
23047 * fileio.c (Finsert_file_contents): On recovering a file, assume
23048 Unix-like eol.
23049 (choose_write_coding_system): On auto-saving a file, force
23050 Unix-like eol.
23051
23052 * coding.c (setup_coding_system): Fix setting of
23053 coding->common_flags based on eol_type.
23054 (coding_inherit_eol_type): If PARENT is not nil, be sure to
23055 inherit from it.
23056
230572008-02-01 Kenichi Handa <handa@m17n.org>
23058
23059 * alloc.c (NSTATICS): Increas to 0x600.
23060
230612008-02-01 Kenichi Handa <handa@m17n.org>
23062
23063 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
23064 (ftfont_list): Don't check :name property.
23065 (ftfont_match): New function.
23066 (ftfont_pattern_entity): If the pattern doesn't contain
23067 FC_SPACING, don't assume FC_MONO.
23068
23069 * font.h (struct font_driver): New member `match'.
23070 (font_update_drivers): Adjust prototype.
23071
23072 * font.c (font_parse_fcname, font_parse_name): Don't change :name
23073 property of FONT.
bba3e508
SM
23074 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring):
23075 Define them unconditionally.
aac0c6e3
MR
23076 (font_matching_entity): New function.
23077 (font_open_by_name): Try font_matching_entity if exact match is
23078 not found.
23079 (font_update_drivers): Delete the arg FONT. Return a list of
23080 actually used backends. Don't free faces, font caches here.
23081 Don't store data in frame parameters. Don't call x_set_font.
23082 (Ffont_spec): Store :name property as is.
23083 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
23084 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
23085 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
23086 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
23087 Call font->driver->otf_gsub instead of font_otf_gsub.
23088
23089 * frame.c (x_set_font_backend): Do more works that were done in
23090 font_update_drivers before.
23091
23092 * xfont.c (xfont_match): New function.
23093 (xfont_driver): Set xfont_driver.match to xfont_match.
23094 (xfont_draw): Set font in GC if necessary.
23095
23096 * ftxfont.c (ftxfont_match): New function.
23097 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
23098
23099 * xftfont.c (xftfont_match): New function.
23100 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
23101
231022008-02-01 Kenichi Handa <handa@m17n.org>
23103
23104 * font.h (struct font): New member scalable.
23105 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
23106 (font_otf_gsub): Adjust prototype.
23107
23108 * font.c (font_otf_capability): Fix handling of the default langsys.
23109 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
23110 Check the contents of SPEC.
23111 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
23112 (check_gstring): New function.
23113 (REPLACEMENT_CHARACTER): New macro.
23114 (font_otf_gsub): New arg alternate_subst. Be sure to set all
23115 glyph codes of GSTRING.
23116 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
23117 (font_prepare_composition): Set cmp->glyph_len.
23118 (font_open_entity): Set font->scalable.
23119 (Ffont_get): Handle :otf property.
bba3e508
SM
23120 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates):
23121 New functions.
aac0c6e3
MR
23122 (Fquery_font): Use font->font.full_name.
23123 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
23124 Sfont_otf_alternates.
23125
23126 * ftfont.c (ftfont_open): Set font->font.full_name and
23127 font->font.name properly. Fix calculation of font->font.height
23128 and font->min_width.
23129
23130 * ftxfont.c (ftxfont_create_gcs): New function.
23131 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
23132 (ftxfont_draw_backgrond): Fix filling region.
23133 (ftxfont_default_fid): New function.
23134 (ftxfont_open): Set xfont->fid to the return value of
23135 ftxfont_default_fid.
23136 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
23137 (ftxfont_done_face): Free only GCs that are created by
23138 ftxfont_create_gcs.
23139 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
23140
23141 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
23142 Clip to src->width, etc (not src->clip_XXX).
23143
23144 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
23145 FontBackend frame parameter.
23146
231472008-02-01 Kenichi Handa <handa@m17n.org>
23148
23149 * font.h (struct font_driver_list): New member `on'.
23150 (Fclear_font_cache): EXFUN it.
23151 (font_update_drivers): Extern it.
23152
23153 * font.c (font_unparse_fcname): Fix typo (swidth->width).
23154 (font_list_entities): Check driver_list->on.
40b1a3a9 23155 (register_font_driver): Initialize `on' member to 0.
aac0c6e3
MR
23156 (font_update_drivers): New function.
23157 (Fclear_font_cache): Check driver_list->on.
23158
23159 * frame.h (Qfont_backend): Extern it.
23160 (x_set_font_backend): Extern it.
23161
23162 * frame.c (Qfont_backend): New variable.
23163 (frame_parms): New element for font-backend.
23164 (x_set_font_backend): New function.
23165
23166 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
23167 FontBackend frame parameter.
23168 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
23169 x_set_font_backend.
23170
23171 * xfont.c (xfont_list): Don't try listing by :name property if the
23172 name is not for XLFD.
23173
231742008-02-01 Kenichi Handa <handa@m17n.org>
23175
23176 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
23177 (LGLYPH_SET_TO): New macros.
23178 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
23179 element of G is vector or not.
23180 (font_at): Extern it.
23181
23182 * font.c: Include window.h.
23183 (font_lispy_object): New function.
23184 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
23185 end of valid glyph.
23186 (font_close_object): Fix getting (struct font *).
23187 (font_at): New function.
23188 (Ffont_get): If FONT is a font-object, get entity from it.
23189 (Ffont_make_gstring): Initialize elements of glyphs with nil.
bba3e508
SM
23190 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX.
23191 Fix range check.
aac0c6e3
MR
23192 (Ffont_at): New function.
23193 (syms_of_font): Defsubr Sfont_at.
23194
23195 * xdisp.c (it_props): Move the entry for Qauto_composed to just
23196 before the entry for Qcomposition.
23197 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
23198 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
23199 the font in gstring.
23200 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
23201 LGLYPH_FORM (g) to detect the end of valid glyph.
23202 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
23203 we are composing with gstring.
23204
23205 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
23206 Check if adjustment is vector or not.
23207
23208 * Makefile.in (font.o): Make it depends on window.h.
23209
232102008-02-01 Kenichi Handa <handa@m17n.org>
23211
23212 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
23213 adjustment is vector or not.
23214
232152008-02-01 Miles Bader <miles@gnu.org>
23216
23217 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
23218
232192008-02-01 Kenichi Handa <handa@m17n.org>
23220
23221 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
bba3e508 23222 (LGLYPH_SET_WIDTH): Adjust for the change of LGLYPH format.
aac0c6e3
MR
23223 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
23224
23225 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
23226 (DEVICE_DELTA): Fix typo.
23227 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
23228 LGLYPH format.
23229
23230 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
23231 the change of LGLYPH format.
23232
232332008-02-01 Kenichi Handa <handa@m17n.org>
23234
23235 * ftfont.c (ftfont_list): Fix typo.
23236 (ftfont_build_basic_charsets): Don't include letters with diacritics.
23237
232382008-02-01 Jan Djärv <jan.h.d@swipnet.se>
23239
23240 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
23241
23242 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
23243 xftface_info is non-NULL.
23244
232452008-02-01 Jan Djärv <jan.h.d@swipnet.se>
23246
23247 * ftfont.c (ftfont_list): Move misplaced #endif.
23248
232492008-02-01 Kenichi Handa <handa@m17n.org>
23250
23251 * ftfont.c (ftfont_list): Pay attention to the case that
23252 FC_CAPABILITY is not defined.
23253
232542008-02-01 Kenichi Handa <handa@m17n.org>
23255
23256 * xftfont.c (xftfont_open): Set charset related members to -1.
23257
23258 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
23259 QCname.
23260 (ftfont_open): Set charset related members to -1.
23261
23262 * fontset.c (Votf_script_alist): New variable.
23263 (syms_of_fontset): Initialize it.
23264 (fontset_font): Delete unused variable.
23265
23266 * fontset.h (Votf_script_alist): Extern it.
23267
23268 * font.c (font_find_for_lface): Optimize code.
23269
23270 * font.h (font_close_object, font_merge_old_spec): Extern them.
23271
232722008-02-01 Kenichi Handa <handa@m17n.org>
23273
23274 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
23275 (syms_of_font): Initialize them.
23276 (font_pixel_size): Allow float value in dpi.
23277 (font_prop_validate_type): Delete.
23278 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
23279 Change caller.
23280 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
23281 (font_prop_validate_extra): Delete.
23282 (font_prop_validate_spacing): New function.
23283 (font_property_table): Add elements for all known properties.
bba3e508
SM
23284 (get_font_prop_index): Rename from check_font_prop_name.
23285 New argument FROM. Change caller.
aac0c6e3
MR
23286 (font_prop_validate): Validate all known properties.
23287 (font_put_extra): Delete argument force. Change caller.
23288 (font_expand_wildcards): Make it static. Fix the way of shrinking
23289 the possible range.
23290 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
23291 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
23292 Change caller.
23293 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
23294 (font_parse_fcname): Delete argument merge. Fix parsing of point
23295 size. Don't validate properties values here. Change caller.
23296 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
23297 (font_open_by_name): Delete unused variable.
23298 (Ffont_spec): Likewise. Validate property values.
23299 (Ffont_match_p): New function.
23300
23301 * font.h (QCscalable): Extern it.
23302 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
23303
23304 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
23305
23306 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
23307 (xfont_list_pattern): New function.
23308 (xfont_list): Use xfont_list_pattern.
23309
233102008-02-01 Kenichi Handa <handa@m17n.org>
23311
23312 * font.h (Flist_fonts): EXFUN it.
23313
233142008-02-01 Jason Rumney <jasonr@gnu.org>
23315
23316 * w32term.c (w32_initialize): Add back smoothing_type and
23317 smoothing_enabled definitions.
23318
233192008-02-01 Kenichi Handa <handa@m17n.org>
23320
23321 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
23322 s->face->font on determining underline position.
23323
233242008-02-01 Kenichi Handa <handa@m17n.org>
23325
23326 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
23327 (font_has_char): Accept font-object too.
23328 (font_find_for_lface): Try at first with a size specified in face.
23329
233302008-02-01 Kenichi Handa <handa@m17n.org>
23331
23332 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
23333 font_open_by_name.
23334
233352008-02-01 Kenichi Handa <handa@m17n.org>
23336
23337 * font.h (QCspacing, QCdpi): Extern them.
23338 (enum font_spacing): New enum.
23339 (FONT_PIXEL_SIZE_QUANTUM): New macro.
23340
23341 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
23342 (QCspacing, QCdpi): New variables.
23343 (syms_of_font): Initialize them.
23344 (font_pixel_size): New function.
23345 (font_put_extra): New function.
23346 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
23347 in FONT_EXTRA.
23348 (font_parse_fcname): Handle enumerated values (e.g. bold).
23349 Fix handling font size. Add QCname property that contains only
23350 unknown properties.
23351 (font_score): Change argument. Change caller. Pay attention to
23352 FONT_PIXEL_SIZE_QUANTUM.
23353 (font_sort_entites, font_list_entities, font_find_for_lface)
23354 (font_open_for_lface, font_open_by_name): Fix handling of font size.
23355 (Ffont_spec): Add QCname property that contains only unknown properties.
23356
bba3e508
SM
23357 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq.
23358 Don't include weight in listing pattern, instead check weight of each
aac0c6e3
MR
23359 listed font. Don't include scalable in pattern. Pay attention to
23360 FONT_PIXEL_SIZE_QUANTUM.
23361
233622008-02-01 Kenichi Handa <handa@m17n.org>
23363
23364 * font.c (font_parse_fcname): Fix parsing of point-size.
23365 (font_unparse_fcname): Produce symbolic names for style properties.
23366 (font_list_entities): Handle float size correctly.
23367 (font_open_by_name): Prefer `normal' property values if the name
23368 doesn't specify them.
23369
23370 * fontset.c (Finternal_char_font): Use font_get_name, not
23371 Ffont_xlfd_name.
23372
23373 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
23374 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
23375 pattern. Don't force scalable.
23376
23377 * xftfont.c (xftfont_open): For generating a name, start from
23378 96-byte buffer.
23379
233802008-02-01 Jan Djärv <jan.h.d@swipnet.se>
23381
23382 * frame.h (x_new_fontset2): Fix prototype.
23383
233842008-02-01 Kenichi Handa <handa@m17n.org>
23385
23386 * font.h (struct font_driver): Delete member parse_name.
23387 (font_match_p, font_get_spec, font_parse_fcname)
23388 (font_unparse_fcname): Extern them.
23389 (font_get_name): Adjust prototype.
23390
23391 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
23392 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
bba3e508
SM
23393 (font_expand_wildcards): Fix handling ENCODING field.
23394 Avoid unnecessary checks for weight, slant, and swidth.
aac0c6e3
MR
23395 (font_parse_fcname): New function.
23396 (font_unparse_fcname): New function.
23397 (font_parse_name): New function.
23398 (font_match_p): New function.
23399 (font_get_name): Change return value to Lisp string.
23400 (font_get_spec): New function.
23401 (Qunspecified, Qignore_defface): Don't extern them.
23402 (font_find_for_lface): Assume that LFACE is fully specified.
23403 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
23404 object, use it for FACE.
23405 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
23406 driver->parse_name.
23407 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
23408
23409 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
23410 prototype.
23411
23412 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
23413 argument F. Don't call Fnew_fontset. Instead, directly call
23414 make_fontset.
23415
23416 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
23417
23418 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
23419 of x_new_fontset2.
23420
23421 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
23422 (Qsans__serif): New variables.
23423 (ftfont_generic_family_list): New variable.
23424 (syms_of_ftfont): Initialize the above variables.
23425 (ftfont_pattern_entity): Delete argument NAME.
23426 (ftfont_list_generic_family): New function.
23427 (ftfont_parse_name): Delete this function.
23428 (ftfont_list): Try generic family only when FcFontList found no font.
23429 (ftfont_list_family): Fix args to FcObjectSetBuild.
23430
23431 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
23432 object in attrs[LFACE_FONT_INDEX].
23433 (set_lface_from_font_name): Cancel all changes for font-backend.
23434 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
23435 function.
23436 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
23437 font object in QCfont attribute.
23438 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
23439 (realize_default_face) [USE_FONT_BACKEND]: Call
23440 set_lface_from_font_and_fontset.
23441
23442 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
23443 "fixed", and signal error here if no suitable font was found.
23444
23445 * xfont.c (xfont_parse_name): Delete this function.
23446
23447 * xftfont.c (xftfont_open): Change coding style of error
23448 handling. Generate fontconfig's fontname pattern.
23449
23450 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
23451 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
23452
23453 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
23454 Both args FONTSET and FONT_OBJECT must be existing ones.
23455
234562008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23457
23458 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
23459
234602008-02-01 Kenichi Handa <handa@m17n.org>
23461
23462 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
23463
23464 * font.h (struct font): Fix typo.
23465
23466 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
23467 XLFD_XXX_INDEX.
23468 (enum xlfd_field_mask): New enum.
ef1b0ba7 23469 (intern_font_field): Change argument. Change caller. If digits
aac0c6e3
MR
23470 are followed by non-digits, return a symbol.
23471 (font_expand_wildcards): New function.
23472 (font_parse_xlfd): Fix wildcard handling.
23473 (Ffont_spec): If :name is specified, reflect the info in the other
23474 properties.
23475
23476 * ftfont.c (ftfont_pattern_entity): Fix typo.
23477 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
23478 locale.
23479
234802008-02-01 Kenichi Handa <handa@m17n.org>
23481
23482 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
23483
23484 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
23485 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
23486 registry doesn't specify encoding part.
23487 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
23488 (font_open_by_name): At first try parsing the name.
23489 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
23490 as Lisp symbols.
23491
23492 * fontset.c (reorder_font_vector): Pay attention to the case that
23493 the 3rd element of font_def is nil.
23494 (fontset_font): For the default fontset, append one more fontset
23495 elements for a script-based font specification. Don't add script
23496 attribute on finding a font.
23497 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
23498 font name.
23499 (fontset_ascii_font): If a font can't be opened, return nil.
23500
23501 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
23502 (ftfont_pattern_entity): New function.
23503 (ftfont_get_cache): Assume that freetype_font_cache is already
23504 initialized.
23505 (ftfont_list): Handle the case that a file is specified in font
23506 name. Use ftfont_pattern_entity to generate entities.
23507 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
23508 (syms_of_ftfont): Initialize freetype_font_cache.
23509
23510 * xftfont.c (xftfont_open): Make the font name fontconfig's
23511 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
23512 (xftfont_close): Free font->font.name if not NULL.
23513
23514 * xfont.c (xfont_list): If script is specified for a font, return
23515 null_vector.
23516 (xfont_list_family): Declare argument type.
23517
23518 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
23519 name, set LFACE_FONT (lface) to nil.
23520
23521 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
23522 return Qnil.
23523
235242008-02-01 Kenichi Handa <handa@m17n.org>
23525
23526 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
23527 (standard_args): Add "-enable-font-backend".
23528
235292008-02-01 Kenichi Handa <handa@m17n.org>
23530
23531 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
23532 (struct xftdraw_list, xftdraw_list): Delete them.
23533 (register_xftdraw, check_xftdraw): Delete them.
23534 (xftfont_prepare_face): Don't call register_xftdraw.
23535 (xftfont_done_face): Don't call check_xftdraw.
23536 (xftfont_draw): Get background color only when with_background is
23537 nonzero.
23538
23539 * xfont.c (xfont_encode_char): Fix calculation of char2b.
23540
235412008-02-01 Kenichi Handa <handa@m17n.org>
23542
23543 These changes are for the new font handling codes.
23544
23545 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
23546 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
23547 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
23548 (FONTSRC, FONTOBJ): New variables.
23549 (obj): Add $(FONTOBJ).
23550 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
23551 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
23552 @LIBOTF_LIBS@.
23553 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
23554 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
23555
23556 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
23557
23558 * character.h (Vscript_representative_chars): Extern it.
23559
23560 * character.c (Vscript_representative_chars): New variable.
23561 (syms_of_character): Declare it as a Lisp variable.
23562
23563 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
23564 enable_font_backend is nonzero, accept the composition method
23565 COMPOSITION_WITH_GLYPH_STRING.
23566
23567 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
23568 enumeration COMPOSITION_WITH_GLYPH_STRING.
23569
23570 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
23571 members clip_x, clip_y, clip_width, and clip_height.
23572 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
23573
23574 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
23575 --enable-font-backend. Call syms_of_font.
23576
23577 * fns.c (assoc_no_quit): New function.
23578
23579 * fontset.h (FONT_INFO_FROM_FACE): New macro.
23580 (face_for_font, new_fontset_from_font)
23581 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
23582
23583 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
23584 (fontset_font, fontset_ascii, face_for_char)
23585 (make_fontset_for_ascii_face, Ffont_info)
23586 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
23587 is nonzero, use font-backend mechanism.
23588 (find_font_encoding): Make it non-static.
23589 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
23590 New functions.
23591
23592 * frame.h (struct frame): New members resx and resy.
23593 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
23594 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
23595
23596 * frame.c [USE_FONT_BACKEND]: Include "font.h".
23597 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
23598
23599 * lisp.h (assoc_no_quit): Extern it.
23600
23601 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
23602 Through out the file, use FONT_INFO_FROM_FACE instead of
23603 FONT_INFO_FROM_ID, use get_per_char_metric instead of
23604 rif->per_char_metric.
23605 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
23606 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
23607 (get_glyph_face_and_encoding, fill_composite_glyph_string)
23608 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
23609 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
23610 nonzero, use font-backend mechanism.
23611 (get_per_char_metric): New function.
23612
23613 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
23614 (set_lface_from_font_name)
23615 (set_font_frame_param, free_realized_face)
23616 (prepare_face_for_display, clear_face_gcs)
23617 (Finternal_set_font_selection_order, realize_x_face)
23618 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
23619 font-backend mechanism.
23620 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
23621 (load_face_font) [USE_FONT_BACKEND]: Abort.
23622 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
23623 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
23624
23625 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
23626 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
23627 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
bba3e508
SM
23628 nonzero, register all available font drivers.
23629 Call x_default_font_parameter for deciding a font.
aac0c6e3
MR
23630 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
23631
23632 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
23633 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
23634 (x_set_glyph_string_clipping_exactly)
23635 (x_compute_glyph_string_overhangs)
23636 (x_draw_glyph_string_foreground)
23637 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
23638 (x_free_frame_resources) [USE_FONT_BACKEND]: If
23639 enable_font_backend is nonzero, use font-backend mechanism.
23640 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
23641
236422008-02-01 Kenichi Handa <handa@m17n.org>
23643
23644 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
23645 system_eol_type.
23646 (syms_of_coding): Initialize system_eol_type.
23647
23648 * process.c (Fset_process_coding_system): Inherit system's eol
23649 format if necessary.
23650
236512008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23652
23653 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
23654
236552008-02-01 Kenichi Handa <handa@m17n.org>
23656
23657 * coding.c (decode_eol): Pay attention to buffer relocation in
23658 del_range_2.
23659 (decode_coding): Call decode_eol before restoring undo_list.
23660
236612008-02-01 Kenichi Handa <handa@m17n.org>
23662
23663 * charset.c (Fdefine_charset_internal): Fix setting of
23664 emacs_mule_bytes.
23665
236662008-02-01 Kenichi Handa <handa@m17n.org>
23667
23668 * keyboard.c (read_char): Check if C is a character or not before
23669 looking up Vkeyboard_translate_table.
23670
236712008-02-01 Kenichi Handa <handa@m17n.org>
23672
bba3e508
SM
23673 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION):
23674 Fix condition to terminate the loop.
aac0c6e3
MR
23675
236762008-02-01 Kenichi Handa <handa@m17n.org>
23677
23678 * coding.c (produce_composition): Compare charbuf[i] instead of
23679 args[i] against 0.
23680 (Fterminal_coding_system): Use EQ to compare Lisp objects.
23681
236822008-02-01 Kenichi Handa <handa@m17n.org>
23683
23684 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
23685 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
23686 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
23687 detect_coding.
23688 (emacs_mule_char): Handle old style (Emacs 20) component character
23689 of a composition.
23690 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
23691 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
23692 composition rule.
23693 (decode_coding_emacs_mule): Handle invalid bytes correctly.
23694
236952008-02-01 Kenichi Handa <handa@m17n.org>
23696
23697 * coding.c (encode_coding_ccl): Allocate destination dynamically
23698 when necessary.
23699
237002008-02-01 Kenichi Handa <handa@m17n.org>
23701
23702 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
23703 the loop. When quitted, show a proper error message.
23704
237052008-02-01 Kenichi Handa <handa@m17n.org>
23706
bba3e508
SM
23707 * xterm.c (x_set_glyph_string_clipping_exactly):
23708 Set src->clip_head and src->clip_tail temporarily instead of src->hl.
aac0c6e3
MR
23709
23710 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
23711 character sequence.
23712 (Fccl_execute_on_string): Use ASET, not XSET.
23713
237142008-02-01 Kenichi Handa <handa@m17n.org>
23715
23716 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
23717
237182008-02-01 Kenichi Handa <handa@m17n.org>
23719
23720 * coding.c (decode_coding): Fix the condition of terminating the
23721 decoding loop.
23722
237232008-02-01 Kenichi Handa <handa@m17n.org>
23724
23725 * data.c (Faset): On setting a character bigger than 255 in a
23726 unibyte string, signal an error instead of make the string multibyte.
23727
237282008-02-01 Kenichi Handa <handa@m17n.org>
23729
23730 * charset.c (map_charset_chars): Fix for ascii-compatible charset
23731 made by a mapping table.
23732
237332008-02-01 Kenichi Handa <handa@m17n.org>
23734
23735 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
23736 not.
23737 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
23738 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
23739
bba3e508
SM
23740 * xterm.c (x_draw_composite_glyph_string_foreground):
23741 Check s->face is NULL or not.
aac0c6e3
MR
23742
237432008-02-01 Kenichi Handa <handa@m17n.org>
23744
23745 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
23746 (x_draw_glyph_string): Fix drawing of right_overhang and
23747 left_overhang around/on cursor.
23748
23749 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
23750
237512008-02-01 Kenichi Handa <handa@m17n.org>
23752
23753 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
23754
237552008-02-01 Kenichi Handa <handa@m17n.org>
23756
23757 * coding.c (Fdefine_coding_system_internal)
23758 (Fdefine_coding_system_alias): Avoid a duplicated element in
23759 Vcoding_system_alist.
23760
237612008-02-01 Kenichi Handa <handa@m17n.org>
23762
23763 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
23764
23765 * coding.c (Qcoding_system_define_form): New variable.
23766 (syms_of_coding): Intern and staticpro it.
23767 (Fcoding_system_p): Check Qcoding_system_define_form.
23768 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
23769
23770 * coding.h (CODING_SYSTEM_P): If ID is not available, call
23771 Fcoding_system_p.
23772 (CHECK_CODING_SYSTEM): If ID is not available, call
23773 Fcheck_coding_system.
23774 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
23775 Try also Fcheck_coding_system.
23776
237772008-02-01 Kenichi Handa <handa@m17n.org>
23778
23779 * coding.c (code_conversion_restore): GCPRO arg.
23780
237812008-02-01 Kenichi Handa <handa@m17n.org>
23782
23783 * character.c (lisp_string_width): Check multibyteness of STRING.
23784
237852008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23786
23787 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
23788 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
23789 (decode_mac_font_name): Use decode_coding_c_string instead of
23790 decode_coding.
bba3e508
SM
23791 (x_load_font): Initialize fontp->fontset to -1.
23792 Set fontp->encoding_type.
aac0c6e3
MR
23793
237942008-02-01 Kenichi Handa <handa@m17n.org>
23795
23796 * search.c (search_buffer): Give up BM search on case-fold-search
23797 if one of a target character has a case-equivalence of different
3b59c351 23798 byte length even if that target character is an ASCII.
aac0c6e3
MR
23799 (simple_search): Fix calculation of byte length of matched text.
23800 (boyer_moore): Fix handling of case-equivalent multibyte characters.
23801
238022008-02-01 Kenichi Handa <handa@m17n.org>
23803
23804 * coding.c (decode_coding): Fix handling of invalid bytes.
23805
238062008-02-01 Kenichi Handa <handa@m17n.org>
23807
23808 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
23809 Unicode characters.
23810
238112008-02-01 Kenichi Handa <handa@m17n.org>
23812
23813 * coding.c (encode_coding_object): If a pre-write-conversion
23814 function makes a new buffer, kill it.
23815
238162008-02-01 Kenichi Handa <handa@m17n.org>
23817
23818 * coding.c (QCascii_compatible_p): New variable.
23819 (syms_of_coding): Initialize it.
23820 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
23821 calling string_char.
23822 (record_conversion_result): Add `default:' case.
23823 (coding_charset_list): Delete unused variable `coding_type'.
23824 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
23825 property in the plist of the coding system.
23826 (Fcoding_system_put): Check QCascii_compatible_p.
23827
238282008-02-01 Miles Bader <miles@gnu.org>
23829
23830 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
23831 removed calculation of frame `f', as it's now used.
23832
238332008-02-01 Kenichi Handa <handa@m17n.org>
23834
23835 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
23836 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
23837 (UNIDATA): New variable.
23838 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
bba3e508
SM
23839 (bootstrap-emacs${EXEEXT}): Depends on charprop.el.
23840 Run $(RUN_TEMACS) unconditionally.
aac0c6e3
MR
23841
238422008-02-01 Kenichi Handa <handa@m17n.org>
23843
23844 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
23845 (admindir): New variable.
23846 ($(lispsource)international/charprop.el): New target.
23847
238482008-02-01 Miles Bader <miles@gnu.org>
23849
23850 * character.c (chars-in-region): Remove obsolete function.
23851 (syms_of_character): Remove its initialization.
23852
238532008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
23854
23855 * w32select.c (validate_coding_system)
23856 (setup_windows_coding_system): New functions.
bba3e508
SM
23857 (convert_to_handle_as_coded, Fw32_get_clipboard_data):
23858 Use setup_windows_coding_system.
23859 (setup_config, Fw32_get_clipboard_data):
23860 Use validate_coding_system.
aac0c6e3
MR
23861 (Fx_selection_exists): Move call to setup_config to a place
23862 where signals are allowed.
23863
23864 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
23865 (Fcheck_coding_system): Add declarations.
23866
238672008-02-01 Kenichi Handa <handa@m17n.org>
23868
23869 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
23870
238712008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23872
23873 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
23874 string as the second argument for x_new_fontset.
23875
238762008-02-01 Kenichi Handa <handa@m17n.org>
23877
23878 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
23879 (encode_coding_object): Use safe_call instead of call2.
23880
238812008-02-01 Kenichi Handa <handa@m17n.org>
23882
23883 * fontset.c (Fset_fontset_font): Check family element of a given vector.
23884
23885 * Makefile.in (lisp): Include charprop.el.
23886
238872008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23888
23889 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
23890 Not sure if it's unnecessary.
23891
238922008-02-01 Steven Tamm <steventamm@mac.com>
23893
23894 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
23895 some possibly unnecessary fontset checking code that crashed
23896 when creating a new frame.
23897
238982008-02-01 Kenichi Handa <handa@m17n.org>
23899
23900 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
23901 lookup_face.
23902
23903 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
23904
23905 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
23906
239072008-02-01 Kenichi Handa <handa@m17n.org>
23908
23909 * coding.c: Cancel the change done in HEAD on 2008-02-01.
23910 (coding_charset_list): New function.
23911
23912 * coding.h (coding_charset_list): Extern it.
23913
239142008-02-01 Kenichi Handa <handa@m17n.org>
23915
23916 * fontset.c (Fset_fontset_font): Call find_font_encoding with
23917 concatenation of family and registry.
23918
239192008-02-01 Kenichi Handa <handa@m17n.org>
23920
23921 * character.h (BYTE8_STRING): Fix typo.
23922
23923 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
23924 string to multibyte (sync to HEAD).
23925
23926 * casefiddle.c (casify_region): Handle changes in byte-length
23927 using replace_range_2 (sync to HEAD).
23928
239292008-02-01 Andreas Schwab <schwab@suse.de>
23930
23931 * chartab.c (map_char_table): GCPRO table and arg.
23932
239332008-02-01 Kenichi Handa <handa@m17n.org>
23934
23935 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
23936 already at limit.
23937
239382008-02-01 Kenichi Handa <handa@m17n.org>
23939
23940 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
23941 instead of fast_c_string_match_ignore_case.
bba3e508
SM
23942 (find_font_encoding): Change argument to Lisp_Object.
23943 Use fast_string_match_ignore_case instead of
aac0c6e3
MR
23944 fast_c_string_match_ignore_case. Change caller.
23945
239462008-02-01 Kenichi Handa <handa@m17n.org>
23947
23948 * xdisp.c (get_next_display_element): In unibyte case, decide to
23949 display in octal form by checking a character by
23950 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
23951
23952 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
23953
23954 * character.c (unibyte_has_multibyte_table): New variable.
23955
23956 * character.h (unibyte_has_multibyte_table): Extern it.
23957 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
23958
239592008-02-01 Kenichi Handa <handa@m17n.org>
23960
23961 * coding.c (encode_coding_iso_2022): Fix handling of charset
23962 annotation.
23963
239642008-02-01 Kenichi Handa <handa@m17n.org>
23965
23966 * coding.c (setup_coding_system): If coding_system is nil, use
23967 Qundecided.
23968 (Fterminal_coding_system): Return nil if terminal coding system is
23969 `undecided'.
bba3e508
SM
23970 (syms_of_coding): Define coding-system `undecided' here.
23971 Setup terminal_coding as `undecided'.
aac0c6e3
MR
23972
239732008-02-01 Kenichi Handa <handa@m17n.org>
23974
bba3e508
SM
23975 * xdisp.c (message_dolog, set_message_1):
23976 Call unibyte_char_to_multibyte with arg type int.
aac0c6e3
MR
23977
23978 * lread.c (read1): Fix reading of a char-table.
23979
23980 * print.c (print_object): Include sub char-table in circularities
23981 detection.
23982
239832008-02-01 Kenichi Handa <handa@m17n.org>
23984
23985 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
23986 Append the found sequences in car of ARGS instead of prepending.
23987
239882008-02-01 Kenichi Handa <handa@m17n.org>
23989
23990 * fileio.c (report_file_error): Make a unibyte string from
23991 strerror (errorno).
23992 (Fsubstitute_in_file_name): Fix the arg to
23993 unibyte_char_to_multibyte. It is evaluated twice.
23994
239952008-02-01 Kenichi Handa <handa@m17n.org>
23996
23997 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
23998
239992008-02-01 Kenichi Handa <handa@m17n.org>
24000
24001 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
24002 BOM is not found.
24003 (detect_coding, detect_coding_system): Optimization for ISO-2022
24004 when no 8-bit data is found.
24005
240062008-02-01 Jason Rumney <jasonr@gnu.org>
24007
24008 * w32fns.c (x_to_w32_font): Update to use new coding struct.
24009
240102008-02-01 Kenichi Handa <handa@m17n.org>
24011
24012 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
24013 CHARS.
24014
240152008-02-01 Steven Tamm <steventamm@mac.com>
24016
24017 * macterm.c (mac_encode_char): Add charset argument and update
24018 to use encoding_type.
24019 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
24020 switch to pure fontset.
24021 (decode_mac_font_name): Temporarily remove decoding.
24022 (x_font_name_to_mac_font_name): Temporarily remove encoding.
24023 (x_load_font): Temporarily remove encoding.
24024
240252008-02-01 Kenichi Handa <handa@m17n.org>
24026
24027 * xfaces.c (Fface_font): If frame is not on a window system,
24028 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
24029 refer to face->font.
24030 (split_font_name_into_vector, build_font_name_from_vector)
24031 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
24032 when HAVE_WINDOW_SYSTEM is defined.
24033
240342008-02-01 Kenichi Handa <handa@m17n.org>
24035
24036 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
24037 (x_produce_glyphs): Fix setting of members of cmp in case
24038 cmp->glyph_len is zero.
24039
24040 * fontset.c (Fset_fontset_font): Fix docstring.
24041 (Ffontset_info): Make it backward compatible. New arg ALL.
24042
240432008-02-01 Kim F. Storm <storm@cua.dk>
24044
24045 * process.c (read_process_output): Grow decoding_buf when needed;
24046 this could cause a crash in allocate_string and compact_small_strings.
24047
240482008-02-01 Kenichi Handa <handa@m17n.org>
24049
24050 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
24051
240522008-02-01 Kenichi Handa <handa@m17n.org>
24053
24054 * coding.c (setup_coding_system): Set coding->common_flags
24055 correctly for raw-text.
24056 (consume_chars): On encoding unibyte text by raw-text, don't check
24057 multibyte form.
24058 (encode_coding): On encoding by raw-text, never use translation tables.
24059
24060 * fileio.c (e_write): Short cut for the case of no encoding.
24061
240622008-02-01 Kenichi Handa <handa@m17n.org>
24063
24064 * coding.c (detect_coding, detect_coding_system): Delete unused
24065 variables.
24066
240672008-02-01 Kenichi Handa <handa@m17n.org>
24068
24069 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
24070 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
24071
240722008-02-01 Kenichi Handa <handa@m17n.org>
24073
bba3e508
SM
24074 * coding.c (Ffind_coding_systems_region_internal):
24075 Include raw-text and no-conversion in the result.
aac0c6e3
MR
24076
240772008-02-01 Kenichi Handa <handa@m17n.org>
24078
24079 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
24080 (load_font_get_repertory): Delete unnecessary check of ENCODING of
24081 FONT_DEF.
24082 (font_def_arg, add_arg, from_arg, to_arg): New args.
24083 (set_fontset_font): Change argument.
24084 (Fset_fontset_font): Fix for the case that TARGET is a script
24085 name and charset name.
24086 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
24087
240882008-02-01 Kenichi Handa <handa@m17n.org>
24089
24090 * fontset.c (fontset_font): Rename from fontset_face. Change return
24091 value.
24092 (face_suitable_for_char_p, face_for_char): Adjust for the change
24093 of fontset_font.
24094 (make_fontset_for_ascii_face): Fix setting of the fontset element
24095 for ASCII.
24096 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
24097 to get a font name.
24098 (Ffontset_info): Adjust for the change of fontset_font.
24099
24100 * coding.c (emacs_mule_char): Check invalid code more rigidly.
24101
24102 * character.h (LEADING_CODE_LATIN_1_MIN)
24103 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
24104
241052008-02-01 Kenichi Handa <handa@m17n.org>
24106
24107 * editfns.c (check_translation): New function.
24108 (Ftranslate_region_internal): Handle M:N mapping.
24109
241102008-02-01 Kenichi Handa <handa@m17n.org>
24111
24112 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
24113
241142008-02-01 Kenichi Handa <handa@m17n.org>
24115
24116 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
24117 goto invalid_code.
24118 (decode_coding_iso_2022): Fix handling of invalid designation.
24119
24120 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
24121 after calling code_conversion_save.
24122
241232008-02-01 Kenichi Handa <handa@m17n.org>
24124
24125 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
24126
24127 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
24128
24129 * fontset.c: Include "intervals.h".
24130 (fontset_face): Fix comparing of Lisp_Objects.
bba3e508
SM
24131 (free_face_fontset, new_fontset_from_font_name):
24132 Fix Lisp_Object/int mixup.
aac0c6e3
MR
24133
24134 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
24135
24136 * coding.c: Add many prototypes for static functions.
24137 (get_translation_table): Allow max_lookup to be NULL.
24138 (decode_coding, Ffind_coding_systems_region_internal)
bba3e508
SM
24139 (Funencodable_char_position, Fcheck_coding_systems_region):
24140 Call get_translation_table with max_lookup NULL.
aac0c6e3
MR
24141
241422008-02-01 Kenichi Handa <handa@m17n.org>
24143
24144 * coding.c (get_translation_table): Declare it as Lisp_Object.
24145 (LOOKUP_TRANSLATION_TABLE): New macro.
24146 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
24147 instead of CHAR_TABLE_REF.
24148
241492008-02-01 Kenichi Handa <handa@m17n.org>
24150
24151 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
24152 annotation data format.
24153 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
24154 Change arguments FROM and TO to single argument NCHARS. Change caller.
24155 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
24156 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
24157 (decode_coding_ccl, decode_coding_charset): Pay attention to
24158 coding->charbuf_used.
24159 (get_translation): New function.
24160 (produce_chars): New arguments translation_table and last_block.
24161 Translate characters here. Return number of carryover chars.
24162 Change caller.
24163 (produce_composition): New argument pos. Change caller.
24164 Adjust for the change of annotation data format.
24165 (produce_charset, produce_annotation): Likewise.
24166 (decode_coding, encode_coding): Don't call translate_chars.
24167 (consume_chars): New arg translation_table. Change caller.
24168 (translate_chars): Delete.
24169 (syms_of_coding): Make translation-table's number of extra slots 2.
24170
241712008-02-01 Kenichi Handa <handa@m17n.org>
24172
24173 * search.c (simple_search): Fix setting this_pos_byte in backward
24174 search.
24175
24176 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
24177 byte sequence.
24178 (detect_coding_ccl): Fix setting of the variable valids.
24179
241802008-02-01 Kenichi Handa <handa@m17n.org>
24181
24182 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
24183
24184 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
24185
24186 * editfns.c (Ftranslate_region_internal): Rename from
24187 Ftranslate_region. Accept a char-table in TABLE.
24188 (syms_of_editfns): Defsubr Stranslate_region_internal.
24189
24190 * xfaces.c (set_lface_from_font_name): If a font is specified for
24191 a frame, generate a fontset from the font.
24192 (build_scalable_font_name): If the scalable font is requested for
24193 a specific size, don't change that size.
24194 (try_font_list): Try a scalable font also in the case that a
24195 pattern string is specified.
24196
241972008-02-01 Kenichi Handa <handa@m17n.org>
24198
24199 * xfaces.c (Fface_font): New optional arg CHARACTER.
24200
242012008-02-01 Kenichi Handa <handa@m17n.org>
24202
24203 * charset.h (CHARSET_OFFSET): New macro.
24204
242052008-02-01 Kenichi Handa <handa@m17n.org>
24206
24207 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
24208
24209 * fontset.c (fontset_face): Handle the case that repertory is a
24210 char-table.
24211 (find_font_encoding): Return nil for unknown encoding.
24212 (Fset_fontset_font): Ignore a font of unknown encoding.
24213
242142008-02-01 Kenichi Handa <handa@m17n.org>
24215
24216 * keymap.c (describe_vector): Handle default value of a char table.
24217
24218 * fontset.c (fontset_face): Handle fallback fonts correctly.
24219 (Ffontset_info): Return infomation about fallback fonts.
24220
242212008-02-01 Kenichi Handa <handa@m17n.org>
24222
24223 * fontset.c (FONTSET_DEFAULT): New macro.
24224 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
24225 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
24226 the case that it is nil.
24227 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
24228 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
24229
24230 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
24231 subset or superset.
24232
242332008-02-01 Kenichi Handa <handa@m17n.org>
24234
24235 * emacs.c (main): Call init_charset after syms_of_XXX.
24236
24237 * charset.c (Vcharset_map_directory): Delete.
24238 (Vcharset_map_path): New variable.
24239 (load_charset_map_from_file): Use Vcharset_map_path instead.
24240 (init_charset): Initialize Vcharset_map_path.
24241 (syms_of_charset): Delete declaration of "charset-map-directory",
24242 add declaration of "charset-map-path".
24243
242442008-02-01 Kenichi Handa <handa@m17n.org>
24245
24246 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
24247 ASCII only string.
24248
24249 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
24250
24251 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
24252 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
24253
242542008-02-01 Kenichi Handa <handa@m17n.org>
24255
24256 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
24257
24258 * coding.c (QCmnemonic, QCdefalut_char)
24259 (QCdecode_translation_table, QCencode_translation_table)
24260 (QCpost_read_conversion, QCpre_write_conversion): New variables.
24261 (get_translation_table): Return a list of translation tables if
24262 necessary.
24263 (decode_coding): Call get_translation_table with ENCODEP 0.
24264 (char_encodable_p): If translation_table is non-nil, always call
24265 translate_char.
24266 (Fdefine_coding_system_internal): Accept list of translation
24267 tables as :encode-translation-table and :decode-translation-table.
24268 (Fcoding_system_put): New function.
bba3e508
SM
24269 (syms_of_coding): Declare new symbols.
24270 Defsubr Scoding_system_put.
aac0c6e3
MR
24271 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
24272 typically JISX0212.
24273
24274 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
24275 when the charset is superset type.
24276
24277 * character.c (translate_char): Accept list of translation tables.
24278
242792008-02-01 Kenichi Handa <handa@m17n.org>
24280
24281 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
24282 (CODING_ATTR_TRANS_TBL): New macro.
24283
24284 * coding.c (get_translation_table): New function.
24285 (translate_chars): Fix the bug of skipping annotation data.
24286 (decode_coding, encode_coding): Utilize get_translation_table.
24287 (char_encodable_p, Funencodable_char_position): Translate char if
24288 necessary.
24289 (Ffind_coding_systems_region_internal)
24290 (Fcheck_coding_systems_region): Setup translation table for encode
24291 in a coding system attribute vector in advance.
24292 (Fdefine_coding_system_internal): Allow a symbol as translation
24293 table. For shift-jis type coding system, allow 4th charset.
24294
242952008-02-01 Kenichi Handa <handa@m17n.org>
24296
24297 * coding.c (decode_coding_sjis): Check the first byte rigidly.
24298
24299 * xdisp.c (get_next_display_element): Pass -1 as POS to
24300 FACE_FOR_CHAR if displaying a C-string.
24301
243022008-02-01 Kenichi Handa <handa@m17n.org>
24303
24304 * composite.c (get_composition_id): Handle xoff and yoff in a
24305 composition rule.
24306
24307 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
24308 (struct composition): New member lbearing and rbearing.
24309
24310 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
24311 (x_get_glyph_overhangs): Handle a composition glyph.
24312 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
24313
24314 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
24315 composition glyph.
24316
243172008-02-01 Kenichi Handa <handa@m17n.org>
24318
24319 * print.c: Include charset.h.
24320 (Vprint_charset_text_property): New variable.
24321 (Qdefault): Extern it.
24322 (PRINT_STRING_NON_CHARSET_FOUND)
24323 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
24324 (print_check_string_result): New variable.
24325 (print_check_string_charset_prop): New function.
24326 (print_prune_charset_plist): New variable.
24327 (print_prune_string_charset): New function.
24328 (print_object): Call print_prune_string_charset if
24329 Vprint_charset_text_property is not t.
24330 (print_interval): Print nothing if interval->plist is nil.
24331 (syms_of_print): Declare Vprint_charset_text_property as a lisp
24332 variable. Init and staticpro print_prune_charset_plist.
24333
243342008-02-01 Kenichi Handa <handa@m17n.org>
24335
24336 * fontset.c (new_fontset_from_font_name): Use the specified font
24337 for all characters in the new fontset.
24338
24339 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
24340 OBJECT args.
24341
24342 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
24343 OBJECT args for composition too.
24344
24345 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
24346 OBJECT args.
24347
243482008-02-01 Kenichi Handa <handa@m17n.org>
24349
24350 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
24351
24352 * fontset.c (reorder_font_vector): Adjust for the change of
24353 FONT_DEF format.
24354 (fontset_face): New arg id. Change caller.
24355 (face_for_char): New args pos and object.
24356 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
24357 (fs_query_fontset): Check NAME by Fassoc too.
24358 (Fset_fontset_font): Allow non-XLFD font name.
24359 (Ffontset_info): Adjust for the change of FONT_DEF format.
24360
24361 * fontset.h (face_for_char): Adjust prototype.
24362
24363 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
24364 (append_space, extend_face_to_end_of_line)
24365 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
24366 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
24367
24368 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
24369 POS and OBJECT args.
24370
24371 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
24372 POS and OBJECT args.
24373
243742008-02-01 Jason Rumney <jasonr@gnu.org>
24375
24376 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
24377 of GlobalAlloc'ed memory.
24378
243792008-02-01 Kenichi Handa <handa@m17n.org>
24380
24381 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
24382
24383 * charset.h (charset_table_used): Delete extern.
24384
24385 * charset.c (charset_table_used): Make it static.
24386 (map_charset_chars): Fix args to c_function with.
24387
24388 * chartab.c (map_sub_char_table_for_charset): Fix args to
24389 c_function with.
24390
bba3e508
SM
24391 * coding.h (enum coding_result_code):
24392 Delete CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
aac0c6e3
MR
24393
24394 * coding.c (Qinsufficient_source, Qinconsistent_eol)
24395 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
24396 (Vlast_code_conversion_error): New variables.
24397 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
24398 (ONE_MORE_BYTE): Record error if any instead of signaling an
24399 error. If non-ASCII multibyte char is found, return the negative
24400 value of the code. All callers changed to check it.
24401 (ONE_MORE_BYTE_NO_CHECK): Likewise.
24402 (record_conversion_result): New function. Change all codes setting
24403 coding->result to call this function.
24404 (detect_coding_utf_8, decode_coding_utf_8)
24405 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
24406 Don't use the local variable incomplete.
24407 (emacs_mule_char): Change the second arg to `const'.
24408 (decode_coding): Fix of flushing out unprocessed data.
24409 (make_conversion_work_buffer): Fix making of a work buffer.
24410 (decode_coding_object): Return coding->dst_object.
24411
24412 * fontset.c (set_fontset_font): Fix args.
24413
24414 * lisp.h (CHARACTERBITS): Define as 22.
24415
24416 * process.c (send_process): Be sure to set coding->src_multibyte.
24417
24418 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
24419
244202008-02-01 Kenichi Handa <handa@m17n.org>
24421
24422 * xdisp.c (handle_auto_composed_prop): Give limit to
24423 Fnext_single_char_property_change.
24424
244252008-02-01 Kenichi Handa <handa@m17n.org>
24426
24427 * composite.c (syms_of_composite): Don't make the composition hash
24428 table weak.
24429
24430 * fontset.c (Fset_fontset_font): Fix docstring.
24431
24432 * lisp.h (detect_coding_system): Adjust prototype.
24433
24434 * fileio.c (kill_workbuf_unwind): Delete this function.
24435 (Finsert_file_contents): Adjust the call of detect_coding_system.
24436 Get conversion_buffer by code_conversion_save. Use the macro
24437 CODING_MAY_REQUIRE_DECODING. After decoding, update
24438 coding_system.
24439
24440 * coding.h (make_conversion_work_buffer): Delete extern.
24441 (code_conversion_save): Extern it.
24442
24443 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
24444 (CODING_GET_INFO): Delete argument eol_type. Change callers.
24445 (decode_coding_utf_8): Don't do eol converion.
24446 (detect_coding_utf_16): Check coding->src_chars, not
24447 coding->src_bytes. Add heuristics for those that have no signature.
24448 (decode_coding_emacs_mule, decode_coding_iso_2022)
24449 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
24450 Don't do eol converion.
24451 (adjust_coding_eol_type): Return a new coding system.
24452 (detect_coding): Don't detect eol. Fix for utf-16 detection.
24453 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
24454 each change.
24455 (decode_coding): Pay attention to undo_list. Do eol conversion for
24456 all types of coding-systems (if necessary).
24457 (Vcode_conversion_work_buf_list): Delete it.
24458 (Vcode_conversion_reused_workbuf): Rename from
24459 Vcode_conversion_reused_work_buf.
24460 (Vcode_conversion_workbuf_name): New variable.
24461 (reused_workbuf_in_use): New variable.
24462 (make_conversion_work_buffer): Delete the arg DEPTH.
24463 (code_conversion_restore): Change argument to cons.
24464 (code_conversion_save): Delete the argument BUFFER. Change callers.
24465 (detect_coding_system): New argument src_chars. Change callers.
24466 Fix for utf-16 detection.
24467 (init_coding_once): Don't use ISO_carriage_return.
24468 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
24469 reused_workbuf_in_use.
24470
244712008-02-01 Kenichi Handa <handa@m17n.org>
24472
24473 * keymap.c (store_in_keymap): Pay attention to the case that idx
24474 is a cons specifying a character range.
24475
244762008-02-01 Kenichi Handa <handa@m17n.org>
24477
24478 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
24479 HANDLED_RECOMPUTE_PROPS.
24480
24481 * coding.c (Fdefine_coding_system_internal): Fix checking of
24482 ascii compatibility.
24483
244842008-02-01 Kenichi Handa <handa@m17n.org>
24485
24486 * charset.c (find_charsets_in_text): Delete unused locale variable.
24487 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
24488
24489 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
24490 Resync charset_list to Vemacs_mule_charset_list.
24491
24492 * keymap.c (store_in_keymap): Pay attention to the case that idx
24493 is a cons specifying a character range.
24494
244952008-02-01 Kenichi Handa <handa@m17n.org>
24496
24497 * composite.c (update_compositions): Bind inhibit-read-only, etc
24498 to t before calling remove-list-of-text-properties.
24499
24500 * print.c (print_object): Always print ASCII chars as is.
24501
245022008-02-01 Kenichi Handa <handa@m17n.org>
24503
24504 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
24505
24506 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
24507 is a char table.
24508
245092008-02-01 Kenichi Handa <handa@m17n.org>
24510
24511 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
24512
245132008-02-01 Kenichi Handa <handa@m17n.org>
24514
24515 * xfaces.c (set_lface_from_font_name): Fix for the case that
24516 FONTNAME is not fontset name.
24517
245182008-02-01 Kenichi Handa <handa@m17n.org>
24519
24520 * fns.c (base64_encode_1): Fix previous change.
24521
245222008-02-01 Kenichi Handa <handa@m17n.org>
24523
24524 * fontset.c (set_fontset_font): New function.
24525 (Fset_fontset_font): If a font is specified for a charset, use
24526 map_charset_chars to store the font spec in a fontset.
24527
245282008-02-01 Kenichi Handa <handa@m17n.org>
24529
24530 * fontset.c (fontset_face): Create a fallback fontset on demand.
24531 (make_fontset): Don't create a fallback fontset here.
24532 (free_face_fontset): Free a fallback fontset (if any) too.
24533 (n_auto_fontsets): Delete this variable.
24534 (auto_fontset_alist): New variable.
24535 (new_fontset_from_font_name): Check auto_fontset_alist.
24536 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
24537 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
24538 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
24539 Defsubr Sfontset_list_all.
24540
245412008-02-01 Kenichi Handa <handa@m17n.org>
24542
24543 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
24544
245452008-02-01 Kenichi Handa <handa@m17n.org>
24546
24547 * fontset.c (Fnew_fontset): Check NAME more rigidly.
24548
245492008-02-01 Kenichi Handa <handa@m17n.org>
24550
24551 * editfns.c (Fgoto_char): Fix docstring.
24552
245532008-02-01 Kenichi Handa <handa@m17n.org>
24554
24555 * insdel.c (insert_from_gap): Adjust intervals correctly.
24556
245572008-02-01 Jason Rumney <jasonr@gnu.org>
24558
24559 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
24560 (pfnGetFontUnicodeRanges): New dynamically loaded function.
24561 (w32_initialize): Try to load it.
24562 (x_get_font_repertory): Use it if available.
24563 (w32_encode_char): Add shortcut for unicode output.
24564
24565 * w32fns.c (w32_load_system_font): Default charset to -1.
24566 (x_to_w32_charset): Match all fonts for unicode.
24567 (w32_to_x_charset): New parameter matching. Don't return partial
24568 or wildcard charsets.
24569 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
24570 (w32_codepage_for_font): Return CP_UNICODE for unicode.
24571 (w32_to_x_font): Match charset to real charset.
24572 (enum_font_cb2): Always list unicode versions.
24573
24574 * makefile.w32-in (temacs): Increase EMHEAP.
24575
245762008-02-01 Jason Rumney <jasonr@gnu.org>
24577
24578 * w32term.c (w32_encode_char): New charset parameter.
24579 font_info.encoding becomes encoding_type.
24580 (x_get_font_repertory): New function. Warning: stub only!
24581 (x_new_font): Return quickly if font already set.
24582 (x_new_fontset): fontsetname parameter is Lisp_Object.
24583 Use new fs_query_fontset. Try new_fontset_from_font_name.
24584 Use fontset_name for return value.
24585
24586 * w32term.h: Declare x_get_font_repertory.
24587
24588 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
24589 place of find_charset_in_text. Use encode_coding_object in place
24590 of encode_coding.
24591 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
24592 decode_coding.
24593
24594 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
24595 of x_new_fontset.
24596 (w32_load_system_font): Initialize charset as unicode.
24597 font_info.encoding becomes encoding_type.
24598 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
24599 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
24600 (syms_of_w32fns): Set get_font_repertory_func.
24601
24602 * w32console.c: Include character.h. Use terminal_encode_buffer
24603 from term.c.
bba3e508
SM
24604 (write_glyphs): Use new version of encode_terminal_code.
24605 Use encode_coding_object in place of encode_coding.
aac0c6e3
MR
24606
24607 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
24608 encoding becomes encoding_type.
24609
24610 * term.c (terminal_encode_buffer): Make externally visible.
24611
24612 * makefile.w32-in: Add character.h dependancies.
24613 (character.o, chartab.o): New targets.
24614
246152008-02-01 Kenichi Handa <handa@m17n.org>
24616
24617 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
24618 CODING_ID_EOL_TYPE.
24619
246202008-02-01 Andreas Schwab <schwab@suse.de>
24621
24622 * coding.c (produce_chars): Revert last change.
24623
246242008-02-01 Kenichi Handa <handa@m17n.org>
24625
24626 * charset.h (charset_unicode): Extern it.
24627
24628 * charset.c (string_xstring_p): Check by (C >= 0x100).
bba3e508
SM
24629 (find_charsets_in_text): Change format of the arc CHARSETS.
24630 New arg MULTIBYTE.
aac0c6e3
MR
24631 (Ffind_charset_region, Ffind_charset_string): Adjust for the
24632 change of find_charsets_in_text.
24633 (Fsplit_char): Fix doc. Never return unknown.
24634
24635 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
24636
bba3e508
SM
24637 * coding.c (Fdefine_coding_system_alias):
24638 Update Vcoding_system_list.
aac0c6e3
MR
24639
24640 * fontset.c (load_font_get_repertory): Pay attention to the case
24641 that ENCODING of a font is specified by a char-table.
24642
24643 * xterm.c (x_get_font_repertory): Handle the case that the
24644 encoding of font is other than Unicode.
24645
246462008-02-01 Kenichi Handa <handa@m17n.org>
24647
bba3e508
SM
24648 * term.c (encode_terminal_code): Don't handle glyph-table.
24649 Check if a character is encodable by the terminal coding system.
24650 If not, produces proper number of `?'s. Update
aac0c6e3
MR
24651 terminal_encode_buffer and terminal_encode_buf_size if necessary.
24652 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
24653
246542008-02-01 Kenichi Handa <handa@m17n.org>
24655
bba3e508
SM
24656 * term.c (terminal_encode_buffer, terminal_encode_buf_size):
24657 New variables.
aac0c6e3
MR
24658 (encode_terminal_code): Change argument. Encode multiple
24659 characters at once. Store the result of encoding in
24660 terminal_encode_buffer.
24661 (write_glyphs, insert_glyphs): Adjust for the change of
24662 encode_terminal_code.
24663 (term_init): Initialize terminal_encode_buffer and
24664 terminal_encode_buf_size.
24665
24666 * coding.c (consume_chars): If coding->src_object is nil, don't
24667 check annotation.
24668
246692008-02-01 Kenichi Handa <handa@m17n.org>
24670
24671 * character.c (char_string): Use ASCII_CHAR_P instead of
24672 SINGLE_BYTE_CHAR_P.
24673
246742008-02-01 Kenichi Handa <handa@m17n.org>
24675
24676 * xdisp.c (handle_auto_composed_prop): Check if the last
24677 characters of auto-composed region is newly composed with the
24678 following characters.
24679 (handle_composition_prop): Fix checking of point being inside
24680 composition.
24681
246822008-02-01 Kenichi Handa <handa@m17n.org>
24683
24684 * fns.c (concat): Don't change multibyteness of the result by
24685 concatenating an 8-bit character.
24686
24687 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
24688 multibyteness of the result when newelt is an 8-bit character.
24689
246902008-02-01 Dave Love <fx@gnu.org>
24691
24692 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
24693 EMACS_INT.
24694
24695 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
24696
24697 * xfaces.c (face_numeric_value): Declare dim size_t.
24698 (Finternal_lisp_face_equal_p): Remove unused f.
24699
24700 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
24701 (MATRIX_ROW): Remove unused vars.
24702 (draw_glyphs, x_insert_glyphs, fast_find_position)
24703 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
24704 byte/char counts.
24705
24706 * regex.c (regex_compile): Remove unused var.
24707
24708 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
24709
24710 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
24711 (Faccessible_keymaps, where_is_internal): Remove unused vars.
24712
24713 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
24714
24715 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
24716
24717 * fileio.c (Fwrite_region): Remove unused var.
24718
24719 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
24720 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
24721
24722 * composite.c (Fremove_list_of_text_properties): Declare.
24723
24724 * coding.c (inhibit_pre_post_conversion): Remove (unused).
24725 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
24726 (coding_inherit_eol_type): Remove unused attrs.
24727 (detect_coding): Cast arg of detect_eol.
24728
24729 * charset.c (syms_of_charset): Remove unused var p.
24730 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
24731 byte/char counts.
24732
24733 * casetab.c (set_case_table): Remove unused var.
24734
bba3e508
SM
24735 * window.c (Fdisplay_buffer, Fframe_selected_window):
24736 Remove unused vars.
aac0c6e3
MR
24737
247382008-02-01 Dave Love <fx@gnu.org>
24739
24740 * xterm.c (x_bitmap_mask): Declare.
24741
247422008-02-01 Dave Love <fx@gnu.org>
24743
24744 * xterm.c (x_term_init): Fix type error.
24745
24746 * lisp.h: Add Funibyte_char_to_multibyte.
24747
24748 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
24749 (Fset_coding_system_priority): Doc fix.
24750
24751 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
24752
24753 * indent.c (check_composition): Make start and end EMACS_INT.
24754
24755 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
24756
24757 * xdisp.c (handle_composition_prop, check_point_in_composition):
24758 Make buffer positions EMACS_INT.
24759
24760 * composite.c (find_composition, run_composition_function)
24761 (update_compositions, Ffind_composition_internal): Make buffer
24762 positions EMACS_INT.
24763
bba3e508
SM
24764 * composite.h (find_composition, update_compositions):
24765 Make position args EMACS_INT.
aac0c6e3
MR
24766
24767 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
24768
24769 * intervals.c (get_property_and_range):
24770 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
24771
24772 * unexalpha.c: Don't include varargs.h.
24773
247742008-02-01 Dave Love <fx@gnu.org>
24775
24776 * coding.h (ENCODE_UTF_8): New.
24777
24778 * Makefile.in (gtkutil.o): Depend on coding.h.
24779
24780 * coding.c (Fset_coding_system_priority): Doc fix.
24781
247822008-02-01 Kenichi Handa <handa@m17n.org>
24783
24784 * fileio.c (Finsert_file_contents): Call setup_coding_system in
24785 the case of auto saving.
24786
247872008-02-01 Andreas Schwab <schwab@suse.de>
24788
bba3e508
SM
24789 * chartab.c (map_char_table, map_char_table_for_charset):
24790 Protect `range' from GC.
aac0c6e3
MR
24791
247922008-02-01 Kenichi Handa <handa@m17n.org>
24793
24794 * coding.c (decode_coding_sjis): Check bytes more rigidly.
24795
247962008-02-01 Kenichi Handa <handa@m17n.org>
24797
24798 * fileio.c (choose_write_coding_system): Return a decided coding system.
24799 (Fwrite_region): Set Vlast_coding_system_used to the return value
24800 of choose_write_coding_system.
24801
248022008-02-01 Kenichi Handa <handa@m17n.org>
24803
24804 * charset.c (Fset_charset_priority): Pay attention to duplicated
24805 arguments.
24806
24807 * coding.c (QCcategory): New variable.
24808 (syms_of_coding): Defsym it. Set all elements of
24809 Vcoding_category_table and their symbol values.
24810 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
24811 coding-category-XXX, and coding-category-list.
24812 (Fdefine_coding_system_internal): Add category in the plist.
24813
248142008-02-01 Kenichi Handa <handa@m17n.org>
24815
24816 * callproc.c (Fcall_process): Handle carryover correctly.
24817
24818 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
24819 (raw_text_coding_system): Check NILP (coding_system).
24820 (coding_inherit_eol_type): Check NILP (coding_system) and
24821 NILP (parent).
24822 (consume_chars): Fix for the case of raw-text.
24823
24824 * process.c (read_process_output): Handle carryover correctly.
24825
248262008-02-01 Dave Love <fx@gnu.org>
24827
24828 * regex.c (re_search_2): Fix last change.
24829
248302008-02-01 Kenichi Handa <handa@m17n.org>
24831
24832 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
24833 target_multibyte. Even in a unibyte case, return a converted
24834 multibyte char.
24835 (GET_CHAR_AFTER): New macro.
24836 (PATFETCH): Translate via multibyte char.
24837 (HANDLE_UNIBYTE_RANGE): Delete this macro.
24838 (SETUP_MULTIBYTE_RANGE): New macro.
24839 (regex_compile): Setup compiled code so that its multibyteness
24840 matches that of a target. Fix the handling of "[X-YZ]" using
24841 SETUP_MULTIBYTE_RANGE.
24842 (analyse_first) <charset>: For filling fastmap for all multibyte
24843 characters, don't check by BASE_LEADING_CODE_P.
24844 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
24845 the same as RE_MULTIBYTE_P (bufp) now.
24846 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
24847 (TARGET_CHAR_AND_LENGTH): Delete this macro.
24848 (TRANSLATE_VIA_MULTIBYTE): New macro.
24849 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
24850 It is the same as RE_MULTIBYTE_P (bufp) now.
24851 <exactn>: Translate via multibyte.
bba3e508
SM
24852 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH.
24853 Don't translate it.
aac0c6e3
MR
24854 <charset, charset_not>: Fetch a character by
24855 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
24856 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
24857 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
24858 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
24859 by GET_CHAR_AFTER.
24860 (bcmp_translate): Likewise.
24861
24862 * search.c (compile_pattern): Check the member target_multibyte,
24863 not the member multibyte of buf.
24864
24865 * lread.c (read1): While reading a string, set force_singlebyte
24866 and force_multibyte correctly.
24867
24868 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
24869 up of unibyte_to_multibyte_table.
24870
248712008-02-01 Kenichi Handa <handa@m17n.org>
24872
24873 * coding.c (setup_coding_system): If coding has
24874 post-read-conversion or pre-write-conversion, set
24875 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
24876 respectively.
24877 (decode_coding_gap): Run post-read-conversion if any.
24878
24879 * fileio.c (Finsert_file_contents): Even if we read into a
24880 unibyte buffer, check if we must decode the result or not.
24881
248822008-02-01 Kenichi Handa <handa@m17n.org>
24883
24884 * coding.c (make_conversion_work_buffer): Change the work buffer
24885 name to the same one as that of Emacs 21.
24886
248872008-02-01 Kenichi Handa <handa@m17n.org>
24888
24889 * coding.h (make_conversion_work_buffer): Adjust prototype.
24890 (code_conversion_restore): Don't extern it.
24891
24892 * coding.c (detected_mask): Delete unused variable.
24893 (decode_coding_iso_2022): Pay attention to the byte sequence of
24894 CTEXT extended segment, and retain those bytes as is.
24895 (decode_coding_ccl): Delete unused variable `valids'.
24896 (setup_coding_system): Delete unused variable `category'.
24897 (consume_chars): Delete unused variable `category'. Make it work
24898 for non-multibyte case.
24899 (make_conversion_work_buffer): Change argument.
24900 (saved_coding): Delete unused variable.
24901 (code_conversion_restore): Don't check saved_coding->destination.
24902 (code_conversion_save): New function.
24903 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
24904 instead of record_unwind_protect.
24905 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
24906 (detect_coding_system): Delete unused variable `mask'.
24907 (Fdefine_coding_system_internal): Delete unused variable id.
24908
24909 * fileio.c (kill_workbuf_unwind): New function.
24910 (Finsert_file_contents): On replacing, call
24911 make_conversion_work_buffer with correct args, and call
24912 record_unwind_protect with the first arg kill_workbuf_unwind.
24913
24914 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
24915
249162008-02-01 Kenichi Handa <handa@m17n.org>
24917
24918 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
24919 (fontset_add): Fix for the case that TO is less than TO1.
24920 (Ffontset_info): Don't use fallback fontset on checking the
24921 default fontset.
24922 (dump_fontset): New function for debugging.
24923
24924 * coding.c (Fdefine_coding_system_internal): Fix for the case that
24925 coding_type is Qcharset.
24926
249272008-02-01 Kenichi Handa <handa@m17n.org>
24928
24929 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
24930 (map_char_table): Don't inherit the value from the parent on
24931 initializing VAL. Adjust for the above change.
24932
249332008-02-01 Kenichi Handa <handa@m17n.org>
24934
24935 * coding.c (Qsignature, Qendian): Delete these variables.
24936 (syms_of_coding): Don't initialize them.
24937 (CATEGORY_MASK_UTF_16_AUTO): New macro.
24938 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
24939 detect_info->found.
24940 (decode_coding_utf_16): Don't detect BOM here.
24941 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
24942 is NOT utf_16_without_bom.
24943 (setup_coding_system): For a coding system of type utf-16, check
24944 if the attribute :endian is Qbig or not (not nil or not), and set
24945 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
24946 (detect_coding): If coding type is utf-16 and BOM detection is
24947 required, detect it.
24948 (Fdefine_coding_system_internal): For a coding system of type
24949 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
24950
249512008-02-01 Kenichi Handa <handa@m17n.org>
24952
24953 * coding.c (coding_set_source): Fix for the case that the current
24954 buffer is different from coding->src_object.
24955 (decode_coding_object): Don't use the conversion work buffer if
24956 DST_OBJECT is a buffer.
24957
249582008-02-01 Dave Love <fx@gnu.org>
24959
24960 * lread.c (read_emacs_mule_char) [len==2]: Index
24961 emacs_mule_charset correctly.
24962
249632008-02-01 Dave Love <fx@gnu.org>
24964
24965 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
24966 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
24967 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
24968 treated specially.)
24969 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
24970 (detected_mask): Remove Big5 bits.
24971
249722008-02-01 Kenichi Handa <handa@m17n.org>
24973
24974 The following changes are to make the font rescaling facility
24975 compatible with Emacs 21.
24976
24977 * xfaces.c (Vface_font_rescale_alist): Rename from
24978 Vface_resizing_fonts.
24979 (struct font_name): Rename member resizing_ratio to rescale_ratio.
24980 (font_rescale_ratio): Rename from font_resizing_ratio.
24981 (split_font_name): Set font->rescale_ratio.
24982 (better_font_p): Pay attention to font->rescale_ratio.
24983 (build_scalable_font_name): Likewise. Change RESX, and RESY
24984 fields.
24985 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
24986
249872008-02-01 Kenichi Handa <handa@m17n.org>
24988
24989 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
24990 (Qutf_16_le): Remove these variables.
24991 (syms_of_coding): Don't DEFSYM them.
24992 (decode_coding_utf_16): Fix handling of BOM.
24993 (encode_coding_utf_16): Fix handling of BOM.
24994
249952008-02-01 Kenichi Handa <handa@m17n.org>
24996
24997 * fileio.c (Finsert_file_contents): On replacing, before decoding
24998 the file into the work buffer, set point of the work buffer to the end.
24999
250002008-02-01 Dave Love <fx@gnu.org>
25001
25002 * coding.c (Fcheck_coding_systems_region): Fix type errors.
25003
250042008-02-01 Dave Love <fx@gnu.org>
25005
25006 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
25007 and fix C types.
25008
250092008-02-01 Kenichi Handa <handa@m17n.org>
25010
25011 * xdisp.c (SKIP_GLYPHS): New macro.
25012 (set_cursor_from_row): Pay attention to string display properties.
25013
25014 * category.c (copy_category_entry): Fix for the case that RANGE
25015 is an integer.
25016
25017 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
25018
25019 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
25020
250212008-02-01 Kenichi Handa <handa@m17n.org>
25022
25023 * charset.c (Fcharset_id_internal): New function.
25024 (syms_of_charset): Defsubr it.
25025
25026 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
25027 with the last arg charset_list acquired from coding.
25028 (Fdefine_coding_system_internal): For ccl-based coding system, fix
25029 the attribute coding_attr_ccl_valids.
25030
25031 * coding.h (enum define_coding_ccl_arg_index): Set the first
25032 member coding_arg_ccl_decoder to coding_arg_max.
25033
25034 * ccl.h (ccl_driver): Adjust prototype.
25035
25036 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
25037 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 25038 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
25039 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
25040 last arg Qnil.
25041
250422008-02-01 Kenichi Handa <handa@m17n.org>
25043
25044 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
25045 call encode_char.
25046
25047 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
25048
250492008-02-01 Dave Love <fx@gnu.org>
25050
25051 * composite.c (syms_of_composite): Make composition_hash_table weak.
25052
250532008-02-01 Kenichi Handa <handa@m17n.org>
25054
25055 * dispextern.h (check_face_attributes, generate_ascii_font_name)
25056 (font_name_registry): Don't extern them.
25057 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
25058
25059 * fontset.h (Qfontset): Don't extern it.
25060 (new_fontset_from_font_name): Extern it.
25061
25062 * fontset.c: Give 8 extra slots to fontset objects.
25063 (Qfontset_info): New variable.
25064 (syms_of_fontset): Defsym it.
25065 (FONTSET_FALLBACK): New macro.
25066 (fontset_face): Try also the default fontset.
25067 (make_fontset): Realize a fallback fontset from the default fontset.
25068 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
25069 using split_font_name_into_vector and build_font_name_from_vector.
25070 (Fset_fontset_font): Access the elements of font_spec by enum
25071 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
25072 name by using split_font_name_into_vector.
25073 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
bba3e508
SM
25074 generate a proper font name from the fontset name.
25075 Update Vfontset_alias_alist.
aac0c6e3
MR
25076 (n_auto_fontsets): New variable.
25077 (new_fontset_from_font_name): New function.
25078 (Ffont_info): Store the information about fonts generated from the
25079 default fontset in the first extra slot of the returned char-table.
25080
25081 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
25082 (font_name_registry): Delete function.
25083 (split_font_name_into_vector): New function.
25084 (build_font_name_from_vector): New function.
25085 (font_list): The argument REGISTRY is now a list of registry names.
25086 (choose_face_font): If we are choosing an ASCII font, and ATTRS
25087 specifies an explicit font name, return the name as is. Make a
25088 list of registy names.
25089
25090 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
25091 of x_new_fontset.
25092 (Fx_create_frame): Don't call x_new_fontset here. Just use
25093 x_list_fonts to check the existence of fonts.
25094
25095 * xterm.h (x_new_fontset): Adjust prototype.
25096
25097 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
25098 string. Use new_fontset_from_font_name to create a fontset from a
25099 font name.
25100
251012008-02-01 Kenichi Handa <handa@m17n.org>
25102
25103 * syntax.c (Vfind_word_boundary_function_table): New name for
25104 Vnext_word_boundary_function_table.
25105 (find-word-boundary-function-table): New name for
25106 next-word-boundary-function-table.
25107
251082008-02-01 Dave Love <fx@gnu.org>
25109
25110 * Makefile.in: Fix some dependencies.
25111
25112 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
25113 set it to nil before returning.
25114
25115 * composite.c (update_compositions): Fix type error.
25116
25117 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
25118
251192008-02-01 Kenichi Handa <handa@m17n.org>
25120
25121 * xterm.c (x_new_font): Optimize for the case that the font is
25122 already set for the frame.
25123
251242008-02-01 Kenichi Handa <handa@m17n.org>
25125
25126 * chartab.c (char_table_ascii): Check if the char table contents
25127 is sub-char-table or not.
25128 (char_table_set, char_table_set_range): Fix argument to
25129 char_table_ascii.
25130
25131 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
25132 (detect_coding_utf_8, detect_coding_utf_16)
25133 (detect_coding_emacs_mule, detect_coding_iso_2022)
25134 (detect_coding_sjis, detect_coding_big5)
25135 (detect_coding_ccl, detect_coding_charset): Change argument MASK
25136 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
25137 sequence is valid in this coding system. Change callers.
25138 (MAX_ANNOTATION_LENGTH): New macro.
25139 (ADD_ANNOTATION_DATA): New macro.
bba3e508
SM
25140 (ADD_COMPOSITION_DATA): Change argument. Change callers.
25141 Call ADD_ANNOTATION_DATA. Change the format of annotation data.
aac0c6e3
MR
25142 (ADD_CHARSET_DATA): New macro.
25143 (emacs_mule_char): New argument ID. Change callers.
25144 (decode_coding_emacs_mule, decode_coding_iso_2022)
25145 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
25146 Produce charset annotation data in coding->charbuf.
25147 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
25148 to charset annotation data in coding->charbuf.
25149 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
25150 coding->common_flags if the coding system is iso-2022 based and
25151 uses designation.
25152 (produce_composition): Adjust for the new annotation data format.
25153 (produce_charset): New function.
25154 (produce_annotation): Handle charset annotation.
bba3e508
SM
25155 (handle_composition_annotation, handle_charset_annotation):
25156 New functions.
aac0c6e3
MR
25157 (consume_chars): Handle charset annotation. Utilize the above two
25158 functions.
25159 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
25160 buffer, get the deleted text as a string and set
25161 coding->src_object to that string.
25162 (detect_coding, detect_coding_system): Use the new struct
25163 coding_detection_info.
25164
25165 * coding.h (struct coding_detection_info): New structure.
25166 (struct coding_system): Adjust prototype of the member `detector'.
25167 (CODING_ANNOTATE_CHARSET_MASK): New macro.
25168
251692008-02-01 Kenichi Handa <handa@m17n.org>
25170
25171 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
25172
251732008-02-01 Dave Love <fx@gnu.org>
25174
25175 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
25176 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
25177 to new local and nullify apropos_accumulate before returning.
25178 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
25179
251802008-02-01 Kenichi Handa <handa@m17n.org>
25181
25182 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
25183 correctly.
e3eea1fc 25184
aac0c6e3
MR
251852008-02-01 Dave Love <fx@gnu.org>
25186
25187 * fns.c (Flanginfo): Call synchronize_system_time_locale.
25188
251892008-02-01 Kenichi Handa <handa@m17n.org>
25190
25191 The following changes are to make character composition happen
25192 automatically on displaying.
25193
25194 * Makefile.in (lisp, shortlisp): Add composite.elc.
25195
25196 * composite.h (Qauto_composed, Vauto_composition_function)
25197 (Qauto_composition_function): Extern them.
25198
25199 * composite.c (Vcomposition_function_table)
25200 (Qcomposition_function_table): Delete variables.
25201 (Qauto_composed, Vauto_composition_function)
25202 (Qauto_composition_function): New variables.
25203 (run_composition_function): Don't call
25204 compose-chars-after-function.
25205 (update_compositions): Clear `auto-composed' text property.
25206 (compose_chars_in_text): Delete this function.
25207 (syms_of_composite): Staticpro Qauto_composed and
25208 Qauto_composition_function. Declare Vauto_composition_function as
25209 a Lisp variable.
25210
25211 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
25212
25213 * xdisp.c (it_props): Add an entry for Qauto_composed.
25214 (handle_auto_composed_prop): New function.
25215
25216 * xselect.c (selection_data_to_lisp_data): Don't call
25217 compose_chars_in_text.
25218
252192008-02-01 Dave Love <fx@gnu.org>
25220
25221 * keyboard.c (read_char): Modify checking around use of
25222 Vkeyboard_translate_table.
25223
25224 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
25225 and fix C types.
25226
252272008-02-01 Kenichi Handa <handa@m17n.org>
25228
25229 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
25230 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
25231 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
25232 the case that the last byte is '\r' correctly.
25233 (decode_coding): Flush out the unprocessed data correctly.
25234 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
25235
252362008-02-01 Dave Love <fx@gnu.org>
25237
25238 * xterm.c (XTread_socket): Fix changes for defined keysyms.
25239 Add XK_ISO... case.
25240 (xaw_scroll_callback): Revert last change.
25241
252422008-02-01 Kenichi Handa <handa@m17n.org>
25243
25244 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
25245
252462008-02-01 Kenichi Handa <handa@m17n.org>
25247
25248 * xfaces.c (Vface_resizing_fonts): New variable.
25249 (struct font_name): New member `resizing_ratio'.
25250 (font_resizing_ratio): New function.
25251 (split_font_name): Set font->resizing_ratio.
25252 (better_font_p): Pay attention to font->resizing_ratio.
25253 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
25254 RESX, and RESY fields.
25255 (try_alternative_families): Try scalable fonts if
25256 Vscalable_fonts_allowed is not Qt.
25257 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
25258
252592008-02-01 Dave Love <fx@gnu.org>
25260
25261 * xterm.c (xaw_scroll_callback): Cast correctly.
25262
252632008-02-01 Dave Love <fx@gnu.org>
25264
25265 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
25266 (lispy_kana_keys): Comment out.
25267 (make_lispy_event) [XK_kana_A]: Comment out.
25268
25269 * xterm.c (xaw_scroll_callback): Cast call_data.
25270 (XTread_socket): Deal with ASCII keysyms.
25271 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
25272
252732008-02-01 Dave Love <fx@gnu.org>
25274
25275 * xterm.c (Vx_keysym_table): New.
25276 (syms_of_xterm): Initialize it.
25277 (XTread_socket): Use it.
25278 From head: Eliminate incorrect optimization that tried to avoid
25279 decoding the output of X*LookupString.
25280 (x_get_font_repertory): Delete charset declaration.
25281
252822008-02-01 Kenichi Handa <handa@m17n.org>
25283
25284 * coding.c (detect_coding_charset): If only ASCII bytes are found,
25285 return 0.
bba3e508
SM
25286 (Fdefine_coding_system_internal):
25287 Setup CODING_ATTR_ASCII_COMPAT (attrs) correctly.
aac0c6e3
MR
25288
252892008-02-01 Dave Love <fx@gnu.org>
25290
25291 * coding.c (Fcheck_coding_system): Doc fix.
25292
25293 * editfns.c (Finsert_byte): Return a proper value.
25294
252952008-02-01 Kenichi Handa <handa@m17n.org>
25296
bba3e508
SM
25297 * coding.c (decode_coding): Fix args to translate_chars.
25298 Pay attention to Vstandard_translation_table_for_decode.
aac0c6e3
MR
25299 (encode_coding): Fix args to translate_chars. Pay attention to
25300 Vstandard_translation_table_for_encode.
25301
25302 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
25303 SINGLE_BYTE_CHAR_P.
25304
25305 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
25306 not by SINGLE_BYTE_CHAR_P.
25307
25308 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
25309 SINGLE_BYTE_CHAR_P.
25310
25311 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
25312 SINGLE_BYTE_CHAR_P.
25313
25314 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
25315 by SINGLE_BYTE_CHAR_P.
25316
25317 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
25318 SINGLE_BYTE_CHAR_P.
25319
253202008-02-01 Dave Love <fx@gnu.org>
25321
25322 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
25323
253242008-02-01 Dave Love <fx@gnu.org>
25325
25326 * fns.c (Flanginfo): Fix typo.
25327
25328 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
25329
253302008-02-01 Kenichi Handa <handa@m17n.org>
25331
25332 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
25333 (detect_coding_emacs_mule, detect_coding_iso_2022)
25334 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
25335 incomplete byte sequence. Don't update *mask when correctly detected.
25336 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
25337 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
25338 (detect_coding, detect_coding_system): Adjust for the changes above.
25339
253402008-02-01 Kenichi Handa <handa@m17n.org>
25341
25342 * character.c (char_string): Rename from
25343 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
25344 (string_char): Rename from string_char.
25345
25346 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
25347 if C is greater than MAX_3_BYTE_CHAR.
bba3e508
SM
25348 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE):
25349 Call string_char instead of string_char_with_unification.
aac0c6e3
MR
25350
253512008-02-01 Dave Love <fx@gnu.org>
25352
25353 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
25354
253552008-02-01 Kenichi Handa <handa@m17n.org>
25356
25357 * keymap.c (push_key_description): Pay attention to force_multibyte.
25358
25359 * regex.c (re_search_2): Fix for the case of unibyte buffer.
25360
253612008-02-01 Dave Love <fx@gnu.org>
25362
25363 * charset.c (define_charset_internal): Rename `supprementary'.
25364
25365 * Makefile.in (lisp, shortlisp): Remove latin-N.
25366
253672008-02-01 Dave Love <fx@gnu.org>
25368
25369 * xfns.c (x_window, x_window): Use use_xim.
25370
25371 * xterm.c (use_xim): Initialize.
25372 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
25373 (x_term_init): Maybe set use_xim.
25374
25375 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
25376
253772008-02-01 Kenichi Handa <handa@m17n.org>
25378
25379 * search.c (search_buffer): Fix case-fold-search of multibyte
25380 characters.
25381 (boyer_moore): Rename the last argument to char_high_bits.
25382
253832008-02-01 Kenichi Handa <handa@m17n.org>
25384
25385 * xdisp.c (display_string): Fix for the case of zero width glyph.
25386
25387 * xfns.c (x_set_font): Change the error message of the case that
25388 x_new_fontset returns Qt.
25389
25390 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
25391 (Finternal_set_lisp_face_attribute): Use signal_error for the
25392 error of invalid fontset.
25393
25394 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
25395 fontset, return Qt.
25396
253972008-02-01 Dave Love <fx@gnu.org>
25398
25399 * unexelf.c (unexec): Make .got handling not SGI-specific.
25400
25401 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
25402
25403 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
25404
25405 * keyboard.c (read_key_sequence): Fix type error.
25406
bba3e508
SM
25407 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte):
25408 Fix type error.
aac0c6e3
MR
25409
25410 * fontset.c (fontset_add): Return Lisp_Object.
25411
254122008-02-01 Dave Love <fx@gnu.org>
25413
25414 * charset.h (charset_ordered_list_tick): Declare extern.
25415
254162008-02-01 Kenichi Handa <handa@m17n.org>
25417
25418 The following changes (and some of 2008-02-01 changes of mine) are
25419 for handling syntax, category, and case conversion for unibyte
25420 characters by converting them to multibyte on the fly. With these
25421 changes, we don't have to setup syntax and case tables for unibyte
25422 characters in each language environment.
25423
25424 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
25425 multibyte if necessary.
25426
25427 * bytecode.c (Fbyte_code): Likewise.
25428
25429 * character.h (LEADING_CODE_LATIN_1_MIN)
25430 (LEADING_CODE_LATIN_1_MAX): New macros.
25431 (unibyte_to_multibyte_table): Extern it.
25432 (unibyte_char_to_multibyte): New macro.
25433 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
25434 (CHAR_LEADING_CODE): New macro.
25435 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
25436
25437 * character.c (unibyte_to_multibyte_table): New variable.
25438 (unibyte_char_to_multibyte): Move to character.h and define as macro.
25439 (multibyte_char_to_unibyte): If C is an eight-bit character,
25440 convert it to the corresponding byte value.
25441
25442 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
25443 not 1, signals an error. Update the elements of
25444 unibyte_to_multibyte_table.
25445 (init_charset_once): Initialize unibyte_to_multibyte_table.
25446 (syms_of_charset): Define the charset `iso-8859-1'.
25447
25448 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
25449 as is without converting it to unibyte. In a unibyte buffer,
25450 convert C to multibyte before checking the syntax.
25451
25452 * lisp.h (unibyte_char_to_multibyte): Delete extern.
25453
25454 * minibuf.c (Fminibuffer_complete_word): Use the macro
25455 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
25456
25457 * regex.h (struct re_pattern_buffer): New member target_multibyte.
25458
25459 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
bba3e508
SM
25460 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte.
25461 If that is zero, convert an eight-bit char to multibyte.
aac0c6e3
MR
25462 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
25463 non-emacs case.
25464 (PATFETCH): Convert an eight-bit char to multibyte.
25465 (HANDLE_UNIBYTE_RANGE): New macro.
25466 (regex_compile): Setup the compiled pattern for multibyte chars
25467 even if the given regex string is unibyte. Use PATFETCH_RAW
25468 instead of PATFETCH in many places. To handle `charset'
25469 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
25470 only for ASCII chars.
25471 (analyse_first) <exactn>: Simplify because the compiled pattern
25472 is multibyte.
25473 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
25474 <charset>: Use CHAR_LEADING_CODE to get leading codes.
25475 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
25476 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
25477 multibyte always 1.
25478 (re_search_2): In emacs, set the locale variable multibyte to 1,
25479 otherwise to 0. New local variable target_multibyte. Check it
bba3e508
SM
25480 to decide the multibyteness of STR1 and STR2.
25481 If target_multibyte is zero, convert unibyte chars to multibyte
aac0c6e3
MR
25482 before translating and checking fastmap.
25483 (TARGET_CHAR_AND_LENGTH): New macro.
25484 (re_match_2_internal): In emacs, set the locale variable multibyte
bba3e508
SM
25485 to 1, otherwise to 0. New local variable target_multibyte.
25486 Check it to decide the multibyteness of STR1 and STR2.
25487 Use TARGET_CHAR_AND_LENGTH to fetch a character from D.
aac0c6e3
MR
25488 <charset, charset_not>: If multibyte is nonzero, check fastmap
25489 only for ASCII chars. Call bcmp_translate with
25490 target_multibyte, not with multibyte.
25491 <begline>: Declare the local variable C as `unsigned'.
25492 (bcmp_translate): Change the last arg name to target_multibyte.
25493
25494 * search.c (compile_pattern_1): Don't adjust the multibyteness of
25495 the regexp pattern and the matching target. Set cp->buf.multibyte
25496 to the multibyteness of the regexp pattern. Set
25497 cp->but.target_multibyte to the multibyteness of the matching target.
25498 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
25499 FETCH_STRING_CHAR_ADVANCE.
25500 (Freplace_match): Convert unibyte chars to multibyte.
25501
25502 * syntax.c (char_quoted, back_comment, scan_words)
25503 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
25504 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
25505 unibyte chars to multibyte.
25506 (skip_chars): Delete the arg syntaxp, and move the code for
25507 handling syntaxes to skip_syntaxes. Change callers.
25508 Fix the case that the multibyteness of STRING and the current
25509 buffer doesn't match.
25510 (skip_syntaxes): New function.
25511 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
25512 SINGLE_BYTE_CHAR_P.
25513
255142008-02-01 Kenichi Handa <handa@m17n.org>
25515
25516 * xfaces.c (QCfontset): New variable.
25517 (LFACE_FONTSET): New macro.
25518 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
25519 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
25520 (Finternal_set_lisp_face_attribute)
25521 (Finternal_get_lisp_face_attribute): Handle QCfontset.
25522 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
25523 check also LFACE_FONTSET_INDEX.
25524 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
25525 attrs[LFACE_FONT_INDEX].
25526 (syms_of_xfaces): Intern and staticpro QCfontset.
25527
25528 * dispextern.h (enum lface_attribute_index): New member
25529 LFACE_FONTSET_INDEX.
25530
25531 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
25532
255332008-02-01 Kenichi Handa <handa@m17n.org>
25534
25535 * coding.c (coding_set_destination): Fix coding->destination for
25536 the case converting a region.
25537 (encode_coding_utf_8): Encode eight-bit chars as single byte.
25538 (encode_coding_object): Fix coding->dst_pos and
25539 coding->dst_pos_byte for the case converting a region.
25540
25541 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
25542
25543 * character.h (BYTE8_STRING): New macro.
25544
25545 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
25546
255472008-02-01 Kenichi Handa <handa@m17n.org>
25548
25549 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
25550 characters by octal form.
25551
25552 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
25553
25554 * buffer.h (_fetch_multibyte_char_len): Delete extern.
25555 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
25556 _fetch_multibyte_char_len.
25557 (FETCH_CHAR_AS_MULTIBYTE): New macro.
25558
25559 * casetab.c (set_canon, set_identity, shuffle): Simplify.
25560
25561 * casefiddle.c (casify_object): Simplify. Handle the case that
25562 the case conversion change the byte length.
25563 (casify_region): Likewise.
25564
25565 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
25566
25567 * character.c (_fetch_multibyte_char_len): Delete this variable.
25568 (syms_of_character): Setup Vprintable_chars.
25569
25570 * editfns.c (Fchar_equal): Fix for the unibyte case.
25571 (Finsert_byte): New function.
25572 (syms_of_editfns): Defsubr it.
25573
25574 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
25575 of direct code 0x3ffff.
25576
25577 * search.c (Freplace_match): Fix for the unibyte case.
25578
255792008-02-01 Kenichi Handa <handa@m17n.org>
25580
25581 * lread.c (safe_to_load_p): Fix the logic.
25582
25583 * syntax.c (scan_words): Don't treat characters belonging to
25584 different scripts as constituting a word.
25585
25586 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
25587
25588 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
25589
25590 * emacs.c (main): In the case of --unibyte, instead of aborting on
25591 finding non-empty buffer, make it unibyte.
25592
255932008-02-01 Kenichi Handa <handa@m17n.org>
25594
25595 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
25596 to create a fontset.
25597
255982008-02-01 Dave Love <fx@gnu.org>
25599
25600 * character.c (Funibyte_char_to_multibyte): Doc fix.
25601
25602 * xfns.c [HAVE_STDLIB_H]: Fix last change.
25603
256042008-02-01 Kenichi Handa <handa@m17n.org>
25605
25606 * fontset.c (fontset_add): Make the type `int'.
25607 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
25608
25609 * character.c (unibyte_char_to_multibyte)
25610 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
25611 charset_unibyte, not charset_primary.
25612
25613 * charset.h (charset_unibyte): Extern it instead of charset_primary.
25614
25615 * charset.c (charset_unibyte): Rename from charset_primary.
25616 (Funibyte_charset): Rename from Fprimary_charset.
25617 (Fset_unibyte_charset): Rename from Fset_primary_charset.
25618 (syms_of_charset): Adjust for the above changes.
25619
25620 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
25621 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
25622 it->multibyte_p is zero.
25623
25624 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
25625 Delete extern.
25626
256272008-02-01 Kenichi Handa <handa@m17n.org>
25628
25629 * coding.c (Fdefine_coding_system_internal): Fix category setting
25630 for a coding system of type iso-2022.
25631
256322008-02-01 Kenichi Handa <handa@m17n.org>
25633
25634 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
25635
256362008-02-01 Kenichi Handa <handa@m17n.org>
25637
25638 * syntax.c (Vnext_word_boundary_function_table): New variable.
25639 (next-word-boundary-function-table): Declare it as a Lisp variable
25640 in syms_of_syntax.
25641 (scan_words): Call functions in Vnext_word_boundary_function_table
25642 if any.
25643
25644 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
25645
25646 * fontset.c (fs_load_font): If fontp->charset is not negative,
25647 return fontp without setting its members.
25648
256492008-02-01 Dave Love <fx@gnu.org>
25650
25651 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
25652
25653 * m/sparc.h (HAVE_ALLOCA): Delete.
25654
25655 * s/irix6-5.h: Don't include strings.h.
25656 (bcopy, bzero, bcmp): Don't undef.
25657
25658 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
25659
25660 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
25661 (TIOCSIGSEND): Don't test IRIX6.
25662 (bcopy, bzero, bcmp): Define conditionally.
25663
256642008-02-01 Kenichi Handa <handa@m17n.org>
25665
25666 * buffer.c (Qas, Qmake, Qto): New variables.
25667 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
25668 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
25669
25670 * callproc.c (Fcall_process): Don't call insert_1_both directly if
25671 we are inserting a process output into a multibyte buffer.
25672
25673 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
25674 multibyte_char_to_unibyte.
25675
25676 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
25677 by the primary charset, make it eight-bit char.
25678 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
25679
25680 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
25681 (charset_8_bit__control, charset_8_bit_graphic)
25682 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
25683 (define_charset_internal): New function.
25684 (syms_of_charset): Call define_charset_internal for pre-defined
25685 charsets.
25686
25687 * charset.h (charset_8_bit): Extern it.
25688
25689 * coding.c (make_conversion_work_buffer): Adjust for the change
25690 of Fset_buffer_multibyte.
25691 (encode_coding_raw_text): Increment p0 in the loop.
25692
25693 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
25694
bba3e508
SM
25695 * xdisp.c (setup_echo_area_for_printing, set_message_1):
25696 Adjust for the change of Fset_buffer_multibyte.
aac0c6e3
MR
25697
25698 * fns.c (Fstring_to_multibyte): New function.
25699 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
25700
257012008-02-01 Dave Love <fx@gnu.org>
25702
25703 * xfns.c (x_put_x_image): Declare args.
25704
25705 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
25706 (try_font_list): Declare an arg.
25707
25708 * xdisp.c (message2_nolog, set_message): Declare an arg.
25709
25710 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
25711
25712 * syntax.c (scan_sexps_forward): Declare an arg.
25713
25714 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
25715 Declare an arg.
25716
25717 * lisp.h (Fnew_fontset): Declare.
25718
25719 * keymap.c (push_key_description): Call CHARACTERP correctly.
25720
25721 * fontset.c (fontset_add): Declare args. Call make_number correctly.
25722 (face_for_char): Delete unused vars.
25723 (Fset_fontset_font): Doc fix. Delete unused vars.
25724
25725 * doc.c (Fsubstitute_command_keys): Delete unused vars.
25726
25727 * composite.c (update_compositions): Declare arg.
25728
25729 * cm.c (calccost, cmgoto): Declare args.
25730
25731 * charset.c: Remove `emacs' conditional. Doc fixes.
25732 (map_char_table_for_charset): Declare.
25733
25734 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
25735
25736 * ccl.c: Remove `emacs' conditional.
25737
257382008-02-01 Kenichi Handa <handa@m17n.org>
25739
25740 The following changes are to allow specifying multiple font
25741 patterns for a character range (specified by script or charset).
25742
25743 * Makefile.in (abbrev.o): Depend on syntax.h.
25744 (xfaces.o): Depend on charset.h.
25745
25746 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
25747 SINGLE_BYTE_CHAR_P.
25748
25749 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
25750
25751 * character.h (Vchar_script_table): Extern it.
25752
25753 * character.c (Vscript_alist): Delete.
25754 (Vchar_script_table, Qchar_script_table): New variable.
25755 (syms_of_character): Declare Vchar_script_table as a lisp variable
25756 and initialize it.
25757
25758 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
25759 have property char-table-extra-slots, make no extra slot.
25760
25761 * dispextern.h (struct face): Delete member `charset'.
25762 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
25763 SINGLE_BYTE_CHAR_P.
25764 (choose_face_font, lookup_non_ascii_face, font_name_registry):
25765 Add prototypes.
25766 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
25767 (generate_ascii_font_name): Rename from generate_ascii_font.
25768
25769 * fontset.h (get_font_repertory_func): New prototype.
25770 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
25771 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
25772
25773 * fontset.c (Qprepend, Qappend): New variables.
25774 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
25775 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
25776 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
25777 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
25778 (fontset_ref_and_range, fontset_add, reorder_font_vector)
25779 (load_font_get_repertory): New functions.
25780 (fontset_set): Delete.
25781 (fontset_face): New arg FACE. Return face ID, not face.
25782 Complete re-write to handle new fontset structure. Change caller.
25783 (free_face_fontset): Use ASET istead of AREF (X) = Y.
25784 (face_for_char): Don't call lookup_face.
25785 (make_fontset_for_ascii_face): New arg FACE.
25786 (fs_load_font): New arg CHARSET_ID. Don't check
25787 Vfont_encoding_alist here.
25788 (find_font_encoding): New function.
25789 (list_fontsets): Use STRINGP, not ! NILP.
25790 (accumulate_script_ranges): New function.
bba3e508
SM
25791 (Fset_fontset_font, Fnew_fontset, Ffontset_info):
25792 Completely re-written to handle new fontset structure.
aac0c6e3 25793 (Ffontset_font): Return a copy of element.
bba3e508
SM
25794 (syms_of_fontset): Define symbols Qprepend and Qappend.
25795 Fix docstring of font-encoding-alist.
aac0c6e3
MR
25796
25797 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
25798 (Fset_fotset_font): Fix arguments to 5.
25799
25800 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
25801
25802 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
25803 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
25804 (highlight_trailing_whitespace): Adjust for the change of
25805 lookup_named_face.
25806
25807 * xfaces.c: Include charset.h.
25808 (load_face_font): Delete argument C. Change caller.
25809 (generate_ascii_font_name): Rename from generate_ascii_font.
25810 (font_name_registry): New function.
25811 (cache_face): Store ascii faces before non-ascii faces in buckets.
25812 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
25813 Lookup only ascii faces.
25814 (lookup_non_ascii_face): New function.
25815 (lookup_named_face): Delete argument C. Change caller.
25816 (lookup_derived_face): Delete argument C. Change caller.
25817 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
25818 a string, just call font_list with it.
25819 (choose_face_font): Delete arguments FACE and C. New arg
25820 FONT_SPEC. Change caller.
25821 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
25822 Change caller.
25823 (realize_non_ascii_face): New function.
25824 (realize_x_face): Call load_face_font here.
25825 (realize_tty_face): Delete argument C. Change caller.
25826 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
25827 get a face ID.
25828 (dump_realized_face): Don't print charset of FACE.
25829
25830 * xfns.c (x_set_font): Always call x_new_fontset and
25831 store_frame_parameter.
25832 (Fx_create_frame): Call x_new_fontset, not x_new_font.
25833 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
25834
25835 * xterm.h (x_get_font_repertory): Extern it.
25836
25837 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
25838 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
25839 it->multibyte_p is zero.
25840 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
25841 (x_new_fontset): If FONTSETNAME doesn't match any existing
25842 fontsets, create a new one.
25843 (x_get_font_repertory): New function.
25844
258452008-02-01 Kenichi Handa <handa@m17n.org>
25846
25847 * coding.c (Ffind_coding_systems_region_internal): Detect an
25848 ASCII only string correctly.
25849
25850 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
25851 version is 0.
25852
258532008-02-01 Kenichi Handa <handa@m17n.org>
25854
25855 * lread.c: Include "coding.h".
25856 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
25857 (load_each_byte, unread_char): New variables.
25858 (readchar_backlog): Delete.
25859 (readchar): Return a character unless load_each_byte is nonzero.
25860 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
25861 cons. If unread_char is not -1, simply return it.
25862 (unreadchar): Handle the case that readcharfun is
25863 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
25864 (read_multibyte): Delete.
25865 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
25866 (read_emacs_mule_char): New functions.
25867 (Fload): Even if the file doesn't have the extension ".elc", if
25868 safe_to_load_p returns a positive version number, assume that the
25869 file contains bytecompiled code. If the version is less than 22,
25870 load the file while decoding multibyte sequences by emacs-mule.
25871 (readevalloop): Don't use readchar_backlog.
25872 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
25873 (Fread_from_string): Pay attention to the case that STREAM is a cons.
25874 (read_escape): Delete the arg BYTEREP.
25875 (read1): Set load_each_byte to 1 temporarily while handling
25876 #@NUMBER. Don't call read_multibyte.
25877 (read_vector): Call Fread with a cons. If readcharfun is
25878 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
25879 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
25880 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
25881 and Qload_force_doc_strings.
25882
258832008-02-01 Kenichi Handa <handa@m17n.org>
25884
bba3e508
SM
25885 * xdisp.c (face_before_or_after_it_pos):
25886 Call FETCH_MULTIBYTE_CHAR with byte postion, not char position.
aac0c6e3
MR
25887
258882008-02-01 Kenichi Handa <handa@m17n.org>
25889
25890 * character.h (TRAILING_CODE_P): New macro.
25891 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
25892 (string_char_with_unification): Fix prototype.
25893 (Vscript_alist): Extern it.
25894
25895 * character.c (Vscript_alist): New variable.
25896 (string_char_with_unification, str_as_unibyte)
25897 (string_escape_byte8): Add `const' to local variables.
25898 (syms_of_character): Declare script-alist as a Lisp variable.
25899
25900 * charset.h (Vcharset_ordered_list): Extern it.
25901 (charset_ordered_list_tick): Extern it.
25902 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
25903 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
25904 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
25905 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
25906 (Funify_charset): Adjust for the change of Funify_charset.
25907
25908 * charset.c (charset_ordered_list_tick): New variable.
25909 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
25910 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
6e051c0a 25911 deunify instead of unify a charset.
aac0c6e3
MR
25912 (string_xstring_p): Add `const' to local variables.
25913 (find_charsets_in_text): Add `const' to arguments and local variables.
bba3e508
SM
25914 (encode_char): Adjust for the change of Funify_charset.
25915 Fix detecting of invalid code.
aac0c6e3
MR
25916 (Fset_charset_priority): Increment charset_ordered_list_tick.
25917 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
25918 and TO_CODE.
25919
25920 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
25921 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
25922 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
25923 (decode_coding_ccl, consume_chars)
25924 (Ffind_coding_systems_region_internal)
25925 (Fcheck_coding_systems_region): Add `const' to local variables.
25926
25927 * print.c (print_object): Use octal form for printing the
25928 contents of a bool vector.
25929
259302008-02-01 Dave Love <fx@gnu.org>
25931
25932 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
25933 <version == 20>: Refuse to load.
25934
259352008-02-01 Dave Love <fx@gnu.org>
25936
25937 * fns.c: Move coding.h.
25938 (Qcodeset, Qdays, Qmonths): New.
25939 (concat): Use CHARACTERP instead of INTEGERP.
25940 (Flocale_codeset): Delete.
25941 (Flanginfo): New function.
25942 (syms_of_fns): Change accordingly.
25943
25944 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
25945
259462008-02-01 Dave Love <fx@gnu.org>
25947
bba3e508
SM
25948 * casetab.c (init_casetab_once, init_casetab_once):
25949 Fix CHAR_TABLE_SET call.
aac0c6e3
MR
25950
25951 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
25952
25953 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
25954
25955 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
25956 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
25957 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
25958
25959 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
25960
25961 * coding.c (ENCODE_DESIGNATION, decode_eol)
25962 (make_conversion_work_buffer, code_conversion_restore)
25963 (Fdefine_coding_system_internal): Convert Lisp types.
25964 (code_conversion_restore): Use EQ, not ==.
25965 (Fencode_coding_string): Fix code_convert_string call.
25966
25967 * coding.h (code_convert_region): Fix prototype.
25968
25969 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
25970
25971 * fontset.c (fontset_ref, fontset_set, fs_load_font)
25972 (Ffontset_info): Convert Lisp types.
25973
25974 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
25975
25976 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
25977
25978 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
25979
25980 * chartab.c: Include "...h", not <...h> in some cases.
25981
25982 * callproc.c (Fcall_process): Remove unused variables.
25983
259842008-02-01 Dave Love <fx@gnu.org>
25985
25986 * coding.c (Fset_coding_system_priority): Allow null arg list.
25987
259882008-02-01 Dave Love <fx@gnu.org>
25989
25990 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
25991 (Fself_insert_and_exit): Use CHARACTERP.
25992
25993 * callproc.c (Fcall_process): Remove unused vars.
25994
25995 * xterm.c (XTread_socket): Add extra dead keysyms.
25996
25997 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
25998
25999 * dispextern.h: Remove prototypes for redraw_frame,
26000 redraw_garbaged_frames.
26001
26002 * cmds.c (Fself_insert_command): Use CHARACTERP.
26003
26004 * chartab.c (make_sub_char_table): Remove unused var.
26005 (Fset_char_table_default, Fmap_char_table): Doc fix.
26006
26007 * keymap.c (access_keymap): Remove generic char code.
26008 (push_key_description): Use CHARACTERP.
26009
260102008-02-01 Dave Love <fx@gnu.org>
26011
26012 * charset.c: Doc fixes.
26013 (Funify_charset): Extra checking.
26014
260152008-02-01 Dave Love <fx@gnu.org>
26016
26017 * lread.c: Remove some unused variables.
26018 (safe_to_load_p): If safe, return the magic number version byte.
26019 (Fload): Maybe use load-with-code-conversion.
26020
260212008-02-01 Kenichi Handa <handa@m17n.org>
26022
26023 * category.c (Fmodify_category_entry): Don't modify the contents
bba3e508
SM
26024 of category_set for characters out of the range.
26025 Avoid unnecessary modification.
aac0c6e3
MR
26026
26027 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
26028 Vchar_unify_table. The default value of the table is now nil.
26029
26030 * character.c (syms_of_character): Setup Vchar_width_table for
26031 eight-bit-control and raw-byte chars.
26032
bba3e508
SM
26033 * charset.h (enum define_charset_arg_index):
26034 Delete charset_arg_parents and add charset_arg_subset and
aac0c6e3
MR
26035 charset_arg_superset.
26036 (enum charset_attr_index): Delete charset_parents and add
26037 charset_subset and charset_superset.
26038 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
26039 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
26040 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
26041 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
26042 (CHARSET_SUPERSET): New macros.
26043 (charset_work): Extern it.
26044 (ENCODE_CHAR): Use charset_work.
26045 (CHAR_CHARSET_P): Adjust for the change of encoder format.
26046 (map_charset_chars): Extern it.
26047
26048 * charset.c (load_charset_map): Set the default value of encoder
26049 and deunifier char-tables to nil.
bba3e508
SM
26050 (map_charset_chars): Change argument. Change callers.
26051 Use map_char_table_for_charset instead of map_char_table.
aac0c6e3
MR
26052 (Fmap_charset_chars): New optional args from_code and to_code.
26053 (Fdefine_charset_internal): Adjust for the change of
26054 `define-charset' (:parents -> :subset or :superset).
26055 (charset_work): New variable.
26056 (encode_char, syms_of_charset): Adjust for the change of
26057 Fdefine_charset_internal.
26058 (Ffind_charset_string): Setup the vector `charsets' correctly.
26059
bba3e508
SM
26060 * chartab.c (sub_char_table_ref_and_range): New arg default.
26061 Fix the previous change.
aac0c6e3
MR
26062 (char_table_ref_and_range): Adjust for the above change.
26063 (map_sub_char_table_for_charset): New function.
26064 (map_char_table_for_charset): New function.
26065
26066 * keymap.c (describe_vector): Handle a char-table directly here.
26067 (describe_char_table): Delete.
26068
26069 * lisp.h (map_charset_chars): Delete.
26070
260712008-02-01 Dave Love <fx@gnu.org>
26072
26073 * fns.c (count_combining): Comment out (unused).
26074 (Flocale_codeset): New.
26075 (syms_of_fns): Defsubr it.
26076
26077 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
26078 (size_t): Remove.
26079
260802008-02-01 Dave Love <fx@gnu.org>
26081
26082 * Makefile.in (chartab.o): Depend on charset.h.
26083
260842008-02-01 Kenichi Handa <handa@m17n.org>
26085
26086 * character.c (syms_of_character): Set the default value of
26087 Vprintable_chars to Qnil.
26088
260892008-02-01 Dave Love <fx@gnu.org>
26090
26091 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
26092
260932008-02-01 Kenichi Handa <handa@m17n.org>
26094
26095 * charset.c (load_charset_map): Handle the case that from < to
26096 correctly.
26097
26098 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
26099 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
26100 Pay attention to raw-8-bit chars.
26101
261022008-02-01 Kenichi Handa <handa@m17n.org>
26103
26104 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
26105 It is not bytecompiled now.
26106
26107 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
26108 (charset_jisx0208): New variables.
26109 (Fdefine_charset_internal): Setup them if appropriate.
26110 (init_charset_once): Initialize them to -1.
26111
26112 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
26113 (charset_jisx0208): Extern them.
26114
26115 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
26116 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
26117 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
26118 (setup_iso_safe_charsets): Fix arguments to Fassq.
26119 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
26120 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
26121 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
26122 (encode_coding_iso_2022): Change the 1st arg to
26123 ENCODE_ISO_CHARACTER to a variable.
26124
261252008-02-01 Kenichi Handa <handa@m17n.org>
26126
26127 * charset.h (enum define_charset_arg_index): New enums
26128 charset_arg_min_code and charset_arg_max_code.
26129 (struct charset): New member char_index_offset.
26130
26131 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
26132 Take charset->char_index_offset into account.
26133 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
26134 args[charset_arg_max_code]. Setup charset.char_index_offset.
26135 (syms_of_charset): Fix args to Fdefine_charset_internal.
26136
261372008-02-01 Dave Love <fx@gnu.org>
26138
26139 * coding.c (decode_coding_utf_8): Reject overlong sequences.
26140
261412008-02-01 Dave Love <fx@gnu.org>
26142
26143 * coding.c: Doc fixes.
26144 (Fcoding_system_aliases): Fix return value.
26145 (Qmac): Remove (duplicated) definition.
26146
261472008-02-01 Dave Love <fx@gnu.org>
26148
362654a6
JB
26149 * charset.c (Fcharset_priority_list, Fset_charset_priority):
26150 New functions.
aac0c6e3
MR
26151
26152 * character.c (Fstring): Doc fix.
26153
26154 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
26155
362654a6 26156 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
26157 (font-encoding-alist): Doc fix.
26158
261592008-02-01 Dave Love <fx@gnu.org>
26160
26161 * term.c (costs_set): Declare static, non-initialized for pcc.
26162 (encode_terminal_code): Remove unused var.
26163
26164 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
26165 for K&R.
26166
26167 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
26168
26169 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
26170 (suffixes): Move out of make_subsidiaries for K&R.
26171
26172 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
26173
26174 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
26175
261762008-02-01 Dave Love <fx@gnu.org>
26177
26178 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
26179
26180 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
26181
261822008-02-01 Yong Lu <lyongu@asia-infonet.com>
26183
26184 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
26185
26186 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
26187
261882008-02-01 Kenichi Handa <handa@m17n.org>
26189
26190 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
26191 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
26192
261932008-02-01 Kenichi Handa <handa@m17n.org>
26194
26195 * coding.c (decode_coding_charset): Adjust for the change of
26196 Fdefine_coding_system_internal.
26197 (Fdefine_coding_system_internal): For a coding system of
26198 `charset' type, store a list of charset IDs in
26199 `charset_attr_charset_valids' element of coding attributes.
26200
262012008-02-01 Kenichi Handa <handa@m17n.org>
26202
26203 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
bba3e508
SM
26204 (emacs_mule_char): New arg src. Delete arg `composition'.
26205 Change caller. Handle 2-byte and 3-byte charsets correctly.
aac0c6e3
MR
26206 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
26207 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
26208 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
ef1b0ba7
SM
26209 (DECODE_EMACS_MULE_21_COMPOSITION):
26210 Call DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
aac0c6e3
MR
26211 sequence.
26212 (decode_coding_emacs_mule): Handle composition correctly. Rewind
26213 `src' and `consumed_chars' correctly before calling emacs_mule_char.
26214 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
26215 and alt&rule composition.
26216 (decode_coding_iso_2022): Handle composition correctly.
26217 (init_coding_once): Setup emacs_mule_bytes for private charsets.
26218
26219 * charset.c (Fdefine_charset_internal): Fix bug for the case of
26220 re-defining a charset. If the charset has :emacs-mule-id, setup
26221 emacs_mule_bytes.
26222 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
26223
262242008-02-01 Kenichi Handa <handa@m17n.org>
26225
26226 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
26227 (encode_coding_big5, encode_coding_charset): If coding requires safe
26228 encoding, produce a character specified by
26229 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
26230
262312008-02-01 Dave Love <fx@gnu.org>
26232
26233 * xterm.c (XSetIMValues): Declare.
26234
26235 * process.c: Conditionally include sys/wait.h, pty.h.
26236
26237 * print.c (print_object): Fix print format for 64-bit systems.
26238
26239 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
26240
26241 * buffer.c (emacs_strerror): Declare.
26242
26243 * fontset.c (Fclear_face_cache): Declare.
26244 (accumulate_font_info): Comment-out (unused).
26245 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
26246 variables.
26247
26248 * character.h (string_escape_byte8): Declare.
26249
bba3e508
SM
26250 * charset.c (load_charset_map, load_charset_map_from_file):
26251 Remove unused vars.
aac0c6e3
MR
26252 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
26253 (Fmap_charset_chars): Doc fix.
26254
26255 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
26256 (Fset_coding_system_priority, Fset_coding_system_priority)
26257 (Fdefine_coding_system_internal): Doc fix.
26258
262592008-02-01 Dave Love <fx@gnu.org>
26260
26261 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
26262
262632008-02-01 Kenichi Handa <handa@m17n.org>
26264
26265 * character.c (string_escape_byte8): Make multibyte string with
26266 correct size.
26267
26268 * charset.c (Fmake_char): Delete unnecessary code.
26269
262702008-02-01 Kenichi Handa <handa@m17n.org>
26271
26272 * xfns.c (x_encode_text): Allocate coding.destination here, and
26273 call encode_coding_object with dst_object Qnil.
26274
26275 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
26276 multibyte form correctly.
26277
26278 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
26279 against Vfont_encoding_alist.
26280
26281 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
26282 handling of charset list.
26283 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
26284 (decode_coding_object): Move point to coding->dst_pos before
26285 calling post-read-conversion function.
26286 (encode_coding_object): Give correct arguments to
26287 pre-write-conversion. Ignore the return value of
26288 pre-write-conversion function. Pay attention to the case that
26289 pre-write-conversion changes the current buffer. If dst_object is
26290 Qt, even if coding->src_bytes is zero, allocate at least one byte
26291 to coding->destination.
26292
26293 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
26294
26295 * charset.c (Fmake_char): Make it more backward compatible.
26296 (Fmap_charset_chars): Fix docstring.
26297
262982008-02-01 Dave Love <fx@gnu.org>
26299
26300 * coding.c: Doc fixes.
26301 (Fdefine_coding_system_alias): Use names, not symbols, in
26302 coding-system-alist.
26303
263042008-02-01 Kenichi Handa <handa@m17n.org>
26305
26306 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
26307 of calling free_realized_face.
26308
263092008-02-01 Yong Lu <lyongu@asia-infonet.com>
26310
26311 * charset.c (read_hex): Don't treat SPC as a comment starter.
26312 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
26313 (Fdecode_char): Fix typo.
26314
263152008-02-01 Kenichi Handa <handa@m17n.org>
26316
26317 * charset.h (struct charset): New member `code_space_mask'.
26318
26319 * coding.c (coding_set_source): Delete the local variable beg_byte.
26320 (encode_coding_charset, Fdefine_coding_system_internal):
26321 Delete the local variable charset.
bba3e508
SM
26322 (Fdefine_coding_system_internal):
26323 Setup attrs[coding_attr_charset_valids] correctly.
aac0c6e3
MR
26324
26325 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
26326 member to check if CODE is valid or not.
26327 (Fdefine_charset_internal): Initialize `code_space_mask' member.
26328 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
26329 is within the range of charset->min_code and carset->max_code.
26330
263312008-02-01 Dave Love <fx@gnu.org>
26332
26333 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
26334
26335 * dispextern.h (generate_ascii_font): Fix return type.
26336
26337 * xfaces.c (generate_ascii_font): Fix arg declaration.
26338
26339 * coding.c (coding_inherit_eol_type)
26340 (Fset_terminal_coding_system_internal)
26341 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
26342
263432008-02-01 Kenichi Handa <handa@m17n.org>
26344
bba3e508
SM
26345 * coding.c (decode_coding_charset, encode_coding_charset):
26346 Handle multiple charsets correctly.
aac0c6e3
MR
26347
263482008-02-01 Kenichi Handa <handa@m17n.org>
26349
26350 * search.c (boyer_moore): Fix handling of multibyte character
26351 translation.
26352
26353 * xdisp.c (display_mode_element): When the variable `elt' is
26354 changed, update `this' and `lisp_string'.
26355
263562008-02-01 Kenichi Handa <handa@m17n.org>
26357
26358 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
26359
26360 * callproc.c (Fcall_process): Be sure to give the current buffer
26361 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
26362
26363 * charset.c (struct charset_map_entries): New struct.
26364 (load_charset_map): Rename from parse_charset_map. New args
26365 entries and n_entries. Change caller.
26366 (load_charset_map_from_file): Rename from load_charset_map.
26367 Change caller. New arg control_flag. Call load_charset_map at
26368 the tail.
26369 (load_charset_map_from_vector): New function.
26370 (Fdefine_charset_internal): Setup charset.compact_codes_p.
26371 (encode_char): If the charset is compact, change a character index
26372 to a code point.
26373
26374 * coding.c (coding_alloc_by_making_gap): Check the case that the
26375 source and destination are the same correctly.
26376 (decode_coding_raw_text): Set coding->consumed_char and
26377 coding->consumed to 0.
26378 (produce_chars): If coding->chars_at_source is nonzero, update
26379 coding->consumed_char and coding->consumed before calling
26380 alloc_destination.
26381 (Fdefine_coding_system_alias): Register ALIAS in
26382 Vcoding_system_alist.
26383 (syms_of_coding): Define `no-conversion' coding system at the tail.
26384
26385 * fileio.c (Finsert_file_contents): Set coding_system instead of
26386 val. If the current buffer is multibyte, always call
26387 decode_coding_gap.
26388
26389 * xfaces.c (try_font_list): Give higher priority to fontset's
26390 family than face's family.
26391
263922008-02-01 Kenichi Handa <handa@m17n.org>
26393
26394 * callproc.c (Fcall_process): Be sure to give the current buffer
26395 to decode_coding_c_string.
26396
26397 * xfaces.c (try_font_list): Give a family specified in a fontset
26398 higher priority than a family specified in a face.
26399
264002008-02-01 Kenichi Handa <handa@m17n.org>
26401
26402 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
26403 Fix arguments to insert_from_buffer.
26404
26405 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
26406
264072008-02-01 Kenichi Handa <handa@m17n.org>
26408
26409 * coding.c (produce_chars): Set the variable `multibytep' correctly.
26410 (decode_coding_gap): Set coding->dst_multibyte correctly.
26411
264122008-02-01 Kenichi Handa <handa@m17n.org>
26413
26414 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
26415 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
26416 (encode_coding_utf_16): Substitute coding->default_char for
26417 non-Unicode characters.
26418 (decode_coding): Don't call record_insert here.
26419 (setup_coding_system): Initialize `surrogate' of
26420 coding->spec.utf_16 to 0.
26421 (EMIT_ONE_BYTE): Fix for multibyte case.
26422
26423 * insdel.c (insert_from_gap): Call record_insert.
26424
264252008-02-01 Kenichi Handa <handa@m17n.org>
26426
26427 * casefiddle.c (casify_region): Fix multibyte case.
26428
26429 * character.c (c_string_width): Add return type `int'.
26430 (char_string_with_unification): Delete arg ADVANCED.
26431
26432 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
26433 (CHAR_STRING): Adjust for the change of char_string_with_unification.
26434 (CHAR_STRING_ADVANCE): Make it do-while statement.
26435
26436 * chartab.c (sub_char_table_set_range): Optimize for the case
26437 DEPTH == 3. Add workaround code for a GCC optimization bug.
26438
26439 * charset.c (parse_charset_map): Remove an unused variable.
26440
26441 * coding.c: Delete unused variables.
26442
26443 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
26444 earlier. If inserted is zero and the coding system doesn't
26445 require flushing, don't call decode_coding_gap.
26446
26447 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
26448
264492008-02-01 Kenichi Handa <handa@m17n.org>
26450
26451 The following changes are for using Unicode as an internal
26452 character model, and use UTF-8 format for buffer/string
26453 representation.
26454
26455 * .gdbinit (xchartable): Adjust for the change of char table structure.
26456 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
26457
26458 * Makefile.in (obj): Add character.o and chartab.o.
26459 (lisp, shortlisp): Remove utf-8.elc.
26460 (*.o): For many files, change dependency on charset.h to
26461 character.h, and add dependency on character.h.
26462 (character.o, chartab.o): New targets.
26463
26464 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
26465 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
26466 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
26467 of "charset.h".
26468
26469 * dired.c, filelock.c: Include "character.h".
26470
26471 * alloc.c: Include "character.h" instead of "charset.h".
26472 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
26473 (syms_of_alloc): Remove defsubr for Smake_char_table.
26474
26475 * buffer.c: Include "character.h" instead of "charset.h", don't
26476 include "coding.h".
26477 (Fset_buffer_multibyte): Adjust for UTF-8.
26478
26479 * buffer.h: EXFUN Fbuffer_live_p.
26480
26481 * callproc.c: Include "character.h" instead of "charset.h".
26482 (Fcall_process): Big change for the new code-conversion APIs.
26483
26484 * casetab.c: Include "character.h" instead of "charset.h".
26485 (set_canon, set_identity, shuffle): Adjust for the new
26486 map_char_table spec.
26487 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
26488 accessing the char table structure.
26489
26490 * chartab.c: New file that implements char table.
26491
26492 * category.c: Include "character.h".
26493 (copy_category_entry): New function.
26494 (copy_category_table): Call map_char_table and copy_category_entry.
26495 (Fmake_category_table): Initialize all top-level slots.
26496 (char_category_set): New function.
26497 (modify_lower_category_set): Delete.
26498 (Fmodify_category_entry): Call char_table_ref_and_range.
26499
26500 * category.h (CATEGORY_SET): Just call char_category_set.
26501
26502 * ccl.c: Include "character.h".
26503 (Qccl, Qcclp): New variables.
26504 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
26505 it's less than 256.
26506 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
26507 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
26508 and DST type.
26509 (ccl_driver): Change types of argument, adjust code accordingly.
26510 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
26511 ccl_driver.
26512 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
26513
26514 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
26515 New members src_multibyte, dst_multibyte, consumed, and produced.
26516 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
26517 (CODING_SPEC_CCL_PROGRAM): New macro.
26518 (ccl_driver): Update prototype.
26519 (Qccl, Qcclp, Fccl_program_p): Extern them.
26520 (CHECK_CCL_PROGRAM): New macro.
26521
26522 * character.c, character.h, chartab.c: New files.
26523
26524 * charset.c: Mostly re-written. Move character and multibyte sequence
26525 handling codes to character.c.
26526
26527 * charset.h: Mostly re-written. Move character and multibyte sequence
26528 handling codes to character.h.
26529
26530 * coding.c, coding.h: Mostly re-written.
26531
26532 * composite.c: Include "character.h" instead of "charset.h".
26533 (CHAR_WIDTH): Move to character.h.
26534 (HASH_KEY, HASH_VALUE): Delete.
26535
26536 * composite.h (enum composition_method): Change order of enumeration
26537 symbols.
26538
26539 * data.c: Include "character.h" instead of "charset.h".
26540 (Faref): Call CHAR_TABLE_REF for a char table.
26541 (Faset): Call CHAR_TABLE_SET for a char table.
26542
26543 * dispextern.h (free_realized_face, check_face_attribytes)
26544 (generate_ascii_font): Extern them.
26545 (free_realized_multibyte_face): Delete extern.
26546
26547 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
26548 table structure.
26549
26550 * editfns.c: Include "character.h" instead of "charset.h".
26551 (Fchar_to_string): Always call CHAR_STRING.
26552
26553 * emacs.c (main): Call init_charset_once, init_charset,
26554 syms_of_chartab, and syms_of_character.
26555
26556 * fileio.c: Include "character.h" instead of "charset.h".
26557 (Finsert_file_contents): Big change for the new code-conversion API.
26558 (choose_write_coding_system, Fwrite_region): Likewise.
26559 (build_annotations_2): Delete.
26560 (e_write): Big change for the new code-conversion API.
26561
26562 * fns.c: Include "character.h" instead of "charset.h".
26563 (copy_sub_char_table): Move to chartab.c.
26564 (Fcopy_sequence): Call copy_char_table for a char table.
26565 (concat): Delete codes calling count_multibyte.
26566 (string_char_to_byte, string_byte_to_char): Adjust for the new
26567 multibyte form.
26568 (internal_equal): Adjust for the change of char table structure.
26569 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
26570 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
26571 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
26572 (char_table_translate, optimize_sub_char_table)
26573 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
26574 chartab.c.
26575 (char_table_ref_and_index): Delete.
26576 (HASH_KEY, HASH_VALUE): Move to lisp.h.
26577 (Fmd5): Call preferred_coding_system instead of accessing
26578 Vcoding_category_list. Adjust for the new code-conversion API.
26579 (syms_of_fns): Move defsubr for char table related functions to
26580 chartab.c.
26581
26582 * fontset.c: Mostly re-written.
26583
26584 * fontset.h (struct font_info): Change type of the member encoding_type.
26585 (enum FONT_SPEC_INDEX): New enum.
26586 (fontset_font_pattern, fs_load_font): Update prototype.
26587 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
26588
26589 * indent.c: Include "character.h" instead of "charset.h".
26590 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
26591
26592 * insdel.c: Include "character.h" instead of "charset.h".
26593 (copy_text): Don't refer to Vnonascii_translation_table.
26594 (insert_from_gap): New function.
26595
26596 * keyboard.c: Include "character.h" instead of "charset.h".
26597 (command_loop_1): Never call direct_output_forward_char before
26598 a non-ASCII character.
26599 (read_char): If Vkeyboard_translate_table is a char table, always
26600 translate a character.
26601
26602 * keymap.c: Include "character.h".
26603 (store_in_keymap): Handle the case that IDX is a cons.
26604 (Fdefine_key): Handle the case that KEY is a cons and the car part
26605 is also a cons (range).
26606 (push_key_description): Adjust for the new character code.
26607 (describe_vector): Call describe_char_table for a char table.
26608 (describe_char_table): New function.
26609
26610 * keymap.h (describe_char_table): Extern it.
26611
26612 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
26613 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
26614 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
26615 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
26616 Delete.
26617 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
26618 structure.
26619 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
26620 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
26621 (CHARTAB_SIZE_BITS_3): New macros.
26622 (chartab_size): Extern it.
26623 (struct Lisp_Char_Table): Re-design.
26624 (struct Lisp_Sub_Char_Table): New structure.
26625 (HASH_KEY, HASH_VALUE): Move from fns.c.
26626 (CHARACTERBITS): Define as 22.
26627 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
26628 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
26629 (GC_SUB_CHAR_TABLE_P): New macro.
26630 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
ef1b0ba7 26631 (code_convert_string_norecord): Delete extern.
aac0c6e3
MR
26632 (init_character_once, syms_of_character, init_charset)
26633 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
26634
26635 * lread.c: Include "character.h".
26636 (read_multibyte): New arg NBYTES.
26637 (read_escape): Change the meaning of returned *BYTEREP.
26638 (to_multibyte): Delete.
26639 (read1): Adjust the handling of char table and string.
26640
26641 * print.c: Include "character.h" instead of "charset.h".
26642 (print_string): Convert 8-bit raw bytes to octal form by
26643 string_escape_byte8.
26644 (print_object): Adjust for the new multibyte form. Print 8-bit
26645 raw bytes always in octal form. Handle sub char table correctly.
26646
26647 * process.c: Include "character.h" instead of "charset.h".
26648 (read_process_output, send_process): Adjust for the new
26649 code-conversion API.
26650
26651 * puresize.h (BASE_PURESIZE): Increase.
26652
26653 * regex.c: Include "character.h" instead of "charset.h".
26654 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
26655 (regex_compile): Accept a range whose starting and ending
26656 character have different leading bytes.
26657 (analyse_first): Adjust for the above change.
26658
26659 * search.c: Include "character.h" instead of "charset.h".
26660 (search_buffer, boyer_moore): Adjust for the new multibyte form.
26661 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
26662
26663 * syntax.c: Include "character.h" instead of "charset.h".
26664 (syntax_parent_lookup): Delete.
26665 (Fmodify_syntax_entry): Accept a cons as CHAR.
26666 (skip_chars): Adjust for the new multibyte form.
26667 (init_syntax_once): Call char_table_set_range instead of directly
26668 accessing the structure of a char table.
26669
26670 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
26671 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
26672 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
26673 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
26674
26675 * term.c: Include "buffer.h" and "character.h".
26676 (encode_terminal_code, write_glyphs): Adjust for the new
26677 code-conversion API.
26678 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
26679
26680 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
26681
26682 * xdisp.c: Include "character.h".
26683 (get_next_display_element): Adjust for the new multibyte form.
26684 (disp_char_vector): Adjust for the new char table structure.
26685 (decode_mode_spec_coding): Adjust for the new structure of
26686 coding system.
26687 (decode_mode_spec): Adjust for the new code-conversion API.
26688
26689 * xfaces.c: Include "character.h" instead of "charset.h".
26690 (load_face_font): Adjust for the change of choose_face_font and
26691 FS_LOAD_FONT.
26692 (generate_ascii_font): New function.
26693 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
26694 (set_font_frame_param): Adjust for the change of choose_face_font.
26695 (free_realized_face): Make it public.
26696 (free_realized_faces_for_fontset): Rename from
26697 free_realized_multibyte_face. Free also faces realized for ASCII.
26698 (choose_face_font): Change arguments. Adjust for the change of
26699 fontset_font_pattern and FS_LOAD_FONT.
26700
26701 * xfns.c: Include "character.h".
26702 (x_encode_text): Adjust for the new code-conversion API.
26703
26704 * xselect.c: Don't include "charset.h".
26705 (selection_data_to_lisp_data): Adjust for the new code conversion API.
26706
26707 * xterm.c: Include "character.h".
26708 (x_encode_char): New argument CHARSET. Change caller.
26709 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
26710 Call ENCODE_CHAR instead of SPLIT_CHAR.
26711 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
26712 CHAR_WIDTH instead of CHARSET_WIDTH.
26713 (XTread_socket): Adjust for the new code-conversion API.
26714 (x_new_font): Adjust for the change of FS_LOAD_FONT.
26715 (x_load_font): Adjust for the change of struct font.
26716
267172008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
26718
26719 * xfaces.c (face_at_buffer_position): Remove unused vars.
26720
267212008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
26722
26723 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
26724 Fix overflow checking.
26725
267262008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
26727
26728 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
26729 Cancel previous change.
26730
267312008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
26732
26733 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
26734 ccl->eight_bit_control. Fix check for buffer overflow.
26735 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
26736 (ccl_driver): Initialize extra_bytes to 0.
26737
267382008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
26739
26740 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
26741 return it ORed with ctrl_modifier.
26742
267432008-01-29 Miles Bader <miles@gnu.org>
26744
26745 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
26746
267472008-01-28 Jason Rumney <jasonr@gnu.org>
26748
26749 * w32.c (stat): Don't double check for networked drive.
26750
267512008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
26752
26753 * window.c (run_window_configuration_change_hook): New function.
26754 Code extracted from set_window_buffer. Set the selected frame.
26755 (set_window_buffer): Use it.
26756 * window.h (run_window_configuration_change_hook): Declare.
26757 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
26758
26759 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
26760
267612008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
26762
26763 * Makefile.in: Remove references to unused macros.
26764
267652008-01-26 Eli Zaretskii <eliz@gnu.org>
26766
26767 * w32.c (g_b_init_get_sid_sub_authority)
26768 (g_b_init_get_sid_sub_authority_count): New static variables.
26769 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
26770 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
26771 (init_user_info): Use them to retrieve uid and gid.
26772 Use 500/513, the Windows defaults, as Administrator's uid/gid.
26773 (fstat): Use pw_uid and pw_gid from the_passwd structure for
26774 st_uid and st_gid of the file.
26775
267762008-01-26 Jason Rumney <jasonr@gnu.org>
26777
26778 * w32.c (logon_network_drive): New function.
26779 (stat): Use it.
26780
267812008-01-26 Chong Yidong <cyd@stupidchicken.com>
26782
26783 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
26784 invisible text covered with an ellipsis.
26785
267862008-01-25 Richard Stallman <rms@gnu.org>
26787
26788 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
26789 jump back to beginning. Move some other initializations after that.
26790 (Qwindow_text_change_functions, Vwindow_text_change_functions):
26791 New variables.
26792 (syms_of_xdisp): Init them.
26793
26794 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
26795
26796 * buffer.c (reset_buffer_local_variables):
26797 Implement `permanent-local-hook'.
26798 (Qpermanent_local_hook): New variable.
26799 (syms_of_buffer): Init and staticpro it.
26800
268012008-01-25 Michael Albinus <michael.albinus@gmx.de>
26802
26803 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
26804
268052008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
26806
26807 * fns.c (Fclrhash): Return TABLE.
26808
268092008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26810
26811 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
26812 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
26813 is set even without positional changes.
26814 (x_scroll_bar_clear): Set bar->redraw_needed_p.
26815
26816 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
26817
268182008-01-23 Jason Rumney <jasonr@gnu.org>
26819
26820 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
26821
26822 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
26823 the unicode range available in MULE by locale-coding-system.
26824 Improve dbcs lead byte detection. Set event timestamp and modifiers
26825 earlier.
26826
268272008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26828
26829 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
26830 [MAC_OSX] (init_mac_osx_environment): Initialize it.
26831 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
26832 when used on child processes.
26833
268342008-01-21 Michael Albinus <michael.albinus@gmx.de>
26835
26836 * dbusbind.c (Fdbus_method_return_internal): Rename from
26837 Fdbus_method_return.
26838 (Fdbus_unregister_object): Move to dbus.el.
26839 (Fdbus_call_method, Fdbus_method_return_internal)
26840 (Fdbus_send_signal): Improve debug messages.
26841
268422008-01-20 Martin Rudalics <rudalics@gmx.at>
26843
26844 * undo.c (undo_inhibit_record_point): New variable.
26845 (syms_of_undo): Initialize it.
26846 (record_point): Don't record point when undo_inhibit_record_point
26847 is set.
26848
268492008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
26850
26851 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
26852
26853 * xdisp.c (Qauto_hscroll_mode): New var.
26854 (syms_of_xdisp): Initialize it.
26855 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
26856 window's buffer.
26857 (hscroll_windows): Don't check automatic_hscrolling_p here.
26858
26859 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
26860 vscroll if we're setting window-buffer to the value it already has.
26861
268622008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
26863
26864 * m/intel386.h: Remove references to XENIX.
26865
268662008-01-17 Andreas Schwab <schwab@suse.de>
26867
26868 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
26869 instead of HAVE_X86_64_LIB64_DIR.
26870 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
26871
268722008-01-17 Glenn Morris <rgm@gnu.org>
26873
26874 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
26875 to HAVE_X86_64_LIB64_DIR.
26876
268772008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
26878
26879 * s/irix3-3.h:
26880 * s/irix4-0.h:
26881 * s/386-ix.h:
26882 * s/domain.h:
26883 * s/hpux9-x11r4.h:
26884 * s/hpux9shxr4.h: Remove files for systems no longer supported.
26885
26886 * sysdep.c: Remove code containing references to symbols defined
26887 by unsupported systems.
26888
268892008-01-16 Glenn Morris <rgm@gnu.org>
26890
26891 * coding.c (select-safe-coding-system-function): Doc fix.
26892
268932008-01-15 Glenn Morris <rgm@gnu.org>
26894
26895 * config.in: Revert 2008-01-13 change: this is a generated file.
26896
268972008-01-13 Tom Tromey <tromey@redhat.com>
26898
26899 * lisp.h: Fix typo.
26900
269012008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
26902
26903 * m/sequent-ptx.h:
26904 * m/sequent.h:
26905 * s/ptx.h:
26906 * s/ptx4-2.h:
26907 * s/ptx4.h: Remove files for systems no longer supported.
26908
26909 * callproc.c (Fcall_process): Fix previous change.
26910
269112008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
26912
26913 * unexsunos4.c: Remove file, system not supported anymore.
26914
26915 * m/mips.h:
26916 * m/intel386.h:
26917 * callproc.c:
26918 * config.in:
26919 * ecrt0.c:
26920 * emacs.c:
26921 * fileio.c:
26922 * frame.c:
26923 * getpagesize.h:
26924 * keyboard.c:
26925 * lread.c:
26926 * process.c:
26927 * puresize.h:
26928 * sysdep.c:
26929 * systty.h:
26930 * syswait.h:
26931 * unexec.c:
26932 * xdisp.c:
26933 * alloc.c: Remove code containing references to symbols defined by
26934 unsupported systems.
26935
269362008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
26937
26938 * coding.c (detect_coding_mask): Fix previous change.
26939
269402008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
26941
26942 * coding.c (detect_coding_iso2022): New arg
26943 latin_extra_code_state. Allow Latin extra codes only
26944 when *latin_extra_code_state is nonzero.
26945 (detect_coding_mask): If there is a NULL byte, detect the encoding
26946 as UTF-16 or binary. If Latin extra codes exist, detect the
26947 encoding as ISO-2022 only when there's no other proper encoding is
26948 found.
26949
269502008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26951
26952 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
26953 #ifdef MAC_OS.
26954
269552008-01-08 Richard Stallman <rms@gnu.org>
26956
26957 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
26958
269592008-01-06 Nick Roberts <nickrob@snap.net.nz>
26960
26961 * keyboard.c (parse_menu_item): Don't enclose key bindings on
26962 menu bar in parentheses.
26963
269642008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
26965
26966 * m/7300.h:
26967 * m/acorn.h:
26968 * m/alliant-2800.h:
26969 * m/alliant.h:
26970 * m/alliant1.h:
26971 * m/alliant4.h:
26972 * m/altos.h:
26973 * m/amdahl.h:
26974 * m/apollo.h:
26975 * m/att3b.h:
26976 * m/aviion-intel.h:
26977 * m/aviion.h:
26978 * m/celerity.h:
26979 * m/clipper.h:
26980 * m/cnvrgnt.h:
26981 * m/convex.h:
26982 * m/cydra5.h:
26983 * m/delta88k.h:
26984 * m/dpx2.h:
26985 * m/dual.h:
26986 * m/elxsi.h:
26987 * m/f301.h:
26988 * m/gould-np1.h:
26989 * m/gould.h:
26990 * m/i860.h:
26991 * m/ibmps2-aix.h:
26992 * m/ibmrt-aix.h:
26993 * m/ibmrt.h:
26994 * m/irist.h:
26995 * m/is386.h:
26996 * m/isi-ov.h:
26997 * m/mega68.h:
26998 * m/mg1.h:
26999 * m/news-r6.h:
27000 * m/news-risc.h:
27001 * m/news.h:
27002 * m/nh3000.h:
27003 * m/nh4000.h:
27004 * m/ns16000.h:
27005 * m/ns32000.h:
27006 * m/nu.h:
27007 * m/orion.h:
27008 * m/orion105.h:
27009 * m/paragon.h:
27010 * m/pfa50.h:
27011 * m/plexus.h:
27012 * m/pyramid.h:
27013 * m/pyrmips.h:
27014 * m/sh3el.h:
27015 * m/sps7.h:
27016 * m/sr2k.h:
27017 * m/stride.h:
27018 * m/sun1.h:
27019 * m/sun2.h:
27020 * m/sun3-68881.h:
27021 * m/sun3-fpa.h:
27022 * m/sun3-soft.h:
27023 * m/sun3.h:
27024 * m/sun386.h:
27025 * m/symmetry.h:
27026 * m/tad68k.h:
27027 * m/tahoe.h:
27028 * m/targon31.h:
27029 * m/tek4300.h:
27030 * m/tekxd88.h:
27031 * m/tower32.h:
27032 * m/tower32v3.h:
27033 * m/ustation.h:
27034 * m/wicat.h:
27035 * m/xps100.h:
27036 * s/cxux.h:
27037 * s/cxux7.h:
27038 * s/dgux.h:
27039 * s/dgux4.h:
27040 * s/dgux5-4-3.h:
27041 * s/dgux5-4r2.h:
27042 * s/esix.h:
27043 * s/esix5r4.h:
27044 * s/hiuxmpp.h:
27045 * s/hiuxwe2.h:
27046 * s/iris3-5.h:
27047 * s/iris3-6.h:
27048 * s/isc2-2.h:
27049 * s/isc3-0.h:
27050 * s/isc4-0.h:
27051 * s/isc4-1.h:
27052 * s/newsos5.h:
27053 * s/newsos6.h:
27054 * s/osf1.h:
27055 * s/osf5-0.h:
27056 * s/riscix1-1.h:
27057 * s/riscix12.h:
27058 * s/sco4.h:
27059 * s/sco5.h:
27060 * s/sunos4-0.h:
27061 * s/sunos4-1.h:
27062 * s/sunos413.h:
27063 * s/sunos4shr.h:
27064 * s/umax.h:
27065 * s/unipl5-2.h:
27066 * s/xenix.h:
27067 * cxux-crt0.s:
27068 * unexapollo.c:
27069 * unexconvex.c:
27070 * unexenix.c:
27071 * unexsni.c: Remove files for systems no longer supported.
27072
27073 * m/intel386.h: Remove references to unsupported systems.
27074
27075 * w32.c (get_emacs_configuration): Remove reference to i860.
27076
27077 * sysdep.c: Remove dead code.
27078
270792008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
27080
27081 * s/rtu.h:
27082 * m/masscomp.h: Remove files. Platform is obsolete.
27083
270842008-01-04 Michael Albinus <michael.albinus@gmx.de>
27085
27086 * dbusbind.c (Fdbus_method_return): New function.
27087 (xd_read_message): Add the serial number to the event.
27088 (Fdbus_register_method): Activate the function.
27089
270902008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
27091
27092 * keyboard.c (read_key_sequence): Fix typo.
27093
270942008-01-03 Michael Albinus <michael.albinus@gmx.de>
27095
27096 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
27097 (xd_signature, xd_append_arg): Handle element type detection for
27098 empty arrays.
27099 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
27100 SDATA () calls; this must be solved more general.
27101 (Fdbus_register_signal): Use SBYTES instead of strlen.
27102
271032008-01-03 Magnus Henoch <magnus@zemdatav>
27104
27105 * dbusbind.c (xd_append_arg): Use unsigned char instead of
27106 unsigned int for byte values (necessary for big-endian platform).
27107 (Fdbus_call_method): Handle the case of no returned arguments.
27108
271092007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
27110
27111 * dbusbind.c (xd_read_message): Use non-static input_event struct.
27112
271132007-12-31 Magnus Henoch <mange@freemail.hu>
27114
27115 * dbusbind.c (xd_signature): Signature of variant is just "v".
27116
271172007-12-30 Michael Albinus <michael.albinus@gmx.de>
27118
27119 * dbusbind.c: Fix several errors and compiler warnings.
27120 Reported by Tom Tromey <tromey@redhat.com>.
27121 (XD_ERROR, XD_DEBUG_MESSAGE)
27122 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
27123 (xd_append_arg): Part for basic D-Bus types rewritten.
27124 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
27125 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
27126 appropriate.
27127 (xd_read_message): Return Qnil. Don't signal an error; it is not
27128 useful during event reading.
27129 (Fdbus_register_signal): Signal an error if the check for
27130 FUNCTIONP fails.
27131 (Fdbus_register_method): New function. The implementation is not
27132 complete, the call of the function signals an error therefore.
27133 (Fdbus_unregister_object): New function, renamed from
27134 Fdbus_unregister_signal. The initial check signals an error, if
27135 the object is not well formed.
27136
271372007-12-30 Richard Stallman <rms@gnu.org>
27138
27139 * textprop.c (get_char_property_and_overlay):
27140 Signal error if POSITION is out of range in a buffer.
27141
271422007-12-29 Martin Rudalics <rudalics@gmx.at>
27143
27144 * w32fns.c (Fx_create_frame): Make copy of frame parameters
27145 because the original parameters are in pure storage now.
27146
271472007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27148
27149 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
27150
271512007-12-22 Eli Zaretskii <eliz@gnu.org>
27152
27153 * callint.c (syms_of_callint) <command-history>: Add reference to
27154 history-length in the doc string.
27155
271562007-12-17 Jason Rumney <jasonr@gnu.org>
27157
27158 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
27159 before passing as wParam.
27160
271612007-12-22 Michael Albinus <michael.albinus@gmx.de>
27162
27163 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
27164 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
27165 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
27166 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
27167 as number.
27168 (Fdbus_call_method): Fix docstring.
27169
271702007-12-21 Michael Albinus <michael.albinus@gmx.de>
27171
27172 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
27173 New macros.
27174 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
27175 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
27176 Simplify.
27177 (xd_signature): New function.
27178 (xd_append_arg): Compute also signatures. Major rewrite.
27179 (xd_retrieve_arg): Make debug messages friendly.
27180 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
27181 Check for signatures of arguments.
27182
271832007-12-19 Michael Albinus <michael.albinus@gmx.de>
27184
27185 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
27186 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
27187 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
27188 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
27189 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
27190 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
27191 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
27192 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
27193 (xd_retrieve_value): Remove. Functionality included in ...
27194 (xd_append_arg): New function.
27195 (Fdbus_call_method, Fdbus_send_signal): Apply it.
27196
271972007-12-16 Michael Albinus <michael.albinus@gmx.de>
27198
27199 * dbusbind.c (top): Include <stdio.h>.
27200 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
27201 dbus_message_new_method_call and dbus_message_new_signal.
27202 (Fdbus_register_signal): Rename unique_name to uname.
27203 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
27204 non-existing unique name. Fix typos in matching rule. Return an
27205 object which is useful in Fdbus_unregister_signal.
27206 (Fdbus_unregister_signal): Reimplementation, in order to remove
27207 only the corresponding entry.
27208 (Vdbus_registered_functions_table): Change the order of entries.
27209 Apply these changes in xd_read_message and Fdbus_register_signal.
27210
272112007-12-16 Andreas Schwab <schwab@suse.de>
27212
27213 * fileio.c (Finsert_file_contents): Fix overflow check to not
27214 depend on undefined integer overflow.
27215
272162007-12-14 Jason Rumney <jasonr@gnu.org>
27217
27218 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
27219 for characters above 127.
27220
272212007-12-13 Jason Rumney <jasonr@gnu.org>
27222
27223 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
27224 before dereferencing array.
27225 (lookup_vk_code): Remove zero comparison.
27226
272272007-12-14 Michael Albinus <michael.albinus@gmx.de>
27228
27229 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
27230 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
27231 Use `unsigned int' instead of `uint'.
27232 (xd_read_message, Fdbus_register_signal): Split expressions into
27233 multiple lines before operators "&&" and "||", according to the
27234 GNU Coding Standards.
27235
272362007-12-14 Eli Zaretskii <eliz@gnu.org>
27237
27238 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
27239
272402007-12-12 Juri Linkov <juri@jurta.org>
27241
27242 * buffer.c (Frename_buffer): In interactive spec replace
27243 `read-buffer' with `read-string' that uses `buffer-name-history'
27244 as history, and the current buffer's name as default.
27245
272462007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
27247
27248 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
27249 manipulating the backtrace manually.
27250 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
27251 (struct backtrace, backtrace_list): Remove.
27252 (command_loop_1): Remove dead var `no_direct'.
27253
27254 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
27255 preserve non-built-in buffer-local variables.
27256 (Fkill_all_local_variables): Don't re-create&re-set permanent
27257 buffer-local variables.
27258
272592007-12-09 Juri Linkov <juri@jurta.org>
27260
27261 * buffer.c (Frename_buffer): Change interactive spec from "s" to
27262 Lisp code that uses `read-buffer' with current buffer as default.
27263
272642007-12-08 Michael Albinus <michael.albinus@gmx.de>
27265
27266 * dbusbind.c (xd_read_message): Generate an event for every
27267 registered handler. There might be several handlers registered
27268 for the same signal.
27269 (Fdbus_register_signal): Don't overwrite a registration for the
27270 same signal. Add a new registration if handlers are different.
27271 (Vdbus_registered_functions_table): Rework doc string.
27272
272732007-12-07 Michael Albinus <michael.albinus@gmx.de>
27274
27275 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
27276 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
27277 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
27278 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
27279 Unify argument lists.
27280 (xd_read_message, Fdbus_register_signal): Reorder and extend event
27281 arguments and hash table keys. Use unique name for service.
27282 (Fdbus_unregister_signal): Remove checks.
27283 (Vdbus_registered_functions_table): Fix doc string.
27284
272852007-12-05 Magnus Henoch <mange@freemail.hu>
27286
27287 * process.c (make_process): Initialize pty_flag to 0.
27288
272892007-12-05 Jason Rumney <jasonr@gnu.org>
27290
27291 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
27292 specified XBMs.
27293
272942007-12-05 Richard Stallman <rms@gnu.org>
27295
27296 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
27297
272982007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27299
27300 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
27301 New variable.
27302 (mac_try_close_socket) [MAC_OSX]: New function.
27303 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
27304 Update cfsockets_for_select. Replace invalid CFRunLoop source.
27305
27306 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
27307 Use mac_try_close_socket.
27308
273092007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27310
27311 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
27312 reloc_base.
27313 (copy_dysymtab): Compute relocation base here.
27314 (rebase_reloc_address) [__ppc64__]: New function.
27315 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
27316 changed.
27317
273182007-12-05 Jason Rumney <jasonr@gnu.org>
27319
27320 * w32proc.c (sys_spawnve): Quote args with wildcards.
27321
273222007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27323
27324 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
27325 __objc_* sections.
27326 (unrelocate) [_LP64]: Set relocation base to address of data segment.
27327
273282007-12-05 Michael Albinus <michael.albinus@gmx.de>
27329
27330 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
27331 Move check for Vdbus_registered_functions_table to
27332 xd_read_queued_messages.
27333 (xd_read_queued_messages): Protect xd_read_message calls by
27334 internal_condition_case_1.
27335
273362007-12-04 Michael Albinus <michael.albinus@gmx.de>
27337
27338 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
27339 Qdbus_system_bus and Qdbus_session_bus, respectively.
27340 (Vdbus_intern_symbols): Remove.
27341 (Vdbus_registered_functions_table): New hash table.
27342 (XD_SYMBOL_INTERN_SYMBOL): Remove.
27343 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
27344 Rewrite in order to manage registered functions by hash table
27345 Vdbus_registered_functions_table.
27346
273472007-12-03 Jan Djärv <jan.h.d@swipnet.se>
27348
27349 * xterm.c: Update URL to Window Manager Specification in comment.
27350
273512007-12-02 Michael Albinus <michael.albinus@gmx.de>
27352
27353 * config.in (HAVE_DBUS): Add.
27354
27355 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
27356 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
27357 (obj): Add $(DBUS_OBJ).
27358 (LIBES): Add $(DBUS_LIBS).
27359 (dbusbind.o): New target.
27360
27361 * dbusbind.c: New file.
27362
27363 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
27364
27365 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
27366 (Qdbus_event): New Lisp symbol.
27367 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
27368 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 27369 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
27370
27371 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
27372
273732007-12-01 Richard Stallman <rms@gnu.org>
27374
27375 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
27376
273772007-11-30 Jason Rumney <jasonr@gnu.org>
27378
27379 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
27380 (w32con_reset_terminal_modes): Clear screen buffer.
27381 (w32_face_attributes): Don't use color indexes that are out of range.
27382 Only reverse the default colors.
27383
27384 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
27385 WINDOWSNT.
27386
27387 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
27388
273892007-11-29 Jason Rumney <jasonr@gnu.org>
27390
27391 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
27392 (w32_face_attributes): Use Vtty_defined_color_alist to determine
27393 if the terminal colors are initialized.
27394 (unspecified_fg, unspecified_bg): Remove unused declarations.
27395
273962007-11-29 Andreas Schwab <schwab@suse.de>
27397
27398 * keyboard.c (apply_modifiers): Fix typo.
27399
274002007-11-29 Richard Stallman <rms@gnu.org>
27401
27402 * keymap.c (Fcurrent_local_map): Doc fix.
27403
274042007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
27405
27406 * s/gnu-kfreebsd.h: New file.
27407
274082007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
27409
27410 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
27411 Don't cast redundantly.
27412
27413 * keyboard.c (KEY_TO_CHAR): New macro.
27414 (parse_modifiers, apply_modifiers): Accept integer arguments.
27415 (read_key_sequence): Use them to unify the "shift->unshift" mapping
27416 for chars and symbol keys.
27417 After doing such remapping, apply function-key-map again.
27418
274192007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
27420
27421 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
27422 compiled anymore.
27423
274242007-11-26 Andreas Schwab <schwab@suse.de>
27425
27426 * process.c (list_processes_1): Fix indentation level of the
27427 command column.
27428
274292007-11-23 Andreas Schwab <schwab@suse.de>
27430
27431 * editfns.c (Fformat): Handle %c specially since it requires the
27432 argument to be of type int.
27433
274342007-11-23 Markus Triska <markus.triska@gmx.at>
27435
27436 * emacs.c (main): Call init_editfns before init_process, since
27437 init_process sets Vprocess_connection_type depending on OS release.
27438
274392007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
27440
27441 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
27442 (find_symbol_value): Use do_symval_forwarding.
27443
27444 * data.c (set_internal): Set the value in the `cons-cell' (for
27445 Buffer_Local_values) not only for frame-local variables.
27446
274472007-11-22 Andreas Schwab <schwab@suse.de>
27448
27449 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
27450 values to sprintf.
27451 * keymap.c (Fsingle_key_description): Likewise.
27452 * print.c (print_object): Likewise.
27453
274542007-11-22 Jan Djärv <jan.h.d@swipnet.se>
27455
27456 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
27457 file for image is nil.
27458
274592007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
27460
27461 * term.c: Include stdarg.h.
27462 (fatal): Implement using varargs.
27463 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
27464
274652007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
27466
27467 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
27468 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
27469 Update call to buffer_slot_type_mismatch.
27470 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
27471 (buffer_slot_type_mismatch): Update.
27472 * buffer.c (buffer_local_types): Remove.
27473 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
27474 (defvar_per_buffer): Set the type in the buffer_objfwd.
27475
274762007-11-21 Jason Rumney <jasonr@gnu.org>
27477
27478 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
27479 CreateFileMapping returns NULL on failure.
27480
274812007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
27482
27483 * search.c (Fset_match_data): Remove the `evaporate' feature.
27484 (unwind_set_match_data): Don't use the `evaporate' feature.
27485
274862007-11-21 Jason Rumney <jasonr@gnu.org>
27487
27488 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
27489
27490 * w32console.c (w32con_write_glyphs): Remove unused variables.
27491
274922007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
27493
27494 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
27495
27496 * s/darwin.h (MULTI_KBOARD): Remove.
27497
27498 * macfns.c (x_create_tip_frame, Fx_create_frame)
27499 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
27500
275012007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
27502
27503 * buffer.c (Fbuffer_local_value): Remove redundant test.
27504 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
27505 than in `current-buffer' to match the comment.
27506 Do the swap using swap_in_global_binding.
27507
27508 * data.c (store_symval_forwarding, set_internal):
27509 * eval.c (specbind): Remove dead code.
27510
27511 * coding.c (detect_coding, Fupdate_coding_systems_internal):
27512 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
27513 Since we do not want to see internal Lisp_*fwd objects here.
27514
275152007-11-18 Jan Djärv <jan.h.d@swipnet.se>
27516
27517 * sysdep.c (init_system_name): Use getaddrinfo if available.
27518
27519 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
27520 (x_scroll_bar_note_movement): start, end, with, height in struct
27521 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
27522
275232007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
27524
27525 * puresize.h (BASE_PURESIZE): Increase to 1190000.
27526
275272007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
27528
27529 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
27530 This undoes Richard's change of 14-Oct-2002.
27531
27532 * alloc.c (allocate_other_vector):
27533 * lisp.h (allocate_other_vector): Remove.
27534
27535 * window.c (struct save_window_data): Move non-lisp data to the end
27536 and make it `int' rather than Lisp_Object.
27537 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
27538 Done wrap/unwrap integer values.
27539 (Fset_window_configuration, compare_window_configurations):
27540 Update use of fields to their new types.
27541
27542 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
27543 Turn integer fields into `int'. Merge x_window_low and x_window_high.
27544 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
27545 (SET_SCROLL_BAR_X_WINDOW): Remove.
27546 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
27547 Access the new x_window field directly.
27548 * xterm.c (x_scroll_bar_create): Use a pseudovector.
27549 Don't wrap/unwrap integers into Lisp_Objects.
27550 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
27551 (x_scroll_bar_report_motion):
27552 Don't wrap/unwrap integers into Lisp_Objects.
27553 (x_term_init): Use SDATA.
27554 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
27555 (x_scroll_bar_set_handle, x_scroll_bar_remove)
27556 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
27557 (x_scroll_bar_report_motion, x_scroll_bar_clear):
27558 * xfns.c (x_set_background_color):
27559 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
27560 Access the new x_window field directly.
27561
27562 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
27563 (allocate_pseudovector): Make non-static.
27564
27565 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
27566 (allocate_pseudovector): Declare.
27567 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
27568
275692007-11-15 Andreas Schwab <schwab@suse.de>
27570
27571 * editfns.c (Fformat): Correctly format EMACS_INT values.
27572 Also take precision into account when formatting an integer.
27573
27574 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
27575
275762007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
27577
27578 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
27579 (syms_of_keyboard): Defsubr it.
27580
27581 * data.c (swap_in_global_binding): Fix longstanding bug where
27582 store_symval_forwarding was not called with the right second argument,
27583 thus causing objfwd-ing from being dropped.
27584
275852007-11-14 Juanma Barranquero <lekktu@gmail.com>
27586
27587 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
27588 (Fx_display_pixel_height, Fx_display_planes)
27589 (Fx_display_color_cells, Fx_server_max_request_size)
27590 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
27591 (Fx_display_visual_class, Fx_display_save_under):
27592 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
27593 (Fx_display_pixel_height, Fx_display_planes)
27594 (Fx_display_color_cells, Fx_server_max_request_size)
27595 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
27596 (Fx_display_mm_height, Fx_display_mm_width)
27597 (Fx_display_backing_store, Fx_display_visual_class)
27598 (Fw32_select_font, Fx_display_save_under):
27599 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
27600 (Fx_display_pixel_height, Fx_display_planes)
27601 (Fx_display_color_cells, Fx_server_max_request_size)
27602 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
27603 (Fx_display_save_under): Fix typos in docstrings.
27604
276052007-11-14 Juanma Barranquero <lekktu@gmail.com>
27606
27607 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
27608 corresponding to deleted entries; they are an implementation detail.
27609 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
27610 Remove variables.
27611 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
27612 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
27613 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
27614 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
27615 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
27616 (Fw32_define_rgb_color, Fw32_load_color_file)
27617 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
27618 Fix typos in docstrings.
27619 (Fx_server_version): Reflow docstring.
27620 (Fw32_shell_execute): Doc fixes.
27621
276222007-11-13 Juanma Barranquero <lekktu@gmail.com>
27623
27624 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
27625 if w32_parse_hot_key returned nil.
27626
276272007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
27628
27629 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
27630
276312007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 27632
aac0c6e3
MR
27633 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
27634
27635 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
27636
27637 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
27638 Remove W32_SCROLL_BAR_CLICK_EVENT.
27639
27640 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
27641 Add MULTIMEDIA_KEY_EVENT.
27642
27643 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
27644 (lispy_multimedia_keys) [WINDOWSNT]: New array.
27645 (make_lispy_event) [WINDOWSNT]: Use it to translate
27646 MULTIMEDIA_KEY_EVENT.
27647
27648 * w32term.h (WM_APPCOMMAND): Define if not already.
27649 (GET_APPCOMMAND_LPARAM): Likewise.
27650
27651 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
27652 WM_APPCOMMAND.
27653
27654 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
27655 (syms_of_w32fns): Export and initialize it.
27656 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
27657
276582007-11-09 Chong Yidong <cyd@stupidchicken.com>
27659
27660 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
27661 twice.
27662
27663 * xdisp.c (handle_face_prop): Fix last change.
27664
276652007-11-09 Richard Stallman <rms@gnu.org>
27666
27667 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
27668 not just for after-strings and before-strings.
27669 Call face_for_overlay_string and pass the overlay to it.
27670 (handle_display_prop): Determine whether property came from an overlay.
27671 Pass OVERLAY arg to handle_single_display_spec.
27672 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
27673 (load_overlay_strings): Fill in it->string_overlays.
27674 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
27675
27676 * xfaces.c (face_for_overlay_string): Function renamed from
27677 face_at_buffer_position_no_overlays, and add arg OVERLAY.
27678
27679 * dispextern.h (struct it): New elt string_overlays.
27680 New elt from_overlay, also in stack.
27681 Rearrange a few elements.
27682 (face_for_overlay_string): Decl renamed from
27683 face_at_buffer_position_no_overlays, and add argument.
27684
276852007-11-09 Richard Stallman <rms@gnu.org>
27686
27687 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
27688 to get the base face for an overlay string.
27689
27690 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
27691
27692 * xfaces.c (face_at_buffer_position_no_overlays): New function.
27693
27694 * xdisp.c (handle_stop): Move some code out of loop.
27695
276962007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27697
27698 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
27699 Fix conversion from Lisp object to ATSUFontID.
27700
277012007-11-09 Jason Rumney <jasonr@gnu.org>
27702
27703 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
27704
277052007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27706
27707 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
27708 Don't assume regions are aligned to page boundary.
27709 (print_load_command_name): Add LC_UUID if defined.
27710
277112007-11-09 Richard Stallman <rms@gnu.org>
27712
27713 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
27714
277152007-11-07 Jason Rumney <jasonr@gnu.org>
27716
27717 * s/windows95.h: Remove.
27718
277192007-11-06 Jan Djärv <jan.h.d@swipnet.se>
27720
27721 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
27722 abort with a message on unhandled store_type values.
27723
277242007-11-01 Jan Djärv <jan.h.d@swipnet.se>
27725
27726 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
27727 Remove HAVE_X11R5 and HAVE_X11R4.
27728
277292007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
27730
27731 * Makefile.in: Remove references to sunfns.c and sunfns.o.
27732
277332007-11-01 Johan Bockgård <bojohan@gnu.org>
27734
27735 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
27736 Don't set s->stippled_p here, since it has already been set by
27737 x_set_glyph_string_gc from x_draw_glyph_string.
27738
277392007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
27740
27741 * sunfns.c: Remove file.
27742
27743 * m/sun386.h:
27744 * m/sun2.h:
27745 * m/sparc.h: Remove Sun windows code.
27746
277472007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
27748
27749 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
27750 (init_keyboard): Set current_kboard's window-system to nil.
27751 (tty_read_avail_input): Typo.
27752 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
27753
277542007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
27755
27756 * s/usg5-4.h:
27757 * s/usg5-3.h:
27758 * s/ptx.h:
27759 * m/is386.h:
27760 * m/ibmps2-aix.h:
27761 * Makefile.in: Remove all mentions of X10.
27762
27763 * dispnew.c (syms_of_display): Don't mention version 10.
27764
277652007-10-28 Juanma Barranquero <lekktu@gmail.com>
27766
27767 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
27768 ($(BLD)/abbrev.$(O)): Remove.
27769
277702007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
27771
27772 Rewrite abbrev.c in Elisp.
27773 * image.c (Qcount): Don't declare as extern.
27774 (syms_of_image): Initialize and staticpro `Qcount'.
27775 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
27776 * emacs.c (main): Don't call syms_of_abbrev.
27777 * Makefile.in (obj): Remove abbrev.o.
27778 (abbrev.o): Remove.
27779 * abbrev.c: Remove.
27780
277812007-10-26 Martin Rudalics <rudalics@gmx.at>
27782
27783 * window.c (window_min_size_2): Don't count header-line.
27784
277852007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
27786
27787 * frame.h (struct frame): Move all bit fields after the first bit
27788 field to take advantage of the available space. Group all the
27789 chars together to reduce wasted space due to padding.
27790
277912007-10-26 Juanma Barranquero <lekktu@gmail.com>
27792
27793 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
27794
27795 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
27796 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
27797 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
27798 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
27799 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
27800 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
27801 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
27802 (last_marked, mark_object_loop_halt): Make static.
27803
27804 * frame.c (syms_of_frame) <delete-frame-functions>:
27805 Fix typo in docstring.
27806
278072007-10-25 Juanma Barranquero <lekktu@gmail.com>
27808
27809 * w32.c (init_environment): Fix tiny memory leak.
27810 (w32_get_resource): Remove unused variable `ok'.
27811
278122007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
27813
27814 Make `window-system' into a keyboard-local variable (rather than
27815 frame-local as done originally by multi-tty).
27816
27817 * keyboard.h (struct kboard): Add Vwindow_system.
27818 * keyboard.c (init_kboard): Set a default for Vwindow_system.
27819 (mark_kboards): Mark Vwindow_system.
27820
27821 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
27822 (init_display): Don't set the obsolete `window-system' frame-param.
27823
27824 * xterm.c (x_term_init):
27825 * w32term.c (w32_create_terminal):
27826 * term.c (init_tty): Set Vwindow_system.
27827 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
27828 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
27829
27830 * xfns.c (Fx_create_frame, x_create_tip_frame):
27831 * w32fns.c (Fx_create_frame, x_create_tip_frame):
27832 * macfns.c (Fx_create_frame):
27833 Don't set the obsolete `window-system' frame-param.
27834
27835 * frame.h (Qwindow_system): Remove.
27836 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
27837 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
27838
278392007-10-24 Richard Stallman <rms@gnu.org>
27840
27841 * frame.c (x_figure_window_size): For fullscreen case,
27842 set USPosition | PPosition without clobbering rest of window_prompting.
27843
27844 * keyboard.c (Fcurrent_idle_time): Doc fix.
27845
27846 * print.c (Fwith_output_to_temp_buffer): Doc fix.
27847
278482007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
27849
27850 * process.c (unwind_request_sigio): Only define if __ultrix__.
27851
27852 * callproc.c (child_setup): Remove spurious *.
27853
27854 * lisp.h (Fget_text_property): Declare.
27855 (have_menus_p): Declare it here rather than in sys-dep header files.
27856 * macterm.h (have_menus_p):
27857 * msdos.h (have_menus_p):
27858 * xterm.h (have_menus_p): Remove.
27859
27860 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
27861 (Fmake_variable_frame_local): Just check the variable's const-ness
27862 rather than checking nil or t.
27863
278642007-10-22 Jason Rumney <jasonr@gnu.org>
27865
27866 * w32fns.c: Include math.h.
27867 (w32_abort): Declaration moved to nt/config.nt.
27868
27869 * s/ms-w32.h (HAVE_STDLIB_H): Define.
27870 (abort): Redefinition moved to nt/config.nt.
27871
27872 * m/windowsnt.h: Remove.
27873
278742007-10-22 Juanma Barranquero <lekktu@gmail.com>
27875
27876 * emacs.c (Fdump_emacs): Fix typo in message.
27877 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
27878 <installation-directory>: Reflow docstring.
27879
278802007-10-22 Juri Linkov <juri@jurta.org>
27881
27882 * minibuf.c: Allow minibuffer default to be a list of default values.
27883 With empty input use the first element of this list as returned default.
27884 (string_to_object)
27885 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
27886 (read_minibuf): If defalt is cons, set histstring to its car.
27887 (Fread_string): If default_value is cons, set val to its car.
27888 (Fread_buffer): If def is cons, use its car.
27889 (Fcompleting_read): If defalt is cons, set val to its car.
27890
278912007-10-21 Michael Albinus <michael.albinus@gmx.de>
27892
27893 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
27894
278952007-10-20 Juanma Barranquero <lekktu@gmail.com>
27896
27897 * doc.c (Fdocumentation): Check for advice in all cases.
27898
278992007-10-19 Chong Yidong <cyd@stupidchicken.com>
27900
27901 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
27902
279032007-10-19 Richard Stallman <rms@gnu.org>
27904
27905 * doc.c (Fdocumentation): Check for and handle an advised function.
27906
279072007-10-19 Juanma Barranquero <lekktu@gmail.com>
27908
27909 * process.c (Fset_process_filter): Doc fix.
27910
279112007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
27912
27913 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
27914 which caused key-translation-map to applied repeatedly (thus breaking
27915 double-mode).
27916
279172007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
27918
27919 * xselect.c (x_own_selection, x_handle_selection_clear)
27920 (x_clear_frame_selections):
27921 * w32menu.c (list_of_panes, list_of_items):
27922 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
27923 * textprop.c (validate_plist, interval_has_all_properties)
27924 (interval_has_some_properties, interval_has_some_properties_list)
27925 (add_properties, text_property_list):
27926 * process.c (Fget_buffer_process, list_processes_1, status_notify):
27927 * minibuf.c (Fassoc_string):
27928 * macselect.c (x_own_selection, x_clear_frame_selections)
27929 (Fx_disown_selection_internal):
27930 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
27931 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
27932
279332007-10-17 Chong Yidong <cyd@stupidchicken.com>
27934
27935 * process.c: Link to libs for calling res_init() if available.
27936 (Fmake_network_process): Call res_init() before getaddrinfo or
27937 gethostbyname, if possible.
27938
279392007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
27940
27941 * lread.c (read1): Set pvectype for char_tables.
27942
27943 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
27944 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
27945 Add type checks.
27946 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
27947
27948 * alloc.c (free_misc): Use XMISCTYPE.
27949 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
27950
279512007-10-17 Glenn Morris <rgm@gnu.org>
27952
27953 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
27954 (syms_of_minibuf): Add Qcompletion_ignore_case.
27955 * dired.c (Qcompletion_ignore_case): Change to external.
27956 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
27957 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
27958 (Fread_file_name): Use it rather than intern'ing.
27959
27960 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
27961 (Fread_coding_system): Ignore case of user input.
27962
279632007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27964
27965 * xdisp.c (handle_display_prop): Ignore display specs after
27966 replacing one when string text is being replaced.
27967 (handle_single_display_spec): Pretend as if characters with display
27968 property haven't been consumed only when buffer text is being replaced.
27969
279702007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
27971
27972 * xfns.c (Fx_create_frame, Fx_display_list):
27973 * window.c (window_fixed_size_p, enlarge_window)
27974 (shrink_window_lowest_first):
27975 * macterm.c (init_font_name_table):
27976 * macfns.c (Fx_create_frame, Fx_display_list):
27977 * lread.c (close_load_descs):
27978 * keyboard.c (read_char_x_menu_prompt):
27979 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
27980 * coding.c (code_convert_region_unwind): Test the type of an object
27981 rather than just !NILP before extracting data from it.
27982
27983 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
27984
27985 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
27986 (XMISCANY): New macro.
27987 (XMISCTYPE): Use it.
27988 (struct Lisp_Misc_Any): New type.
27989 (union Lisp_Misc): Use it.
27990 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
27991 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
27992 (find_symbol_value, set_internal, default_value, Fset_default)
27993 (Fmake_variable_buffer_local, Fmake_local_variable)
27994 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
27995 (Flocal_variable_if_set_p, Fvariable_binding_locus):
27996 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
27997 * alloc.c (allocate_buffer): Set the size and tag.
27998 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
27999 Use XMISCANY.
28000 (die): Follow the GNU convention for error messages.
28001 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
28002 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
28003 tag any more.
28004 (set_buffer_internal_1):
28005 * frame.c (store_frame_param):
28006 * eval.c (specbind):
28007 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
28008
28009 * doc.c (Fsnarf_documentation): Simplify.
28010
280112007-10-14 Juanma Barranquero <lekktu@gmail.com>
28012
28013 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
28014 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
28015
280162007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
28017
28018 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
28019
280202007-10-14 Juanma Barranquero <lekktu@gmail.com>
28021
28022 * eval.c (do_autoload): Don't save autoloads.
28023
28024 * data.c (Ffset): Save autoload of the function being set.
28025
280262007-10-07 John Paul Wallington <jpw@pobox.com>
28027
28028 * xfns.c (x_create_tip_frame): Set the `display-type' frame
28029 parameter before setting up faces.
28030
280312007-10-13 Eli Zaretskii <eliz@gnu.org>
28032
28033 * ccl.c (Fregister_code_conversion_map):
28034 * keyboard.c (append_tool_bar_item): Reformat last change.
28035
28036 * lisp.h (eabs): Rename from `abs'. All callers changed.
28037
280382007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
28039
28040 * buffer.c (add_overlay_mod_hooklist):
28041 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
28042 * fontset.c (make_fontset):
28043 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
28044 (append_tool_bar_item):
28045 * macmenu.c (grow_menu_items):
28046 * w32menu.c (grow_menu_items):
28047 * xmenu.c (grow_menu_items): Use larger_vector.
28048
280492007-10-13 Eli Zaretskii <eliz@gnu.org>
28050
28051 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
28052 selected frame'' on MSDOS).
28053
280542007-10-12 Martin Rudalics <rudalics@gmx.at>
28055
28056 * frame.c (Qexplicit_name): New variable.
28057 (x_report_frame_params): Report it in parameter alist.
28058 (syms_of_frame): Intern and staticpro it.
28059
280602007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
28061
28062 * macfns.c (x_create_tip_frame): Set terminal for frame.
28063
280642007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
28065
28066 * frame.c (Qenvironment): Remove.
28067 (syms_of_frame) <Qenvironment>: Don't initialize.
28068 (Fdelete_frame): Don't treat the `environment' param specially.
28069 * frame.h (Qenvironment): Don't declare.
28070 * callproc.c (set_initial_environment): Don't set unused frame param.
28071
28072 * frame.c (Fframe_with_environment): Remove.
28073 (syms_of_frame) <Sframe_with_environment>: Don't declare.
28074
28075 * lisp.h (Fframe_with_environment): Don't declare.
28076
280772007-10-10 Juanma Barranquero <lekktu@gmail.com>
28078
28079 * indent.c (indent_tabs_mode, last_known_column)
28080 (last_known_column_modified): Make static.
28081 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
28082
280832007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
28084
28085 * puresize.h (BASE_PURESIZE): Increase to 1170000.
28086
280872007-10-09 Jason Rumney <jasonr@gnu.org>
28088
28089 * w32term.c (x_set_window_size): Disable code that attempts to tell
28090 Lisp code about a size change before it actually happens.
28091
280922007-10-09 Richard Stallman <rms@gnu.org>
28093
28094 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
28095 return HANDLED_RETURN.
28096
280972007-10-08 Martin Rudalics <rudalics@gmx.at>
28098
28099 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
28100 when there's an unread command event.
28101
28102 * frame.c (focus_follows_mouse): Move here from frame.el to allow
28103 window autoselection act appropriately when leaving selected frame.
28104 (syms_of_frame): Initialize focus_follows_mouse.
28105 * frame.h (focus_follows_mouse): Extern it.
28106 * macterm.c (XTread_socket): When focus_follows_mouse is nil
28107 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
28108 * msdos.c (dos_rawgetc): Likewise.
28109 * w32term.c (w32_read_socket): Likewise.
28110 * xterm.c (handle_one_xevent): Likewise.
28111 * xdisp.c (syms_of_xdisp): In doc-string of
28112 mouse-autoselect-window mention focus-follows-mouse.
28113
281142007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28115
28116 * macterm.c (mac_load_query_font): Fix missing return value.
28117 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
28118 Add BLOCK_INPUT.
28119
281202007-10-08 Richard Stallman <rms@gnu.org>
28121
28122 * xdisp.c (get_window_cursor_type): Implement documented behavior
28123 for cursor-in-non-selected-windows = t.
28124
281252007-10-08 Jason Rumney <jasonr@gnu.org>
28126
28127 * w32.c (w32_get_resource): Always close registry keys.
28128
281292007-10-08 Jason Rumney <jasonr@gnu.org>
28130
28131 * makefile.w32-in (LIBS): Add COMCTL32.
28132
28133 * w32fns.c (globals_of_w32fns): Init common controls.
28134
281352007-10-08 Richard Stallman <rms@gnu.org>
28136
28137 * image.c (our_memory_buffer): Rename from omfib_buffer.
28138
281392007-10-08 Richard Stallman <rms@gnu.org>
28140
28141 * buffer.c (Foverlays_at): Doc fix.
28142
281432007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
28144
28145 * fns.c (Fplist_put): Preserve uneven tail data.
28146
281472007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
28148
28149 * termhooks.h (enum event_kind): Remove trailing comma.
28150
28151 * frame.h (enum): Remove trailing comma.
28152
281532007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
28154
28155 * w32proc.c (delete_child): Don't terminate threads of zombies.
28156
281572007-10-08 Martin Rudalics <rudalics@gmx.at>
28158
28159 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
28160
28161 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
28162 last-repeatable-command.
28163 (init_kboard): Initialize Vlast_repeatable_command.
28164 (command_loop_1): Set it to real_this_command unless that was
28165 bound to an input event.
28166 (mark_kboards): Mark it.
28167
281682007-10-08 Richard Stallman <rms@gnu.org>
28169
28170 * eval.c (condition-case): Doc fix.
28171
281722007-10-08 Masatake YAMATO <jet@gyve.org>
28173
28174 * xfaces.c (tty_supports_face_attributes_p): Fix code
28175 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
28176 was copied and not edited.
28177
281782007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
28179
28180 Add new `input-decode-map' keymap and use it for terminal
28181 escape sequences.
28182 * keyboard.h (struct kboard): Add Vinput_decode_map.
28183 Remove Vlocal_key_translation_map.
28184 * keyboard.c (read_key_sequence): Add support for input-decode-map.
28185 (init_kboard): Init input-decode-map.
28186 Replace local-key-translation-map back with key-translation-map.
28187 (syms_of_keyboard): Declare input-decode-map.
28188 Remove local-key-translation-map. Update docstrings.
28189 (mark_kboards): Mark Vinput_decode_map.
28190 Don't mark Vlocal_key_translation_map.
28191 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
28192 Replace local-key-translation-map back with key-translation-map.
28193 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
28194 Bind in input-decode-map rather than function-key-map.
28195
28196 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
28197 This was made redundant by the previous introduction of XSETPVECTYPE.
28198
281992007-10-09 Richard Stallman <rms@gnu.org>
28200
28201 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
28202
282032007-09-29 Richard Stallman <rms@gnu.org>
28204
28205 * eval.c (internal_condition_case_2, internal_condition_case_1)
28206 (internal_condition_case): Reenable abort if x_catching_errors ()
28207 to see if that really happens and why.
28208
282092007-10-06 Andreas Schwab <schwab@suse.de>
28210
28211 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
28212
282132007-10-04 Juanma Barranquero <lekktu@gmail.com>
28214
28215 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
28216
282172007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
28218
28219 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
28220
282212007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
28222
28223 * window.h (struct window):
28224 * window.c (struct save_window_data, struct saved_window):
28225 * termhooks.h (struct terminal):
28226 * process.h (struct Lisp_Process):
28227 * frame.h (struct frame):
28228 * buffer.h (struct buffer):
28229 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
28230 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
28231 The size field of (pseudo)vectors is now unsigned.
28232 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
28233
28234 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
28235 Turn `count' into an integer.
28236
28237 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
28238 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
28239 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
28240 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
28241 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
28242
28243 * alloc.c (allocate_pseudovector): New fun.
28244 (ALLOCATE_PSEUDOVECTOR): New macro.
28245 (allocate_window, allocate_terminal, allocate_frame)
28246 (allocate_process): Use it.
28247 (mark_vectorlike): New function.
28248 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
28249 (mark_terminals): Use it.
28250 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
28251 (Fmake_byte_code): Use XSETPVECTYPE.
28252
28253 * frame.c (Fframe_parameters): Minor simplification.
28254
28255 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
28256
28257 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
28258
28259 * buffer.c (Fget_buffer_create, init_buffer_once):
28260 * lread.c (defsubr):
28261 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
28262
28263 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
28264 defined differently in the m/*.h files.
28265 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
28266 (XSETPVECTYPE): New macro.
28267 (XSETPSEUDOVECTOR): Use it.
28268
28269 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
28270 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
28271
28272 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
28273 * lread.c (defvar_per_buffer):
28274 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
28275
28276 * window.c (candidate_window_p): Only consider as visible frames that
28277 are on the same terminal.
28278
28279 * m/ibms390x.h (MARKBIT): Remove unused macro.
28280
282812007-10-01 Juanma Barranquero <lekktu@gmail.com>
28282
28283 * lread.c (Fload): Fix typo in docstring.
28284
282852007-10-01 Michaël Cadilhac <michael@cadilhac.name>
28286
28287 * floatfns.c (Fexpt): Manually check for overflows, so that a power
28288 of a non-zero value can't yield zero.
28289
282902007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
28291
28292 * term.c (term_clear_mouse_face, term_mouse_highlight)
28293 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
28294
28295 * print.c (safe_debug_print): Use XHASH.
28296
28297 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
28298 Lisp elements such as tags.
28299 (XHASH): New macro.
28300 (EQ): Use it.
28301 (SREF, SSET, STRING_COPYIN): Use SDATA.
28302 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
28303
28304 * alloc.c (mark_terminal): Remove left-over declaration.
28305 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
28306 (allocate_vectorlike): Remove type argument. Adjust callers.
28307 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
28308 Only handle the one remaining MEM_TYPE_VECTORLIKE.
28309
28310 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
28311 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
28312 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
28313 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
28314 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
28315 Use them.
28316
28317 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
28318 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
28319 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
28320
283212007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
28322
28323 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
28324 loaded by default.
28325
283262007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
28327
28328 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
28329 on this tty.
28330 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
28331
28332 * term.c (mouse_face_window): Rename from Qmouse_face_window.
28333 Update all users.
28334 (handle_one_term_event): Use Gpm_DrawPointer.
28335 (Fgpm_mouse_start): Rename from Fterm_open_connection.
28336 Signal errors instead of returning nil. Always return nil.
28337 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
28338 Make it a noop if gpm-mouse was not activated.
28339 (syms_of_term): Update names.
28340
283412007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
28342
28343 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
28344 (init_sys_modes): Check that gpm_tty is the current tty.
28345
28346 * alloc.c (allocate_terminal): Set the vector size to only count the
28347 lisp fields. Initialize those to nil.
28348 (mark_object): Don't treat terminals specially.
28349 (mark_terminal): Remove.
28350 (mark_terminals): Use mark_object instead.
28351
28352 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
28353 the GC to the beginning.
28354
28355 * indent.h:
28356 * indent.c: Use EMACS_INT for ints coming from Elisp data.
28357
28358 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
28359
283602007-09-25 Jason Rumney <jasonr@gnu.org>
28361
28362 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
28363
28364 * w32console.c (create_w32cons_output): Remove.
28365
28366 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
28367
28368 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
28369 (reset_sys_modes): Use reset_terminal_modes_hook.
28370
283712007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
28372
28373 * eval.c (do_autoload): Don't output any message.
28374
283752007-09-24 Juri Linkov <juri@jurta.org>
28376
28377 * emacs.c (standard_args): Change priority of "--no-splash"
28378 from 40 to 3. Add "--no-desktop" with the same priority.
28379
283802007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
28381
28382 * alloc.c (gc_sweep): Check cons cell mark bits word by word
28383 and optimize the case where they are all 1.
28384
283852007-09-23 Johannes Weiner <hannes@saeurebad.de>
28386
28387 * lisp.h (abs): Define if not defined.
28388 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
28389 Don't define `abs', since it's defined in lisp.h.
28390
283912007-09-22 Eli Zaretskii <eliz@gnu.org>
28392
28393 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
28394 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
28395 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
28396 (init_tty): Use DEV_TTY instead of "/dev/tty".
28397 [WINDOWSNT]: No need to protect from NAME arg being null.
28398
283992007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
28400
28401 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
28402 up the tty state.
28403
284042007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
28405
28406 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
28407 (gpm_tty): Change its type.
28408 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
28409 (gpm_tty): Change its type and initialize it.
28410 (Fterm_open_connection): Check the frame is indeed a tty.
28411 Use the new gpm_tty.
28412 (Fterm_close_connection): Use the new gpm_tty.
28413 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
28414 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
28415
284162007-09-21 Juanma Barranquero <lekktu@gmail.com>
28417
28418 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
28419 underline_color, to draw strike-through.
28420
284212007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
28422
28423 * lisp.h (allocate_terminal): Declare.
28424
28425 * window.c (candidate_window_p): Consider frames that are being placed
28426 by the user as somewhere between visible and iconified.
28427 (window_loop): Prefer windows on the current frame.
28428 (Fselect_window): Move the use of select-frame to the beginning so we
28429 can just delegate all the work (it'll call us back anyway).
28430
28431 * frame.c (Qdisplay_environment_variable):
28432 * frame.h (Qdisplay_environment_variable): Delete.
28433
28434 * .gdbinit (xbacktrace): Print the arg's address rather than the value
28435 of the first arg, since that value may be a union.
28436
28437 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
28438 parameter rather than Qdisplay_environment_variable. If all else
28439 fails, look for DISPLAY in initial-environment.
28440
284412007-09-21 Glenn Morris <rgm@gnu.org>
28442
28443 * Makefile.in (emacstool): Remove target.
28444 (lisp, shortlisp): Remove termdev.elc.
28445
284462007-09-21 Markus Triska <markus.triska@gmx.at>
28447
28448 * xterm.c (x_delete_display): Compile session management conditionally.
28449
284502007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
28451
28452 * callproc.c (getenv_internal_1): New function.
28453 (getenv_internal): Use it.
28454 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
28455
28456 * terminal.c (get_terminal): Don't accept ints to represent terminals.
28457 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
28458 (Fset_terminal_parameter): Work with dead terminals as well.
28459 (Fmodify_terminal_parameters): Remove.
28460
28461 * terminal.c (get_terminal): Handle terminals.
28462 Make sure the terminal returned is live.
28463 (create_terminal): Use allocate_terminal.
28464 (mark_terminals): Move to alloc.c.
28465 (delete_terminal): Use terminal->name as liveness status.
28466 NULL out fields after freeing their contents.
28467 Don't deallocate the object.
28468 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
28469 rather than an int.
28470 (Fterminal_live_p): Accept non-integer arguments.
28471 (Fterminal_list): Return terminal objects rather than an ints.
28472
28473 * alloc.c (enum mem_type): New member for `terminal' objects.
28474 (allocate_terminal): New function.
28475 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
28476 Handle terminals.
28477 (mark_terminal): New fun.
28478 (mark_terminals): Move from terminal.c.
28479
28480 * term.c (get_tty_terminal): Don't treat output_initial specially.
28481 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
28482 (delete_tty): Use terminal->name as liveness status.
28483
28484 * termhooks.h (struct terminal): Make it into a pseudovector.
28485 Remove `deleted' replaced by checking `name's nullness.
28486
28487 * print.c (print_object): Handle terminals.
28488
28489 * lisp.h (enum pvec_type): New `terminal' pseudovector.
28490 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
28491
28492 * frame.c (make_terminal_frame):
28493 * keyboard.c (tty_read_avail_input):
28494 * w32term.c (x_delete_terminal):
28495 * xfns.c (Fx_create_frame, x_create_tip_frame):
28496 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
28497
284982007-09-20 Glenn Morris <rgm@gnu.org>
28499
28500 * process.c (Fmake_network_process): Doc fix.
28501
285022007-09-19 Jason Rumney <jasonr@gnu.org>
28503
28504 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
28505
285062007-09-19 Michaël Cadilhac <michael@cadilhac.name>
28507
28508 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
28509 Fix a C warning regarding variable constness.
28510
28511 * xterm.c (handle_one_xevent): Fix a C warning.
28512
285132007-09-18 Jason Rumney <jasonr@gnu.org>
28514
28515 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
28516
285172007-09-17 Jan Djärv <jan.h.d@swipnet.se>
28518
28519 * gtkutil.c (gdpy_def): New variable.
28520 (xg_initialize): Initialize gdpy_def.
28521 (xg_display_close): If no other display exists, set gdpy_def to a
28522 new connection.
28523
285242007-09-16 Jan Djärv <jan.h.d@swipnet.se>
28525
28526 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
28527 when we have no file name for the icon.
28528 (xg_tool_bar_expose_callback): Remove.
28529 (xg_create_tool_bar): Don't connect expose signal to
28530 xg_tool_bar_expose_callback.
28531 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
28532
285332007-09-16 Andreas Schwab <schwab@suse.de>
28534
28535 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
28536 values instead of zapping them.
28537
285382007-09-14 Glenn Morris <rgm@gnu.org>
28539
28540 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
28541 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
28542 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
28543 scope and rename to omfib_buffer for clarity.
28544 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
28545
285462007-09-14 Kenichi Handa <handa@m17n.org>
28547
28548 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
28549
285502007-09-13 Jason Rumney <jasonr@gnu.org>
28551
28552 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
28553
28554 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
28555
28556 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
28557 (mac_term_init): Call here instead, passing rif.
28558
285592007-09-13 Glenn Morris <rgm@gnu.org>
28560
28561 * s/hpux.h: No longer define `static' as nothing.
28562
285632007-09-13 Johan Bockgård <bojohan@gnu.org>
28564
28565 * callint.c (Fcall_interactively): Remove unused var `fun'.
28566
285672007-09-12 Romain Francoise <romain@orebokech.com>
28568
28569 * window.c (prefer_window_split_horizontally, display_buffer):
28570 Revert 2007-09-08 change.
28571
285722007-09-12 Glenn Morris <rgm@gnu.org>
28573
28574 * alloca.c: Remove file.
28575 * Makefile.in (alloca): Do not undef.
28576 (allocaobj, alloca.o): Remove.
28577 (otherobj): Remove allocaobj.
28578 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
28579 * regex.c (C_ALLOCA): Remove all references and code that was only
28580 used when this was defined.
28581 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
28582 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
28583 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
28584
28585 * Makefile.in (SOURCES, unlock, relock): Delete.
28586
28587 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
28588 (menu_grab_callback): All uses changed.
28589
28590 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
28591 (x_reply_selection_request): All uses changed.
28592
285932007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
28594
28595 * lread.c (load_warn_old_style_backquotes): Change message to look
28596 better when it appears in the middle of byte-compiler messages.
28597
285982007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
28599
28600 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
28601
28602 * xterm.c (x_create_terminal): Add comment.
28603
28604 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
28605
286062007-09-10 Richard Stallman <rms@gnu.org>
28607
28608 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
28609
286102007-09-10 Michaël Cadilhac <michael@cadilhac.name>
28611
28612 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
28613 (DEFUN): Document `intspec', use it instead of `prompt'.
28614
28615 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
28616
28617 * data.c (Finteractive_form): If the interactive specification starts
28618 with a `(', use it as a Lisp form.
28619
28620 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
28621 name and file modes.
28622
28623 * callint.c (Fcall_interactively): Comment fixes.
28624
286252007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
28626
28627 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
28628 and compiled functions.
28629
286302007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
28631
28632 * window.c (prefer_window_split_horizontally): New variable.
28633 (display_buffer): Consider splitting window horizontally depending
28634 on prefer_window_split_horizontally.
28635
286362007-09-08 Eli Zaretskii <eliz@gnu.org>
28637
28638 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
28639
286402007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
28641
28642 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
28643
28644 * frame.c (x_set_frame_parameters): Check number is positive before
28645 using XFASTINT.
28646
28647 * window.c (freeze_window_start): Don't presume selected_window holds
28648 a window object.
28649 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
28650
286512007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
28652
28653 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
28654
286552007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
28656
28657 * window.c (Vsplit_window_preferred_function): New var.
28658 (Fdisplay_buffer): Use it.
28659 (syms_of_window): Export, and initialize it.
28660
286612007-09-06 Pixel <pixel@mandriva.com> (tiny change)
28662
28663 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
28664
286652007-09-06 Glenn Morris <rgm@gnu.org>
28666
28667 * gtkutil.c (menu_grab_callback) <cnt>:
28668 * xselect.c (x_reply_selection_request) <cnt>: Move static
28669 variable to file scope.
28670
286712007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
28672
28673 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
28674 consistent values of selected_frame and selected_window.
28675
286762007-09-04 Jason Rumney <jasonr@gnu.org>
28677
28678 * w32console.c (initialize_w32_display): Zero unused hooks.
28679
286802007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
28681
28682 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
28683 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
28684
286852007-09-04 Jason Rumney <jasonr@gnu.org>
28686
28687 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
28688 in w32console.c. Set up input. Remove XXX comments that have been
28689 confirmed as correct.
28690
28691 * s/ms-w32.h (MULTI_KBOARD): Define.
28692
28693 * w32console.c (one_and_only_w32cons): Remove.
28694 (initialize_w32_display): Take terminal argument.
28695
28696 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
28697 initialize_w32_display.
28698 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
28699
28700 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
28701
28702 * keyboard.c (discard_mouse_events): Discard it.
28703 (make_lispy_event): Translate it to a lisp event.
28704 (lispy_wheel_names): Add wheel-left and right events.
28705 (syms_of_keyboard): Enlarge wheel_syms.
28706
28707 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
28708 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
28709
28710 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
28711
28712 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
28713 from WM_MOUSEHWHEEL.
28714 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
28715
28716 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
28717 terminal.
28718
28719 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
28720 keyboard for the terminal.
28721
287222007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
28723
28724 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
28725 (Vresume_tty_hook): Rename from Vresume_tty_functions.
28726 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
28727 and resume-tty-function to resume-tty-hook.
28728 (Fsuspend_tty, Fresume_tty): Use new names.
28729
287302007-09-02 Jan Djärv <jan.h.d@swipnet.se>
28731
28732 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
28733 if it starts with "n:".
28734
287352007-08-31 Jan Djärv <jan.h.d@swipnet.se>
28736
28737 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
28738
287392007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
28740
28741 * frame.h:
28742 * frame.c (Qterm_environment_variable): Remove.
28743 (syms_of_frame): Don't init and staticpro it.
28744
28745 * callproc.c (getenv_internal): Remove special case for $TERM.
28746
28747 * callproc.c (Vinitial_environment): New variable.
28748 (set_initial_environment): Initialize it.
28749 (syms_of_callproc): Declare it.
28750 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
28751 TERM under which a process runs is never related to the TERM in which
28752 Emacs is running.
28753
287542007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
28755
28756 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
28757 * s/darwin.h: ... do it here.
28758
287592007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
28760
28761 * lisp.h (set_initial_environment): Rename from set_global_environment.
28762
28763 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
28764 removed by mistake on the multi-tty branch.
28765
28766 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
28767 (Fmodify_frame_parameters): Return a value.
28768
28769 * image.c (png_load): Comment-out var only used in commented-out code.
28770
28771 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
28772 before passing it to mark_object.
28773
28774 * xfaces.c (internal_resolve_face_name): Return a value.
28775 (internal_resolve_face_name, resolve_face_name_error): Comment out.
28776
28777 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
28778 (x_icon): Comment-out var only used in commented-out code.
28779
287802007-08-29 Romain Francoise <romain@orebokech.com>
28781
28782 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
28783 QUIT hasn't been provided.
28784
287852007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
28786
28787 * callproc.c (child_setup, getenv_internal): Use the
28788 display-environment-variable and term-environment-variable frame params.
28789 (set_initial_environment): Initialise Vprocess_environment.
28790
28791 * config.in: Disable multi-keyboard support on a mac.
28792
28793 * frame.c (Qterm_environment_variable)
28794 (Qdisplay_environment_variable): New variables.
28795 (syms_of_frame): Intern and staticpro them.
28796 (Fmake_terminal_frame): Disable output method test.
28797
28798 * frame.h: Declare them here.
28799
28800 * macfns.c (x_set_mouse_color): Get rif from the frame.
28801 (x_set_tool_bar_lines): Don't use updating_frame.
28802 (mac_window): Add 2 new parameters for consistency with other systems.
28803 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
28804 frame parameters following what is done in X11 and w32. Don't use
28805 FRAME_MAC_DISPLAY_INFO.
28806 (Fx_open_connection, start_hourglass): Remove window-system check.
28807 (x_create_tip_frame): Get the keyboard from the terminal.
28808
28809 * macmenu.c: Reorder includes.
28810 (Fx_popup_menu): Use terminal specific mouse_position_hook.
28811
28812 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
28813 terminal parameter.
28814 (x_clear_frame): Add a frame parameter.
28815 (note_mouse_movement): Get rif from the frame.
28816 (mac_term_init): Initialize the terminal.
28817 (mac_initialize): Make static and move terminal initialization ...
28818 (mac_create_terminal): ... to this new function.
28819
28820 * macterm.h (struct mac_display_info): Add terminal.
28821 (mac_initialize): Delete declaration.
28822
28823 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
28824
28825 * sysdep.c: Comment out text after #endif.
28826
28827 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
28828 is defined. Better initialize ttys in windows. Use terminal
28829 specific mouse_position_hook.
28830
28831 * termhooks.h (union display_info): Add mac_display_info.
28832
28833 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
28834 Set the default minibuffer frame, window_system and the rest of the
28835 frame parameters following what is done in X11.
28836
28837 * w32term.c (w32_initialize): Make static.
28838
28839 * xselect.c (x_handle_selection_clear): Only access
28840 terminal->kboard when MULTI_KBOARD is defined.
28841
28842 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
28843 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
28844
288452007-08-29 Jason Rumney <jasonr@gnu.org>
28846
28847 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
28848 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
28849
28850 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
28851 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
28852
28853 * keyboard.c (restore_kboard_configuration): Only define when
28854 MULTI_KBOARD defined.
28855
28856 * makefile.w32-in: Update dependancies from Makefile.in.
28857 (OBJ1): Add terminal.$(O)
28858
28859 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
28860 Don't define function body.
28861 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
28862
28863 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
28864
28865 * w32.c (request_sigio, unrequest_sigio): Remove.
28866
28867 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
28868 (w32con_clear_frame, w32con_clear_end_of_line)
28869 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
28870 (w32con_delete_glyphs, w32con_set_terminal_window)
28871 (scroll_line, w32_sys_ring_bell): Add frame arg.
28872 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
28873 Add terminal arg.
28874 (PICK_FRAME): Remove.
28875 (w32con_write_glyphs): Use frame specific terminal coding.
28876 (one_and_only_w32cons): New global variable.
28877 (initialize_w32_display): Use it for storing hooks.
28878 (create_w32cons_output): New function.
28879
28880 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
28881 arg a frame.
28882
28883 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
28884 Set window_system.
28885 (x_set_tool_bar_lines): Don't use updating_frame.
28886 (Fx_create_frame): Set terminal and ref count.
28887 (Fx_open_connection): Remove window-system check.
28888
28889 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
28890
28891 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
28892 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
28893 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
28894 Add frame arg.
28895 (x_delete_terminal, w32_create_terminal): New functions.
28896 (w32_term_init): Create a terminal.
28897 (w32_initialize): Move terminal specific initialization to
28898 w32_create_terminal.
28899
28900 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
28901 (w32_clear_rect, w32_clear_area): Use background from frame.
28902 (w32_display_info): Add terminal.
28903 (w32_sys_ring_bell, x_delete_display): Declare here.
28904
28905 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
28906
28907 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
28908
289092007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
28910
28911 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
28912 Fix get_named_tty calls for the controlling tty.
28913
289142007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
28915
194d44e7 28916 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
aac0c6e3
MR
28917
289182007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
28919
28920 * term.c (tty_insert_glyphs): Add missing first parameter.
28921
289222007-08-29 Károly Lőrentey <karoly@lorentey.hu>
28923
28924 * buffer.c (Fbuffer_list, Fbury_buffer):
28925 Take frame->buried_buffer_list into account.
28926
28927 * cm.c (current_tty): New variable, for cmputc().
28928 (cmputc): Use it.
28929 (cmcheckmagic): Add tty parameter, look up terminal streams there.
28930 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
28931 (cmgoto): Add tty parameter. Pass it on to calccost().
28932 Use emacs_tputs() instead of tputs().
28933
28934 * cm.h (emacs_tputs): New macro to set current_tty, and then call
28935 tputs().
28936 (current_tty): New variable, for cmputc().
28937 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
28938
28939 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
28940 (internal_condition_case, internal_condition_case_1)
28941 (internal_condition_case_2): Don't abort when x_catching_errors.
28942
28943 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
28944 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
28945 prevent crashes caused by bogus longjmps in read_char.
28946
28947 * keymap.h (Fset_keymap_parent): Add EXFUN.
28948
28949 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
28950 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
28951 Remove redundant definition.
28952
28953 * macfns.c (x_set_mouse_color, x_make_gc):
28954 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
28955
28956 * w32term.c (x_free_frame_resources):
28957 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
28958 (w32_initialize): Use the accessor macros for terminal characteristics.
28959
28960 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
28961 Use the accessor macros for terminal characteristics.
28962 * msdos.c (internal_terminal_init): Use the accessor macros for
28963 terminal characteristics.
28964 (ScreenVisualBell, internal_terminal_init):
28965 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
28966
28967 * termopts.h (no_redraw_on_reenter): Declare.
28968
28969 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
28970 (mark_terminals, mark_ttys): Declare.
28971 (Fgarbage_collect): Call them.
28972 (mark_object): Mark buried_buffer_list.
28973
28974 * prefix-args.c: Include stdlib.h for exit.
28975
28976 * syssignal.h: Add comment.
28977
28978 * indent.c: Include stdio.h.
28979
28980 * window.h (Vinitial_window_system): Declare.
28981 (Vwindow_system): Delete declaration.
28982
28983 * fontset.c (Finternal_char_font): Use FRAME_RIF.
28984
28985 * image.c (lookup_image): Don't initialize `c' until the xasserts
28986 have been run.
28987
28988 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
28989 FRAME_FOREGROUND_PIXEL.
28990
28991 * print.c (print_preprocess): Don't lose print_depth levels while
28992 iterating.
28993
28994 * widget.c (update_from_various_frame_slots):
28995 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
28996
28997 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
28998 frames.
28999 (window_internal_height): Remove bogus make_number call.
29000 (init_window_once): Call make_terminal_frame with two zero parameters.
29001
29002 * fileio.c (Fread_file_name): Update comment.
29003
29004 * callint.c (Fcall_interactively):
29005 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
29006 Make sure it is correctly unwound.
29007
29008 * xsmfns.c (x_session_close): New function.
29009
29010 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
29011 Delete declarations.
29012
29013 * xterm.h: Remove declaration for x_fully_uncatch_errors.
29014 (x_output): Remove background_pixel and foreground_pixel fields.
29015 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
29016 (x_delete_device, x_session_close): Declare.
29017
29018 * lread.c: Include setjmp.h. Update declaration of `read_char'.
29019 (read_filtered_event): Call `read_char' with a local
29020 `wrong_kboard_jmpbuf'.
29021
29022 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
29023 Don't call single_kboard_state. Use FRAME_RIF.
29024
29025 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
29026 systems.
29027
29028 * lisp.h (set_process_environment): Rename to `set_global_environment'.
29029 (Fframe_with_environment, Fset_input_meta_mode)
29030 (Fset_quit_char): EXFUN.
29031 (x_create_device, tty_output, terminal, tty_display_info): Declare.
29032 (init_sys_modes, reset_sys_modes): Update prototypes.
29033 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
29034
29035 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
29036 Vlocal_key_translation_map, and Vkeyboard_translate_table.
29037 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
29038 Delete declarations.
29039 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
29040 (temporarily_switch_to_single_kboard, tty_read_avail_input):
29041 New declarations.
29042
29043 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
29044 already does that during init_display(). Call syms_of_keymap
29045 before syms_of_keyboard. Call `syms_of_terminal'.
29046 Call set_initial_environment, not set_process_environment.
29047 (shut_down_emacs): Call reset_all_sys_modes() instead of
29048 reset_sys_modes().
29049
29050 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
29051 (internal_resolve_face_name, resolve_face_name_error): New functions.
29052 (resolve_face_name): Protect against loops and errors thrown by Fget.
29053 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
29054 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
29055
29056 * scroll.c: Replace CURTTY() with local variables throughout the
29057 file (where applicable).
29058 (calculate_scrolling, calculate_direct_scrolling)
29059 (scrolling_1, scroll_cost): Use the accessor macros for terminal
29060 characteristics.
29061
29062 * keymap.c (Vfunction_key_map): Remove.
29063 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
29064 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
29065 (Vkey_translation_map): Remove.
29066 (syms_of_keymap): Remove DEFVAR for key-translation-map.
29067 (Fdescribe_buffer_bindings)
29068 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
29069 Update for terminal-local key-translation-map.
29070
29071 * Makefile.in (callproc.o): Update dependencies.
29072 (lisp, shortlisp): Add termdev.elc.
29073 (obj): Add terminal.o.
29074 (terminal.o): Add dependencies.
29075 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
29076 (data.o, fns.o): Add termhooks.h dependency.
29077 (SOME_MACHINE_LISP): Add dnd.elc.
29078 (minibuf.o): Fix typo.
29079 Update dependencies.
29080
29081 * data.c (do_symval_forwarding, store_symval_forwarding)
29082 (find_symbol_value): Use the selected frame's keyboard, not
29083 current_kboard.
29084
29085 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
29086 Vwindow_system.
29087
29088 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
29089 Fmenu_bar_open.
29090 (syms_of_xmenu): Update defsubr.
29091 (mouse_position_for_popup, Fx_popup_menu)
29092 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
29093 (set_frame_menubar, free_frame_menubar)
b97439ce 29094 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
29095 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
29096 an X frame.
29097
29098 * xselect.c (x_own_selection): Abort if not an X frame.
29099 (some_frame_on_display): Check if it is an X frame.
29100 (x_handle_selection_clear): Deal with MULTI_KBOARD.
29101
29102 * coding.c: Include frame.h and termhooks.h.
29103 (terminal_coding, keyboard_coding): Delete.
29104 (Fset_terminal_coding_system_internal)
29105 (Fset_keyboard_coding_system_internal)
29106 (Fkeyboard_coding_system)
29107 (Fterminal_coding_system): Add a terminal parameter.
29108 Get terminal_coding from the terminal.
29109 (init_coding_once): Don't call setup_coding_system here.
29110
29111 * dispextern.h (set_scroll_region, turn_off_insert)
29112 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
29113 (tty_clear_end_of_line, tty_setup_colors)
29114 (delete_tty, updating_frame)
29115 (produce_special_glyphs, produce_glyphs, write_glyphs)
29116 (insert_glyphs): Remove.
29117 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
29118 (tty_turn_off_highlight, get_tty_size): Add declaration.
29119 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
29120
29121 * frame.h (enum output_method): Add output_initial.
29122 (struct x_output): Delete.
29123 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
29124 Access foreground_pixel and background_pixel directly from the frame.
29125 (tty_display): Delete.
29126 (struct frame): Add buried_buffer_list, foreground_pixel,
29127 background_pixel and terminal. Delete kboard.
29128 (union output_data): Add tty.
29129 (FRAME_KBOARD): Get the kboard from the terminal.
29130 (FRAME_INITIAL_P): New macro.
29131 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
29132 (Qterm_environment_variable, Qdisplay_environment_variable)
29133 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
29134 New declarations.
29135
29136 * termchar.h (tty_output, tty_display_info): New structures.
29137 (tty_list): Declare.
29138 (FRAME_TTY, CURTTY): New macros.
29139 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
29140 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
29141 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
29142 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
29143
29144 * callproc.c: Include frame.h and termhooks.h, for terminal
29145 parameters.
29146 (add_env): New function.
29147 (child_setup): Use it.
29148 (child_setup, getenv_internal): Handle the new Vprocess_environment.
29149 (getenv_internal): Fix get_terminal_param call.
29150 (Fgetenv_internal, egetenv): Update doc.
29151 (syms_of_callproc): Initialize Vprocess_environment to nil.
29152 Register and initialize them. Remove obsolete defvars. Update doc
29153 strings.
29154 (child_setup): Handle Vlocal_environment_variables.
29155 (getenv_internal): Add terminal parameter.
29156 Handle Vlocal_environment_variables.
29157 (Fgetenv_internal): Add terminal parameter.
29158 (child_setup, getenv_internal, Fgetenv_internal): Store the local
29159 environment in a frame (not terminal) parameter. Update doc strings.
29160 (set_initial_environment): Rename from set_global_environment.
29161 Store Emacs environment in initial frame parameter.
29162
29163 * xdisp.c (redisplay_internal): Update references to
29164 `previous_terminal_frame'.
29165 (display_mode_line, Fformat_mode_line): Replace calls to
29166 `push_frame_kboard' with `push_kboard'.
29167 (get_glyph_string_clip_rects): Add extra parentheses and
29168 braces to prevent compiler warnings.
29169 (calc_pixel_width_or_height): Add xassert to check that the
29170 frame is alive. Don't call `lookup_image' on a termcap frame.
29171 (message2_nolog, message3_nolog, redisplay_internal)
29172 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
29173 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
29174 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
29175 (Fx_display_pixel_width, Fx_display_pixel_height)
29176 (Fx_display_planes, Fx_display_color_cells)
29177 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
29178 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
29179 (Fx_display_backing_store, Fx_display_visual_class)
29180 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
29181 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
29182
29183 * xfns.c (x_set_foreground_color x_set_background_color)
29184 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
29185 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
29186 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
29187 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
29188 terminal that is being deleted.
29189 (Fx_create_frame): Use `store_frame_param' to set `window-system'
29190 frame parameter, and make sure it overrides any user-supplied setting.
29191 (Fx_close_connection, Fx_synchronize): Unify argument names with
29192 the rest of the DEFUNs.
29193
29194 * dispnew.c (Fsend_string_to_terminal): Update call to
29195 `get_tty_terminal'.
29196 (Fredraw_frame, Fsend_string_to_terminal)
29197 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
29198 FRAME_TERMCAP_P and FRAME_TTY.
29199 (window_change_signal): Don't believe width/height values that are
29200 impossibly small.
29201 (Vinitial_window_system): Rename from Vwindow_system.
29202 (termscript, Wcm, rif): Delete.
29203
29204 * termhooks.h (struct terminal): New struct containing the
29205 previously global text display hooks and new members NAME,
29206 DELETED and PARAM_ALIST.
29207 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
29208 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
29209 (FRAME_RIF): New macros.
29210 (get_terminal_param, get_device): New declarations.
29211 (termscript): Delete declaration.
29212
29213 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
29214 (XTflash, x_free_frame_resources, x_scroll_bar_create)
29215 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
29216 FRAME_FOREGROUND_PIXEL.
29217 (x_fully_uncatch_errors): Disable definition.
29218 (x_scroll_bar_expose): Fix reference to foreground pixel.
29219 (XTread_socket): Disable loop on all X displays.
29220 (x_delete_terminal): Don't set terminal->deleted and let
29221 delete_terminal delete the frames on the terminal.
29222 (x_delete_display): Doc update to reflect changes in
29223 delete_terminal.
29224 (x_display_info) <terminal>: Move member earlier in the struct.
29225 (deleting_tty): Remove old variable.
29226 (Fsuspend_tty): Call clear_tty_hooks.
29227 (Fresume_tty, init_tty): Call set_tty_hooks.
29228 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
29229 errors on X frames.
29230 (x_catch_errors_unwind): Abort if x_error_message is NULL.
29231 (handle_one_xevent): Initialize `f' to NULL.
29232 (x_delete_terminal, x_create_terminal): New functions.
29233 (XTset_terminal_modes, XTreset_terminal_modes)
29234 (XTread_socket, x_connection_closed, x_term_init)
29235 (x_term_init, x_delete_display): Add terminal parameter.
29236 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
29237 X connections.
29238
29239 * frame.c: Include termchar.h.
29240 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
29241 (Qwindow_system, Qenvironment, Qterm_environment_variable)
29242 (Qdisplay_environment_variable): New vars.
29243 (Fframep): Deal with output_initial.
29244 (Fframe-live-p): Doc fix.
29245 (Fwindow-system): New function.
29246 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
29247 (make_terminal_frame): Don't create frames on a terminal that is
29248 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
29249 (store_frame_param): Check for found_for_frame before calling XFRAME.
29250 (Fmake_terminal_frame): Handle NULL tty names correctly.
29251 (syms_of_frame): Enhance doc string of `default-frame-alist'.
29252 (Fdelete_frame): Remove unused variable `count'. Don't allow other
29253 frames to refer to a deleted frame in their 'environment parameter.
29254 (Fframe_with_environment): New function.
29255 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
29256 (get_future_frame_param): New function.
29257 (Fmake_terminal_frame): Use it.
29258 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
29259
29260 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
29261 * sysdep.c (reset_sys_modes): Update for renames.
29262
29263 * keyboard.c (tty_read_avail_input): New function.
29264 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
29265 (syms_of_keyboard): Defsubr them.
29266 (Fset_input_meta_mode, Fset_quit_char): New functions.
29267 (Fset_input_mode): Split to above functions.
29268 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
29269 parameter. Use it in call to `read_char'.
29270 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
29271 Set wrong_kboard_jmpbuf correctly in recursive calls.
29272 Use current_kboard to access Vkeyboard_translate_table.
29273 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
29274 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
29275 Update longjmp invocations. Remember the original current_kboard,
29276 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
29277 changes it. Comment out unnecessary calls to
29278 `record_single_kboard_state' and `any_kboard_state'.
29279 Update recursive calls.
29280 (wrong_kboard_jmpbuf): Remove global variable.
29281 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
29282 Handle deleted interrupted_kboards correctly; that is a legal
29283 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
29284 and read_char calls. Abort if interrupted_kboard died in read_char.
29285 (any_kboard_state, single_kboard_state)
29286 (push_frame_kboard): Remove function.
29287 (pop_kboard): Switch out of single_kboard mode if the kboard has
29288 been deleted. Remove unused variable. Help debugging by not
29289 changing current_kboard unnecessarily. Set current_kboard to the
29290 kboard of the selected frame when the stored kboard object has
29291 been deleted before pop_kboard.
29292 (temporarily_switch_to_single_kboard): Change first parameter to a
29293 frame pointer. Throw an error when caller wants to change kboards
29294 while in single_kboard mode. Don't push_kboard if we weren't in
29295 single kboard state. Don't pop_kboard if we popped into any
29296 kboard state.
29297 (restore_kboard_configuration): Abort if pop_kboard changed the
29298 kboard in single_kboard mode. Call pop_kboard only after setting
29299 up single_kboard mode.
29300 (Frecursive_edit): Switch to single_kboard mode only in nested
29301 command loops.
29302 (cmd_error, command_loop, command_loop_1, timer_check):
29303 Comment out unnecessary call to `any_kboard_state' and
29304 `record_single_kboard_state'.
29305 (delete_kboard): Exit single_kboard mode if we have just deleted
29306 that kboard. Use FRAME_KBOARD.
29307 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
29308 `fatal_error_signal'.
29309 (record_single_kboard_state): Don't push_kboard if we weren't in
29310 single kboard state. Don't pop_kboard if we popped into any
29311 kboard state.
29312 (push_frame_kboard): Rename to push_kboard.
29313 (kbd_buffer_get_event): Use FRAME_TERMINAL.
29314 (read_avail_input): Read input from all terminals.
29315 (mark_kboards): Also mark Vkeyboard_translate_table.
29316 (kbd_buffer_store_event_hold): Simplify condition.
29317 (read_key_sequence): Reinitialize fkey and keytran at each replay.
29318 (Vkeyboard_translate_table): Move to struct kboard.
29319 (init_kboard): Initialize Vkeyboard_translate_table.
29320 (syms_of_keyboard): Use DEFVAR_KBOARD to define
29321 Vkeyboard_translate_table. Update doc strings. Update docs of
29322 local-function-key-map and function-key-map.
29323
29324 * terminal.c: New file.
29325
29326 * term.c: Include errno.h.
29327 (Vring_bell_function, device_list, initial_device)
29328 (next_device_id, ring_bell, update_begin, update_end)
29329 (set_terminal_window, cursor_to, raw_cursor_to)
29330 (clear_to_end, clear_frame, clear_end_of_line)
29331 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
29332 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
29333 (syms_of_term): Move their initialization to terminal.c.
29334 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
29335 (Ftty_display_color_cells)
29336 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
29337 (clear_tty_hooks, set_tty_hooks)
29338 (init_tty, maybe_fatal): New functions.
29339 (Ftty_type): Return nil if terminal is not on a tty instead of
29340 throwing an error. Doc update.
29341 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
29342 Doc update. Initialize new subrs and variables.
29343 (delete_tty): Use terminal->deleted.
29344 (tty_set_terminal_modes): Rename from set_terminal_modes.
29345 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
29346 (set_scroll_region): Rename to `tty_set_scroll_region'.
29347 (turn_on_insert): Rename to `tty_turn_on_insert'.
29348 (turn_off_insert): Rename to `tty_turn_off_insert'.
29349 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
29350 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
29351 (toggle_highligh): Rename to `tty_toggle_highlight'.
29352 (background_highlight): Rename to `tty_background_highlight'.
29353 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
29354 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
29355 (tty_set_scroll_region, tty_background_highlight)
29356 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
29357 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
29358 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
29359 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
29360 Add static modifier.
29361 (tty_reset_terminal_modes, tty_set_terminal_window)
29362 (tty_set_scroll_region, tty_background_highlight)
29363 (tty_highlight_if_desired, tty_cursor_to)
29364 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
29365 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
29366 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
29367 renames.
29368
293692007-08-28 Jan Djärv <jan.h.d@swipnet.se>
29370
29371 * keyboard.c: Qrtl is new.
29372 (parse_tool_bar_item): Handle :rtl keyword.
29373 (syms_of_keyboard): Intern :rtl keyword.
29374
29375 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
29376
29377 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
29378 so no Lisp code is executed.
29379 (file_for_image, find_rtl_image): New functions.
29380 (xg_get_image_for_pixmap): Use file_for_image.
29381 (update_frame_tool_bar): If direction is RTL, use RTL image if
29382 defined. Use Gtk stock images if defined.
29383
293842007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29385
29386 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
29387 for nonexistent or zero-width glyph in composition glyph.
29388
293892007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
29390
29391 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
29392
29393 * xdisp.c (Finvisible_p): New function.
29394 (syms_of_xdisp): defsubr it.
29395
293962007-08-24 Juanma Barranquero <lekktu@gmail.com>
29397
29398 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
29399 Doc fixes.
29400
294012007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29402
29403 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
29404
294052007-08-24 Martin Rudalics <rudalics@gmx.at>
29406
29407 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
29408 whether decoding has modified buffer contents.
29409
294102007-08-24 Jason Rumney <jasonr@gnu.org>
29411
29412 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
29413 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
29414 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
29415 (init_svg_functions) [HAVE_NTGUI]: New function.
29416 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
29417 (svg_load_image): Use them.
29418 (svg_load_image) [HAVE_NTGUI]: Implement background.
29419
294202007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29421
29422 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
29423 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
29424 (LIBX): Remove @RSVG_LIBS@.
29425 (LIBES): Add $(RSVG_LIBS).
29426
29427 * image.c (svg_load_image): Blend with specified background if exists.
29428 Use IMAGE_BACKGROUND. Add Mac OS Support.
29429
29430 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
29431 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
29432 Remove macros.
29433 [MAC_OSX] (socket_callback): Do nothing.
29434 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
29435 ReceiveNextEvent.
29436 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
29437 socket_callback.
29438 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
29439
294402007-08-22 Glenn Morris <rgm@gnu.org>
29441
29442 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
29443
294442007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
29445
29446 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
29447
29448 * image.c: Add support for SVG images. Some additional comments
29449 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
29450 (svg_image_p): New function to test for SVG image.
29451 (svg_load): New function to load SVG image.
29452 (svg_load_image): New function, helper for svg_load.
29453 (Qsvg): New Lisp_object.
29454 (svg_keyword_index): New enum.
29455 (svg_format): New static `image_keyword' struct.
29456 (svg_type): New static `image_type' struct.
29457 (librsvg/rsvg.h): Include it.
29458
294592007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
29460
29461 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
29462
294632007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
29464
29465 * lread.c (Qold_style_backquotes): New var.
29466 (syms_of_lread): Init and staticpro it.
29467 (load_warn_old_style_backquotes): New fun.
29468 (Fload): Use them to warn about old style backquotes.
29469 (end_of_file_error, Fload): Remove unused vars.
29470
29471 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
29472
29473 * lread.c (Vold_style_backquotes): New var.
29474 (syms_of_lread): Init and export it to Elisp.
29475 (read1): Set it when we find an old-style (back)quote.
29476
294772007-08-22 Jason Rumney <jasonr@gnu.org>
29478
29479 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
29480
294812007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
29482
29483 * puresize.h (BASE_PURESIZE): Increase to 1140000.
29484
294852007-08-19 Richard Stallman <rms@gnu.org>
29486
29487 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
29488
294892007-08-19 Andreas Schwab <schwab@suse.de>
29490
29491 * alloc.c (pure): Round PURESIZE up.
29492
294932007-08-17 Jan Djärv <jan.h.d@swipnet.se>
29494
29495 * xterm.c (handle_one_xevent): Remove check that mouse click is in
29496 active frame.
29497
294982007-08-16 Richard Stallman <rms@gnu.org>
29499
29500 * eval.c (Fcommandp): Add parens to clarify.
29501
29502 * minibuf.c (Fall_completions): Use enum for type of table.
29503
29504 * emacs.c (USAGE2): Improve text.
29505
295062007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
29507
29508 * term.c (tty_default_color_capabilities): Declare static
29509 variables in file scope, to avoid HPUX compiler problem.
29510
295112007-08-13 Jan Djärv <jan.h.d@swipnet.se>
29512
29513 * gtkutil.c (update_frame_tool_bar): Use -1 as index
29514 to gtk_toolbar_insert.
29515
295162007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
29517
29518 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
29519
29520 * insdel.c (reset_var_on_error): New fun.
29521 (signal_before_change, signal_after_change):
29522 Use it to reset (after|before)-change-functions to nil in case of error.
29523 Bind inhibit-modification-hooks to t.
29524 Don't bind (after|before)-change-functions to nil while they run.
29525
295262007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29527
29528 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
29529 filling pixmap with stippled background.
29530
295312007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29532
29533 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
29534 Don't use invisible frame as parent window for repositioning.
29535
295362007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
29537
29538 * print.c (new_backquote_output): Rename from old_backquote_output.
29539 (print): Inverse its logic (according to its name) so as to match the
29540 behavior of new_backquote_flag in lread.c.
29541
295422007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29543
29544 * gmalloc.c (posix_memalign): New function.
29545
29546 * macterm.c (frame_highlight, frame_unhighlight): Don't call
29547 ActivateControl/DeactivateControl here.
29548 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
29549 frame-notice-user-settings is non-nil.
29550 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
29551 for kEventParamFMFontStyle.
29552 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
29553 mac_pass_command_to_system and mac_pass_control_to_system here.
29554 (XTread_socket): Call ActivateControl/DeactivateControl here.
29555 (XTread_socket) [TARGET_API_MAC_CARBON]:
29556 Check mac_pass_command_to_system and mac_pass_control_to_system here.
29557 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
29558 for window repositioning.
29559
295602007-08-08 Glenn Morris <rgm@gnu.org>
29561
29562 * Replace `iff' in doc-strings and comments.
29563
295642007-08-07 Chong Yidong <cyd@stupidchicken.com>
29565
29566 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
29567
295682007-08-07 Martin Rudalics <rudalics@gmx.at>
29569
29570 * fileio.c (Finsert_file_contents): Run format-decode and
29571 after_insert_file_functions on entire buffer when REPLACE is
29572 non-nil and inhibit modification_hooks and point_motion_hooks.
29573 For consistency, run after_insert_file_functions iff something
29574 got inserted. Move signal_after_change and update_compositions
29575 after code running after_insert_file_functions. Make sure that
29576 undo_list doesn't record intermediate steps of the decoding process.
29577
295782007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29579
29580 * emacs.c (main)
29581 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
29582 Call malloc_enable_thread on interactive startup.
29583
29584 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
29585 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
29586 [USE_PTHREAD]: Conditionalize with it.
29587 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
29588 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
29589 New functions.
29590
295912007-08-06 Chong Yidong <cyd@stupidchicken.com>
29592
29593 * xdisp.c (redisplay_window): When restoring original buffer
29594 position, make sure it is still valid.
29595
29596 * image.c (png_load): Ignore png-supplied background color.
29597
295982007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29599
29600 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
29601 Use kCFAbsoluteTimeIntervalSince1970.
29602
29603 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
29604 New variable.
29605 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
29606 event loop should be quit.
29607 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
29608 Quit dialog event loop if quit_dialog_event_loop is set.
29609
29610 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
29611 (Selection): New typedef. Use instead of ScrapRef.
29612 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
29613 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
29614 (mac_clear_selection): Rename from clear_scrap.
29615 (get_flavor_type_from_symbol): New argument SEL and subsume function of
29616 scrap_has_target_type. All uses changed.
29617 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
29618 (mac_selection_has_target_p): New functions.
29619 (mac_put_selection_value): Rename from put_scrap_string.
29620 (mac_get_selection_value): Rename from get_scrap_string.
29621 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
29622 (put_scrap_private_timestamp, scrap_has_target_type)
29623 (get_scrap_private_timestamp): Remove functions.
29624 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
29625 (x_own_selection, x_get_local_selection):
29626 Use mac_valid_selection_value_p.
29627 (x_own_selection): Don't use put_scrap_private_timestamp.
29628 Record OWNERSHIP-INFO into Vselection_alist instead.
29629 (x_get_local_selection): Don't check type if request is local.
29630 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
29631 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
29632
296332007-08-04 Jan Djärv <jan.h.d@swipnet.se>
29634
29635 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
29636 add comment explaining why.
29637
296382007-08-03 Richard Stallman <rms@gnu.org>
29639
29640 * fileio.c (Fvisited_file_modtime): Use make_time.
29641
296422007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
29643
29644 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
29645 build.
29646
296472007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
29648
29649 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
29650
296512007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
29652
29653 * puresize.h (BASE_PURESIZE): Increase to 1130000.
29654
296552007-07-30 Richard Stallman <rms@gnu.org>
29656
29657 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
29658
296592007-07-29 Jan Djärv <jan.h.d@swipnet.se>
29660
29661 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
29662
296632007-07-28 Nick Roberts <nickrob@snap.net.nz>
29664
29665 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
29666 remote default-directory.
29667
29668 * buffer.c (mode-line-format): Update doc string.
29669
296702007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29671
29672 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
29673 scroll bar gap.
29674 (x_scroll_bar_create): Set bar->fringe_extended_p.
29675 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
29676 on frame edge. Check fringe background extension. Don't clear
29677 extended fringe background area.
29678
29679 * w32term.h (struct scroll_bar): New member fringe_extended_p.
29680 (w32_fill_area): Enclose multiple statements with do ... while (0).
29681
29682 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
29683 Extend fringe background to scroll bar gap.
29684 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
29685 Set bar->fringe_extended_p.
29686 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
29687 Put leftmost/rightmost scroll bars on frame edge. Check fringe
29688 background extension. Don't clear extended fringe background area.
29689
29690 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
29691 New member fringe_extended_p.
29692
296932007-07-25 Glenn Morris <rgm@gnu.org>
29694
29695 * Relicense all FSF files to GPLv3 or later.
29696
29697 * COPYING: Switch to GPLv3.
29698
296992007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
29700
29701 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
29702
29703 * data.c (Finteractive_form): Check for the presence of an
29704 `interactive-form' symbol property more thoroughly.
29705
29706 * data.c (Finteractive_form): Use an `interactive-form' property if
29707 present, analogous to the function-documentation property.
29708
297092007-07-24 Jason Rumney <jasonr@gnu.org>
29710
29711 * w32fns.c (x_real_positions): Get real position from OS instead of
29712 calculating it.
29713
297142007-07-23 Jason Rumney <jasonr@gnu.org>
29715
29716 * filelock.c (current_lock_owner): Allow for @ sign in username.
29717
297182007-07-22 Nick Roberts <nickrob@snap.net.nz>
29719
29720 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
29721 remote default-directory.
29722
29723 * buffer.c (mode-line-format): Describe above case in doc string.
29724
297252007-07-20 Eli Zaretskii <eliz@gnu.org>
29726
29727 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
29728 Define if not defined.
29729
297302007-07-18 Jason Rumney <jasonr@gnu.org>
29731
29732 * w32proc.c (w32_executable_type): Handle 64 bit executables.
29733
297342007-07-18 Richard Stallman <rms@gnu.org>
29735
29736 * data.c (Fsetq_default): Doc fix.
29737
29738 * eval.c (Fsetq): Doc fix.
29739
297402007-07-18 Juanma Barranquero <lekktu@gmail.com>
29741
29742 * coding.c (Ffind_operation_coding_system):
29743 * eval.c (For, Fand): Doc fixes.
29744 Reported by Johan Bockgård.
29745
297462007-07-18 Jan Djärv <jan.h.d@swipnet.se>
29747
29748 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
29749
29750 * xterm.h: Declare x_ewmh_activate_frame.
29751
29752 * xterm.c (x_ewmh_activate_frame): New function.
29753 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
29754
297552007-07-17 Martin Rudalics <rudalics@gmx.at>
29756
29757 * window.c (Fdisplay_buffer): If largest or LRU window is the
29758 only window, split it even if it is not eligible for splitting.
29759 This restores the original behavior broken by the 2007-07-15
29760 change.
29761
297622007-07-17 Glenn Morris <rgm@gnu.org>
29763
29764 * abbrev.c (abbrev_check_chars): New function.
29765 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
29766 Call abbrev_check_chars to check abbrev characters are word
29767 constituents. Doc fix.
29768
297692007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
29770
29771 * process.c (Fstart_process, Fmake_network_process)
29772 (read_process_output): Fix up last changes.
29773
297742007-07-16 Eli Zaretskii <eliz@gnu.org>
29775
29776 * makefile.w32-in (clean): Don't delete *~.
29777
297782007-07-16 Andreas Schwab <schwab@suse.de>
29779
29780 * window.c (Fdisplay_buffer): Use NILP.
29781 (Fset_window_scroll_bars): Likewise.
29782
297832007-07-15 Martin Rudalics <rudalics@gmx.at>
29784
29785 * window.c (window_min_size_2): New function.
29786 (window_min_size_1, size_window, Fdisplay_buffer)
29787 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
29788 windows without mode- or header-lines when window-min-height is
29789 too small.
29790 (size_window): Reset nodelete_p after testing it, following an
29791 earlier note by Kim F. Storm.
29792 (display_buffer): Do not set split_height_threshold to twice the
29793 value of window_min_height to avoid changing the value of a
29794 customizable variable. Rather explicitly check whether the
29795 height of the window that shall be splitted is at least as large
29796 as split_height_threshold.
29797 (Fwindow_full_width_p): New defun.
29798 (syms_of_window): Defsubr it.
29799
29800 * window.h: Add EXFUN for Fwindow_full_width_p.
29801
298022007-07-14 Jason Rumney <jasonr@gnu.org>
29803
29804 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
29805
298062007-07-14 Richard Stallman <rms@gnu.org>
29807
29808 * eval.c (maybe_call_debugger): New function.
29809 (find_handler_clause): Use maybe_call_debugger.
29810 Call it when the handler says `debug'.
29811 Eliminate DEBUGGER_VALUE_PTR.
29812 (Fsignal): Eliminate debugger_value.
29813 (Qdebug): New variable.
29814 (syms_of_eval): Initialize it.
29815
298162007-07-14 Juanma Barranquero <lekktu@gmail.com>
29817
29818 * eval.c (Fprogn):
29819 * keyboard.c (Ftrack_mouse):
29820 * print.c (Fwith_output_to_temp_buffer):
29821 * window.c (Fsave_window_excursion): Doc fix.
29822
298232007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
29824
29825 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
29826
298272007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
29828
29829 * process.h (struct Lisp_Process): Turn slots infd, outfd,
29830 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
29831 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
29832 read_output_delay, and read_output_skip from Lisp_Objects to ints.
29833 Remove unused encoding_carryover.
29834 * process.c: Adjust all functions accordingly.
29835
298362007-07-12 Richard Stallman <rms@gnu.org>
29837
29838 * term.c: Include unistd.h only if HAVE_UNISTD_H.
29839
298402007-07-11 Jason Rumney <jasonr@gnu.org>
29841
29842 * makefile.w32-in (LIBS): Include OLE32.
29843
29844 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
29845 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
29846
298472007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
29848
29849 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
29850 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
29851 from a Lisp_Object into a bare pointer.
29852 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
29853 Adjust the code correspondingly.
29854
29855 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
29856
29857 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
29858 (term_show_mouse_face): Remove unused var `j'.
29859 (handle_one_term_event): Remove unused vars `i' and `j'.
29860 Don't cast return value of ttyname since it's not necessary.
29861
298622007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
29863
29864 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
29865 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
29866
29867 * fns.c (map_char_table): Use an array of int for `indices' rather than
29868 an array of Lisp_Objects (which are only ever integers anyway).
29869 (Fmap_char_table): Update caller.
29870 * lisp.h: Update prototype.
29871 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
29872 * fontset.c (Ffontset_info):
29873 * casetab.c (set_case_table): Update callers.
29874
29875 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
29876
29877 * keymap.c (struct accessible_keymaps_data)
29878 (struct where_is_internal_data): New structures.
29879 (accessible_keymaps_1, where_is_internal_1): Use them to change
29880 interface to adhere to the one used by map_keymap.
29881 (Faccessible_keymaps, where_is_internal): Use map_keymap.
29882 (accessible_keymaps_char_table, where_is_internal_2): Remove.
29883
29884 * keymap.h (map_keymap_function_t): More informative prototype.
29885
298862007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
29887
29888 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
29889 (looking_at_1): Don't change search_regs and last_thing_searched
29890 if `inhibit-changing-match-data' is non-nil.
29891 (string_match_1, search_buffer, set_search_regs): Likewise.
29892 (syms_of_search): Add Lisp level definition for
29893 `inhibit-changing-match-data' and set it to nil.
29894 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
29895 start and end of the match, instead of using values in search_regs.
29896
298972007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
29898
29899 * minibuf.c (Fcompleting_read): New value `confirm-only'
29900 for `require-match'.
29901
299022007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
29903
29904 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
29905 part of the 2007-06-27 change to syms_of_fileio.
29906
299072007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29908
29909 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
29910 Check WINDOWP before using XWINDOW. Consolidate return statements.
29911
299122007-06-27 Richard Stallman <rms@gnu.org>
29913
29914 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
29915
299162007-06-27 Juanma Barranquero <lekktu@gmail.com>
29917
29918 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
29919
299202007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29921
29922 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
29923 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
29924 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
29925 (_free_internal, memalign): Use them.
29926 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
29927 Initialize to PTHREAD_MUTEX_INITIALIZER.
29928 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
29929 (morecore_nolock): Rename from morecore. All uses changed.
29930 Use only nolock versions of internal allocation functions.
29931 (_malloc_internal_nolock, _realloc_internal_nolock)
29932 (_free_internal_nolock): New functions created from
29933 _malloc_internal, _realloc_internal, and _free_internal.
29934 (_malloc_internal, _realloc_internal, _free_internal): Use them.
29935 Copy hook value to automatic variable before its use.
29936 (memalign): Copy hook value to automatic variable before its use.
29937
299382007-06-26 Kenichi Handa <handa@m17n.org>
29939
29940 * coding.c (Ffind_operation_coding_system): Docstring improved.
29941 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
29942
299432007-06-25 David Kastrup <dak@gnu.org>
29944
29945 * keymap.c (Fcurrent_active_maps): Add `position' argument.
29946 (Fwhere_is_internal): Adjust call to `current-active-maps' to
29947 cater for additional parameter.
29948
29949 * keymap.h: Adjust number of parameters to `current-active-maps'.
29950
29951 * doc.c (Fsubstitute_command_keys): Adjust call of
29952 `current-active-maps'.
29953
299542007-06-25 David Kastrup <dak@gnu.org>
29955
29956 * callint.c (Fcall_interactively): Make the parsing of interactive
29957 specs somewhat more readable.
29958
299592007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29960
29961 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
29962 to scroll bar gap also when bitmap fills fringe. Draw only foreground
29963 if extended background has already been filled.
29964
299652007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29966
29967 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
29968 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
29969
29970 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
29971 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
29972 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
29973 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
29974 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
29975 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
29976 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
29977 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
29978 Run timers during dialog popup.
29979 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
29980
299812007-06-21 Jason Rumney <jasonr@gnu.org>
29982
29983 * image.c (convert_mono_to_color_image): Swap fore and background.
29984
299852007-06-20 Jason Rumney <jasonr@gnu.org>
29986
29987 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
29988 (w32_free_bdf_font): Unmap memory not handle.
29989
299902007-06-20 Sam Steingold <sds@gnu.org>
29991
29992 * gmalloc.c (__morecore): Fix the declaration to comply with the
29993 definition.
29994
299952007-06-20 Juanma Barranquero <lekktu@gmail.com>
29996
29997 * w32term.c (w32_delete_display): Remove leftover declaration.
29998 (w32_define_cursor, w32_initialize): Make static.
29999
30000 * w32.c (_wsa_errlist): Fix typo in error message.
30001 (init_environment): Ignore any environment variable from the
30002 registry having a null value.
30003
300042007-06-20 Glenn Morris <rgm@gnu.org>
30005
30006 * Makefile.in (LIBGIF): Default to -lgif.
30007
300082007-06-17 Jason Rumney <jasonr@gnu.org>
30009
30010 * w32menu.c (add_menu_item): Don't use multibyte string functions on
30011 unicode strings.
30012
300132007-06-16 Juanma Barranquero <lekktu@gmail.com>
30014
30015 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
30016 Fix typo in docstring.
30017
300182007-06-16 Eli Zaretskii <eliz@gnu.org>
30019
30020 * w32menu.c (add_menu_item): Escape `&' characters in menu items
30021 and their keybindings.
30022
300232007-06-15 Chong Yidong <cyd@stupidchicken.com>
30024
30025 * composite.c (update_compositions): Fix last fix.
30026
300272007-06-14 Jason Rumney <jasonr@gnu.org>
30028
30029 * w32.c (get_process_times_fn): New function pointer.
30030 (globals_of_w32): Intialize it if present in kernel32.dll.
30031 (w32_get_internal_run_time): New function.
30032
30033 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
30034
300352007-06-14 Kenichi Handa <handa@etlken.m17n.org>
30036
30037 * composite.c (update_compositions): Check the validness of
30038 compositions.
30039
300402007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30041
30042 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
30043 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
30044
30045 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
30046 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
30047
30048 * macgui.h (USE_MAC_TOOLBAR): New define.
30049
30050 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
30051 Return immediately unless popup is activated.
30052
30053 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
30054 background to scroll bar gap.
30055 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
30056 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
30057 scroll bars on frame edge. Check fringe background extension.
30058 Don't clear extended fringe background area.
30059 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
30060 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
30061 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
30062 [USE_MAC_TOOLBAR]: New macros.
30063 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
30064 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
30065 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
30066 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
30067 [USE_MAC_TOOLBAR]: New functions.
30068 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
30069 manually if previous repositioning has failed.
30070 (mac_handle_keyboard_event): Use precomputed event kind.
30071 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
30072 as tool bar item click. Handle mouse movement over tool bar items.
30073
30074 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
30075 toolbar_win_gravity.
30076 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
30077 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
30078 Add externs.
30079
30080 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
30081 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
30082
300832007-06-14 Chong Yidong <cyd@stupidchicken.com>
30084
30085 * image.c (search_image_cache): Remove unused variable.
30086
300872007-06-13 Chong Yidong <cyd@stupidchicken.com>
30088
30089 * xfns.c, xmenu.c: Link to xaw3d if available.
30090
300912007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30092
30093 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
30094 frame_foreground and frame_background.
30095
30096 * image.c (lookup_image): Save frame foreground and background colors.
30097 (search_image_cache): Check if saved and current frame colors match.
30098
300992007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
30100
30101 * regex.c (regex_compile): Remove the `regnum' counter.
30102 Use bufp->re_nsub instead. Add support for \(?N:RE\).
30103
301042007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
30105
30106 * term.c: Include intervals.h to declare Fget_text_property.
30107
301082007-06-10 Jason Rumney <jasonr@gnu.org>
30109
30110 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
30111
301122007-06-08 Juanma Barranquero <lekktu@gmail.com>
30113
30114 * callint.c (Fcall_interactively):
30115 * editfns.c (Fdelete_and_extract_region):
30116 * fileio.c (Fread_file_name):
30117 * fns.c (Fmapconcat):
30118 * keyboard.c (cmd_error_internal):
30119 * keymap.c (Fkey_description):
30120 * lread.c (openp):
30121 * minibuf.c (read_minibuf):
30122 * search.c (wordify):
30123 * sunfns.c (sel_read):
30124 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
30125 * xfns.c (x_default_scroll_bar_color_parameter):
30126 * xmenu.c (menu_help_callback):
30127 * xselect.c (Fx_get_atom_name):
30128 * xterm.c (x_term_init): Use empty_unibyte_string.
30129
301302007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
30131
30132 * alloc.c (init_strings): Initialize canonical empty strings.
30133 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
30134 canonical empty string when the requested size is 0.
30135
30136 * emacs.c (empty_unibyte_string): Rename from empty_string.
30137 (empty_multibyte_string): New canonical empty string.
30138 (syms_of_emacs): Don't initialize empty_string.
30139
30140 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
30141 string, if appropriate.
30142 (empty_unibyte_string, empty_multibyte_string): New externs.
30143 (empty_string): Remove extern.
30144
30145 * lread.c (syms_of_lread): Use empty_unibyte_string.
30146
301472007-06-07 Jason Rumney <jasonr@gnu.org>
30148
30149 * s/ms-w32.h: Don't define HAVE_TZNAME.
30150
30151 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
30152
301532007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30154
30155 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
30156
30157 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
30158 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
30159
30160 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
30161 Don't call next handler.
30162 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
30163 Remove argument. Install handler to application.
30164 (set_frame_menubar): Don't change deep_p.
30165 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
30166 FRAME_OUTER_TO_INNER_DIFF_Y.
30167 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
30168 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
30169 [HAVE_DIALOGS]: New macros.
30170 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
30171 Use them.
30172 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
30173
30174 * macselect.c [MAC_OSX] (install_service_handler): Rename from
30175 init_service_handler. All callers changed. Return OSStatus value.
30176
30177 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
30178 All callers changed so as not to call SetPortWindowPort.
30179 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
30180 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
30181 mac_draw_string_common.
30182 (mac_draw_image_string_qd): Likewise.
30183 (mac_draw_string_common): Use them. Add INLINE.
30184 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
30185 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
30186 GetGlobalMouse.
30187 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
30188 and FRAME_OUTER_TO_INNER_DIFF_Y.
30189 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
30190 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
30191 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
30192 repositioning window to mac_handle_window_event.
30193 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
30194 saving window location to mac_handle_window_event
30195 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
30196 (install_menu_target_item_handler): Remove argument in extern.
30197 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
30198 Also accept command events.
30199 (do_keystroke): New function created from XTread_socket.
30200 (init_command_handler): Remove functions.
30201 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
30202 and save window location by kEventWindowShowing and kEventWindowHiding
30203 handlers here. Don't call next handler for window state change and
30204 focus events.
30205 (mac_handle_application_event, mac_handle_keyboard_event)
30206 [TARGET_API_MAC_CARBON]: New functions.
30207 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
30208 kEventWindowShowing and kEventWindowHiding events. Move installation
30209 of mouse, font, text input and menu target item handlers to
30210 install_application_handler.
30211 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
30212 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
30213 New function.
30214 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
30215 Register it.
30216 (XTread_socket) [TARGET_API_MAC_CARBON]:
30217 Consolidate SendEventToEventTarget calls.
30218 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
30219 Move application activation handler to mac_handle_application_event.
30220 Move keyboard handler to mac_handle_keyboard_event.
30221 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
30222 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
30223 init_command_handler. Call install_application_handler.
30224
30225 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
30226 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
30227
302282007-06-07 Glenn Morris <rgm@gnu.org>
30229
30230 * emacs.c (main): Use `emacs-copyright' in --version output.
30231
302322007-06-06 Chong Yidong <cyd@stupidchicken.com>
30233
30234 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
30235
302362007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30237
30238 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
30239
30240 * macgui.h: Replace WindowPtr with WindowRef.
30241
30242 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
30243 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
30244 Replace ControlHandle with ControlRef.
30245 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
30246
30247 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
30248 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
30249 Replace ControlHandle with ControlRef.
30250 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
30251 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
30252
30253 * macterm.h (struct scroll_bar): Rename member control_handle_low
30254 and control_handle_high to control_ref_low and control_ref_high.
30255 All uses changed.
30256 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
30257 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
30258 respectively. All uses changed.
30259 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
30260 (install_window_handler, remove_window_handler): Replace WindowPtr
30261 with WindowRef in externs.
30262
302632007-06-05 Juanma Barranquero <lekktu@gmail.com>
30264
30265 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
30266
302672007-06-03 Nick Roberts <nickrob@snap.net.nz>
30268
30269 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
30270
30271 * frame.c (Fmouse_position, Fmouse_pixel_position):
30272 Condition on HAVE_GPM too.
30273
30274 * term.c (term_mouse_highlight): Remove unused variables.
30275 (Fterm_open_connection): Set gpm_zerobased to 1.
30276 (term_mouse_movement, term_mouse_click, handle_one_term_event):
30277 Use zero based co-ordinates.
30278 (handle_one_term_event): Report a drag as mouse movement too.
30279
30280 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
30281
302822007-06-03 Chong Yidong <cyd@stupidchicken.com>
30283
30284 * image.c (search_image_cache): New function. Require background
30285 color match if background color is unspecified in the image spec.
30286 (uncache_image, lookup_image): Use it.
30287
302882007-06-01 Juanma Barranquero <lekktu@gmail.com>
30289
30290 * window.c (Fshrink_window): Reflow docstring.
30291
302922007-06-02 Chong Yidong <cyd@stupidchicken.com>
30293
30294 * Version 22.1 released.
30295
302962007-06-01 Richard Stallman <rms@gnu.org>
30297
30298 * xfns.c (x_encode_text): Add GCPRO.
30299
303002007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30301
30302 * xfns.c (x_set_name_internal): Save encoded name before
30303 x_encode_text in case string data is relocated.
30304
303052007-05-31 Richard Stallman <rms@gnu.org>
30306
30307 * buffer.c (syms_of_buffer): Doc fix.
30308
303092007-05-30 Nick Roberts <nickrob@snap.net.nz>
30310
30311 * sysdep.c (init_sys_modes): Add rather than replace with
30312 O_NONBLOCK.
30313
30314 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
30315 term_mouse_moveto.
30316
30317 * termhooks.h (term_mouse_moveto): New extern.
30318
30319 * term.c (mouse_face_window): Rename...
30320 (Qmouse_face_window): ...to this.
30321 (term_show_mouse_face, term_clear_mouse_face)
30322 (term_mouse_highlight): Use Qmouse_face_window.
30323 (term_mouse_moveto): New function.
30324 (term_mouse_position): Make it work.
30325 (syms_of_term): Uncomment assignment to mouse_position_hook.
30326 Staticpro Qmouse_face_window.
30327
303282007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30329
30330 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
30331 around current_column call.
30332
303332007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
30334
30335 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
30336 * xdisp.c (next_element_from_buffer):
30337 * window.c (delete_window):
30338 * term.c (term_mouse_highlight):
30339 * msdos.c (getdefdir):
30340 * macterm.c (mac_create_bitmap_from_bitmap_data)
30341 (init_font_name_table):
30342 * fns.c (Fsxhash):
30343 * data.c (Fmake_local_variable):
30344 * ccl.c (ccl_driver): Likewise.
30345
303462007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30347
30348 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
30349 Call mac_wakeup_from_rne on window size change.
30350
303512007-05-25 Chong Yidong <cyd@stupidchicken.com>
30352
30353 * image.c (uncache_image): Fix typo.
30354
303552007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
30356
30357 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
30358
303592007-05-22 Richard Stallman <rms@gnu.org>
30360
30361 * xterm.c (x_connection_closed): Remove NO_RETURN.
30362
303632007-05-22 Martin Rudalics <rudalics@gmx.at>
30364
30365 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
30366
303672007-05-21 Chong Yidong <cyd@stupidchicken.com>
30368
30369 * image.c (uncache_image): New function.
30370 (Fimage_refresh): New function.
30371
303722007-05-20 Jan Djärv <jan.h.d@swipnet.se>
30373
30374 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
30375
303762007-05-20 Nick Roberts <nickrob@snap.net.nz>
30377
30378 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
30379 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
30380
303812007-05-20 Nick Roberts <nickrob@snap.net.nz>
30382
30383 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
30384 conditional on [HAVE_GPM_H].
30385
303862007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
30387
30388 * syntax.c (skip_chars): Update syntax-table only after we checked that
30389 the new location is valid.
30390
303912007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30392
30393 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
30394 mac_get_window_bounds.
30395
303962007-05-20 Nick Roberts <nickrob@snap.net.nz>
30397
30398 * Makefile.in (LIBGPM): Allow it to be set from configure.
30399 If set then link Emacs with it.
30400
30401 * config.in: Regenerate.
30402
30403 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
30404 New externs.
30405
30406 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
30407 Include gpm.h.
30408 (handle_one_term_event, term_gpm): New externs.
30409
30410 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
30411 and allow it to be interrupted by SIGIO.
30412
30413 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
30414 (wait_reading_process_output): Wait on gpm_fd too.
30415 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
30416 (add_gpm_wait_descriptor_called_flag): New variable.
30417 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
30418
30419 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
30420 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
30421 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
30422 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
30423 (make_lispy_event): Add case GPM_CLICK_EVENT.
30424 (read_avail_input): Handle mouse input.
30425
30426 * term.c (write_glyphs_with_face): New function.
30427 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
30428 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
30429 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
30430 (mouse_face_face_id, term_gpm, pos_x, pos_y)
30431 (last_mouse_x, last_mouse_y): New variables.
30432 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
30433 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
30434 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
30435 (Fterm_close_connection): New functions.
30436 (term_init): Initialise mouse_face_window.
30437
304382007-05-19 Chong Yidong <cyd@stupidchicken.com>
30439
30440 * xdisp.c (redisplay_window): If first window line is a
30441 continuation line, recompute the new window start instead of
30442 recentering.
30443
304442007-05-18 Glenn Morris <rgm@gnu.org>
30445
30446 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
30447 Suggested by Alfred M. Szmidt <ams@gnu.org>.
30448
304492007-05-17 Glenn Morris <rgm@gnu.org>
30450
30451 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
30452
304532007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30454
30455 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
30456 dead key repeat and up events.
30457
304582007-05-14 Chong Yidong <cyd@stupidchicken.com>
30459
30460 * image.c (pbm_load): Check image size for monochrome pbm.
30461
304622007-05-13 Chong Yidong <cyd@stupidchicken.com>
30463
30464 * xterm.c (XTread_socket): Revert last change.
30465
304662007-05-12 Chong Yidong <cyd@stupidchicken.com>
30467
30468 * image.c (pbm_load): Correctly check image size for greyscale pbm.
30469
30470 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
30471
304722007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
30473
30474 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
30475 mixup (YAILOM).
30476
304772007-05-07 Andreas Schwab <schwab@suse.de>
30478
30479 * keymap.c (Flookup_key): Fix typo in last change.
30480
304812007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
30482
30483 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
30484 mapping for unibyte strings.
30485
304862007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30487
30488 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
30489 (Fx_popup_dialog) [MAC_OSX]: Likewise.
30490
304912007-04-29 Richard Stallman <rms@gnu.org>
30492
30493 * insdel.c (replace_range): For undo, record insertion first.
30494
304952007-04-29 Andreas Schwab <schwab@suse.de>
30496
30497 * lisp.h (VECSIZE): Use OFFSETOF.
30498
304992007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30500
30501 * xdisp.c (try_window_reusing_current_matrix): Fix number of
30502 disabled lines.
30503
305042007-04-28 Richard Stallman <rms@gnu.org>
30505
30506 * lread.c (read_escape): In a string, \s is always space.
30507
305082007-04-27 Jan Djärv <jan.h.d@swipnet.se>
30509
30510 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
30511
30512 * gtkutil.c (xg_update_menubar, create_menus): Create empty
30513 submenu for menu bar items.
30514
30515See ChangeLog.10 for earlier changes.
30516
30517;; Local Variables:
30518;; coding: utf-8
aac0c6e3
MR
30519;; End:
30520
73b0cd50 30521 Copyright (C) 2007-2011 Free Software Foundation, Inc.
aac0c6e3
MR
30522
30523 This file is part of GNU Emacs.
30524
30525 GNU Emacs is free software: you can redistribute it and/or modify
30526 it under the terms of the GNU General Public License as published by
30527 the Free Software Foundation, either version 3 of the License, or
30528 (at your option) any later version.
30529
30530 GNU Emacs is distributed in the hope that it will be useful,
30531 but WITHOUT ANY WARRANTY; without even the implied warranty of
30532 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
30533 GNU General Public License for more details.
30534
30535 You should have received a copy of the GNU General Public License
30536 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.