* xterm.c: conform to C89 pointer rules
[bpt/emacs.git] / src / ChangeLog
CommitLineData
9eee99eb
PE
12011-02-06 Paul Eggert <eggert@cs.ucla.edu>
2
82470039
PE
3 conform to C89 pointer rules
4
5 * xterm.c (x_draw_fringe_bitmap, handle_one_xevent, x_bitmap_icon):
6 (same_x_server, x_term_init):
9eee99eb
PE
7 Change types between char * and unsigned char *, to satisfy C89
8 rules about pointer type compatibility.
82470039
PE
9 * doc.c (get_doc_string, Fsnarf_documentation):
10 (Fsubstitute_command_keys): Likewise.
9eee99eb 11
32299e33
PE
122011-02-05 Paul Eggert <eggert@cs.ucla.edu>
13
14 don't ignore chdir failure
15 * sysdep.c (sys_subshell) [!defined DOS_NT]: Diagnose chdir
16 failure and exit.
17 (sys_subshell) [defined DOS_NT]: Mark with a FIXME the two
18 remaining unchecked chdir calls in this function; some DOS/NT
19 expert needs to fix them.
20 * emacs.c (main): Mark with a FIXME the unchecked chdir calls
21 in this function; some NextStep expert needs to fix them.
22
233ba4d9 232011-02-05 Glenn Morris <rgm@gnu.org>
95838641
GM
24
25 * xfaces.c (Finternal_set_lisp_face_attribute):
26 Try to clarify some error messages. (Bug#2659)
27
233ba4d9 282011-02-05 Stefan Monnier <monnier@iro.umontreal.ca>
aca092ac
SM
29
30 * editfns.c (save_restriction_restore): Don't forget to invalidate the
31 current_column cache (bug#7946).
32
233ba4d9 332011-02-05 Kenichi Handa <handa@m17n.org>
ea2460a0
KH
34
35 * ftfont.c (ftfont_open): Use FC_DUAL only when it is defined.
36
37 * xftfont.c (xftfont_open): Likewise.
38
233ba4d9 392011-02-05 Andreas Schwab <schwab@linux-m68k.org>
29feb0e9
AS
40
41 * window.c (Fselect_window): Add missing return value.
42
d67985d3
PE
432011-02-05 Paul Eggert <eggert@cs.ucla.edu>
44
25a48bd0
PE
45 xstrcasecmp: conform to C89 pointer rules
46 * xfaces.c (xstrcasecmp): Change args from const unsigned char *
47 to const char *, since they're usually low-level C strings, and
48 this stays compatible with C89 pointer rules. All callers changed.
49
dfb6afda
PE
50 * charset.c: conform to C89 pointer rules
51 (define_charset_internal): Switch between char * and unsigned char *.
52
cc618f4e
PE
53 * xmenu.c: conform to C89 const rules
54 (xmenu_show, xdialog_show): Declare local var as char *, not
55 const char *, to stay compatible with C89 const rules.
56
9bcaafce
PE
57 * xdisp.c: conform to C89 pointer rules
58 (store_mode_line_noprop, display_string, reseat_to_string):
59 (c_string_pos, number_of_chars, message_dolog):
60 (message_log_check_duplicate, set_message_1, store_mode_line_noprop):
61 (display_mode_element, display_string):
62 Switch between char * and unsigned char * to stay compatible wth
63 C89 pointer rules.
64
5b0534c8
PE
65 * regex.c: conform to C89 pointer rules
66 (re_wctype): Add cast, as C89 does not allow assigning between
67 char * and unsigned char *.
68 (regex_compile): Likewise.
69
d67985d3
PE
70 sync from gnulib to remove HAVE_STDBOOL_H
71 * config.in: Regenerate.
72
a5d733f5
EZ
732011-02-04 Eli Zaretskii <eliz@gnu.org>
74
f90e08f5
EZ
75 * makefile.w32-in (LISP_H, PROCESS_H): New variables.
76 Replace all uses of lisp.h with $(LISP_H), and all uses of
77 process.h with $(PROCESS_H).
78 ($(BLD)/editfns.$(O)): Depend on ../lib/strftime.h.
79 ($(BLD)/print.$(O)): Depend on ../lib/ftoastr.h and ../lib/intprops.h.
80
be50df37
EZ
81 * deps.mk: Update for recent changes: gnutls support, gnulib
82 imports, addition of globals.h.
83
f90e08f5
EZ
84 * makefile.w32-in ($(BLD)/sysdep.$(O)): Depend on
85 ../lib/ignore-value.h.
a5d733f5 86
67342916
PE
872011-02-03 Paul Eggert <eggert@cs.ucla.edu>
88
89 allow C code to suppress warnings about ignored return values
90
91 We need to go through the code and for each such warning, either
92 fix the code to pay attention to the returned value, or tell GCC
93 that we really do want to ignore the returned value. Here is one
94 example of how to do the latter.
95 * sysdep.c: Include <ignore-value.h>.
96 (sys_subshell): Suppress an undesirable warning about not checking
97 the returned value of 'write', as there's nothing useful one can
98 do with that returned value.
99
36941b32
JD
1002011-02-03 Jan Djärv <jan.h.d@swipnet.se>
101
102 * xterm.c (x_connection_closed): Remove all calls that calls
103 XSync (Bug#7949).
104
3082f617
EZ
1052011-02-01 Eli Zaretskii <eliz@gnu.org>
106
107 * image.c (tiff_load): Avoid compiler warning in 2nd arg to
108 TIFFClientOpen.
109
4df0af9b
JD
1102011-02-01 Jan Djärv <jan.h.d@swipnet.se>
111
112 * xsmfns.c (ice_connection_closed): Call delete_read_fd.
113 (x_session_check_input): Change args and return type so it can be used
114 as argument to add_read_fd. Make static. Remove call to select.
115 Call kbd_buffer_store_event for emacs_event.
116 (smc_save_yourself_CB): Also store initial argv to SmRestartCommand.
117 (ice_conn_watch_CB): Call add_read_fd.
118
119 * xterm.c (XTread_socket): Remove HAVE_X_SM block with call to
120 x_session_check_input.
121 (x_session_initialized): Remove definition.
122 (x_initialize): Remove setting of x_session_initialized.
123
124 * xterm.h (x_session_check_input): Remove declaration.
125
a4180391
PE
1262011-02-01 Paul Eggert <eggert@cs.ucla.edu>
127
128 format-time-string now supports subsecond time stamp resolution
129 * editfns.c (emacs_nmemftime): Renamed from emacs_memftimeu,
130 for consistency with its new argument and with gnulib nstrftime.
131 All callers changed. New argument NS.
132 (Fformat_time_string): Check that the time argument's microseconds
133 component, if any, is in range; this avoids integer overflow and
134 also nstrftime needs this. Document %N.
135
14beddf4 1362011-01-31 Andreas Schwab <schwab@linux-m68k.org>
df61c790
AS
137
138 * image.c (DEF_IMGLIB_FN): Add parameter rettype, use it instead
139 of int. All uses adjusted.
140 (PNG_JMPBUF, png_load, jpeg_load, tiff_load, gif_load)
141 (svg_load_image): Remove casts.
142
14beddf4 1432011-01-31 Chong Yidong <cyd@stupidchicken.com>
7f9c5df9
CY
144
145 * image.c (fn_png_longjmp, fn_png_set_longjmp_fn): New png
146 function definitions for compiling with libpng-1.5.
147 (PNG_LONGJMP, PNG_JMPBUF): New macros for libpng-1.5.
148 (my_png_error, png_load): Use them. Suggested by Thomas Klausner
149 (Bug#7908).
150
70b0d280
EZ
1512011-01-31 Eli Zaretskii <eliz@gnu.org>
152
8b3c625b
EZ
153 * s/ms-w32.h (HAVE_STRFTIME): Don't define.
154
70b0d280
EZ
155 * makefile.w32-in (OBJ2): Remove strftime.$(O).
156 ($(BLD)/strftime.$(O)): Remove prerequisites.
157
16fab143
PE
1582011-01-31 Paul Eggert <eggert@cs.ucla.edu>
159
160 src/emacs.c now gets version number from configure.in
161 * emacs.c (emacs_version): Set to VERSION so that it
162 is determined automatically from ../configure.in.
163
546961a9
JM
1642011-01-31 Jim Meyering <meyering@redhat.com>
165
166 * charset.c (load_charset_map): Don't deref NULL on failed malloc.
167 Use xmalloc rather than malloc.
168
42a5b22f
PE
1692011-01-30 Paul Eggert <eggert@cs.ucla.edu>
170
16c3e636
PE
171 strftime: import from gnulib
172 * Makefile.in (obj): Remove strftime.o, as gnulib now does this for us.
173 * deps.mk (strftime.o): Remove.
174 * editfns.c: Include <strftime.h>, supplied by gnulib.
175 (emacs_strftimeu): Remove decl.
176 (emacs_memftimeu): Use nstrftime (the gnulib name) rather than
177 emacs_strftimeu.
178 * config.in: Regenerate.
179 * strftime.c: Remove; we now use strftime from gnulib.
180
42a5b22f
PE
181 Use SSDATA when the context wants char *.
182 * alloc.c, buffer.c, bytecode.c, callproc.c, dired.c:
183 * dispnew.c, doc.c, editfns.c, emacs.c, fileio.c, filelock.c:
184 * fns.c, font.c, frame.c, image.c, indent.c, keyboard.c:
185 * lread.c, minibuf.c, print.c, process.c, search.c, widget.c:
186 * xdisp.c, xfaces.c, xfns.c, xml.c, xselect.c, xterm.c:
187 Use SSDATA (not SDATA) when the context of the expression wants
188 char * (not unsigned char *).
189
2787bba3
JD
1902011-01-30 Jan Djärv <jan.h.d@swipnet.se>
191
192 * .gdbinit: Read global lisp variables as globals.f_V*.
193
4ec88040
AS
1942011-01-30 Andreas Schwab <schwab@linux-m68k.org>
195
196 * font.c (PROP_MATCH): Remove parameter N and use strlen instead.
197 All uses changed.
198 (PROP_SAVE): Likewise.
199
b6bcd048
CY
2002011-01-29 Chong Yidong <cyd@stupidchicken.com>
201
202 * keyboard.c (make_lispy_position): Fix typo in last change
203 (Bug#7935).
204
f915f0f7
EZ
2052011-01-29 Eli Zaretskii <eliz@gnu.org>
206
207 * s/ms-w32.h (HAVE_MKTIME): Remove.
208
209 * makefile.w32-in (LOCAL_FLAGS): Add -I../lib.
210 (GNULIB): New variable.
211 (LIBS): Add $(GNULIB).
212 $(TEMACS): Depend on $(GNULIB).
213 <top-level>: Fix font-lock disrupted by a lone `"'.
214
497a1925
JD
2152011-01-29 Jan Djärv <jan.h.d@swipnet.se>
216
217 * nsselect.m (ns_string_from_pasteboard): Get length of string
218 and use make_string instead of build_string (Bug#7934).
219 (ns_string_to_pasteboard_internal): Use initWithBytesNoCopy
220 instead of stringWithUTF8String (Bug#7934).
221
481ae085
JD
2222011-01-29 Anders Lindgren <andlind@gmail.com> (tiny change)
223
224 * nsfont.m (nsfont_open): Ensure that fonts with inexact
225 descenders would not become one pixel too tall (Bug#7887).
226
6b918613
CY
2272011-01-28 Chong Yidong <cyd@stupidchicken.com>
228
229 * keyboard.c (make_lispy_position): For clicks on right fringe or
230 margin, compute text position using the X coordinate relative to
231 the left of the text area (Bug#7839).
232
9e269017
KH
2332011-01-28 Kenichi Handa <handa@m17n.org>
234
235 * ftfont.c (ftfont_spec_pattern): Check each extra property
236 value.
237
17dd1fc8
SM
2382011-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
239
240 * xdisp.c (safe_eval_handler): Distinguish symbols and strings.
241
372fb76b
CY
2422011-01-27 Chong Yidong <cyd@stupidchicken.com>
243
244 * font.c (font_parse_fcname): Undefine a temporary macro.
245
e7f7fbaa
SM
2462011-01-26 Stefan Monnier <monnier@iro.umontreal.ca>
247
248 Let the debugger continue to the normal handler (bug#7825).
249 * eval.c (maybe_call_debugger): Declare before new use.
250 (find_handler_clause): Don't call debugger any more.
251 Ignore Vstack_trace_on_error.
252 Use XCAR/XCDR.
253 (syms_of_eval): Remove Vstack_trace_on_error.
254 (Fsignal): Only modify handlerlist when we know we need to do it.
255 Call the debugger when necessary.
256 * globals.h (Vstack_trace_on_error): Remove.
257
6608a7d8
CY
2582011-01-26 Chong Yidong <cyd@stupidchicken.com>
259
260 * font.c (font_parse_fcname): Rewrite GTK font name parser.
261
06d8ace5 2622011-01-25 Stefan Monnier <monnier@iro.umontreal.ca>
f996bbcb
SM
263
264 * xdisp.c (handle_fontified_prop): Be careful with font-lock changing
265 the buffer's point-max (bug#7876).
266
06d8ace5 2672011-01-25 Chong Yidong <cyd@stupidchicken.com>
19634648
CY
268
269 * lisp.h (XPNTR): Obey DATA_SEG_BITS in all non-USE_LSB_TAG cases.
06d8ace5 270 Remove unused case (Bug#6811).
19634648 271
8ab70320
JD
2722011-01-23 Jan Djärv <jan.h.d@swipnet.se>
273
274 * nsterm.m (x_set_offset): Set dont_constrain to 0 so the call to
275 setFrameTopLeftPoint is constrained.
276
51b59d79
PE
2772011-01-23 Paul Eggert <eggert@cs.ucla.edu>
278
9055082e
PE
279 Check return values of some library calls.
280 * emacs.c (main): Check dup result.
281 * frame.c: Include <limits.h>, for INT_MIN and INT_MAX.
282 (frame_name_fnn_p): Check strtol result.
283
5c7d01a5 284 * image.c (x_create_bitmap_from_xpm_data): Add cast to fix type clash
f77fabaf
PE
285 when calling XpmCreatePixmapFromData.
286
51b59d79
PE
287 Promote SSDATA macro from gtkutil.c and xsmfns.c to lisp.h.
288 * lisp.h (SSDATA): New macro.
289 All uses of (char *) SDATA (x) replaced with SSDATA (x),
290 and all uses of (unsigned char *) SDATA (x) replaced with SDATA (x).
291 * gtkutil.c (SSDATA): Remove, as lisp.h now defines this.
292 * xsmfns.c (SSDATA): Likewise.
293
e6b84b30
MR
2942011-01-22 Martin Rudalics <rudalics@gmx.at>
295
296 * window.c (select_window): New function.
297 (Fselect_window): Call it.
298 (inhibit_point_swap): Variable deleted.
299 (Fset_window_configuration): Call select_window directly.
300
3fb69558
JD
3012011-01-22 Jan Djärv <jan.h.d@swipnet.se>
302
303 * nsterm.m (constrainFrameRect): Only constrain the first time called.
304
449ab399
JD
3052011-01-21 Jan Djärv <jan.h.d@swipnet.se>
306
e2f79c8d
JD
307 * nsterm.m (x_set_offset, windowDidMove): When calculating y, use first
308 screen, not the window screen.
309 (x_set_window_size): Remove constraints.
310 Calculate origin.y only if zooming is 0 and without referring to a
311 screen.
312 (windowWillResize): Don't modify frameSize.
313 (windowDidBecomeKey, mouseDown): Set dont_constrain to 1.
314 (initFrameFromEmacs): Initialize ns_userRect.
315 (windowShouldZoom): Set zooming to one. Remove all other code.
316 (windowWillUseStandardFrame): Move static ns_userRect to EmacsView.
317 Zero it after restore.
318 (constrainFrameRect): New method for EmacsWindow.
319 (mouseDragged): Always post NSWindowDidResizeNotification after call to
320 windowWillResize.
321
322 * nsterm.h (ns_output): Add dont_constrain and zooming.
323 (EmacsView): Add ns_userRect.
324
449ab399
JD
325 * nsterm.m (keyDown): If ns_right_alternate_modifier is Qleft, check
326 if ns_alternate_modifier is none.
327
e885315d
JD
3282011-01-20 Jan Djärv <jan.h.d@swipnet.se>
329
330 * unexmacosx.c: Add comment about include order.
331
bb1c6663
GM
3322011-01-20 Glenn Morris <rgm@gnu.org>
333
c11136ec
GM
334 * minibuf.c (syms_of_minibuf) <read-expression-history>:
335 Give it a doc string.
336 * globals.h: Add Vread_expression_history.
337
bb1c6663
GM
338 * macros.c (syms_of_macros) <kbd-macro-termination-hook>:
339 Give it a doc string.
340 * globals.h: Add Vkbd_macro_termination_hook.
341
9aea757b
CY
3422011-01-20 Chong Yidong <cyd@stupidchicken.com>
343
344 * fns.c (Fyes_or_no_p): Revert 2011-01-07 change, removing ARGS.
345
e1ef0dac
PE
3462011-01-19 Paul Eggert <eggert@cs.ucla.edu>
347
348 Fix X11 compilation failure.
349 * globals.h (struct emacs_globals): Document f_Vselection_alist.
350 * xselect.c (Vselection_alist): Remove declaration, moving its
351 documentation to globals.h. This fixes a compilation failure
352 induced by the earlier change to globals.h today.
353
fb9d0f5a
JD
3542011-01-19 Jan Djärv <jan.h.d@swipnet.se>
355
8beb828a
JD
356 * unexmacosx.c: Include config.h before unistd.h (Bug#7859).
357
fb9d0f5a
JD
358 * nsterm.m (ns_input_file, ns_input_font, ns_input_fontsize)
359 (ns_input_line, ns_input_color, ns_input_text, ns_working_text)
360 (ns_input_spi_name, ns_input_spi_arg)
361 (ns_alternate_modifier, ns_right_alternate_modifier)
362 (ns_command_modifier, ns_right_command_modifier, ns_control_modifier)
363 (ns_right_control_modifier, ns_function_modifier)
364 (ns_antialias_text, ns_confirm_quit): Move to globals.h.
365 (Vx_toolkit_scroll_bars, x_use_underline_position_properties)
366 (x_underline_at_descent_line): Remove declaration.
367 (syms_of_nsterm): Remove & from DEFVAR_LISP and DEFVAR_BOOL.
368
369 * nsselect.m (Vns_sent_selection_hooks, Vns_lost_selection_hooks
370 (Vselection_alist, Vselection_converter_alist): Move to globals.h.
371 (syms_of_nsselect): Remove & from DEFVAR_LISP.
372
373 * nsmenu.m (Voverriding_local_map, Voverriding_local_map_menu_flag):
374 Remove declaration.
375
376 * nsfont.m (Vns_reg_to_script, ns_antialias_text): Move to
377 globals.h.
378 (syms_of_nsfont): Remove & from DEFVAR_LISP.
379
380 * nsfns.m (Vmenu_bar_mode, Vtool_bar_mode): Remove declaration.
381 (Vns_icon_type_alist, Vns_version_string): Move to globals.h.
382 (syms_of_nsfns): Remove & from DEFVAR_LISP calls.
383
384 * globals.h (struct emacs_globals): Add f_ns_input_file,
385 f_ns_input_font, f_ns_input_fontsize, f_ns_input_line,
386 f_ns_input_color, f_ns_input_text, f_ns_working_text,
387 f_ns_input_spi_name, f_ns_input_spi_arg, f_ns_alternate_modifier,
388 f_ns_right_alternate_modifier, f_ns_command_modifier,
389 f_ns_right_command_modifier, f_ns_control_modifier,
390 f_ns_right_control_modifier, f_ns_function_modifier,
391 f_ns_antialias_text, f_ns_confirm_quit, f_Vns_icon_type_alist,
392 f_Vns_version_string, f_Vns_sent_selection_hooks,
393 f_Vns_lost_selection_hooks, f_Vselection_alist, f_Vns_reg_to_script
394 and corresponding defines.
395
396
4e55715e
SS
3972011-01-19 Sam Steingold <sds@gnu.org>
398
399 * w32.c (check_windows_init_file): Remove declarations of
400 Vwindow_system, Vload_path, Qfile_exists_p to fix compilation.
817a735d 401 * w32fns.c: Fix an error introduced by the previous patch.
4e55715e 402
ef79d2fa
TT
4032011-01-19 Tom Tromey <tromey@redhat.com>
404
405 * window.c: Fix error introduced by previous patch.
406
29208e82
TT
4072011-01-18 Tom Tromey <tromey@parfait>
408
409 * globals.h: New file.
410 * xterm.h (Vx_pixel_size_width_font_regexp): Remove declaration.
411 * window.h (Vinitial_window_system, Vminibuf_scroll_window)
412 (Vwindow_system_version): Remove declaration.
413 * w32term.h (Vw32_enable_palette)
414 (Vx_pixel_size_width_font_regexp): Remove declaration.
415 * w32menu.c (Voverriding_local_map)
416 (Voverriding_local_map_menu_flag): Remove declaration.
417 * w32inevt.c (Vw32_alt_is_meta, Vw32_apps_modifier)
418 (Vw32_capslock_is_shiftlock, Vw32_enable_caps_lock)
419 (Vw32_enable_num_lock, Vw32_lwindow_modifier)
420 (Vw32_pass_lwindow_to_system, Vw32_pass_rwindow_to_system)
421 (Vw32_phantom_key_code, Vw32_recognize_altgr)
422 (Vw32_rwindow_modifier, Vw32_scroll_lock_modifier)
423 (w32_use_full_screen_buffer): Remove declaration.
424 * w32.c (Vsystem_configuration, Vw32_downcase_file_names)
425 (Vw32_generate_fake_inodes, Vw32_get_true_file_attributes)
426 (w32_num_mouse_buttons, w32_pipe_read_delay): Remove declaration.
427 * termopts.h (Vtruncate_partial_width_windows, inverse_video)
428 (no_redraw_on_reenter, visible_bell): Remove declaration.
429 * sysdep.c (Vsystem_name): Remove declaration.
430 * syntax.h (parse_sexp_lookup_properties): Remove declaration.
431 * menu.h (Vmenu_updating_frame): Remove declaration.
432 * macros.h (Vexecuting_kbd_macro, executing_kbd_macro_index):
433 Remove declaration.
434 * lisp.h (Vafter_init_time, Vafter_load_alist)
435 (Vauto_save_list_file_name, Vbefore_init_time, Vcommand_history)
436 (Vcompletion_regexp_list, Vcurrent_load_list)
437 (Vcurrent_prefix_arg, Vdata_directory, Vdebug_on_error)
438 (Vdoc_directory, Vdoc_file_name, Vdynamic_library_alist)
439 (Vexec_directory, Vexec_path, Vexec_suffixes)
440 (Vface_font_rescale_alist, Vface_ignored_fonts, Vfeatures)
441 (Vhelp_form, Vhistory_length, Vinhibit_field_text_motion)
442 (Vinhibit_quit, Vinhibit_read_only, Vinhibit_redisplay)
443 (Vinstallation_directory, Vinvocation_directory)
444 (Vinvocation_name, Vload_file_rep_suffixes, Vload_history)
445 (Vload_suffixes, Vmark_even_if_inactive, Vmemory_full)
446 (Vmessage_log_max, Vobarray, Vprint_length, Vprint_level)
447 (Vpurify_flag, Vquit_flag, Vsaved_region_selection)
448 (Vscalable_fonts_allowed, Vselect_active_regions)
449 (Vshell_file_name, Vstandard_input, Vstandard_output)
450 (Vsystem_name, Vtemporary_file_directory, Vthrow_on_input)
451 (Vtop_level, Vtty_erase_char, Vundo_outer_limit)
452 (Vuser_login_name, Vwindow_scroll_functions)
453 (Vwindow_system_version, Vx_no_window_manager)
454 (Vx_resource_class, Vx_resource_name, baud_rate)
455 (completion_ignore_case, debug_on_next_call, gc_cons_threshold)
456 (history_delete_duplicates, inhibit_x_resources)
457 (last_nonmenu_event, load_in_progress, max_specpdl_size)
458 (minibuffer_auto_raise, print_escape_newlines, scroll_margin)
459 (use_dialog_box, use_file_dialog): Remove declaration. Include
460 globals.h.
461 * keymap.h (Voverriding_local_map)
462 (Voverriding_local_map_menu_flag, meta_prefix_char): Remove
463 declaration.
464 * keyboard.h (Vdouble_click_time, Vfunction_key_map)
465 (Vinput_method_function, Vkey_translation_map)
466 (Vlucid_menu_bar_dirty_flag, Vthis_original_command)
467 (do_mouse_tracking, extra_keyboard_modifiers)
468 (num_nonmacro_input_events): Remove declaration.
469 * intervals.h (Vchar_property_alias_alist)
470 (Vdefault_text_properties, Vinhibit_point_motion_hooks)
471 (Vtext_property_default_nonsticky): Remove declaration.
472 * gtkutil.h (x_gtk_file_dialog_help_text)
473 (x_gtk_show_hidden_files, x_gtk_use_old_file_dialog)
474 (x_gtk_whole_detached_tool_bar): Remove declaration.
475 * frame.h (Vdefault_frame_alist, Vframe_alpha_lower_limit)
476 (Vmenu_bar_mode, Vmouse_highlight, Vterminal_frame)
477 (Vtool_bar_mode, Vx_resource_class, Vx_resource_name)
478 (focus_follows_mouse): Remove declaration.
479 * fontset.h (Valternate_fontname_alist, Vfontset_alias_alist)
480 (Vignore_relative_composition, Votf_script_alist)
481 (Vuse_default_ascent, Vvertical_centering_font_regexp): Remove
482 declaration.
483 * font.h (Vfont_log): Remove declaration.
484 * dosfns.h (Vdos_display_scancodes, Vdos_version)
485 (Vdos_windows_version, dos_codepage, dos_country_code)
486 (dos_decimal_point, dos_hyper_key, dos_keyboard_layout)
487 (dos_keypad_mode, dos_super_key, dos_timezone_offset): Remove
488 declaration.
489 * disptab.h (Vglyph_table, Vstandard_display_table): Remove
490 declaration.
491 * dispextern.h (Vface_remapping_alist, Vglyphless_char_display)
492 (Vmouse_autoselect_window, Voverflow_newline_into_fringe)
493 (Vshow_trailing_whitespace, Vtool_bar_button_margin)
494 (Vtool_bar_style, cursor_in_echo_area, display_hourglass_p)
495 (inverse_video, mode_line_in_non_selected_windows)
496 (tool_bar_button_relief, tool_bar_max_label_size)
497 (underline_minimum_offset)
498 (unibyte_display_via_language_environment, x_stretch_cursor_p):
499 Remove declaration.
500 * composite.h (Vauto_composition_function)
501 (Vcomposition_function_table): Remove declaration.
502 * commands.h (Vexecuting_kbd_macro)
503 (Vminibuffer_local_completion_map)
504 (Vminibuffer_local_filename_completion_map)
505 (Vminibuffer_local_filename_must_match_map)
506 (Vminibuffer_local_map, Vminibuffer_local_must_match_map)
507 (Vminibuffer_local_ns_map, Vthis_command)
508 (Vunread_command_events, cursor_in_echo_area)
509 (last_command_event, last_nonmenu_event, unread_command_char):
510 Remove declaration.
511 * coding.h (Vcoding_system_for_read, Vcoding_system_for_write)
512 (Vdefault_file_name_coding_system)
513 (Vdefault_process_coding_system, Vfile_name_coding_system)
514 (Vlast_coding_system_used, Vlocale_coding_system)
515 (Vselect_safe_coding_system_function)
516 (Vtranslation_table_for_input, coding_system_require_warning)
517 (eol_mnemonic_dos, eol_mnemonic_mac, eol_mnemonic_undecided)
518 (eol_mnemonic_unix, inherit_process_coding_system): Remove
519 declaration.
520 * charset.h (Vcharset_list, Vcurrent_iso639_language): Remove
521 declaration.
522 * character.h (Vauto_fill_chars, Vchar_direction_table)
523 (Vchar_script_table, Vchar_width_table, Vprintable_chars)
524 (Vscript_representative_chars, Vtranslation_table_vector)
525 (Vunicode_category_table): Remove declaration.
526 * ccl.h (Vfont_ccl_encoder_alist): Remove declaration.
527 * buffer.h (Vafter_change_functions, Vbefore_change_functions)
528 (Vdeactivate_mark, Vfirst_change_hook, Vtransient_mark_mode)
529 (inhibit_modification_hooks): Remove declaration.
530 * xterm.c (syms_of_xterm): Update.
531 (Vx_alt_keysym, Vx_hyper_keysym, Vx_keysym_table)
532 (Vx_meta_keysym, Vx_super_keysym, Vx_toolkit_scroll_bars)
533 (x_mouse_click_focus_ignore_position)
534 (x_underline_at_descent_line)
535 (x_use_underline_position_properties): Remove.
536 * xsmfns.c (syms_of_xsmfns): Update.
537 (Vx_session_id, Vx_session_previous_id): Remove.
538 * xsettings.c (syms_of_xsettings): Update.
539 (Vxft_settings, use_system_font): Remove.
540 * xselect.c (syms_of_xselect): Update.
541 (Vselection_converter_alist, Vx_lost_selection_functions)
542 (Vx_sent_selection_functions, x_selection_timeout): Remove.
543 * xfns.c (syms_of_xfns): Update.
544 (Vgtk_version_string, Vmotif_version_string)
545 (Vx_cursor_fore_pixel, Vx_hourglass_pointer_shape)
546 (Vx_max_tooltip_size, Vx_mode_pointer_shape)
547 (Vx_no_window_manager, Vx_nontext_pointer_shape)
548 (Vx_pixel_size_width_font_regexp, Vx_pointer_shape)
549 (Vx_sensitive_text_pointer_shape)
550 (Vx_window_horizontal_drag_shape, x_gtk_file_dialog_help_text)
551 (x_gtk_show_hidden_files, x_gtk_use_old_file_dialog)
552 (x_gtk_use_system_tooltips, x_gtk_whole_detached_tool_bar):
553 Remove.
554 * xfaces.c (syms_of_xfaces): Update.
555 (Vface_default_stipple, Vface_font_rescale_alist)
556 (Vface_ignored_fonts, Vface_new_frame_defaults)
557 (Vface_remapping_alist, Vfont_list_limit)
558 (Vscalable_fonts_allowed, Vtty_defined_color_alist): Remove.
559 * xdisp.c (syms_of_xdisp): Update.
560 (Vauto_resize_tool_bars, Vblink_cursor_alist)
561 (Vdisplay_pixels_per_inch, Vfontification_functions)
562 (Vframe_title_format, Vglobal_mode_string)
563 (Vglyphless_char_display, Vhourglass_delay, Vhscroll_step)
564 (Vicon_title_format, Vinhibit_redisplay)
565 (Vline_number_display_limit, Vline_prefix)
566 (Vmax_mini_window_height, Vmenu_bar_update_hook)
567 (Vmenu_updating_frame, Vmessage_log_max)
568 (Vmouse_autoselect_window, Vnobreak_char_display)
569 (Voverlay_arrow_position, Voverlay_arrow_string)
570 (Voverlay_arrow_variable_list, Vredisplay_end_trigger_functions)
571 (Vresize_mini_windows, Vshow_trailing_whitespace)
572 (Vtool_bar_border, Vtool_bar_button_margin, Vtool_bar_style)
573 (Vtruncate_partial_width_windows, Vvoid_text_area_pointer)
574 (Vwindow_scroll_functions, Vwindow_size_change_functions)
575 (Vwindow_text_change_functions, Vwrap_prefix)
576 (auto_raise_tool_bar_buttons_p, automatic_hscrolling_p)
577 (debug_end_pos, display_hourglass_p, emacs_scroll_step)
578 (highlight_nonselected_windows, hscroll_margin)
579 (inhibit_eval_during_redisplay, inhibit_free_realized_faces)
580 (inhibit_menubar_update, inhibit_try_cursor_movement)
581 (inhibit_try_window_id, inhibit_try_window_reusing)
582 (line_number_display_limit_width)
583 (make_cursor_line_fully_visible_p, message_truncate_lines)
584 (mode_line_inverse_video, multiple_frames, overline_margin)
585 (scroll_conservatively, scroll_margin, tool_bar_button_relief)
586 (tool_bar_max_label_size, underline_minimum_offset)
587 (unibyte_display_via_language_environment, x_stretch_cursor_p):
588 Remove.
589 * window.c (syms_of_window): Update.
590 (Vminibuf_scroll_window, Vother_window_scroll_buffer)
591 (Vrecenter_redisplay, Vscroll_preserve_screen_position)
592 (Vtemp_buffer_show_function, Vwindow_configuration_change_hook)
593 (Vwindow_point_insertion_type, auto_window_vscroll_p)
594 (mode_line_in_non_selected_windows, next_screen_context_lines)
595 (window_min_height, window_min_width): Remove.
596 (scroll_margin): Remove declaration.
597 * w32term.c (syms_of_w32term): Update.
598 (Vw32_capslock_is_shiftlock, Vw32_grab_focus_on_raise)
599 (Vw32_recognize_altgr, Vw32_swap_mouse_buttons)
600 (Vx_toolkit_scroll_bars, w32_num_mouse_buttons)
601 (w32_use_visible_system_caret, x_underline_at_descent_line)
602 (x_use_underline_position_properties): Remove.
603 (Vcommand_line_args, Vsystem_name, extra_keyboard_modifiers):
604 Remove declaration.
605 * w32select.c (syms_of_w32select): Update.
606 (Vnext_selection_coding_system, Vselection_coding_system): Remove.
607 * w32proc.c (syms_of_ntproc): Update.
608 (Vw32_downcase_file_names, Vw32_generate_fake_inodes)
609 (Vw32_get_true_file_attributes, Vw32_quote_process_args)
610 (Vw32_start_process_inherit_error_mode)
611 (Vw32_start_process_share_console)
612 (Vw32_start_process_show_window, w32_pipe_read_delay): Remove.
613 (Vsystem_name): Remove declaration.
614 * w32font.c (syms_of_w32font): Update.
615 (Vw32_charset_info_alist): Remove.
616 * w32fns.c (globals_of_w32fns, syms_of_w32fns): Update.
617 (Vw32_alt_is_meta, Vw32_apps_modifier, Vw32_bdf_filename_alist)
618 (Vw32_color_map, Vw32_enable_caps_lock, Vw32_enable_num_lock)
619 (Vw32_enable_palette, Vw32_lwindow_modifier)
620 (Vw32_pass_alt_to_system, Vw32_pass_lwindow_to_system)
621 (Vw32_pass_rwindow_to_system, Vw32_phantom_key_code)
622 (Vw32_rwindow_modifier, Vw32_scroll_lock_modifier)
623 (Vx_cursor_fore_pixel, Vx_hourglass_pointer_shape)
624 (Vx_max_tooltip_size, Vx_mode_pointer_shape)
625 (Vx_no_window_manager, Vx_nontext_pointer_shape)
626 (Vx_pixel_size_width_font_regexp, Vx_pointer_shape)
627 (Vx_sensitive_text_pointer_shape)
628 (Vx_window_horizontal_drag_shape, w32_ansi_code_page)
629 (w32_enable_synthesized_fonts, w32_mouse_button_tolerance)
630 (w32_mouse_move_interval)
631 (w32_pass_extra_mouse_buttons_to_system)
632 (w32_pass_multimedia_buttons_to_system, w32_quit_key)
633 (w32_strict_fontnames, w32_strict_painting): Remove.
634 (Vhourglass_delay, Vmenu_bar_mode, Vtool_bar_mode)
635 (Vw32_recognize_altgr, Vwindow_system_version)
636 (w32_num_mouse_buttons, w32_use_visible_system_caret): Remove
637 declaration.
638 * w32console.c (syms_of_ntterm): Update.
639 (w32_use_full_screen_buffer): Remove.
640 (Vtty_defined_color_alist): Remove declaration.
641 * w16select.c (syms_of_win16select): Update.
642 (Vnext_selection_coding_system, Vselection_coding_system): Remove.
643 * undo.c (syms_of_undo): Update.
644 (Vundo_outer_limit, Vundo_outer_limit_function)
645 (undo_inhibit_record_point, undo_limit, undo_strong_limit):
646 Remove.
647 * textprop.c (syms_of_textprop): Update.
648 (Vchar_property_alias_alist, Vdefault_text_properties)
649 (Vinhibit_point_motion_hooks, Vtext_property_default_nonsticky):
650 Remove.
651 * terminal.c (syms_of_terminal): Update.
652 (Vdelete_terminal_functions, Vring_bell_function): Remove.
653 * term.c (syms_of_term): Update.
654 (Vresume_tty_functions, Vsuspend_tty_functions)
655 (no_redraw_on_reenter, system_uses_terminfo, visible_cursor):
656 Remove.
657 * syntax.c (syms_of_syntax): Update.
658 (Vfind_word_boundary_function_table, multibyte_syntax_as_symbol)
659 (open_paren_in_column_0_is_defun_start)
660 (parse_sexp_ignore_comments, parse_sexp_lookup_properties)
661 (words_include_escapes): Remove.
662 * search.c (syms_of_search): Update.
663 (Vinhibit_changing_match_data, Vsearch_spaces_regexp): Remove.
664 * process.c (syms_of_process): Update.
665 (Vprocess_adaptive_read_buffering, Vprocess_connection_type)
666 (delete_exited_processes): Remove.
667 * print.c (syms_of_print): Update.
668 (Vfloat_output_format, Vprint_charset_text_property)
669 (Vprint_circle, Vprint_continuous_numbering, Vprint_gensym)
670 (Vprint_length, Vprint_level, Vprint_number_table)
671 (Vstandard_output, print_escape_multibyte)
672 (print_escape_newlines, print_escape_nonascii, print_quoted):
673 Remove.
674 * msdos.c (syms_of_msdos): Update.
675 (Vdos_unsupported_char_glyph): Remove.
676 (unibyte_display_via_language_environment): Remove declaration.
677 * minibuf.c (syms_of_minibuf): Update.
678 (Vcompletion_regexp_list, Vhistory_add_new_input)
679 (Vhistory_length, Vminibuffer_completing_file_name)
680 (Vminibuffer_completion_confirm)
681 (Vminibuffer_completion_predicate, Vminibuffer_completion_table)
682 (Vminibuffer_exit_hook, Vminibuffer_help_form)
683 (Vminibuffer_history_position, Vminibuffer_history_variable)
684 (Vminibuffer_prompt_properties, Vminibuffer_setup_hook)
685 (Vread_buffer_function, Vread_expression_map)
686 (completion_ignore_case, enable_recursive_minibuffers)
687 (history_delete_duplicates, minibuffer_allow_text_properties)
688 (minibuffer_auto_raise, read_buffer_completion_ignore_case):
689 Remove.
690 * marker.c (syms_of_marker): Update.
691 (byte_debug_flag): Remove.
692 * macros.c (syms_of_macros): Update.
693 (Vexecuting_kbd_macro, executing_kbd_macro_index): Remove.
694 * lread.c (syms_of_lread): Update.
695 (Vafter_load_alist, Vbyte_boolean_vars)
696 (Vbytecomp_version_regexp, Vcurrent_load_list)
697 (Veval_buffer_list, Vload_file_name, Vload_file_rep_suffixes)
698 (Vload_history, Vload_path, Vload_read_function)
699 (Vload_source_file_function, Vload_suffixes, Vobarray)
700 (Vold_style_backquotes, Vpreloaded_file_list, Vread_circle)
701 (Vread_symbol_positions_list, Vread_with_symbol_positions)
702 (Vsource_directory, Vstandard_input, Vuser_init_file, Vvalues)
703 (force_load_messages, load_convert_to_unibyte)
704 (load_dangerous_libraries, load_force_doc_strings)
705 (load_in_progress): Remove.
706 * keymap.c (syms_of_keymap): Update.
707 (Vdefine_key_rebound_commands, Vemulation_mode_map_alists)
708 (Vminibuffer_local_completion_map)
709 (Vminibuffer_local_filename_completion_map)
710 (Vminibuffer_local_filename_must_match_map)
711 (Vminibuffer_local_map, Vminibuffer_local_must_match_map)
712 (Vminibuffer_local_ns_map, Vminor_mode_map_alist)
713 (Vminor_mode_overriding_map_alist, Vwhere_is_preferred_modifier):
714 Remove.
715 * keyboard.c (syms_of_keyboard): Update.
716 (Vauto_save_timeout, Vcommand_error_function)
717 (Vcommand_hook_internal, Vdeactivate_mark)
718 (Vdeferred_action_function, Vdeferred_action_list)
719 (Vdisable_point_adjustment, Vdouble_click_time)
720 (Vecho_keystrokes, Venable_disabled_menus_and_buttons)
721 (Vfunction_key_map, Vglobal_disable_point_adjustment)
722 (Vhelp_char, Vhelp_event_list, Vhelp_form)
723 (Vinput_method_function, Vinput_method_previous_message)
724 (Vkey_translation_map, Vlast_event_frame)
725 (Vlucid_menu_bar_dirty_flag, Vmenu_bar_final_items)
726 (Vminibuffer_message_timeout, Voverriding_local_map)
727 (Voverriding_local_map_menu_flag, Vpost_command_hook)
728 (Vpre_command_hook, Vprefix_help_command)
729 (Vsaved_region_selection, Vselect_active_regions)
730 (Vshow_help_function, Vspecial_event_map, Vsuggest_key_bindings)
731 (Vthis_command, Vthis_command_keys_shift_translated)
732 (Vthis_original_command, Vthrow_on_input, Vtimer_idle_list)
733 (Vtimer_list, Vtool_bar_separator_image_expression, Vtop_level)
734 (Vtty_erase_char, Vunread_command_events)
735 (Vunread_input_method_events, Vunread_post_input_method_events)
736 (auto_save_interval, cannot_suspend, do_mouse_tracking)
737 (double_click_fuzz, extra_keyboard_modifiers)
738 (inhibit_local_menu_bar_menus, last_command_event)
739 (last_input_event, last_nonmenu_event, menu_prompt_more_char)
740 (menu_prompting, meta_prefix_char, num_input_keys)
741 (num_nonmacro_input_events, polling_period, unread_command_char):
742 Remove.
743 * insdel.c (syms_of_insdel): Update.
744 (Vcombine_after_change_calls, check_markers_debug_flag): Remove.
745 * indent.c (syms_of_indent): Update.
746 (indent_tabs_mode): Remove.
747 * image.c (syms_of_image): Update.
748 (Vimage_cache_eviction_delay, Vimage_types)
749 (Vimagemagick_render_type, Vmax_image_size, Vx_bitmap_file_path)
750 (cross_disabled_images): Remove.
751 * fringe.c (syms_of_fringe): Update.
752 (Vfringe_bitmaps, Voverflow_newline_into_fringe): Remove.
753 * frame.c (syms_of_frame): Update.
754 (Vdefault_frame_alist, Vdefault_frame_scroll_bars)
755 (Vdelete_frame_functions, Vframe_alpha_lower_limit)
756 (Vmake_pointer_invisible, Vmenu_bar_mode, Vmouse_highlight)
757 (Vmouse_position_function, Vterminal_frame, Vtool_bar_mode)
758 (Vx_resource_class, Vx_resource_name, focus_follows_mouse):
759 Remove.
760 * fontset.c (syms_of_fontset): Update.
761 (Valternate_fontname_alist, Vfont_encoding_charset_alist)
762 (Vfontset_alias_alist, Vignore_relative_composition)
763 (Votf_script_alist, Vuse_default_ascent)
764 (Vvertical_centering_font_regexp): Remove.
765 * font.c (syms_of_font): Update.
766 (Vfont_encoding_alist, Vfont_log, Vfont_slant_table)
767 (Vfont_weight_table, Vfont_width_table): Remove.
768 * fns.c (syms_of_fns): Update.
769 (Vfeatures, use_dialog_box, use_file_dialog): Remove.
770 * filelock.c (syms_of_filelock): Update.
771 (Vtemporary_file_directory): Remove.
772 * fileio.c (syms_of_fileio): Update.
773 (Vafter_insert_file_functions, Vauto_save_include_big_deletions)
774 (Vauto_save_list_file_name, Vauto_save_visited_file_name)
775 (Vdefault_file_name_coding_system, Vfile_name_coding_system)
776 (Vfile_name_handler_alist, Vinhibit_file_name_handlers)
777 (Vinhibit_file_name_operation, Vset_auto_coding_function)
778 (Vwrite_region_annotate_functions)
779 (Vwrite_region_annotations_so_far)
780 (Vwrite_region_post_annotation_function)
781 (delete_by_moving_to_trash, write_region_inhibit_fsync): Remove.
782 (Vw32_get_true_file_attributes): Remove declaration.
783 * eval.c (syms_of_eval): Update.
784 (Vdebug_ignored_errors, Vdebug_on_error, Vdebug_on_signal)
785 (Vdebugger, Vinhibit_quit, Vmacro_declaration_function)
786 (Vquit_flag, Vsignal_hook_function, Vstack_trace_on_error)
787 (debug_on_next_call, debug_on_quit, debugger_may_continue)
788 (max_lisp_eval_depth, max_specpdl_size): Remove.
789 * emacs.c (syms_of_emacs): Update.
790 (Vafter_init_time, Vbefore_init_time, Vcommand_line_args)
791 (Vdynamic_library_alist, Vemacs_copyright, Vemacs_version)
792 (Vinstallation_directory, Vinvocation_directory)
793 (Vinvocation_name, Vkill_emacs_hook, Vpath_separator)
794 (Vprevious_system_messages_locale, Vprevious_system_time_locale)
795 (Vsystem_configuration, Vsystem_configuration_options)
796 (Vsystem_messages_locale, Vsystem_time_locale, Vsystem_type)
797 (inhibit_x_resources, noninteractive1): Remove.
798 * editfns.c (syms_of_editfns): Update.
799 (Vbuffer_access_fontified_property)
800 (Vbuffer_access_fontify_functions, Vinhibit_field_text_motion)
801 (Voperating_system_release, Vsystem_name, Vuser_full_name)
802 (Vuser_login_name, Vuser_real_login_name): Remove.
803 * dosfns.c (syms_of_dosfns): Update.
804 (Vdos_display_scancodes, Vdos_version, Vdos_windows_version)
805 (dos_codepage, dos_country_code, dos_decimal_point)
806 (dos_hyper_key, dos_keyboard_layout, dos_keypad_mode)
807 (dos_super_key, dos_timezone_offset): Remove.
808 * doc.c (syms_of_doc): Update.
809 (Vbuild_files, Vdoc_file_name): Remove.
810 * dispnew.c (syms_of_display): Update.
811 (Vglyph_table, Vinitial_window_system)
812 (Vredisplay_preemption_period, Vstandard_display_table)
813 (Vwindow_system_version, baud_rate, cursor_in_echo_area)
814 (inverse_video, redisplay_dont_pause, visible_bell): Remove.
815 * dired.c (syms_of_dired): Update.
816 (Vcompletion_ignored_extensions): Remove.
817 (Vw32_get_true_file_attributes): Remove declaration.
818 * dbusbind.c (syms_of_dbusbind): Update.
819 (Vdbus_debug, Vdbus_registered_buses)
820 (Vdbus_registered_objects_table): Remove.
821 * data.c (syms_of_data): Update.
822 (Vmost_negative_fixnum, Vmost_positive_fixnum): Remove.
823 * composite.c (syms_of_composite): Update.
824 (Vauto_composition_function, Vauto_composition_mode)
825 (Vcompose_chars_after_function, Vcomposition_function_table):
826 Remove.
827 * coding.c (syms_of_coding): Update.
828 (Vcharset_revision_table, Vcoding_category_list)
829 (Vcoding_system_alist, Vcoding_system_for_read)
830 (Vcoding_system_for_write, Vcoding_system_list)
831 (Vdefault_process_coding_system, Venable_character_translation)
832 (Vfile_coding_system_alist, Vlast_code_conversion_error)
833 (Vlast_coding_system_used, Vlatin_extra_code_table)
834 (Vlocale_coding_system, Vnetwork_coding_system_alist)
835 (Vprocess_coding_system_alist)
836 (Vselect_safe_coding_system_function)
837 (Vstandard_translation_table_for_decode)
838 (Vstandard_translation_table_for_encode)
839 (Vtranslation_table_for_input, coding_system_require_warning)
840 (eol_mnemonic_dos, eol_mnemonic_mac, eol_mnemonic_undecided)
841 (eol_mnemonic_unix, inherit_process_coding_system)
842 (inhibit_eol_conversion, inhibit_iso_escape_detection)
843 (inhibit_null_byte_detection): Remove.
844 * cmds.c (syms_of_cmds): Update.
845 (Vpost_self_insert_hook): Remove.
846 * charset.c (syms_of_charset): Update.
847 (Vcharset_list, Vcharset_map_path, Vcurrent_iso639_language)
848 (inhibit_load_charset_map): Remove.
849 * character.c (syms_of_character): Update.
850 (Vauto_fill_chars, Vchar_direction_table, Vchar_script_table)
851 (Vchar_width_table, Vprintable_chars)
852 (Vscript_representative_chars, Vtranslation_table_vector)
853 (Vunicode_category_table): Remove.
854 * ccl.c (syms_of_ccl): Update.
855 (Vcode_conversion_map_vector, Vfont_ccl_encoder_alist)
856 (Vtranslation_hash_table_vector): Remove.
857 * category.c (syms_of_category): Update.
858 (Vword_combining_categories, Vword_separating_categories): Remove.
859 * callproc.c (syms_of_callproc): Update.
860 (Vconfigure_info_directory, Vdata_directory, Vdoc_directory)
861 (Vexec_directory, Vexec_path, Vexec_suffixes)
862 (Vinitial_environment, Vprocess_environment)
863 (Vshared_game_score_directory, Vshell_file_name): Remove.
864 * callint.c (syms_of_callint): Update.
865 (Vcommand_debug_status, Vcommand_history, Vcurrent_prefix_arg)
866 (Vmark_even_if_inactive, Vmouse_leave_buffer_hook): Remove.
867 * bytecode.c (syms_of_bytecode): Update.
868 (Vbyte_code_meter, byte_metering_on): Remove.
869 * buffer.c (syms_of_buffer): Update.
870 (Vafter_change_functions, Vbefore_change_functions)
871 (Vchange_major_mode_hook, Vfirst_change_hook)
872 (Vinhibit_read_only, Vkill_buffer_query_functions)
873 (Vtransient_mark_mode, inhibit_modification_hooks): Remove.
874 * alloc.c (syms_of_alloc): Update.
875 (Vgc_cons_percentage, Vgc_elapsed, Vmemory_full)
876 (Vmemory_signal_data, Vpost_gc_hook, Vpurify_flag)
877 (cons_cells_consed, floats_consed, garbage_collection_messages)
878 (gc_cons_threshold, gcs_done, intervals_consed)
879 (misc_objects_consed, pure_bytes_used, string_chars_consed)
880 (strings_consed, symbols_consed, vector_cells_consed): Remove.
881
882 * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
883 (DEFVAR_INT): Assume global is in `globals'.
884 * alloc.c (globals): Define.
885
448c0820
TT
8862011-01-18 Tom Tromey <tromey@redhat.com>
887
888 * image.c (Vimagemagick_render_type): Remove redundant
889 definition.
890
8442d95d
TT
8912011-01-18 Tom Tromey <tromey@redhat.com>
892
893 * xdisp.c (emacs_scroll_step): Rename from scroll_step.
894 (try_scrolling): Rename argument to 'arg_scroll_conservatively'.
895 (redisplay_window): Update.
896 (syms_of_xdisp): Update.
897
cab0ba98
TT
8982011-01-18 Tom Tromey <tromey@redhat.com>
899
900 * gtkutil.h (x_gtk_use_old_file_dialog, x_gtk_show_hidden_files)
901 (x_gtk_file_dialog_help_text, x_gtk_whole_detached_tool_bar):
902 Declare.
903 * gtkutil.c (xg_uses_old_file_dialog):
904 (xg_get_file_with_chooser):
905 (xg_tool_bar_detach_callback): Don't redeclare globals.
906
422745d0
TT
9072011-01-18 Tom Tromey <tromey@redhat.com>
908
909 * lisp.h (DEFVAR_BUFFER_DEFAULTS): New macro.
910 * buffer.c (syms_of_buffer): Use DEFVAR_BUFFER_DEFAULTS.
911
7cae64b4
PE
9122011-01-18 Paul Eggert <eggert@cs.ucla.edu>
913
914 * lisp.h (DECL_ALIGN): Define if HAVE_ATTRIBUTE_ALIGNED, not if
915 defined __GNUC__. ../configure now checks for this GCC feature,
916 which is now also supported by IBM and Oracle compilers.
917 (USE_LSB_TAG) [defined DECL_ALIGN]: Also define if defined __sun,
918 since Solaris malloc returns mult-of-8.
919
a9faac5c 9202011-01-18 Stefan Monnier <monnier@iro.umontreal.ca>
0514b4be
SM
921
922 * image.c (syms_of_image): Don't access XSYMBOL's internals directly.
923
a3e44e79 9242011-01-17 Paul Eggert <eggert@cs.ucla.edu>
fa2c4f56 925
6e8e6bf2
PE
926 Give a name FLOAT_TO_STRING_BUFSIZE to the constant 350.
927 * lisp.h (FLOAT_TO_STRING_BUFSIZE): New macro.
928 * data.c (Fnumber_to_string): Use it.
929 * print.c (float_to_string, print_object): Likewise.
930
4004364e
PE
931 Include <unistd.h> unilaterally.
932 * alloc.c, atimer.c, buffer.c, callproc.c, dired.c, dispnew.c, doc.c:
933 * doprnt.c, editfns.c, emacs.c, fileio.c, filelock.c, fns.c:
934 * getloadavg.c, getpagesize.h, gmalloc.c, image.c, keyboard.c:
935 * lread.c, process.c, process.h, ralloc.c, regex.c, sysdep.c:
936 * systty.h, term.c, termcap.c, xfns.c, xrdb.c, xselect.c, xsmfns.c:
937 * xterm.c:
938 Include <unistd.h> without worrying about HAVE_UNISTD_H, since
939 unistd.h is always present now, possibly supplied by gnulib.
940
e84aba69
PE
941 * mktime.c: Remove; moving to ../lib.
942
1e11dbe3
PE
943 Use gnulib's mktime module.
944 * deps.mk (mktime.o): Remove rule.
945
fa2c4f56
PE
946 Use gnulib's ftoastr module.
947 * print.c: Include ftoastr.h.
948 (FLT_RADIX, DBL_MANT_DIG, DBL_DIG, DBL_MIN, DOUBLE_DIGITS_BOUND):
949 Remove; no longer needed.
950 (float_to_string): Use dtoastr rather than rolling our own code,
951 which had an off-by-one bug on non-IEEE hosts.
952
9a514d4a
PE
953 Automate syncing from gnulib.
954 * Makefile.in (lib): New macro.
955 (ALL_CFLAGS): Add -I$(lib) -I$(srcdir)/../lib.
956 ($(lib)/libgnu.a): New rule.
957 (temacs$(EXEEXT)): Also link $(lib)/libgnu.a.
958
717c30e0
PE
959 * xfns.c (x_real_positions): Fix signedness of local var 'ign'.
960 XGetGeometry wants unsigned int *, not int *, for its last 4 args,
961 so change the type of 'ign' to unsigned int from int.
962
8865d794
PE
963 * regex.c (analyse_first): Remove unreachable 'continue' statement.
964
4ef36a7b
PE
965 * xterm.h (struct x_display_info): Remove stray semicolon.
966 The extra semicolon didn't conform to the C standard.
967 Problem reported by Sun cc.
968
6df4097e
PE
969 * lisp.h: Redo flags and XSET slightly to avoid overflow diagnostics.
970 These changes make compilation easier to follow with Sun cc.
971 (ARRAY_MARK_FLAG): Make it signed, so that it can be assigned to
972 EMACS_INT values without provoking overflow diagnostics.
973 (PSEUDOVECTOR_FLAG): Likewise, for consistency.
974 (XSET) [! USE_LSB_TAG]: Use unsigned left shift to avoid overflow
975 diagnostic with signed left shift.
9fba3563 976
410ed5c3
PE
977 * fileio.c (make_temp_name): Remove unreachable code.
978
97be3ce3
PE
979 * fontset.c (free_realized_fontset): Mark unreachable code with if (0).
980 Previously it was marked by preceding it with "return;", but
981 Sun cc complains about this.
982
9fba3563
PE
983 * coding.c (decode_coding_emacs_mule): Remove unreachable code.
984 This is a typo left over from 2009-03-06T07:51:52Z!handa@m17n.org,
985 which fixed Bug#2370. Caught by Sun cc.
986
6dc1d2d3
MR
9872011-01-15 Martin Rudalics <rudalics@gmx.at>
988
989 * window.c (inhibit_point_swap): New variable.
990 (Fselect_window): If inhibit_point_swap is nonzero, avoid swapping
991 point this time.
992 (Fset_window_configuration): Set inhibit_point_swap to 1 instead
993 of setting selected_window to nil (Bug#7728).
994
f853f599
TH
9952011-01-11 Tassilo Horn <tassilo@member.fsf.org>
996
8dabbfd6
SM
997 * image.c (imagemagick_load_image, Finit_image_library):
998 Free intermediate image after creating a MagickWand from it.
999 Terminate MagickWand environment after image loading.
f853f599 1000
2bc92a93
MA
10012011-01-10 Michael Albinus <michael.albinus@gmx.de>
1002
1003 * dbusbind.c (Fdbus_register_service): Raise an error in case of
1004 unexpected return values.
1005 (Fdbus_register_method): Remove connection initialization.
1006
10072011-01-10 Jan Moringen <jan.moringen@uni-bielefeld.de>
5b83ba18
MA
1008
1009 * dbusbind.c (QCdbus_request_name_allow_replacement): New symbol;
1010 used by Fdbus_register_service.
1011 (QCdbus_request_name_replace_existing): Likewise.
1012 (QCdbus_request_name_do_not_queue): Likewise.
1013 (QCdbus_request_name_reply_primary_owner): Likewise.
1014 (QCdbus_request_name_reply_in_queue): Likewise.
1015 (QCdbus_request_name_reply_exists): Likewise.
1016 (QCdbus_request_name_reply_already_owner): Likewise.
1017 (Fdbus_register_service): New function.
1018 (Fdbus_register_method): Use Fdbus_register_service to do the name
1019 registration.
1020 (syms_of_dbusbind): Add symbols dbus-register-service,
1021 :allow-replacement, :replace-existing, :do-not-queue,
1022 :primary-owner, :existing, :in-queue and :already-owner.
1023
21a76236
CY
10242011-01-09 Chong Yidong <cyd@stupidchicken.com>
1025
1026 * gtkutil.c (update_frame_tool_bar): Don't advance tool-bar index
1027 when removing extra buttons.
1028
3d91e302
CY
10292011-01-08 Chong Yidong <cyd@stupidchicken.com>
1030
1031 * fns.c (Fyes_or_no_p): Doc fix.
1032
0d23ffb5
AS
10332011-01-08 Andreas Schwab <schwab@linux-m68k.org>
1034
1035 * fns.c (Fyes_or_no_p): Add usage.
1036
9dc3366b
GM
10372011-01-08 Glenn Morris <rgm@gnu.org>
1038
d0981f82
GM
1039 * makefile.w32-in ($(EMACS)):
1040 * Makefile.in (emacs$(EXEEXT)): -batch implies -q.
1041
9dc3366b
GM
1042 * xdisp.c (syms_of_xdisp) <Qrisky_local_variable>: Move from here...
1043 * emacs.c (syms_of_emacs) <Qrisky_local_variable>: ...to here.
1044
466cbae9
AS
10452011-01-07 Andreas Schwab <schwab@linux-m68k.org>
1046
1047 * image.c (imagemagick_load_image): Fix some resource leaks and
1048 error handling.
1049
8c51d2a2
CY
10502011-01-07 Chong Yidong <cyd@stupidchicken.com>
1051
1052 * fns.c (Fyes_or_no_p): Accept format string args.
1053
66b7b0fe
GM
10542011-01-07 Glenn Morris <rgm@gnu.org>
1055
1056 * emacs.c (no_site_lisp): New int.
1057 (USAGE1): Add --no-site-lisp, mention -Q uses it.
1058 (main): Set no_site_lisp.
1059 (standard_args): Add --no-site-lisp.
1060 * lisp.h (no_site_lisp): New int.
1061 * lread.c (init_lread): If no_site_lisp, don't re-add site-lisp
1062 directories to Vload_path.
1063
2018939f
AS
10642011-01-05 Andreas Schwab <schwab@linux-m68k.org>
1065
1066 * alloc.c (mark_stack): Use __builtin_unwind_init if available.
1067
6ed843e5
MA
10682011-01-04 Jan Moringen <jan.moringen@uni-bielefeld.de>
1069
8dabbfd6 1070 * dbusbind.c (Fdbus_register_method): Add optional parameter
6ed843e5
MA
1071 dont_register_service. Updated docstring accordingly.
1072
3f9b7090
GM
10732011-01-04 Glenn Morris <rgm@gnu.org>
1074
1075 * emacs.c (emacs_copyright): Update short copyright year to 2011.
1076
d82bce4a
EZ
10772011-01-03 Eli Zaretskii <eliz@gnu.org>
1078
1079 * image.c (png_jmpbuf): Remove definition.
1080 (my_png_error, png_load): Don't use png_jmpbuf.
1081
7c420169
CY
10822011-01-02 Eli Zaretskii <eliz@gnu.org>
1083
1084 * keyboard.c (Vselect_active_regions): Doc fix. (Bug#7702)
1085
10862011-01-02 Eli Zaretskii <eliz@gnu.org>
5be1c984
EZ
1087
1088 * image.c <Qlibpng_version>: New variable.
1089 (syms_of_image): Intern and staticpro it. Set its value to the
1090 version of PNG library we were compiled with.
1091 (my_png_error, png_load): Avoid GCC warnings about direct access
1092 to png_ptr->jmpbuf. (Bug#7716)
18da2e74
EZ
1093 (png_jmpbuf): New macro.
1094 (my_png_error, png_load): Use it instead of #ifdef'ing according
1095 to PNG_LIBPNG_VER_MAJOR and PNG_LIBPNG_VER_MINOR.
5be1c984 1096
7c420169 10972011-01-02 Stefan Monnier <monnier@iro.umontreal.ca>
cf07311b
SM
1098
1099 * .gdbinit (xgetptr): Fix the union+lsb case.
1100 (xbacktrace): Fix the union case.
1101
7c420169 11022011-01-02 Stefan Monnier <monnier@iro.umontreal.ca>
794b75c7
SM
1103
1104 * window.c (Fmove_to_window_line): Avoid abort when called in a buffer
1105 different from selected-window's.
1106
7c420169 11072011-01-02 Eli Zaretskii <eliz@gnu.org>
2e4ab211 1108
71fe378d
EZ
1109 * keyboard.c (parse_menu_item): Prepend " " to the key sequence
1110 equivalent of a menu item when the key sequence is given by the
1111 `:keys' attribute. (Bug#7662)
1112
2e4ab211
EZ
1113 * xdisp.c (Fformat_mode_line): Doc fix: no need to state that only
1114 the basic faces are supported.
1115
7c420169 11162011-01-02 Jan Djärv <jan.h.d@swipnet.se>
84595ff0
JD
1117
1118 * xterm.c (x_check_fullscreen): Fix pixel/character mixup.
1119
7c420169 11202011-01-02 Eli Zaretskii <eliz@gnu.org>
30d621a2
EZ
1121
1122 * xdisp.c (Fformat_mode_line): Fix last change.
1123
7c420169 11242011-01-02 Chong Yidong <cyd@stupidchicken.com>
4bf3e46e
CY
1125
1126 * xdisp.c (Fformat_mode_line): Restrict the FACE argument to basic
1127 faces (Bug#7587).
1128
7c420169 11292011-01-02 Eli Zaretskii <eliz@gnu.org>
1b2a627f
EZ
1130
1131 * fileio.c (Fexpand_file_name): One more doc fix.
1132
3afff00e
CY
11332011-01-01 Chong Yidong <cyd@stupidchicken.com>
1134
1135 * gtkutil.c (xg_get_tool_bar_widgets): Use NULL for a missing
1136 image or label in the container.
1137 (xg_make_tool_item): Replace VERT_ONLY arg with HORIZ, TEXT_IMAGE.
1138 (xg_show_toolbar_item): Function deleted.
1139 (xg_tool_item_stale_p): New function.
1140 (update_frame_tool_bar): Calculate tool-bar style once per call.
1141 Instead of hiding text labels, omit them. Don't use
1142 xg_show_toolbar_item; create new GtkToolItems from scratch if
1143 necessary, instead of trying to re-use them. This avoids an
1144 annoying animation when changing tool-bars.
1145
aeb7e951
JD
11462010-12-31 Jan Djärv <jan.h.d@swipnet.se>
1147
1148 * nsfns.m (ns_set_name_as_filename): Always use buffer name for
1149 title and buffer filename only for RepresentedFilename.
1150 Handle bad UTF-8 in buffer name (Bug#7517).
1151
5bbb4727
JD
11522010-12-30 Jan Djärv <jan.h.d@swipnet.se>
1153
1154 * coding.h (ENCODE_UTF_8): Remove "Used by ..." comment.
1155
1156 * nsfns.m (ns_set_name_iconic): Remove.
1157 (ns_set_name_internal): New function (Bug#7517).
1158 (Vicon_title_format): Extern declare.
1159 (ns_set_name): Call ns_set_name_internal.
1160 (x_explicitly_set_name): Remove call to ns_set_name_iconic.
1161 (x_implicitly_set_name): Ditto.
1162 (x_set_title): Remove commet about EXPLICIT. Call ns_set_name_internal.
1163 (ns_set_name_as_filename): Encode name with ENCODE_UTF_8 (Bug#7517).
1164
f1aab3ff
ŠN
11652010-12-29 Štěpán Němec <stepnem@gmail.com> (tiny change)
1166
1167 * window.c (syms_of_window): Add missing defsubr for
1168 window-use-time.
1169
365525b3
AS
11702010-12-28 Andreas Schwab <schwab@linux-m68k.org>
1171
1172 * xterm.h (x_alloc_lighter_color_for_widget): Restore declaration.
1173 * xterm.c (x_alloc_lighter_color_for_widget): Restore.
1174
59fc5cf9
AS
11752010-12-27 Andreas Schwab <schwab@linux-m68k.org>
1176
2f7c71a1
AS
1177 * buffer.c: Remove unused declarations.
1178 * buffer.h: Likewise.
1179 * charset.h: Likewise.
1180 * composite.h: Likewise.
1181 * dispextern.h: Likewise.
1182 * dispnew.c: Likewise.
1183 * font.h: Likewise.
1184 * fontset.c: Likewise.
1185 * fontset.h: Likewise.
1186 * intervals.h: Likewise.
1187 * keymap.h: Likewise.
1188 * lisp.h: Likewise.
1189 * syntax.c: Likewise.
1190 * syntax.h: Likewise.
1191 * termhooks.h: Likewise.
1192 * window.h: Likewise.
1193 * xsettings.h: Likewise.
1194 * xterm.c: Likewise.
1195 * xterm.h: Likewise.
1196
1197 * chartab.c (sub_char_table_ref): Make static.
1198 * dispnew.c (line_hash_code, required_matrix_height)
1199 (required_matrix_width): Likewise.
1200 * eval.c (interactive_p, apply_lambda): Likewise.
1201 * fns.c (string_make_multibyte, copy_hash_table, hash_clear):
1202 Likewise.
1203 * font.c (QCadstyle, QCregistry, font_make_spec)
1204 (font_parse_fcname, font_encode_char, font_at): Likewise.
1205 * frame.c (x_frame_get_arg): Likewise.
1206 * keymap.c (get_keyelt): Likewise.
1207 * lread.c (read_filtered_event): Likewise.
1208 * print.c (write_string_1): Likewise.
1209 * window.c (delete_window, window_height, window_width)
1210 (foreach_window): Likewise.
1211 * xrdb.c (x_get_customization_string, x_get_resource): Likewise.
1212 * xterm.c (x_scroll_bar_clear, xembed_set_info)
1213 (xembed_send_message): Likewise.
1214
1215 * eval.c (run_hook_list_with_args): Delete.
1216 * font.c (font_unparse_gtkname, font_update_lface): Likewise.
1217 * terminal.c (get_terminal_param): Likewise.
1218 * xterm.c (x_alloc_lighter_color_for_widget): Likewise.
1219
c4b607ed
AS
1220 * scroll.c: Fix comment.
1221
59fc5cf9
AS
1222 * dispnew.c (add_window_display_history)
1223 (add_frame_display_history, glyph_row_slice_p)
1224 (find_glyph_row_slice, flush_stdout)
1225 (check_matrix_pointer_lossage, matrix_row)
1226 (check_matrix_invariants, check_window_matrix_pointers)
1227 (check_matrix_pointers, window_to_frame_vpos)
1228 (window_to_frame_hpos): Prototize.
1229 * textprop.c (erase_properties): Likewise.
1230
a65b85b5
SM
12312010-12-22 Stefan Monnier <monnier@iro.umontreal.ca>
1232
17870c01
SM
1233 * print.c (PRINT_NUMBER_OBJECT, PRINT_NUMBER_STATUS): Remove.
1234 (print_preprocess): Fix handling of uninterned symbols in last change.
1235
a65b85b5
SM
1236 * print.c (print, print_preprocess, print_object): Use a hash table
1237 rather than a linear table for Vprint_number_table.
1238
f13183cf
CY
12392010-12-20 Chong Yidong <cyd@stupidchicken.com>
1240
1241 * frame.c (focus_follows_mouse): Default to 0 (Bug#7269).
1242
94975270
CY
12432010-12-20 Chong Yidong <cyd@stupidchicken.com>
1244
1245 * keyboard.c (Vtool_bar_separator_image_expression): New variable.
1246 (parse_tool_bar_item): Use it to obtain image separators for
1247 displays not using native tool-bar separators.
1248
1249 * xdisp.c (build_desired_tool_bar_string): Don't handle separators
1250 specially, since this is now done in parse_tool_bar_item.
1251
ef1b0ba7
SM
12522010-12-19 Stefan Monnier <monnier@iro.umontreal.ca>
1253
1254 Minor clean up to silence some gcc warnings.
1255 * window.c (Fset_window_buffer):
1256 * xterm.c (x_set_frame_alpha): Restructure code to silence
1257 compiler warning.
1258 (handle_one_xevent): Remove unused var `p'.
1259 (do_ewmh_fullscreen): Remove unused var `lval'.
1260 (xembed_set_info): Remove unused var `atom'.
1261 * textprop.c (Fremove_list_of_text_properties): Add braces to silence
1262 compiler warning.
1263 * fontset.c (fontset_id_valid_p, dump_fontset):
1264 * ftfont.c (ftfont_drive_otf): Modernize k&r declaration.
1265 * eval.c (Feval, Ffuncall): Avoid unneeded gotos.
1266 * dispnew.c (update_frame, update_frame_1): Compile the `do_pause'
1267 label only when it's used.
1268 * image.c (x_create_bitmap_from_xpm_data):
1269 * dispextern.h (x_create_bitmap_from_xpm_data): Use const char** like
1270 its callers.
1271 * coding.c (detect_coding_utf_16): Remove unused vars `src_base' and
1272 `consumed_chars'.
1273 (DECODE_EMACS_MULE_21_COMPOSITION): Remove unused var `charbuf_base'.
1274 (decode_coding_emacs_mule): Remove unused label `retry'.
1275 (detect_eol): Add parens to silence compiler warning.
1276 * alloc.c (bytes_used_when_reconsidered): Move to the #ifdef where
1277 it's used to silence the compiler.
1278 (make_number): Modernize k&r declaration.
1279 (mark_char_table): Add parens to silence compiler warning.
1280
4039c786
CY
12812010-12-17 Chong Yidong <cyd@stupidchicken.com>
1282
1283 * keyboard.c (parse_tool_bar_item): Allow menu separators in
1284 tool-bar maps.
1285 (menu_separator_name_p): New function, from gtkutil.c.
1286 (separator_names): Move from gtkutil.c.
1287
1288 * keyboard.h (menu_separator_name_p): Add prototype.
1289
1290 * gtkutil.c (XG_BIN_CHILD): New macro.
1291 (xg_get_menu_item_label, xg_update_menubar)
1292 (xg_update_menu_item, xg_tool_bar_menu_proxy)
1293 (xg_show_toolbar_item, update_frame_tool_bar): Use it.
1294 (separator_names, xg_separator_p): Move to keyboard.c.
ef1b0ba7
SM
1295 (create_menus, xg_update_submenu, update_frame_tool_bar):
1296 Use menu_separator_name_p.
4039c786
CY
1297
1298 * nsmenu.m (name_is_separator): Function deleted.
1299 (addItemWithWidgetValue): Use menu_separator_name_p.
1300
1301 * w32menu.c (name_is_separator): Function deleted.
1302 (add_menu_item): Use menu_separator_name_p.
1303
aa936e8e
JD
13042010-12-16 Jan Djärv <jan.h.d@swipnet.se>
1305
1306 * nsterm.m (ns_draw_window_cursor): If the cursor color is the
1307 same as the background, use the face forground as cursor.
1308
f49d1f52 13092010-12-13 Eli Zaretskii <eliz@gnu.org>
15579471
EZ
1310
1311 * fileio.c (Fexpand_file_name): Doc fix. (Bug#7617)
1312
f49d1f52 13132010-12-13 Eli Zaretskii <eliz@gnu.org>
76feb864 1314
f0559026
EZ
1315 * xdisp.c (string_pos_nchars_ahead, c_string_pos)
1316 (face_before_or_after_it_pos, next_element_from_string)
1317 (next_element_from_c_string, produce_stretch_glyph): Remove unused
1318 calculations of maximum string length before calling
1319 string_char_and_length and STRING_CHAR_AND_LENGTH.
1320 (string_char_and_length): Update commentary: MAXLEN is no longer
1321 needed.
1322
f49d1f52 13232010-12-13 Jan Djärv <jan.h.d@swipnet.se>
0b9fc69a
JD
1324
1325 * keyboard.c (kbd_buffer_get_event): Construct SAVE_SESSION_EVENT
1326 as (Qsave_session arg).
1327
1328 * xsmfns.c (smc_interact_CB): Set arg to Qnil.
1329 (smc_die_CB): Make an event with arg Qt.
1330 (Fhandle_save_session): If event has Qt as argument,
1331 call Fkill_emacs (Bug#7552).
1332
f49d1f52
SM
13332010-12-13 Chong Yidong <cyd@stupidchicken.com>
1334
1335 * buffer.c (transient-mark-mode): Doc fix (Bug#7465).
1336
13372010-12-13 Jan Djärv <jan.h.d@swipnet.se>
2b815743
JD
1338
1339 * xsmfns.c (smc_die_CB): Call Fkill_emacs (Bug#7552).
1340
f49d1f52 13412010-12-13 Chong Yidong <cyd@stupidchicken.com>
d8b2a962
CY
1342
1343 * dispextern.h (struct it): New member overlay_strings_charpos.
1344
1345 * xdisp.c (next_overlay_string, load_overlay_strings): Record the
1346 charpos where we computed n_overlay_strings.
1347 (next_overlay_string): Load overlay strings at recorded position,
1348 which may not be the same as the iterator's charpos (Bug#7016).
1349
f49d1f52 13502010-12-13 Chong Yidong <cyd@stupidchicken.com>
77f1ed6c
CY
1351
1352 * xdisp.c (try_scrolling): Avoid infloop if the first line is
1353 obscured due to a vscroll (Bug#7537).
1354
f49d1f52 13552010-12-13 Jan Djärv <jhd@zeplinf.localdomain>
2a91a0b5
JD
1356
1357 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
1358
1359 * nsterm.m (x_set_window_size, windowWillResize, initFrameFromEmacs):
1360 Use FRAME_TOOLBAR_HEIGHT.
1361 (x_set_offset): Handle XNegative and YNegative in
1362 f->size_hint_flags (Bug#7510).
1363
39321b94
EZ
13642010-12-11 Eli Zaretskii <eliz@gnu.org>
1365
1366 * w32fns.c (Fx_show_tip): Call try_window with last argument
1367 TRY_WINDOW_IGNORE_FONTS_CHANGE. Delete the TODO ifdef: problem
1368 solved. Round up the tip height to an integral multiple of the
1369 frame's line height. Add FRAME_COLUMN_WIDTH to the tip width.
1370 (Bug#7398)
1371
ec1b9b17
GM
13722010-12-08 Glenn Morris <rgm@gnu.org>
1373
1374 * fileio.c (Fverify_visited_file_modtime): Default to current buffer.
1375
3c2317e8
LMI
13762010-12-06 Lars Magne Ingebrigtsen <larsi@gnus.org>
1377
1378 * xml.c (parse_region): Ignore blank HTML nodes.
1379 (make_dom): Return CDATA sections (like <style>foo</style>) as
1380 text nodes.
1381
bba3e508
SM
13822010-12-06 Stefan Monnier <monnier@iro.umontreal.ca>
1383
1384 * lread.c (read1): Allow newstyle unquote outside of backquote.
1385 Disallow old-style backquotes inside new-style backquotes.
1386 Don't count unquotes to figure out when we're "syntactically inside
1387 but semantically outside of a backquote" any more.
1388 Extend the restriction no-unescaped-commas-and-backquotes-in-symbols
1389 to all contexts.
1390
d23d8608
CY
13912010-12-05 Chong Yidong <cyd@stupidchicken.com>
1392
1393 * process.c: Remove checks for HAVE_SYS_IOCTL_H (Bug#7484).
1394
d6a003a8
AS
13952010-12-04 Andreas Schwab <schwab@linux-m68k.org>
1396
1397 * Makefile.in (M_FILE): Substitute @M_FILE@ instead of @machfile@.
1398 (S_FILE): Substitute @S_FILE@ instead of @opsysfile@.
1399 * m/arm.h, m/sh3.h, m/xtensa.h: Remove files.
1400
201ef780
AS
14012010-12-03 Andreas Schwab <schwab@linux-m68k.org>
1402
1403 * lisp.h (union Lisp_Object): Explicitly declare signedness of
1404 bit-field.
1405 (XINT): Remove variant for EXPLICIT_SIGN_EXTEND.
1406 * m/alpha.h (EXPLICIT_SIGN_EXTEND): Don't define.
1407 * m/amdx86-64.h (EXPLICIT_SIGN_EXTEND): Likewise.
1408 * m/ia64.h (EXPLICIT_SIGN_EXTEND): Likewise.
1409 * m/ibms390.h (EXPLICIT_SIGN_EXTEND): Likewise.
1410 * m/ibms390x.h (EXPLICIT_SIGN_EXTEND): Likewise.
1411 * m/iris4d.h (EXPLICIT_SIGN_EXTEND): Likewise.
1412 * m/m68k.h (EXPLICIT_SIGN_EXTEND): Likewise.
1413 * m/sparc.h (EXPLICIT_SIGN_EXTEND): Likewise.
1414 * m/template.h (EXPLICIT_SIGN_EXTEND): Likewise.
1415 * m/hp800.h: Remove file.
1416 * m/mips.h: Remove file.
1417
146490c3
JD
14182010-12-03 Jan Djärv <jan.h.d@swipnet.se>
1419
1420 * nsterm.m (ns_dumpglyphs_image): If drawing cursor, fill background
1421 with cursor color and draw a rectangle around the image (Bug#7412).
1422
babc8f0d
AS
14232010-12-03 Andreas Schwab <schwab@linux-m68k.org>
1424
1425 * frame.c (x_set_font): Remove unused variable.
1426
9583e9a0
JD
14272010-12-02 Jan Djärv <jan.h.d@swipnet.se>
1428
dd723bbd
JD
1429 * nsmenu.m (update_frame_tool_bar): Remove NSLog on invalid image.
1430
9583e9a0
JD
1431 * nsterm.m (ns_draw_glyph_string): Switch fore- and background if
1432 drawing text under filled box cursor (Bug#7479).
1433
07976ae3 14342010-11-27 Kenichi Handa <handa@m17n.org>
b84ae584
KH
1435
1436 * charset.c (emacs_mule_charset): Make it an array of charset ID;
1437 i.e. integer.
bba3e508 1438 (Fdefine_charset_internal): Adjust for the above change.
b84ae584
KH
1439 (init_charset_once): Likewise.
1440
bba3e508
SM
1441 * charset.h (emacs_mule_charset): Adjust the prototype.
1442 Delete duplicated extern.
b84ae584
KH
1443
1444 * coding.c (emacs_mule_char): Adjust for the change of
1445 emacs_mule_charset.
1446
1447 * lread.c (read_emacs_mule_char): Adjust for the change of
1448 emacs_mule_charset.
1449
07976ae3 14502010-11-27 Eli Zaretskii <eliz@gnu.org>
b8e5cf1d
EZ
1451
1452 * w32.c (_PROCESS_MEMORY_COUNTERS_EX): Don't define with versions
1453 of w32api >= 3.15. (Bug#6989) (Bug#7452)
1454
07976ae3 14552010-11-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
96ad0af7
YM
1456
1457 * alloc.c (mark_terminals): Ensure that the image cache is marked
1458 even if the terminal object was marked earlier (Bug#6301).
1459
35f1de62
CY
14602010-11-21 Chong Yidong <cyd@stupidchicken.com>
1461
1462 * editfns.c (Fbyte_to_string): Signal an error arg is not a byte.
1463
07976ae3 14642010-11-27 Jan Djärv <jan.h.d@swipnet.se>
8d7f026f
JD
1465
1466 * gtkutil.c (menubar_map_cb): New function (Bug#7425).
1467 (xg_update_frame_menubar): Connect signal map to menubar_map_cb.
1468 Use 23 as menubar height if 0. (Bug#7425).
1469
8547874a
EZ
14702010-11-26 Eli Zaretskii <eliz@gnu.org>
1471
228482b2
EZ
1472 * xdisp.c (set_message_1): Force paragraph direction in echo area
1473 be left-to-right.
1474
8547874a
EZ
1475 * keyboard.c (make_lispy_position): Put a meaningful value in yret
1476 when the click is on the header or mode line.
1477
1e2dddbe
EZ
14782010-11-25 Eli Zaretskii <eliz@gnu.org>
1479
1480 * xdisp.c (set_cursor_from_row): Don't forget to consider the
1481 `cursor' property of the first character in overlay strings.
12365240 1482 (Bug#7474) (Bug#7481)
1e2dddbe 1483
50795d1f
JD
14842010-11-24 Jan Djärv <jan.h.d@swipnet.se>
1485
1486 * nsterm.m (NSLeftControlKeyMask, NSLeftCommandKeyMask)
1487 (NSLeftAlternateKeyMask): New defines.
c80c6166
JD
1488 (keyDown): Parse left and right keys separately (Bug#7458).
1489 Compare Left key masks exactly (Bug#7458).
50795d1f 1490
f8ab8c1f
EZ
14912010-11-23 Eli Zaretskii <eliz@gnu.org>
1492
1493 * intervals.c (temp_set_point_both): Define before calling, to
1494 avoid GCC warnings.
1495
2e8a4797
DN
14962010-11-23 Dan Nicolaescu <dann@ics.uci.edu>
1497
b29116ef
DN
1498 * nsmenu.m: Use #include <config.h> instead of "config.h".
1499
b932f8b1
DN
1500 * term.c (Qglyphless_char,last_glyphless_glyph_frame)
1501 (last_glyphless_glyph_face_id. last_glyphless_glyph_merged_face_id):
1502 Move declarations ...
1503 * lisp.h (Qglyphless_char,last_glyphless_glyph_frame)
1504 (last_glyphless_glyph_face_id. last_glyphless_glyph_merged_face_id):
1505 ... here.
1506
42c8bc9b
DN
1507 * emacs.c (gdb_use_union, gdb_valbits,gdb_gctypebits)
1508 (gdb_data_seg_bits, gdb_array_mark_flag, PVEC_FLAG)
1509 (gdb_pvec_type):
1510 * print.c (print_output_debug_flag):
1511 * lisp.h (debug_print): Mark as EXTERNALLY_VISIBLE.
1512 (safe_debug_print): New declaration.
1513
2e8a4797
DN
1514 * xterm.c:
1515 * systty.h:
1516 * sound.c: Include <sys/ioctl.h> unconditionally.
1517
b609f591
YM
15182010-11-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1519
1520 * alloc.c (mark_maybe_object): Return early if given a Lisp
1521 integer (Bug#6301).
1522
731e263a
KB
15232010-11-21 Ken Brown <kbrown@cornell.edu>
1524
1525 * sheap.c (STATIC_HEAP_SIZE): Revert previous change.
1526
b7d1e144
JD
15272010-11-21 Jan Djärv <jan.h.d@swipnet.se>
1528
1529 * nsterm.m (ns_right_command_modifier, ns_right_control_modifier):
1530 Define (Bug#7458).
1531 (NSRightCommandKeyMask, NSRightControlKeyMask): Define (Bug#7458).
1532 (EV_MODIFIERS): Check for NSRightCommandKeyMask and
1533 NSRightControlKeyMask also (Bug#7458).
1534 (keyDown): Ditto (Bug#7458).
1535 (syms_of_nsterm): Defvar ns-right-command-modifier and
1536 ns-right-control-modifier (Bug#7458).
1537
b7982059
DN
15382010-11-21 Dan Nicolaescu <dann@ics.uci.edu>
1539
bee3419f
DN
1540 * sysdep.c (sys_subshell): Remove SET_EMACS_PRIORITY.
1541 * emacs.c (emacs_priority, syms_of_emacs): Remove emacs_priority.
1542
b7982059
DN
1543 * intervals.h (temp_set_point, temp_set_point_both):
1544 * buffer.h (offset_intervals, copy_intervals): Remove INLINE.
1545
01664ed1
KB
15462010-11-20 Ken Brown <kbrown@cornell.edu>
1547
1548 * sheap.c (STATIC_HEAP_SIZE): Increase to 13MB.
1549
7c2d713b
EZ
15502010-11-20 Eli Zaretskii <eliz@gnu.org>
1551
1552 * term.c (produce_glyphless_glyph): Use \uNNNN, \UNNNNNN, or
1553 \xNNNNNN for hex-code display of glyphless characters.
1554
d2bd5189
JD
15552010-11-20 Jan Djärv <jan.h.d@swipnet.se>
1556
1557 * gtkutil.c (xg_make_tool_item): Take vert_only as argument.
1558 Set important to ! vert_only.
1559 (xg_show_toolbar_item): Don't show label horizontally if
1560 tool item isn't important.
1561 (update_frame_tool_bar): Get TOOL_BAR_ITEM_VERT_ONLY and pass it to
1562 xg_make_tool_item, or update important on existing tool item.
1563
1564 * keyboard.c (QCvert_only): New variable.
1565 (parse_tool_bar_item): Check for QCvert_only.
1566 (syms_of_keyboard): Initialize QCvert_only.
1567
1568 * dispextern.h (tool_bar_item_idx): Add TOOL_BAR_ITEM_VERT_ONLY.
1569
d9a95e67
EZ
15702010-11-20 Eli Zaretskii <eliz@gnu.org>
1571
1572 * msdos.c (dos_rawgetc): Use gen_help_event, instead of doing the
1573 same in-line.
1574
b6557553
AS
15752010-11-20 Andreas Schwab <schwab@linux-m68k.org>
1576
1577 * xfaces.c (lookup_face): Make static.
1578 * dispnew.c (copy_row_except_pointers): Likewise.
1579 * syntax.c (dec_bytepos): Likewise.
1580 (inc_bytepos): Remove.
1581 * dispextern.h (lookup_face): Remove declaration.
1582
f48fe1f0
EZ
15832010-11-19 Eli Zaretskii <eliz@gnu.org>
1584
1585 * xdisp.c (set_cursor_from_row): Display cursor after all the
1586 glyphs that come from an overlay. Don't overstep the last glyph
1587 when skipping glyphs from an overlay. (Bug#6687)
1588
654ef137
DN
15892010-11-18 Dan Nicolaescu <dann@ics.uci.edu>
1590
84dfc8a7
DN
1591 * alloc.c (refill_memory_reserve): Move declaration ...
1592 * lisp.h (refill_memory_reserve): ... here.
1593
94fa3833
DN
1594 * strftime.c (_strftime_copytm): Add declaration.
1595
dde990a0
DN
1596 * callproc.c (syms_of_callproc): Use intern_c_string.
1597
50c77428
DN
1598 Move declarations from .c files to .h files.
1599 * process.c (timers_run):
1600 * minibuf.c (quit_char):
1601 * lread.c (read_emacs_mule_char):
1602 * keyboard.c (minibuf_level, message_enable_multibyte)
1603 (pending_malloc_warning):
1604 * insdel.c (Vselect_active_regions, Vsaved_region_selection)
1605 (Qonly): Remove declarations.
1606 * lisp.h (pending_malloc_warning, Vsaved_region_selection)
1607 (Vselect_active_regions):
1608 * keyboard.h (timers_run): Add declarations.
1609
654ef137
DN
1610 * strftime.c (my_strftime_gmtime_r, my_strftime_localtime_r)
1611 (tm_diff): Convert definitions to standard C.
1612 (extra_args_spec_iso): Remove, unused.
1613
4a47c275 16142010-11-18 Jan Djärv <jan.h.d@swipnet.se>
37de8fd0
J
1615
1616 * xsettings.c (init_gconf): Check HAVE_G_TYPE_INIT.
1617
1618 * config.in (HAVE_G_TYPE_INIT): New symbol.
1619
4a47c275 16202010-11-18 Eli Zaretskii <eliz@gnu.org>
c7926fe2
EZ
1621
1622 * lread.c (Fload): Mention `load-in-progress' and
1623 `load-file-name'. (Bug#7346)
1624
86520d8c
EZ
1625 * keyboard.c (kbd_buffer_nr_stored): Define only ifdef subprocesses.
1626 (kbd_buffer_store_event_hold, kbd_buffer_get_event)
1627 (tty_read_avail_input): Call kbd_buffer_nr_stored only ifdef
1628 subprocesses. Use buffer_free only ifdef subprocesses.
1629
1630 * process.c (init_process) [subprocesses]: Init kbd_is_on_hold in
1631 the subprocesses version, not in the non-subprocesses one.
1632
794a4b6d
EZ
1633 * Makefile.in: Don't use ## comment, it breaks the MSDOS build.
1634
146d267b
EZ
16352010-11-17 Eli Zaretskii <eliz@gnu.org>
1636
1637 * xdisp.c (set_cursor_from_row): Fix cursor positioning in empty
1638 lines on text-mode terminals. (bug#7417)
1639
fad0d565
SM
16402010-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
1641
1642 * xterm.c (get_current_wm_state): Rename from get_current_vm_state.
1643 (do_ewmh_fullscreen, x_handle_net_wm_state): Update callers.
1644
6b4bb703
KH
16452010-11-17 Kenichi Handa <handa@m17n.org>
1646
1647 * coding.c (Fset_terminal_coding_system_internal): Fix previous
1648 change (set charset-ID list instead of charset-symbol list).
1649
9173a8fb
CY
16502010-11-16 Chong Yidong <cyd@stupidchicken.com>
1651
1652 * keyboard.c (make_lispy_position): For text area clicks, record Y
1653 pixel position relative to the text area, excluding header line.
1654 Also change X and Y to Lisp_Objects, not pointers; don't return
1655 coordinate values via pointers. Pass ON_TEXT_AREA coordinate to
1656 buffer_posn_from_coords counting from the start of the text area.
1657 (Fposn_at_x_y, make_lispy_event): Callers changed.
1658
1659 * window.c (coordinates_in_window): Change X and Y to ints rather
1660 than pointers; don't return coordinates via pointers.
1661 (struct check_window_data): Change X and Y from pointers to ints.
1662 (window_from_coordinates): Remove args WX and WY; don't return
1663 coordinates via pointers.
1664 (Fcoordinates_in_window_p, window_from_coordinates):
1665 (check_window_containing, Fwindow_at): Callers changed.
1666 (window_relative_x_coord): New function.
1667
1668 * window.h (window_from_coordinates, window_relative_x_coord):
1669 Update prototypes.
1670
1671 * dispnew.c (buffer_posn_from_coords): Assume that X counts from
1672 the start of the text area.
1673
1674 * xdisp.c (remember_mouse_glyph): Change window_from_coordinates
1675 call. Use window_relative_x_coord.
1676 (note_mouse_highlight): Change window_from_coordinates call.
1677
1678 * w32term.c (w32_read_socket):
1679 * msdos.c (dos_rawgetc):
1680 * xterm.c (handle_one_xevent): Likewise.
1681
d2762c86
DN
16822010-11-16 Dan Nicolaescu <dann@ics.uci.edu>
1683
1684 * strftime.c (LOCALE_PARAM_DECL): Update for standard C.
1685 (LOCALE_PARAM, LOCALE_PARAM_PROTO): Remove, unused.
1686 (memcpy_lowcase, so_week_days, extra_args_spec, emacs_strftimeu):
1687 Convert definitions to standard C.
1688 * regex.c: Do not include <stdlib.h>, config.h does it.
1689 Include unistd.h.
1690 (xrealloc, init_syntax_once, re_match, regcomp, regexec)
1691 (regerror, regfree): Convert definitions to standard C.
1692 * mktime.c (my_mktime_localtime_r, ydhms_tm_diff, ranged_convert)
1693 (__mktime_internal): Convert definitions to standard C.
1694
c2f0866a
DN
16952010-11-15 Dan Nicolaescu <dann@ics.uci.edu>
1696
42a7e7f1
DN
1697 * w32proc.c:
1698 * w32inevt.c:
1699 * w32heap.c:
1700 * w32.c: Remove config.h include guards.
1701
67802943
DN
1702 * callproc.c (child_setup): Reorder code to simplify #ifdefs.
1703 No code changes.
1704
f0e1af46
DN
1705 * process.c: Include <sys/ioctl.h> unconditionally,
1706 keyboard.c already does it.
1707
c2f0866a
DN
1708 * keyboard.c (pending_malloc_warning): Add const to match
1709 definition in alloc.c.
1710 (Fset_input_interrupt_mode): Simplify #ifdefs.
1711
92d3ab7e
DN
17122010-11-15 Dan Nicolaescu <dann@ics.uci.edu>
1713
12e610e8
DN
1714 Clean up systty.h macros.
1715 * systty.h (EMACS_GET_TTY_PGRP, EMACS_SET_TTY_PGRP, EMACS_GET_TTY)
1716 (EMACS_SET_TTY): Remove unneeded abstraction, instead inline the
1717 definition in all uses.
1718 (EMACS_TTY_TABS_OK): Remove, it has a single user.
1719 * sysdep.c (discard_tty_input, child_setup_tty)
1720 (init_sys_modes, tabs_safe_p, reset_sys_modes):
1721 * emacs.c (shut_down_emacs):
1722 * callproc.c (child_setup):
1723 * term.c (dissociate_if_controlling_tty): Inline removed macros.
1724
92d3ab7e
DN
1725 * data.c (sign_extend_temp, sign_extend_lisp_int): Remove, unused.
1726
a3e6bad4
CY
17272010-11-14 Chong Yidong <cyd@stupidchicken.com>
1728
1729 * w32fns.c (Fx_create_frame):
1730 * nsfns.m (Fx_create_frame): Don't check for the cursorColor
1731 resource here; it's now done at startup.
1732
5a232ffb
J
17332010-11-14 Jan Djärv <jan.h.d@swipnet.se>
1734
1735 * xterm.c (set_wm_state): Add Qnil to final cons.
1736
1737 * xselect.c (x_send_client_event): Remove unused variables cons and
1738 size.
1739
24021b38
YM
17402010-11-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1741
1742 * keyboard.c (modify_event_symbol) : Add const to array elements of
1743 arg NAME_TABLE.
1744 (lispy_accent_keys, lispy_function_keys, lispy_multimedia_keys)
1745 (lispy_kana_keys, iso_lispy_function_keys, lispy_wheel_names)
1746 (lispy_wheel_names, lispy_drag_n_drop_names, modifier_names):
1747 Add const to array elements.
1748 (scroll_bar_parts): Make static. Fix position of const.
1749
1750 * w32fns.c (lispy_function_keys): Add const to extern.
1751
1752 * w32inevt.c (lispy_function_keys): Likewise.
1753
afa42fe3
CY
17542010-11-14 Chong Yidong <cyd@stupidchicken.com>
1755
1756 * xfns.c (Fx_create_frame): Don't check for the cursorColor
1757 resource here; it's now done at startup.
1758
53260a94
DN
17592010-11-13 Dan Nicolaescu <dann@ics.uci.edu>
1760
c865c575 1761 * xmenu.c: Make it clear that ../lwlib/lwlib.h is only needed for Motif.
ff2e8052 1762
c865c575 1763 Fix compilation on Solaris.
ff2e8052
DN
1764 * sysdep.c: Do not #include <term.h>.
1765 (tputs): Add declaration, similar to what cm.c does. (Bug#7178)
1766
53260a94
DN
1767 * s/ms-w32.h (HAVE_TERMIOS_H): Do not undef, not used anymore.
1768
933e29ff
J
17692010-11-13 Jan Djärv <jan.h.d@swipnet.se>
1770
1771 * xterm.c (set_wm_state): Don't put Atom in cons, call
1772 make_fixnum_or_float on them first.
1773 (x_term_init): Initialize Xatom_net_supporting_wm_check and
1774 Xatom_net_supported correctly.
1775
1776 * xselect.c (x_send_client_event): Move CHECK_STRING ...
1777 (Fx_send_client_event): to here.
1778
a048073e
MR
17792010-11-13 Martin Rudalics <rudalics@gmx.at>
1780
1781 * window.c (Fwindow_use_time): New function.
1782
0eb025fb
EZ
17832010-11-13 Eli Zaretskii <eliz@gnu.org>
1784
1785 * xdisp.c (set_cursor_from_row): Fix cursor positioning on
1786 zero-width characters.
1787
1788 * .gdbinit (pgx): Adapt to latest changes in `struct glyph'.
1789
1790 * w32term.c (x_draw_glyphless_glyph_string_foreground): Draw the
1791 box before drawing the glyphs inside it.
1792
1793 * xdisp.c (syms_of_xdisp) <glyphless-char-display>: Doc fix.
1794
bba3e508
SM
1795 * dispextern.h (enum glyphless_display_method):
1796 Rename GLYPHLESS_DISPLAY_HEXA_CODE to GLYPHLESS_DISPLAY_HEX_CODE.
1797 All users changed.
0eb025fb 1798
bba3e508
SM
1799 * term.c (append_glyphless_glyph, produce_glyphless_glyph):
1800 Fix comments.
0eb025fb
EZ
1801 (produce_glyphless_glyph): Enclose "U+nnnn" and "empty box"
1802 whitespace in "[]", to simulate a box. Don't use uninitialized
1803 variable `width'.
1804
c869cc37
JD
18052010-11-11 Julien Danjou <julien@danjou.info>
1806
2d9074ba
JD
1807 * xsettings.c (init_xsettings): Use already fetch atoms.
1808
1809 * xsmfns.c (create_client_leader_window): Use SM_CLIENT_ID atom
1810 from dpyinfo.
1811
1812 * xselect.c (Fx_send_client_event): Split and create
1813 x_send_client_event.
1814
1815 * lisp.h: Do not EXFUN Fx_send_client_event.
1816
1817 * xterm.c (x_set_frame_alpha): Use _NET_WM_WINDOW_OPACITY atom
1818 from dpyinfo.
1819 (wm_supports): Use atoms from dpyinfo.
1820 (do_ewmh_fullscreen): Use atoms from dpyinfo.
1821 (x_ewmh_activate_frame): Use atoms from dpyinfo.
1822 (xembed_set_info): Use atoms from dpyinfo.
1823 (x_term_init): Fetch _XEMBED_INFO, _NET_SUPPORTED,
1824 _NET_SUPPORTING_WM_CHECK, _NET_WM_WINDOW_OPACITY and
1825 _NET_ACTIVE_WINDOW, XSETTINGS atoms.
1826 Get all atoms in one round-trip.
1827 (set_wm_state): Use x_send_client_event rather than
1828 Fx_send_client_event, using Atom directly.
1829 (x_ewmh_activate_frame): Ditto.
1830 (x_set_sticky): Pass atoms to set_wm_state.
1831 (do_ewmh_fullscreen): Ditto.
1832
1833
1834 * xterm.h (x_display_info): Add Xatom_net_supported,
1835 Xatom_net_supporting_wm_check, Xatom_net_active_window,
1836 Xatom_net_wm_window_opacity, Xatom_XEMBED_INFO, SM_CLIENT_ID.
1837
c869cc37
JD
1838 * xfns.c (Fx_show_tip): Fix typo in docstring.
1839
1a4236ea
SM
18402010-11-11 Stefan Monnier <monnier@iro.umontreal.ca>
1841
1842 * cmds.c (Fself_insert_command): Don't call XFASTINT without checking
1843 it's not negative.
1844
3106121c
YM
18452010-11-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1846
1847 * font.c (font_filter_properties): Add const to array elements of
1848 properties args.
1849
1850 * font.h (font_filter_properties): Likewise.
1851
1852 * ftfont.c (ftfont_booleans, ftfont_non_booleans): Add const to array
1853 elements.
1854
1855 * w32font.c (w32font_booleans, w32font_non_booleans): Likewise.
1856
da1fec2b
MA
18572010-11-10 Michael Albinus <michael.albinus@gmx.de>
1858
1859 * dbusbind.c (QCdbus_type_unix_fd): New Lisp object.
1860 (XD_BASIC_DBUS_TYPE, xd_symbol_to_dbus_type, xd_signature)
1861 (xd_append_arg, xd_retrieve_arg): Support DBUS_TYPE_UNIX_FD.
1862 (Fdbus_call_method): Add DBUS_TYPE_UNIX_FD type mapping to doc string.
1863 (syms_of_dbusbind): Initialize QCdbus_type_unix_fd).
1864
bd6bc222
GM
18652010-11-10 Glenn Morris <rgm@gnu.org>
1866
1867 * emacs.c (syms_of_emacs) <system-type>: Doc fix.
1868
c0098065
EZ
18692010-11-09 Eli Zaretskii <eliz@gnu.org>
1870
bd6bc222 1871 * xfns.c (x_real_positions): Fix declaration-after-statement problem.
c0098065 1872
d607b96b 18732010-11-09 Chong Yidong <cyd@stupidchicken.com>
be3faa80
CY
1874
1875 * image.c (free_image): Don't garbage the frame here, since this
1876 function can be called while redisplaying (Bug#7210).
1877 (uncache_image): Garbage the frame here (Bug#6426).
1878
d607b96b 18792010-11-09 Jan Djärv <jan.h.d@swipnet.se>
184765cc 1880
d607b96b
SM
1881 * xfns.c (x_real_positions): Only use _NET_FRAME_EXTENTS if our
1882 parent is the root window. Check this after traversing window tree.
184765cc 1883
d607b96b 1884 * xterm.c (x_term_init): Initialize Xatom_net_frame_extents.
bd80a886 1885
d607b96b 1886 * xterm.h (struct x_display_info): Xatom_net_frame_extents is new.
bd80a886 1887
d607b96b
SM
1888 * xfns.c (x_real_positions): Try to get _NET_FRAME_EXTENTS first
1889 before traversing window tree (Bug#5721).
c2e124a9 1890
27f92be7
J
18912010-11-07 Jan Djärv <jan.h.d@swipnet.se>
1892
66b16767
J
1893 * xfns.c (set_machine_and_pid_properties): Let X set WM_CLIENT_MACHINE.
1894
25f38310
SM
1895 * xdisp.c (note_mode_line_or_margin_highlight):
1896 Initialize Cursor to No_Cursor for HAVE_WINDOW_SYSTEM also.
27f92be7 1897
a971c0a7
EZ
18982010-11-06 Eli Zaretskii <eliz@gnu.org>
1899
1900 * xfns.c (Fx_show_tip): If any of the tool-tip text lines is R2L,
1901 adjust width of tool-tip frame to the width of text, excluding the
1902 stretch glyph at the beginning of R2L glyph rows.
1903
1904 * w32fns.c (Fx_show_tip): Likewise.
1905
80417b95
JD
19062010-11-06 Jan Djärv <jan.h.d@swipnet.se>
1907
1908 * nsfont.m: Include termchar for new mouse-highlight.
6dc61cf1 1909 (nsfont_draw): Use MOUSE_HL_INFO.
80417b95 1910
28118eb6
EZ
19112010-11-05 Eli Zaretskii <eliz@gnu.org>
1912
c1fc2d3a 1913 Unify mouse-highlight code for all GUI and TTY sessions.
cf482c50
EZ
1914
1915 * term.c: Remove static mouse_face_* variables. All users
1916 changed.
1917 (term_show_mouse_face, term_clear_mouse_face)
1918 (fast_find_position, term_mouse_highlight): Functions deleted.
1919 (tty_draw_row_with_mouse_face): New function.
1920 (term_mouse_movement): Call note_mouse_highlight instead of
1921 term_mouse_highlight.
1922
bbf534ce
EZ
1923 * nsterm.m (ns_update_window_begin, ns_update_window_end)
1924 (ns_update_end, x_destroy_window, ns_frame_up_to_date)
1925 (ns_dumpglyphs_box_or_relief, ns_maybe_dumpglyphs_background)
1926 (ns_dumpglyphs_image, ns_dumpglyphs_stretch)
1927 (ns_initialize_display_info, keyDown, mouseMoved, mouseExited):
1928 Replace Display_Info with Mouse_HLInfo everywhere where
1929 mouse_face_* members were accessed for mouse highlight purposes.
1930
1931 * xterm.c (x_update_window_begin, x_update_window_end)
1932 (x_update_end, XTframe_up_to_date, x_set_mouse_face_gc)
bba3e508
SM
1933 (handle_one_xevent, x_free_frame_resources, x_term_init):
1934 Replace Display_Info with Mouse_HLInfo everywhere where mouse_face_*
bbf534ce
EZ
1935 members were accessed for mouse highlight purposes.
1936
1937 * w32term.c (x_update_window_begin, x_update_window_end)
1938 (x_update_end, w32_read_socket, x_free_frame_resources)
1939 (w32_initialize_display_info): Replace Display_Info with
1940 Mouse_HLInfo everywhere where mouse_face_* members were accessed
1941 for mouse highlight purposes.
1942
1943 * xdisp.c (show_mouse_face, note_mode_line_or_margin_highlight)
1944 (note_mouse_highlight) [HAVE_WINDOW_SYSTEM]: Don't run GUI code
1945 unless the frame is on a window-system.
c1fc2d3a 1946 (get_tool_bar_item, handle_tool_bar_click)
7ea692f6
EZ
1947 (note_tool_bar_highlight, draw_glyphs, erase_phys_cursor)
1948 (show_mouse_face, clear_mouse_face, coords_in_mouse_face_p)
1949 (note_mode_line_or_margin_highlight, note_mouse_highlight)
1950 (x_clear_window_mouse_face, cancel_mouse_face, expose_frame):
1951 Replace Display_Info with Mouse_HLInfo everywhere where
1952 mouse_face_* members were accessed for mouse highlight purposes.
c1fc2d3a 1953 (coords_in_mouse_face_p): Move prototype out of the
d009ae66
EZ
1954 HAVE_WINDOW_SYSTEM conditional.
1955 (x_y_to_hpos_vpos, frame_to_window_pixel_xy): Move out of the
1956 HAVE_WINDOW_SYSTEM block.
bba3e508
SM
1957 (try_window_id) [HAVE_GPM || MSDOS]:
1958 Call x_clear_window_mouse_face.
d009ae66 1959 (draw_row_with_mouse_face): Implementation for HAVE_WINDOW_SYSTEM
c1fc2d3a
EZ
1960 systems. Call tty_draw_row_with_mouse_face for TTY systems.
1961 (show_mouse_face): Call draw_row_with_mouse_face, instead of
1962 calling draw_glyphs directly.
d009ae66
EZ
1963 (show_mouse_face, clear_mouse_face, coords_in_mouse_face_p)
1964 (cursor_in_mouse_face_p, rows_from_pos_range)
1965 (mouse_face_from_buffer_pos, mouse_face_from_string_pos)
1966 (note_mode_line_or_margin_highlight, note_mouse_highlight)
1967 (x_clear_window_mouse_face, cancel_mouse_face): Move out of the
1968 HAVE_WINDOW_SYSTEM block. Ifdef away window-system specific
1969 fragments.
1970 (note_mouse_highlight): Call popup_activated for MSDOS as well.
1971 Clear mouse highlight if pointer is over glyphs whose OBJECT is an
1972 integer.
1973 (mouse_face_from_buffer_pos): Add parentheses around && within ||.
bba3e508
SM
1974 (x_consider_frame_title, tool_bar_lines_needed):
1975 Move prototypes to HAVE_WINDOW_SYSTEM-only part.
c1fc2d3a
EZ
1976 (get_window_cursor_type): Move inside a HAVE_WINDOW_SYSTEM-only
1977 part. Remove "#ifdef HAVE_WINDOW_SYSTEM" from body of function.
1978 (null_glyph_slice): Move declaration into HAVE_WINDOW_SYSTEM-only
1979 part.
d009ae66
EZ
1980
1981 * dispnew.c (mirror_make_current): Set Y coordinate of the
1982 mode-line and header-line rows.
c1fc2d3a
EZ
1983 (init_display): Setup initial frame's output_data for text
1984 terminal frames.
d009ae66 1985
c1fc2d3a
EZ
1986 * xmenu.c (popup_activated): Don't define on MSDOS, which now has
1987 its own definition on msdos.c.
d009ae66
EZ
1988
1989 * msdos.c (show_mouse_face, clear_mouse_face)
1990 (fast_find_position, IT_note_mode_line_highlight)
1991 (IT_note_mouse_highlight): Functions deleted.
1992 (IT_frame_up_to_date, dos_rawgetc): Call note_mouse_highlight
1993 instead of IT_note_mouse_highlight.
1994 (draw_row_with_mouse_face, popup_activated): New functions.
c1fc2d3a
EZ
1995 (dos_set_window_size, draw_row_with_mouse_face, IT_update_begin)
1996 (IT_update_end, IT_frame_up_to_date, internal_terminal_init)
1997 (dos_rawgetc): Replace Display_Info with Mouse_HLInfo everywhere
1998 where mouse_face_* members were accessed for mouse highlight
1999 purposes.
2000
2001 * msdos.h (initialize_msdos_display): Add prototype.
2002
2003 * frame.h (MOUSE_HL_INFO): New macro.
2004
2005 * lisp.h (Mouse_HLInfo): New data type.
2006
2007 * xterm.h (struct x_display_info):
2008 * w32term.h (struct w32_display_info):
2009 * nsterm.h (struct ns_display_info):
2010 * termchar.h (struct tty_display_info): Use it instead of
2011 mouse_face_* members.
2012
2013 * dispextern.h (show_mouse_face, clear_mouse_face): Update type of
2014 1st argument.
2015 (frame_to_window_pixel_xy, note_mouse_highlight)
2016 (x_clear_window_mouse_face, cancel_mouse_face, clear_mouse_face)
2017 (show_mouse_face, cursor_in_mouse_face_p): Move prototypes out of
2018 HAVE_WINDOW_SYSTEM conditional.
2019 (draw_row_with_mouse_face): Declare prototype.
2020 (tty_draw_row_with_mouse_face): Declare prototype.
2021
6e8d7c47
EZ
20222010-11-05 Eli Zaretskii <eliz@gnu.org>
2023
bba3e508
SM
2024 * term.c (append_glyphless_glyph, produce_glyphless_glyph):
2025 Remove unused variables.
6e8d7c47 2026
f31ba3f0
AR
20272010-11-05 Adrian Robert <Adrian.B.Robert@gmail.com>
2028
2029 * nsterm.m (EmacsView-mouseExited:): Correct error in conditional
2030 logic pointed out by Eli Zaretskii.
2031
448e17d6
LMI
20322010-11-04 Lars Magne Ingebrigtsen <larsi@gnus.org>
2033
0c3a9a9f
GM
2034 * coding.c (coding-category-list): Refer to set-coding-system-priority
2035 instead of the obsolete set-coding-priority in the doc string.
448e17d6 2036
f31ba3f0 2037
3fdebbf9 20382010-11-04 Adrian Robert <Adrian.B.Robert@gmail.com>
f31ba3f0
AR
2039
2040 * nsfont.m (nsfont_draw): Correct previous patch to return
2041 correct value.
2042 * nsimage.m (EmacsImage-setXBMColor:): Correct previous patch:
2043 don't change the method signature, change the return.
2044
20452010-11-04 Ismail Donmez <ismail@namtrac.org> (tiny change)
3fdebbf9
AR
2046
2047 * nsfont.m (nsfont_draw)
2048 * nsimage.m (EmacsImage-setXBMColor:)
f31ba3f0 2049 * nsterm.m (EmacsView-performDragOperation:): Correct empty return.
3fdebbf9 2050
17c0c952
JD
20512010-11-03 Julien Danjou <julien@danjou.info>
2052
2053 * image.c (gif_load): Add support for transparency and specified
2054 :background.
2055
b18fad6d
KH
20562010-11-01 Kenichi Handa <handa@m17n.org>
2057
2058 * dispextern.h (lookup_glyphless_char_display): Extern it.
2059
2060 * termhooks.h (struct terminal): New member charset_list.
2061
2062 * coding.c (Fset_terminal_coding_system_internal): Set the
2063 `charset_list' member of struct terminal.
2064
a8039db1 2065 * term.c (produce_glyphs): Handle the case it->what == IT_GLYPHLESS.
b18fad6d
KH
2066 (append_glyphless_glyph, produce_glyphless_glyph): New functions.
2067
2068 * xdisp.c (lookup_glyphless_char_display): Make it non-static.
2069 (lookup_glyphless_char_display): Set it->what at the end.
2070 (last_glyphless_glyph_frame, last_glyphless_glyph_face_id)
2071 (last_glyphless_glyph_merged_face_id): Make them non-static.
2072
a8039db1
JB
2073 * w32term.c (x_draw_glyphless_glyph_string_foreground):
2074 Fix the arg with_background for font->driver->draw.
65b6b59a 2075
a8039db1 20762010-11-01 Kenichi Handa <handa@m17n.org>
0269bd90 2077
a8039db1
JB
2078 * w32gui.h (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2):
2079 Surround chp by parentheses.
0269bd90 2080
a8039db1 20812010-11-01 Kenichi Handa <handa@m17n.org>
b2cca856
KH
2082
2083 Implement various display methods for glyphless characters.
2084
2085 * xdisp.c (Qglyphless_char, Vglyphless_char_display)
2086 (Qglyphless_char_display, Qhexa_code, Qempty_box, Qthin_space)
2087 (Qzero_width): New variables.
2088 (THIN_SPACE_WIDTH): New macro.
2089 (lookup_glyphless_char_display): New funciton.
2090 (last_glyphless_glyph_frame, last_glyphless_glyph_face_id)
2091 (last_glyphless_glyph_merged_face_id): New variables.
2092 (get_next_display_element): Check glyphless characters.
2093 (redisplay_internal): Initialize last_glyphless_glyph_frame and
2094 last_glyphless_glyph_face_id.
2095 (fill_glyphless_glyph_string): New function.
2096 (BUILD_GLYPHLESS_GLYPH_STRING): New macro.
2097 (BUILD_GLYPH_STRINGS): Handle the case GLYPHLESS_GLYPH.
2098 (append_glyphless_glyph, produce_glyphless_glyph): New functions.
2099 (x_produce_glyphs): If a suitable font is not found, produce a
2100 glyphless glyph. Handle the case it->what == IT_GLYPHLESS.
2101 (syms_of_xdisp): Intern and staticpro Qglyphless_char,
2102 Qglyphless_char_display, Qhexa_code, Qempty_box, Qthin_space, and
2103 Qzero_width.
2104 (Vglyphless_char_display): Declare it as a Lisp variable.
2105
2106 * dispextern.h (enum glyph_type): Add GLYPHLESS_GLYPH.
a8039db1
JB
2107 (struct glyph): Change the size of the member "type" to 3.
2108 Add glyphless to the union slice and u.
b2cca856
KH
2109 (enum display_element_type): Add IT_GLYPHLESS.
2110 (enum glyphless_display_method): New enum.
2111 (struct it): New member glyphless_method.
2112 (Vglyphless_char_display): Extern it.
2113
2114 * xterm.c (x_draw_glyphless_glyph_string_foreground): New function.
2115 (x_draw_glyph_string): Handle the case GLYPHLESS_GLYPH.
2116
a8039db1 2117 * w32term.c (x_draw_glyphless_glyph_string_foreground): New function.
b2cca856
KH
2118 (x_draw_glyph_string): Handle the case GLYPHLESS_GLYPH.
2119
2120 * nsterm.m (ns_draw_glyph_string): Handle the case
2121 GLYPHLESS_GLYPH (the detail is not yet implemented).
2122
c8c59954
GM
21232010-10-31 Glenn Morris <rgm@gnu.org>
2124
80696982
GM
2125 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]: Fix merge, maybe.
2126
c8c59954
GM
2127 * frame.c (syms_of_frame) <tool-bar-mode>:
2128 Default to nil if !HAVE_WINDOW_SYSTEM. (Bug#7299)
2129
46eadc7a
CY
21302010-10-31 Chong Yidong <cyd@stupidchicken.com>
2131
2132 * xterm.c (x_connection_closed): Print informative error message
2133 when aborting on GTK. This requires using shut_down_emacs
2134 directly instead of Fkill_emacs.
2135
ffe75e6b
EZ
21362010-10-29 Eli Zaretskii <eliz@gnu.org>
2137
2138 * emacs.c (main): Call syms_of_filelock unconditionally.
2139
2140 * filelock.c (syms_of_filelock): Move out of #ifdef CLASH_DETECTION
2141 clause, but keep part of it conditioned on CLASH_DETECTION.
2142
9d794026
GM
21432010-10-29 Glenn Morris <rgm@gnu.org>
2144
4f4f2973
GM
2145 * nsfns.m (Fx-display-save-under, Fx-open-connection)
2146 (Fxw-color-defined-p, Fxw-display-color-p, Fx-show-tip):
2147 * w32fns.c (Fxw_color_defined_p, Fx_open_connection):
2148 * xfns.c (Fxw_color_defined_p, Fx_open_connection):
2149 Sync docs between X, W32, NS.
2150
9d794026
GM
2151 * buffer.c (syms_of_buffer) <abbrev-mode, transient-mark-mode>:
2152 * frame.c (syms_of_frame) <tool-bar-mode>: Move doc here from Lisp.
2153
d46f6bbb
JB
21542010-10-26 Juanma Barranquero <lekktu@gmail.com>
2155
2156 * eval.c (init_eval_once): Set max_lisp_eval_depth to 600;
2157 otherwise, bootstrapping on Windows fails to compile macroexp.el.
2158
2e35f1a2
EZ
21592010-10-26 Eli Zaretskii <eliz@gnu.org>
2160
2161 * cmds.c (internal_self_insert): Don't insert if argument N is
84b28888 2162 zero or negative. (Bug#7281)
2e35f1a2 2163
8daaeda6
J
21642010-10-26 Jan Djärv <jan.h.d@swipnet.se>
2165
2166 * gtkutil.c (qttip_cb): Set title to empty for ATK (Bug#7278).
2167
6a5c2175
GM
21682010-10-25 Glenn Morris <rgm@gnu.org>
2169
2170 * Makefile.in (SOME_MACHINE_LISP): Remove easymenu.elc.
2171
7c051dd8
GM
21722010-10-24 Glenn Morris <rgm@gnu.org>
2173
2174 * w32fns.c (Fx_synchronize, Fx_change_window_property)
2175 (Fx_window_property, Fx_file_dialog):
2176 * xfns.c (Fx_synchronize, Fx_change_window_property)
2177 (Fx_window_property, Fx_file_dialog): Sync docs between w32 and X.
2178
23c261f5
CY
21792010-10-24 Chong Yidong <cyd@stupidchicken.com>
2180
2181 * xterm.c (x_connection_closed): Kill Emacs unconditionally.
2182
d414c713 21832010-10-24 Eli Zaretskii <eliz@gnu.org>
89baa1df
EZ
2184
2185 * frame.c (Fframep, Fwindow_system): Deprecate use as a predicate.
2186
2187 * dispnew.c (syms_of_display) <initial-window-system, window-system>:
2188 Deprecate use as a boolean flag.
2189
947f5e01
JM
21902010-10-24 Jim Meyering <jim@meyering.net>
2191
2192 * emacs.c (argmatch): Don't treat "--" as "--chdir".
2193
65807d73
GM
21942010-10-24 Glenn Morris <rgm@gnu.org>
2195
f5f25615
GM
2196 * w16select.c (syms_of_win16select) <selection-coding-system>:
2197 <next-selection-coding-system>:
2198 * w32select.c (syms_of_w32select) <selection-coding-system>:
2199 <next-selection-coding-system>:
3646b86d
GM
2200 Sync docs with select.el.
2201
46710489
GM
2202 * xfaces.c (syms_of_xfaces) <tty-defined-color-alist>: Sync doc with
2203 Lisp version.
2204
ea883883
GM
2205 * w32term.c (syms_of_w32term) <x-use-underline-position-properties>:
2206 Sync doc with the xterm.c version.
2207
65807d73
GM
2208 * w32term.c (syms_of_w32term) <x-toolkit-scroll-bars>:
2209 * xterm.c (syms_of_xterm) <x-toolkit-scroll-bars>: Sync docs.
2210
f3d87560
GM
22112010-10-23 Glenn Morris <rgm@gnu.org>
2212
66c6abf0 2213 * buffer.c (syms_of_buffer) <cursor-in-non-selected-windows>:
e1fd756b 2214 * frame.c (syms_of_frame) <menu-bar-mode>:
6e82cf1a 2215 * xdisp.c (syms_of_xdisp) <auto-hscroll-mode, display-hourglass>:
a102db1e 2216 <hourglass-delay>: Sync docs with Lisp.
f3d87560 2217
7b7e2c18
EZ
22182010-10-23 Eli Zaretskii <eliz@gnu.org>
2219
d1d6801e 2220 Implement mouse highlight for bidi-reordered lines.
d0010be5
EZ
2221
2222 * xdisp.c (fast_find_string_pos): #ifdef away, not used anymore.
2223 (mouse_face_from_string_pos): New function, replaces
2224 fast_find_string_pos.
2225 (note_mouse_highlight): Call it instead of fast_find_string_pos.
d1d6801e
EZ
2226 (note_mode_line_or_margin_highlight): Support bidi-reordered
2227 strings and R2L glyph rows. Fix comments.
2f3f89b3
EZ
2228 (note_mouse_highlight): When bidi reordering is turned on in a
2229 buffer, call next-single-property-change and
ef1b0ba7
SM
2230 previous-single-property-change with last argument nil.
2231 Clear mouse highlight when mouse pointer is in a R2L row on the stretch
d1d6801e 2232 glyph that stands for no text beyond the line end.
1f382a02
EZ
2233 (row_containing_pos): Don't return too early when CHARPOS is in a
2234 bidi-reordered continued line. Return immediately when the first
2235 hit is found in a line that is not continued, or when an exact
2236 match for CHARPOS is found.
d1d6801e
EZ
2237 (rows_from_pos_range): New function.
2238 (mouse_face_from_buffer_pos): Use it instead of calling
2239 row_containing_pos for START_CHARPOS and END_CHARPOS. Rewrite the
2240 function to support mouse highlight in bidi-reordered lines and
2241 not to assume that START_CHARPOS is always in mouse_face_beg_row.
2242 If necessary, swap mouse_face_beg_row and mouse_face_end_row so
2243 that the former is always above the latter or identical to it.
1554d88e 2244 (show_mouse_face): Support drawing highlighted R2L lines.
1b5a721b
EZ
2245 (coords_in_mouse_face_p): New function, bidi-aware.
2246 (cursor_in_mouse_face_p, note_mouse_highlight, erase_phys_cursor):
2247 Call it instead of comparing with mouse-face members of dpyinfo.
2248 (note_mode_line_or_margin_highlight): Fix confusingly swapped
2249 usage of hpos and vpos.
544bbc31 2250
dee186b6
J
22512010-10-22 Jan Djärv <jan.h.d@swipnet.se>
2252
2253 * xrdb.c: Include keyboard.h for MOTIF.
2254
2255 * xmenu.c: Revert 2010-07-27 change: lwlib.h is needed for
2256 MOTIF (Bug#7263).
2257
2258 * xfns.c: Include Xm/TextF and Xm/List.
bba3e508
SM
2259 (file_dialog_cb, file_dialog_unmap_cb, clean_up_file_dialog):
2260 Make ANSI prototypes.
dee186b6 2261
5fb59edb
GM
22622010-10-22 Glenn Morris <rgm@gnu.org>
2263
2264 * Makefile.in (SOME_MACHINE_LISP): Add w32-vars.
2265 Remove ccl and duplicate mouse.
2266
8b78d5e3
CY
22672010-10-21 Chong Yidong <cyd@stupidchicken.com>
2268
2269 * insdel.c (prepare_to_modify_buffer): Don't set
2270 saved-region-selection if modification hooks are disabled.
2271
b8a47412
CY
22722010-10-19 Chong Yidong <cyd@stupidchicken.com>
2273
2274 * cmds.c (Fdelete_char): Doc fix.
2275
ca3fa302 22762010-10-19 Ken Brown <kbrown@cornell.edu>
5419963b
KB
2277
2278 * s/cygwin.h (SIGNALS_VIA_CHARACTERS): New define (bug#7225).
2279
ca3fa302 22802010-10-19 Kenichi Handa <handa@m17n.org>
31daa5e1
KH
2281
2282 Fix incorrect font metrics when the same font is opened with
2283 different pixelsizes.
2284
2285 * xftfont.c: Include composite.h.
2286 (xftfont_shape): New function.
2287 (syms_of_xftfont): Set xftfont_driver.shape.
2288
c978536f
JD
22892010-10-18 Julien Danjou <julien@danjou.info>
2290
2291 * frame.c (Fframe_pointer_visible_p):
2292 Add `frame-pointer-visible-p' to get the pointer visibility.
2293
4b2d9ec2
LMI
22942010-10-18 Lars Magne Ingebrigtsen <larsi@gnus.org>
2295
2296 * gnutls.c (emacs_gnutls_read): Return 0 if we get a
2297 non-"EAGAIN"-like error to signal to Emacs that the socket should
2298 be closed.
2299
9cf66cf2
EZ
23002010-10-15 Eli Zaretskii <eliz@gnu.org>
2301
c3911ead
EZ
2302 * unexcoff.c (make_hdr): Fix prototype according to changes in
2303 2010-10-03T13:59:56Z!dann@ics.uci.edu.
2304
9cf66cf2
EZ
2305 * image.c (tiff_load): Cast 3rd argument to avoid compiler warning.
2306
be98da05
TH
23072010-10-15 Tassilo Horn <tassilo@member.fsf.org>
2308
2309 * Makefile.in (really-oldXMenu): Fix typo in variable name that
2310 made building the X menu fail.
cc98b256 2311 (really-oldXMenu): Fix my previous fix.
be98da05 2312
220d91b8 23132010-10-14 Damyan Pepper <damyanp@gmail.com>
9fa82824
DP
2314
2315 Fix handling of font properties on Windows (bug#6303).
2316 * font.c (font_filter_properties): New function, refactored from
2317 ftfont_filter_properties.
2318 * font.h (font_filter_properties): Declare.
2319 * ftfont.c (ftfont_filter_properties): Use font_filter_properties.
2320 * w32font.c (w32font_booleans, w32font_non_booleans): New variables.
2321 (w32font_filter_properties): New function.
2322 (w32font_driver): Add w32font_filter_properties.
2323
220d91b8 23242010-10-14 Juanma Barranquero <lekktu@gmail.com>
51e4f4a8 2325
c0943d3d 2326 * font.c (Ffont_variation_glyphs):
51e4f4a8
JB
2327 * ccl.c (Fccl_execute_on_string): Fix typo in docstring.
2328
24f981c9
JB
23292010-10-14 Juanma Barranquero <lekktu@gmail.com>
2330
2331 * w32fns.c (w32_wnd_proc, file_dialog_callback):
2332 * w32font.c (w32_generic_family):
2333 * w32inevt.c (key_event):
2334 * w32menu.c (fill_in_menu):
2335 * w32proc.c (reader_thread, w32_executable_type, compare_env)
2336 (merge_and_sort_env, int_from_hex, enum_locale_fn, enum_codepage_fn):
2337 * w32term.c (w32_read_socket): Make static.
2338
850690cc
JB
23392010-10-13 Juanma Barranquero <lekktu@gmail.com>
2340
2341 * image.c (DEF_IMGLIB_FN): Add argument to adapt to strict
2342 prototypes; all callers changed.
2343
5e371708
JB
23442010-10-13 Juanma Barranquero <lekktu@gmail.com>
2345
2346 * makefile.w32-in (TLIB2): Rename from TLIBW32.
2347 (OBJ2): New macro.
2348 (WIN32OBJ, FONTOBJ): Remove.
2349 (OBJ1): Redistribute object files with OBJ2.
2350 (LIBS, $(TEMACS)): Use TLIB2.
2351 (make-buildobj-CMD, make-buildobj-SH): Use OBJ2.
2352 ($(TLIB2), TAGS, TAGS-LISP, TAGS-gmake): Depend on OBJ2.
2353
2e288d54
JB
23542010-10-13 Juanma Barranquero <lekktu@gmail.com>
2355
2356 * emacs.c (Vdynamic_library_alist)
2357 (syms_of_emacs) <dynamic-library-alist>: Move from image.c and rename.
2358 Doc fix.
2359
2360 * lisp.h (Vdynamic_library_alist): Declare extern.
2361
2362 * image.c (Vimage_library_alist)
2363 (syms_of_image) <image-library-alist>: Move to emacs.c and rename.
2364 (lookup_image_type): Use Vdynamic_library_alist.
2365 (Finit_image_library): Doc fix.
2366
aba1381b
DN
23672010-10-12 Dan Nicolaescu <dann@ics.uci.edu>
2368
2369 * Makefile.in (lispsource, libsrc, etc, oldxmenudir, lwlibdir)
2370 (lispdir): Remove trailing /, update all uses.
2371
4c14013d 23722010-10-12 Jan Djärv <jan.h.d@swipnet.se>
a2e35ef5
JD
2373
2374 * nsterm.m (Qleft): Declare.
2375 (ns_right_alternate_modifier): New variable
2376 (NSRightAlternateKeyMask): New define.
2377 (EV_MODIFIERS): Parse NSRightAlternateKeyMask if
2378 ns_right_alternate_modifier isn't Qleft.
2379 (keyDown): If ns_right_alternate_modifier isn't Qleft, use it
2380 as emacs modifier for NSRightAlternateKeyMask.
2381 (syms_of_nsterm): DEFVAR_LISP ns-right-alternate-modifier.
2382
355cdaf3
LMI
23832010-10-10 Lars Magne Ingebrigtsen <larsi@gnus.org>
2384
2385 * gnutls.c (emacs_gnutls_write): If we're trying to write before
2386 gnutls is ready, return EAGAIN as the errno.
2387
4c620157
DN
23882010-10-10 Dan Nicolaescu <dann@ics.uci.edu>
2389
edfd76ce
DN
2390 * vm-limit.c:
2391 * unexhp9k800.c:
2392 * unexelf.c:
2393 * unexaix.c:
2394 * termcap.c: Remove #ifdef emacs / #ifndef emacs code, unused.
2395
a4daeecf
DN
2396 * Makefile.in (temacs): Use $(ALL_CFLAGS) on the link line.
2397 (PROFILING_LDFLAGS): Remove, not needed anymore.
2398
2cb72a75 2399 * Makefile.in: Use $(...) everywhere instead of ${...}
4cf3ad30
DN
2400 (CRT_DIR): Move near potential user.
2401 (START_FILE): Move near CRT_DIR, it might use it.
2cb72a75 2402
4c620157
DN
2403 * sysdep.c (LPASS8): Remove, unused.
2404 (emacs_ospeed): Change from being a global to a local in the only
2405 user: init_baud_rate.
2406
b845653d
LMI
24072010-10-09 Lars Magne Ingebrigtsen <larsi@gnus.org>
2408
2409 * gnutls.c (syms_of_gnutls): All the bootprops are keywords.
bda6d2bd 2410 (emacs_gnutls_write): Remove the debuggin fsync call.
b845653d 2411 (emacs_gnutls_read): Return -1 if we got an error from
bda6d2bd 2412 gnutls_read. This allows us to actually read lots of data from
b845653d 2413 the GnuTLS stream.
2e6c74c5
LMI
2414 (emacs_gnutls_write): Check for GNUTLS_E_AGAIN and not EINTR.
2415 According to the documentation, this is correct, and it seems to
2416 make things work.
b845653d 2417
3625b3e2
CY
24182010-10-09 Chong Yidong <cyd@stupidchicken.com>
2419
2420 * xterm.c (x_draw_relief_rect): Clear corner pixels.
2421
8b1c619f
MA
24222010-10-08 Michael Albinus <michael.albinus@gmx.de>
2423
2424 * keyboard.c: Revert last change; it was not intended to be
2425 synchronized with the trunk.
2426
93d50df8
KH
24272010-10-08 Kenichi Handa <handa@m17n.org>
2428
2b7c9342 2429 * coding.c (complement_process_encoding_system): Fix previous change.
5886ec9c 2430
4628bef1 24312010-10-08 Michael Albinus <michael.albinus@gmx.de>
a79b0f28
MA
2432
2433 * dbusbind.c (syms_of_dbusbind): Move putenv call ...
2434 (Fdbus_init_bus): ... here. (Bug#7113)
2435
4628bef1 24362010-10-08 Glenn Morris <rgm@gnu.org>
7b2bf907
GM
2437
2438 * buffer.c (before-change-functions, after-change-functions):
2439 Three-year overdue doc fix following 2007-08-13 change.
2440
4628bef1 24412010-10-08 Kenichi Handa <handa@m17n.org>
1911a33b
KH
2442
2443 * coding.c (coding_inherit_eol_type): If parent doesn't specify
2444 eol-format, inherit from the system's default.
2445 (complement_process_encoding_system): Make a new coding system
2446 inherit the original eol-format.
2447
4628bef1 24482010-10-08 Kenichi Handa <handa@m17n.org>
fcaf8878
KH
2449
2450 * coding.c (complement_process_encoding_system): New function.
2451
2452 * coding.h (complement_process_encoding_system): Extern it.
2453
2454 * callproc.c (Fcall_process): Complement the coding system for
2455 encoding arguments.
2456 (Fcall_process_region): Complement the coding system for encoding
2457 the input to the process.
2458
2459 * process.c (Fstart_process): Complement the coding system for
2460 encoding arguments.
2461 (send_process): Complement the coding system for encoding what
2462 sent to the process.
2463
4628bef1 24642010-10-08 Kenichi Handa <handa@m17n.org>
18acb5ad
KH
2465
2466 * xfont.c (xfont_open): Fix setting of font->average_width from
2467 :avgwidth property (Bug#7123).
2468
4628bef1 24692010-10-08 Michael Albinus <michael.albinus@gmx.de>
dec83468
MA
2470
2471 * dbusbind.c (syms_of_dbusbind): Use putenv instead of setenv, it
2472 is more portable.
2473
2474 * keyboard.c (gobble_input): Move call of xd_read_queued_messages ...
2475 (kbd_buffer_get_event): ... here. This is needed for cygwin, which
2476 has not defined SIGIO.
2477
389454fb
CY
24782010-10-08 Chong Yidong <cyd@stupidchicken.com>
2479
2480 * xterm.c (x_draw_relief_rect): If box width is larger than 1,
2481 draw the outermost line using the black relief, for legibility.
2482 Omit drawing the four corner pixels.
2483
51b403bd
CY
24842010-10-04 Chong Yidong <cyd@stupidchicken.com>
2485
2486 * keyboard.c (echo_prompt): Function moved into read_key_sequence.
2487 (read_key_sequence): Inline echo_prompt.
2488 (echo_dash): Add a dash only if key is continued (Bug#7137).
2489
3e6ae1a4
DN
24902010-10-04 Dan Nicolaescu <dann@ics.uci.edu>
2491
2492 Remove O_RDONLY, O_WRONLY definitions, not needed.
2493 * unexcoff.c:
2494 * lread.c:
2495 * fileio.c:
2496 * doc.c:
2497 * callproc.c:
2498 * alloc.c:
2499 * termcap.c: Remove O_RDONLY O_WRONLY definitions.
2500
c1ae068b
LMI
25012010-10-03 Teodor Zlatanov <tzz@lifelogs.com>
2502
2503 * gnutls.h (GNUTLS_LOG2): Convenience macro.
2504
2505 * gnutls.c: Add property list symbol holders.
2506 (emacs_gnutls_handshake): Clarify how sockets are passed to
2507 GnuTLS.
2508 (gnutls_log_function2): Convenience function using GNUTLS_LOG2.
2509 (Fgnutls_boot): Get all parameters from a plist. Require trustfiles
2510 and keyfiles to be a list of file names. Default to "NORMAL" for
2511 the priority string. Improve logging.
2512
e2afe435
GM
25132010-10-03 Glenn Morris <rgm@gnu.org>
2514
2515 * fileio.c (Vdirectory_sep_char): Remove.
2516
dd5ecd6b
DN
25172010-10-03 Dan Nicolaescu <dann@ics.uci.edu>
2518
b5437a05
DN
2519 * termhooks.h: Remove #ifdef CONSP.
2520
4777478a
DN
2521 * xterm.c (NO_INLINE, noinline): Move definitions to ../configure.in.
2522
a3d5088d
DN
2523 Include <fcntl.h> unconditionally.
2524 * termcap.c:
2525 * sysdep.c:
2526 * lread.c:
2527 * keyboard.c:
2528 * filelock.c:
2529 * fileio.c:
2530 * doc.c:
2531 * callproc.c:
2532 * alloc.c: Remove include guards for <fcntl.h>, process.c already
2533 does it.
2534
82719735
DN
2535 * process.c: Do not include <sys/wait.h>, syswait.h does it.
2536
9de940b5
DN
2537 * sysdep.c (flush_pending_output): Remove code, does not do
2538 anything on any platform.
2539
57507bf8 2540 Remove unused code.
bba3e508
SM
2541 * sysdep.c (select_alarm, sys_select, read_input_waiting):
2542 Remove select emulation, all systems support select.
57507bf8
DN
2543 (set_exclusive_use): Remove, the only user is in an #if 0 block.
2544 * process.c (create_process): Remove #if 0 code.
2545
dd5ecd6b
DN
2546 Remove unused arguments for unexec.
2547 The third one is never used, and the last two are always passed as zero.
2548 * emacs.c (unexec): Add declaration.
2549 (Fdump_emacs): Only pass the first two arguments to unexec.
2550 Simplify #ifdef.
2551 * unexw32.c (unexec):
2552 * unexsol.c (unexec):
2553 * unexhp9k800.c (unexec):
2554 * unexcw.c (unexec): Remove the last 3 arguments, unused.
2555 * unexelf.c (unexec): Remove the last 3 arguments, unused.
2556 (find_section): Use const.
2557 * unexmacosx.c (unexec): Remove the last 3 arguments, unused.
2558 (unexec_error): Declare it NO_RETURN.
2559 * unexcoff.c (make_hdr): Assume bss_start is always zero, remove
2560 it as an argument, remove data_start and entry_address arguments, unused.
2561 (unexec): Remove bss_start, data_start and
2562 entry_address arguments.
2563 * unexaix.c (make_hdr): Assume bss_start is always zero, remove
2564 it as an argument, remove data_start and entry_address arguments, unused.
2565 (unexec): Remove bss_start, data_start and
2566 entry_address arguments.
2567
74f1829d
JB
25682010-10-03 Juanma Barranquero <lekktu@gmail.com>
2569
7f467e14
JB
2570 * makefile.w32-in (TAGS, TAGS-LISP, TAGS-gmake): Add $(FONTOBJ).
2571
74f1829d
JB
2572 * gnutls.c (emacs_gnutls_handshake, gnutls_make_error)
2573 (gnutls_emacs_global_init, gnutls_emacs_global_deinit): Make static.
2574 (Fgnutls_get_initstage, Fgnutls_deinit, Fgnutls_boot, Fgnutls_bye):
2575 Fix typos in docstrings.
2576 (Fgnutls_error_fatalp, Fgnutls_error_string): Doc fixes.
2577 (Fgnutls_errorp): Doc fix; use ERR for the argument name.
2578
6926550f
CY
25792010-10-03 Chong Yidong <cyd@stupidchicken.com>
2580
2581 * keyboard.c (command_loop_1): Make sure the mark is really alive
2582 before using it (Bug#7044).
2583
54b65f7b
JB
25842010-10-02 Juanma Barranquero <lekktu@gmail.com>
2585
2586 * makefile.w32-in (tags): Rename target to full-tags.
2587
383ebd15
EZ
25882010-10-02 Eli Zaretskii <eliz@gnu.org>
2589
2590 * emacs.c (main): Remove !WINDOWSNT conditional.
2591 (Fkill_emacs): Don't mention exemption on MS-Windows.
2592
9c524fcb
GM
25932010-10-02 Glenn Morris <rgm@gnu.org>
2594
3226d6ca
GM
2595 * character.c (Fchar_bytes): Remove obsolete function.
2596 (syms_of_character): Remove Schar_bytes.
2597
9c524fcb
GM
2598 * emacs.c (fatal_error_signal): Also run Fkill_emacs on SIGINT.
2599 (main) [!WINDOWSNT]: Handle SIGINT with fatal_error_signal
2600 in batch-mode.
2601 (Fkill_emacs): Doc fix. Also run the hook in batch mode.
2602 (kill-emacs-hook): Doc fix.
2603
1b217849
LMI
26042010-10-02 Lars Magne Ingebrigtsen <larsi@gnus.org>
2605
2606 * xml.c (Flibxml_parse_xml_region, Flibxml_parse_html_region)
bba3e508 2607 (parse_region): Rework to take regions instead of strings, and
1b217849
LMI
2608 renamed to reflect that these are the libxml functions.
2609
54cc6a83
EZ
26102010-10-01 Eli Zaretskii <eliz@gnu.org>
2611
0ebf79de
EZ
2612 * term.c (init_tty) [DOS_NT]: Don't call Wcm_clear after setting
2613 screen dimensions in tty->Wcm.
2614
54cc6a83
EZ
2615 * xdisp.c (set_cursor_from_row): When the row is truncated and
2616 point is outside the range of displayed characters, position the
2617 cursor inside the scroll margin. (Bug#6349)
2618
321401d1
DN
26192010-10-01 Dan Nicolaescu <dann@ics.uci.edu>
2620
4cacd822
DN
2621 Do not include stdlib.h and string.h, config.h does it.
2622 * xfont.c:
2623 * w32term.c:
2624 * w32reg.c:
2625 * w32inevt.c:
2626 * w32heap.c:
2627 * w32console.c:
2628 * w16select.c:
2629 * unexsol.c:
2630 * term.c:
2631 * sound.c:
2632 * scroll.c (m):
2633 * gtkutil.c:
2634 * font.c:
2635 * filelock.c:
2636 * fileio.c:
2637 * dosfns.c:
2638 * dbusbind.c:
2639 * bidi.c:
2640 * callproc.c:
2641 * process.c:
2642 * msdos.c:
2643 * charset.c: Do not include stdlib.h and string.h, config.h does it.
2644
bba3e508
SM
2645 * callproc.c (SIGCHLD): Remove conditional definition, syssignal.h
2646 defines it.
0781e7ab 2647
9bf58201
DN
2648 * process.c: Move #include <pty.h> earlier.
2649 (SIGCHLD): Remove conditional definition, syssignal.h defines it.
2650 (pty_name): Move definition later.
2651
088dcc3e
DN
2652 * nsselect.m (syms_of_nsselect):
2653 * nsmenu.m (syms_of_nsmenu):
2654 * nsfns.m (syms_of_nsfns):
2655 * msdos.c (syms_of_msdos):
4cacd822 2656
088dcc3e
DN
2657 * image.c (syms_of_image):
2658 * charset.c (syms_of_charset): Use intern_c_string instead of intern.
2659
321401d1
DN
2660 * point.h: Remove, unused.
2661
73077a9a
EZ
26622010-10-01 Eli Zaretskii <eliz@gnu.org>
2663
2664 * makefile.w32-in (TAGS, frc, TAGS-LISP, ../nt/TAGS, tags)
2665 (TAGS-gmake, TAGS-nmake, TAGS-LISP-gmake, TAGS-LISP-nmake)
2666 (nt-TAGS-gmake, nt-TAGS-nmake): New targets.
2667
55e572ef
DN
26682010-09-30 Dan Nicolaescu <dann@ics.uci.edu>
2669
2670 * xml.c (parse_string): Use const.
2671
d4b6d95d
LMI
26722010-09-30 Lars Magne Ingebrigtsen <larsi@gnus.org>
2673
ef1b0ba7
SM
2674 * eval.c (Fbacktrace): Don't overwrite print-level on exit.
2675 Also only override Vprint_level if it isn't already bound, and increase
d4b6d95d
LMI
2676 the level to 8 to produce more useful backtraces for bug reports.
2677
e4b6db12
DN
26782010-09-30 Dan Nicolaescu <dann@ics.uci.edu>
2679
2680 * Makefile.in: ecrt0.c does not exist anymore, do not mention it.
2681
1becef93
JB
26822010-09-30 Juanma Barranquero <lekktu@gmail.com>
2683
2684 * w32console.c (vga_stdcolor_name): Remove unused function;
2685 presumed dead after 2007-11-30T13:57:21Z!jasonr@gnu.org.
2686
df7fcaff
LMI
26872010-09-29 Lars Magne Ingebrigtsen <larsi@gnus.org>
2688
bac5cef8
LMI
2689 * gnutls.c (emacs_gnutls_handshake): Made into internal function.
2690 (Fgnutls_boot): Start the handshake.
2691 (emacs_gnutls_read): Perform the handshake from the reader loop.
e6059fa2
LMI
2692 (Fgnutls_boot): Remove some debugging messages.
2693 Change indentation throughout to use the Emacs style.
2694 (emacs_gnutls_handshake): Cast the fds to something that's
2695 possibly the expected length.
2696 (emacs_gnutls_write): Return -1 if we try to write before handshake.
bac5cef8 2697
df7fcaff
LMI
2698 * process.h (Lisp_Process): Add a gnutls_p field to Lisp_Process.
2699
2700 * process.c (make_process): Set the gnutls_p field to zero by
2701 default.
2702 (read_process_output): Always call the gnutls_read function if the
2703 stream is a gnutls stream.
2704 (send_process): Ditto for writes.
2705
2706 * gnutls.c (emacs_gnutls_write, emacs_gnutls_read): Refuse to read
2707 or write anything until the state is GNUTLS_STAGE_READY.
2708 (Fgnutls_boot): Mark the stream as being a gnutls stream.
2709
d585695f
EZ
27102010-09-29 Eli Zaretskii <eliz@gnu.org>
2711
af7ef32d
EZ
2712 * xdisp.c (reseat_1): Initialize bidi_it.paragraph_dir to
2713 NEUTRAL_DIR.
2714 (handle_invisible_prop, iterate_out_of_display_property)
2715 (next_element_from_buffer): If bidi_it.first_elt is set, call
2716 bidi_paragraph_init with NO_DEFAULT_P argument non-zero.
2717 (Bug#7128)
2718
d585695f
EZ
2719 * print.c (print_object): Fix format string and argument types for
2720 printing a Lisp_Misc_Marker.
2721
2722 * xdisp.c (pos_visible_p, c_string_pos, number_of_chars)
2723 (load_overlay_strings, get_overlay_strings_1)
2724 (get_overlay_strings, forward_to_next_line_start)
2725 (back_to_previous_visible_line_start, reseat, reseat_to_string)
2726 (get_next_display_element, next_element_from_string)
2727 (next_element_from_c_string, next_element_from_buffer)
2728 (move_it_vertically_backward, move_it_by_lines, add_to_log)
2729 (message_dolog, message_log_check_duplicate, message2_nolog)
2730 (message3, message3_nolog, vmessage, set_message, set_message_1)
2731 (hscroll_window_tree, text_outside_line_unchanged_p)
2732 (set_cursor_from_row, set_vertical_scroll_bar, redisplay_window)
2733 (find_last_unchanged_at_beg_row)
2734 (find_first_unchanged_at_end_row, row_containing_pos)
2735 (trailing_whitespace_p, display_mode_element, decode_mode_spec)
bba3e508
SM
2736 (display_count_lines, x_produce_glyphs, note_mouse_highlight):
2737 Use EMACS_INT for buffer and string positions.
d585695f
EZ
2738
2739 * dispextern.h (struct it) <string_nchars>: Declare EMACS_INT.
2740 (row_containing_pos): Adjust prototype.
2741
2742 * lisp.h (pos_visible_p, message2, message2_nolog, message3)
2743 (message2_nolog, set_message): Adjust prototypes.
2744
a6f3211f
SM
27452010-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
2746
2747 * gnutls.c (Fgnutls_boot): Remove unused vars `data' and `srp_cred'.
2748 (Fgnutls_boot): Use SDATA.
2749 (Fgnutls_handshake): Remove unused var `max_log_level'.
2750
e0720500
MA
27512010-09-27 Michael Albinus <michael.albinus@gmx.de>
2752
11a5af7c 2753 * dbusbind.c (syms_of_dbusbind): Set $DBUS_FATAL_WARNINGS to "0".
e0720500
MA
2754 (Bug#7113)
2755
d8a4b27a
J
27562010-09-27 Jan Djärv <jan.h.d@swipnet.se>
2757
42d3022b
J
2758 * xgselect.c (xg_select): Clear file descriptors not set from
2759 rfds and wfds.
2760
d8a4b27a
J
2761 * process.c (wait_reading_process_output): Add missing FD_CLR
2762 for write_mask (must mirror connect_wait_mask).
2763
8ed70bf3
LMI
27642010-09-27 Teodor Zlatanov <tzz@lifelogs.com>
2765
2766 * gnutls.c (gnutls_log_function): Show level and "gnutls.c"
2767 prefix.
2768 (Fgnutls_boot): Use changed process members. Use log level with a
2769 function parameter to set it. Bring back Emacs-level debugging
2770 messages at log level 1 and 2.
2771
2772 * process.c (make_process): Initialize gnutls_log_level.
2773
2774 * process.h: Add gnutls_log_level and rename x509_cred and
2775 anon_cred to have the gnutls_ prefix for consistency.
2776
2777 * gnutls.h (GNUTLS_LOG): Add convenience macro.
2778
bedf4aab
JB
27792010-09-27 Juanma Barranquero <lekktu@gmail.com>
2780
2781 * w32.c (g_b_init_get_sid_identifier_authority)
2782 (GetSidIdentifierAuthority_Proc, get_sid_identifier_authority):
2783 Remove, not used.
2784 (globals_of_w32): Don't set g_b_init_get_sid_identifier_authority.
2785 (init_winsock): Remove useless assignment.
2786 (open_process_token, get_token_information, lookup_account_sid)
2787 (get_sid_sub_authority, get_sid_sub_authority_count, get_file_security)
2788 (get_security_descriptor_owner, get_security_descriptor_group)
2789 (is_valid_sid, equal_sid, get_length_sid, copy_sid)
2790 (get_native_system_info, get_system_times, init_user_info, crlf_to_lf)
2791 (is_unc_volume, GetCachedVolumeInformation, get_volume_info)
2792 (is_fat_volume, open_unc_volume, read_unc_volume, close_unc_volume)
2793 (unc_volume_file_attributes, convert_from_time_t)
2794 (create_toolhelp32_snapshot, process32_first, process32_next)
2795 (open_thread_token, impersonate_self, revert_to_self)
2796 (get_process_memory_info, get_process_working_set_size)
2797 (global_memory_status, global_memory_status_ex, socket_to_fd)
2798 (shutdown_handler): Make static.
2799
08609ffd
MA
28002010-09-27 Michael Albinus <michael.albinus@gmx.de>
2801
2802 * dbusbind.c (dbus_fd_cb, xd_get_dispatch_status)
2803 (xd_pending_messages): Functions removed.
2804 (xd_read_queued_messages): Add parameters fd, *data, for_read in
2805 order to be compatible with add_read_fd. Determine bus from data,
2806 and call xd_read_message just for this bus.
2807 (xd_add_watch): Use xd_read_queued_messages as callback function.
2808 Add data.
2809
2810 * lisp.h (xd_pending_messages, xd_read_queued_messages): Remove.
2811
d2e9d0bb
LMI
28122010-09-27 Lars Magne Ingebrigtsen <larsi@gnus.org>
2813
ef1b0ba7 2814 * gnutls.c (gnutls_log_function): Add more debugging.
ec9f09be 2815 (emacs_gnutls_read): Don't infloop while reading.
d2e9d0bb 2816
4be9765d
KH
28172010-09-27 Kenichi Handa <handa@m17n.org>
2818
2819 These changes are to remove restriction on the number of glyphs in
2820 one composition.
2821
2822 * dispextern.h (struct glyph): Change the member "slice" to union.
2823 Remove u.cmp.from and u.cmp.to. Give more bits to u.cmp.id.
bba3e508 2824 (GLYPH_SLICE_EQUAL_P): Adjust for the above change.
4be9765d
KH
2825
2826 * dispnew.c (buffer_posn_from_coords): Use glyph->slice.img
2827 instead of glyph->slice.
2828 (marginal_area_string): Likewise.
2829
2830 * term.c (encode_terminal_code): Use glyph->slice.cmp instead of
2831 glyph->u.cmp.
2832 (append_composite_glyph): Likewise.
2833
2834 * xdisp.c (dump_glyph): Use glyph->slice.cmp instead of
2835 glyph->u.cmp.
2836 (fill_gstring_glyph_string, x_get_glyph_overhangs)
2837 (append_composite_glyph): Likewise.
2838 (fill_image_glyph_string): Use glyph->slice.img instead of
2839 glyph->slice.
2840 (append_glyph, produce_image_glyph, append_stretch_glyph)
2841 (note_mouse_highlight): Likewise.
2842
3fad2ad2
J
28432010-09-26 Jan Djärv <jan.h.d@swipnet.se>
2844
bf05eed6
J
2845 * process.c (add_keyboard_wait_descriptor)
2846 (delete_keyboard_wait_descriptor): Reinstate ifdef subprocesses.
82d6e50b
J
2847 (wait_reading_process_output): Don't pass write_mask to select
2848 if SELECT_CANT_DO_WRITE_MASK is defined.
2849 (SELECT_CANT_DO_WRITE_MASK): Define if SELECT_CANT_DO_WRITE_MASK.
bf05eed6 2850
3fad2ad2
J
2851 * process.h (add_read_fd, delete_read_fd, add_write_fd)
2852 (delete_write_fd): Declare.
2853
2854 * process.c (gpm_wait_mask, max_gpm_desc): Remove.
2855 (write_mask): New variable.
ef1b0ba7 2856 (max_input_desc): Rename from max_keyboard_desc.
3fad2ad2 2857 (fd_callback_info): New variable.
70e31436
JB
2858 (add_read_fd, delete_read_fd, add_write_fd, delete_write_fd):
2859 New functions.
3fad2ad2
J
2860 (Fmake_network_process): FD_SET write_mask.
2861 (deactivate_process): FD_CLR write_mask.
2862 (wait_reading_process_output): Connecting renamed to Writeok.
70e31436
JB
2863 check_connect removed. check_write is new. Remove references to gpm.
2864 Use Writeok/check_write unconditionally (i.e. no #ifdef
3fad2ad2
J
2865 NON_BLOCKING_CONNECT) instead of Connecting.
2866 Loop over file descriptors and call callbacks in fd_callback_info
2867 if file descriptor is ready for I/O.
2868 (add_gpm_wait_descriptor): Just call add_keyboard_wait_descriptor.
2869 (delete_gpm_wait_descriptor): Just call delete_keyboard_wait_descriptor.
2870 (keyboard_bit_set): Use max_input_desc.
70e31436
JB
2871 (add_keyboard_wait_descriptor, delete_keyboard_wait_descriptor):
2872 Remove #ifdef subprocesses. Use max_input_desc.
3fad2ad2
J
2873 (init_process): Initialize write_mask and fd_callback_info.
2874
2875 * keyboard.c (readable_events, gobble_input): Remove DBUS code.
2876
2877 * dbusbind.c: Include process.h.
2878 (dbus_fd_cb, xd_find_watch_fd, xd_toggle_watch)
2879 (xd_read_message_1): New functions.
70e31436
JB
2880 (xd_add_watch, xd_remove_watch): Call xd_find_watch_fd.
2881 Handle watch for both read and write.
3fad2ad2
J
2882 (Fdbus_init_bus): Also register xd_toggle_watch.
2883 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
2884 (Fdbus_method_error_internal, Fdbus_send_signal): Remove call
2885 to dbus_connection_flush.
70e31436 2886 (xd_read_message): Move most of the code to xd_read_message_1.
3fad2ad2
J
2887 Call xd_read_message_1 until status is COMPLETE.
2888
dce4c2ac
DN
28892010-09-26 Dan Nicolaescu <dann@ics.uci.edu>
2890
2891 * term.c: Do not include sys/ioctl.h, not needed.
70e31436
JB
2892 (init_tty): Reorder code to reduce the number of #ifdefs.
2893 No code changes.
dce4c2ac 2894
8af55556
TZ
28952010-09-26 Teodor Zlatanov <tzz@lifelogs.com>
2896
2897 * process.h: Set up GnuTLS support.
2898
2899 * process.c (make_process, Fstart_process)
2900 (read_process_output, send_process): Set up GnuTLS support for
2901 process input/output file descriptors.
2902
2903 * gnutls.h: The GnuTLS glue for Emacs, macros and enums.
2904
2905 * gnutls.c: The source code for GnuTLS support in Emacs.
2906
2907 * emacs.c: Set up GnuTLS support and call syms_of_gnutls.
2908
2909 * config.in: Set up GnuTLS support.
2910
2911 * Makefile.in (LIBGNUTLS_LIBS, LIBGNUTLS_CFLAGS, ALL_CFLAGS)
2912 (obj, LIBES): Set up GnuTLS support.
2913
83e245c4
JB
29142010-09-26 Juanma Barranquero <lekktu@gmail.com>
2915
2916 * w32.c (get_emacs_configuration_options): Fix previous change.
2917
d24ec09a
CY
29182010-09-25 Chong Yidong <cyd@stupidchicken.com>
2919
2920 * insdel.c (prepare_to_modify_buffer): Ensure the mark marker is
2921 alive before using it (Bug#6977).
2922
b7bdc47c
LMI
29232010-09-25 Lars Magne Ingebrigtsen <larsi@gnus.org>
2924
a952d5f3
LMI
2925 * xdisp.c (face_before_or_after_it_pos): EMACS_INT/int fixup.
2926
2927 * dispextern.h: EMACS_INT/int fixup.
2928
2929 * xdisp.c (string_pos_nchars_ahead, init_iterator): EMACS_INT/int
2930 fixup.
2931
b7bdc47c
LMI
2932 * xrdb.c (magic_file_p): EMACS_INT/int fixup.
2933
41118bd3
EZ
29342010-09-25 Eli Zaretskii <eliz@gnu.org>
2935
2452438f
EZ
2936 * window.c (Fpos_visible_in_window_p, Fdelete_other_windows)
2937 (Fselect_window, window_scroll_pixel_based)
2938 (window_scroll_line_based, Frecenter, Fset_window_configuration):
2939 Use EMACS_INT for buffer positions.
2940
2941 * textprop.c (validate_interval_range, interval_of)
2942 (property_change_between_p, Fadd_text_properties)
2943 (set_text_properties_1, Fremove_text_properties)
2944 (Fremove_list_of_text_properties, Ftext_property_any)
2945 (Ftext_property_not_all, copy_text_properties)
2946 (text_property_list, extend_property_ranges)
2947 (verify_interval_modification): Use EMACS_INT for buffer
2948 positions.
2949
f877c546
EZ
2950 * term.c (fast_find_position, term_mouse_highlight): Use EMACS_INT
2951 for buffer positions.
2952
2953 * process.c (read_process_output, send_process)
2954 (Fprocess_send_region, status_notify): Use EMACS_INT for buffer
2955 and string positions and size.
2956
da43f021
EZ
2957 * print.c (print_object, print_string, strout): Use EMACS_INT for
2958 string indices.
2959
2960 * minibuf.c (string_to_object): Use EMACS_INT for string position
2961 and size.
2962
2963 * marker.c (verify_bytepos): Use EMACS_INT for buffer positions.
2964
2965 * lread.c <read_from_string_index, read_from_string_index_byte>
2966 <read_from_string_limit, readchar_count>: Define EMACS_INT.
2967 (readchar, unreadchar, read_internal_start): Use EMACS_INT for
2968 buffer positions and string length.
2969
41118bd3
EZ
2970 * keyboard.c <last_point_position, last_non_minibuf_size>: Declare
2971 EMACS_INT.
2972 (echo_truncate, adjust_point_for_property, read_char)
2973 (gen_help_event, make_lispy_event, modify_event_symbol)
2974 (Fexecute_extended_command, stuff_buffered_input): Use EMACS_INT
2975 for buffer positions and string length.
2976
2977 * keyboard.h (gen_help_event): Adjust prototype.
2978
2979 * termhooks.h <struct input_event>: Make `code' member EMACS_INT.
2980
2981 * commands.h <last_point_position>: Declare EMACS_INT.
2982
2983 * xdisp.c <help_echo_pos>: Define as EMACS_INT.
2984 (truncate_echo_area): Accept EMACS_INT argument.
2985
2986 * dispextern.h <help_echo_pos>: Declare EMACS_INT.
2987
2988 * lisp.h (truncate_echo_area): Adjust prototype.
2989
2990 * composite.c (composition_adjust_point): Return EMACS_INT.
2991
2992 * composite.h (composition_adjust_point): Adjust prototype.
2993
ba3033ee
JB
29942010-09-25 Juanma Barranquero <lekktu@gmail.com>
2995
2996 * process.c (Fmake_network_process): When arg :host is 'local,
2997 use address 127.0.0.1, not name "localhost". (Bug#6781)
2998
4f3a2f8d
EZ
29992010-09-24 Eli Zaretskii <eliz@gnu.org>
3000
5816888b
EZ
3001 * indent.c (Fcurrent_indentation, indented_beyond_p)
3002 (compute_motion): Use EMACS_INT for buffer position variables.
3003
3004 * lisp.h (indented_beyond_p): Adjust prototype.
3005
3006 * buffer.c (overlay_strings): Return EMACS_INT.
3007
3008 * buffer.h (overlay_strings): Adjust prototype.
3009
3010 * region-cache.c (pp_cache): Adjust format to arguments.
3011
3012 * eval.c <specpdl_size, lisp_eval_depth>: Declare EMACS_INT.
3013 (call_debugger): Use EMACS_INT for specpdl_size related variables.
3014 (verror): Use EMACS_INT for size of allocated buffer.
3015
ace1712c
EZ
3016 * keyboard.c (make_lispy_position): Use EMACS_INT for buffer
3017 positions.
3018
3019 * xdisp.c (redisplay_internal, try_window_id)
bba3e508
SM
3020 (set_cursor_from_row, find_first_unchanged_at_end_row):
3021 Use EMACS_INT for buffer positions.
ace1712c 3022
f5276b75 3023 * dispextern.h (set_cursor_from_row): Adjust prototype.
ace1712c
EZ
3024
3025 * dispnew.c (increment_matrix_positions)
3026 (increment_row_positions, copy_glyph_row_contents)
3027 (mode_line_string, marginal_area_string): Use EMACS_INT for buffer
3028 positions.
3029
3030 * dispextern.h (mode_line_string, marginal_area_string)
bba3e508
SM
3031 (increment_matrix_positions, increment_row_positions):
3032 Adjust prototypes.
ace1712c
EZ
3033
3034 * data.c (Faref, Faset): Use EMACS_INT for string length and
3035 positions.
3036
3037 * cmds.c (internal_self_insert): Use EMACS_INT for the count of
3038 characters to insert.
3039
3040 * ccl.c (Fccl_execute_on_string): Use EMACS_INT for string
3041 position and size.
3042
4f3a2f8d
EZ
3043 * syntax.c (scan_words, update_syntax_table)
3044 (prev_char_comend_first, back_comment, skip_chars)
bba3e508
SM
3045 (skip_syntaxes, Fforward_comment, Fbackward_prefix_chars):
3046 Use EMACS_INT for buffer and string positions.
4f3a2f8d
EZ
3047
3048 * syntax.h (scan_words, update_syntax_table): Adjust prototypes.
3049
3050 * casefiddle.c (operate_on_word): Use EMACS_INT for buffer
3051 positions.
3052
db063399
LMI
30532010-09-24 Lars Magne Ingebrigtsen <larsi@gnus.org>
3054
f0812d35
LMI
3055 * scroll.c (calculate_scrolling, line_ins_del)
3056 (calculate_direct_scrolling, scroll_cost): Fix EMACS_INT/int
3057 conversion.
3058
f5c7fc27
LMI
3059 * region-cache.c (move_cache_gap, set_cache_region, pp_cache)
3060 (region_cache_backward, region_cache_forward)
3061 (revalidate_region_cache, set_cache_region): FIX EMACS_INT/int
3062 conversion.
3063
db063399
LMI
3064 * xdisp.c (message_dolog): Fix EMACS_INT/int conversion.
3065
3066 * eval.c (verror): Fix EMACS_INT/int conversion.
3067
07914cd0 3068 * print.c (PRINTDECLARE, PRINTPREPARE, strout, print_string)
db063399
LMI
3069 (print_preprocess, print_check_string_charset_prop)
3070 (print_object): Fix EMACS_INT/int conversion.
3071
3072 * xdisp.c (message_dolog): Fix EMACS_INT/int conversion.
3073
e6d4aefa
EZ
30742010-09-24 Eli Zaretskii <eliz@gnu.org>
3075
69481da7
EZ
3076 * callproc.c (Fcall_process): Use EMACS_INT for count of
3077 characters read from the subprocess.
3078
61bfec98
EZ
3079 * bidi.c (struct bidi_paragraph_info): Use EMACS_INT for buffer
3080 positions.
3081 (bidi_cache_search, bidi_cache_find): Use EMACS_INT for buffer
3082 positions.
3083
145582a0
EZ
3084 * buffer.c (struct sortvec): Use EMACS_INT for buffer positions.
3085 (struct sortstrlist, overlay_str_len): Use EMACS_INT for string
3086 length.
3087 (advance_to_char_boundary, Fset_buffer_multibyte)
3088 (overlays_at, overlays_in, mouse_face_overlay_overlaps)
3089 (overlay_touches_p, record_overlay_string, overlay_strings)
3090 (recenter_overlay_lists, fix_start_end_in_overlays)
3091 (modify_overlay, Fmove_overlay, report_overlay_modification)
3092 (evaporate_overlays): Use EMACS_INT for buffer positions.
3093
bba3e508
SM
3094 * lisp.h (fix_start_end_in_overlays, overlay_touches_p):
3095 Adjust prototypes.
145582a0 3096
446470a9
EZ
3097 * dispextern.h (struct bidi_saved_info): Use EMACS_INT for buffer
3098 positions.
3099
e6d4aefa
EZ
3100 * fns.c (Fcompare_strings, Fstring_lessp, concat)
3101 (string_make_unibyte, Fstring_as_unibyte, Fsubstring)
3102 (Fsubstring_no_properties, substring_both, Ffillarray)
3103 (Fclear_string, mapcar1, Fmapconcat, Fmapcar, Fmapc)
3104 (Fbase64_encode_region, Fbase64_encode_string, base64_encode_1)
3105 (Fbase64_decode_region, Fbase64_decode_string, base64_decode_1)
3106 (Fmd5): Use EMACS_INT for buffer and string positions and length
3107 variables and arguments.
3108
3109 * lisp.h (substring_both): Adjust prototype.
3110
eb652396
JB
31112010-09-24 Juanma Barranquero <lekktu@gmail.com>
3112
3113 Remove W32 API function pointer unused since 2005-02-15 (revno 2005-02-15T23:19:26Z!jasonr@gnu.org).
3114 * w32fns.c (clipboard_sequence_fn): Don't declare.
3115 (globals_of_w32fns): Don't initialize it.
3116
266a86bd 31172010-09-23 Stefan Monnier <monnier@iro.umontreal.ca>
fbb3da77
SM
3118
3119 * syntax.c (back_comment): Detect the case where a 1-char comment
3120 starter is also the 2nd char of a 2-char comment ender.
3121
266a86bd 31222010-09-23 Jan Djärv <jan.h.d@swipnet.se>
2b5b82db
J
3123
3124 * gtkutil.c (xg_tool_bar_menu_proxy): Set gtk-menu-items to TRUE.
3125
40283062
LMI
31262010-09-23 Lars Magne Ingebrigtsen <larsi@gnus.org>
3127
db063399
LMI
3128 * eval.c (verror): EMACS_INT/int cleanup.
3129
faf8b5bc
LMI
3130 * lisp.h (SPECPDL_INDEX): Cast to int, since we're not going to
3131 unwind_protect more than 2GB worth of functions.
3132
3133 * editfns.c (Finsert_char): EMACS_INT/int cleanup.
3134
40283062
LMI
3135 * lisp.h: Have oblookup take EMACS_INT to allow interning big
3136 string and avoid compiler warnings.
3137 (USE_SAFE_ALLOCA): Cast to int to avoid compilation warnings in
3138 all users.
3139
3140 * lread.c (oblookup): EMACS_INT/int cleanup.
3141
3142 * cmds.c (Fforward_line, Fdelete_char): EMACS_INT/int cleanup.
3143
fe3537c3
EZ
31442010-09-23 Eli Zaretskii <eliz@gnu.org>
3145
3146 * editfns.c (clip_to_bounds): Return an EMACS_INT value.
3147
3148 * lisp.h (clip_to_bounds): Adjust prototype.
3149
3150 * intervals.c (adjust_for_invis_intang): Return EMACS_INT value.
3151
0350982f
LMI
31522010-09-23 Lars Magne Ingebrigtsen <larsi@gnus.org>
3153
84c9ce05
LMI
3154 * lisp.h: doprnt.c EMACS_INT/int cleanup.
3155
3156 * doprnt.c (doprnt): EMACS_INT/int cleanup.
3157
3158 * doc.c (Fsnarf_documentation, get_doc_string): EMACS_INT/int
3159 cleanup.
3160
0350982f
LMI
3161 * lisp.h: Change the definition of all marker.c functions that
3162 take and return buffer stuff to be EMACS_INT instead of int.
3163
3164 * marker.c (buf_charpos_to_bytepos, CONSIDER, set_marker_both)
3165 (buf_charpos_to_bytepos, bytepos_to_charpos)
3166 (buf_bytepos_to_charpos, Fbuffer_has_markers_at)
3167 (set_marker_restricted, set_marker_both): Convert int to EMACS_INT
3168 for all buffer positions.
3169
c50bd0d2
CY
31702010-09-23 Chong Yidong <cyd@stupidchicken.com>
3171
3172 * intervals.c (traverse_intervals, rotate_right, rotate_left)
3173 (split_interval_right, find_interval, next_interval)
3174 (delete_node, delete_interval, interval_deletion_adjustment)
3175 (adjust_intervals_for_deletion, merge_interval_right)
3176 (merge_interval_left, graft_intervals_into_buffer)
3177 (copy_intervals): Convert EMACS_UINTs to EMACS_INT.
3178
3179 * intervals.h (traverse_intervals): Update prototype.
3180
14162469
EZ
31812010-09-23 Eli Zaretskii <eliz@gnu.org>
3182
c098fdb8
EZ
3183 * indent.c (compute_motion): Use EMACS_INT for arguments to
3184 region_cache_forward.
3185
bba3e508
SM
3186 * region-cache.c (struct boundary, struct region_cache):
3187 Use EMACS_INT for positions.
c098fdb8
EZ
3188 (find_cache_boundary, move_cache_gap, insert_cache_boundary)
3189 (delete_cache_boundaries, set_cache_region)
3190 (invalidate_region_cache, know_region_cache)
bba3e508
SM
3191 (region_cache_forward, region_cache_backward, pp_cache):
3192 Use EMACS_INT for buffer positions.
c098fdb8
EZ
3193
3194 * region-cache.h (know_region_cache, invalidate_region_cache)
3195 (region_cache_forward, region_cache_backward): Adjust prototypes.
3196
3197 * search.c (string_match_1, fast_c_string_match_ignore_case)
3198 (looking_at_1, scan_buffer, scan_newline)
3199 (find_next_newline_no_quit, find_before_next_newline)
3200 (search_command, trivial_regexp_p, search_buffer, simple_search)
3201 (boyer_moore, wordify, Freplace_match): Use EMACS_INT for buffer
3202 and string positions and length.
3203
caefdbe7
EZ
3204 * lisp.h (scan_buffer, scan_newline, find_next_newline_no_quit)
3205 (find_before_next_newline): Adjust prototypes.
c098fdb8 3206
29cdc13e
EZ
3207 * editfns.c (transpose_markers, update_buffer_properties)
3208 (buildmark, clip_to_bounds, Fgoto_char, overlays_around)
3209 (get_pos_property, Fconstrain_to_field)
3210 (Fline_beginning_position, Fline_end_position, Fprevious_char)
3211 (Fchar_after, Fchar_before, Finsert_char)
3212 (Finsert_buffer_substring, Fcompare_buffer_substrings)
bba3e508
SM
3213 (Fsubst_char_in_region, Fformat, Ftranspose_regions):
3214 Use EMACS_INT for buffer and string position variables.
c098fdb8 3215 (Finsert_char): Protect against too large insertions.
29cdc13e
EZ
3216
3217 * lisp.h (clip_to_bounds): Adjust prototype.
3218
e79123aa
EZ
3219 * intervals.c (traverse_intervals, rotate_right, rotate_left)
3220 (balance_an_interval, split_interval_right, split_interval_left)
3221 (find_interval, next_interval, update_interval)
3222 (adjust_intervals_for_insertion, delete_node, delete_interval)
3223 (interval_deletion_adjustment, adjust_intervals_for_deletion)
3224 (offset_intervals, merge_interval_right, merge_interval_left)
3225 (graft_intervals_into_buffer, adjust_for_invis_intang)
3226 (move_if_not_intangible, get_local_map, copy_intervals)
3227 (copy_intervals_to_string, compare_string_intervals)
3228 (set_intervals_multibyte_1): Use EMACS_INT for buffer positions
6e48267a 3229 and for interval tree size.
e79123aa
EZ
3230
3231 * intervals.h (traverse_intervals, split_interval_right)
3232 (split_interval_left, find_interval, offset_intervals)
3233 (graft_intervals_into_buffer, copy_intervals)
3234 (copy_intervals_to_string, move_if_not_intangible, get_local_map)
3235 (update_interval): Adjust prototypes.
3236
579c18d0
EZ
3237 * xdisp.c (check_point_in_composition, reconsider_clip_changes):
3238 Use EMACS_INT for buffer position variables and arguments.
3239
3240 * composite.c (get_composition_id, find_composition)
3241 (run_composition_function, compose_text)
3242 (composition_gstring_width, autocmp_chars)
3243 (composition_update_it, Ffind_composition_internal): Use EMACS_INT
3244 for buffer positions and string length variables and arguments.
3245
3246 * composite.h (get_composition_id, find_composition, compose_text)
3247 (composition_gstring_width): Adjust prototypes.
3248
3249 * editfns.c (Fformat): Use EMACS_INT for string size variables.
3250
bba3e508
SM
3251 * xdisp.c (store_mode_line_noprop, display_mode_element):
3252 Use EMACS_INT for string positions.
579c18d0
EZ
3253
3254 * intervals.c (get_property_and_range): Use EMACS_INT for buffer
3255 position arguments.
3256
3257 * intervals.h (get_property_and_range): Adjust prototype.
14162469
EZ
3258
3259 * character.c (parse_str_as_multibyte, str_as_multibyte)
3260 (parse_str_to_multibyte, str_to_multibyte, str_as_unibyte)
579c18d0 3261 (string_count_byte8, string_escape_byte8, c_string_width)
bba3e508
SM
3262 (strwidth, lisp_string_width, multibyte_chars_in_text):
3263 Use EMACS_INT for string length variables and arguments.
14162469
EZ
3264
3265 * character.h (parse_str_as_multibyte, str_as_multibyte)
579c18d0 3266 (parse_str_to_multibyte, str_to_multibyte, str_as_unibyte)
bba3e508
SM
3267 (c_string_width, strwidth, lisp_string_width):
3268 Adjust prototypes.
14162469 3269
579c18d0
EZ
3270 * font.c (font_intern_prop): Use EMACS_INT for string length
3271 variables.
3272
3273 * font.c (font_intern_prop): Use EMACS_INT for string length
3274 variables.
3275
14162469
EZ
3276 * fns.c (Fstring_as_multibyte): Use EMACS_INT for string length
3277 variables.
3278
3279 * alloc.c <total_string_size>: Declare as EMACS_INT, not int.
3280 (Fmake_string): Protect against too large strings.
3281 (live_string_p, live_cons_p, live_symbol_p, live_float_p)
3282 (live_misc_p): Use ptrdiff_t instead of int for pointer
3283 differences.
3284 (string_bytes, check_sblock, check_string_free_list)
3285 (allocate_string_data, compact_small_strings, Fmake_string)
3286 (Fmake_bool_vector, make_string, make_unibyte_string)
3287 (make_multibyte_string, make_string_from_bytes)
bba3e508
SM
3288 (make_specified_string_string, Fmake_list, Fmake_vector):
3289 Use EMACS_INT for string length variables and arguments.
14162469
EZ
3290 (find_string_data_in_pure, make_pure_string, make_pure_c_string)
3291 (Fpurecopy): Use EMACS_INT for string size.
3292 (mark_vectorlike, mark_char_table, mark_object): Use EMACS_UINT
3293 for vector size.
3294
3295 * lisp.h (make_string, make_unibyte_string, make_multibyte_string)
3296 (make_string_from_bytes, make_specified_string_string)
579c18d0
EZ
3297 (make_pure_string, string_bytes, check_point_in_composition):
3298 Adjust prototypes.
14162469 3299
c8a66ab8
EZ
33002010-09-22 Eli Zaretskii <eliz@gnu.org>
3301
3302 * editfns.c (Fsubst_char_in_region, Ftranslate_region_internal)
3303 (check_translation): Use EMACS_INT for buffer positions and
3304 length.
3305
3306 * undo.c (record_marker_adjustment, record_delete)
3307 (record_change, record_point, record_insert)
3308 (record_property_change, Fprimitive_undo): Use EMACS_INT for
3309 buffer positions.
3310
3311 * lisp.h (record_marker_adjustment, record_delete)
3312 (record_change, record_point, record_insert)
3313 (record_property_change, Fprimitive_undo): Adjust prototypes.
3314
38c54d9d
JB
33152010-09-22 Juanma Barranquero <lekktu@gmail.com>
3316 Eli Zaretskii <eliz@gnu.org>
3317
3318 * w32.c (get_emacs_configuration_options): Fix buffer overrun.
3319
413d18e7
EZ
33202010-09-22 Eli Zaretskii <eliz@gnu.org>
3321
3322 * minibuf.c (Fminibuffer_contents)
3323 (Fminibuffer_contents_no_properties)
3324 (Fminibuffer_completion_contents): Use EMACS_INT for minibuffer
3325 positions.
3326
3327 * keyboard.c (command_loop_1): Use EMACS_INT to compare point with
3328 mark.
3329
3330 * alloc.c (make_uninit_string, make_uninit_multibyte_string)
3331 (allocate_string_data): Accept EMACS_INT for string length.
3332
3333 * editfns.c (Ffield_string, Ffield_string_no_properties)
3334 (make_buffer_string, make_buffer_string_both, Fbuffer_substring)
3335 (Fbuffer_substring_no_properties, find_field, Fdelete_field)
3336 (Ffield_string, Ffield_string_no_properties, Ffield_beginning)
3337 (Ffield_end): Use EMACS_INT for buffer positions.
3338
3339 * insdel.c (prepare_to_modify_buffer): Use EMACS_INT to compare
3340 point with mark.
3341
3342 * lisp.h (allocate_string_data, make_uninit_string)
3343 (make_uninit_multibyte_string, make_buffer_string)
3344 (make_buffer_string_both): Adjust prototypes.
3345
4b9832a6
CY
33462010-09-22 Chong Yidong <cyd@stupidchicken.com>
3347
3348 * xml.c: Switch to GNU indentation.
3349 (make_dom): Change parse tree format to match xml.el.
3350 (Fxml_parse_html_string_internal): Rename from html-parse-string.
3351 (Fxml_parse_string_internal): Rename from xml-parse-string.
3352
86282aab
KH
33532010-09-22 Kenichi Handa <handa@m17n.org>
3354
3355 * xdisp.c (compute_stop_pos): Call composition_compute_stop_pos
3356 only if we are not at a composition.
3357 (set_iterator_to_next): Give it->end_charpos to
3358 composition_compute_stop_pos.
3359 (set_iterator_to_next, next_element_from_buffer): Likewise.
3360
3361 * dispnew.c (buffer_posn_from_coords): Fix position when the
3362 current display element is a grapheme cluster in bidi-reordered
3363 region.
3364
840b985a
AR
33652010-09-21 Ari Roponen <ari.roponen@gmail.com> (tiny change)
3366
3367 * doc.c (Fsnarf_documentation): Use memmove instead of memcpy as
3368 the regions may overlap.
3369
5bc88f4b
JB
33702010-09-21 Juanma Barranquero <lekktu@gmail.com>
3371
3372 * makefile.w32-in ($(BLD)/sysdep.$(O)): Update dependencies.
3373
92bc9a36
DN
33742010-09-21 Dan Nicolaescu <dann@ics.uci.edu>
3375
d19e096e
DN
3376 * emacs.c: Do not include sys/ioctl.h, not needed.
3377
92bc9a36
DN
3378 * doprnt.c: Do not include stdlib.h, config.h does it.
3379 Move #include before macro definition.
3380
15f844ac
DN
33812010-09-20 Dan Nicolaescu <dann@ics.uci.edu>
3382
48e24408
DN
3383 * Makefile.in (temacs): Link using $(CC) not $(LD).
3384 (LD_FIRSTFLAG): Define using autoconf.
3385 (LD): Remove.
3386
65539506
DN
3387 Remove HAVE_TERMIOS definitions.
3388 * s/usg5-4-common.h (HAVE_TERMIOS):
3389 * s/template.h (HAVE_TERMIOS):
3390 * s/gnu-linux.h (HAVE_TERMIOS):
3391 * s/darwin.h (HAVE_TERMIOS):
3392 * s/cygwin.h (HAVE_TERMIOS):
3393 * s/bsd-common.h (HAVE_TERMIOS):
3394 * s/aix4-2.h (HAVE_TERMIOS):
3395 * s/hpux10-20.h (HAVE_TERMIOS): Do not define, it is assumed
3396 defined on all non-MS platforms.
3397 (HAVE_PSTAT_GETDYNAMIC): Do not define, autoconf does it.
3398
15f844ac
DN
3399 * xterm.c (xt_action_hook): Use const.
3400
7d701334
JB
34012010-09-20 Juanma Barranquero <lekktu@gmail.com>
3402
3403 Don't make W32 code conditional on HAVE_SOCKETS, it's always defined.
3404 * w32.c: Remove top-level uses of #ifdef HAVE_SOCKETS.
3405 (gethostname) [!HAVE_SOCKETS]: Remove.
3406 (SOCK_REPLACE_HANDLE): Remove macro.
3407 (socket_to_fd, sys_close, _sys_read_ahead, sys_read, sys_write)
3408 (term_ntproc, init_ntproc): Don't conditionalize on HAVE_SOCKETS.
3409 * w32proc.c: Remove top-level uses of #ifdef HAVE_SOCKETS.
3410 (syms_of_ntproc): Don't conditionalize on HAVE_SOCKETS.
3411
f3ec267a
EZ
34122010-09-18 Eli Zaretskii <eliz@gnu.org>
3413
3414 * deps.mk (xml.o): Add dependencies.
3415
93acd23d
JB
3416 * xdisp.c (Fcurrent_bidi_paragraph_direction):
3417 Call bidi_paragraph_init with NO_DEFAULT_P non-zero. (Bug#7038)
bea4f10c
EZ
3418
3419 * bidi.c (bidi_paragraph_init): Accept an additional argument
3420 NO_DEFAULT_P; all callers changed. If NO_DEFAULT_P is non-zero,
3421 search back until a paragraph with a strong directional character
3422 is found, and use that to determine paragraph's base direction.
3423
3424 * dispextern.h (bidi_paragraph_init): Update prototype.
3425
69e847be
EZ
34262010-09-17 Eli Zaretskii <eliz@gnu.org>
3427
3428 * w32.c (_PROCESS_MEMORY_COUNTERS_EX): Don't define with versions
3429 of w32api >= 3.15. (Bug#6989)
3430
283357a7
LMI
34312010-09-17 Lars Magne Ingebrigtsen <larsi@gnus.org>
3432
3433 * process.c (wait_reading_process_output): Don't message about
3434 accept-process-output unless the time limit really is zero.
3435
4ddb20d6
SM
34362010-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
3437
3438 * frame.c (Ftool_bar_pixel_width): YAILOM (Yet another
3439 int/Lisp_Object mixup).
3440
e24ad6dd
J
34412010-09-17 Jan Djärv <jan.h.d@swipnet.se>
3442
3443 * keyboard.c (parse_tool_bar_item): For QClabel, set TOOL_BAR_ITEM_LABEL
3444 not HELP.
3445
fb0cf781
J
34462010-09-17 Stephen Berman <stephen.berman@gmx.net>
3447
3448 * frame.c (Ftool_bar_pixel_width): New function to expose tool
3449 bar's pixel width to Lisp (Bug#7048).
3450
4ddb20d6
SM
34512010-09-14 Juanma Barranquero <lekktu@gmail.com>
3452
3453 * cmds.c (syms_of_cmds) <post-self-insert-hook>: Fix typos in docstring.
fb0cf781 3454
318a04c6
J
34552010-09-17 Jan Djärv <jan.h.d@swipnet.se>
3456
3457 * gtkutil.c (xg_pack_tool_bar): Call gtk_handle_box_set_handle_position
3458 with argument top/left if tool bar is vertical/horizontal (Bug#7051).
3459
78a21772
KH
34602010-09-17 Kenichi Handa <handa@m17n.org>
3461
3462 * ftfont.c (ftfont_check_otf): Fix previous change.
3463
fa3f6039
KH
34642010-09-14 Kenichi Handa <handa@m17n.org>
3465
3466 * ftfont.c (ftfont_check_otf): Fix the case of checking just
3467 existence of GSUB or GPOS.
3468
2b5491fa
JB
34692010-09-14 Juanma Barranquero <lekktu@gmail.com>
3470
3471 * cmds.c (syms_of_cmds) <post-self-insert-hook>: Fix typos in docstring.
3472
c97c655f
LMI
34732010-09-14 Lars Magne Ingebrigtsen <larsi@gnus.org>
3474
ef1b0ba7 3475 * xml.c (parse_buffer): Rename to parse_string(), since that's
c97c655f
LMI
3476 what it does.
3477 (parse_string): Return nil when the document can't be parsed.
3478
6664fc59 34792010-09-14 Jan Djärv <jan.h.d@swipnet.se>
5f61a25c
J
3480
3481 * xterm.c (get_current_vm_state): New function.
3482 (do_ewmh_fullscreen): Call get_current_vm_state and compare with
3483 want_fullscreen so set_wm_state calls are few (Bug#7013).
3484 (x_handle_net_wm_state): Move code to get_current_vm_state and
3485 call that function.
3486
6664fc59 34872010-09-14 Courtney Bane <emacs-bugs-7626@cbane.org> (tiny change)
65b3d997
A
3488
3489 * term.c (tty_set_terminal_modes): Don't initialize twice (bug#7002).
3490
6664fc59 34912010-09-14 Kenichi Handa <handa@m17n.org>
a552b35a
KH
3492
3493 * coding.c (encode_coding_iso_2022): Don't optimize for ASCII if
3494 we may use designation or locking-shift.
3495
6664fc59 34962010-09-14 Kenichi Handa <handa@m17n.org>
396475b7
KH
3497
3498 * coding.c (detect_coding_emacs_mule): Fix checking of multibyte
3499 sequence when the source is multibyte.
3500
1da70e99
AS
35012010-09-14 Andreas Schwab <schwab@linux-m68k.org>
3502
6664fc59
JB
3503 * xml.c (Fxml_parse_string, Fxml_parse_string): Revert last change.
3504 Don't make first argument optional. Doc fix.
1da70e99 3505
26632d8d
LMI
35062010-09-14 Leo <sdl.web@gmail.com> (tiny change)
3507
3508 * xml.c (Fxml_parse_string, Fhtml_parse_string): Fix up the
3509 parameters for the doc string.
3510
21fa8e37
LMI
35112010-09-12 Lars Magne Ingebrigtsen <larsi@gnus.org>
3512
3513 * xml.c (Fhtml_parse_string, Fxml_parse_string): Mention BASE-URL.
3514
5616cc54
SM
35152010-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
3516
3517 * fns.c (Fy_or_n_p): Move to lisp/subr.el.
3518 (syms_of_fns): Don't defsubr Sy_or_n_p.
3519 * lisp.h: Don't declare Fy_or_n_p.
3520 * fileio.c (barf_or_query_if_file_exists): Fy_or_n_p -> y-or-n-p.
3521
381408e2
LMI
35222010-09-09 Lars Magne Ingebrigtsen <larsi@gnus.org>
3523
3524 * xml.c (Fxml_parse_buffer): New function to parse XML files.
3525
35262010-09-08 Lars Magne Ingebrigtsen <larsi@gnus.org>
3527
3528 * xml.c: New file.
3529 (Fhtml_parse_buffer): New function to interface to the libxml2
3530 html parsing function.
3531
733946e7
JB
35322010-09-05 Juanma Barranquero <lekktu@gmail.com>
3533
3534 * biditype.h: Regenerate.
3535
7574650a
AS
35362010-09-04 Andreas Schwab <schwab@linux-m68k.org>
3537
3538 * nsimage.m (ns_load_image): Check argument types.
3539
3540 * image.c: Remove all uses of gcpro.
3541 (xpm_load): Check all lisp types.
3542 (pbm_load): Likewise.
3543 (png_load): Likewise.
3544 (jpeg_load): Likewise.
3545 (tiff_load): Likewise.
3546 (gif_load): Likewise.
3547 (imagemagick_load_image): Likewise.
3548 (imagemagick_load): Likewise.
3549 (svg_load): Likewise.
3550 (gs_load): Likewise.
3551
6e6b8e25
EZ
35522010-09-04 Eli Zaretskii <eliz@gnu.org>
3553
bba3e508
SM
3554 * w32uniscribe.c (uniscribe_shape): Update commentary.
3555 Don't try to reorder grapheme clusters, since LGSTRING should always
6e6b8e25
EZ
3556 hold them in the logical order.
3557 (uniscribe_encode_char, uniscribe_shape): Force ScriptShape to
3558 return glyph codes in the logical order.
3559
dbfe4532
AS
35602010-09-04 Andreas Schwab <schwab@linux-m68k.org>
3561
3562 * image.c (imagemagick_image_p): Replace bcopy by memcpy.
b7d187f8 3563 (imagemagick_load_image): Fix type mismatch.
5e5992c2 3564 (Fimagemagick_types): Likewise. Doc fix.
dbfe4532 3565
6d7cc563
JD
35662010-09-02 Jan Djärv <jan.h.d@swipnet.se>
3567
3568 * xterm.h (struct dpyinfo): Remove cut_buffers_initialized.
3569
3570 * xterm.c (x_term_init): Don't set dpyinfo->cut_buffers_initialized.
3571
3572 * xselect.c: Remove declaration of cut-buffer objects and functions.
3573 (symbol_to_x_atom): Remove mapping to XA_CUT_BUFFERn.
3574 (x_atom_to_symbol): Remove mapping to QCUT_BUFFERn.
3575 (Fx_get_cut_buffer_internal, Fx_store_cut_buffer_internal)
3576 (Fx_rotate_cut_buffers_internal): Remove.
3577 (syms_of_xselect): Remove defsubr of above.
3578 Remove intern of QCUT_BUFFERn.
3579
8f4e9110
SM
35802010-09-01 Stefan Monnier <monnier@iro.umontreal.ca>
3581
3582 * cmds.c (Vblink_paren_function): Remove.
3583 (internal_self_insert): Make it insert N chars at a time.
3584 Don't call blink-paren-function.
3585 (Fself_insert_command): Adjust accordingly.
3586 (syms_of_cmds): Don't declare blink-paren-function.
3587
d419e1d9
KH
35882010-08-31 Kenichi Handa <handa@m17n.org>
3589
3590 * dispextern.h (FACE_FOR_CHAR): Use an ASCII face for 8-bit
3591 characters.
3592
3593 * term.c (encode_terminal_code): Fix the previous change.
5616cc54
SM
3594 (produce_glyphs): Don't set it->char_to_display here.
3595 Don't handle unibyte-display-via-language-environment here.
d419e1d9
KH
3596 (produce_special_glyphs): Set temp_it.char_to_display before
3597 calling produce_glyphs.
3598
3599 * xdisp.c (get_next_display_element): Set it->char_to_display
3600 here. Convert all 8-bit bytes from unibyte buffer/string to 8-bit
3601 characters.
3602 (get_overlay_arrow_glyph_row): Set it.char_to_display too before
3603 calling PRODUCE_GLYPHS.
3604 (append_space_for_newline): Save and store it->char_to_display.
3605 Set it->char_to_display before calling PRODUCE_GLYPHS.
3606 (extend_face_to_end_of_line): Set it->char_to_display before
3607 calling PRODUCE_GLYPHS.
3608 (get_glyph_face_and_encoding): Set the glyph code an 8-bit
3609 character to its byte value.
3610 (get_char_glyph_code): New function.
3611 (produce_stretch_glyph): Set it2.char_to_display too before
3612 calling x_produce_glyphs.
3613 (x_produce_glyphs): Simplify by using the same code for ASCII and
65b3d997
A
3614 non-ASCII characters. Don't set it->char_to_display here.
3615 Don't handle unibyte-display-via-language-environment here. For a
2b5491fa 3616 character of no glyph, use font->space_width instead of FONT_WIDTH.
d419e1d9 3617
b819f760
SM
36182010-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
3619
3620 * keyboard.c (Fwindow_system): Fix compilation for USE_LISP_UNION_TYPE.
3621
07fa68a7
CY
36222010-08-31 Chong Yidong <cyd@stupidchicken.com>
3623
3624 * keyboard.c (command_loop_1): Don't call x-set-selection on tty.
3625
cd196f12
SM
36262010-08-30 Stefan Monnier <monnier@iro.umontreal.ca>
3627
3628 * marker.c (Fcopy_marker): Make the first arg optional.
3629
49a752bb
KH
36302010-08-30 Kenichi Handa <handa@m17n.org>
3631
3632 * composite.c (composition_update_it): Fix computing of
3633 cmp_it->width.
3634
769ae9e1
KH
36352010-08-29 Kenichi Handa <handa@m17n.org>
3636
9e69cb05 3637 * term.c (encode_terminal_code): Encode byte chars to the
5616cc54 3638 corresponding bytes.
9e69cb05 3639
4520b858
J
36402010-08-29 Jan Djärv <jan.h.d@swipnet.se>
3641
3642 * nsterm.m (ns_draw_window_cursor): Draw BAR_CURSOR correct for R2L.
3643
fe50eb41
KH
36442010-08-26 Kenichi Handa <handa@m17n.org>
3645
3646 * xdisp.c (compute_stop_pos): Pay attention to bidi scan direction
3647 on calling composition_compute_stop_pos.
3648
f6aa6ec6
KH
36492010-08-25 Kenichi Handa <handa@m17n.org>
3650
9dfdbc0a
KH
3651 * fontset.c (reorder_font_vector): Prefer a font-spec specifying
3652 :otf.
3653
f6aa6ec6
KH
3654 * composite.c (composition_compute_stop_pos): Don't break
3655 composition at PT.
3656 (composition_reseat_it): Likewise. Fix calculation of character
3657 position starting a composition.
3658 (Fcomposition_get_gstring): Don't limit the number of components
3659 for automatic composition.
3660
ff94e32c
KH
36612010-08-25 Kenichi Handa <handa@m17n.org>
3662
3663 * composite.c (composition_compute_stop_pos): In forward search,
3664 pay attention to the possibility that some character after ENDPOS
3665 will be composed with charactrs before ENDPOS.
3666
1c409d0b
CY
36672010-08-24 Chong Yidong <cyd@stupidchicken.com>
3668
3669 * keyboard.c (command_loop_1): Don't clobber primary selection
3670 during handle-switch-frame (Bug#6872).
3671
0c372655
MA
36722010-08-23 Michael Albinus <michael.albinus@gmx.de>
3673
3674 * dbusbind.c: Accept UNIX domain sockets as bus address.
3675 (Fdbus_close_bus): New function.
3676 (Vdbus_registered_buses): New variable.
3677 (xd_initialize): Implement string as bus address.
3678 (Fdbus_init_bus): Add bus to Vdbus_registered_buses).
3679 (Fdbus_get_unique_name, Fdbus_call_method)
3680 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
3681 (Fdbus_method_error_internal, Fdbus_send_signal)
3682 (Fdbus_register_signal, Fdbus_register_method): Remove bus type
3683 check. This is done in xd_initialize_bus. Adapt doc string, if
3684 necessary.
3685 (xd_pending_messages, xd_read_queued_messages): Loop over buses in
3686 Vdbus_registered_buses.
3687 (Vdbus_registered_objects_table): Create hash.
3688
7133b7ee
JL
36892010-08-22 Juri Linkov <juri@jurta.org>
3690
3691 * keyboard.c (Fexecute_extended_command): Move reading a command name
3692 with `completing-read' to a new Elisp function `read-extended-command'.
3693 Call it to read a command to `function' (bug#5364, bug#5214).
3694
198a7a97
CY
36952010-08-22 Chong Yidong <cyd@stupidchicken.com>
3696
3697 * emacs.c (main): Remove handling of --unibyte arg (Bug#6886).
3698
b0126eac 36992010-08-22 Andreas Schwab <schwab@linux-m68k.org>
b72e0717
AS
3700
3701 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA_LISP
3702 instead of SAFE_ALLOCA.
3703
b0126eac 37042010-08-22 Chong Yidong <cyd@stupidchicken.com>
3a7a9129
CY
3705
3706 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA
3707 (Bug#6214).
3708
b0126eac 37092010-08-22 Jan Djärv <jan.h.d@swipnet.se>
983b8302
J
3710
3711 * doc.c (Fsnarf_documentation): Set skip_file only if p[1] is S.
3712
b0126eac
CY
37132010-08-22 Jan Djärv <jan.h.d@swipnet.se>
3714
3715 * doc.c (Fsnarf_documentation): Initialize skip_file before
3716 build-files test.
3717
692f3ddc 37182010-08-22 Peter O'Gorman <pogma@thewrittenword.com> (tiny change)
b0126eac 3719
692f3ddc
JB
3720 * s/hpux10-20.h (HAVE_TERMIOS, NO_TERMIO, ORDINARY_LINK):
3721 New definitions.
b0126eac
CY
3722 (HAVE_TERMIO): Remove.
3723
5f2f0bc1
EZ
37242010-08-22 Eli Zaretskii <eliz@gnu.org>
3725
b613941b
EZ
3726 * deps.mk (sysdep.o, msdos.o): Depend on sysselect.h.
3727
a583bbef
EZ
3728 * sysselect.h [WINDOWSNT]: Don't define the FD_* and select stuff
3729 for w32.
3730
3731 * s/ms-w32.h (HAVE_SYS_TIMEB_H): Don't #undef HAVE_SYS_SELECT_H,
3732 it's done in nt/config.nt.
3733
3734 * makefile.w32-in ($(BLD)/sysdep.$(O)): Depend on sysselect.h.
3735
5f2f0bc1
EZ
3736 * unexcoff.c (report_error, make_hdr, write_segment)
3737 (copy_text_and_data, copy_sym, mark_x, adjust_lnnoptrs, unexec):
3738 Convert argument lists and prototypes to ANSI C.
3739 (make_hdr, write_segment): Remove unused variables.
3740 (unexec): Remove commented-out line. Initialize `new' to shut up
3741 compiler warnings.
3742
a7ebc409
DN
37432010-08-22 Dan Nicolaescu <dann@ics.uci.edu>
3744
3745 Simplify termio code.
3746 All non-MSDOS non-WINDOWSNT platforms define HAVE_TERMIOS, so
3747 HAVE_TERMIO code is obsolete.
3748 Replace HAVE_TERMIOS conditionals with !DOS_NT.
3749 * systty.h: Do not define HAVE_TCATTR.
3750 Remove HAVE_TERMIO, HAVE_LTCHARS and HAVE_TCHARS code.
3751 Do not define EMACS_HAVE_TTY_PGRP. Only define
3752 EMACS_GET_TTY_PGRP for !DOS_NT.
3753 * sysdep.c: Include sysselect.h unconditionally. Do not include
bba3e508
SM
3754 sys/ioctl.h and termios.h, systty.h does it.
3755 Use HAVE_SYS_UTSNAME_H instead of USG as an include guard.
a7ebc409
DN
3756 (init_baud_rate): Remove HAVE_TERMIO code.
3757 (child_setup_tty): Remove HAVE_TERMIO code.
3758 (emacs_get_tty, emacs_set_tty): Remove HAVE_TERMIO, HAVE_TCHARS
3759 and HAVE_LTCHARS code. Use !DOS_NT instead of HAVE_TCATTR.
3760 (new_ltchars, new_tchars): Remove, unused.
3761 (init_sys_modes): Remove HAVE_TERMIO, HAVE_TCHARS and HAVE_LTCHARS
bba3e508
SM
3762 code. Remove special casing for __mips__, it was a no-op.
3763 Remove HAVE_TCATTR conditional, it is implied by HAVE_TERMIOS.
a7ebc409
DN
3764 (init_sys_modes): Remove HPUX special case.
3765 * process.c: Include stdlib.h unconditionally. Do not include
3766 fcntl.h, systty.h does it. Remove conditional code for
3767 HAVE_SERIAL, it is always true.
3768 (process_send_signal): Remove HAVE_TERMIOS conditional, it's
3769 always true when SIGNALS_VIA_CHARACTERS is true.
3770 (Fcontinue_process, Fprocess_send_eof): Simplify conditionals:
3771 !WINDOWSNT means HAVE_TERMIOS.
3772 (create_process): Remove HAVE_TERMIOS, it's inside a HAVE_PTYS
3773 conditional, which is true for all HAVE_TERMIOS systems.
3774 * keyboard.c (init_keyboard): Do not use HAVE_TERMIO, use !DOS_NT
3775 instead of HAVE_TERMIOS.
3776 * emacs.c (shut_down_emacs): Use !defined DOS_NT instead of
3777 EMACS_HAVE_TTY_PGRP.
3778 * callproc.c (child_setup): Move EMACS_SET_TTY_PGRP use to the
3779 non-MSDOS, non-WINDOWSNT code, it's only defined for such systems
3780 anyway.
3781
914f049b 37822010-08-21 Eli Zaretskii <eliz@gnu.org>
40629f17
EZ
3783
3784 * dispnew.c (buffer_posn_from_coords): Fix off-by-one error in
3785 mirroring pixel positions.
3786
d931da8c
DN
37872010-08-20 Dan Nicolaescu <dann@ics.uci.edu>
3788
b5c76d0c
DN
3789 * alloc.c (malloc_sbrk_used, malloc_sbrk_unused): Remove,
3790 write only.
3791 (init_alloc_once): Remove writes to malloc_sbrk_unused, and
3792 malloc_sbrk_used, nothing uses them.
3793
74815588
DN
3794 * puresize.h: Remove code assuming PNTR_COMPARISON_TYPE is not
3795 defined, unconditionally defined in lisp.h.
3796
f5817d1c
DN
3797 * term.c: Do not include <termios.h>, systty.h does it.
3798
d931da8c
DN
3799 * s/unixware.h (HAVE_TCATTR):
3800 * s/aix4-2.h (HAVE_TCATTR): Remove definitions, not needed.
3801 systty.h defines it when HAVE_TERMIOS is defined.
3802
ff2de6d2 38032010-08-20 Eli Zaretskii <eliz@gnu.org>
491a1546 3804
b43c883c 3805 * dispnew.c (buffer_posn_from_coords): Fix last change for text
00c53994 3806 terminals: add one-character offset for R2L lines.
b43c883c 3807
491a1546
EZ
3808 * emacs.c <emacs_version>: Add a comment regarding
3809 msdos/mainmake.v2's dependency on the syntax of this declaration.
3810
2396cbba
EZ
38112010-08-20 Eli Zaretskii <eliz@gnu.org>
3812
3813 * dispnew.c (buffer_posn_from_coords): Fix calculation of buffer
3814 position for R2L lines by mirroring the pixel position wrt the
3815 text are box. Improve commentary.
3816
7df6150a
AS
38172010-08-20 Andreas Schwab <schwab@linux-m68k.org>
3818
3819 * image.c (imagemagick_clear_image): Remove debugging output.
3820
a2e5caf7
SM
38212010-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
3822
3823 * cmds.c (Vself_insert_face, Vself_insert_face_command): Remove.
3824 (Qpost_self_insert_hook, Vpost_self_insert_hook): New vars.
3825 (internal_self_insert): Run Qpost_self_insert_hook rather than handle
3826 self-insert-face.
3827 (syms_of_cmds): Initialize the new vars.
3828
20d60baf
JR
38292010-08-19 Jason Rumney <jasonr@gnu.org>
3830
cc477da7
JR
3831 * w32menu.c (set_frame_menubar): Remove call to undefined function.
3832
20d60baf
JR
3833 * w32fns.c (w32_wnd_proc): Don't check context before initializing.
3834
2c0ac867
J
38352010-08-19 Jan Djärv <jan.h.d@swipnet.se>
3836
3837 * nsselect.m (nxatoms_of_nsselect): Use "Selection" and "Secondary".
3838
93352106
EZ
38392010-08-18 Eli Zaretskii <eliz@gnu.org>
3840
3841 * xterm.c (x_draw_bar_cursor):
3842 * w32term.c (x_draw_bar_cursor): If the character under cursor is
3843 R2L, draw the bar cursor on its right rather than on its left.
3844
c785836d
SM
38452010-08-18 Stefan Monnier <monnier@iro.umontreal.ca>
3846
0193499f
SM
3847 * eval.c (Fdefmacro): Only obey one declaration.
3848
c785836d
SM
3849 * casefiddle.c (casify_region): Setup gl_state.
3850
9cb728a5
J
38512010-08-18 Jan Djärv <jan.h.d@swipnet.se>
3852
3853 * nsterm.m (ns_define_frame_cursor): Call x_update_cursor (Bug#6868).
3854
e1e18511
J
38552010-08-18 Jan Djärv <jan.h.d@swipnet.se>
3856
1d77b63e 3857 * gtkutil.c (update_frame_tool_bar): Literal strings are const char*.
e1e18511 3858
64cb6c78
J
38592010-08-18 David De La Harpe Golden <david@harpegolden.net>
3860
3861 * nsselect.m (QCLIPBOARD, NXPrimaryPboard): Define.
3862 (symbol_to_nsstring): Map QCLIPBOARD => NSGeneralPboard,
3863 QPRIMARY => NXPrimaryPboard.
3864 (ns_string_to_symbol): NSGeneralPboard => QCLIPBOARD,
3865 NXPrimaryPboard => QPRIMARY.
3866 (nxatoms_of_nsselect): NXPrimaryPboard = PrimarySelection,
3867 NXSecondaryPboard = SecondarySelection.
3868 (syms_of_nsselect): Intern QCLIPBOARD (Bug#6677).
3869
0c9b8993
GM
38702010-08-18 Joakim Verona <joakim@verona.se>
3871
3872 * image.c: Add support for ImageMagick. When HAVE_IMAGEMAGICK is
3873 defined:
3874 (imagemagick_image_p): New function to test for ImageMagic image.
3875 (imagemagick_load): New function to load ImageMagick image.
3876 (imagemagick_load_image): New function, helper for imagemagick_load.
3877 (imagemagick-types): New function.
3878 (Qimagemagick): New Lisp_object.
3879 (imagemagick-render-type): New variable, decides which renderer to use.
ccd80618 3880
c3554f68
SM
38812010-08-17 Stefan Monnier <monnier@iro.umontreal.ca>
3882
3883 * gtkutil.c (update_frame_tool_bar): Don't assume TOOL_BAR_ITEM_LABEL
3884 is a string.
3885
1ff2e434
J
38862010-08-17 Jan Djärv <jan.h.d@swipnet.se>
3887
3888 * nsfns.m (ns_frame_parm_handlers): Add a slot for the
3889 x_set_tool_bar_position handler.
3890
0cc56427
EZ
38912010-08-17 Eli Zaretskii <eliz@gnu.org>
3892
3893 * w32fns.c <w32_frame_parm_handlers>: Add a slot for the
3894 x_set_tool_bar_position handler, needed to support changes from
3895 2010-07-29T16:49:59Z!jan.h.d@swipnet.se for positioning the tool bar. (Bug#6796)
3896
e45a249b
JD
38972010-08-16 Jan Djärv <jan.h.d@swipnet.se>
3898
921242c6
J
3899 * nsselect.m: include keyboard.h for QPRIMARY, remove its
3900 declaration (Bug#6863).
573d150b 3901 (syms_of_nsselect): Don't intern QPRIMARY.
921242c6 3902
e45a249b
JD
3903 * xselect.c: Remove declaration of QPRIMARY (Bug#6864).
3904
3905 * keyboard.h (QPRIMARY): Declare (Bug#6864).
3906
7c23dd44
CY
39072010-08-16 Chong Yidong <cyd@stupidchicken.com>
3908
3909 * keyboard.c (command_loop_1): Avoid setting selection twice,
3910 since it's done in deactivate-mark as well.
3911 (Vselect_active_regions): Change default to t. Replace `lazy'
3912 with non-default value `only', meaning only set PRIMARY for
3913 temporarily active regions.
3914
3915 * insdel.c (prepare_to_modify_buffer): Handle `only' value of
3916 select-active-regions.
3917
0005830c
J
39182010-08-15 Jan Djärv <jan.h.d@swipnet.se>
3919
3920 * keyboard.c (parse_tool_bar_item): Put in a bad label if :label
3921 isn't a string.
3922
603dfc72
AS
39232010-08-15 Andreas Schwab <schwab@linux-m68k.org>
3924
3925 * keyboard.c (parse_tool_bar_item): Avoid excessive use of strlen.
3926
c25ce9d0
J
39272010-08-15 Jan Djärv <jan.h.d@swipnet.se>
3928
c3554f68
SM
3929 * keyboard.c (parse_tool_bar_item): malloc buf.
3930 Set TOOL_BAR_ITEM_LABEL to empty string if not set to
3931 new_lbl (Bug#6855).
c25ce9d0 3932
5872c762
EZ
39332010-08-14 Eli Zaretskii <eliz@gnu.org>
3934
b236615c
EZ
3935 * xterm.c (x_draw_stretch_glyph_string):
3936 * w32term.c (x_draw_stretch_glyph_string): In R2L rows, display
3937 the cursor on the right edge of the stretch glyph.
3938
c3554f68
SM
3939 * xdisp.c (window_box_right_offset, window_box_right):
3940 Fix commentary.
b236615c 3941
5872c762
EZ
3942 * xdisp.c (Fcurrent_bidi_paragraph_direction): Fix paragraph
3943 direction when point is inside a run of whitespace characters.
3944
3945 * bidi.c (bidi_at_paragraph_end): Remove obsolete comment.
3946
e66f9a1b
JR
39472010-08-14 Jason Rumney <jasonr@gnu.org>
3948
3949 * keyboard.c (lispy_function_keys): Do not define VK_PACKET (bug#4836)
3950
79d6f59e
CY
39512010-08-14 Chong Yidong <cyd@stupidchicken.com>
3952
3953 * fns.c (Fmake_hash_table): Doc fix (Bug#6851).
3954
1c9b4129
JR
39552010-08-13 Jason Rumney <jasonr@gnu.org>
3956
3957 * w32menu.c (simple_dialog_show): Use unicode message box if available.
3958 (MessageBoxW_Proc): New function typedef.
3959 (unicode-message-box): New function pointer.
3960 (globals_of_w32menu): Import it from user32.dll. (Bug#5629)
3961
2b4e6277
J
39622010-08-13 Jan Djärv <jan.h.d@swipnet.se>
3963
3964 * frame.h (Qtool_bar_position): Declare.
3965
3966 * xfns.c (Fx_create_frame): Call x_default_parameter for
3967 Qtool_bar_position.
3968
94c97d85
EZ
39692010-08-13 Eli Zaretskii <eliz@gnu.org>
3970
8ee81892
EZ
3971 * unexcoff.c: Remove the parts used when "emacs" is not defined.
3972 (report_error, report_error_1): Ditto.
3973 (write_segment): Remove "#if 0" unused code.
3974 (make_hdr): Remove code that was "#ifndef NO_REMAP" before
3975 NO_REMAP was removed (in 2010-07-29T03:25:08Z!dann@ics.uci.edu).
3976 (start_of_text): Remove unused function (was used only if NO_REMAP
3977 was NOT defined).
3978
891ef8f7
EZ
3979 * msdos.c (IT_set_face): Fix format string to match argument
3980 types.
3981 (IT_write_glyphs, IT_note_mode_line_highlight)
3982 (IT_set_frame_parameters): Remove unused variables.
3983 (x_set_menu_bar_lines): Declare set_menu_bar_lines.
3984 (IT_set_terminal_modes): Disambiguate expression in if clause.
3985 (Fmsdos_remember_default_colors): Return Qnil.
3986 (IT_set_frame_parameters): Add parens to disambiguate boolean
3987 expression for logging the cursor type to termscript.
3988 (keyboard_layout_list, keypad_translate_map)
3989 (grey_key_translate_map): Add braces in inner initializers.
3990 (dos_rawgetc): Add parens in condition for mouse-3 button-press.
3991 (dos_rawgetc): Remove unused label.
3992 (XMenuActivate): Add braces to remove ambiguous `else'.
3993 (dos_ttraw): Always return a value.
3994 (spawnve): Declare.
3995 (run_msdos_command): Cast 3rd arg of spawnve to "char **".
3996
3997 * dosfns.h (x_set_title): Declare.
3998
3999 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
4000 Remove unused variables.
4001
4002 * dosfns.c (Fint86, Fdos_memget, Fdos_memput): Remove unused
4003 variables.
4004 (init_dosfns): Declare get_lim_data.
4005 (system_process_attributes): Declare Fget_internal_run_time.
4006
38e41e0e
EZ
4007 * xmenu.c (xmenu_show) [!USE_X_TOOLKIT && !USE_GTK]: Fix argument
4008 list to be consistent with menu.h.
4009
94c97d85
EZ
4010 * w32menu.c (add_menu_item, name_is_separator): Shut up compiler
4011 warnings due to mixing of "char *" and "const char *".
4012
c5683ceb
SM
40132010-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
4014
4015 Introduce a new comment style "c" flag.
4016 * syntax.c (SYNTAX_FLAGS_COMMENT_STYLEB)
4017 (SYNTAX_FLAGS_COMMENT_STYLEC): New macros.
4018 (SYNTAX_FLAGS_COMMENT_STYLE): Use them, add an argument.
4019 (syntax_prefix_flag_p): New function.
4020 (Fstring_to_syntax): Understand new "c" flag.
4021 (Finternal_describe_syntax_value): Recognize new flag; use the
4022 SYNTAX_FLAGS_* macros.
4023 (scan_sexps_forward, Fparse_partial_sexp): Change representation of
4024 comment style to accomodate the new styles.
4025 (back_comment, forw_comment, Fforward_comment, scan_lists)
4026 (scan_sexps_forward): Update code to obey the new comment style flag.
4027
4028 * syntax.h: Move SYNTAX_FLAGS_FOO() macros to syntax.c.
4029
4030 * casefiddle.c (casify_region): Use the new syntax_prefix_flag_p.
4031
7aee76f4
J
40322010-08-11 Jan Djärv <jan.h.d@swipnet.se>
4033
3a46642b
J
4034 * xfns.c (x_defined_color): If USE_GTK, call xg_check_special_colors
4035 first.
94dff98f 4036 (Fx_hide_tip): Check FRAME_LIVE_P (f) before calling xg_hide_tooltip.
3a46642b
J
4037
4038 * gtkutil.h (xg_check_special_colors): Declare.
4039
4040 * gtkutil.c (xg_check_special_colors, style_changed_cb): New functions.
4041 (xg_create_frame_widgets): Connect theme name changes to
4042 style_changed_cb.
4043
42ca4633
J
4044 * xterm.c (emacs_class): New char[] for EMACS_CLASS.
4045 (xim_open_dpy, xim_initialize, xim_close_dpy): Use emacs_class.
4046 (x_term_init): Use char[] display_opt and name_opt instead of
93acd23d 4047 string literal. file is const char*.
42ca4633
J
4048
4049 * xsmfns.c (NOSPLASH_OPT): Change to char[].
4050 (smc_save_yourself_CB): Do xstrdup on all ->type and ->name for
4051 props. Free them at the end.
4052
4053 * xselect.c (Fx_get_atom_name): Use char empty[] instead of literal "".
4054
c5683ceb
SM
4055 * xrdb.c (get_system_app): Make path const and use char *p for
4056 non-const char.
42ca4633
J
4057
4058 * xmenu.c (Fx_popup_dialog): error_name is const char*.
93acd23d 4059 (xmenu_show): error parameter is const char **. pane_string is const
42ca4633
J
4060 char *.
4061 (button_names): Is const char *.
4062 (xdialog_show): error_name and pane_string is const.
4063
4064 * process.h (synch_process_death): Is const char*.
4065
4066 * w32menu.c (w32_menu_show):
4067 * nsmenu.m (ns_menu_show): error parameter is const char **.
4068
4069 * menu.h (w32_menu_show, ns_menu_show, xmenu_show): error parameter
4070 is const char **.
4071
4072 * menu.c (Fx_popup_menu): error_name is const.
4073
4074 * keyboard.h (_widget_value): Add defined USE_GTK. Replace Boolean
4075 with unsigned char and XtPointer with void *.
4076
4077 * gtkutil.h: Replace widget_value with struct _widget_value.
4078 (enum button_type, struct _widget_value): Remove and use the one from
4079 keyboard.h.
4080
4081 * gtkutil.c (get_utf8_string): Always return an allocated string.
4082 Parameter is const.
4083 (create_dialog, xg_create_one_menuitem, create_menus)
4084 (xg_item_label_same_p, xg_update_menu_item): Free result from
4085 get_utf8_string.
4086 (xg_separator_p, xg_item_label_same_p): label is const.
4087
4088 * font.h (font_open_by_name): Make name const.
4089
4090 * font.c (font_open_by_name): Make name const.
4091
4092 * floatfns.c (matherr): Use a const char* variable for x->name.
4093
4094 * emacs.c (main): Pass char[] to putenv instead of literal.
4095
4096 * callproc.c (synch_process_death): Make const.
4097 (Fcall_process): Make signame const.
4098
9c5bd55a
J
4099 * nsterm.h (parseKeyEquiv, addSubmenuWithTitle)
4100 (addDisplayItemWithImage): Use const char*.
4101
4102 * nsmenu.m (parseKeyEquiv, addSubmenuWithTitle)
4103 (addDisplayItemWithImage, update_frame_tool_bar): Use const char*.
4104
4105 * nsfont.m (ns_descriptor_to_entity): Use const char*.
4106
4107 * keyboard.h (_widget_value): name, value and key are const char*.
4108
7aee76f4
J
4109 * unexmacosx.c (unexec_error): Use const char *.
4110
09d93395
DN
41112010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
4112
4113 * font.h (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
c5683ceb 4114 (font_parse_name, font_open_by_name):
09d93395 4115 * font.c (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
c5683ceb 4116 (font_parse_name, font_open_by_name): Remove const.
09d93395 4117
671d409f
AS
41182010-08-09 Andreas Schwab <schwab@linux-m68k.org>
4119
4120 Use autoconf determined WORDS_BIGENDIAN instead of hardcoded
4121 definition.
4122
4123 * m/alpha.h: Don't define/undef WORDS_BIG_ENDIAN.
4124 * m/amdx86-64.h: Likewise.
4125 * m/arm.h: Likewise.
4126 * m/hp800.h: Likewise.
4127 * m/ia64.h: Likewise.
4128 * m/ibmrs6000.h: Likewise.
4129 * m/ibms390.h: Likewise.
4130 * m/intel386.h: Likewise.
4131 * m/iris4d.h: Likewise.
4132 * m/m68k.h: Likewise.
4133 * m/macppc.h: Likewise.
4134 * m/mips.h: Likewise.
4135 * m/sh3.h: Likewise.
4136 * m/sparc.h: Likewise.
4137 * m/template.h: Likewise.
4138 * m/vax.h: Likewise.
4139 * m/xtensa.h: Likewise.
4140 * fringe.c (init_fringe_bitmap): Test WORDS_BIGENDIAN instead of
4141 WORDS_BIG_ENDIAN.
4142 * lisp.h: Likewise.
4143 * md5.c: Likewise.
4144 * sound.c (le2hl, le2hs, be2hl, be2hs): Likewise.
4145
8ea90aa3
DN
41462010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
4147
4148 Use const char* instead of char*.
4149 Reduce the number of warnings with -Wwrite-strings.
4150 * xrdb.c (get_environ_db, get_system_name):
4151 * unexelf.c (find_section):
4152 * term.c (string_cost, string_cost_one_line, per_line_cost)
4153 (get_named_tty, init_tty):
4154 * sysdep.c (sys_subshell):
4155 * sound.c (sound_perror, sound_warning, vox_open, vox_init)
4156 (alsa_sound_perror, alsa_open, alsa_configure, alsa_init):
4157 * search.c (Freplace_match):
4158 * process.c (Fmake_network_process, send_process, init_process):
4159 * lread.c (Fload, init_lread):
4160 * keymap.c (Fdescribe_buffer_bindings, describe_map_tree):
4161 * keyboard.c (parse_tool_bar_item, struct event_head):
4162 * gtkutil.h (xg_get_font_name):
4163 * gtkutil.c (get_dialog_title, create_dialog, xg_get_font_name)
4164 (make_widget_for_menu_item, make_menu_item, create_menus)
4165 (xg_make_tool_item):
4166 * font.c (parse_matrix, font_parse_name):
4167 * floatfns.c (rounding_driver, float_error_fn_name):
4168 * filelock.c (get_boot_time_1, lock_file_1):
4169 * fileio.c (barf_or_query_if_file_exists, check_writable):
4170 * editfns.c (get_system_name, get_operating_system_release)
4171 (Fencode_time, Fset_time_zone_rule):
4172 * dispextern.h (string_cost, per_line_cost, get_named_tty, init_tty):
4173 * buffer.c (defvar_per_buffer): Use const.
4174
7815fe19 41752010-08-08 Kenichi Handa <handa@m17n.org>
7a84eee5 4176
692f3ddc 4177 * charset.c: Include <stdlib.h>.
7a84eee5
KH
4178 (struct charset_sort_data): New struct.
4179 (charset_compare): New function.
692f3ddc 4180 (Fsort_charsets): New function.
7a84eee5
KH
4181 (syms_of_charset): Declare Fsort_charsets as a Lisp function.
4182
4183 * coding.c (decode_coding_iso_2022): Fix checking of dimension
4184 number in CTEXT extended segment.
4185
7815fe19 41862010-08-08 Juanma Barranquero <lekktu@gmail.com>
f5f6c0e0
JB
4187
4188 * w32fns.c (syms_of_w32fns) <x-max-tooltip-size>: Fix typo in docstring.
4189 * xfns.c (syms_of_xfns) <x-max-tooltip-size>: Reflow docstring.
4190
7815fe19 41912010-08-08 Juanma Barranquero <lekktu@gmail.com>
b756c005
JB
4192
4193 * fns.c (Fsubstring_no_properties, Fnthcdr, Ffeaturep)
4194 (Fhash_table_size): Fix typos in docstrings.
4195 (Fmake_hash_table): Doc fix.
4196
7815fe19 41972010-08-08 Juanma Barranquero <lekktu@gmail.com>
b4f588fa
JB
4198
4199 * minibuf.c (syms_of_minibuf) <read-buffer-function>:
4200 Doc fix (bug#5625).
4201
7815fe19 42022010-08-08 Ken Brown <kbrown@cornell.edu>
9f8c08a7
KB
4203
4204 * dired.c (DIRENTRY_NONEMPTY) [cygwin]: Use d_ino instead of
4205 the MSDOS definition.
4206
1b6d8cf0
DN
42072010-08-08 Dan Nicolaescu <dann@ics.uci.edu>
4208
675e2c69
DN
4209 Use const char* instead of char*.
4210 * xterm.c (x_create_toolkit_scroll_bar):
4211 * xfont.c (xfont_list_pattern):
4212 * xfns.c (x_default_scroll_bar_color_parameter)
4213 (xic_create_fontsetname, x_default_font_parameter)
4214 (x_screen_planes):
4215 * xdisp.c (c_string_pos, number_of_chars, reseat_to_string)
4216 (store_mode_line_string, decode_mode_spec, display_string):
4217 * menu.c (digest_single_submenu):
4218 * keymap.h (initial_define_key, initial_define_lispy_key):
4219 * keymap.c (initial_define_key, initial_define_lispy_key):
4220 * image.c (image_error, image_keyword):
4221 * gtkutil.h (xg_create_widget, xg_create_scroll_bar):
4222 * gtkutil.c (xg_create_widget, xg_create_scroll_bar):
4223 * ftfont.c (struct fc_charset_table, ftfont_spec_pattern)
4224 (ftfont_list, ftfont_match):
4225 * frame.c (frame_parm_table):
4226 * font.h (font_intern_prop, font_parse_xlfd, font_parse_fcname)
4227 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
4228 (font_add_log, font_deferred_log):
4229 * font.c (font_intern_prop, font_parse_xlfd, font_parse_fcname)
4230 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
4231 (font_add_log, font_deferred_log):
4232 * emacs.c (argmatch):
4233 * dispextern.h (struct it):
4234 * coding.c (ENCODE_DESIGNATION):
4235 * charset.c (define_charset_internal): Use const.
4236
25717ca1
DN
4237 * s/freebsd.h (DECLARE_GETPWUID_WITH_UID_T): Remove, unused.
4238
c5683ceb
SM
4239 * xrdb.c: Remove include guard.
4240 Remove DECLARE_GETPWUID_WITH_UID_T conditional it had no effect.
1b6d8cf0
DN
4241 Remove #if 0 code. Replace malloc->xmalloc, free->xfree,
4242 realloc->xrealloc instead of using #defines.
4243
efb41e21
EZ
42442010-08-08 Eli Zaretskii <eliz@gnu.org>
4245
cd21226d 4246 * cmds.c (Fforward_line, Fbeginning_of_line, Fend_of_line):
c5683ceb
SM
4247 * editfns.c (Fline_beginning_position, Fline_end_position):
4248 State in the doc strings that start and end of line are in the
4249 logical order.
cd21226d 4250
efb41e21
EZ
4251 * xdisp.c (display_line): Move the handling of overlay arrow after
4252 the call to find_row_edges. (Bug#6699)
4253
746812d9
CY
42542010-08-07 Chong Yidong <cyd@stupidchicken.com>
4255
4256 * keyboard.c (command_loop_1):
4257 * insdel.c (prepare_to_modify_buffer): Don't call validate_region.
4258
9852377f
CY
42592010-08-07 Chong Yidong <cyd@stupidchicken.com>
4260
4261 * insdel.c (prepare_to_modify_buffer): Save active region text to
4262 Vsaved_region_selection.
4263
4264 * xselect.c (QPRIMARY): Move to keyboard.c.
4265
4266 * keyboard.c (Vselect_active_regions): Move from simple.el.
8d9e03e4
JB
4267 (Vsaved_region_selection, Qx_set_selection, QPRIMARY, Qlazy): New vars.
4268 (command_loop_1): Set window selection prior to deactivating the mark.
9852377f 4269
0e9c8657
JB
42702010-08-07 Juanma Barranquero <lekktu@gmail.com>
4271
4272 * alloc.c (lisp_malloc):
4273 * buffer.c (set_buffer_internal, set_buffer_internal_1):
4274 * charset.h (emacs_mule_charset):
4275 * dispextern.h (inhibit_free_realized_faces, redraw_frame)
4276 (redraw_garbaged_frames, scroll_cost, update_frame, scrolling)
4277 (bitch_at_user):
4278 * lisp.h (Fcheck_coding_system, Fget_text_property)
4279 (Qfunction, Qcompletion_ignore_case, QCwidth, QCsize):
4280 Remove duplicate declarations.
4281
648801d1
DN
42822010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
4283
32bc6709
DN
4284 * process.c: Simplify include logic.
4285
3ef1d108
DN
4286 * keyboard.h (quit_char): Add declaration.
4287 * process.h (QCport, QCspeed, QCprocess, QCbytesize, QCstopbits)
8d9e03e4
JB
4288 (QCparity, Qodd, Qeven, QCflowcontrol, Qhw, Qsw, QCsummary):
4289 Add declarations.
3ef1d108
DN
4290 * sysdep.c:
4291 * w32.c: Remove the above declarations.
4292
97ec208f
DN
4293 Remove extern declarations in .c files, .h files have them.
4294 * xterm.c:
4295 * xdisp.c:
97ec208f
DN
4296 * msdos.c:
4297 * image.c:
4298 * gtkutil.c:
4299 * fileio.c:
4300 * eval.c: Remove declarations.
4301
94eed851
DN
4302 * frame.c (frame_params): Make const.
4303
36e053eb
DN
4304 * lisp.h (fatal_error_signal, emacs_root_dir): Add declaration.
4305
0e843971
DN
4306 * emacs.c (emacs_copyright, emacs_version): Make static.
4307 (Vinitial_window_system, Vauto_save_list_file_name)
4308 (Vinhibit_redisplay): Remove declarations.
4309 (main): Remove HAVE_SHM code, unused. Remove _I386 conditional
4310 for AIX.
4311
648801d1
DN
4312 Use const for some arrays and functions.
4313 * xterm.h (xg_set_icon_from_xpm_data):
4314 * xfns.c (xg_set_icon_from_xpm_data):
4315 * term.c (fkeys):
4316 * keyboard.c (lispy_accent_keys, lispy_function_keys)
4317 (lispy_multimedia_keys, lispy_kana_keys, iso_lispy_function_keys)
4318 (lispy_drag_n_drop_names, scroll_bar_parts, modify_event_symbol)
4319 (frame.c frame_parms):
4320 * emacs-icon.h (gnu_xpm_bits):
4321 * callint.c (callint_argfuns): Use const.
4322
8646d999
J
43232010-08-06 Jan Djärv <jan.h.d@swipnet.se>
4324
4325 * sysdep.c: Move include term.h last of includes (Bug#6812).
4326
cb4545ad
EZ
43272010-08-06 Eli Zaretskii <eliz@gnu.org>
4328
4329 * dispnew.c (realloc_glyph_pool): Zero out newly allocated glyphs.
4330
4331 * msdos.c (IT_display_cursor): Log cursor position on termscript.
4332
4333 * .gdbinit (pgx): Display the avoid_cursor_p flag.
4334
da7e2be6
JB
43352010-08-06 Juanma Barranquero <lekktu@gmail.com>
4336
4337 * makefile.w32-in ($(BLD)/xdisp.$(O)): Update dependencies.
4338
3d608a86
J
43392010-08-06 Jan Djärv <jan.h.d@swipnet.se>
4340
7908fb60
J
4341 * xterm.h (x_get_focus_frame): Declare.
4342
4343 * keyboard.h (poll_for_input_1): Unconditionally declare.
4344
4094bf36
J
4345 * nsterm.h (x_set_menu_bar_lines): Declare.
4346
4347 * window.c: Don't include menu.h, it depends on lots of other .h-files.
4348
3d608a86
J
4349 * xfaces.c (x_create_gc, x_free_gc): Convert to ANSI C prototypes.
4350
4351 * window.c: Include menu.h.
4352
4353 * unexmacosx.c (print_region_list, print_regions)
4354 (build_region_list, find_emacs_zone_regions)
4355 (unexec_regions_merge, read_load_commands, dump_it)
4356 (unexec_init_emacs_zone): Convert to ANSI C prototypes.
4357
4358 * term.c: Check HAVE_SYS_IOCTL_H.
4359
686b968e 4360 * sysdep.c: Check HAVE_TERM_H.
3d608a86 4361
686b968e 4362 * process.c: Check HAVE_UTIL_H. Include nsterm.h if HAVE_NS.
3d608a86
J
4363
4364 * nsterm.m (ns_init_paths, ns_alloc_autorelease_pool)
4365 (ns_ring_bell, ns_defined_color, hide_hourglass)
4366 (x_display_pixel_height, x_display_pixel_width, syms_of_nsterm):
4367 Convert to ANSI C prototypes.
4368 (x_set_window_size, ns_draw_fringe_bitmap, judge): Move declarations
4369 before code.
4370
4371 * nsterm.h : Include sysselect.h.
4372 (x_sync, x_get_focus_frame, x_set_mouse_position)
4373 (x_set_mouse_pixel_position, x_make_frame_visible)
4374 (x_make_frame_invisible, x_iconify_frame, x_char_width, x_char_height)
4375 (x_pixel_width, x_pixel_height, x_set_frame_alpha, x_set_tool_bar_lines)
4376 (x_activate_menubar, free_frame_menubar, ns_init_paths, ns_select)
4377 (syms_of_nsterm, syms_of_nsfns, syms_of_nsmenu, syms_of_nsselect):
686b968e 4378 Declare.
3d608a86
J
4379
4380 * nsmenu.m (popup_activated, name_is_separator)
4381 (syms_of_nsmenu): Convert to ANSI C prototypes.
4382 (runMenuAt): Prototypes and move declarations before code.
4383
4384 * nsimage.m (ns_load_image): Move NSTRACE after declarations.
4385
4386 * nsfont.m (ns_fallback_entity, syms_of_nsfont): Convert to ANSI C
4387 prototypes.
4388
4389 * nsfns.m (have_menus_p, ns_display_info_for_name)
4390 (x_set_cursor_type, ns_appkit_version_str)
4391 (ns_appkit_version_int, ns_do_applescript)
4392 (x_set_scroll_bar_default_width, x_sync, compute_tip_xy)
4393 (syms_of_nsfns): Convert to ANSI C prototypes.
4394
4395 * menu.h (x_set_menu_bar_line): Declare.
4396 (free_menubar_widget_value_tree et.al): Add HAVE_NS for these functions.
4397
4398 * lisp.h (fmod_float): Declare.
4399
4400 * image.c (xpm_scan, xpm_make_color_table_v)
4401 (xpm_put_color_table_v, xpm_get_color_table_v)
4402 (xpm_make_color_table_h, xpm_put_color_table_h)
4403 (xpm_get_color_table_h, xpm_str_to_color_key, xpm_load_image)
4404 (xpm_load): Convert to ANSI C prototypes.
4405
4406 * emacs.c: Include nsterm.h if HAVE_NS.
4407
4408 * bidi.c (bidi_dump_cached_states): Fix fprintf warning.
4409
fce70521
DN
44102010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
4411
4412 * process.c: Remove HAVE_SOCKETS #ifdefs inside #ifdef
4413 subprocesses, only MSDOS does not define HAVE_SOCKETS.
4414 (socket_options): Use const char* for name.
4415
a11889ab
JB
44162010-08-06 Juanma Barranquero <lekktu@gmail.com>
4417
4418 Fix changes in 2010-08-05T23:15:24Z!dann@ics.uci.edu..2010-08-05T23:34:12Z!dann@ics.uci.edu for Windows build.
4419
4420 * xmenu.c [USE_X_TOOLKIT || USE_GTK]:
4421 Don't declare xmalloc_widget_value and digest_single_submenu.
4422
4423 * w32font.c (Qlatin): Remove declaration.
4424
4425 * menu.h (xmalloc_widget_value, digest_single_submenu): Declare.
4426
c95b508f 4427 * dired.c (compile_pattern): Restore declaration.
a11889ab 4428
6254cdda
DN
44292010-08-05 Dan Nicolaescu <dann@ics.uci.edu>
4430
04bab72c
DN
4431 Remove extern declarations in .c files, .h files have them.
4432 * data.c:
4433 * dired.c:
4434 * editfns.c:
4435 * filelock.c:
4436 * fns.c:
4437 * font.c:
4438 * fontset.c:
4439 * frame.c:
4440 * fringe.c:
4441 * ftfont.c:
4442 * gtkutil.c:
4443 * indent.c:
4444 * keyboard.c:
4445 * keymap.c:
4446 * lread.c:
4447 * menu.c:
4448 * print.c:
4449 * search.c:
4450 * sound.c:
4451 * window.c:
4452 * xdisp.c:
4453 * xfaces.c:
4454 * xfns.c:
4455 * xfont.c:
4456 * xftfont.c:
4457 * xmenu.c:
4458 * xterm.c: Remove declarations.
4459
dff94ed5
DN
4460 Cleanup syssignal.h.
4461 * syssignal.h (sighold, sigrelse, RETSIGTYPE): Remove, unused.
4462 (main_thread): Move down to remove #ifdef.
4463 (SIGMASKTYPE, SIGEMPTYMASK, SIGFULLMASK, sigmask, sigunblock):
4464 Remove conditional definition following unconditional ones.
4465
99f3388e
DN
4466 * lisp.h: Remove HAVE_SHM code, unused.
4467 (QCmap, QCrehash_size, QCrehash_threshold, QCsize, QCtest)
4468 (QCweakness, Qabove_handle, Qbackquote, Qbar, Qbelow_handle)
4469 (Qborder, Qbottom, Qbox, Qcircular_list, Qcomma, Qcomma_at)
4470 (Qcomma_dot, Qcursor, Qdefault, Qdown, Qend_scroll, Qeq, Qeql)
4471 (Qequal, Qfile_exists_p, Qfont_param, Qfringe, Qfunction)
4472 (Qfunction_documentation, Qhandle, Qhbar, Qheader_line, Qhollow)
4473 (Qidentity, Qleft_margin, Qmenu, Qmenu_bar_update_hook)
4474 (Qmode_line_inactive, Qmouse, Qoverriding_local_map)
4475 (Qoverriding_terminal_local_map, Qratio, Qregion, Qright_margin)
4476 (Qscroll_bar, Qtool_bar, Qtop, Qup, Qvertical_border, Qwhen)
4477 (Qwindow_scroll_functions, Vafter_load_alist)
4478 (Vauto_save_list_file_name, Vface_alternative_font_family_alist)
4479 (Vface_alternative_font_registry_alist, Vface_font_rescale_alist)
4480 (Vface_ignored_fonts, Vinhibit_redisplay, Vminibuffer_list)
4481 (Vprint_length, Vprint_level, Vscalable_fonts_allowed)
4482 (Vshell_file_name, Vsystem_name, Vwindow_scroll_functions)
4483 (Vwindow_system_version, Vx_no_window_manager, initial_argc)
4484 (initial_argv, last_nonmenu_event, load_in_progress)
4485 (noninteractive_need_newline, scroll_margin): Add declarations.
4486
bba3e508
SM
4487 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
4488 Remove declarations, menu.h has them.
99f3388e
DN
4489 (QCbutton, QCtoggle, QCradio, QClabel, extra_keyboard_modifiers)
4490 (Vinput_method_function, Qinput_method_function)
4491 (Qevent_symbol_element_mask, last_event_timestamp):
4492 * dispextern.h (Voverflow_newline_into_fringe):
4493 * font.h (QCantialias, Qp, syms_of_ftfont, syms_of_xfns)
4494 (syms_of_ftxfont, syms_of_xftfont, syms_of_bdffont)
4495 (syms_of_w32font, syms_of_nsfont):
4496 * fontset.h (find_font_encoding, Qlatin):
4497 * frame.h (Qtooltip, Qrun_hook_with_args, Vmenu_bar_mode)
4498 (Vtool_bar_mode, set_frame_menubar):
4499 * ftfont.h (ftfont_font_format, ftfont_get_fc_charset):
4500 * xterm.h (Qx_gtk_map_stock):
4501 * keymap.h (meta_prefix_char): Add declarations.
4502
9f5dd6f2
DN
4503 * term.c: Remove dead code.
4504
6254cdda
DN
4505 Fix emacs -Q -f server-start & emacsclient -t on GNU/Linux.
4506 * term.c (dissociate_if_controlling_tty): Use USG5 instead of
4507 USG. This is equivalent to defined (USG) && !defined (BSD_PGRPS),
4508 which is what was there before BSD_PGRPS was removed.
4509
29cf3e20
EZ
45102010-08-05 Eli Zaretskii <eliz@gnu.org>
4511
4512 * deps.mk (unexcoff.o): Rename unexec.[co] => unexcoff.[co].
4513
4514 * unexcoff.c: Renamed from unexec.c.
4515
aaa0a19a
SM
45162010-08-04 Stefan Monnier <monnier@iro.umontreal.ca>
4517
4518 * sysdep.c (child_setup_tty): Comment-out left-over non-ICANON code.
4519
8d1d9587
JB
45202010-08-03 Johan Bockgård <bojohan@gnu.org>
4521
4522 * data.c (Flocal_variable_p): Handle variable aliases correctly.
e0d62a9b 4523 (Bug#6744)
8d1d9587 4524
9a747ba6
JD
45252010-08-02 Jan Djärv <jan.h.d@swipnet.se>
4526
4d464ae4
JD
4527 * xterm.c (x_create_toolkit_scroll_bar): Only set XtNbeNiceToColormap
4528 to TRUE if depth of screen is < 16.
4529
ac01763e
JD
4530 * gtkutil.c (hierarchy_ch_cb, qttip_cb): Do not define unless
4531 USE_GTK_TOOLTIP.
e0d62a9b
JB
4532 (xg_prepare_tooltip): Return 0 unless USE_GTK_TOOLTIP.
4533 (xg_show_tooltip, xg_hide_tooltip): Do nothing unless USE_GTK_TOOLTIP.
4d464ae4 4534 (xg_create_frame_widgets): Surround tooltip-related code with ifdef
ac01763e
JD
4535 USE_GTK_TOOLTIP.
4536 (xg_free_frame_widgets): Don't delete ttip_* unless USE_GTK_TOOLTIP.
4537
4538 * xterm.h (USE_GTK_TOOLTIP): New define.
4539 (struct x_output): Put ttip_* inside ifdef USE_GTK_TOOLTIP.
4540
9a747ba6
JD
4541 * sysdep.c (child_setup_tty): Enable ICANON in lflags and set VEOF
4542 to Control-D (Bug#6771).
4543
7b0815ba
JB
45442010-08-02 Juanma Barranquero <lekktu@gmail.com>
4545
4546 * editfns.c (Fregion_beginning, Fregion_end): Doc fixes (bug#6493).
4547 Wording by Drew Adams <drew.adams@oracle.com>.
4548
aa1859f5
J
45492010-08-01 Jan Djärv <jan.h.d@swipnet.se>
4550
4551 * xterm.h (struct x_output): Add ttip_widget, ttip_window and
4552 ttip_lbl.
4553
4554 * xterm.c (x_clear_frame): Check FRAME_GTK_WIDGET (f) before
4555 calling gtk_widget_queue_draw.
4556 (x_free_frame_resources): Call xg_free_frame_widgets.
4557
4558 * xfns.c (x_gtk_use_system_tooltips): New variable.
4559 (Fx_show_tip): If USE_GTK and x_gtk_use_system_tooltips, call
4560 new gtkutil tooltip functions to show the tooltip.
4561 (Fx_hide_tip): Call xg_hide_tooltip.
4562 (syms_of_xfns): Defvar x-gtk-use-system-tooltips.
4563
4564 * gtkutil.h (xg_free_frame_widgets, xg_prepare_tooltip)
4565 (xg_show_tooltip, xg_hide_tooltip): Declare.
4566
4567 * gtkutil.c (hierarchy_ch_cb, qttip_cb, xg_prepare_tooltip)
e0d62a9b
JB
4568 (xg_show_tooltip, xg_hide_tooltip, xg_free_frame_widgets):
4569 New functions.
aa1859f5
J
4570 (xg_create_frame_widgets): Set ttip_* to 0. Set a dummy tooltip
4571 text so qttip_cb is called. Connect query-tooltip to qttip_cb.
4572 Remove code that is commented out.
4573
76417ef4
SM
45742010-08-01 Stefan Monnier <monnier@iro.umontreal.ca>
4575
4576 * keymap.c (Fdefine_key, Flookup_key): Say what event is invalid.
4577
16041401
CY
45782010-07-31 Chong Yidong <cyd@stupidchicken.com>
4579
4580 * xselect.c (x_own_selection): Use list4.
4581
2c09a58f
DN
45822010-07-30 Dan Nicolaescu <dann@ics.uci.edu>
4583
4584 * buffer.c (Qwindow): Do not define, already defined in data.c.
4585 (syms_of_buffer): Do not intern and staticpro Qwindow. (Bug#6760)
4586
59df9fdd 45872010-07-29 Chad Brown <yandros@mit.edu>
1c97e857 4588
59df9fdd
JB
4589 Replace tests for SYSV_SYSTEM_DIR with HAVE_DIRENT_H, set via autoconf.
4590 * dired.c, sysdep.c: Test HAVE_DIRENT_H instead of SYSV_SYSTEM_DIR.
4591 * config.in: Undef HAVE_DIRENT_H.
1c97e857 4592 * s/aix4-2.h, s/bsd-common.h, s/cygwin.h, s/gnu-linux.h,
59df9fdd 4593 * s/msdos.h, s/usg5-4.h: Don't define SYSV_SYSTEM_DIR.
1c97e857 4594
1b231651
DN
45952010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
4596
4597 Rename s/usg5-4.h -> s/usg5-4-common.h.
4598 * s/usg5-4.h: Rename file to ...
4599 * s/usg5-4-common.h: ... this for consistency with what we do for BSD.
4600 * s/unixware.h:
4601 * s/sol2-6.h:
4602 * s/irix6-5.h: Update includes accordingly.
4603
bfeabdc3
JD
46042010-07-29 Jan Djärv <jan.h.d@swipnet.se>
4605
2ebf1083
J
4606 * xfns.c (x_set_tool_bar_position): Remove debug fprintf.
4607
bfeabdc3 4608 * xterm.h (struct x_output): Add toolbar_top_height,
e0d62a9b
JB
4609 toolbar_bottom_height, toolbar_left_width, toolbar_right_width.
4610 Remove toolbar_height.
4611 If USE_GTK: Add hbox_widget and toolbar_in_hbox.
bfeabdc3
JD
4612 (FRAME_TOOLBAR_TOP_HEIGHT, FRAME_TOOLBAR_BOTTOM_HEIGHT)
4613 (FRAME_TOOLBAR_LEFT_WIDTH, FRAME_TOOLBAR_RIGHT_WIDTH): New macros.
4614 (FRAME_TOOLBAR_HEIGHT): Is now TOP_HEIGHT + BOTTOM_HEIGHT.
4615
4616 * xterm.c (x_set_window_size_1): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
4617
4618 * xfns.c (x_set_tool_bar_position): New function.
4619 (xic_set_statusarea): Use FRAME_TOOLBAR_TOP_HEIGHT.
4620 (x_frame_parm_handlers): Add x_set_tool_bar_position.
e0d62a9b 4621 (syms_of_xfns): If USE_GTK, provide move-toolbar.
bfeabdc3
JD
4622
4623 * window.c (calc_absolute_offset): Check for FRAME_TOOLBAR_TOP_HEIGHT
4624 and FRAME_TOOLBAR_LEFT_WIDTH.
4625
4626 * gtkutil.h (xg_change_toolbar_position): Declare.
4627
4628 * gtkutil.c (FRAME_TOTAL_PIXEL_WIDTH): New macro.
4629 (xg_frame_set_char_size): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
4630 (xg_height_or_width_changed): Use FRAME_TOTAL_PIXEL_WIDTH.
4631 (xg_create_frame_widgets): Create a hobox for placing widgets
4632 vertically. Use gtk_box_pack_start.
ef1b0ba7 4633 (xg_height_or_width_changed): Rename from xg_height_changed.
bfeabdc3
JD
4634 (x_wm_set_size_hint): Add FRAME_TOOLBAR_WIDTH to base_width.
4635 (xg_update_frame_menubar, free_frame_menubar): Change to
4636 xg_height_or_width_changed.
4637 (xg_tool_bar_detach_callback): Update left/right/top/bottom tool bar
4638 size correctly. Remove hardcoded 4, instead use handlebox size -
4639 toolbar size.
4640 (xg_tool_bar_attach_callback): Update left/right/top/bottom tool bar
e0d62a9b 4641 size correctly. Use handlebox size + toolbar size as additional size.
bfeabdc3
JD
4642 (xg_pack_tool_bar): POS is a new parameter.
4643 Set orientation of tool bar based on pos.
4644 Only make handlebox_widget if NULL.
4645 Check if tool bar goes to vbox or hbox depending on pos.
4646 (xg_update_tool_bar_sizes): New function.
686b968e 4647 (update_frame_tool_bar): Remove old_req, new_req. Do not get tool bar
bfeabdc3
JD
4648 height, call xg_update_tool_bar_sizes instead.
4649 (free_frame_tool_bar): Remove from hbox or vbox depending on
4650 toolbar_in_hbox, Set all FRAME_TOOLBAR_*_(WIDTH|HEIGHT) to zero.
4651 (xg_change_toolbar_position): New function.
4652
4653 * frame.h (struct frame): Add tool_bar_position.
4654 (Qbottom): Declare.
4655
4656 * frame.c (Qtool_bar_position): New variable.
4657 (make_frame): Set tool_bar_position to Qtop.
4658 (frame_parms): Add tool-bar-position.
4659 (x_report_frame_params): Store tool_bar_position.
4660 (x_set_fringe_width): Reset wm size hint after fringe changes.
4661
26469a38
DN
46622010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
4663
4664 Make lisp_time_argument declaration work on all systems.
4665 * lisp.h (lisp_time_argument): Move declaration ...
4666 * systime.h (lisp_time_argument): ... here
4667 * editfns.c (lisp_time_argument): Remove declaration. (Bug#6751)
4668
8848b728
JD
46692010-07-29 Jan Djärv <jan.h.d@swipnet.se>
4670
4671 * vm-limit.c (POINTER): Add typedef for it.
4672 (start_of_data): Change return type from POINTER to char *.
4673
4674 * frame.h (Qtty_color_mode): Move declaration out of ifdef
4675 HAVE_WINDOW_SYSTEM.
4676
76fd1ee9
DN
46772010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
4678
0441987e
DN
4679 * vm-limit.c: Do not include sys/resource.h, mem-limits.h does it.
4680 Remove reference to __osf__, unused.
4681
56a000c7
DN
4682 * mem-limits.h: Remove duplicated includes.
4683 (NULL): Remove definition, unused.
4684 (POINTER): Remove definition.
4685 (start_of_data): Use char* in prototype, as the function
4686 definition does.
4687
e6cba650
DN
4688 Remove extern declarations from .c files, and them to .h files.
4689 * keyboard.h (Qhelp_echo, waiting_for_input)
4690 (input_available_clear_time, ignore_mouse_drag_p)
4691 (Vdouble_click_time, real_this_command, Vthis_original_command):
4692 * keymap.h (Qremap, Qmenu_item, Voverriding_local_map)
4693 (Voverriding_local_map_menu_flag):
4694 * lisp.h (Qinteractive_form, use_file_dialog)
4695 (Qcursor_in_echo_area, QCascent, QCmargin, QCrelief, Qcount)
4696 (Qextension_data, QCconversion, QCcolor_symbols, QCheuristic_mask)
4697 (QCindex, QCmatrix, QCcolor_adjustment, QCmask)
4698 (Qrisky_local_variable, map_char_table_for_charset, Vprint_level)
4699 (Qfunction, debug_on_next_call, Qfield)
4700 (Vinhibit_field_text_motion, Vuser_login_name, lisp_time_argument)
4701 (Qpriority, Qwindow, Qevaporate, Qbefore_string, Qafter_string)
4702 (Qfile_directory_p, Qinsert_file_contents)
4703 (Qcompletion_ignore_case, Qcompletion_ignore_case)
4704 (Vcompletion_regexp_list, Vhistory_length, completion_ignore_case)
4705 (history_delete_duplicates, minibuffer_auto_raise, Qonly)
4706 (Qfile_name_handler_alist, Qfront_sticky, Qrear_nonsticky)
4707 (Qminibuffer_prompt)
4708 (Vtemporary_file_directory,char_ins_del_vector, Qface):
4709 * xterm.h (gray_bitmap_width, gray_bitmap_height)
4710 (gray_bitmap_bits, xic_create_fontsetname):
4711 * coding.h (Vtranslation_table_for_input): Add extern declarations.
4712
4713 * xsmfns.c (Vuser_login_name):
4714 * xrdb.c (Vdouble_click_time):
4715 * xfaces.c (xic_create_fontsetname):
4716 * w32select.c (waiting_for_input):
4717 * print.c (minibuffer_auto_raise):
4718 * msdos.c (Qhelp_echo):
4719 * macros.c (real_this_command):
4720 * keymap.c (Voverriding_local_map):
4721 * xterm.c (poll_for_input_1, gray_bitmap_width)
4722 (gray_bitmap_height, gray_bitmap_bits;
4723 * xmenu.c ( Voverriding_local_map)
4724 (Voverriding_local_map_menu_flag; Qmenu_item; use_dialog_box)
4725 (use_file_dialog, Xt_app_con):
4726 * xdisp.c (minibuffer_auto_raise, Voverriding_local_map)
4727 (Voverriding_local_map_menu_flag, Qmenu_item, Qface, Qinvisible)
4728 (Qwidth, Qinvisible, Qwindow, Qpriority, Qtool_bar_lines)
4729 (Qtool_bar_lines, ignore_mouse_drag_p):
4730 * minibuf.c (Voverriding_local_map, Qfield, Qfront_sticky)
4731 (Qrear_nonsticky, nconc2):
4732 * keyboard.c (current_global_map, minibuf_level, Qmenu_item)
4733 (Vhistory_length, Vtranslation_table_for_input, Qcomposition)
4734 (Qdisplay, Qafter_string, Qbefore_string, Qundefined):
4735 * fileio.c (use_dialog_box, use_file_dialog, Vuser_login_name)
4736 (minibuf_level, minibuffer_auto_raise, lisp_time_argument):
4737 * eval.c (Qinteractive_form, Qrisky_local_variable, Qfunction)
4738 (gc_in_progress):
4739 * doc.c (Voverriding_local_map, Qremap):
4740 * dired.c (completion_ignore_case, Qcompletion_ignore_case)
4741 (Vcompletion_regexp_list):
4742 * coding.c (Qmac, Qinsert_file_contents, Qwrite_region)
4743 (Qcompletion_ignore_case):
4744 * callint.c (Qcursor_in_echo_area, Qfile_directory_p, Qonly)
4745 (Vhistory_length, Vthis_original_command, real_this_command)
4746 (Qface, Qminibuffer_prompt, history_delete_duplicates):
4747 * image.c (Qrisky_local_variable):
4748 * fontset.c (QCname):
4749 * fns.c (minibuffer_auto_raise, QCname):
4750 * dispnew.c (char_ins_del_cost):
4751 * composite.c (font_fill_lglyph_metrics):
4752 * cmds.c (Qface, Vtranslation_table_for_input):
4753 * charset.c (map_char_table_for_charset, Qfile_name_handler_alist):
4754 * ccl.c (charset_unicode):
4755 * callproc.c (Vtemporary_file_directory):
4756 * buffer.c (emacs_strerror): Remove extern declarations.
4757
4758 * data.c (Qwindow): Make non-static, used from other files too.
4759 * frame.c (validate_x_resource_name): Remove shadow definition for i.
4760
76fd1ee9
DN
4761 * unexec.c (make_hdr): Remove references to NO_REMAP, COFF,
4762 SEGMENT_MASK, SECTION_ALIGNMENT, ADJUST_EXEC_HEADER.
4763 * s/usg5-4.h (COFF):
4764 * s/template.h:
4765 * s/msdos.h (COFF, NO_REMAP):
4766 * s/ms-w32.h (NO_REMAP):
4767 * s/hpux10-20.h (NO_REMAP):
4768 * m/sparc.h (SEGMENT_MASK):
4769 * m/m68k.h (NO_REMAP):
4770 * m/intel386.h (SEGMENT_MASK):
4771 * m/arm.h (NO_REMAP):
4772 * m/alpha.h (COFF):
4773 * m/template.h: Remove references to unused defines.
4774
8a52f00a
JD
47752010-07-28 Jan Djärv <jan.h.d@swipnet.se>
4776
4777 * xsettings.c (Ftool_bar_get_system_style): Also check for
4778 Qtext_image_horiz.
4779
4780 * xdisp.c (Qtext_image_horiz): Define.
4781 (syms_of_xdisp): Initialize Qtext_image_horiz. Add text-image-horiz
087b38a0 4782 to documentation of tool-bar-style.
8a52f00a
JD
4783
4784 * lisp.h (Qtext_image_horiz): Declare.
4785
4786 * gtkutil.c (xg_make_tool_item, xg_show_toolbar_item): Handle tool bar
4787 style text_image_horiz.
4788
89dc303e
DN
47892010-07-27 Dan Nicolaescu <dann@ics.uci.edu>
4790
60799703
DN
4791 * emacs.c (Fkill_emacs): Remove return statement.
4792
37254dc1
DN
4793 * term.c (Qspace, QCalign_to, QCwidth): Remove declarations.
4794 (encode_terminal_code, produce_composite_glyph): Remove unused variables.
bba3e508
SM
4795 (set_tty_color_mode, term_mouse_highlight, term_get_fkeys):
4796 Remove local extern declarations.
37254dc1 4797
71c7345a
DN
4798 * xmenu.c: Do not included lwlib.h, not needed.
4799
6ba577cb
DN
4800 * m/iris4d.h (XUINT, XSET): Remove, not needed.
4801
fdb183d6
DN
4802 * process.c: Move definitions earlier to minimize #ifdefs.
4803
4804 * xterm.h (x_get_customization_string, x_load_resources)
4805 (x_get_resource, x_text_icon, x_text_icon, x_check_errors)
4806 (x_check_errors, x_property_data_to_lisp, defined_color)
4807 (xic_set_xfontset, x_defined_color): Use const.
4808
4809 * xterm.c (xlwmenu_window_p, xlwmenu_redisplay): Remove declarations.
4810 (x_text_icon, x_check_errors, x_connection_closed): Use const.
4811
4812 * xselect.c (selection_data_to_lisp_data)
4813 (x_property_data_to_lisp):
4814 * xrdb.c (x_get_string_resource, file_p)
4815 (x_get_customization_string, magic_file_p, search_magic_path)
4816 (get_system_app, get_user_app, x_load_resources, x_get_resource)
4817 (x_get_string_resource): Use const.
4818
4819 * xfns.c: Include xlwmenu.h when USE_LUCID.
4820 (x_defined_color, xic_set_xfontset): Use const.
4821 (Fx_hide_tip): Remove local extern declaration.
4822
4823 * xfaces.c (Qmouse_face): Remove declaration.
4824 (face_color_gray_p, tty_defined_color, defined_color)
686b968e 4825 (face_color_gray_p, face_color_supported_p): Add const.
fdb183d6
DN
4826
4827 * xdisp.c (do_mouse_tracking): Remove declaration.
4828 (add_to_log): Use const.
4829
4830 * minibuf.c (Qmouse_face): Remove declaration.
4831
4832 * msdos.c (IT_note_mouse_highlight): Remove local extern declaration.
4833
4834 * keyboard.h (do_mouse_tracking): Add declaration.
4835
4836 * image.c (QCwidth, QCheight, QCforeground, QCbackground, QCfile)
4837 (QCdata, QCtype, Qcenter): Remove declarations.
4838
4839 * frame.c (x_get_resource_string, x_get_string_resource)
4840 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
4841 (x_default_parameter): Use const.
4842
4843 * font.c (Qnormal, QCtype, QCfamily, QCweight, QCslant, QCwidth)
4844 (QCheight, QCsize, QCname): Remove declarations.
4845
4846 * emacs.c (main): Remove local extern declaration.
4847
4848 * editfns.c (region_limit, syms_of_editfns): Remove local extern
4849 declarations.
4850
4851 * dispnew.c: Remove duplicate #include <unistd.h>.
4852 (update_window, update_frame_1, init_display): Remove local extern
4853 declarations.
4854
4855 * dispextern.h (add_to_log): Remove declaration.
4856 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
4857 (x_frame_get_and_record_arg, x_default_parameter): Add const.
4858
4859 * dired.c (scmp): Add const.
4860 (directory_files_internal): Remove local extern declaration.
4861
4862 * data.c (Finteractive_form): Use const.
4863
4864 * composite.c (syms_of_composite): Remove local extern declarations.
4865
4866 * charset.c (add_to_log): Remove declaration.
4867
4868 * character.c (strwidth, parse_str_to_multibyte): Add const.
4869
4870 * character.h (strwidth, parse_str_to_multibyte): Likewise.
4871
4872 * buffer.c (Fset_buffer_multibyte): Remove local extern declaration.
4873
89dc303e 4874 * lisp.h (Fkill_emacs): Mark as NO_RETURN.
fdb183d6
DN
4875 (Lisp_Subr): Make doc and intspec constant.
4876 (QCsize, Qspace, Qcenter, QCalign_to, QCdata, QCfile, QCtype)
4877 (Qlocal, Qapply, Qnormal, QCfamily, QCweight, QCslant, QCwidth)
4878 (QCheight, QCsize, QCname, QCwidth, QCforeground)
4879 (QCbackground, add_to_log, stack_base, Vmark_even_if_inactive)
4880 (display_arg): Add declarations.
89dc303e 4881
0ed082fe 48822010-07-27 Christoph Scholtes <cschol2112@gmail.com>
a2a0d36b
CS
4883
4884 * minibuf.c (Fread_buffer): Doc fix (bug#6528).
4885
0ed082fe
JB
4886 * window.c (Fwindow_height): Doc fix (bug#6518).
4887
48882010-07-27 Juanma Barranquero <lekktu@gmail.com>
4889
4890 * buffer.c (syms_of_buffer) <fringe-indicator-alist>: Doc fix.
4891
ccaf0336
DN
48922010-07-26 Dan Nicolaescu <dann@ics.uci.edu>
4893
977105dc
DN
4894 * keyboard.c (Ftop_level, Fexit_recursive_edit)
4895 (Fabort_recursive_edit): Remove return statements in NO_RETURN
4896 functions.
4897
f5ada890
DN
4898 * frame.h (Qtty_color_mode): Add declaration.
4899
ccaf0336
DN
4900 * lisp.h (Ftop_level, Fexit_recursive_edit)
4901 (Fabort_recursive_edit): Mark as NO_RETURN.
4902
dfe3c90f
KH
49032010-07-26 Kenichi Handa <handa@m17n.org>
4904
4905 * font.c (Ffont_shape_gstring): Terminate GSTRING by nil if the
e29eb8cf 4906 number of glyphs gets smaller than the original length. (Bug#6621)
dfe3c90f 4907
7d383292
JB
49082010-07-26 Juanma Barranquero <lekktu@gmail.com>
4909
4910 * lread.c (unreadpure, mapatoms_1): Make static.
4911
da31e629
JB
49122010-07-25 Juanma Barranquero <lekktu@gmail.com>
4913
4914 * terminfo.c (tparam): Fix prototype of tparm.
4915
7bfa6d77
AS
49162010-07-25 Andreas Schwab <schwab@linux-m68k.org>
4917
dcc19aac
AS
4918 * emacs.c (main) [PROFILING]: Use __executable_start if defined to
4919 find start of text segment.
4920 * dispnew.c (safe_bcopy): Don't define if HAVE___EXECUTABLE_START
4921 is defined.
4922
7bfa6d77
AS
4923 * callproc.c (set_initial_environment): Avoid unbalanced braces.
4924
63f9a672
KB
49252010-07-25 Ken Brown <kbrown@cornell.edu>
4926
4927 * vm-limit.c (check_memory_limits): Fix previous change;
4928 accidentally reverted an earlier change.
4929
24933075
KB
49302010-07-25 Ken Brown <kbrown@cornell.edu>
4931
4932 * mem-limits.h (BSD4_2) [cygwin]: Don't define here; instead...
4933 * vm-limit.c: ...add 'defined (CYGWIN)' here (Bug#6715).
4934
361358ea
JB
49352010-07-25 Juanma Barranquero <lekktu@gmail.com>
4936
4937 * callproc.c (relocate_fd): Set inside #ifndef WINDOWSNT.
4938 * dired.c (opendir, readdir): Fix prototypes.
4939 * editfns.c (w32_get_internal_run_time): Fix prototypes.
4940 * keyboard.c (input_available_signal): Declare inside #ifdef SIGIO.
4941 * ndir.h (opendir, readdir, seekdir, closedir): Fix prototypes.
4942 (telldir): Remove declaration.
4943 * ralloc.c (real_morecore, __morecore): Fix prototypes.
4944 * sound.c (alsa_sound_perror): Declare inside #ifdef HAVE_ALSA.
4945 * syssignal.h (strsignal): Fix prototype.
4946 * term.c (tparam): Fix prototype.
4947 (term_get_fkeys_address, term_get_fkeys_kboard, term_get_fkeys_1)
4948 (term_get_fkeys): Set inside "#ifndef DOS_NT".
4949 * vm-limit.c (check_memory_limits): Fix prototypes of real_morecore
4950 and __morecore.
4951 * w32gui.h (XParseGeometry): Fix prototype.
4952 * w32heap.h (get_data_start, get_data_end, init_heap): Fix prototypes.
4953 * w32term.c (my_set_focus): Declare inside #if 0.
4954 * w32term.h (x_window_to_frame, x_display_info_for_name, w32_term_init)
4955 (w32_fill_rect, w32_clear_window, init_crit, delete_crit, signal_quit)
4956 (drain_message_queue, get_next_msg, post_msg, parse_button)
4957 (ClipboardSequence_Proc): Fix prototypes.
4958 (wait_for_sync): Remove declaration.
4959
630b9592
JB
49602010-07-24 Juanma Barranquero <lekktu@gmail.com>
4961
4962 * w32fns.c (w32_to_x_color): Remove, unused.
4963
6a0d6611
AS
49642010-07-24 Andreas Schwab <schwab@linux-m68k.org>
4965
4966 * lisp.h: Remove leftover P_.
4967
4e8608ff
DN
49682010-07-24 Dan Nicolaescu <dann@ics.uci.edu>
4969
4970 * ecrt0.c, unexalpha.c: Remove files, unused.
4971
c8197983
AS
49722010-07-24 Andreas Schwab <schwab@linux-m68k.org>
4973
4974 * cmds.c (internal_self_insert): Make static.
4975 * lisp.h (internal_self_insert): Remove declaration.
4976
97b372d7
JB
49772010-07-23 Juanma Barranquero <lekktu@gmail.com>
4978
33ac0414
JB
4979 * alloc.c (free_float):
4980 * font.c [ENABLE_CHECKING] (font_match_xlfd, font_check_xlfd_parse):
4981 * frame.c (delete_frame_handler):
4982 * ralloc.c (reorder_bloc):
4983 * w32menu.c (menubar_id_to_frame, add_left_right_boundary):
4984 Remove unused static functions.
4985
94da8397
JB
4986 * menu.c (cleanup_popup_menu): Set inside "#ifdef HAVE_NS";
4987 it is called only from NS code.
4988
2e6c8532
JB
4989 * w32term.c (my_set_focus): #ifdef away; it is called only from
4990 "#ifdef 0" code.
4991
97b372d7
JB
4992 * w32fns.c (x_edge_detection):
4993 * xfaces.c (may_use_scalable_font_p):
4994 Remove obsolete static declarations.
4995
7c3320d8
JB
49962010-07-20 Juanma Barranquero <lekktu@gmail.com>
4997
4998 * alloc.c (emacs_blocked_free, emacs_blocked_malloc)
4999 (emacs_blocked_realloc, uninterrupt_malloc):
5000 * fringe.c (w32_reset_fringes):
5001 * image.c (convert_mono_to_color_image, lookup_rgb_color)
5002 (init_color_table, XPutPixel, jpeg_resync_to_restart_wrapper):
5003 * sound.c (be2hs, do_play_sound):
5004 * vm-limit.c (get_lim_data, ret_lim_data):
5005 * w32term.c (x_free_frame_resources):
5006 * xfaces.c (x_create_gc, x_free_gc):
5007 Convert definitions to standard C.
5008
d5273788
SM
50092010-07-20 Stefan Monnier <monnier@iro.umontreal.ca>
5010
5011 * eval.c (Feval, Ffuncall): Use the new names.
5012
5013 * lisp.h (struct Lisp_Subr): Rename `am' to aMANY and add aUNEVALLED.
5014 (DEFUN): Add braces around the union initialisation and use ## to
5015 specify the right union alternative and avoid a cast.
5016
8d16a259
JB
50172010-07-18 Juanma Barranquero <lekktu@gmail.com>
5018
5019 * makefile.w32-in ($(BLD)/keyboard.$(O)): Update dependencies.
5020
3b8eff32
CY
50212010-07-17 Chong Yidong <cyd@stupidchicken.com>
5022
5023 * frame.c (make_initial_frame): Use set_menu_bar_lines (Bug#6660).
5024
499322ce
J
50252010-07-17 Jan Djärv <jan.h.d@swipnet.se>
5026
5027 * gtkutil.c (xg_event_is_for_menubar): Also check that event window
5028 is related to the menu bar (Bug#6499).
a628ad9d 5029 (xg_frame_resized): GTK_IS_MAPPED => gtk_widget_get_mapped, for Gtk 3.0.
499322ce 5030
f6003da5 50312010-07-16 Jan Djärv <jan.h.d@swipnet.se>
b78f9767
J
5032
5033 * xterm.h (x_menubar_window_to_frame): Second parameter is XEvent*.
5034
5035 * xterm.c (handle_one_xevent): Pass event to x_menubar_window_to_frame.
5036
5037 * xmenu.c (x_activate_menubar): Revert previous fix for Bug#6499,
5038 i.e. don't put back ButtonRelease (Bug#6608).
5039
5040 * xfns.c (x_menubar_window_to_frame): Take XEvent as second parameter
5041 instead of Window. Call xg_event_is_for_menubar when
5042 USE_GTK (Bug#6499).
5043
5044 * gtkutil.h (xg_event_is_for_menubar): Declare.
5045
5046 * gtkutil.c (xg_event_is_for_menubar): New function (Bug#6499).
5047
f6003da5 50482010-07-16 Eli Zaretskii <eliz@gnu.org>
1f60c16a
EZ
5049
5050 * w32fns.c (x_set_foreground_color): Fix setting the cursor color
5051 when it's the same as the old foreground. (Bug#6609)
5052
23243f29
J
50532010-07-16 Jan Djärv <jan.h.d@swipnet.se>
5054
5055 * xmenu.c (free_frame_menubar): Only call x_set_window_size if
5056 widget is non-null (Bug#6645).
5057
2b23d2a6
AS
50582010-07-15 Andreas Schwab <schwab@linux-m68k.org>
5059
01b564ff
AS
5060 * xterm.c (x_fully_uncatch_errors, x_trace_wire, x_check_font):
5061 Convert old-style definition.
5062
2b23d2a6
AS
5063 * xmenu.c (create_and_show_popup_menu, xmenu_show): Fix type of
5064 timestamp argument.
5065
c4affd2c
EZ
50662010-07-15 Eli Zaretskii <eliz@gnu.org>
5067
5068 * fringe.c (update_window_fringes): Restore mistakenly reverted
5069 code from 2010-04-17T12:33:05Z!eliz@gnu.org merged in 2010-04-20T13:31:28Z!eliz@gnu.org.
5070
cf28cebc
J
50712010-07-14 Jan Djärv <jan.h.d@swipnet.se>
5072
5073 * xterm.c (xm_scroll_callback, x_process_timeouts): K&R => prototype.
5074 (SET_SAVED_KEY_EVENT): Remove (not used).
5075 (SET_SAVED_MENU_EVENT): Rename to SET_SAVED_BUTTON_EVENT and
5076 remove size parameter.
5077 (handle_one_xevent): Check popup_activated () for menu for Xt also.
5078 Remove #ifdef USE_GTK around finish = X_EVENT_DROP.
5079 Remove #ifdef USE_MOTIF code that did SET_SAVED_BUTTON_EVENT for
5080 ButtonRelease.
6b2c4bd9
J
5081 (x_set_window_size_1): scroll_bar_actual_width is always
5082 SCROLL_BAR_COLS * COLUMN_WIDTH for the purpose of frame sizing.
cf28cebc
J
5083
5084 * xdisp.c (pending_menu_activation): Remove extern declaration.
5085 (prepare_menu_bars): Remove setting of pending_menu_activation.
5086
5087 * xmenu.c (pending_menu_activation): Remove.
f6003da5
JB
5088 (x_activate_menubar): Set popup_activated_flag for Xt also.
5089 Remove setting of pending_menu_activation.
cf28cebc
J
5090 (set_frame_menubar): Remove check of pending_menu_activation.
5091 Declare menubar_size before code. Correct spelling in comment.
5092
f6c1c771
KH
50932010-07-14 Kenichi Handa <handa@m17n.org>
5094
5095 * font.c (font_open_entity): Cancel previous change.
5096 (Ffont_get): Don't check FONT_ENTITY_INDEX of a font-object.
5097
20477505
EZ
50982010-07-13 Eli Zaretskii <eliz@gnu.org>
5099
77defa9a
EZ
5100 Remove subprocesses #ifdefs.
5101 * process.c <inhibit_sentinels>: Move to the common part.
5102 (Fwaiting_for_user_input_p): Move to the common part; return nil
5103 if async subprocesses aren't supported.
5104 * sysdep.c (wait_for_termination) [!MSDOS]: Don't compile on
5105 MS-DOS. Remove "#ifdef subprocesses".
5106 (sys_subshell, sys_select): Remove "#ifdef subprocesses".
5107 (gettimeofday): Remove "#ifdef subprocesses".
5108 (wait_without_blocking): Remove function.
5109 (flush_pending_output, child_setup_tty): Don't compile on MS-DOS.
5110 Remove "#ifdef subprocesses".
5111 (child_setup_tty): Use WINDOWSNT instead of DOS_NT, since not
5112 compiled on MS-DOS.
5113 * callproc.c (Fcall_process) [!MSDOS]: Don't call
5114 wait_for_termination on MS-DOS.
5115 * emacs.c (shut_down_emacs): Remove "#ifndef subprocesses" from
5116 initialization of inhibit_sentinels.
5117 * keyboard.c (record_asynch_buffer_change): Remove "#ifdef
5118 subprocesses" conditional.
5119 * callproc.c (Fcall_process) [!subprocesses]: Don't call
5120 wait_for_termination, since `buffer' cannot be an integer when
5121 async subprocesses are not supported
5122 * xdisp.c (decode_mode_spec): Use `MSDOS' instead of `subprocesses'
5123 for ifdefing away the call to Fprocess_status.
5124
20477505
EZ
5125 * process.c (add_keyboard_wait_descriptor) [!subprocesses]: Ifdef
5126 away the entire body of the function.
5127
b3ffc17c
DN
51282010-07-13 Dan Nicolaescu <dann@ics.uci.edu>
5129
01faa934
DN
5130 Remove subprocesses #ifdefs from term.c.
5131 * process.c (add_keyboard_wait_descriptor)
5132 (delete_keyboard_wait_descriptor): Move to common section, do
5133 nothing when subprocesses is not defined.
a628ad9d
JB
5134 * term.c (Fsuspend_tty, Fresume_tty, init_tty):
5135 Remove subprocesses #ifdefs.
01faa934 5136
b3ffc17c
DN
5137 Convert maybe_fatal to standard C.
5138 * lisp.h (verror): Declare.
5139 * eval.c (verror): New function containing the code from ...
5140 (error): ... this. Call verror.
5141 * term.c (vfatal): New function containing the code from ...
5142 (fatal): ... this. Call vfatal.
5143 (maybe_fatal): Convert to standard C, use variable number of
5144 arguments. Declare as non-return.
5145 (init_tty): Fix maybe_fatal call.
5146
0521f580
DN
51472010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
5148
5149 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_expose)
5150 (_scroll_bar_note_movement): Convert definitions to standard C.
5151 * xmenu.c (menu_help_callback, pop_down_menu, xmenu_show):
5152 * xfns.c (hack_wm_protocols, x_window, x_window): Likewise.
5153
ebd15611
DN
51542010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
5155
5156 * xterm.c (x_frame_of_widget, x_alloc_nearest_color_for_widget)
5157 (x_alloc_lighter_color_for_widget, cvt_string_to_pixel)
5158 (cvt_pixel_dtor, x_window_to_menu_bar, xt_action_hook)
5159 (xaw_jump_callback, xaw_scroll_callback)
5160 (x_create_toolkit_scroll_bar, x_set_toolkit_scroll_bar_thumb)
bba3e508
SM
5161 (x_wm_set_size_hint, x_activate_timeout_atimer):
5162 Convert definitions to standard C.
ebd15611
DN
5163 * xmenu.c (menubar_id_to_frame, popup_get_selection)
5164 (popup_activate_callback, popup_deactivate_callback)
5165 (menu_highlight_callback, menubar_selection_callback)
5166 (apply_systemfont_to_dialog, apply_systemfont_to_menu)
5167 (free_frame_menubar, popup_selection_callback, as)
5168 (create_and_show_popup_menu, dialog_selection_callback)
5169 (create_and_show_dialog):
5170 * xfns.c (hack_wm_protocols, x_window):
5171 * xfaces.c (x_update_menu_appearance):
5172 * widget.c (get_default_char_pixel_size, pixel_to_char_size)
5173 (char_to_pixel_size, round_size_to_char, get_wm_shell)
5174 (set_frame_size, update_wm_hints, setup_frame_gcs)
5175 (update_various_frame_slots, update_from_various_frame_slots)
5176 (EmacsFrameInitialize, EmacsFrameRealize, EmacsFrameResize)
5177 (EmacsFrameSetValues, EmacsFrameQueryGeometry)
5178 (EmacsFrameSetCharSize, widget_store_internal_border): Likewise.
5179
de06a2dd
AS
51802010-07-12 Andreas Schwab <schwab@linux-m68k.org>
5181
a628ad9d 5182 * dbusbind.c (xd_initialize): Don't compare boolean with a constant.
de06a2dd 5183
fc549af9
EZ
51842010-07-12 Eli Zaretskii <eliz@gnu.org>
5185
5186 * process.c (setup_process_coding_systems): Move to the part
5187 shared by non-subprocesses systems, and make its body empty when
5188 subprocesses is not defined.
5189 (close_process_descs): Move to the part shared by non-subprocesses
5190 systems.
1408902e
EZ
5191 (wait_reading_process_output) [!subprocesses]: Convert arg list to
5192 ANSI C.
fc549af9 5193
d5a3eaaf
AS
51942010-07-12 Andreas Schwab <schwab@linux-m68k.org>
5195
5196 * editfns.c (transpose_markers): Convert old-style definition.
5197 * emacs.c (abort, shut_down_emacs, fixup_locale)
5198 (synchronize_system_time_locale)
5199 (synchronize_system_messages_locale, syms_of_emacs): Likewise.
5200 * floatfns.c (extract_float, matherr, init_floatfns)
5201 (syms_of_floatfns): Likewise.
5202 * fns.c (make_hash_table): Likewise.
5203 * ftfont.c (ftfont_get_otf, ftfont_otf_features)
5204 (ftfont_otf_capability, ftfont_get_glyph_id, ftfont_get_metrics)
5205 (ftfont_drive_otf, ftfont_shape_by_flt, ftfont_shape)
5206 (ftfont_variation_glyphs): Likewise.
5207 * gtkutil.c (xg_create_widget, xg_modify_menubar_widgets): Likewise.
5208 * keymap.c (describe_map_tree, describe_map, describe_vector): Likewise.
5209 * lread.c (read_filtered_event): Likewise.
5210 * minibuf.c (read_minibuf_noninteractive, read_minibuf): Likewise.
5211 * process.c (wait_reading_process_output): Likewise.
5212 * scroll.c (do_line_insertion_deletion_costs): Likewise.
5213 * search.c (search_buffer, boyer_moore): Likewise.
5214 * syntax.c (scan_sexps_forward): Likewise.
5215 * xdisp.c (try_scrolling): Likewise.
5216 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
5217 (face_at_string_position): Likewise.
5218 * xfns.c (x_default_scroll_bar_color_parameter): Likewise.
5219 * xselect.c (x_get_window_property, receive_incremental_selection)
5220 (x_get_window_property_as_lisp_data, lisp_data_to_selection_data):
5221 Likewise.
5222 * xterm.c (x_draw_relief_rect, x_draw_box_rect): Likewise.
5223
6f704c76
DN
52242010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
5225
ded80a25
DN
5226 * callproc.c (child_setup): Remove subprocesses conditional.
5227 Remove code dealing with SET_EMACS_PRIORITY, unused.
5228
49d937f4 5229 * buffer.c (Fset_buffer_multibyte): Remove subprocesses conditional.
2e31d424
DN
5230 * process.c (close_process_descs): Use DOS_NT instead of WINDOWSNT.
5231
5232 * emacs.c (__do_global_ctors, __do_global_ctors_aux)
5233 (__do_global_dtors, __main): Use void in definition.
5234 (main): Remove code dealing with SET_EMACS_PRIORITY, unused.
5235 Remove SYMS_MACHINE code, unused. Remove SYMS_SYSTEM, inline
5236 the only users from ...
5237 * s/ms-w32.h (SYMS_SYSTEM): ... here and ...
5238 * s/msdos.h (SYMS_SYSTEM): ... here. Remove.
5239 (HAVE_VOLATILE): Remove, unused.
5240
6f704c76
DN
5241 Convert more function definitions to standard C.
5242 * xdisp.c (window_box_edges, handle_single_display_spec)
5243 (display_string): Convert definition to standard C.
5244 * scroll.c (do_direct_scrolling, scrolling_1):
5245 * dispnew.c (allocate_matrices_for_frame_redisplay)
5246 (mirrored_line_dance):
5247 * coding.c (code_convert_string):
5248 * charset.c (map_charset_chars):
5249 * ccl.c (Fccl_program_p, Fccl_execute, Fccl_execute_on_string)
5250 (Fregister_ccl_program, Fregister_code_conversion_map):
5251 * keyboard.c (kbd_buffer_nr_stored): Likewise.
5252 (head_table): Make static and const.
5253
e6cfa7c3
AS
52542010-07-12 Andreas Schwab <schwab@linux-m68k.org>
5255
5256 * Makefile.in (C_WARNINGS_SWITCH, PROFILING_CFLAGS)
5257 (PROFILING_LDFLAGS): Set from substitution.
5258 (ALL_CFLAGS): Add C_WARNINGS_SWITCH and PROFILING_CFLAGS, put
5259 CFLAGS last.
5260
892dd565
KH
52612010-07-12 Kenichi Handa <handa@m17n.org>
5262
6f2cdcd1
KH
5263 * Makefile.in (lisp): Change hebrew.el to hebrew.elc.
5264 (shortlisp): Likewise.
5265
892dd565
KH
5266 * font.h (enum font_property_index): New member FONT_ENTITY_INDEX.
5267
5268 * font.c (font_open_entity): Record ENTITY in FONT_OBJECT's slot
5269 of FONT_ENTITY_INDEX.
5270 (Ffont_get): If KEY is :otf and the font-object doesn't have the
5271 property, get the property value dynamically.
5272 (Ffont_put): Accept font-entity and font-object too.
ef1b0ba7 5273 (Ffont_get_glyhphs): Rename from Fget_font_glyphs. Arguments and
892dd565 5274 return value changed.
bba3e508 5275 (syms_of_font): Adjust for the above change.
892dd565 5276
ae96d47a
AS
52772010-07-11 Andreas Schwab <schwab@linux-m68k.org>
5278
c8fc18ee
AS
5279 * blockinput.h: Remove obsolete comment.
5280
89887d67
AS
5281 * lisp.h: Include <stddef.h>.
5282 (OFFSETOF): Don't define.
5283 (VECSIZE): Use offsetof instead of OFFSETOF.
5284 (PSEUDOVECSIZE): Likewise.
5285 * process.c (conv_sockaddr_to_lisp): Likewise.
5286 * alloc.c: Don't include <stddef.h>.
5287 * buffer.h (PER_BUFFER_VAR_OFFSET): Use offsetof.
5288
ae96d47a
AS
5289 * process.c: Remove obsolete comment.
5290
635c0aa1
CY
52912010-07-11 Chong Yidong <cyd@stupidchicken.com>
5292
5293 * xfaces.c (Vface_remapping_alist): Doc fix (Bug#6091).
5294
a64df650
AS
52952010-07-11 Andreas Schwab <schwab@linux-m68k.org>
5296
8966b757
AS
5297 * callint.c (Fcall_interactively): Use strchr, strrchr instead of
5298 index, rindex.
5299 * doc.c (get_doc_string, Fsnarf_documentation): Likewise.
5300 * editfns.c (Fuser_full_name, Fformat): Likewise.
5301 * emacs.c (argmatch, sort_args, decode_env_path): Likewise.
5302 * fileio.c (Ffile_symlink_p): Likewise.
5303 * filelock.c (current_lock_owner): Likewise.
5304 * font.c (font_parse_name, font_parse_family_registry): Likewise.
5305 * fontset.c (fontset_pattern_regexp): Likewise.
5306 * lread.c (read1): Likewise.
5307 * sysdep.c (init_system_name): Likewise.
5308 * xfns.c (select_visual): Likewise.
5309 * s/hpux10-20.h (index, rindex): Don't define.
5310 * s/ms-w32.h (index): Likewise.
5311 * s/usg5-4.h: Likewise.
5312
cf237e27
AS
5313 * callproc.c (relocate_fd): Use F_DUPFD if defined.
5314
a8fe7202
AS
5315 * alloc.c (pending_malloc_warning, malloc_warning): Add const.
5316 * callproc.c (relocate_fd, getenv_internal_1, getenv_internal)
5317 (egetenv): Likewise.
5318 * doprnt.c (doprnt): Likewise.
5319 * editfns.c (set_time_zone_rule, format2): Likewise.
5320 * emacs.c (decode_env_path): Likewise.
5321 * eval.c (signal_error, error): Likewise.
5322 * insdel.c (replace_range_2): Likewise.
5323 * keyboard.c (cmd_error_internal): Likewise.
5324 * lread.c (isfloat_string, make_symbol, dir_warning): Likewise.
5325 * print.c (write_string, write_string_1, print_error_message):
5326 Likewise.
5327 * vm-limit.c (warn_function, memory_warnings): Likewise.
5328 * xdisp.c (message1, message1_nolog, message_with_string)
5329 (vmessage, message, message_nolog): Likewise.
5330 * emacs.c: Remove duplicate declaration.
5331 * keyboard.h: Likewise.
5332 * lisp.h: Update prototypes.
5333
bb8e180f
AS
5334 * eval.c: Fix indentation problem.
5335
83380e65
AS
5336 * keyboard.c: Include "process.h"
5337
a64df650
AS
5338 * eval.c: Remove obsolete noinline declaration.
5339 * fns.c: Likewise.
5340
6a8033e1
KR
53412010-07-11 Ken Raeburn <raeburn@raeburn.org>
5342
5343 * doprnt.c (doprnt): Take a va_list argument instead of count and
5344 pointer.
5345 * eval.c (error): Change to a standard-C variadic function.
ef1b0ba7 5346 * xdisp.c (vmessage): Rename from message, made static, and
6a8033e1
KR
5347 changed to take a va_list argument.
5348 (message): New variadic wrapper.
5349 (message_nolog): Now a variadic function, calling vmessage.
5350 * lisp.h: Include stdarg.h for va_list.
5351 (doprnt, error, message, message_nolog): Decls updated.
5352
462aa963
EZ
53532010-07-11 Eli Zaretskii <eliz@gnu.org>
5354
5355 * process.c (syms_of_process) <delete-exited-processes>: Define
5356 even if !subprocesses.
5357 (delete_exited_processes): Ditto.
5358
5359 * msdos.c (syms_of_msdos) <delete-exited-processes>: Remove DEFVAR.
5360 (delete_exited_processes): Don't define.
5361
48104462
CY
53622010-07-10 Chong Yidong <cyd@stupidchicken.com>
5363
5364 * frame.c (make_frame): Initialize menu_bar_lines and
5365 tool_bar_lines members.
bba3e508
SM
5366 (make_initial_frame, make_terminal_frame):
5367 Initialize menu_bar_lines using value of menu-bar-mode.
48104462
CY
5368
5369 * msdos.c (IT_set_frame_parameters): Don't set menu-bar-lines.
5370
f388c88a
EZ
53712010-07-10 Eli Zaretskii <eliz@gnu.org>
5372
5373 * process.c: Reshuffle #include's. Condition some of the global
5374 and static variables on `subprocesses'.
5375 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
5376 Leave only one implementation.
5377 (Fget_buffer_process, Fprocess_inherit_coding_system_flag)
5378 (kill_buffer_processes, Flist_system_processes)
5379 (Fprocess_attributes, init_process, syms_of_process): Unify the
5380 implementations for with subprocesses and without them.
5381
723f5a07
J
53822010-07-09 Jan Djärv <jan.h.d@swipnet.se>
5383
5384 * xmenu.c (set_frame_menubar): Must realize menubar_widget to get the
5385 correct size for Motif.
5386 (free_frame_menubar): Call x_set_window_size to update frame size.
5387
5388 * xfns.c (x_window): Set borderWidth to 0 for pane and
5389 EmacsFrame. Frame size calculation is wrong otherwise.
5390
2536a4b7
MA
53912010-07-09 Michael Albinus <michael.albinus@gmx.de>
5392
5393 * dbusbind.c (xd_initialize): Add new argument RAISE_ERROR, which
5394 allows to suppress errors when polling in Emacs' main loop.
5395 (Fdbus_init_bus, Fdbus_get_unique_name, Fdbus_call_method)
5396 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
5397 (Fdbus_method_error_internal, Fdbus_send_signal)
5398 (xd_get_dispatch_status, xd_read_message, Fdbus_register_signal)
5399 (Fdbus_register_method): Use it. (Bug#6579)
5400
5842a27b
DN
54012010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
5402
5403 * alloc.c: Convert DEFUNs to standard C.
5404 * buffer.c:
5405 * bytecode.c:
5406 * callint.c:
5407 * callproc.c:
5408 * casefiddle.c:
5409 * casetab.c:
5410 * category.c:
5411 * character.c:
5412 * charset.c:
5413 * chartab.c:
5414 * cmds.c:
5415 * coding.c:
5416 * composite.c:
5417 * data.c:
5418 * dbusbind.c:
5419 * dired.c:
5420 * dispnew.c:
5421 * doc.c:
5422 * dosfns.c:
5423 * editfns.c:
5424 * emacs.c:
5425 * eval.c:
5426 * fileio.c:
5427 * filelock.c:
5428 * floatfns.c:
5429 * fns.c:
5430 * font.c:
5431 * fontset.c:
5432 * frame.c:
5433 * fringe.c:
5434 * image.c:
5435 * indent.c:
5436 * insdel.c:
5437 * keyboard.c:
5438 * keymap.c:
5439 * lread.c:
5440 * macros.c:
5441 * marker.c:
5442 * menu.c:
5443 * minibuf.c:
5444 * msdos.c:
5445 * nsfns.m:
5446 * nsmenu.m:
5447 * nsselect.m:
5448 * print.c:
5449 * process.c:
5450 * search.c:
5451 * sound.c:
5452 * syntax.c:
5453 * term.c:
5454 * terminal.c:
5455 * textprop.c:
5456 * undo.c:
5457 * w16select.c:
5458 * w32console.c:
5459 * w32fns.c:
5460 * w32font.c:
5461 * w32menu.c:
5462 * w32proc.c:
5463 * w32select.c:
5464 * window.c:
5465 * xdisp.c:
5466 * xfaces.c:
5467 * xfns.c:
5468 * xmenu.c:
5469 * xselect.c:
5470 * xsettings.c:
5471 * xsmfns.c: Likewise.
5472
d568829b
EZ
54732010-07-08 Eli Zaretskii <eliz@gnu.org>
5474
5475 * process.c (kbd_is_on_hold, hold_keyboard_input)
5476 (unhold_keyboard_input, kbd_on_hold_p) [!subprocesses]: Define.
5477
52214050
J
54782010-07-08 Jan Djärv <jan.h.d@swipnet.se>
5479
5480 * xmenu.c (set_frame_menubar, create_and_show_popup_menu)
5481 (create_and_show_dialog): Don't call apply_systemfont_to_(menu|dialog)
5482 unless USE_LUCID.
5483
313d9eb2
DN
54842010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
5485
a628ad9d
JB
5486 * xdisp.c (store_mode_line_noprop_char): Remove K&R alternative
5487 declaration.
d8825aa3 5488
295d0d8f
DN
5489 Clean up include guards.
5490 * tparam.c: Remove include guards for config.h, string.h and code
5491 that assumes #ifndef emacs.
5492 * termcap.c:
5493 * unexalpha.c:
5494 * sysdep.c:
5495 * filemode.c:
5496 * filelock.c:
5497 * bidi.c: Likewise.
5498
49d9e6b0
DN
5499 Remove prefix-args.c
5500 * prefix-args.c: Remove file.
5501 * autodeps.mk (ALLOBJS): Remove reference to prefix-args.
5502 * Makefile.in (temacs${EXEEXT}): Remove references to
5503 PRE_EDIT_LDFLAGS and POST_EDIT_LDFLAGS.
5504 (mostlyclean): Remove reference to prefix-args.
5505 (prefix-args): Remove.
5506
313d9eb2
DN
5507 Simplify cstart_of_data, start_of_code and related code.
5508 * mem-limits.h: Remove !emacs and _LIBC conditional code.
5509 (start_of_data): Merge into start_of_data function.
5510 * sysdep.c (start_of_text): Remove. Move simplified versions of
5511 it in the only users: unexaix.c and unexec.c.
5512 (read_input_waiting): Remove local declaration of quit_char.
5513 (start, etext): Remove declarations.
5514 (start_of_data): Merge with the version in mem-limits.h and move
5515 to vm-limits.c.
5516 * vm-limit.c (start_of_data): Merged and simplified version of the
5517 code formerly in mem-limits.h and sysdep.c.
5518 * unexec.c (start): New declaration, moved from sysdep.c.
5519 (start_of_text): Simplified version of the code formerly in sysdep.c.
5520 * unexaix.c (start_of_text): Simplified version of the code
5521 formerly in sysdep.c.
5522 * m/alpha.h (HAVE_TEXT_START): Remove.
5523 (TEXT_START): Move ...
5524 * unexalpha.c (TEXT_START): ... here.
5525 * s/hpux10-20.h (TEXT_START): Remove.
5526 * s/darwin.h (TEXT_START):
5527 * m/mips.h (TEXT_START):
5528 * m/macppc.h (HAVE_TEXT_START):
5529 * m/m68k.h (TEXT_START):
5530 * m/iris4d.h (TEXT_START):
5531 * m/intel386.h (TEXT_START):
5532 * m/ibmrs6000.h (TEXT_START):
5533 * m/ia64.h (HAVE_TEXT_START):
5534 * s/msdos.h (TEXT_START): Likewise.
5535
72af86bd
AS
55362010-07-07 Andreas Schwab <schwab@linux-m68k.org>
5537
5538 * alloc.c (overrun_check_malloc, overrun_check_realloc)
5539 (overrun_check_free, xstrdup, allocate_string)
5540 (allocate_string_data, compact_small_strings, Fmake_string)
5541 (make_unibyte_string, make_multibyte_string)
5542 (make_string_from_bytes, make_specified_string, make_float)
5543 (Fcons, allocate_terminal, allocate_frame, make_pure_string)
5544 (Fgarbage_collect): Replace bcopy, safe_bcopy, bzero, bcmp by
5545 memcpy, memmove, memset, memcmp.
5546 * atimer.c (start_atimer, set_alarm): Likewise.
5547 * buffer.c (clone_per_buffer_values, report_overlay_modification)
5548 (mmap_realloc, init_buffer_once): Likewise.
5549 * callint.c (Fcall_interactively): Likewise.
5550 * callproc.c (Fcall_process, Fcall_process_region, child_setup)
5551 (getenv_internal_1): Likewise.
5552 * casefiddle.c (casify_object): Likewise.
5553 * ccl.c (ccl_driver): Likewise.
5554 * character.c (str_as_multibyte, str_to_multibyte): Likewise.
5555 * charset.c (load_charset_map_from_file)
5556 (load_charset_map_from_file, load_charset_map_from_vector)
5557 (Fdefine_charset_internal): Likewise.
5558 * cm.c (Wcm_clear): Likewise.
5559 * coding.c (decode_eol, decode_coding_object)
5560 (Fset_coding_system_priority, make_subsidiaries): Likewise.
5561 * data.c (Faset): Likewise.
5562 * dired.c (directory_files_internal, file_name_completion_stat):
5563 Likewise.
5564 * dispnew.c (new_glyph_matrix, adjust_glyph_matrix)
5565 (clear_glyph_row, copy_row_except_pointers)
5566 (copy_glyph_row_contents, new_glyph_pool, realloc_glyph_pool)
5567 (save_current_matrix, restore_current_matrix)
5568 (build_frame_matrix_from_leaf_window, mirrored_line_dance)
5569 (mirror_line_dance, scrolling_window): Likewise.
5570 * doc.c (Fsnarf_documentation, Fsubstitute_command_keys):
5571 Likewise.
5572 * doprnt.c (doprnt): Likewise.
5573 * editfns.c (Fuser_full_name, make_buffer_string_both)
5574 (Fmessage_box, Fformat, Ftranspose_regions): Likewise.
5575 * emacs.c (sort_args): Likewise.
5576 * eval.c (Fapply, Ffuncall): Likewise.
5577 * fileio.c (Ffile_name_directory, make_temp_name)
5578 (Fexpand_file_name, search_embedded_absfilename)
5579 (Fsubstitute_in_file_name, Ffile_symlink_p, Finsert_file_contents)
5580 (auto_save_error): Likewise.
5581 * fns.c (Fstring_equal, Fcopy_sequence, concat)
5582 (string_to_multibyte, Fstring_as_unibyte, Fstring_as_multibyte)
5583 (internal_equal, Fclear_string, larger_vector, copy_hash_table)
5584 (Fmake_hash_table): Likewise.
5585 * fringe.c (Fdefine_fringe_bitmap): Likewise.
5586 * ftfont.c (ftfont_text_extents): Likewise.
5587 * getloadavg.c (getloadavg): Likewise.
5588 * image.c (define_image_type, make_image, make_image_cache)
5589 (x_create_x_image_and_pixmap, xbm_image_p)
5590 (w32_create_pixmap_from_bitmap_data, xbm_load, xpm_lookup_color)
5591 (xpm_image_p, x_create_bitmap_from_xpm_data, xpm_load)
5592 (init_color_table, x_build_heuristic_mask, pbm_image_p, pbm_load)
5593 (png_image_p, png_read_from_memory, png_load, jpeg_image_p)
5594 (tiff_image_p, tiff_read_from_memory, gif_image_p)
5595 (gif_read_from_memory, gif_load, svg_image_p, gs_image_p):
5596 Likewise.
5597 * indent.c (scan_for_column, compute_motion): Likewise.
5598 * insdel.c (gap_left, gap_right, make_gap_smaller, copy_text)
5599 (insert_1_both, insert_from_gap, replace_range_2): Likewise.
5600 * intervals.c (reproduce_tree, reproduce_tree_obj): Likewise.
5601 * keyboard.c (echo_char, save_getcjmp, restore_getcjmp)
5602 (kbd_buffer_store_event_hold, apply_modifiers_uncached)
5603 (store_user_signal_events, menu_bar_items, tool_bar_items)
5604 (process_tool_bar_item, append_tool_bar_item)
5605 (read_char_minibuf_menu_prompt, read_key_sequence)
5606 (Fread_key_sequence, Fread_key_sequence_vector, Frecent_keys):
5607 Likewise.
5608 * keymap.c (current_minor_maps, Fdescribe_buffer_bindings):
5609 Likewise.
5610 * lisp.h (STRING_COPYIN): Likewise.
5611 * lread.c (Fload, read1, oblookup): Likewise.
5612 * msdos.c (Frecent_doskeys): Likewise.
5613 * nsfns.m (Fx_create_frame): Likewise.
5614 * nsfont.m (nsfont_open, nsfont_text_extents, ns_glyph_metrics):
5615 Likewise.
5616 * nsimage.m (EmacsImage-initFromSkipXBM:width:height:)
5617 (EmacsImage-initForXPMWithDepth:width:height:flip:length:):
5618 Likewise.
5619 * nsmenu.m (ns_update_menubar): Likewise.
5620 * nsterm.m (ns_draw_fringe_bitmap, ns_term_init): Likewise.
5621 * print.c (print_unwind, printchar, strout, print_string)
5622 (print_error_message): Likewise.
5623 * process.c (conv_lisp_to_sockaddr, set_socket_option)
5624 (Fmake_network_process, Fnetwork_interface_list)
5625 (Fnetwork_interface_info, read_process_output, Fprocess_send_eof)
5626 (init_process): Likewise.
5627 * ralloc.c (resize_bloc, r_alloc_sbrk, r_alloc_init): Likewise.
5628 * regex.c (init_syntax_once, regex_compile, re_compile_fastmap):
5629 Likewise.
5630 * scroll.c (do_scrolling, do_direct_scrolling)
5631 (scrolling_max_lines_saved): Likewise.
5632 * search.c (search_buffer, wordify, Freplace_match): Likewise.
5633 * sound.c (wav_init, au_init, Fplay_sound_internal): Likewise.
5634 * syntax.c (skip_chars, skip_syntaxes): Likewise.
5635 * sysdep.c (child_setup_tty, sys_subshell, emacs_get_tty)
5636 (emacs_set_tty): Likewise.
5637 * term.c (encode_terminal_code, calculate_costs)
5638 (produce_special_glyphs, create_tty_output, init_tty, delete_tty):
5639 Likewise.
5640 * termcap.c (tgetst1, gobble_line): Likewise.
5641 * termhooks.h (EVENT_INIT): Likewise.
5642 * tparam.c (tparam1): Likewise.
5643 * unexalpha.c (unexec): Likewise.
5644 * unexec.c (write_segment): Likewise.
5645 * unexmacosx.c (unexec_write_zero): Likewise.
5646 * w32fns.c (w32_wnd_proc, Fx_create_frame, x_create_tip_frame)
5647 (Fx_file_dialog, Fsystem_move_file_to_trash): Likewise.
5648 * w32font.c (w32font_list_family, w32font_text_extents)
5649 (w32font_list_internal, w32font_match_internal)
5650 (w32font_open_internal, compute_metrics, Fx_select_font):
5651 Likewise.
5652 * w32menu.c (set_frame_menubar, add_menu_item)
5653 (w32_menu_display_help, w32_free_submenu_strings): Likewise.
5654 * w32term.c (XCreateGC, w32_initialize_display_info): Likewise.
5655 * w32uniscribe.c (uniscribe_list_family): Likewise.
5656 * w32xfns.c (get_next_msg, post_msg, prepend_msg): Likewise.
5657 * window.c (make_window, replace_window, set_window_buffer)
5658 (Fsplit_window): Likewise.
5659 * xdisp.c (init_iterator, RECORD_OVERLAY_STRING, reseat_to_string)
5660 (add_to_log, message3, x_consider_frame_title)
5661 (append_space_for_newline, extend_face_to_end_of_line)
5662 (decode_mode_spec_coding, init_glyph_string): Likewise.
5663 * xfaces.c (x_create_gc, get_lface_attributes_no_remap)
5664 (Finternal_copy_lisp_face, Finternal_merge_in_global_face)
5665 (face_attr_equal_p, make_realized_face, make_face_cache)
5666 (free_realized_faces, lookup_named_face, smaller_face)
5667 (face_with_height, lookup_derived_face)
5668 (x_supports_face_attributes_p, Finternal_set_font_selection_order)
5669 (Finternal_set_font_selection_order, realize_default_face)
5670 (compute_char_face, face_at_buffer_position)
5671 (face_for_overlay_string, face_at_string_position, merge_faces):
5672 Likewise.
5673 * xfns.c (xic_create_fontsetname, Fx_create_frame)
5674 (Fx_window_property, x_create_tip_frame)
5675 (Fx_backspace_delete_keys_p): Likewise.
5676 * xfont.c (xfont_list, xfont_match, xfont_list_family)
5677 (xfont_text_extents): Likewise.
5678 * xmenu.c (set_frame_menubar, xmenu_show): Likewise.
5679 * xrdb.c (magic_file_p, x_get_resource): Likewise.
5680 * xselect.c (x_queue_event, x_get_window_property)
5681 (receive_incremental_selection): Likewise.
5682 * xsmfns.c (x_session_check_input): Likewise.
5683 * xterm.c (x_send_scroll_bar_event, SET_SAVED_MENU_EVENT)
5684 (handle_one_xevent, x_check_errors, xim_initialize, x_term_init):
5685 Likewise.
5686 * character.h (BCOPY_SHORT): Removed.
5687 * config.in: Regenerate.
5688 * dispnew.c (safe_bcopy): Only define as dummy if PROFILING.
5689 * emacs.c (main) [PROFILING]: Don't declare
5690 dump_opcode_frequencies.
5691 * lisp.h (safe_bcopy): Remove declaration.
5692 (memset) [!HAVE_MEMSET]: Declare.
5693 (memcpy) [!HAVE_MEMCPY]: Likewise.
5694 (memmove) [!HAVE_MEMMOVE]: Likewise.
5695 (memcmp) [!HAVE_MEMCMP]: Likewise.
5696 * s/ms-w32.h (bzero, bcopy, bcmp, GAP_USE_BCOPY)
5697 (BCOPY_UPWARD_SAFE, BCOPY_DOWNWARD_SAFE, HAVE_BCOPY, HAVE_BCMP):
5698 Don't define.
5699 (HAVE_MEMCMP, HAVE_MEMCPY, HAVE_MEMMOVE, HAVE_MEMSET): Define.
5700 * s/msdos.h (GAP_USE_BCOPY, BCOPY_UPWARD_SAFE)
5701 (BCOPY_DOWNWARD_SAFE): Don't define.
5702 * sysdep.c (memset) [!HAVE_MEMSET]: Define.
5703 (memcpy) [!HAVE_MEMCPY]: Define.
5704 (memmove) [!HAVE_MEMMOVE]: Define.
5705 (memcmp) [!HAVE_MEMCMP]: Define.
5706
cb768704
J
57072010-07-07 Jan Djärv <jan.h.d@swipnet.se>
5708
5709 * process.c (kbd_is_on_hold): New variable.
a628ad9d
JB
5710 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
5711 New functions.
cb768704
J
5712 (wait_reading_process_output): If kbd_on_hold_p returns non-zero,
5713 select on empty input mask.
5714 (init_process): Initialize kbd_is_on_hold to 0.
5715
5716 * process.h (hold_keyboard_input, unhold_keyboard_input)
5717 (kbd_on_hold_p): Declare.
5718
5719 * keyboard.c (input_available_signal): Declare.
5720 (kbd_buffer_nr_stored): New function.
5721 (kbd_buffer_store_event_hold): If kbd_buffer_nr_stored returns
5722 more than KBD_BUFFER_SIZE/2, stop reding input (Bug#6571).
5723 (kbd_buffer_get_event): If input is suspended and kbd_buffer_nr_stored
5724 returns less than KBD_BUFFER_SIZE/4, resume reding input (Bug#6571).
5725 (tty_read_avail_input): If input is on hold, return.
5726 Don't read more that free slots in kbd_buffer (Bug#6571).
5727
3a8ce822
EZ
57282010-07-07 Eli Zaretskii <eliz@gnu.org>
5729
5730 * msdos.h:
5731 * msdos.c:
5732 * dosfns.c:
5733 * w16select.c: Convert function definitions to ANSI C.
5734
a628ad9d
JB
5735 * msdos.h (ctrl_break_func, install_ctrl_break_check):
5736 Remove unused prototypes.
3a8ce822 5737
cf84bb53
JB
57382010-07-07 Juanma Barranquero <lekktu@gmail.com>
5739
5740 * coding.c, sysdep.c: Convert some more functions to standard C.
5741
1a4990fb
JB
57422010-07-07 Juanma Barranquero <lekktu@gmail.com>
5743
5744 * coding.c (decode_coding_gap, encode_coding_gap, decode_coding_object)
5745 (encode_coding_object): Use SPECPDL_INDEX.
5746 (syms_of_coding): Use DOS_NT.
5747
c0f2f16b
DN
57482010-07-07 Dan Nicolaescu <dann@ics.uci.edu>
5749
48fb6855
DN
5750 * intervals.h (interval): Use EMACS_UINT instead of unsigned EMACS_INT.
5751
c0f2f16b
DN
5752 Make the function member of Lisp_Subr use standard C prototypes.
5753 * lisp.h (struct Lisp_Subr): Use a union for the function member.
5754 (DECL_ALIGN): Add a cast for the function.
5755 * eval.c (Feval, Ffuncall): Use the proper type for each type
5756 function call.
5757
67aecef9
CY
57582010-07-06 Chong Yidong <cyd@stupidchicken.com>
5759
5760 * fringe.c (draw_fringe_bitmap_1): Use lookup_named_face to get
5761 fringe face id, so face-remapping-alist works (Bug#6091).
5762
b56ceb92
JB
57632010-07-06 Juanma Barranquero <lekktu@gmail.com>
5764
5765 * w32.c, w32console.c, w32fns.c, w32font.c, w32heap.c, w32inevt.c
5766 * w32menu.c, w32proc.c, w32reg.c, w32select.c, w32term.c
5767 * w32uniscribe.c, w32xfns.c: Convert function definitions to standard C.
5768
7af07b96
AS
57692010-07-06 Andreas Schwab <schwab@linux-m68k.org>
5770
5771 * xterm.c (x_get_keysym_name): Change type of parameter to int.
5772 * lisp.h: Declare x_get_keysym_name.
5773 * keyboard.c (modify_event_symbol): Don't declare
5774 x_get_keysym_name here.
5775
69e24e34
DN
57762010-07-06 Dan Nicolaescu <dann@ics.uci.edu>
5777
5778 * ecrt0.c: Revert conversion to standard C.
5779
d3da34e0 57802010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
d2aa42f8
DN
5781
5782 * vm-limit.c (memory_warnings):
5783 * keyboard.c (modify_event_symbol):
5784 * floatfns.c (rounding_driver, ceiling2, floor2, truncate2)
5785 (round2, emacs_rint):
5786 * process.c (send_process, old_sigpipe): Convert function
5787 definitions and declarations to standard C.
5788
57892010-07-05 Juanma Barranquero <lekktu@gmail.com>
d3da34e0
JB
5790
5791 * buffer.c, cm.c, eval.c, keyboard.c, process.c, term.c, vm-limit.c,
5792 * xdisp.c: Convert function definitions to standard C.
5793
5794 * cm.c (cmputc): Arg C is now int, not char.
5795 * process.c (Fmake_network_process): Cast sockaddr_in* to sockaddr*.
5796
00be444c
J
57972010-07-05 James Cloos <cloos@jhcloos.com>
5798
5799 * xterm.h (Xatom_net_wm_name, Xatom_net_wm_icon_name): New.
5800
5801 * xterm.c (x_term_init): Intern the _NET_WM_NAME and
5802 _NET_WM_ICON_NAME atoms.
5803
5804 * xfns.c (x_set_name_internal): Set the EWMH _NET_WM_NAME
5805 and _NET_WM_ICON_NAME properties, too, matching what is
5806 done in the Gtk+ case.
5807
e4c8d29a
J
58082010-07-05 Jan Djärv <jan.h.d@swipnet.se>
5809
ff919460
J
5810 * xterm.c (XTring_bell, XTset_terminal_window): Fix wrong prototype.
5811
e4c8d29a
J
5812 * xsmfns.c (SSDATA): New macro.
5813 (smc_save_yourself_CB, x_session_initialize): Use SSDATA for strings
5814 passed to strlen/strcpy/strcat.
bba3e508
SM
5815 (create_client_leader_window): Surround with #ifndef USE_GTK.
5816 Cast 7:th arg to XChangeProperty to (unsigned char *).
e4c8d29a
J
5817
5818 * xsettings.c (something_changedCB, parse_settings)
5819 (apply_xft_settings): Reformat prototype.
5820 (something_changedCB, init_gconf): Remove unused variable i.
5821 (read_settings): Remove unused variable long_len.
5822
5823 * gtkutil.c (xg_get_pixbuf_from_pix_and_mask)
5824 (xg_get_image_for_pixmap, create_dialog)
5825 (xg_get_file_with_selection, xg_get_file_name, update_cl_data)
5826 (menuitem_highlight_callback, make_menu_item)
5827 (xg_create_one_menuitem, create_menus, xg_update_menu_item)
5828 (xg_create_scroll_bar, xg_update_scrollbar_pos)
5829 (xg_set_toolkit_scroll_bar_thumb, xg_tool_bar_button_cb)
5830 (xg_tool_bar_proxy_help_callback, xg_tool_bar_detach_callback)
5831 (xg_tool_bar_attach_callback, xg_tool_bar_help_callback)
5832 (xg_tool_bar_item_expose_callback): Reformat prototype.
5833 (xg_update_menubar): GList *group => GSList *group.
5834 (xg_modify_menubar_widgets): Initialize witem to 0, check witem != 0
5835 before use.
5836 (update_frame_tool_bar): 4:th param to xg_get_image_for_pixmap changed
5837 to GTK_IMAGE (wimage).
5838
dd4c5104
DN
58392010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
5840
898b4c5c
DN
5841 * atimer.c: Use "" instead of <> for local includes for
5842 consistency with the rest of the code.
5843
dd4c5104
DN
5844 * xsmfns.c (smc_save_yourself_CB, smc_error_handler):
5845 * xrdb.c (get_system_name):
5846 * window.c (shrink_windows):
5847 * syntax.c (forw_comment):
5848 * scroll.c (calculate_scrolling, calculate_direct_scrolling)
5849 (ins_del_costs):
5850 * mem-limits.h (start_of_data):
5851 * lread.c (readevalloop):
5852 * gtkutil.c (xg_dialog_response_cb, xg_get_file_with_chooser)
5853 (xg_get_file_with_selection, xg_update_menubar, xg_update_submenu):
5854 * frame.c (x_get_focus_frame):
5855 * floatfns.c (fmod_float):
5856 * fileio.c (choose_write_coding_system):
5857 * emacs.c (fatal_error_signal, init_cmdargs, argmatch)
5858 (malloc_initialize_hook, sort_args, synchronize_locale):
5859 * doprnt.c (doprnt):
5860 * dired.c (compile_pattern):
5861 * data.c (fmod_float):
5862 * chartab.c (map_sub_char_table, map_sub_char_table_for_charset)
5863 (map_char_table_for_charset):
5864 * charset.c (define_charset_internal):
5865 * alloc.c (Fgarbage_collect): Convert declarations or definitions
5866 to standard C.
5867
9a39b306 58682010-07-04 Tetsurou Okazaki <okazaki@be.to> (tiny change)
9c8a2331 5869 Stefan Monnier <monnier@iro.umontreal.ca>
9a39b306
TO
5870
5871 * lread.c (read1): Fix up last change to not mess up `c'.
5872
e6cb2cbb
JB
58732010-07-04 Juanma Barranquero <lekktu@gmail.com>
5874
5875 * strftime.c: Revert conversion to standard C (2010-07-04T07:50:25Z!dann@ics.uci.edu).
5876
438105ed
JB
58772010-07-04 Juanma Barranquero <lekktu@gmail.com>
5878
5879 Fix prototypes.
5880
e5447b22 5881 * atimer.c (start_atimer): Use EMACS_TIME, not struct timeval.
438105ed 5882 * dired.c (file_name_completion_stat): Use DIRENTRY, not struct dirent.
9c8a2331
JB
5883 * fileio.c (read_non_regular, read_non_regular_quit): Add Lisp_Object
5884 arg, as required by internal_condition_case_1.
dcc7404b 5885 * print.c (strout): Use const char* for arg PTR.
438105ed
JB
5886 * regex.c (bcmp_translate): Use RE_TRANSLATE_TYPE, not Lisp_Object.
5887 (analyse_first): Fix "const const".
e5447b22 5888 * sysdep.c (set_file_times): Use EMACS_TIME, not struct timeval.
b9503078 5889 * unexelf.c (round_up, find_section): Use ElfW macro for arguments.
e5447b22 5890 * xgselect.c (xg_select): Use SELECT_TYPE, EMACS_TIME.
438105ed 5891
971de7fb
DN
58922010-07-04 Dan Nicolaescu <dann@ics.uci.edu>
5893
5894 * alloc.c: Convert function definitions to standard C.
5895 * atimer.c:
5896 * bidi.c:
5897 * bytecode.c:
5898 * callint.c:
5899 * callproc.c:
5900 * casefiddle.c:
5901 * casetab.c:
5902 * category.c:
5903 * ccl.c:
5904 * character.c:
5905 * charset.c:
5906 * chartab.c:
5907 * cmds.c:
5908 * coding.c:
5909 * composite.c:
5910 * data.c:
5911 * dbusbind.c:
5912 * dired.c:
5913 * dispnew.c:
5914 * doc.c:
5915 * doprnt.c:
5916 * ecrt0.c:
5917 * editfns.c:
5918 * fileio.c:
5919 * filelock.c:
5920 * filemode.c:
5921 * fns.c:
5922 * font.c:
5923 * fontset.c:
5924 * frame.c:
5925 * fringe.c:
5926 * ftfont.c:
5927 * ftxfont.c:
5928 * gtkutil.c:
5929 * indent.c:
5930 * insdel.c:
5931 * intervals.c:
5932 * keymap.c:
5933 * lread.c:
5934 * macros.c:
5935 * marker.c:
5936 * md5.c:
5937 * menu.c:
5938 * minibuf.c:
5939 * prefix-args.c:
5940 * print.c:
5941 * ralloc.c:
5942 * regex.c:
5943 * region-cache.c:
5944 * scroll.c:
5945 * search.c:
5946 * sound.c:
5947 * strftime.c:
5948 * syntax.c:
5949 * sysdep.c:
5950 * termcap.c:
5951 * terminal.c:
5952 * terminfo.c:
5953 * textprop.c:
5954 * tparam.c:
5955 * undo.c:
5956 * unexelf.c:
5957 * window.c:
5958 * xfaces.c:
5959 * xfns.c:
5960 * xfont.c:
5961 * xftfont.c:
5962 * xgselect.c:
5963 * xmenu.c:
5964 * xrdb.c:
5965 * xselect.c:
5966 * xsettings.c:
5967 * xsmfns.c:
5968 * xterm.c: Likewise.
5969
ae492bec
EZ
59702010-07-03 Eli Zaretskii <eliz@gnu.org>
5971
76ea4cc9
EZ
5972 * msdos.c (IT_set_frame_parameters): Fix setting of colors in
5973 frames other than the initial one. Fix reversal of colors when
bba3e508
SM
5974 `reverse' is specified in the frame parameters.
5975 Call update_face_from_frame_parameter instead of
76ea4cc9
EZ
5976 internal-set-lisp-face-attribute. Initialize screen colors from
5977 initial_screen_colors[] when f->default_face_done_p is zero,
5978 instead of depending on being called with default-frame-alist as
5979 the alist argument.
5980
5981 * xfaces.c (update_face_from_frame_parameter): Move out of
5982 HAVE_WINDOW_SYSTEM portion. Condition window-system only parts
5983 with HAVE_WINDOW_SYSTEM.
5984
1e6255ae
EZ
5985 * msdos.c (IT_set_frame_parameters): Set menu-bar-lines according
5986 to menu-bar-mode, if not set in the frame parameters or in
5987 default-frame-alist.
5988
ae492bec
EZ
5989 * w32console.c (sys_tputs): Adjust argument list to prototype in
5990 term.c.
5991
3a35a84c
JB
59922010-07-03 Juanma Barranquero <lekktu@gmail.com>
5993
5994 * lisp.h (memory_warnings): Fix prototype.
5995
5996 * cm.h (evalcost): Fix prototype.
5997
5998 * cm.c (evalcost): Fix arg type.
5999
c532d349
DN
60002010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
6001
6002 * term.c (term_clear_mouse_face, Fidentity):
6003 * syssignal.h (signal_handler_t):
6004 * lisp.h (memory_warnings):
6005 * coding.h (preferred_coding_system):
6006 * cm.h (evalcost):
6007 * blockinput.h (reinvoke_input_signal): Convert to standard C prototypes.
6008
c0b36d46
EZ
60092010-07-02 Eli Zaretskii <eliz@gnu.org>
6010
6011 * dosfns.h (msdos_stdcolor_idx, msdos_stdcolor_name): Remove P_
6012 from prototypes.
6013
6014 * msdos.h (load_pixmap): Don't define away.
6015
383e0970
J
60162010-07-02 Jan Djärv <jan.h.d@swipnet.se>
6017
f57e2426
J
6018 * lisp.h:
6019 * atimer.h: Remove define for P_.
6020
6021 * alloc.c: Remove __P and P_ from .c and .m files.
6022 * atimer.c:
6023 * buffer.c:
6024 * callint.c:
6025 * category.c:
6026 * charset.c:
6027 * chartab.c:
6028 * cm.c:
6029 * coding.c:
6030 * composite.c:
6031 * data.c:
6032 * dired.c:
6033 * dispnew.c:
6034 * doc.c:
6035 * editfns.c:
6036 * emacs.c:
6037 * eval.c:
6038 * fileio.c:
6039 * filelock.c:
6040 * fns.c:
6041 * font.c:
6042 * fontset.c:
6043 * frame.c:
6044 * ftfont.c:
6045 * ftxfont.c:
6046 * gmalloc.c:
6047 * gtkutil.c:
6048 * image.c:
6049 * indent.c:
6050 * intervals.c:
6051 * keyboard.c:
6052 * keymap.c:
6053 * lread.c:
6054 * marker.c:
6055 * menu.c:
6056 * minibuf.c:
6057 * print.c:
6058 * process.c:
6059 * scroll.c:
6060 * search.c:
6061 * sound.c:
6062 * strftime.c:
6063 * syntax.c:
6064 * sysdep.c:
6065 * term.c:
6066 * terminal.c:
6067 * textprop.c:
6068 * unexalpha.c:
6069 * w32console.c:
6070 * w32fns.c:
6071 * w32font.c:
6072 * w32menu.c:
6073 * w32term.c:
6074 * w32uniscribe.c:
6075 * window.c:
6076 * xdisp.c:
6077 * xfaces.c:
6078 * xfns.c:
6079 * xfont.c:
6080 * xftfont.c:
6081 * xmenu.c:
6082 * xselect.c:
6083 * xterm.c: Likewise.
6084
383e0970 6085 Remove P_ and __P macros.
f57e2426
J
6086 * atimer.h: Remove P_ and __P macros.
6087 * buffer.h:
383e0970
J
6088 * category.h:
6089 * ccl.h:
6090 * character.h:
6091 * charset.h:
6092 * cm.h:
6093 * coding.h:
6094 * composite.h:
6095 * dispextern.h:
6096 * disptab.h:
9e892c8d 6097 * dosfns.h:
383e0970
J
6098 * font.h:
6099 * fontset.h:
6100 * frame.h:
6101 * gtkutil.h:
6102 * indent.h:
6103 * intervals.h:
6104 * keyboard.h:
6105 * keymap.h:
6106 * lisp.h:
6107 * macros.h:
6108 * md5.h:
6109 * menu.h:
6110 * msdos.h:
6111 * nsterm.h:
6112 * puresize.h:
6113 * region-cache.h:
6114 * syntax.h:
6115 * syssignal.h:
6116 * systime.h:
6117 * termhooks.h:
9e892c8d 6118 * w32font.h:
383e0970
J
6119 * w32term.h:
6120 * widget.h:
6121 * window.h:
6122 * xgselect.h:
6123 * xsettings.h:
6124 * xterm.h: Likewise.
6125
98601119
DN
61262010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
6127
d9170db5
DN
6128 * lisp.h: Document that USE_LISP_UNION_TYPE is now enabled using autoconf.
6129
98601119
DN
6130 Cleanup old code.
6131 * dired.c (BSD4_3): Remove all uses, redundant with BSD4_2.
6132 * syssignal.h: Remove code for Lynx, not supported anymore.
6133 * vm-limit.c: Remove unused code the depends on emacs not being
6134 defined and NO_LIM_DATA being defined.
6135 * mem-limits.h: Remove dead code.
6136
1f984e12
J
61372010-07-01 Jan Djärv <jan.h.d@swipnet.se>
6138
c49d071a
J
6139 * window.c (Fwindow_absolute_pixel_edges): Doc fix.
6140
9d5405ec
J
6141 * window.c (calc_absolute_offset, Fwindow_absolute_pixel_edges)
6142 (Fwindow_inside_absolute_pixel_edges): New functions (bug#5721).
6143
7a18115b
J
6144 * nsfns.m (compute_tip_xy): Do not convert coordinates from frame
6145 parameters, they are already absolute.
6146
a628ad9d
JB
6147 * nsterm.m (x_set_window_size, initFrameFromEmacs):
6148 Rename FRAME_NS_TOOLBAR_HEIGHT to FRAME_TOOLBAR_HEIGHT.
581a8100 6149
a628ad9d 6150 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
581a8100 6151
a628ad9d
JB
6152 * nsmenu.m (update_frame_tool_bar, free_frame_tool_bar):
6153 Update FRAME_TOOLBAR_HEIGHT.
581a8100 6154
a628ad9d
JB
6155 * nsmenu.m (free_frame_tool_bar, update_frame_tool_bar):
6156 Add BLOCK/UNBLOCK_INPUT so asserts don't trigger.
1f984e12 6157
c1ef4455
CY
61582010-06-30 Chong Yidong <cyd@stupidchicken.com>
6159
bba3e508
SM
6160 * frame.c (get_future_frame_param, Fmake_terminal_frame):
6161 Don't check default-frame-alist.
c1ef4455 6162
ce8f5a9a
AS
61632010-06-30 Andreas Schwab <schwab@linux-m68k.org>
6164
6165 * process.c (create_process): Avoid using invalid file descriptors.
6166
6167 * callproc.c (child_setup): Avoid closing a file descriptor twice.
6168
bf935339
J
61692010-06-30 Jan Djärv <jan.h.d@swipnet.se>
6170
6171 * xsettings.c (Ffont_get_system_normal_font, Ffont_get_system_font):
6172 Improve documentation. Return font regardless of use_system_font.
6173 (syms_of_xsettings): Improve documentation for font-use-system-font.
6174
7c33a057
CY
61752010-07-10 Chong Yidong <cyd@stupidchicken.com>
6176
2ec1b5ee
CY
6177 * xfaces.c (realize_face): Garbage the frame if a face is removed
6178 (Bug#6593).
6179
61802010-07-05 Andreas Schwab <schwab@linux-m68k.org>
6181
6182 * keyboard.c: Remove duplicate <setjmp.h>.
6183 (read_key_sequence): Remove volatile qualifiers.
6184
61852010-07-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6186
6187 * dispextern.h (FRINGE_HEIGHT_BITS): New define.
6188 (struct glyph_row): New members left_fringe_offset and
6189 right_fringe_offset.
6190
6191 * xterm.c (x_draw_fringe_bitmap): Don't clip bottom aligned bitmap
6192 specially.
6193 * w32term.c (w32_draw_fringe_bitmap): Likewise.
6194 * nsterm.m (ns_draw_fringe_bitmap): Likewise.
6195
6196 * fringe.c (draw_fringe_bitmap_1): Don't clip bitmap here.
f6003da5 6197 Take account of bitmap offset.
2ec1b5ee
CY
6198 (draw_window_fringes): Take account of window vscroll.
6199 (update_window_fringes): Likewise. Extend top-aligned top indicator
6200 or bottom-aligned bottom indicator to adjacent rows if it doesn't fit
6201 in one row. Don't set redraw_fringe_bitmaps_p outside row comparison.
6202 Set left_fringe_offset and right_fringe_offset (Bug#5634, Bug#6325).
6203
62042010-07-04 Juanma Barranquero <lekktu@gmail.com>
6205
6206 * w32fns.c (Qtooltip): Declare.
6207 Suggested by Andy Moreton <andrewjmoreton@gmail.com>.
6208
62092010-07-03 Jan Djärv <jan.h.d@swipnet.se>
6210
6211 * xmenu.c (x_activate_menubar): Send Press/Release for Gtk+ to avoid
6212 grab on just Press (Bug#6499).
6213
62142010-07-02 Chong Yidong <cyd@stupidchicken.com>
6215
6216 * frame.c (Qtooltip): New var.
6217 (delete_frame): Use it. Fix faulty if statement. Don't update
6218 mode line for tooltip frames. Suggested by Martin Rudalics.
6219
6220 * xfns.c (x_create_tip_frame):
6221 * w32fns.c (x_create_tip_frame): Use it.
6222
62232010-06-17 Naohiro Aota <naota@elisp.net> (tiny change)
769e9d47
KH
6224
6225 * xftfont.c (xftfont_open): Check font width one by one also when
6226 spacing is dual.
6227
6228 * ftfont.c (ftfont_open): Ditto.
6229
6259c2ec
GM
62302010-06-30 Glenn Morris <rgm@gnu.org>
6231
a46007e9
GM
6232 * s/sol2-6.h (INHIBIT_X11R6_XIM): Remove, handled by configure now.
6233
6259c2ec
GM
6234 * Makefile.in (CANNOT_DUMP): Update for configure name change.
6235
6236 * s/freebsd.h (USE_MMAP_FOR_BUFFERS):
6237 * s/irix6-5.h (USE_MMAP_FOR_BUFFERS):
6238 * s/darwin.h (SYSTEM_MALLOC):
6239 * s/sol2-10.h (SYSTEM_MALLOC): Move to configure.
6240
5d1d3d04
J
62412010-06-29 Jan Djärv <jan.h.d@swipnet.se>
6242
6243 * nsfns.m: extern declare Vmenu_bar_mode, Vtool_bar_mode.
6244 (ns_get_screen): Don't assign integer to f.
6245 (Fx_display_color_cells): Declarations before statements.
6246
e547b051
J
62472010-06-28 Jan Djärv <jan.h.d@swipnet.se>
6248
5fc8e5bc
J
6249 * xfns.c (x_default_font_parameter): Remove got_from_system
6250 (Bug#6526).
6251
e547b051 6252 * xterm.h (gtk_widget_get_window, gtk_widget_get_mapped)
bba3e508
SM
6253 (gtk_adjustment_get_page_size, gtk_adjustment_get_upper):
6254 New defines based on what configure finds.
e547b051
J
6255
6256 * xterm.c (XTflash): Use gtk_widget_get_window.
6257 (xg_scroll_callback): Use gtk_adjustment_get_upper and
6258 gtk_adjustment_get_page_size.
6259 (handle_one_xevent): Use gtk_widget_get_mapped.
6260 (x_term_init): Remove HAVE_GTK_MULTIDISPLAY and associated error
6261 messages.
6262
6263 * xmenu.c (create_and_show_popup_menu): Call gtk_widget_get_mapped.
6264
6265 * gtkutil.h: Replace HAVE_GTK_FILE_BOTH with
6266 HAVE_GTK_FILE_SELECTION_NEW.
6267
bba3e508
SM
6268 * gtkutil.c (xg_display_open, xg_display_close):
6269 Remove HAVE_GTK_MULTIDISPLAY, it is always defined.
e547b051
J
6270 (xg_display_open): Return type is void.
6271 (gtk_widget_set_has_window)
6272 (gtk_dialog_get_action_area, gtk_dialog_get_content_area)
6273 (gtk_widget_get_sensitive, gtk_adjustment_set_page_size)
6274 (gtk_adjustment_set_page_increment)
6275 (gtk_adjustment_get_step_increment): #define these if not found
6276 by configure.
6277 (remove_submenu): New define based on Gtk+ version.
bba3e508
SM
6278 (xg_set_cursor, xg_frame_resized, xg_event_is_for_scrollbar):
6279 Use gtk_widget_get_window.
e547b051
J
6280 (xg_frame_resized, xg_update_frame_menubar): Use gtk_widget_get_mapped.
6281 (xg_create_frame_widgets): Use gtk_widget_set_has_window.
6282 (create_dialog): Use gtk_dialog_get_action_area and
6283 gtk_dialog_get_content_area.
6284 (xg_uses_old_file_dialog, xg_get_file_name): Remove HAVE_GTK_FILE_BOTH
6285 and HAVE_GTK_FILE_CHOOSER_DIALOG_NEW. File chooser is always
6286 available, so checking for HAVE_GTK_FILE_SELECTION_NEW is enough.
bba3e508
SM
6287 (xg_update_menubar, xg_update_submenu, xg_show_toolbar_item):
6288 Use g_object_ref and g_object_unref.
6289 (xg_update_menu_item, xg_tool_bar_menu_proxy):
6290 Use gtk_widget_get_sensitive.
e547b051
J
6291 (xg_update_submenu): Use remove_submenu.
6292 (xg_update_scrollbar_pos): Don't use GtkFixedChild, use child
6293 properties instead to get old x and y position.
6294 (xg_set_toolkit_scroll_bar_thumb): Use gtk_adjustment_get_page_size,
6295 gtk_adjustment_get_step_increment, gtk_adjustment_set_page_size,
2b7e356a 6296 gtk_adjustment_set_step_increment and gtk_adjustment_set_page_increment.
e547b051
J
6297 (xg_get_tool_bar_widgets): New function.
6298 (xg_tool_bar_menu_proxy, xg_show_toolbar_item)
6299 (update_frame_tool_bar): Call xg_get_tool_bar_widgets.
6300 (toolbar_set_orientation): New #define based on if configure
6301 finds gtk_orientable_set_orientation.
6302 (xg_create_tool_bar): Call toolbar_set_orientation.
6303 (xg_make_tool_item, xg_show_toolbar_item): Call gtk_box_pack_start
6304 instead of gtk_box_pack_start_defaults.
6305
b9229673
CY
63062010-06-28 Chong Yidong <cyd@stupidchicken.com>
6307
6308 * cmds.c (Fdelete_backward_char): Move into Lisp.
6309
bbc803b0
DN
63102010-06-27 Dan Nicolaescu <dann@ics.uci.edu>
6311
6312 * s/freebsd.h (BSD4_2): Remove redundant definition.
6313 bsd-common.h defines it already.
6314
6431f2e6
CY
63152010-06-27 Chong Yidong <cyd@stupidchicken.com>
6316
6317 * xfns.c (Fx_create_frame): Don't consult X resouces when setting
6318 menu-bar-lines and tool-bar-lines. Use menu-bar-mode and
6319 tool-bar-mode, which are now set using these X resources at
6320 startup, to determine the defaults (Bug#2249).
6321
6322 * w32fns.c (Fx_create_frame):
6323 * nsfns.m (Fx_create_frame): Likewise.
6324
6325 * frame.c (Vmenu_bar_mode, Vtool_bar_mode): New vars.
6326
8c079ebb
JB
63272010-06-24 Juanma Barranquero <lekktu@gmail.com>
6328
6329 * gtkutil.c (xg_update_scrollbar_pos):
6330 Avoid C99 mid-block variable declaration.
6331
e9b7ab96
JD
63322010-06-22 Jan Djärv <jan.h.d@swipnet.se>
6333
bc869eca
JD
6334 * xterm.c (x_scroll_bar_create): Remove call to xg_show_scroll_bar.
6335
2b7e356a 6336 * gtkutil.h (xg_show_scroll_bar): Remove.
bc869eca
JD
6337
6338 * gtkutil.c (xg_update_scrollbar_pos): Show/hide scroll bar as needed
6339 if height is less than scroll bar min size.
6340 (xg_show_scroll_bar): Remove, show moved to xg_update_scrollbar_pos.
6341
e9b7ab96
JD
6342 * xfns.c (x_default_font_parameter): Try to open font from system
6343 before using it (bug#6478). Rename got_from_gconf to got_from_system.
6344
a628ad9d 63452010-06-22 Keith Packard <keithp@keithp.com> (tiny change)
32a679fd
JD
6346
6347 * font.c (font_parse_fcname): Allow . for sizes like 7.5 (bug#6437).
6348
70c4cfbb
EZ
63492010-06-20 Eli Zaretskii <eliz@gnu.org>
6350
6351 * xdisp.c (try_scrolling): When scroll-conservatively is set to
6352 most-positive-fixnum, be extra accurate when scrolling window
6353 start, to avoid missing the cursor line.
6354
ad5a12b5
EZ
63552010-06-19 Eli Zaretskii <eliz@gnu.org>
6356
6357 * xdisp.c (try_scrolling): Compute the limit for searching point
6358 in forward scroll from scroll_max, instead of an arbitrary limit
ef1b0ba7
SM
6359 of 10 screen lines.
6360 See http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00766.html
ad5a12b5
EZ
6361 and
6362 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00773.html
6363 for details.
6364
2a64315a 63652010-06-16 Glenn Morris <rgm@gnu.org>
6fda6a0c
GM
6366
6367 * editfns.c (Fbyte_to_string): Pacify compiler.
6368
288cf4e9
SM
63692010-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
6370
6371 * lread.c (read1): Phase out old-style backquotes a bit more.
6372
6e6e5760
EZ
63732010-06-12 Eli Zaretskii <eliz@gnu.org>
6374
cbc4fd20
EZ
6375 * makefile.w32-in ($(BLD)/bidi.$(O)): Depend on biditype.h and
6376 bidimirror.h.
6377
6378 * deps.mk (bidi.o): Depend on biditype.h and bidimirror.h.
6379
317fbf33
EZ
6380 * bidi.c (bidi_initialize): Remove explicit initialization of
6381 bidi_type_table; include biditype.h instead. Don't support
288cf4e9 6382 entries whose second codepoint is zero. Initialize bidi_mirror_table.
cbc4fd20 6383 (bidi_mirror_char): Use bidi_mirror_table.
317fbf33
EZ
6384
6385 * biditype.h: New file.
6386
cbc4fd20
EZ
6387 * bidimirror.h: New file.
6388
6e6e5760
EZ
6389 * window.c (syms_of_window): Doc fix (bug#6409).
6390
4176cba2
RF
63912010-06-12 Romain Francoise <romain@orebokech.com>
6392
6393 * Makefile.in (lisp, shortlisp): Use new location of vc-hooks and
6394 ediff-hook.
6395
cb4bfcb5
GM
63962010-06-10 Glenn Morris <rgm@gnu.org>
6397
64c60c2f
GM
6398 * editfns.c (Fbyte_to_string): Pacify compiler.
6399
cb4bfcb5
GM
6400 * m/ibms390x.h: Rather than duplicating ibms390.h, just include it.
6401
2ec1b5ee
CY
64022010-06-26 Andreas Schwab <schwab@linux-m68k.org>
6403
6404 * alloc.c (Fmake_byte_code): Don't access undefined argument
6405 (Bug#6517).
6406
64072010-06-25 Chong Yidong <cyd@stupidchicken.com>
6408
6409 * xdisp.c (next_element_from_image): Ensure that after-strings are
6410 read the next time we hit handle_stop (Bug#1336).
6411
64122010-06-23 Andreas Schwab <schwab@linux-m68k.org>
6413
6414 * lread.c (read1): Signal error if #s is not followed by paren.
6415
64162010-06-19 Chong Yidong <cyd@stupidchicken.com>
6417
6418 * image.c (free_image): Mark frame as garbaged (Bug#6426).
6419
6420 * keymap.c (Fdefine_key): Doc fix (Bug#6460).
6421
64222010-06-15 Glenn Morris <rgm@gnu.org>
6423
6424 * editfns.c (Fbyte_to_string): Pacify compiler.
6425
e454a4a3
SM
64262010-06-09 Stefan Monnier <monnier@iro.umontreal.ca>
6427
6428 * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
6429 Check `object's type before accessing its guts.
6430
c1b1acc2
DN
64312010-06-09 Dan Nicolaescu <dann@ics.uci.edu>
6432
6433 * s/usg5-4.h: Fix previous change.
6434 Suggested by Lawrence Mitchell <wence@gmx.li>
6435
657d4c0b
AS
64362010-06-08 Andreas Schwab <schwab@linux-m68k.org>
6437
6438 * minibuf.c (Fall_completions): Add more checks.
6439
9b27fd9f
JB
64402010-06-08 Juanma Barranquero <lekktu@gmail.com>
6441
6442 * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
6443
a99ebb40
DN
64442010-06-08 Dan Nicolaescu <dann@ics.uci.edu>
6445
d7c5d87d
DN
6446 * lread.c (X_OK): Remove, unused.
6447
0263a941
DN
6448 * dispnew.c: Remove obsolete comment.
6449
a99ebb40
DN
6450 Remove INCLUDED_FCNTL.
6451 * xterm.c (INCLUDED_FCNTL):
6452 * callproc.c (INCLUDED_FCNTL):
6453 * alloc.c (INCLUDED_FCNTL):
6454 * systty.h (INCLUDED_FCNTL): Remove all uses, not needed anymore.
6455 (emacs_get_tty, emacs_set_tty): Declare unconditionally.
6456
13b5221f
MR
64572010-06-07 Martin Rudalics <rudalics@gmx.at>
6458
6459 * window.c (Fselect_window): Move `record_buffer' up to the
6460 beginning of this function, so the buffer gets recorded
6461 even if the selected window does not change.
6462 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00137.html
6463
5220357f
JB
64642010-06-07 Juanma Barranquero <lekktu@gmail.com>
6465
6466 * cmds.c (Fforward_char, Fbackward_char): Fix typos in docstrings.
6467 (Fforward_line, Fbeginning_of_line): Reflow docstrings.
6468
3085237c
DN
64692010-06-06 Dan Nicolaescu <dann@ics.uci.edu>
6470
6471 Remove BSTRING related code, all platforms define it.
6472 * s/usg5-4.h (BSTRING): Remove definition.
6473 * s/template.h (BSTRING):
6474 * s/msdos.h (BSTRING):
6475 * s/ms-w32.h (BSTRING):
6476 * s/hpux10-20.h (BSTRING):
6477 * s/gnu-linux.h (BSTRING):
6478 * s/darwin.h (BSTRING):
6479 * s/cygwin.h (BSTRING):
6480 * s/bsd-common.h (BSTRING):
6481 * s/aix4-2.h (BSTRING): Likewise.
6482 * sysdep.c: Remove code depending on BSTRING not being defined.
6483
409f2919
JB
64842010-06-05 Juanma Barranquero <lekktu@gmail.com>
6485
6486 Remove obsolete macro BASE_LEADING_CODE_P.
6487 * character.h (BASE_LEADING_CODE_P): Remove.
6488 * regex.c [!emacs] (BASE_LEADING_CODE_P): Remove.
6489 * buffer.c (Fset_buffer_multibyte):
6490 * indent.c (scan_for_column, compute_motion):
6491 * insdel.c (count_combining_before, count_combining_after):
6492 Use LEADING_CODE_P instead of BASE_LEADING_CODE_P.
6493
087fc47a
JB
64942010-06-04 Juanma Barranquero <lekktu@gmail.com>
6495
6496 Turn `directory-sep-char' into a noop.
6497
6498 * lisp.h [WINDOWSNT] (Vdirectory_sep_char): Don't declare.
6499 (DIRECTORY_SEP): Define unconditionally.
6500
6501 * s/ms-w32.h (DIRECTORY_SEP): Remove.
6502
6503 * emacs.c (decode_env_path): Don't check DIRECTORY_SEP,
6504 call dostounix_filename directly.
6505
6506 * fileio.c (CORRECT_DIR_SEPS): Remove.
6507 (Ffile_name_directory, directory_file_name, Fexpand_file_name)
6508 (Fsubstitute_in_file_name): Use dostounix_filename instead.
6509 (file_name_as_directory): Use dostounix_filename, DIRECTORY_SEP.
6510 (syms_of_fileio) <directory-sep-char>: Move to subr.el.
6511
6512 * w32proc.c (CORRECT_DIR_SEPS): Remove.
6513 (Fw32_short_file_name, Fw32_long_file_name): Use dostounix_filename.
6514
0eb7675e
AS
65152010-06-03 Andreas Schwab <schwab@linux-m68k.org>
6516
a628ad9d
JB
6517 * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4 address.
6518 (Bug#6346)
0eb7675e 6519
78edd3b7
JB
65202010-06-03 Juanma Barranquero <lekktu@gmail.com>
6521
6522 * ccl.c (Fccl_program_p): Fix typo in docstring.
6523
eb697db5
DN
65242010-06-03 Dan Nicolaescu <dann@ics.uci.edu>
6525
6526 Move UNEXEC definition to autoconf.
6527 * s/usg5-4.h (UNEXEC): Remove, move to configure.in.
6528 * s/sol2-10.h (UNEXEC):
6529 * s/irix6-5.h (UNEXEC):
6530 * s/hpux10-20.h (UNEXEC):
6531 * s/gnu-linux.h (UNEXEC):
6532 * s/darwin.h (UNEXEC):
6533 * s/cygwin.h (UNEXEC):
6534 * s/bsd-common.h (UNEXEC):
6535 * s/aix4-2.h (UNEXEC):
6536 * m/alpha.h (UNEXEC): Likewise.
6537 * Makefile.in (UNEXEC_OBJ): Define using @UNEXEC_OBJ@.
6538
aa3830c4
JB
65392010-06-03 Juanma Barranquero <lekktu@gmail.com>
6540
6541 Remove obsolete pre-unicode2 macros.
6542 * character.h (MULTIBYTE_FORM_LENGTH, PARSE_MULTIBYTE_SEQ): Remove.
6543 * composite.c (composition_reseat_it):
6544 * data.c (Faset):
6545 * fns.c (Ffillarray):
6546 * regex.c (re_search_2): Use BYTES_BY_CHAR_HEAD.
6547 [!emacs] (BYTES_BY_CHAR_HEAD): Define instead of MULTIBYTE_FORM_LENGTH.
6548
d234d13e
JL
65492010-06-03 Juri Linkov <juri@jurta.org>
6550
6551 * buffer.c (Fother_buffer): Add CHECK_FRAME.
6552 (Fswitch_to_buffer): Remove unused variable `err'.
6553
0d4bcf4d
GM
65542010-06-03 Glenn Morris <rgm@gnu.org>
6555
e23dc1e2
GM
6556 * m/template.h (NO_SOCK_SIGIO): Remove, no longer used.
6557
05b09564
GM
6558 * m/hp800.h (alloca) [__NetBSD__ && __GNUC__]: No need to define it,
6559 now that AH_BOTTOM does it.
6560
824e2978
GM
6561 * m/hp800.h (HAVE_ALLOCA):
6562 * m/ibms390x.h (HAVE_ALLOCA): Do not define, no longer needed.
6563
0d4bcf4d
GM
6564 * m/ia64.h, s/gnu-linux.h, s/gnu.h, s/netbsd.h, s/usg5-4.h:
6565 Remove NOT_C_CODE tests, it is always true now.
6566
c55d2abf
DN
65672010-06-02 Dan Nicolaescu <dann@ics.uci.edu>
6568
08a494a3
DN
6569 Fix config.h includes.
6570 * xsettings.c:
6571 * xgselect.c:
6572 * nsterm.m:
6573 * nsselect.m:
6574 * nsimage.m:
6575 * nsfont.m:
6576 * nsfns.m:
6577 * dbusbind.c: Use #include <config.h> instead of "config.h" as all
6578 other files do.
6579
75934b1d
DN
6580 * gmalloc.c: Remove BROKEN_PROTOTYPES reference, unused.
6581
9f32a766
DN
6582 * s/sol2-6.h: Remove obsolete comments.
6583
c55d2abf
DN
6584 Remove unnecessary alloca.h includes.
6585 * keymap.c: Do not include alloca.h, config.h does that.
6586 * sysdep.c: Likewise. Do not define fwrite, not used.
6587
06ac62b4
SM
65882010-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
6589
6590 * sysdep.c (child_setup_tty): Move the non-canonical initialization to
6591 the HAVE_TERMIO where it belongs (bug#6149).
6592
1ab8293c
SM
65932010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
6594
6595 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
6596 of bug#6305).
6597
6dcfd253
EZ
65982010-05-30 Eli Zaretskii <eliz@gnu.org>
6599
6600 * bidi.c (bidi_move_to_visually_next): Make sure the sentinel
6601 state is always cached (bug#6306).
6602
6d26bbb2
EZ
66032010-05-29 Eli Zaretskii <eliz@gnu.org>
6604
06fa4a23
EZ
6605 Fix cursor motion in bidi-reordered continued lines.
6606 * xdisp.c (try_cursor_movement): Backup to non-continuation line
6607 only after finding point's row. Fix the logic. Rewrite the loop
ef1b0ba7
SM
6608 over continuation lines in bidi-reordered buffers.
6609 Return CURSOR_MOVEMENT_MUST_SCROLL upon failure to find a suitable row,
6d26bbb2
EZ
6610 rather than CURSOR_MOVEMENT_CANNOT_BE_USED.
6611
f5783df3
MA
66122010-05-28 Michael Albinus <michael.albinus@gmx.de>
6613
6614 * fileio.c (Fdelete_file): Pass TRASH arg to handler call.
6615
7d56b2dd
KH
66162010-05-28 Kenichi Handa <handa@m17n.org>
6617
6618 * font.c (font_delete_unmatched): Check Vface_ignored_fonts.
6619 Don't sheck SPEC if it is nil.
6620 (font_list_entities): Call font_delete_unmatched if
b925d231 6621 Vface_ignored_fonts is non-nil. (Bug#6287)
7d56b2dd 6622
e58d4ff7
GM
66232010-05-28 Glenn Morris <rgm@gnu.org>
6624
6625 * Makefile.in (LIBES): Remove $LOADLIBES, it is never set.
6626
f1a5d776
CY
66272010-05-27 Chong Yidong <cyd@stupidchicken.com>
6628
6629 * fileio.c (Fdelete_file): Change meaning of optional arg to mean
6630 whether to trash.
6631 (internal_delete_file, Frename_file): Callers changed.
6632 (delete_by_moving_to_trash): Doc fix.
6633 (Fdelete_directory_internal): Don't move to trash.
6634
6635 * callproc.c (delete_temp_file):
6636 * buffer.c (Fkill_buffer): Callers changed.
6637
6638 * lisp.h: Update prototype.
6639
f44a59e6
CY
66402010-05-27 Chong Yidong <cyd@stupidchicken.com>
6641
6642 * xdisp.c (redisplay_window): After redisplay, check if point is
6643 still valid before setting it (Bug#6177).
6644
81ac4f35
GM
66452010-05-27 Glenn Morris <rgm@gnu.org>
6646
6647 * Makefile.in, autodeps.mk, deps.mk, ns.mk:
6648 Convert comments to Makefile format.
6649
6650 * Makefile.in (bootstrap-clean): No more Makefile.c.
6651
ccd89fb3
GM
66522010-05-26 Glenn Morris <rgm@gnu.org>
6653
90278cb6
GM
6654 * Makefile.in (YMF_PASS_LDFLAGS): Remove.
6655 (temacs${EXEEXT}): Use PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS.
6656
ccd89fb3
GM
6657 * Makefile.in (NS_IMPL_GNUSTEP_INC, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
6658 Remove.
6659 (TEMACS_LDFLAGS): Do not use NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
6660
b7050583
KH
66612010-05-26 Kenichi Handa <handa@m17n.org>
6662
6663 * composite.c (composition_compute_stop_pos): Fix condition for
6664 backward scanning.
6665
e5458003
GM
66662010-05-25 Glenn Morris <rgm@gnu.org>
6667
c345fe90
GM
6668 * Makefile.in (@NS_IMPL_GNUSTEP_INC@, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
6669 Move before TEMACS_LDFLAGS.
6670 (TEMACS_LDFLAGS): Use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
6671 (temacs${EXEEXT}): Do not use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
6672
2e0689ab
GM
6673 * Makefile.in (NOT_C_CODE): No longer define.
6674 (config.h): No longer include.
6675
8009a5e8
GM
6676 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): Move definition after some
6677 variables it may reference.
6678
e5458003
GM
6679 * Makefile.in (LD_SWITCH_SYSTEM_EXTRA): Remove.
6680 (TEMACS_LDFLAGS): Remove LD_SWITCH_SYSTEM_EXTRA.
6681
10f72a37
KH
66822010-05-25 Kenichi Handa <handa@m17n.org>
6683
6684 * dispextern.h (struct composition_it): New members rule_idx and
6685 charpos.
6686
6687 * xdisp.c (set_iterator_to_next): While scanning backward, assume
6688 that the character positions of IT point the last character of the
6689 current grapheme cluster.
6690 (next_element_from_composition): Don't change character positions
6691 of IT.
6692 (append_composite_glyph): Set glyph->charpos to
6693 it->cmp_it.charpos.
6694
6695 * composite.c (autocmp_chars): Change the first argument to RULE,
6696 and try composition with RULE only.
6697 (composition_compute_stop_pos): Record the index number of the
6698 composition rule in CMP_IT->rule_idx.
6699 (composition_reseat_it): Call autocmp_chars repeatedly until the
6700 correct rule of the composition is found.
6701 (composition_update_it): Set CMP_IT->charpos. Assume the CHARPOS
6702 is at the last character of the current grapheme cluster when
6703 CMP_IT->reversed_p is nonzero.
6704
171eda53 67052010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
f5b416d2 6706
171eda53
SM
6707 * editfns.c (Fbyte_to_string): New function.
6708
66a9f7f4
SM
67092010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
6710
6711 * process.c (Fmake_network_process): Set :host to nil if it's not used.
6712 Suggested by Masatake YAMATO <yamato@redhat.com>.
6713
d8c315d1
EZ
67142010-05-23 Eli Zaretskii <eliz@gnu.org>
6715
171eda53 6716 * dispextern.h (init_iterator): Sync prototype with changed definition.
d8c315d1 6717
f5b416d2 67182010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
6719
6720 * s/netbsd.h: If terminfo is found, use it in preference to
6721 termcap. (Bug#6190) [Backport from trunk]
6722
0416466c
EZ
67232010-05-19 Eli Zaretskii <eliz@gnu.org>
6724
11117830 6725 Redesign and reimplement bidi-aware edge positions of glyph rows.
d36fe237
EZ
6726
6727 * dispextern.h (struct glyph_row): New members minpos and maxpos.
6728 (MATRIX_ROW_START_CHARPOS, MATRIX_ROW_START_BYTEPOS)
6729 (MATRIX_ROW_END_CHARPOS, MATRIX_ROW_END_BYTEPOS): Reference minpos
6730 and maxpos members instead of start.pos and end.pos, respectively.
6731
6732 * xdisp.c (display_line): Compare IT_CHARPOS with the position in
6733 row->start.pos, rather than with MATRIX_ROW_START_CHARPOS.
6734 (cursor_row_p): Use row->end.pos rather than MATRIX_ROW_END_CHARPOS.
66a9f7f4
SM
6735 (try_window_reusing_current_matrix, try_window_id):
6736 Use ROW->minpos rather than ROW->start.pos.
d36fe237
EZ
6737 (init_from_display_pos, init_iterator): Use EMACS_INT for
6738 character and byte positions.
66a9f7f4 6739 (find_row_edges): Rename from find_row_end. Accept additional
d36fe237
EZ
6740 arguments for minimum and maximum buffer positions seen by
6741 display_line for this row. Don't use iterator to find the
6742 position following the maximum one; instead, increment the
11117830
EZ
6743 position found by display_line directly. Fix logic; eol_pos
6744 should be tested before the rest. Handle the case of characters
6745 delivered from display vector (bug#6036). Fix tests related to
6746 it->method. Handle the truncated_on_right_p rows.
6747 (RECORD_MAX_MIN_POS): New macro.
6748 (display_line): Use it to record the minimum and maximum buffer
6749 positions for glyphs in the row being assembled. Record the
6750 position of the newline that terminates the line. If word wrap is
6751 in effect, restore minimum and maximum positions seen up to the
6752 wrap point, when iterator returns to it.
6753 (try_window_reusing_current_matrix): Give up if in bidi-reordered
6754 row and cursor not already at point. Restore original pre-bidi
6755 code for unidirectional buffers.
d36fe237
EZ
6756
6757 * dispnew.c (increment_row_positions, check_matrix_invariants):
6758 Increment and check row->start.pos and row->end.pos, in addition
6759 to MATRIX_ROW_START_CHARPOS and MATRIX_ROW_END_CHARPOS.
6760
11117830
EZ
6761 * .gdbinit (prowlims): Display row->minpos and row->maxpos.
6762 Display truncated_on_left_p and truncated_on_right_p flags.
6763 Formatting fixes.
6764 (pmtxrows): Display the ordinal number of each row. Don't display
6765 rows beyond the last one.
6766
6767 * bidi.c (bidi_cache_iterator_state): Don't zero out new_paragraph:
6768 it is not copied by bidi_copy_it.
6769
6e83d800
EZ
67702010-05-22 Eli Zaretskii <eliz@gnu.org>
6771
6772 * w32.c (sys_write): Break writes into chunks smaller than 32MB.
6773 (Bug#6237)
6774
110683ad
CY
67752010-05-22 Chong Yidong <cyd@stupidchicken.com>
6776
6777 * image.c (Fimage_flush): Rename from image-refresh.
6778
98fe5161
CY
67792010-05-21 Chong Yidong <cyd@stupidchicken.com>
6780
6781 * xdisp.c (redisplay_internal): Clear caches even if redisplaying
6782 just one window.
6783
6784 * image.c (Vimage_cache_eviction_delay): Decrease to 300.
6785 (clear_image_cache): If the number of cached images is unusually
6786 large, decrease the cache eviction delay (Bug#6230).
6787
e8752c66
GM
67882010-05-21 Glenn Morris <rgm@gnu.org>
6789
66dbf213
GM
6790 * Makefile.in (${ns_appdir}, ${ns_appbindir}Emacs, ns-app):
6791 Move these rules to ns.mk.
6792 * ns.mk: New file.
6793
04384b2d
GM
6794 * Makefile.in (../src/$(OLDXMENU), $(OLDXMENU)): Always define rules.
6795
e8752c66
GM
6796 * Makefile.in (CANNOT_DUMP): New, set by configure.
6797 (emacs${EXEEXT}, bootstrap-emacs${EXEEXT}): Use $CANNOT_DUMP.
6798
2e2bbddb
JL
67992010-05-20 Juri Linkov <juri@jurta.org>
6800
6801 * fileio.c (Fdelete_file): Change interative spec to use
6802 `read-file-name' like in `find-file-read-args' where the default
6803 value is `default-directory' instead of `buffer-file-name'.
6804 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00533.html
6805
31c4aaf6
KR
68062010-05-20 Kevin Ryde <user42@zip.com.au>
6807
6808 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
6809 (Voverriding_terminal_local_map, Vsystem_key_alist)
6810 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
6811
9d5cf9b6
GM
68122010-05-20 Glenn Morris <rgm@gnu.org>
6813
6814 * Makefile.in (DEPDIR): New constant.
6815 (DEPFLAGS): Set with configure, not cpp.
6816 (MKDEPDIR): New, set by configure.
6817 (.c.o, .m.o, ecrt0.o): Use $MKDEPDIR.
6818 (clean): Use $DEPDIR.
6819 (deps_frag): Include from configure.
6820 Move static/dynamic dependency stuff to deps.mk/autodeps.mk.
6821 * deps.mk, autodeps.mk: New files, extracted from Makefile.in.
6822
bba3e508
SM
6823 * bidi.c (bidi_cache_shrink, bidi_cache_iterator_state):
6824 Fix reallocation of the cache. (Bug#6210)
ead6f8f5 6825
7f34aec3
GM
68262010-05-19 Glenn Morris <rgm@gnu.org>
6827
d494e8f2
GM
6828 * s/msdos.h (ORDINARY_LINK): Move to sed2v2.inp.
6829
c1d0dcfd
GM
6830 * Makefile.in (LD, YMF_PASS_LDFLAGS): Set with configure, not cpp.
6831 (GNULIB_VAR): Remove.
6832 (LIBES): Use LIB_GCC instead of GNULIB_VAR.
6833
6834 * m/ibms390x.h (LINKER):
6835 * m/macppc.h (LINKER) [GNU_LINUX]:
6836 * s/aix4-2.h (ORDINARY_LINK):
6837 * s/cygwin.h (LINKER):
6838 * s/darwin.h (ORDINARY_LINK):
6839 * s/gnu.h (ORDINARY_LINK):
6840 * s/netbsd.h (LINKER):
6841 * s/usg5-4.h (ORDINARY_LINK):
6842 Move to configure.
6843
7f34aec3
GM
6844 * s/aix4-2.h (LINKER): Remove; this file sets ORDINARY_LINK.
6845
754790b6
CY
68462010-05-18 Chong Yidong <cyd@stupidchicken.com>
6847
6848 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
6849 prevent stack overflow if number of arguments is too large
6850 (Bug#6214).
6851
161e44d1
JB
68522010-05-18 Juanma Barranquero <lekktu@gmail.com>
6853
6854 * charset.c (load_charset_map_from_file): Don't call close after fclose.
6855
be4ff9da
GM
68562010-05-18 Glenn Morris <rgm@gnu.org>
6857
9539dc5d
GM
6858 * s/gnu-linux.h: Combine two conditionals.
6859
6860 * Makefile.in (otherobj): Include $(VMLIMIT_OBJ) separately from
6665f4c5
GM
6861 $(POST_ALLOC_OBJ).
6862
40dc6bf4
GM
6863 * Makefile.in (RALLOC_OBJ): New, set by configure.
6864 (rallocobj): Replace with the previous variable.
6865 (otherobj): Use $RALLOC_OBJ.
6866
6867 * s/gnu.h (REL_ALLOC) [DOUG_LEA_MALLOC]:
6868 * s/gnu-linux.h (REL_ALLOC) [DOUG_LEA_MALLOC]: Move undef to configure.
6869
be4ff9da
GM
6870 * Makefile.in (GMALLOC_OBJ, VMLIMIT_OBJ): New, set by configure.
6871 (gmallocobj, vmlimitobj): Replace with previous two variables.
6872 (otherobj): Use $GMALLOC_OBJ, $VMLIMIT_OBJ.
6873
16455a85
GM
68742010-05-17 Glenn Morris <rgm@gnu.org>
6875
6876 * Makefile.in (OLDXMENU_DEPS): New, set by configure.
6877 (stamp-oldxmenu): Use $OLDXMENU_DEPS.
6878
5fdb7468
GM
68792010-05-16 Glenn Morris <rgm@gnu.org>
6880
7ca1f3f9
GM
6881 * Makefile.in (${ns_appbindir}Emacs, ns-app): Always define these rules.
6882
7541dad5
GM
6883 * Makefile.in (clean): Get rid of HAVE_NS conditional.
6884
da53fab9
GM
6885 * Makefile.in (ns_appdir, ns_appbindir): Now configure adds the
6886 trailing "/".
6887
b02a6645
GM
6888 * Makefile.in (TEMACS_LDFLAGS2): New, set by configure.
6889 (temacs${EXEEXT}): Combine the NS_IMPL_GNUSTEP case with the default.
6890
8877ca0f
GM
6891 * Makefile.in (GNUSTEP_SYSTEM_LIBRARIES): Remove, unused.
6892 (NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): New, set by configure.
6893 (LD) [NS_IMPL_GNUSTEP]: Set to $(CC) -rdynamic.
6894 (temacs${EXEEXT}): Remove $LOCALCPP, never defined or referenced.
6895 Make most of the NS_IMPL_GNUSTEP case the same as the default case.
6896
5fdb7468
GM
6897 * Makefile.in (temacs${EXEEXT}) [!NS_IMPL_GNUSTEP]:
6898 Remove ${STARTFLAGS}, nothing ever sets it.
6899
95adb4b1
DN
69002010-05-16 Dan Nicolaescu <dann@ics.uci.edu>
6901
6902 * m/ia64.h (UNEXEC): Remove, set in s/*.h.
6903
676b6304
GM
69042010-05-16 Glenn Morris <rgm@gnu.org>
6905
9beab9ce
GM
6906 * Makefile.in (LIBX_BASE): Always define.
6907
8a95f0e7
GM
6908 * Makefile.in (LIBX_OTHER): Move out of cpp section.
6909
676b6304
GM
6910 * Makefile.in (LIBXT): Always define.
6911
6e546d18
GM
69122010-05-15 Glenn Morris <rgm@gnu.org>
6913
4235ca47 6914 * Makefile.in (OLDXMENU, LIBXMENU, LIBX_OTHER): Always define.
02d4ac0e 6915
6e546d18
GM
6916 * Makefile.in (FONT_DRIVERS): Remove, replace with $FONT_OBJ.
6917 (obj, SOME_MACHINE_OBJECTS): Use $FONT_OBJ.
6918
8c5ff6dd
KR
69192010-05-15 Ken Raeburn <raeburn@raeburn.org>
6920
560bb7ae 6921 * lisp.h (XFLOAT_DATA): Use "0?x:x" to generate an rvalue. (Bug#5916)
52766425
KR
6922 (LISP_MAKE_RVALUE) [!USE_LISP_UNION_TYPE && !__GNUC__]: Likewise.
6923
8b4eb796
KR
6924 * emacs.c (main): Initialize initial-environment and
6925 process-environment before generating from env, not after.
6926
8c5ff6dd
KR
6927 Handle --version reasonably in CANNOT_DUMP configuration.
6928 * emacs.c (emacs_version, emacs_copyright): New string variables.
6929 (Vemacs_version, Vemacs_copyright): New Lisp_Object variables.
6930 (syms_of_emacs): Defvar them, and initialize them from the C
6931 string variables.
6932 (main): If initialization hasn't been done, print initial version
6933 info from the C strings, instead of starting an interactive session.
6934
dbd3f723
EZ
69352010-05-15 Eli Zaretskii <eliz@gnu.org>
6936
d20e1419
EZ
6937 * bidi.c (bidi_paragraph_init): Don't leave alone garbage values
6938 of bidi_it->paragraph_dir. Call bidi_initialize if needed.
2e9abc3d
EZ
6939 (bidi_paragraph_init): Remove redundant assertion that we are at
6940 the beginning of a line after call to bidi_find_paragraph_start.
d20e1419
EZ
6941
6942 * xdisp.c (Fcurrent_bidi_paragraph_direction): New function.
6943 (syms_of_xdisp): Defsubr it.
6944
d36fe237
EZ
6945 * cmds.c (Fforward_char, Fbackward_char): Doc fix.
6946
dbd3f723
EZ
6947 * Makefile.in: Fix MSDOS-related comments.
6948
02be533b
GM
69492010-05-15 Glenn Morris <rgm@gnu.org>
6950
1a82cca9
GM
6951 * Makefile.in (OLDXMENU_TARGET): New, set by configure.
6952 (really-lwlib, really-oldXMenu): Always define.
6953 ($OLDXMENU): Depend on $OLDXMENU_TARGET.
6954
3df7b338
GM
6955 * Makefile.in: Simplify cpp conditional.
6956
2b5f541b
GM
6957 * Makefile.in (${ns_appdir}): Simplify using umask.
6958
02be533b
GM
6959 * Makefile.in (${ns_appdir}): Remove references to CVS-related files.
6960
4e2db1fe
SM
69612010-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
6962
6963 * eval.c (specbind): Remove left-over duplicate test.
6964 Disallow let-binding frame-local vars. Add comment.
6965
4b292a22
EZ
69662010-05-14 Eli Zaretskii <eliz@gnu.org>
6967
2fe72643 6968 Make the cache of bidi iterator states dynamically allocated.
1edbd309 6969 * bidi.c (bidi_cache_shrink): New function.
2fe72643
EZ
6970 (bidi_init_it): Call it.
6971 (bidi_cache_iterator_state): Enlarge the cache if needed.
6972
4e2db1fe 6973 * bidi.c (bidi_move_to_visually_next): Rename from
4b292a22
EZ
6974 bidi_get_next_char_visually. All callers changed.
6975
82ebc97b
KH
69762010-05-14 Kenichi Handa <handa@m17n.org>
6977
6978 * dispextern.h (struct composition_it): New member reversed_p.
6979
6980 * composite.c (composition_compute_stop_pos): Search backward if
6981 ENDPOS < CHARPOS.
6982 (composition_reseat_it): Handle the case that ENDPOS < CHARPOS.
6983 Set CMP_IT->reversed_p.
b4b6e17e 6984 (composition_update_it): Pay attention to CMP_IT->reversed_p.
82ebc97b 6985
4e2db1fe
SM
6986 * xdisp.c (set_iterator_to_next):
6987 Call composition_compute_stop_pos with negative ENDPOS if we are
82ebc97b
KH
6988 scanning backward. Call composition_compute_stop_pos if scan
6989 direction is changed.
6990 (next_element_from_buffer): Call composition_compute_stop_pos with
6991 negative ENDPOS if we are scanning backward.
6992 (next_element_from_composition): Pay attention to
6993 IT->cmp_it.reversed_p.
6994
0e5d7800
KH
69952010-05-14 Kenichi Handa <handa@m17n.org>
6996
560bb7ae 6997 * font.c (font_range): Return the range for the font found at first.
0e5d7800 6998
cb027b32
GM
69992010-05-14 Glenn Morris <rgm@gnu.org>
7000
177b0288
GM
7001 * Makefile.in (ns_appdir, ns_appbindir, ns_appsrc): Always define.
7002
fbc00890
GM
7003 * Makefile.in (mktime, X11, register): Move undefs to configure.
7004
f14d1dfd
GM
7005 * Makefile.in (MSDOS_OBJ): Default to empty, let msdos scripts set it.
7006 (MSDOS_X_OBJ): New variable.
7007 (MSDOS_SUPPORT_REAL): New constant.
7008 (MSDOS_SUPPORT): Set as a variable, not with cpp.
7009 (obj): Use MSDOS_X_OBJ.
7010 (lisp): Use MSDOS_SUPPORT as a variable.
7011
11842bd8
GM
7012 * Makefile.in (REAL_MOUSE_SUPPORT): New constant.
7013 (GPM_MOUSE_SUPPORT): Now it's a constant.
7014 (MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): Set with configure,
7015 not cpp.
7016
489d31a4 7017 * Makefile.in (@NS_IMPL_GNUSTEP_INC@): Use in place of #ifdef.
845612ac 7018 (ns_appresdir): Remove, unused.
e20f1f07 7019
489d31a4
GM
7020 * Makefile.in (SHELL): Move outside cpp section.
7021
cb027b32
GM
7022 * s/netbsd.h (AMPERSAND_FULL_NAME): Remove (defined in AH_BOTTOM).
7023
5a903aa9
GM
70242010-05-13 Glenn Morris <rgm@gnu.org>
7025
3369c79f
GM
7026 * Makefile.in (FONT_DRIVERS): Place with other HAVE_X_WINDOWS stuff.
7027 (TOOLTIP_SUPPORT): Place with other HAVE_WINDOW_SYSTEM stuff.
7028
d5e982a6
GM
7029 * Makefile.in (FONT_DRIVERS): If HAVE_X_WINDOWS is defined,
7030 HAVE_WINDOW_SYSTEM must be too.
7031
6192e163
GM
7032 * Makefile.in (WINNT_SUPPORT): Remove, nt build does not use this file.
7033 (lisp): Remove WINNT_SUPPORT.
7034
472c5d6b
GM
7035 * Makefile.in (OLDXMENU, LIBXMENU) [!HAVE_MENUS]:
7036 Let configure set these variables (to empty) in this case as well.
7037
0116466b
GM
7038 * Makefile.in (LD_SWITCH_X_SITE): Define as a variable, not via cpp.
7039 (LIBX_BASE): Use $LD_SWITCH_X_SITE.
7040
5a903aa9
GM
7041 * Makefile.in (C_SWITCH_X_SYSTEM, C_SWITCH_X_SITE, LIB_STANDARD)
7042 (LIB_MATH, FONTCONFIG_CFLAGS, FONTCONFIG_LIBS, FREETYPE_CFLAGS)
7043 (FREETYPE_LIBS, LIBOTF_CFLAGS, LIBOTF_LIBS, M17N_FLT_CFLAGS)
7044 (M17N_FLT_LIBS, GNU_OBJC_CFLAGS, GNUSTEP_SYSTEM_LIBRARIES, LIBGPM)
7045 (LIBRESOLV, UNEXEC_OBJ): For clarity, define variables to hold
c0a2b70a 7046 the values output by configure.
5a903aa9
GM
7047 (ALL_CFLAGS, obj, LIBES, temacs${EXEEXT}): Use the above variables.
7048
1a0d7c06
GM
70492010-05-12 Glenn Morris <rgm@gnu.org>
7050
b5457f14
GM
7051 * Makefile.in (YMF_PASS_LDFLAGS, LD, LINKER): Simplify the logic.
7052 (LINKER_WAS_SPECIFIED): Remove.
7053
1a0d7c06
GM
7054 * Makefile.in (LIB_GCC): Set using configure, not cpp.
7055 (GNULIB_VAR) [!ORDINARY_LINK]: Always set to $LIB_GCC.
7056 * m/arm.h (LIB_GCC) [GNU_LINUX]:
7057 * s/cygwin.h (LIB_GCC):
7058 * s/freebsd.h (LIB_GCC):
7059 * s/gnu-linux.h (LIB_GCC):
7060 * s/msdos.h (LIB_GCC):
7061 * s/netbsd.h (LIB_GCC):
7062 Move to configure.
7063
d1ddd1d0 70642010-05-11 Karel Klíč <kklic@redhat.com>
c90ca7b7
KH
7065
7066 * ftfont.c: Fix incorrect parentheses of #if condition for
7067 definining M17N_FLT_USE_NEW_FEATURE.
7068
acddf8ae
GM
70692010-05-11 Glenn Morris <rgm@gnu.org>
7070
7071 * Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset.
7072 * s/msdos.h (MSDOS_LIBS_SYSTEM): Remove.
7073
ae5e04fa
EZ
70742010-05-10 Eli Zaretskii <eliz@gnu.org>
7075
7076 * xdisp.c (init_iterator): Don't turn on bidi reordering in
7077 unibyte buffers. See
7078 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00263.html.
7079
7490175b
GM
70802010-05-10 Glenn Morris <rgm@gnu.org>
7081
97efb629
GM
7082 * Makefile.in (LIBS_SYSTEM): Set using configure, not cpp.
7083 (LIBS_SYSTEM) [MSDOS]: Reset with MSDOS_LIBS_SYSTEM.
7084 (LIBES): Use LIBS_SYSTEM as a variable.
7085 * s/msdos.h (LIBS_SYSTEM): Rename to MSDOS_LIBS_SYSTEM. Always define.
7086 * s/aix4-2.h (LIBS_SYSTEM):
7087 * s/freebsd.h (LIBS_SYSTEM):
7088 * s/hpux10-20.h (LIBS_SYSTEM):
7089 * s/sol2-6.h (LIBS_SYSTEM):
7090 * s/unixware.h (LIBS_SYSTEM):
7091 Move to configure.
7092
7490175b
GM
7093 * s/aix4-2.h (MAIL_USE_LOCKF):
7094 * s/bsd-common.h (MAIL_USE_FLOCK):
7095 * s/darwin.h (MAIL_USE_FLOCK):
7096 * s/gnu-linux.h (MAIL_USE_FLOCK):
7097 * s/irix6-5.h (MAIL_USE_FLOCK):
7098 * s/template.h (MAIL_USE_FLOCK):
7099 Move to configure.
7100
0235128c 71012010-05-08 Chong Yidong <cyd@stupidchicken.com>
61a808e8
CY
7102
7103 * Version 23.2 released.
7104
0235128c 71052010-05-08 Andreas Schwab <schwab@linux-m68k.org>
5dcde606
AS
7106
7107 * composite.c (autocmp_chars): Save point as marker before calling
7108 auto-composition-function (Bug#5984).
7109
7110 * lisp.h (restore_point_unwind): Add prototype.
7111
7112 * fileio.c (restore_point_unwind): Remove static attribute.
7113
0235128c 71142010-05-08 Kenichi Handa <handa@m17n.org>
c4170e32
KH
7115
7116 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
7117 new feature of libotf and m17n-flt.
0235128c
SM
7118 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
7119 Call OTF_check_features even if no specific feature is given.
c4170e32
KH
7120 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
7121 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
7122 that OUT is NULL. Use OTF_drive_gsub_with_log and
7123 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
7124 OTF_drive_gpos.
7125 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
0235128c
SM
7126 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
7127 Setup mflt_enable_new_feature and mflt_try_otf.
7128
4721152c
J
71292010-05-08 Jan Djärv <jan.h.d@swipnet.se>
7130
7131 * xsettings.c (Ftool_bar_get_system_style): Correct comment.
7132
7133 * gtkutil.c (xg_pack_tool_bar): Change show_all to show for handle
7134 box and toolbar (Bug #6139).
7135 (xg_create_tool_bar): Remove comment (Bug #6139).
7136 (xg_make_tool_item): Remove gtk_widget_show_all (Bug #6139).
7137 (xg_show_toolbar_item): Add gtk_widget_show for weventbox (Bug #6139).
7138
ee0a16cf
JB
71392010-05-08 Juanma Barranquero <lekktu@gmail.com>
7140
7141 * makefile.w32-in ($(BLD)/eval.$(O), $(BLD)/w32fns.$(O)):
7142 Update dependencies.
7143
96d79611
EZ
71442010-05-08 Eli Zaretskii <eliz@gnu.org>
7145
7146 * fringe.c (update_window_fringes): Set up truncation bitmaps for
7147 R2L lines.
7148
40c17879
GM
71492010-05-08 Glenn Morris <rgm@gnu.org>
7150
7b42b29f
GM
7151 * Makefile.in (THIS_IS_MAKEFILE): Remove, unused.
7152
40c17879
GM
7153 * Makefile.in (LIBS_TERMCAP): Set with configure, not cpp.
7154 (TERMCAP_OBJ): New, set by configure, replacing termcapobj.
7155 (termcapobj): Replace with TERMCAP_OBJ.
7156 (otherobj): Use $TERMCAP_OBJ instead of $termcapobj.
7157 (LIBES): Use LIBS_TERMCAP as a variable.
7158
7159 * s/freebsd.h (osreldate.h): No longer include, since this file
7160 does not use __FreeBSD_version any more.
7161
7162 * s/aix4-2.h (TERMINFO):
7163 * s/cygwin.h (TERMINFO):
7164 * s/darwin.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
7165 * s/freebsd.h (TERMINFO, LIBS_TERMCAP):
7166 * s/gnu-linux.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
7167 * s/gnu.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
7168 * s/hpux10-20.h (TERMINFO, LIBS_TERMCAP):
7169 * s/irix6-5.h (TERMINFO):
7170 * s/netbsd.h (LIBS_TERMCAP):
7171 * s/openbsd.h (TERMINFO, LIBS_TERMCAP):
7172 * s/sol2-6.h (LIBS_TERMCAP) [!TERMINFO]:
7173 * s/usg5-4.h (TERMINFO):
7174 Move to configure.
7175
94b612ad
SM
71762010-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
7177
7178 * eval.c (unbind_to): Don't unbind a local binding into the global
7179 binding when the local binding disappeared. Inversely, don't unbind
7180 a global binding into a newly created local binding.
7181 * data.c (set_internal): Make its `buf' arg into a `where' arg so we
7182 can specify the frame to use, when applicable. Adjust callers.
7183
15e12598 71842010-05-07 Vincent Belaïche <vincent.belaiche@gmail.com>
acd0102a 7185 Stefan Monnier <monnier@iro.umontreal.ca>
15e12598
VB
7186
7187 * floatfns.c (Fisnan, Fcopysign, Ffrexp, Fldexp): New functions.
7188
f724825e
EZ
71892010-05-07 Eli Zaretskii <eliz@gnu.org>
7190
5cba3209
EZ
7191 * w32fns.c: Include w32.h.
7192 (Fw32_shell_execute): Decode the error message before passing it
7193 to `error'. (Bug#6126)
7194
d16bdfc3
EZ
7195 * msdos.c (dos_set_window_size):
7196 * w16select.c (Fx_selection_exists_p): Use `Fsymbol_value (foo)'
7197 instead of `XSYMBOL (foo)->value'.
7198
59d93e87
EZ
71992010-05-07 Eli Zaretskii <eliz@gnu.org>
7200
9fdec8bc
EZ
7201 Fix the MS-DOS build, broken by autoconfiscation.
7202
7203 * Makefile.in: Don't use Make-style comments past the "start of
7204 cpp stuff" line.
7205 (MSDOS_OBJ): Remove xmenu.o (it is now defined by XMENU_OBJ).
7206
7207 * s/msdos.h (UNEXEC): Don't define (@unexec@ in Makefile.in is
7208 edited directly by msdos/sed1v2.inp).
f724825e 7209
2f86b22b
GM
72102010-05-07 Glenn Morris <rgm@gnu.org>
7211
7212 * Makefile.in (LD_SWITCH_SYSTEM): Set with configure, not cpp.
7213 (LD_SWITCH_SYSTEM_EXTRA): New variable, set by configure.
7214 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM and $LD_SWITCH_SYSTEM_EXTRA,
7215 move out of cpp section.
7216 * s/freebsd.h (LD_SWITCH_SYSTEM):
7217 * s/gnu-linux.h (LD_SWITCH_SYSTEM):
7218 * s/netbsd.h (LD_SWITCH_SYSTEM):
7219 * s/openbsd.h (LD_SWITCH_SYSTEM): Move to configure.in.
7220
49ebbd65
DN
72212010-05-07 Dan Nicolaescu <dann@ics.uci.edu>
7222
7223 Define LIB_STANDARD and START_FILES using autoconf.
7224 * s/usg5-4.h (LIB_STANDARD):
7225 * s/netbsd.h (START_FILES):
7226 * s/irix6-5.h (LIB_STANDARD):
7227 * s/hpux10-20.h (LIB_STANDARD, START_FILES):
7228 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
7229 * s/freebsd.h (START_FILES):
7230 * s/darwin.h (START_FILES):
7231 * s/cygwin.h (START_FILES):
7232 * s/aix4-2.h (LIB_STANDARD):
7233 * m/ibmrs6000.h (START_FILES): Remove, move logic to configure.in.
7234 * Makefile.in (STARTFILES): Rename to START_FILES, define using
7235 autoconf, not cpp.
7236
d43c06d6
DN
72372010-05-06 Dan Nicolaescu <dann@ics.uci.edu>
7238
28823648
DN
7239 Remove NEED_BSDTTY and NEED_UNISTD_H.
7240 * s/hpux10-20.h (NEED_BSDTTY): Remove.
7241 * s/aix4-2.h (NEED_UNISTD_H): Remove.
7242 * systty.h: Simplify conditionals for including <sys/bsdtty.h>,
7243 <sys/ptyio.h> and <unistd.h>.
7244
aca00430
DN
7245 * emacs.c (main): Remove NO_DIR_LIBRARY conditional, unused.
7246
d43c06d6
DN
7247 * Makefile.in (STARTFILES): Conditionally define to make the usage clear.
7248 * s/gnu.h (START_FILES): Remove empty definition.
7249
3e56b11d
JD
72502010-05-06 Jan Djärv <jan.h.d@swipnet.se>
7251
7252 * xterm.c (x_draw_image_relief): Move declaration of extra to beginning.
7253
e3cf0cde
GM
72542010-05-06 Glenn Morris <rgm@gnu.org>
7255
7256 * Makefile.in (CPP, LN_S): Remove unused variables.
7257
774b9a60
SM
72582010-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
7259
7260 * syntax.c (Fchar_syntax): Check the arg is a character (bug#6080).
7261
4ab92842
LM
72622010-05-05 Lawrence Mitchell <wence@gmx.li>
7263
7264 * m/sparc.h: Fix typo in earlier change.
7265
178f2507
SM
72662010-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
7267
7268 Misc tweaks.
7269 * eval.c (Fdefvaralias): Remove unintended nested if.
7270 (internal_condition_case_2, internal_condition_case_n): Use ANSI type.
7271
80f00217 72722010-05-04 Bernhard Herzog <bh@intevation.de> (tiny change)
991be6d4
JD
7273
7274 * xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
7275
ef03a4e6
DN
72762010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
7277
58eb6cf0
DN
7278 Remove BSD_PGRPS.
7279 * s/bsd-common.h (BSD_PGRPS): Remove undef.
7280 * s/gnu-linux.h (BSD_PGRPS): Remove.
7281 * term.c (dissociate_if_controlling_tty):
7282 * sysdep.c (narrow_foreground_group, widen_foreground_group)
7283 (init_sys_modes, reset_sys_modes):
7284 * emacs.c (main):
7285 * callproc.c (Fcall_process, child_setup): Remove code depending
7286 on BSD_PGRPS.
7287
ef03a4e6
DN
7288 Remove POSIX_SIGNALS.
7289 * s/usg5-4.h (POSIX_SIGNALS):
7290 * s/netbsd.h (POSIX_SIGNALS):
7291 * s/msdos.h (POSIX_SIGNALS):
7292 * s/ms-w32.h (POSIX_SIGNALS):
7293 * s/hpux11.h (POSIX_SIGNALS):
7294 * s/gnu.h (POSIX_SIGNALS):
7295 * s/gnu-linux.h (POSIX_SIGNALS):
7296 * s/freebsd.h (POSIX_SIGNALS):
7297 * s/darwin.h (POSIX_SIGNALS):
7298 * s/cygwin.h (POSIX_SIGNALS):
7299 * s/aix4-2.h (POSIX_SIGNALS): Remove definition.
7300 * s/unixware.h:
7301 * s/sol2-6.h: Remove comments on POSIX_SIGNALS.
7302 * process.c (create_process):
7303 * syssignal.h:
7304 * sysdep.c (wait_for_termination, init_signals):
7305 * process.c (create_process):
7306 * msdos.c: POSIX_SIGNALS is always defined on all platforms,
7307 remove all code that assumes the contrary.
7308
49628785
GM
73092010-05-04 Glenn Morris <rgm@gnu.org>
7310
27a2cdfc
GM
7311 * s/gnu-linux.h (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX as a shell
7312 variable.
7313 * s/netbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
7314 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH.
7315 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
7316 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH instead of
7317 LD_SWITCH_SYSTEM_tmp.
7318 * Makefile.in (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH):
7319 New variables, set by configure.
7320
eb21eab5
GM
7321 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
7322 * s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
7323 (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
7324 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
7325 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.
7326
49628785
GM
7327 * s/aix4-2.h (C_SWITCH_SYSTEM):
7328 * m/alpha.h (C_SWITCH_MACHINE):
7329 Move to configure.in.
7330 * Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
7331 New variables, set by configure.
7332 (ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
7333 $c_switch_machine and $c_switch_system.
7334
7dff330b
DN
73352010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
7336
7337 * s/hpux10-20.h (LIB_STANDARD): New definition.
7338 * Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
7339 on it, not used anymore.
7340
53967e09
CY
73412010-05-03 Chong Yidong <cyd@stupidchicken.com>
7342
7343 * eval.c (internal_condition_case_n): Rename from
7344 internal_condition_case_2.
7345 (internal_condition_case_2): New function.
7346
7347 * xdisp.c (safe_call): Use internal_condition_case_n.
7348
7349 * fileio.c (Fdelete_file, internal_delete_file): New arg FORCE.
7350 (internal_delete_file, Frename_file): Callers changed.
7351
7352 * buffer.c (Fkill_buffer):
7353 * callproc.c (delete_temp_file): Callers changed (Bug#6070).
7354
7355 * lisp.h: Update prototypes.
7356
3dee6fdb
GM
73572010-05-03 Glenn Morris <rgm@gnu.org>
7358
7359 * Makefile.in (LIBX_EXTRA, LIBX_BASE): New variables.
7360 (LIBXT_OTHER, LIBX_OTHER): New, set by configure.
7361 (LIBXT): Set with configure, not cpp.
7362 (LIBX): Remove.
7363 (LIBES): Replace $LIBX with $LIBX_BASE and $LIBX_OTHER.
7364
a101e0fb
DN
73652010-05-02 Dan Nicolaescu <dann@ics.uci.edu>
7366
7367 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove.
7368 The FreeBSD is not needed, the default works, Solaris version is
7369 not needed, and the remaining case is not supported by configure.
7370
f63d0028
JD
73712010-05-02 Jan Djärv <jan.h.d@swipnet.se>
7372
7373 * xsmfns.c (CHDIR_OPT): New define.
7374 (smc_save_yourself_CB): Add CHDIR_OPT to options to use when
7375 restarting emacs.
7376
7377 * xterm.c (x_connection_closed): Call Fkill_emacs instead of
7378 shut_down_emacs.
7379
7380 * emacs.c (USAGE1): Mention --chdir.
7381 (main): Handle --chdir.
7382 (standard_args): Add --chdir.
7383 (fatal_error_signal): Call Fkill_emacs for SIGTERM and SIGHUP (Bug
7384 #5552).
7385
e4814a9f
DN
73862010-05-01 Dan Nicolaescu <dann@ics.uci.edu>
7387
cd03c74a
DN
7388 Remove LD_SWITCH_MACHINE.
7389 * Makefile.in (LD_SWITCH_MACHINE): Remove definition, unused.
7390 (TEMACS_LDFLAGS): Do not use LD_SWITCH_MACHINE.
7391
c3a398a1
DN
7392 Clean up IRIX code.
7393 * m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
7394 * s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.
7395
87e7285c
DN
7396 Clean up AIX code.
7397 * m/ibmrs6000.inp: Remove file, unused.
7398 * m/ibmrs6000.h (IBMR2AIX): Remove, unused.
7399 (LD_SWITCH_MACHINE): Rename to LD_SWITCH_SYSTEM_TEMACS, and move
7400 definition ...
7401 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): ... here.
7402
80f00217
JB
7403 * sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code,
7404 unused.
e4814a9f 7405
59ca28de
EZ
74062010-05-01 Eli Zaretskii <eliz@gnu.org>
7407
197daef4
EZ
7408 Emulate POSIX_SIGNALS on MS-Windows.
7409
7410 * s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
7411 (SIG_SETMASK, SIG_UNBLOCK): Define.
d6dae14b
EZ
7412
7413 * sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
7414 (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
7415 from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
7416
80f00217
JB
7417 * w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask):
7418 New stubs.
197daef4 7419
af7c7572
EZ
7420 Miscellaneous fixes of bidi display.
7421
59ca28de
EZ
7422 * xdisp.c (find_row_end): New function, refactored from display_line.
7423 (display_line): Use it.
017ea819
EZ
7424 (extend_face_to_end_of_line): In almost-filled rows, extend only
7425 if the row is R2L and not continued.
166e930d 7426 (display_line): Fix prepending of truncation glyphs to R2L rows.
af7c7572 7427 Preserve overlay and string info in row->end.
166e930d
EZ
7428 (insert_left_trunc_glyphs): Support addition of left truncation
7429 glyphs to R2L rows.
b47e0dcf 7430 (set_cursor_from_row): Don't place cursor on the vertical border
af7c7572
EZ
7431 glyph between adjacent windows. Fix a crash when a display string
7432 is continued to the next line. Don't return zero if cursor was
7433 found by `cursor' property of a display string.
b47e0dcf
EZ
7434 (try_cursor_movement): Don't assume that row->end == (row+1)->start,
7435 test for that explicitly.
59ca28de 7436
7acac9f4
GM
74372010-05-01 Glenn Morris <rgm@gnu.org>
7438
7439 * Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null,
7440 for clarity.
7441 (OTHER_OBJ): Remove.
7442 (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure.
7443 (otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ.
7444
45841e65
KK
74452010-05-01 Karel Klíč <kklic@redhat.com>
7446
7447 * fileio.c (Ffile_selinux_context): Context functions may return null.
7448
afc61943
DN
74492010-04-30 Dan Nicolaescu <dann@ics.uci.edu>
7450
80f00217 7451 * s/gnu.h (POSIX_SIGNALS, START_FILES): New definitions.
afc61943 7452
5a1bb006
GM
74532010-04-30 Glenn Morris <rgm@gnu.org>
7454
7455 * Makefile.in (vmlimitobj) [!SYSTEM_MALLOC]: New variable. (Bug#6065)
7456 (OTHER_OBJ): Define as a separate variable, for clarity.
7457
210af043
J
74582010-04-30 Jan Djärv <jan.h.d@swipnet.se>
7459
7460 * xsettings.c: include limits.h and update file comment.
7461
0a7df391
GM
74622010-04-30 Glenn Morris <rgm@gnu.org>
7463
d5096f16
GM
7464 * Makefile.in (OLDXMENU, LIBXMENU) [HAVE_MENUS]:
7465 Set with configure, not cpp.
7466 (LIBW): Remove, replace with $TOOLKIT_LIBW.
7467
7eb1ac33
GM
7468 * Makefile.in (mallocobj): Remove.
7469 (otherobj): Simplify using @OTHER_OBJ@.
7470
517d086b
GM
7471 * Makefile.in (dispnew.o, frame.o, fringe.o, font.o, fontset.o)
7472 (keyboard.o, window.o, xdisp.o, xfaces.o, menu.o):
7473 Don't bother making nsgui.h dependency platform-specific.
7474
0a7df391
GM
7475 * Makefile.in (nsfns.o): Remove duplicate nsgui.h dependency.
7476
d6d23852
SM
74772010-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
7478
d2630aef
SM
7479 * process.c (read_process_output, exec_sentinel): Don't burp if the
7480 sentinel/filter kills the current buffer (bug#6060).
7481
f9dddf52 7482 Fix wrong-docstring problem introduced with hash-consing. (Bug#6008)
d6d23852
SM
7483 * eval.c (Fautoload): Set doc to a unique number rather than to 0.
7484 Remove unused var `args'.
7485 * lisp.h (XSETCARFASTINT, XSETCDRFASTINT): Remove.
7486 (LOADHIST_ATTACH): Wrap with do...while to avoid surprises for callers.
7487 * doc.c (store_function_docstring): Use XSETCAR.
7488
f1e3642a
GM
74892010-04-28 Glenn Morris <rgm@gnu.org>
7490
faf535f8
GM
7491 * Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
7492 (WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.
7493
c40f9449
GM
7494 * Makefile.in (CYGWIN_OBJ): Set with configure, not cpp.
7495
658f86ca
GM
7496 * Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure.
7497 (MOUSE_SUPPORT) [!HAVE_MOUSE]: Use $GPM_MOUSE_SUPPORT.
7498
bc0b5f61
GM
7499 * Makefile.in (FONT_OBJ): New, set by configure.
7500 (FONT_DRIVERS): Use $FONT_OBJ.
7501
294c50a0
GM
7502 * Makefile.in (LIBXMU): Set with configure, not cpp.
7503 * s/aix4-2.h (LIBXMU):
7504 * s/hpux10-20.h (LIBXMU):
7505 Remove definition, now set in configure.
7506
e6ec4e99
GM
7507 * Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.
7508
f1e3642a
GM
7509 * m/amdx86-64.h [i386]: Move this test to configure.in.
7510
c6ea2936
GM
75112010-04-27 Glenn Morris <rgm@gnu.org>
7512
8fdac2c3
GM
7513 * Makefile.in (LIBXTR6): Set with configure, not cpp.
7514 * s/unixware.h (NEED_LIBW): Remove definition.
7515
986fb647
GM
7516 * Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
7517 (TOOLKIT_LIBW): New, set by configure.
7518 (@X_TOOLKIT_TYPE@): No longer define it.
7519
c6ea2936
GM
7520 * Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
7521 (MOTIF_LIBW): Set with configure, not cpp.
7522 * s/aix4-2.h (LIB_MOTIF):
7523 * s/gnu-linux.h (LIB_MOTIF):
7524 * s/unixware.h (LIB_MOTIF): Move to configure.in.
7525
aaa36002
DN
75262010-04-27 Dan Nicolaescu <dann@ics.uci.edu>
7527
7528 Reduce CPP usage.
7529 * Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
7530 (obj): Use autoconf for unexec instead of cpp.
bba3e508
SM
7531 (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE):
7532 Remove definitions and undefs. Inline definitions in the only user.
ed6281b0 7533 (ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.
aaa36002 7534
b678dd8b
GM
75352010-04-27 Glenn Morris <rgm@gnu.org>
7536
76cda504
GM
7537 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
7538 since the defaults (set by the system file) are fine in most cases.
7539 [GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
7540 * m/ibms390x.h (START_FILES, LIB_STANDARD):
7541 * m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
7542 * m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
7543 Remove definitions, since they are set correctly in s/gnu-linux.h.
7544 * s/freebsd.h (START_FILES, LIB_STANDARD):
7545 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
7546 * s/hpux10-20.h (START_FILES):
7547 * s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
7548 Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
7549
b678dd8b
GM
7550 * Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
7551 (MOTIF_LIBW): Use $LIBXP.
7552 (otherobj): Use $WIDGET_OBJ.
7553
9452ded1
DN
75542010-04-26 Dan Nicolaescu <dann@ics.uci.edu>
7555
7e10844c
DN
7556 * Makefile.in (LIBS_MACHINE): Remove, unused.
7557
9452ded1
DN
7558 Use autoconf instead of cpp for LIB_MATH.
7559 * s/darwin.h (LIB_MATH): Do not define here, move to configure.
7560 * s/cygwin.h (LIB_MATH): Likewise.
7561 * Makefile.in (LIB_MATH): Do not define with cpp.
7562 (LIBES): Use autoconf for LIB_MATH.
7563
fcebfc6a
KH
75642010-04-26 Kenichi Handa <handa@m17n.org>
7565
7566 * composite.c (Ffind_composition_internal): Fix the return value
7567 for an automatic composition.
7568
39e2ad1b
DN
75692010-04-25 Dan Nicolaescu <dann@ics.uci.edu>
7570
7571 Remove all NO_ARG_ARRAY uses.
7572 * fns.c (concat2, concat3, nconc2):
7573 * eval.c (apply1, call1, call2, call3, call4, call5, call6)
7574 (call7): Remove NO_ARG_ARRAY usage, assume it's always true.
7575 * m/xtensa.h (NO_ARG_ARRAY):
7576 * m/template.h (NO_ARG_ARRAY):
7577 * m/sparc.h (NO_ARG_ARRAY):
7578 * m/sh3.h (NO_ARG_ARRAY):
7579 * m/mips.h (NO_ARG_ARRAY):
7580 * m/macppc.h (NO_ARG_ARRAY):
7581 * m/iris4d.h (NO_ARG_ARRAY):
7582 * m/intel386.h (NO_ARG_ARRAY):
7583 * m/ibms390x.h (NO_ARG_ARRAY):
7584 * m/ibms390.h (NO_ARG_ARRAY):
7585 * m/ibmrs6000.h (NO_ARG_ARRAY):
7586 * m/ia64.h (NO_ARG_ARRAY):
7587 * m/hp800.h (NO_ARG_ARRAY):
7588 * m/arm.h (NO_ARG_ARRAY):
7589 * m/amdx86-64.h (NO_ARG_ARRAY):
7590 * m/alpha.h (NO_ARG_ARRAY): Remove definition.
7591
adf4f59c
EZ
75922010-04-25 Eli Zaretskii <eliz@gnu.org>
7593
6bdf5d65
EZ
7594 * xdisp.c (display_line): Don't assume 2nd call to
7595 get_next_display_element cannot return zero. (Bug#6030)
f538fcec
EZ
7596 (iterate_out_of_display_property): New function, body from pop_it.
7597 (pop_it): Use it.
adf4f59c 7598
dfbbda83
GM
75992010-04-24 Glenn Morris <rgm@gnu.org>
7600
7601 * m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]:
7602 For clarity, revert to using fixed /usr/lib rather than $CRT_DIR.
7603 (START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case,
7604 since CRT_DIR defaults to /usr/lib. Suggested by Dan Nicolaescu.
7605
2d4018aa
EZ
76062010-04-24 Eli Zaretskii <eliz@gnu.org>
7607
a49884a6
EZ
7608 * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
7609 use `get_next_display_element' and `set_iterator_to_next' to
7610 advance to the next character, when looking for the character that
7611 begins the next row.
7612
76db6fcc 7613 * .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
2d4018aa
EZ
7614 definition of "struct Lisp_Symbol".
7615
70eab5c1
GM
76162010-04-24 Glenn Morris <rgm@gnu.org>
7617
7618 * Makefile.in (CRT_DIR): New variable, set by configure.
7619 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
7620 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
7621
1ad4cc3d
DN
76222010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
7623
e769f484
DN
7624 * Makefile.in: Remove C_SWITCH_X_MACHINE, unused.
7625
4196ff33
DN
7626 * s/cygwin.h (LIBS_DEBUG): Remove, unused.
7627
879b0ee4
DN
7628 Remove redundant flags.
7629 * s/freebsd.h (C_SWITCH_SYSTEM):
7630 * s/hpux10-20.h (C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
7631 * s/netbsd.h (C_SWITCH_SYSTEM):
7632 * s/openbsd.h (LD_SWITCH_X_DEFAULT): Remove, configure takes care
7633 of these.
7634
03cbbcb8
DN
7635 Simplify m/intel386.h.
7636 * m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
7637 user: ecrt0.c.
7638 (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
7639 (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
7640 the only user: s/unixware.h.
7641 * ecrt0.c: Remove #ifndef static. Inline CRT0_DUMMIES definition
7642 from m/intel386.h.
bba3e508
SM
7643 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE):
7644 Definitions moved here from m/intel386.h.
03cbbcb8 7645
1ad4cc3d
DN
7646 * m/mips.h: Remove #if 0 code.
7647
8785b888
EZ
76482010-04-23 Eli Zaretskii <eliz@gnu.org>
7649
728588cc
EZ
7650 Fix display of composed characters from L2R scripts in bidi buffers.
7651 * xdisp.c (set_iterator_to_next, next_element_from_composition):
7652 After advancing IT past the composition, resync the bidi iterator
7653 with IT's position. (Bug#5977)
7654
a63f80b4
DN
76552010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
7656
7657 * Makefile.in (LD_SWITCH_MACHINE_TEMACS): Remove, unused.
7658 (TEMACS_LDFLAGS): Don't use LD_SWITCH_SYSTEM_TEMACS.
7659
ff5dec5c
SM
76602010-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
7661
7662 * gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.
7663
8785b888
EZ
76642010-04-23 Eli Zaretskii <eliz@gnu.org>
7665
58ccf243 7666 Support `display' text properties and overlay strings in bidi buffers.
8785b888
EZ
7667 * xdisp.c (pop_it): When the stack is popped after displaying
7668 from a string, bidi-iterate to exit from the text portion covered
7669 by the `display' property or overlay. (Bug#5988, bug#5920)
7670
feeb1604
DN
76712010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
7672
8e324eb6
DN
7673 * m/macppc.h (LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
7674 (LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.
7675
809fcaba
DN
7676 * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
7677 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
7678
ed710380
DN
7679 Simplify STARTFILES definition.
7680 * s/hpux10-20.h (START_FILES): Explicitly define here instead of
7681 relying on Makefile.in to define it.
7682 * s/cygwin.h (START_FILES): Likewise.
7683 * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
7684
feeb1604
DN
7685 Clean up Solaris code.
7686 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
7687 (LIB_MOTIF): Remove, configure takes care of this.
7688 (NOT_USING_MOTIF): Remove, unused.
7689 * xrdb.c: Remove #if 0-ed #include.
7690 (SYSV): Remove conditional for old SysV.
7691 * sysdep.c (closedir): Remove conditional code for Solaris,
7692 Solaris has closedir.
7693
a0d0b563
JD
76942010-04-22 Jan Djärv <jan.h.d@swipnet.se>
7695
7696 * xsettings.c (read_and_apply_settings): Check if current_font is
7697 NULL before strcmp (Bug#6001).
7698
56bae7c7
DN
76992010-04-21 Dan Nicolaescu <dann@ics.uci.edu>
7700
7701 Clean up HP-UX files.
7702 * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
7703 (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
7704 (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
7705 * s/hpux10-20.h: ... to the only user, here.
7706
372b7a95
EZ
77072010-04-21 Eli Zaretskii <eliz@gnu.org>
7708
7709 * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
7710 use buffer-local values of paragraph-start and paragraph-separate.
7711 <paragraph_start_re, paragraph_separate_re>: Rename from
7712 fallback_paragraph_start_re and fallback_paragraph_separate_re.
7713 (Bug#5992)
7714
f904c0f9
JD
77152010-04-21 Jan Djärv <jan.h.d@swipnet.se>
7716
7717 * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
7718 current_tool_bar_style are new.
7719 (store_config_changed_event): Rename from store_font_changed_event.
7720 (XSETTINGS_TOOL_BAR_STYLE): New define.
7721 (SEEN_FONT, SEEN_TB_STYLE): New enum values.
7722 (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
7723 HAVE_XFT.
7724 (something_changedCB): store_font_changed_event is now
c4cc8b9a 7725 store_config_changed_event.
bba3e508
SM
7726 (parse_settings): Rename from parse_xft_settings.
7727 Read non-xft xsettings outside #ifdef HAVE_XFT.
ef1b0ba7 7728 (read_settings): Rename from read_xft_settings.
f904c0f9
JD
7729 (apply_xft_settings): Take current settings as parameter. Do not
7730 call read_(xft)_settings.
7731 (read_and_apply_settings): New function.
bba3e508
SM
7732 (xft_settings_event): Do non-xft stuff out of HAVE_XFT.
7733 Call read_and_apply_settings if there are settings to be read.
ef1b0ba7 7734 (init_xsettings): Rename from init_xfd_settings.
f904c0f9
JD
7735 Call read_and_apply_settings unconditionally.
7736 (xsettings_initialize): Call init_xsettings.
7737 (Ftool_bar_get_system_style): New function.
7738 (syms_of_xsettings): Define Qmonospace_font_name and
7739 Qtool_bar_style. Initialize current_tool_bar_style to nil.
f9dddf52 7740 defsubr Stool_bar_get_system_style. Fprovide on
f904c0f9 7741 dynamic-setting.
31a01b90 7742 Move misplaced HAVE_GCONF
f904c0f9
JD
7743
7744 * xsettings.h (Ftool_bar_get_system_style): Declare.
7745
7746 * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
7747 Qtext, Qboth, Qboth_horiz are new.
7748 (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
7749 Vtool_bar_style, tool_bar_max_label_size.
7750
7751 * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
7752
7753 * keyboard.c: QClabel is new.
7754 (parse_tool_bar_item): Take out QClabel from tool bar items.
7755 Try to construct a label if ther is no QClabel.
7756 (syms_of_keyboard): Intern :label as QClabel.
7757
7758 * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
7759 (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
7760 New.
7761
7762 * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
7763 dynamic-setting.el.
7764
7765 * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
7766 (xg_make_tool_item, xg_show_toolbar_item): New function.
7767 (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
7768 Call xg_make_tool_item to make a tool bar item.
7769 Call xg_show_toolbar_item. Use wtoolbar instead of x->toolbar_widget.
7770
7771 * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
7772 into account for toolbars.
7773
c632dfda
JD
77742010-04-21 Jan Djärv <jan.h.d@swipnet.se>
7775
7776 * data.c (make_blv): Declarations before code (Bug#5993).
7777
10efe302
GM
77782010-04-21 Glenn Morris <rgm@gnu.org>
7779
7780 * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
7781 Define using autoconf, not cpp.
7782 (LIBXSM): New variable, set by autoconf.
7783 (LIBXT): Use $LIBXSM.
7784
4285ac5a
DN
77852010-04-21 Dan Nicolaescu <local_user@dannlt>
7786
3ec759e7
DN
7787 Remove NOMULTIPLEJOBS, unused.
7788 * s/template.h (NOMULTIPLEJOBS):
7789 * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
7790
4285ac5a
DN
7791 Simplify LD_SWITCH_SYSTEM_TEMACS usage.
7792 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
7793 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
7794 detects -znocombreloc and passes it to the linker
7795 * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
7796
2807228d
GM
77972010-04-21 Glenn Morris <rgm@gnu.org>
7798
7799 * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
7800
574c05e2
KK
78012010-04-21 Karel Klíč <kklic@redhat.com>
7802
7803 * Makefile.in (LIBSELINUX_LIBS): New.
7804 (LIBES): Add $LIBSELINUX_LIBS.
7805 * eval.c, lisp.h (call7): New function.
7806 * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
7807 (Ffile_selinux_context, Fset_file_selinux_context):
7808 New functions.
7809 (Fcopy_file): New parameter preserve-selinux-context.
7810 (Frename_file): Preserve selinux context when renaming by copy-file.
7811
91eac4bb 78122010-04-21 Juanma Barranquero <lekktu@gmail.com>
acd0102a 7813 Eli Zaretskii <eliz@gnu.org>
91eac4bb 7814
50426a04
JB
7815 Don't depend on cm.c or termcap.c on Windows, use stubs.
7816 * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
7817 ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
7818 * w32console.c (current_tty, cost): New vars; lifted from cm.c.
7819 (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
7820 (sys_tputs, sys_tgetstr): New stubs.
7821 * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
7822 (tputs, tgetstr): New; define to sys_*.
91eac4bb 7823
938efb77
JB
78242010-04-20 Juanma Barranquero <lekktu@gmail.com>
7825
7826 * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
7827
b4bf28b7
SM
78282010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
7829
8b1e1112
SM
7830 * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
7831 Just signal a warning rather than an error when inside a let.
7832 (Fmake_variable_frame_local): Add the same test.
7833
933ac235
SM
7834 * font.c (syms_of_font): Make the style table vars read-only.
7835
b4bf28b7
SM
7836 * buffer.h (struct buffer): Remove unused var `direction_reversed'.
7837 * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
7838
7839 * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
7840
93d68d0c
EZ
78412010-04-20 Eli Zaretskii <eliz@gnu.org>
7842
7843 Fix R2L paragraph display on TTY.
7844
7845 * xdisp.c (unproduce_glyphs): New function.
7846 (display_line): Use it when produced glyphs are discarded from R2L
7847 glyph rows.
7848 (append_composite_glyph): In R2L rows, prepend the glyph rather
7849 than appending it.
7850
7851 * term.c (append_composite_glyph): In R2L rows, prepend the glyph
7852 rather than append it. Set up the resolved_level and bidi_type
7853 attributes of the appended glyph.
283ccc18
EZ
7854 (produce_special_glyphs): Mirror the backslash continuation
7855 character in R2L lines.
93d68d0c 7856
283ccc18 7857 Implement display of R2L paragraphs in GUI sessions.
26cdf528 7858
283ccc18
EZ
7859 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
7860 append_stretch_glyph.
bba3e508
SM
7861 (set_cursor_from_row) <cursor_x>: Remove unused variable.
7862 Fix off-by-one error in computing x at end of text in the row.
283ccc18
EZ
7863 (append_stretch_glyph): In reversed row, prepend the glyph rather
7864 than append it. Set resolved_level and bidi_type of the glyph.
7865 (extend_face_to_end_of_line): If the row is reversed, prepend a
7866 stretch glyph whose width is such that the rightmost glyph will be
7867 drawn at the right margin of the window. Fix off-by-one error on
bba3e508
SM
7868 TTY frames in testing whether a line needs face extension.
7869 Fix face extension at ZV. If this is the last glyph row, use
283ccc18
EZ
7870 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
7871 region face.
bba3e508
SM
7872 (set_cursor_from_row, display_line):
7873 Use MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
26cdf528 7874 row->continuation_lines_width.
283ccc18
EZ
7875 (next_element_from_buffer): Don't call bidi_paragraph_init if we
7876 are at ZV. Fixes a crash when reseated to ZV by
7877 try_window_reusing_current_matrix.
45903529
EZ
7878 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
7879 which happens with R2L glyph rows. Fixes a crash when inserting a
7880 character at end of an R2L line.
283ccc18
EZ
7881 (set_cursor_from_row): Don't be fooled by truncated rows: don't
7882 treat them as having zero-width characters. Improve comments.
7883 Don't reverse pos_before and pos_after for reversed glyph rows.
7884 Set cursor.x to negative value when the cursor might be on the
7885 left fringe.
7886 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
7887 left fringe, not the right one.
f951a506
EZ
7888 (notice_overwritten_cursor, draw_phys_cursor_glyph)
7889 (erase_phys_cursor): For reversed cursor_row, support cursor on
7890 the left fringe.
7891
283ccc18
EZ
7892 * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
7893 of continuation indicators on the fringes.
7894 (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
7895 left fringe.
7896
f951a506
EZ
7897 * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
7898 draw cursor on the left fringe.
7899
7900 * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
7901 cursor on the left fringe.
7902
f951a506
EZ
7903 * dispnew.c (update_text_area): Handle reversed desired rows when
7904 the cursor is on the left fringe.
7905 (set_window_cursor_after_update): Limit cursor's hpos by -1 from
7906 below, not by 0, for when the cursor is on the left fringe.
7907
3bb49aaf
JD
79082010-04-20 Jan Djärv <jan.h.d@swipnet.se>
7909
7910 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
7911 widget is a scrollbar.
7912
c0be27fd
KH
79132010-04-20 Kenichi Handa <handa@m17n.org>
7914
7915 * charset.c (char_charset): Consider Vcharset_non_preferred_head
7916 only when the arg CHARSET_LIST is nil.
7917
ce5b453a
SM
79182010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
7919
7920 Make variable forwarding explicit rather the using special values.
7921 Basically, this makes the structure of buffer-local values and object
7922 forwarding explicit in the type of Lisp_Symbols rather than use
7923 special Lisp_Objects for that. This tends to lead to slightly more
7924 verbose code, but is more C-like, simpler, and makes it easier to make
7925 sure we handled all cases, among other things by letting the compiler
7926 help us check it.
7927 * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
7928 Removing forwarding objects.
7929 (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
7930 (struct Lisp_Symbol): Make the various forms of variable-forwarding
7931 explicit rather than hiding them inside Lisp_Object "values".
7932 (XFWDTYPE): New macro.
7933 (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
7934 (XBUFFER_LOCAL_VALUE): Remove.
7935 (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
7936 (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
7937 (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
7938 (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
7939 (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
7940 Remove the Lisp_Misc_* header.
7941 (struct Lisp_Buffer_Local_Value): Redefine.
7942 (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
7943 (struct Lisp_Misc_Any): Add filler to get the right size.
7944 (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
7945 Lisp_Intfwd.
7946 (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
7947 (DEFVAR_KBOARD): Allocate a forwarding object.
7948 * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
7949 (let_shadows_global_binding_p): New function.
7950 (union Lisp_Val_Fwd): New type.
7951 (make_blv): New function.
7952 (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
7953 (store_symval_forwarding, swap_in_global_binding, Fboundp)
7954 (swap_in_symval_forwarding, find_symbol_value, Fset)
7955 (let_shadows_buffer_binding_p, set_internal, default_value)
7956 (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
7957 (Fkill_local_variable, Fmake_variable_frame_local)
7958 (Flocal_variable_p, Flocal_variable_if_set_p)
7959 (Fvariable_binding_locus):
7960 * xdisp.c (select_frame_for_redisplay):
7961 * lread.c (Fintern, Funintern, init_obarray, defvar_int)
7962 (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
7963 * frame.c (store_frame_param):
7964 * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
7965 * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
7966 value structure.
7967 * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
7968 (clone_per_buffer_values): Only adjust markers into the current buffer.
7969 (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
7970 (Fbuffer_local_value, set_buffer_internal_1)
7971 (swap_out_buffer_local_variables):
7972 Adapt to the new symbol value structure.
7973 (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
7974 (defvar_per_buffer): Take a new arg for the fwd object.
7975 (buffer_lisp_local_variables): Return a proper alist (different fix
7976 for bug#4138).
7977 * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
7978 (Fgarbage_collect): Don't handle buffer_defaults specially.
7979 (mark_object): Handle new symbol value structure rather than the old
7980 special Lisp_Misc_* objects.
7981 (gc_sweep) <symbols>: Free also the buffer-local-value objects.
7982 * term.c (set_tty_color_mode):
7983 * bidi.c (bidi_initialize): Don't access the ->value field directly.
7984 * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
7985 a buffer_local_flags.
7986 * print.c (print_object): Get rid of impossible forwarding objects.
7987
fd3998ff
EZ
79882010-04-19 Eli Zaretskii <eliz@gnu.org>
7989
7990 * bidi.c (bidi_get_type, bidi_get_category)
7991 (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
ce5b453a
SM
7992 (bidi_type_of_next_char, bidi_level_of_next_char):
7993 Declare static. Use `INLINE' rather than `inline'.
fd3998ff 7994
e42cd1a7
JB
79952010-04-19 Juanma Barranquero <lekktu@gmail.com>
7996
7997 * dired.c (Ffile_attributes): Fix typo in docstring.
7998
6e104790 79992010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
79353a53
AR
8000
8001 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
8002 NSInteger (Bug#5811).
8003
6e104790 80042010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
658b9b93
YM
8005
8006 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
8007 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
8008
6e104790 80092010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16009a0e
YM
8010
8011 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
8012
6e104790
SM
80132010-04-19 Chong Yidong <cyd@stupidchicken.com>
8014
8015 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
8016 terminal frames (Bug#5837).
8017
37dcfea0
EZ
80182010-04-19 Eli Zaretskii <eliz@gnu.org>
8019
d1da276f
EZ
8020 * .gdbinit (xsubchartable): New command.
8021
37dcfea0
EZ
80222010-04-19 Eli Zaretskii <eliz@gnu.org>
8023
8024 * xdisp.c (display_line): Don't write beyond the last glyph row in
9166b0f3 8025 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
37dcfea0
EZ
8026 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
8027 and
8028 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
8029
e9515805
SM
80302010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
8031
8032 * alloc.c (Fpurecopy): Hash-cons if requested.
8033 (syms_of_alloc): Update purify-flag docstring.
8034
22aa44a8
JD
80352010-04-18 Jan Djärv <jan.h.d@swipnet.se>
8036
8037 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
8038 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
8039
ebb5722e
EZ
80402010-04-17 Eli Zaretskii <eliz@gnu.org>
8041
8042 Fix a crash when an NSM character is inserted at BEGV.
8043
8044 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
8045 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
8046 NEUTRAL_B or UNKNOWN_BT.
8047
0f4442ef
EZ
80482010-04-16 Eli Zaretskii <eliz@gnu.org>
8049
8050 * xdisp.c (set_cursor_from_row): Don't consider possibility of
8051 other rows with cursor unless they are different from this row and
8052 this row is part of a continued line. (Bug#5943)
8053
7d4e45f8
DN
80542010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
8055
8056 * s/freebsd.h: Restore osreldate.h include.
8057 Suggested by Naohiro Aota.
8058
5ba5ec85
J
80592010-04-16 Jan Djärv <jan.h.d@swipnet.se>
8060
8061 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
8062
20af301d
CY
80632010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
8064
8065 * s/cygwin.h: Avoid linking against static libgcc.
8066
a4b000fb
JL
80672010-04-15 Juri Linkov <juri@jurta.org>
8068
8069 * window.c: Add Qscroll_command.
8070 Remove Vscroll_preserve_screen_position_commands.
8071 (window_scroll_pixel_based, window_scroll_line_based): Check the
8072 `scroll-command' property on the last command instead of searching
8073 the last command in Vscroll_preserve_screen_position_commands.
8074 (syms_of_window): Initialize and staticpro `Qscroll_command'.
8075 Put Qscroll_command property on Qscroll_up and Qscroll_down.
8076 (scroll-preserve-screen-position): Doc fix.
8077 (Vscroll_preserve_screen_position_commands): Remove variable.
8078
bc319ba4
DN
80792010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
8080
6bb24457
DN
8081 * xdisp.c (message): Do not use NO_ARG_ARRAY.
8082
19d4c244
DN
80832010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
8084
8085 Reduce cpp use in Makefile.in.
8086 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
8087 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
8088 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
8089 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
8090 (CRT0_COMPILE): Remove, inline it in the only user.
8091
32129746
JL
80922010-04-14 Juri Linkov <juri@jurta.org>
8093
8094 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
8095 `scroll-up-command' and `M-v' from `scroll-down' to
8096 `scroll-down-command'.
8097
9013a7f8
JL
80982010-04-14 Juri Linkov <juri@jurta.org>
8099
8100 * window.c (Vscroll_preserve_screen_position_commands): New variable
8101 with the default value as the list of Qscroll_down and Qscroll_up.
8102 (window_scroll_pixel_based, window_scroll_line_based): Search the
8103 last command in the list Vscroll_preserve_screen_position_commands
8104 instead of comparing with Qscroll_up and Qscroll_down.
8105
4bef8d26
JD
81062010-04-13 Jan Djärv <jan.h.d@swipnet.se>
8107
92848133
JD
8108 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
8109 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
8110 does that.
8111
4bef8d26
JD
8112 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
8113 to zero.
8114
58b963f7
SM
81152010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
8116
84164a0d
SM
8117 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
8118
2b0a91e7
SM
8119 Try to solve the problem of spurious EOF chars in long lines of text
8120 sent to interactive subprocesses.
8121 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
8122 (system_process_attributes): Remove unused var `ttotal'.
8123 * process.c (send_process): Don't bother breaking long line with EOF
8124 chars when talking to ttys any more.
8125 (wait_reading_process_output): Output a warning when called in such
8126 a way that it could block without being interruptible.
8127
58b963f7
SM
8128 Try to detect file modification within the same second.
8129 * buffer.h (struct buffer): New field modtime_size.
8130 * buffer.c (reset_buffer): Initialize it.
8131 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
8132 (Fverify_visited_file_modtime): Check it.
8133 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
8134 (Fset_visited_file_modtime): Set (or clear) it.
8135
01f5787b
SM
81362010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
8137
8138 * process.c (status_notify): Remove unused var `ro'.
8139
83725342
JD
81402010-04-12 Jan Djärv <jan.h.d@swipnet.se>
8141
8142 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
8143 more than one visual (Bug#5938).
8144
b9465836
DN
81452010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
8146
50426a04
JB
8147 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
8148 Undefine.
b9465836 8149
8d9c8ece
DN
81502010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
8151
b1f52161
DN
8152 Remove C_SWITCH_SYSTEM_TEMACS.
8153 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
8154 (malloc, realloc, free): Use emacs, not temacs for conditional
8155 definition.
8156
8157 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
8158 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
8159
8d9c8ece
DN
8160 Use autoconf, not cpp for some variables.
8161 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
8162 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
8163 (ALL_CFLAGS): Use them as make variables.
8164 (really-lwlib, really-oldXMenu): Do not pass them.
8165
1ecb2d3f
JD
81662010-04-11 Jan Djärv <jan.h.d@swipnet.se>
8167
8168 * xmenu.c (apply_systemfont_to_dialog): New.
8169 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
8170
3a4fa2f2
SM
81712010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
8172
97e53006
SM
8173 * process.c (exec_sentinel): Preserve current-buffer.
8174
3a4fa2f2
SM
8175 * process.c (read_process_output): Move the save-current-buffer to
8176 apply to both the filter and the non-filter branches.
8177
88df7221
DN
81782010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
8179
8180 * s/msdos.h (UNEXEC): New definition.
8181
5634ff85
YM
81822010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8183
6eff5c3d
YM
8184 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
8185 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
8186
8187 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
8188 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
8189 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
8190 TRY_WINDOW_CHECK_MARGINS.
8191
8192 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
5b253e9c
YM
8193 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
8194 width only when it is for padding.
5634ff85 8195
b13aef54
J
81962010-04-09 Jan Djärv <jan.h.d@swipnet.se>
8197
8198 * xfns.c (Fx_show_tip): Call try_window in a loop until
8199 fonts_changed_p is zero (Bug#2423).
8200
21d28484
EZ
82012010-04-08 Eli Zaretskii <eliz@gnu.org>
8202
8203 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
8204 the end of TEXT_AREA. (Bug#5856)
8205
0269ef77
JD
82062010-04-08 Jan Djärv <jan.h.d@swipnet.se>
8207
8208 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
8209 HAVE_GCONF.
8210
5930fe97
EZ
82112010-04-08 Eli Zaretskii <eliz@gnu.org>
8212
8213 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
8214 prev.orig_type, for resolving type of NSM. (Bug#5858)
8215
99852628
JD
82162010-04-08 Jan Djärv <jan.h.d@swipnet.se>
8217
8218 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
8219 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
8220 in current_font.
8221 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
50426a04
JB
8222 (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
8223 New functions.
8224 (syms_of_xsettings): Initialize current_font.
8225 defsubr Sfont_get_system_normal_font.
99852628 8226
686b968e
JB
8227 * xsettings.h (Ffont_get_system_normal_font)
8228 (xsettings_get_system_normal_font): Declare.
99852628
JD
8229
8230 * xfns.c (extern xlwmenu_default_font): Remove.
8231 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
8232 to xlwmenu.c.
8233
8234 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
8235 menu items in UTF-8.
8236
8237 * xmenu.c: include xsettings.h and xlwmenu.h if USE_LUCID.
8238 (apply_systemfont_to_menu): New function.
bba3e508
SM
8239 (set_frame_menubar, create_and_show_popup_menu):
8240 Call apply_systemfont_to_menu.
99852628 8241
7fc874c4
J
82422010-04-07 Jan Djärv <jan.h.d@swipnet.se>
8243
8244 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
8245 FRAME_LINE_TO_PIXEL_Y.
8246
8247 * xterm.c (x_set_window_size_1): Don't add border_width/height to
8248 pixelwidth/height.
8249
863bf481
DN
82502010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
8251
5e5a3b92
DN
8252 Simplify code for HP machines.
8253 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
8254 for GNU_LINUX, not needed.
8255 (UNEXEC, NEED_BSDTTY): Move definitions...
8256 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
8257
863bf481
DN
8258 * m/iris4d.h (UNEXEC): Move definition ...
8259 * s/irix6-5.h (UNEXEC): ... here.
8260
3e6bec3b
JD
82612010-04-04 Jan Djärv <jan.h.d@swipnet.se>
8262
8263 * xfns.c (set_machine_and_pid_properties): New function.
8264 (Fx_create_frame): Call set_machine_and_pid_properties.
8265
2912322b
SM
82662010-04-03 Eli Zaretskii <eliz@gnu.org>
8267
bba3e508
SM
8268 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char):
8269 Check bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
1502b819
EZ
8270 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
8271
2912322b
SM
8272 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
8273 in this function. (Bug#5703)
8274
82752010-04-03 Chong Yidong <cyd@stupidchicken.com>
8276
8277 * nsterm.h: Fix last change.
8278
c435b432
DN
82792010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
8280
a568f507
DN
8281 * m/intel386.h (NO_REMAP): Move definition ...
8282 * s/msdos.h (NO_REMAP): ... here.
8283
4cd9f6c2
DN
8284 * m/vax.h (CRT0_DUMMIES): Remove, unused.
8285
c435b432
DN
8286 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
8287 used on those platforms.
8288
42a2c622
DN
82892010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
8290
8291 Remove extern errno declarations.
8292 * xterm.c:
8293 * xrdb.c:
8294 * w32term.c:
8295 * unexec.c:
8296 * unexaix.c:
8297 * sysdep.c:
8298 * process.c:
8299 * lread.c:
8300 * keyboard.c:
8301 * floatfns.c:
8302 * filelock.c:
8303 * fileio.c:
8304 * emacs.c (main):
8305 * ecrt0.c:
8306 * dispnew.c:
8307 * callproc.c:
8308 * buffer.c: Remove errno extern declarations.
8309 * s/netbsd.h (NEED_ERRNO): Remove.
8310
8224f93d
DN
83112010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
8312
8313 Remove all uses of LIBX11_SYSTEM.
8314 * Makefile.in (LIBX11_SYSTEM): Remove.
8315 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
8316 instead.
8317
814062c7
EZ
83182010-04-01 Eli Zaretskii <eliz@gnu.org>
8319
ed68db4d
EZ
8320 Remove support for DJGPP v1.x (bug#5813).
8321
8322 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
8224f93d
DN
8323 * s/msdos.h:
8324 * unexec.c (make_hdr, copy_text_and_data):
8325 * sysdep.c (wait_for_termination, sys_subshell):
ed68db4d 8326 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
52f4d8d5
EZ
8327 (IT_set_terminal_modes, __write, _rename, gethostname)
8328 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
8329 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
8330 the value of __DJGPP__.
ed68db4d
EZ
8331 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
8332 compatibility code.
8224f93d
DN
8333 * lread.c:
8334 * gmalloc.c (memalign):
8335 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
8336 * emacs.c (main):
8337 * dosfns.c (init_dosfns):
ed68db4d
EZ
8338 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
8339
52f4d8d5
EZ
83402010-04-01 Eli Zaretskii <eliz@gnu.org>
8341
814062c7
EZ
8342 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
8343 string with `cursor' property comes from an `after-string'
8344 overlay. (Bug#5816)
8345
0dc2e11d
GM
83462010-04-01 Glenn Morris <rgm@gnu.org>
8347
8348 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
8349 Define as Makefile variables.
8350 (LIBX): Use above variables rather than directly using autoconf.
8351
1d29df59
DN
83522010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
8353
8354 Clean up BSD_SYSTEM use.
8355 * xterm.c:
8356 * process.c:
8357 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
8358 for including <sys/ioctl.h>.
8359 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
8360 code is only used for MSDOS.
8361
1546c559
JL
83622010-03-31 Juri Linkov <juri@jurta.org>
8363
8364 * image.c: Add `Qextension_data'.
8365 (syms_of_image): Initialize and staticpro `Qextension_data'.
8366 (Fimage_metadata): Rename from `Fimage_extension_data'.
8367 (gif_load): Put GIF extension data to the property
8368 `Qextension_data'.
8369
6521c534
CY
83702010-03-31 Chong Yidong <cyd@stupidchicken.com>
8371
8372 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
8373 * nsterm.h: Fix prototype.
8374
52c30783
EZ
83752010-03-31 Eli Zaretskii <eliz@gnu.org>
8376
8377 * xdisp.c (highlight_trailing_whitespace): Support highlight of
8378 trailing whitespace in right-to-left rows.
8379
855a0da7
SM
83802010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
8381
8382 Get rid of the direct_output optimizations.
8383 * keyboard.c (nonundocount): Remove extern declaration.
8384 (command_loop_1): Remove brittle optimisation for cheap and
8385 common operations.
8386 * xdisp.c (redisplay_internal): Don't bother checking
8387 redisplay_performed_directly_p any more.
8388 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
8389 any more.
8390 * dispnew.c (redisplay_performed_directly_p)
8391 (direct_output_for_insert, direct_output_forward_char):
8392 * dispextern.h (redisplay_performed_directly_p)
8393 (direct_output_for_insert, direct_output_forward_char): Remove.
8394 * cmds.c (nonundocount): Make it static.
8395
85738751 83962010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
a6d676d9
CY
8397
8398 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
8399
85738751 84002010-03-31 Jan Djärv <jan.h.d@swipnet.se>
67fee863
JD
8401
8402 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
8403 invisible (Bug#5766).
8404
85738751 84052010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
9ae6e189 8406
855a0da7
SM
8407 * xdisp.c (x_consider_frame_title, update_window_cursor):
8408 Remove HAVE_NS conditionals.
194d44e7 8409 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
9ae6e189
CY
8410
8411 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
8412 filename for the title.
8413 (ns_set_doc_edited): Do nothing if the selected window is a
8414 minibuffer window.
8415
8416 * nsterm.h: Add prototypes for ns_set_name_as_filename and
8417 ns_set_doc_edited.
8418
8419 * nsterm.m: Remove unneeded prototype.
8420
85738751 84212010-03-31 Glenn Morris <rgm@gnu.org>
25c72475
GM
8422
8423 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
8424 in the DOC file. (Bug#5336)
8425
85738751 84262010-03-31 Chong Yidong <cyd@stupidchicken.com>
f79a01db
CY
8427
8428 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
8429
75d1428c
SM
84302010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
8431
8432 * window.c (keys_of_window): Remove redundant/overridden bindings.
8433
82043cfb
EZ
84342010-03-30 Eli Zaretskii <eliz@gnu.org>
8435
8436 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
8437 Restore original behavior when the iterator is not bidi_p.
8438
b5dd0ae7
DN
84392010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
8440
8441 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
8442
bd924a5d
EZ
84432010-03-30 Eli Zaretskii <eliz@gnu.org>
8444
8445 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
8446 are outside the range of cached character positions.
8447
3580374b
JB
84482010-03-30 Juanma Barranquero <lekktu@gmail.com>
8449
8450 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
8451
a7b02820
EZ
84522010-03-30 Eli Zaretskii <eliz@gnu.org>
8453
8454 Initial support for bidirectional editing.
8455
8456 * Makefile.in (obj): Include bidi.o.
8457 (bidi.o): New target.
8458
8459 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
8460 ($(BLD)/bidi.$(O)): New target.
8461
8462 * bidi.c: New file.
8463
8464 * buffer.h (struct buffer): New members bidi_display_reordering
8465 and bidi_paragraph_direction.
8466
8467 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
8468 and bidi_paragraph_direction.
8469 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
8470 and bidi-paragraph-direction.
8471 (Fbuffer_swap_text): Swap the values of
8472 bidi_display_reordering and bidi_paragraph_direction.
8473
8474 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
8475 (bidi_type_t, bidi_dir_t): New types.
8476 (bidi_saved_info, bidi_stack, bidi_it): New structures.
8477 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
8478 prev_stop, base_level_stop, and eol_pos.
8479 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
8480 (IT_STACK_SIZE): Enlarge to 5.
8481 (struct glyph_row): New member reversed_p.
8482 <string_buffer_position>: Update prototype.
8483 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
8484 glyph_row if bidi_it.paragraph_dir == R2L.
8485 (struct glyph): New members resolved_level and bidi_type.
8486
8487 * dispnew.c (direct_output_forward_char): Give up if we need bidi
8488 processing or buffer's direction is right-to-left.
8489 (prepare_desired_row): Preserve the reversed_p flag.
8490 (row_equal_p): Compare the reversed_p attributes as well.
8491
bba3e508
SM
8492 * xdisp.c (init_iterator): Initialize it->bidi_p.
8493 Call bidi_init_it and set it->paragraph_embedding from the current
a7b02820
EZ
8494 buffer's value of bidi_paragraph_direction.
8495 (reseat_1): Initialize bidi_it.first_elt.
8496 (set_iterator_to_next, next_element_from_buffer): Use the value of
8497 paragraph_embedding to determine the paragraph direction.
8498 (set_iterator_to_next): Under bidi reordering, call
8499 bidi_get_next_char_visually. Call bidi_paragraph_init if the
8500 new_paragraph flag is set in the bidi iterator.
8501 (next_element_from_buffer): If bidi_it.first_elt is set,
8502 initialize paragraph direction and find the first character to
8503 display in the visual order. If reseated to a middle of a line,
bba3e508
SM
8504 prime the bidi iterator starting at the line's beginning.
8505 Handle the situation where we overstepped stop_charpos due to
a7b02820
EZ
8506 non-linearity of the bidi iteration. Likewise for when we back up
8507 beyond the previous stop_charpos. When moving across stop_charpos,
8508 record it in prev_stop.
8509 (display_line): Set row->end and it->start for the next row to the
8510 next character in logical order. Always extend reversed_p rows to
8511 the end of line, even if they end at ZV. Copy the reversed_p flag
8512 to the next glyph row. Keep calling set_cursor_from_row for
8513 bidi-reordered rows even if we already have a possible candidate
8514 for cursor position. Set row_end after all the row's glyphs have
8515 been produced, by looping over the glyphs. Record the position
8516 after EOL in it->eol_pos, and use it to set end_pos of the last
8517 row produced for a continued line.
8518 <Qright_to_left, Qleft_to_right>: New variables.
8519 (syms_of_xdisp): Initialize and staticpro them.
8520 (string_buffer_position_lim): New function.
8521 (string_buffer_position): Most of code moved to
8522 string_buffer_position_lim. Last argument and return value are
8523 now EMACS_INT; all callers changed.
8524 (set_cursor_from_row): Rewritten to support bidirectional text and
8525 reversed glyph rows.
bba3e508
SM
8526 (text_outside_line_unchanged_p, try_window_id):
8527 Disable optimizations if we are reordering bidirectional text and the
a7b02820
EZ
8528 paragraph direction can be affected by the change.
8529 (append_glyph, append_composite_glyph)
8530 (produce_image_glyph, append_stretch_glyph): Set the
8531 resolved_level and bidi_type members of each glyph.
8532 (append_glyph): If the glyph row is reversed, prepend the glyph
8533 rather than appending it.
8534 (handle_stop_backwards): New function.
8535 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
8536 (reseat): call handle_stop_backwards to recompute prev_stop and
8537 base_level_stop for the new position.
8538 (handle_invisible_prop): Under bidi iteration, skip invisible text
8539 using bidi_get_next_char_visually. If we are `reseat'ed, init the
8540 paragraph direction. Update IT->prev_stop after skipping
8541 invisible text.
8542 (move_it_in_display_line_to): New variables prev_method
8543 and prev_pos. Compare for strict equality in
8544 BUFFER_POS_REACHED_P.
8545 (try_cursor_movement): Examine all the candidate rows that occlude
8546 point, to return the best match. If rows are bidi-reordered
8547 and point moved backwards, back up to the row that is not a
8548 continuation line, and start looking for a suitable row from
8549 there.
8550
8551 * term.c (append_glyph): Reverse glyphs by pre-pending them,
8552 rather than appending, if the glyph_row's reversed_p flag is set.
8553 Set the resolved_level and bidi_type members of each glyph.
8554
8555 * .gdbinit (pbiditype): New command.
8556 (pgx): Use it to display bidi level and type of the glyph.
8557 (pitx): Display some bidi information about the iterator.
8558 (prowlims, pmtxrows): New commands.
8559
32a8894e
DN
85602010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
8561
8562 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
8563 * s/usg5-4.h (LIBS_DEBUG):
8564 * s/irix6-5.h (C_DEBUG_SWITCH):
8565 * s/gnu-linux.h (LIBS_DEBUG):
8566 * s/darwin.h (LIBS_DEBUG):
8567 * s/bsd-common.h (LIBS_DEBUG):
8568 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
8569 * m/iris4d.h (LIBS_DEBUG):
8570 * m/hp800.h (LIBS_DEBUG): Remove definitions.
8571
8572 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
8573 (LIBS_DEBUG): Remove definition.
8574
649dbf36
CY
85752010-03-27 Chong Yidong <cyd@stupidchicken.com>
8576
8577 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
8578 Windows.
8579
cad4261f
YM
85802010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8581
8582 * process.c (Fmake_network_process): Don't call turn_on_atimers around
8583 `connect' (Bug#5723).
8584
cd591dbc
HE
85852010-03-25 Helmut Eller <eller.helmut@gmail.com>
8586
8587 * process.c (Fmake_network_process): Call `select' for interrupted
8588 `connect' rather than creating new socket (Bug#5173).
8589
e867cb5d 85902010-03-24 Jan Djärv <jan.h.d@swipnet.se>
93318cbd
JD
8591
8592 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
8593
8594 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
8595
8596 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
8597
e867cb5d 85982010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ad13a3ee
YM
8599
8600 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
8601 XLoadQueryFont.
8602
e867cb5d 86032010-03-24 Kenichi Handa <handa@m17n.org>
fbdc1721
KH
8604
8605 * coding.c (decode_coding_ccl): Fix previous change for the
8606 multibyte case.
fb608df3
KH
8607 (encode_coding_ccl): Don't setup ccl program here. Fix for the
8608 case that the output buffer is fullfilled.
8609 (encode_coding): Setup ccl program here.
fbdc1721 8610
5845f0ed
DN
86112010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
8612
814fb708
DN
8613 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
8614
5845f0ed
DN
8615 Simplify LIBS_MACHINE definitions.
8616 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
8617 * m/iris4d.h (LIBS_MACHINE): Likewise.
8618 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
8619 * s/aix4-2.h (LIBS_SYSTEM): ... here.
38e3487c 8620 * s/netbsd.h: Remove commented out code.
5845f0ed 8621
b7064064
DN
86222010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
8623
df7734b2
DN
8624 Remove dead code dealing with POSIX_SIGNALS.
8625 * atimer.c (set_alarm): Remove dead code, all USG systems define
8626 POSIX_SIGNALS.
8627 * data.c (arith_error): Likewise.
8628 * keyboard.c (input_available_signal, handle_user_signal)
8629 (interrupt_signal): Likewise.
8630 * process.c (sigchld_handler): Likewise.
8631 (create_process): Remove if 0 code. Remove HPUX conditional when
8632 !defined (POSIX_SIGNALS), it cannot be true.
8633 * syssignal.h: Remove USG5_4 and USG conditionals when
8634 !POSIX_SIGNALS, they cannot be true.
8635
b7064064
DN
8636 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
8637 NO_SOCK_SIGIO, not used anymore.
8638
55da5ee3
DN
86392010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
8640
0be96e3a
DN
8641 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
8642 support vax on BSDs.
8643
55da5ee3
DN
8644 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
8645 * s/aix4-2.h (ORDINARY_LINK): ... here.
8646
c0282183
AS
86472010-03-21 Andreas Schwab <schwab@linux-m68k.org>
8648
82c3d67a
AS
8649 * Makefile.in (abs_builddir): Define.
8650 (bootstrap_exe): Use it.
8651 (VPATH): Use $(srcdir) instead of @srcdir@.
c0282183 8652
3613edce
SM
86532010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
8654
8655 * Makefile.in (bootstrap_exe): Use an absolute name.
8656
7f110ddc
DN
86572010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
8658
22e87574
DN
8659 Remove support for old GNU/Linux using libc version 5.
8660 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
8661 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
8662
05a670e6
DN
8663 Consolidate redundant definitions in s/bsd-common.h.
8664 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
8665 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
8666 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
8667 doing it in all files that include this one.
8668 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
8669 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
8670 (LDAV_SYMBOL, KERNEL_FILE): Remove.
8671 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
8672 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
8673 (LDAV_SYMBOL, KERNEL_FILE): Remove.
8674 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
8675 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
8676 (LDAV_SYMBOL, KERNEL_FILE): Remove.
8677
2968f561
DN
8678 Consolidate redundant definitions.
8679 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
8680 it's undefined in all files that include this one.
8681 (POSIX_SIGNALS): Define here instead of doing it in all files that
8682 include this one.
8683 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
8684 (POSIX_SIGNALS): Do not define.
8685 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
8686 (POSIX_SIGNALS): Do not define.
8687 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
8688 (POSIX_SIGNALS): Do not define.
8689
15d25dc0
DN
8690 Remove support for old UNIX System V systems.
8691 * s/unixware.h: Add the contents of s/usg-5-4-2.h.
8692 * s/usg-5-4-2.h: Remove.
8693
07e339e4
DN
8694 Remove support for Solaris on PPC and for old versions.
8695 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
8696 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
8697 that cancel each other.
8698 * s/sol2-3.h:
8699 * s/sol2-4.h:
8700 * s/sol2-5.h: Remove.
8701 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
8702 (NO_REMAP): Remove, unused.
8703 (UNEXEC): Move definition ...
8704 * s/aix4-2.h (UNEXEC): ... here.
8705
7f110ddc
DN
8706 * s/openbsd.h: Remove support for non-ELF and for systems that do
8707 not support shared libraries.
8708 * s/netbsd.h:
8709 * s/freebsd.h: Likewise.
8710
605f35cd
DN
87112010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
8712
8713 Remove non-working support for lynxos 3.0.
8714 * s/lynxos.h: Remove file.
8715
8716 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
8717 COFF_BSD_SYMBOLS, nothing defines it anymore.
8718
aed71cf4
DN
87192010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
8720
8721 Remove obsolete uses of HAVE_SHM.
8722 * emacs.c (standard_args):
8723 (Fdump_emacs):
8724 (syms_of_emacs): Remove code depending on HAVE_SHM.
8725
8726 * alloc.c: Remove HAVE_SHM dependent definition.
8727
8728 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
8729
aded53ff
GM
87302010-03-18 Glenn Morris <rgm@gnu.org>
8731
17284745
GM
8732 * emacs.c (USAGE4): Hard-code bug address.
8733 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
8734 (bug_reporting_address): Remove.
8735 (main): Don't call bug_reporting_address.
8736
aded53ff
GM
8737 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
8738 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
8739
303500aa
CY
87402010-03-15 Chong Yidong <cyd@stupidchicken.com>
8741
8742 * xfns.c (Fx_create_frame):
8743 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
8744 on left.
8745
cef3058f
CY
87462010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
8747
8748 * editfns.c (Fformat): Account for string precision when computing
8749 field width (Bug#5710).
8750
a647d59d
CY
87512010-03-12 Chong Yidong <cyd@stupidchicken.com>
8752
4fa42018
CY
8753 * xfns.c (Fx_create_frame): Set default to Qright.
8754
a647d59d
CY
8755 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
8756 all window systems.
8757
6da23aaa
EZ
87582010-03-12 Eli Zaretskii <eliz@gnu.org>
8759
a96f6398 8760 These changes remove termcap.c from the build on Posix platforms.
83d02def 8761 * Makefile.in (termcapobj): Move termcap.o from here...
6da23aaa
EZ
8762 (MSDOS_OBJ): ...to here.
8763 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
8764 now identical to when LIBS_TERMCAP is defined.
8765
8766 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
8767
8768 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
8769
a96f6398 8770 * config.in: Regenerated. (See top-level ChangeLog.)
6da23aaa 8771
288f9fc0
CY
87722010-03-10 Chong Yidong <cyd@stupidchicken.com>
8773
8774 * Branch for 23.2.
8775
d48cd3f4
SM
87762010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
8777
8778 Cleanup setup of gl_state in various parts of the code.
8779 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
8780 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
8781 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
8782 (skip_chars):
8783 * regex.c (regex_compile): Use it.
8784 (re_compile_pattern): Don't set gl_state.current_syntax_table since
8785 it's now set in regex_compile when/if we need it.
8786
618db430
SM
87872010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
8788
c0335e02
SM
8789 Make it possible to C-g in a tight bytecode loop again (bug#5680).
8790 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
8791 (QUIT): Use it to consolidate code and remove redundancy.
8792 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
8793
254c06a8
SM
8794 * regex.c (regex_compile): Setup gl_state as well.
8795
618db430
SM
8796 * syntax.c (skip_chars): Setup gl_state (bug#3823).
8797 (in_classes): Use CONSP before XCAR/XCDR.
8798
233f0c9f
CY
87992010-03-03 Chong Yidong <cyd@stupidchicken.com>
8800
8801 * keymap.c (Fwhere_is_internal): Use Fequal to compare
8802 definitions, so that keyboard macros are correctly handled
8803 (Bug#5481).
8804
75f80e63
EZ
88052010-03-02 Eli Zaretskii <eliz@gnu.org>
8806
8807 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
8808 text that could be relocated inside the call to emacs_mule_char.
8809 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
8810 (CODING_DECODE_CHAR): Add a comment describing its purpose.
8811
dcfb9bc4
KH
88122010-03-02 Kenichi Handa <handa@m17n.org>
8813
fc9a17bc
KH
8814 * character.c (parse_str_as_multibyte): Fix handling of the
8815 multibyte form of raw-bytes.
8816 (str_as_multibyte): Likewise.
8817
dcfb9bc4
KH
8818 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
8819 form of raw-bytes.
8820
412c01b6
CY
88212010-02-28 Chong Yidong <cyd@stupidchicken.com>
8822
8823 * charset.c (load_charset_map_from_file)
8824 (load_charset_map_from_vector): Zero out allocated
8825 charset_map_entries before using them.
8826
df7e1ea0
AS
88272010-02-27 Andreas Schwab <schwab@linux-m68k.org>
8828
8829 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
8830
fe69a722
CY
88312010-02-27 Chong Yidong <cyd@stupidchicken.com>
8832
4ed28cf4
CY
8833 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
8834 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
fe69a722 8835
7379cfce
KH
88362010-02-26 Kenichi Handa <handa@m17n.org>
8837
f88cc4d6
KH
8838 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
8839
7379cfce
KH
8840 * xdisp.c (reseat_to_string): Fix previous change.
8841
cf2fdcfb
CY
88422010-02-26 David Reitter <david.reitter@gmail.com>
8843
8844 * nsfont.m (nsfont_draw): ns_antialias_text should be a
8845 Lisp_Object (Bug#4736).
8846
cc6c7c75
KH
88472010-02-25 Kenichi Handa <handa@m17n.org>
8848
8849 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
8850
32e737d7
JD
88512010-02-24 Jan Djärv <jan.h.d@swipnet.se>
8852
8853 * xterm.c (XTflash): Move declarations before statements.
8854
8855 * gtkutil.c (xg_get_gdk_display): Remove (unused).
8856 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
8857 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
8858 (xg_create_tool_bar): Remove unused variables.
8859 (x_wm_set_size_hint): Move declarations before statements.
a73f9c9d 8860 (xg_create_frame_widgets): Remove variable grav.
32e737d7 8861
676cae9f
CY
88622010-02-21 Chong Yidong <cyd@stupidchicken.com>
8863
8864 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
8865
886cc2b8
SM
88662010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
8867
8868 * term.c (fatal): Add a final \n if needed (bug#5596).
8869
ddb2d8e2
CY
88702010-02-18 Chong Yidong <cyd@stupidchicken.com>
8871
8872 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
8873
2a4f8d3d
GM
88742010-02-18 Glenn Morris <rgm@gnu.org>
8875
8876 * callint.c (Finteractive): Doc fix.
8877
ebaf11b6
KH
88782010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
8879
886cc2b8
SM
8880 * coding.c (record_conversion_result):
8881 Handle CODING_RESULT_INSUFFICIENT_DST.
ebaf11b6
KH
8882 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
8883 memory allocation error.
8884
d0396581
KH
88852010-02-17 Kenichi Handa <handa@m17n.org>
8886
886cc2b8
SM
8887 * coding.c (decode_coding_ccl): Don't setup ccl program here.
8888 Fix for the case that the output buffer is fullfilled.
d0396581
KH
8889 (decode_coding): Setup ccl program here. Keep looping when the
8890 decoder stopped because the output buffer is
8891 fullfilled (bug#5534).
8892
8893 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
8894
98599f74
JD
88952010-02-13 Jan Djärv <jan.h.d@swipnet.se>
8896
471e4f04 8897 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
98599f74 8898 bug #5571.
886cc2b8 8899 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
471e4f04 8900 overdrawn.
98599f74 8901
182659ae
JD
89022010-02-10 Jan Djärv <jan.h.d@swipnet.se>
8903
8904 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
8905 doing_interact here.
8906 (ice_connection_closed): New function.
8907 (x_session_check_input, smc_die_CB, ice_io_error_handler)
8908 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
8909 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
8910 returns I/O error.
8911 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
8912 bug #5512.
8913
9be32c4e 89142010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
14a225f9
CY
8915
8916 * nsfont.m (nsfont_open): The system's value for the font descent
8917 is negative, so round it down to avoid clipping.
8918
a2f3eb19
CY
89192010-02-06 Chong Yidong <cyd@stupidchicken.com>
8920
8921 * charset.c (load_charset_map_from_file)
8922 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
953d248c 8923 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
a2f3eb19 8924
3088147c
CY
89252010-02-05 Chong Yidong <cyd@stupidchicken.com>
8926
8927 * charset.c (load_charset_map_from_file): Allocate large
8928 charset_map_entries structure on the heap rather than the stack.
8929 (Bug#5526).
8930
b57d9029
KH
89312010-01-31 Kenichi Handa <handa@m17n.org>
8932
8933 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
115e4fd3 8934 size in NAME is invalid, return -1 (Bug#5396).
b57d9029 8935
c67d885b
CY
89362010-01-31 Chong Yidong <cyd@stupidchicken.com>
8937
8938 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
8939 <deactivated@gmail.com> (Bug#3605).
8940
8fab2362
CY
89412010-01-31 David De La Harpe Golden <david@harpegolden.net>
8942
8943 * fileio.c (Frename_file): Correctly rename symlinks to
8944 directories (Bug#5496).
8945
cb2a62f2
CY
89462010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
8947
8948 * nsterm.m (ns_ring_bell): Handle visible bell like X.
8949
944c7a26
AS
89502010-01-30 Andreas Schwab <schwab@linux-m68k.org>
8951
8952 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
8953
c024ac08
CY
89542010-01-29 Chong Yidong <cyd@stupidchicken.com>
8955
8956 * frame.c (DEFAULT_ROWS): Change default to 35.
8957
8958 * xfns.c (x_default_font_parameter): Change default XFT font to
8959 monospace-10 (Bug#3643).
8960
af93af83
EZ
89612010-01-29 Eli Zaretskii <eliz@gnu.org>
8962
8963 * w32inevt.c (key_event): Remove unnecessary comparison of
8964 event->uChar.AsciiChar with 128.
8965
ca0eb708
CY
89662010-01-28 Chong Yidong <cyd@stupidchicken.com>
8967
b242dbfc
CY
8968 * fileio.c (Frename_file): Fix last change (Bug#5487).
8969
ca0eb708
CY
8970 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
8971
8972 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
8973
45d45af5
JD
89742010-01-28 Jan Djärv <jan.h.d@swipnet.se>
8975
8976 * xfns.c (Fx_create_frame): Remove window size matching code from
8977 2010-01-15.
a73f9c9d 8978 (x_get_current_desktop, x_get_desktop_workarea): Remove.
45d45af5 8979
7e233730
JR
89802010-01-27 Jason Rumney <jasonr@gnu.org>
8981
8982 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
a292592c 8983 (key_event): Use unicode for characters 128 and higher (Bug#4567).
7e233730 8984
86e893e3
KH
89852010-01-27 Kenichi Handa <handa@m17n.org>
8986
8987 * regex.c (analyse_first): Fix setting of fastmap for unibyte
c8b96b2a 8988 pattern string (Bug#4209).
86e893e3 8989
8719abec
CY
89902010-01-27 David De La Harpe Golden <david@harpegolden.net>
8991
8992 * fileio.c (Frename_file): Call copy-directory and
8993 delete-directory for directories, in order to handle cross-device
8994 renaming (Bug#3353).
8995
844794c8
JD
89962010-01-25 Jan Djärv <jan.h.d@swipnet.se>
8997
aa3e13b5 8998 * xfns.c (Fx_create_frame): If frame height is too big, try
ac146f82 8999 sizes 24 and 10. Bug #3643.
844794c8 9000
bd4b5750
SM
90012010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
9002
8dc1adf6 9003 Try and fix bug#788, hopefully for real this time.
bd4b5750
SM
9004 * keymap.c (shadow_lookup): Add `remap' arg.
9005 (describe_map, describe_vector): Update calls to shadow_lookup.
9006 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
9007 `remapped' so this flag is applicable to `sequence'. Be careful to
8dc1adf6
SM
9008 perform remapping during shadow_lookup check of remapped_sequences.
9009
285d07e2
CY
90102010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
9011
9012 * image.c (png_load): Use png_sig_cmp instead of the obsolete
9013 png_check_sig, which has been removed in libpng 1.4.
9014
c6d09b8d
CY
90152010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
9016
9017 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
9018 lacks this header file).
9019
3d782998
YM
90202010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9021
9022 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
9023 as in Emacs 22.
9024
2aff7c53
YM
90252010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9026
9027 * lisp.h (make_pure_string): String pointer arg now points to const.
9028
9029 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
9030 args now point to const.
9031
74327f7a
EZ
90322010-01-22 Eli Zaretskii <eliz@gnu.org>
9033
9034 * lread.c (Fload): Don't treat files without .elc extension as
9035 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
9036 them. (bug#5303)
9037
4d1e6632
KH
90382010-01-20 Kenichi Handa <handa@m17n.org>
9039
9040 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
9041 treat the source as actual byte sequence.
9042
1fdede8f
AM
90432010-01-19 Alan Mackenzie <acm@muc.de>
9044
9045 Fix spurious before-change-functions invocation from (insert ?\n).
194d44e7 9046 * textprop.c (set_text_properties): Rename parameter
1fdede8f
AM
9047 `signal_after_change_p' to `coherent_change_p', and make the
9048 invocation of `modify_region' conditional on it.
9049
67477f30
JD
90502010-01-19 Jan Djärv <jan.h.d@swipnet.se>
9051
9052 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
9053 for debug purpose.
9054 (syms_of_xsettings): Declare xft-settings.
9055
244b023e
CY
90562010-01-18 Chong Yidong <cyd@stupidchicken.com>
9057
9058 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
9059
617364fe
CY
90602010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
9061
9062 * xterm.c (event_handler_gdk): Block input (Bug#5037).
9063
4fe22cdf
CY
90642010-01-16 Chong Yidong <cyd@stupidchicken.com>
9065
9066 * emacs.c (standard_args): Adjust arg priorities to reflect how
9067 they are processed in startup.el.
9068
e118d2be
AS
90692010-01-16 Andreas Schwab <schwab@linux-m68k.org>
9070
9071 * Makefile.in (lisp, shortlisp): Update.
9072
523ae620
SM
90732010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
9074
9075 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
9076 code, link the new kboard into all_kboard before running Lisp code,
9077 and protect the new terminal with GCPRO (Bug#5365).
9078 (x_term_init): Remove unused var `atom'.
9079 (x_delete_display, x_delete_terminal): Remove unused var `i'.
9080
f0d13888
JD
90812010-01-15 Jan Djärv <jan.h.d@swipnet.se>
9082
9083 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
9084 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
9085 to find out usable size of the desktop. Don't make frames larger than
ac146f82 9086 this. Bug #3643.
f0d13888 9087
cc320f07
KH
90882010-01-15 Kenichi Handa <handa@m17n.org>
9089
9090 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
9091
7ffdf101
CY
90922010-01-15 Chong Yidong <cyd@stupidchicken.com>
9093
9094 * nsterm.m (Qnone): Define.
9095
9096 * nsfns.m (Qnone): Move definition to nsterm.m.
9097
d12bd917
KH
90982010-01-14 Kenichi Handa <handa@m17n.org>
9099
9100 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
9101 systems.
9102
d9a7c140
KH
91032010-01-14 Kenichi Handa <handa@m17n.org>
9104
9105 Make auto-composition work on all buffers even if they are
9106 fundamental mode.
9107
9108 * composite.c (Vauto_composition_mode): New variable.
9109 (composition_compute_stop_pos): Check Vauto_composition_mode
9110 instead of Vauto_composition_function.
9111 (composition_adjust_point, Ffind_composition_internal): Likewise.
9112 (syms_of_composite): Declare Lisp variable
9113 "auto-composition-mode" here.
9114
63286bb2
CY
91152010-01-13 Chong Yidong <cyd@stupidchicken.com>
9116
9117 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
9118 during call to vendor-specific-keysyms (Bug#5365).
9119
c2623ee7
YM
91202010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9121
9122 * keyboard.c (input_available_signal) [SYNC_INPUT]:
9123 Call SIGNAL_THREAD_CHECK (Bug#5333).
9124
9125 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
9126 Call SIGNAL_THREAD_CHECK.
9127
0b5397c2
SM
91282010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
9129
9130 Try to fix bug#5314. This is probably not the final word, tho.
9131 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
9132 recent-auto-save-p as a side-effect.
9133 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
9134 * buffer.c (Fkill_buffer, reset_buffer):
9135 * editfns.c (Fsubst_char_in_region):
9136 * fileio.c (Finsert_file_contents, Fdo_auto_save)
9137 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
9138
dc954cb2
KH
91392010-01-13 Kenichi Handa <handa@m17n.org>
9140
9141 Display buffer name, etc. in mode line by composing correctly.
9142
9143 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
9144 STRING is not nil.
0b5397c2 9145 (display_mode_element): Adjust for the change of
dc954cb2
KH
9146 decode_mode_spec and display_line.
9147 (decode_mode_spec): Change arg MULTIBYTE to STRING.
9148 (display_string): Handle the case that STRING is non-null and
9149 LISP_STRING is not nil.
9150
0b5397c2
SM
9151 * xterm.c (x_draw_composite_glyph_string_foreground):
9152 Pay attention to s->face->overstrike.
dc954cb2
KH
9153
9154 * composite.c (composition_reseat_it): Don't check PT if STRING is
9155 non nil.
9156
4a00eaca
YM
91572010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9158
9159 * keyboard.c (read_char): Don't apply previous change when current
9160 buffer is unchanged by command execution.
9161
60abb287
JD
91622010-01-12 Jan Djärv <jan.h.d@swipnet.se>
9163
9164 * keyboard.c (read_char): Return after executing from special map.
9165
893db5bc
GM
91662010-01-12 Glenn Morris <rgm@gnu.org>
9167
9168 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
9169 bug-gnu-emacs rather than emacs-pretest-bug.
9170
4d03ece0
CY
91712010-01-11 Chong Yidong <cyd@stupidchicken.com>
9172
9173 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
9174 initializing the Lisp variables that depend on them.
9175
1df47e38
YM
91762010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9177
9178 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
9179 Clear areas that will not be updated after change of menu bar lines.
9180 Clear the menu bar window's current matrix when the window gets empty.
9181
2f1c6384
CY
91822010-01-09 Chong Yidong <cyd@stupidchicken.com>
9183
e398c61c
CY
9184 * intervals.h, textprop.c (extend_property_ranges): Return value
9185 and args changed. Discard properties that begin at or after the
9186 new end (Bug#5306).
9187
9188 * editfns.c (Fformat): Caller changed.
9189
e5a29a10
CY
9190 * nsterm.m (ns_set_default_prefs): Delete function.
9191 (syms_of_nsterm): Initialize ns_command_modifier,
9192 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
9193 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
9194
2f1c6384
CY
9195 * xdisp.c (pos_visible_p): Check for invisible text at the correct
9196 position (Bug#4040).
9197
d427a9fa
EZ
91982010-01-09 Eli Zaretskii <eliz@gnu.org>
9199
9200 * editfns.c (Ffloat_time): Doc fix.
9201
21b9df2f
JD
92022010-01-09 Jan Djärv <jan.h.d@swipnet.se>
9203
9204 * xfns.c (Fx_create_frame): Don't create frame larger than display
9205 by default bug#3643.
9206
4b00d3b1
YM
92072010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9208
9209 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
9210 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
9211 windows above internal border.
9212
9213 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
9214 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
9215 windows above internal border.
9216
9217 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
9218 tool bar windows specially.
9219
9220 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
9221
9222 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
9223 specially.
9224 (XTflash): Take account of menu bar height.
9225
9226 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
9227 specially.
9228
5075d853
JD
92292010-01-08 Jan Djärv <jan.h.d@swipnet.se>
9230
ac146f82 9231 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
5075d853
JD
9232 also be true before we can return early (bug #5339).
9233
474217c8
CY
92342010-01-06 David Reitter <david.reitter@gmail.com>
9235
9236 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
9237 (Fns_display_usable_bounds): Rewrite, computing bounds properly
9238 (Bug#3233).
9239
c0e6d47d
JD
92402010-01-06 Jan Djärv <jan.h.d@swipnet.se>
9241
d0cf45b7
JD
9242 * font.c (font_open_entity): Enable chache and call cached_font_ok
9243 for the driver if defined.
9244 (QCuser_spec): New symbol.
9245 (font_spec_from_name): Save name as user-spec.
9246 (font_load_for_lface): Keep user-spec instead of name.
9247 (font_open_by_name): Save name as user-spec.
9248 (syms_of_font): Initialize QCuser_spec.
b7f8e4f5 9249 (font_clear_prop): Clear name if it exists in font (bug#5157).
d0cf45b7
JD
9250
9251 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
9252 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
9253 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
9254
9255 * font.h (struct font_driver): Add cached_font_ok.
9256
c0e6d47d
JD
9257 * xterm.c (x_clear_frame): Queue draw for scroll bars.
9258
7c583cd8
JD
92592010-01-05 Jan Djärv <jan.h.d@swipnet.se>
9260
9261 * xterm.c (x_new_font): Move code for setting rows/cols before
9262 resizing ...
ac146f82 9263 (x_set_window_size): ... to here. Bug #2568.
7c583cd8
JD
9264
9265 * gtkutil.c (xg_clear_under_internal_border): New function.
0b5397c2
SM
9266 (xg_frame_resized, xg_frame_set_char_size):
9267 Call xg_clear_under_internal_border.
7c583cd8 9268 (xg_update_scrollbar_pos): Clear under old scroll bar position.
69e2f185 9269
03f77f0a
CY
92702010-01-05 Chong Yidong <cyd@stupidchicken.com>
9271
9272 * keyboard.c (read_key_sequence): Catch keyboard switch after
9273 making a new tty frame (Bug#5095).
9274
2a1ef5be
KH
92752010-01-05 Kenichi Handa <handa@m17n.org>
9276
9277 * fontset.c (fontset_find_font): Fix getting the frame pointer.
9278
e3eb1dae
SM
92792010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
9280
9281 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
9282 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
9283 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
9284
777013f2
MA
92852010-01-03 Michael Albinus <michael.albinus@gmx.de>
9286
9287 * dbusbind.c (xd_add_watch): Improve debug message.
9288 (xd_remove_watch): Improve debug message. If DATA is the session
9289 bus, unset D-Bus session environment.
9290 (Fdbus_init_bus): Pass the bus as argument to
9291 dbus_connection_set_watch_functions. (Bug#5283)
7c583cd8 9292
8932b1c2
CY
92932010-01-01 Chong Yidong <cyd@stupidchicken.com>
9294
87231e2c
CY
9295 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
9296
4801c5fa
CY
9297 * lread.c (syms_of_lread): Make it clearer that these are the
9298 names of loaded files (Bug#5068).
9299
8932b1c2
CY
9300 * eval.c (run_hook_with_args): Handle the case where the global
9301 value has the obsolete single-function form (Bug#5026).
9302
11e3c684
CY
93032009-12-27 Chong Yidong <cyd@stupidchicken.com>
9304
9305 * minibuf.c (Fall_completions): Minor optimization.
9306
5b28ce35
EZ
93072009-12-26 Eli Zaretskii <eliz@gnu.org>
9308
5ce6e4f4
JB
9309 * .gdbinit (pgx): Fix display of composite glyphs.
9310 Display cmp.from and cmp.to as well.
9311 (pitx): Fix last change.
5b28ce35 9312
bcffff46
KH
93132009-12-25 Kenichi Handa <handa@m17n.org>
9314
9315 * composite.h (composition_adjust_point): Update prototype.
9316
9317 * composite.c (composition_reseat_it): Don't make a composition
9318 spanning over point.
9319 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
9320 composable characters.
9321 (composition_adjust_point): New arg NEW_PT. Callers changed.
9322
9323 * keyboard.c (command_loop_1): Force redisplay if the last point
9324 was within a composition.
9325 (adjust_point_for_property): Don't adjust point for automatic
9326 composition when called after buffer modification.
9327
3f670e9a
EZ
93282009-12-19 Eli Zaretskii <eliz@gnu.org>
9329
5ce6e4f4
JB
9330 * .gdbinit (pitx): Don't use enum names, use their values.
9331 Remove reference to non-existing value GET_FROM_COMPOSITION.
be996d82
EZ
9332 (pgx): Don't use enum names, use their values.
9333 (pitmethod): New helper command.
9334 (pitx): Use it to display iteration method.
9335 (pgrowit): New command.
9336
ad903955
EZ
9337 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
9338
3f670e9a
EZ
9339 Update dependencies in Makefile.in.
9340
9341 * Makefile.in (alloc.o): Depend on termhooks.h.
9342 (atimer.o): Depend on blockinput.h.
9343 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
9344 and frame.h.
9345 (callint.o): Depend on systime.h, coding.h, and composite.h.
9346 (callproc.o): Depend on buffer.h.
9347 (casefiddle.o): Don't depend on charset.h.
9348 (casetab.o): Depend on character.h.
9349 (ccl.o): Depend on composite.h.
9350 (chartab.o): Depend on ccl.h.
9351 (cm.o): Depend on dispextern.h.
9352 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
9353 (coding.o): Don't depend on $(INTERVALS_H).
9354 (composite.o): Don't depend on dispextern.h explicitly (it's in
9355 $(INTERVALS_H)). Depend on ccl.h.
9356 (data.o): Depend on systime.h, coding.h, composite.h,
9357 dispextern.h, font.h, and ccl.h.
9358 (dired.o): Depend on composite.h.
9359 (dispnew.o): Depend on coding.h. Don't depend explicitly on
9360 composite.h (it's in $(INTERVALS_H)).
9361 (doc.o): Depend on systime.h, coding.h, and composite.h.
9362 (editfns.o): Don't depend explicitly on dispextern.h.
9363 (emacs.o): Depend on frame.h and coding.h.
9364 (eval.o): Depend on coding.h, composite.h, and xterm.h.
9365 (fileio.o): Depend on frame.h and commands.h. Don't depend
9366 explicitly on dispextern.h.
9367 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
9368 composite.h.
9369 (fns.o): Don't depend on termhooks.h.
9370 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
9371 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
9372 coding.h, $(INTERVALS_H), window.h, xterm.h.
9373 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
9374 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
9375 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
9376 fontset.h, ccl.h, and ftfont.h.
9377 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
9378 (gtkutil.o): Depend on dispextern.h and composite.h.
9379 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
9380 termhooks.h, and ccl.h.
9381 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
9382 (intervals.o): Depend on systime.h and coding.h.
9383 (keyboard.o): Depend on composite.h and coding.h.
9384 (keymap.o): Depend on coding.h and frame.h.
9385 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
9386 (macros.o): Depend on systime.h, coding.h, and composite.h.
9387 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
9388 and atimer.h.
9389 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
9390 dispextern.h explicitly.
0b5397c2
SM
9391 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
9392 Don't depend explicitly on dispextern.h and composite.h.
3f670e9a
EZ
9393 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
9394 (regex.o): Don't depend on charset.h.
9395 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
9396 (search.o): Don't depend explicitly on composite.h.
9397 (sound.o): Depend on atimer.h and systime.h.
9398 (syntax.o): Don't depend explicitly on composite.h.
9399 (sysdep.o): Depend on coding.h and composite.h.
9400 (term.o): Depend on xterm.h and buffer.h.
9401 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
9402 (textprop.o): Don't depend on dispextern.h explicitly.
9403 (undo.o): Depend on dispextern.h.
9404 (window.o): Depend on coding.h and termhooks.h. Don't depend on
9405 dispextern.h and composite.h explicitly.
9406 (xdisp.o): Depend on ccl.h.
9407 (xfaces.o): Depend on coding.h and ccl.h.
9408 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
9409 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
9410 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
9411 ftfont.h.
9412 (xgselect.o): New dependency.
9413 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
9414 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
9415 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
9416 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
9417 (xsmfns.o): Depend on frame.h and dispextern.h.
9418 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
9419 sysselect.h.
9420
7a6f7fea
AS
94212009-12-19 Andreas Schwab <schwab@linux-m68k.org>
9422
9423 * font.c (Fclear_font_cache): Pass correct cache argument to
9424 font_clear_cache.
9425
f4c21026
AS
94262009-12-16 Andreas Schwab <schwab@linux-m68k.org>
9427
9428 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
9429 twice.
9430
f7ab0997
CY
94312009-12-15 Chong Yidong <cyd@stupidchicken.com>
9432
9433 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
9434 calling file-remote-p. Reported by Jim Meyering.
9435
fa8e045a
MA
94362009-12-15 Michael Albinus <michael.albinus@gmx.de>
9437
9438 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
777013f2 9439 avoid compiler warnings. (Bug #5217)
fa8e045a 9440
a63dba42
KH
94412009-12-14 Kenichi Handa <handa@m17n.org>
9442
9443 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
9444 in 8-bit encoding.
9445
5ce6e4f4 94462009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
36acb2a7
JD
9447
9448 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
9449 tooltip windows.
9450
223e5fc6
JD
94512009-12-13 Jan Djärv <jan.h.d@swipnet.se>
9452
36acb2a7
JD
9453 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
9454 Xatom_net_window_type.
9455
9456 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
9457 Xatom_net_window_type.
9458
b8f00677
JD
9459 * xterm.c (my_log_handler): New function.
9460 (x_term_init): Set my_log_handler as log handler during gtk_init
5ce6e4f4 9461 so we can filter out buggy messages. (Bug #5120).
b8f00677 9462
e5f0bc9a
JD
9463 * xterm.c (xg_scroll_callback): Parameter list changed,
9464 use parameter GtkScrollType to determine scroll/line/page.
9465 Only allow dragging if a button < 4 is grabbed (bug #5177).
9466 (xg_end_scroll_callback): New function.
9467 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
9468 xg_create_scroll_bar.
9469
9470 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
9471 (scroll_end_callback): Remove.
9472 (xg_create_scroll_bar): Add parameter end_callback, bind it to
9473 button-release-event. Replace value-changed event with change-value,
c4cc8b9a 9474 bug #5177.
e5f0bc9a
JD
9475 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
9476 bug #5177.
9477
9478 * gtkutil.h (XG_LAST_SB_DATA): Remove.
9479 (xg_create_scroll_bar): Add GCallback end_callback.
9480
223e5fc6
JD
9481 * xftfont.c (QClcdfilter): New variable.
9482 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
9483 (syms_of_xftfont): Initialize QClcdfilter.
9484
3c055b77
JD
94852009-12-12 Jan Djärv <jan.h.d@swipnet.se>
9486
9487 * xsettings.c (struct xsettings): Add member seen.
9488 (parse_xft_settings): Update member seen with what we have read.
ba68c0b0 9489 Return non-zero if Xft-settings have been parsed, 0 otherwise.
3c055b77
JD
9490 (apply_xft_settings): Only update Xft settings with what member seen
9491 indicates as new.
9492
05fe33ff
EZ
94932009-12-12 Eli Zaretskii <eliz@gnu.org>
9494
c4cc8b9a 9495 * dispextern.h (struct text_pos): Use EMACS_INT.
05fe33ff
EZ
9496 (struct glyph): Use EMACS_INT for charpos.
9497 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
9498 region_beg_charpos, region_end_charpos,
9499 redisplay_end_trigger_charpos, and also for
9500 iterator_stack_entry.end_charpos and
9501 iterator_stack_entry.stop_charpos.
9502
e8d7886a
JD
95032009-12-12 Jan Djärv <jan.h.d@swipnet.se>
9504
5ce6e4f4 9505 * gtkutil.c (scroll_end_callback): New function (bug #5177).
e8d7886a
JD
9506 (xg_create_scroll_bar): Call scroll_end_callback on button release
9507 event (bug #5177).
9508 (xg_event_is_for_scrollbar): != replaced with ==.
9509
d0db2ec8
KH
95102009-12-12 Kenichi Handa <handa@m17n.org>
9511
9512 * ftfont.c (struct ftfont_info): New member matrix.
9513 (ftfont_open): Setup xftfont_info->matrix.
9514 (MFLTFontFT): New member matrix.
9515 (FLOOR, CEIL, ROUND): New macros.
9516 (ftfont_get_metrics): Handle matrix transformation.
9517 (ftfont_shape_by_flt): New arg matrix. Callers changed.
9518
9519 * xftfont.c (struct xftfont_info): New member matrix.
9520 (xftfont_open): Setup xftfont_info->matrix.
9521
95222009-12-10 Kenichi Handa <handa@m17n.org>
9523
9524 * xdisp.c (append_space_for_newline): Consider face-remapping.
9525
2cc7b62f
AS
95262009-12-09 Andreas Schwab <schwab@linux-m68k.org>
9527
b87dd913
AS
9528 * xsettings.c: Include "keyboard.h".
9529
eba5eb94
AS
9530 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
9531
2cc7b62f
AS
9532 Fix implicit function declarations.
9533 * cmds.c: Include "frame.h".
9534 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
9535 * frame.h: Move declaration of delete_frame outside of
9536 HAVE_WINDOW_SYSTEM.
9537
a4ef73c8
CY
95382009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
9539
9540 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
9541
9542 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
9543 GTK builds.
9544
944a300c
AS
95452009-12-07 Andreas Schwab <schwab@linux-m68k.org>
9546
9547 * unexelf.c (unexec): Don't search for .data twice.
9548
022eef62
CY
95492009-12-05 Chong Yidong <cyd@stupidchicken.com>
9550
426ac949
CY
9551 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
9552 if push failed.
9553 (handle_line_prefix): Set avoid_cursor_p here. Check return value
9554 of push_display_prop (Bug#5000).
9555
022eef62
CY
9556 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
9557 value of font_list_entities (Bug#5085).
9558
be95bee9
JB
95592009-12-04 Juanma Barranquero <lekktu@gmail.com>
9560
9561 Fix `string-to-number' to deal consistently with integers and floats.
9562 * lread.c (isfloat_string): New argument ignore_trailing to accept all
9563 trailing characters, not just whitespace.
9564 (read1): Pass new arg 0 to keep old behavior.
9565 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
9566 trailing chars, as it is already done for integers. Doc fixes.
9567 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
9568
24c2d7ce
EZ
95692009-12-04 Eli Zaretskii <eliz@gnu.org>
9570
0b5397c2
SM
9571 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
9572 Delete unused enumeration value.
24c2d7ce 9573
7e694795
EZ
95742009-12-03 Eli Zaretskii <eliz@gnu.org>
9575
9576 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
9577
84b31826
SM
95782009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
9579
9580 * process.c (Fmake_network_process): Fix up the tests for
9581 "connectionless socket", so they DTRT for seqpacket sockets as well.
9582
f00c449b
SM
95832009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
9584
9585 * process.c (Qseqpacket): New symbol.
9586 (HAVE_SEQPACKET): New macro.
9587 (Fmake_network_process): Accept new :type `seqpacket'.
9588 (init_process): Add `seqpacket' feature when applicable.
9589 (syms_of_process): Initialize Qseqpacket.
9590
8096a0ff
YM
95912009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9592
9593 * font.c (font_load_for_lface, font_open_by_name): Don't store name
9594 if entity is Qnil.
9595
3e0de07f
SM
95962009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
9597
9598 * print.c (print_preprocess): Preprocess the key_and_value table of
9599 hashtables, even tho they're "hidden" (bug#5082).
9600
abeafb2a
JD
96012009-11-29 Jan Djärv <jan.h.d@swipnet.se>
9602
9603 * frame.c (frame_make_pointer_invisible)
9604 (frame_make_pointer_visible): Declare f before statements.
9605
4bf47195
EZ
96062009-11-28 Eli Zaretskii <eliz@gnu.org>
9607
9608 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
9609 omitted dependencies on lisp.h.
9610
c525b3f2
JD
96112009-11-27 Jan Djärv <jan.h.d@swipnet.se>
9612
ece2d4ed
JD
9613 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
9614 is NULL.
9615
9616 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
9617
9618 * frame.c (frame_make_pointer_invisible)
3e0de07f 9619 (frame_make_pointer_visible): Just return if there isn't any selected
ece2d4ed
JD
9620 frame.
9621
c525b3f2
JD
9622 * search.c (simple_search): Remove warning by making *p const.
9623
2f00e299
DN
96242009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
9625
9626 * xdisp.c (power_letter): Remove duplicate const.
9627
084b049b
JD
96282009-11-25 Jan Djärv <jan.h.d@swipnet.se>
9629
a1fadc6f
JD
9630 * term.c (delete_tty): Remove check for last terminal (bug#4970).
9631
5ce6e4f4 9632 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
084b049b
JD
9633 defaults (bug #5025).
9634
28259cac
SM
96352009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
9636
9637 * insdel.c (adjust_markers_for_delete): Move it in the
9638 right direction! (bug#4803)
9639
e8e14166
YM
96402009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9641
9642 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
9643
9644 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
9645
86677b58
GM
96462009-11-24 Glenn Morris <rgm@gnu.org>
9647
9648 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
9649
581e51e8
JD
96502009-11-23 Jan Djärv <jan.h.d@swipnet.se>
9651
cfc86c7a
JD
9652 * Makefile.in: Must create deps for ecrt0.o in its rule.
9653
581e51e8
JD
9654 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
9655 because that is what Gtk+ font dialog understands.
9656
9657 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
9658 of Fcopy_sequence.
9659 (font_open_by_name): Put name given into QCname for font-object returned.
9660
9661 * frame.c (x_set_font): Save original font name as frame parameter
9662 font-parameter.
9663
9664 * xsettings.c (set_default_xft_settings): New function.
9665 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
9666 is found.
9667
8b264ecb
AS
96682009-11-22 Andreas Schwab <schwab@linux-m68k.org>
9669
9670 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
9671 searching backwards through multibyte buffer.
9672
872870b2
JD
96732009-11-21 Jan Djärv <jan.h.d@swipnet.se>
9674
9675 * xterm.c: #include xgselect.h.
9676 (x_initialize): Call xgselect_initialize.
9677
9678 * xsettings.c (something_changedCB): C++ comments => C comments.
9679 (init_gconf): Do not deal with any GLib file descriptors, xg_select
9680 does that now.
9681
9682 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
9683 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
9684 (scroll_bar_button_cb): Remove.
5ce6e4f4 9685 (create_menus): C++ comments => C comments. Don't bind grab-notify
872870b2
JD
9686 event.
9687 (xg_create_scroll_bar): Don't bind button-press-event and
9688 button-release-event.
9689
9690 * process.c: Include xgselect.h if defined (USE_GTK) ||
9691 defined (HAVE_GCONF).
9692 (wait_reading_process_output): Call xg_select for the same condition.
9693
9694 * xgselect.c (xg_select): New function to better integrate with
9695 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
9696
9697 * xgselect.h: New file, declare xg_select, xgselect_initialize.
9698
9699 * Makefile.in (XOBJ): Add xgselect.o.
9700
62a6e103
AS
97012009-11-21 Andreas Schwab <schwab@linux-m68k.org>
9702
0b5397c2
SM
9703 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
9704 Remove ignored second argument. All callers changed.
62a6e103
AS
9705 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
9706 (RE_STRING_CHAR_AND_LENGTH): Likewise.
9707 * xdisp.c (string_char_and_length): Likewise.
9708
b0ca0f33
DN
97092009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
9710
9711 * xterm.c (x_new_font):
9712 * print.c (print_object):
9713 * cmds.c (Fself_insert_command): Move declarations before statements.
9714
dd5a6279
CY
97152009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
9716
9717 * s/cygwin.h: Remove unneeded linker flags.
9718
4a8e097d
JD
97192009-11-20 Jan Djärv <jan.h.d@swipnet.se>
9720
0d1d0d26
JD
9721 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
9722
9723 * xsettings.h: Declare xsettings_get_system_font.
9724
9725 * xsettings.c (xsettings_get_system_font): New function.
9726 (init_gconf): No use initiating gconf unless we have Xft also.
9727 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
9728 HAVE_GCONF.
9729
4a8e097d
JD
9730 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
9731 add a blank entry so it doesn't collapse into nothing.
9732
8ab1650e
SM
97332009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
9734
9735 * lread.c (Funintern): Comment out last change.
9736
82c602f0
RS
97372009-11-19 Richard Stallman <rms@gnu.org>
9738
9739 * lread.c (Funintern): Error if symbol is t or nil.
9740
87e32266
SM
97412009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
9742
9743 * insdel.c (make_gap_larger): Don't make as many assumptions about the
9744 representation of Lisp integers.
9745 Reported by MJ Chan <mjchan.inbox@gmail.com>.
9746
1b9ac145
AS
97472009-11-17 Andreas Schwab <schwab@linux-m68k.org>
9748
9749 * lisp.h: Remove declaration of Ffont_get_system_font.
9750 * xfns.c: Move include of "xsettings.h".
9751 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
9752
dfb3c4c6
JD
97532009-11-17 Jan Djärv <jan.h.d@swipnet.se>
9754
87e32266
SM
9755 * xsettings.c (something_changedCB, Ffont_get_system_font):
9756 Check use_system_font.
dfb3c4c6
JD
9757 (syms_of_xsettings): DEFVAR font-use-system-font.
9758
9370c1d8
AS
97592009-11-17 Andreas Schwab <schwab@linux-m68k.org>
9760
25fe851a
AS
9761 * xfns.c (x_default_font_parameter): Remove dead assignment.
9762
9370c1d8
AS
9763 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
9764
637fa988
JD
97652009-11-17 Jan Djärv <jan.h.d@swipnet.se>
9766
87e32266 9767 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
21050de1 9768 not have FC_LCD_*. #define them if not there.
a6eb20d8 9769
87e32266 9770 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
a6eb20d8 9771
637fa988
JD
9772 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
9773
9774 * xterm.c (handle_one_xevent): Call xft_settings_event for
9775 ClientMessage, PropertyNotify and DestroyNotify.
9776 (x_term_init): If we have XFT, get DPI from Xft.dpi.
9777 Call xsettings_initialize.
9778
9779 * xftfont.c (xftfont_fix_match): New function.
9780 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
9781 Call xftfont_fix_match after XftFontMatch.
9782
9783 * xfont.c (xfont_driver): Initialize all members.
9784
87e32266
SM
9785 * xfns.c (x_default_font_parameter):
9786 Try font from Ffont_get_system_font.
637fa988
JD
9787 Do not get font from x_default_parameter if we got one from
9788 Ffont_get_system_font.
87e32266 9789 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
637fa988
JD
9790
9791 * w32font.c (w32font_driver): Initialize all members.
9792
9793 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
9794
9795 * lisp.h: Declare syms_of_xsettings.
9796
87e32266
SM
9797 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
9798 Handle CONFIG_CHANGED_EVENT.
637fa988
JD
9799
9800 * ftfont.c (ftfont_filter_properties): New function.
9801
9802 * frame.c (x_set_font): Remove unused variable lval.
9803
87e32266 9804 * font.h (struct font_driver): Add filter_properties.
637fa988
JD
9805
9806 * font.c (font_put_extra): Don't return if val is nil, it means
9807 boolean option is off.
9808 (font_parse_fcname): Collect all extra properties in extra_props
9809 and call filter_properties for all drivers with extra_props and
9810 font as parameter.
87e32266
SM
9811 (font_open_entity): Do not use cache, it does not pick up new
9812 fontconfig settings like hinting.
637fa988
JD
9813 (font_load_for_lface): If spec had a name in it, store it in entity.
9814
a73f9c9d 9815 * emacs.c (main): Call syms_of_xsettings.
637fa988
JD
9816
9817 * config.in: HAVE_GCONF is new.
9818
9819 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
9820 xsettings.o is new.
9821
5a942932
KH
98222009-11-17 Kenichi Handa <handa@m17n.org>
9823
9824 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
9825 back to the default font in case that no suitable font is found.
9826
b7c7a4d1
SM
98272009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
9828
9829 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
9830 Suggested by Chad Brown <yandros@mit.edu>.
9831 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
9832
072f1e39
JD
98332009-11-16 Jan Djärv <jan.h.d@swipnet.se>
9834
9835 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
9836
5d1e70a2
AS
98372009-11-14 Andreas Schwab <schwab@linux-m68k.org>
9838
87e32266 9839 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5d1e70a2 9840
a53cfbe5
JD
98412009-11-14 Jan Djärv <jan.h.d@swipnet.se>
9842
473a99b7
JD
9843 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
9844 has a parent.
9845
a53cfbe5 9846 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
5ce6e4f4 9847 dependency files in deps/. Include those files into Makefile.
a53cfbe5
JD
9848
9849 * config.in: Generated (AUTO_DEPEND).
9850
f04bb9b2
MA
98512009-11-13 Michael Albinus <michael.albinus@gmx.de>
9852
b7c7a4d1 9853 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
9854 Vdbus_registered_functions_table, because it contains also
9855 properties. Fix docstring.
b7c7a4d1 9856 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 9857
8f11f7ec
SM
98582009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
9859
9860 * alloc.c (mark_object): Don't reprocess marked strings.
9861 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
9862 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
9863
8a605fe8
KH
98642009-11-13 Kenichi Handa <handa@m17n.org>
9865
8f11f7ec 9866 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
9867 semantics of Vword_combining_categories.
9868 (Vword_combining_categories): Describe the slight change of the
9869 semantics.
9870
241c4680
EZ
98712009-11-13 Eli Zaretskii <eliz@gnu.org>
9872
9873 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
9874
9875 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
9876
5d58e44c
SM
98772009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
9878
9879 * xdisp.c (syms_of_xdisp): Fix typo in last change.
9880
5e13f9d3
JB
98812009-11-12 Juanma Barranquero <lekktu@gmail.com>
9882
9883 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
9884
cf54c754
DR
98852009-11-11 David Reitter <david.reitter@gmail.com>
9886
9887 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
9888 variables to fix 2009-11-09 change.
9889
a4ada374
DN
98902009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
9891
91433552
DN
9892 * process.c (ifflag_def): Make flag_sym constant.
9893 (Fnetwork_interface_info): Use a constant pointer.
9894 (ifflag_table):
9895 * xfns.c (cursor_bits):
9896 * xdisp.c (power_letter):
9897 * termcap.c (speeds, esctab):
9898 * sysdep.c (baud_convert):
9899 * keyboard.c (lispy_accent_codes, modifier_names):
9900 * image.c (xbm_format, xpm_format, pbm_format, png_format)
9901 (jpeg_format, tiff_format, gif_format, svg_format)
9902 (interlace_start, interlace_increment, gs_format):
9903 * gtkutil.c (separator_names):
9904 * fringe.c (swap_nibble):
9905 * fns.c (base64_value_to_char, base64_char_to_value):
9906 * fileio.c (make_temp_name_tbl):
9907 * coding.c (suffixes): Make constant.
9908
f4265f6c
DN
9909 * frame.c (make_initial_frame):
9910 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
9911 build_string.
9912 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
9913
04420943
DN
9914 * s/freebsd.h:
9915 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
9916
0a5d24ae
DN
9917 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
9918 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
9919
a4ada374
DN
9920 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
9921 * xterm.c (syms_of_xterm):
9922 * xfaces.c (syms_of_xfaces):
9923 * xdisp.c (syms_of_xdisp):
9924 * lread.c (syms_of_lread):
9925 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
9926 build_string.
91433552 9927
a4ada374
DN
9928 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
9929
af98fc7f
SM
99302009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
9931
8ab1650e 9932 * fns.c (Fplist_get): Merge the active and the commented out code.
af98fc7f 9933
e90292a9
JD
99342009-11-10 Jan Djärv <jan.h.d@swipnet.se>
9935
9936 * keyboard.h: Declare timer_check.
9937
9938 * keyboard.c (timer_check_2): New function that does what the old
9939 timer_check did.
9940 (timer_check): Call timer_check_2 until -1 or a non-zero time is
9941 returned, i.e. don't return -1 with timers pending.
9942
9943 * process.c: Remove extern declaration of timer_check.
9944
9945 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
9946 even if timer_check returned -1.
9947
af98fc7f
SM
9948 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
9949 xg_dialog_data.
e90292a9
JD
9950 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
9951 the event loop.
9952 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
9953 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
9954 Destroy the dialog after xg_dialog_run.
9955
045b83c0
SM
99562009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
9957
9958 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
9959
1fb99a3a
JD
99602009-11-10 Jan Djärv <jan.h.d@swipnet.se>
9961
9962 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
9963
04e452cb
JB
99642009-11-09 Juanma Barranquero <lekktu@gmail.com>
9965
9966 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
9967
ef7417fd
SM
99682009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
9969
9970 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
9971 w32menu.c, and nsmenu.m.
9972 Simplify the obsolete case where position is nil.
9973 (cleanup_popup_menu): New function, moved from nsmenu.m.
9974 (struct skp): Remove slot `notreal'.
9975 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
9976 adjust callers.
9977 (single_menu_item): Adjust call to parse_menu_item.
9978 (syms_of_menu): Defsubr x-popup-menu.
9979 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
9980 (keymap_panes): Don't export any more.
9981 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
9982 (xmenu_show): Declare.
9983 * keyboard.c (parse_menu_item): Remove arg `notreal'.
9984 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
9985 * keyboard.h (parse_menu_item): Update declaration.
9986 * xmenu.c (Fx_popup_menu): Remove.
9987 (syms_of_xmenu): Don't defsubr x-popup-menu.
9988 * w32menu.c (Fx_popup_menu): Remove.
9989 (syms_of_w32menu): Don't defsubr x-popup-menu.
9990 * nsmenu.m (cleanup_popup_menu): Remove.
9991 (ns_menu_show): Rename from ns_popup_menu and remove all the code
9992 moved to menu.c's Fx_popup_menu.
9993 (Fx_popup_menu): Remove.
9994 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
9995 menu_items (it's done in menu.c already).
9996
424d6179
SM
99972009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
9998
9999 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
10000 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
10001
c0df13a6 100022009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
10003
10004 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 10005 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
10006 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
10007 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
10008
2de9f71c
SM
100092009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
10010
10011 Let integers use up 2 tags to give them one extra bit and thus double
10012 their range.
10013 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
10014 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
10015 New macros.
10016 (enum Lisp_Type): Use them. Give explicit values.
10017 (Lisp_Type_Limit): Remove.
10018 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
10019 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
10020 Pay attention to USE_2_TAGS_FOR_INTS.
10021 (INTEGERP): Use LISP_INT_TAG_P.
10022 * fns.c (internal_equal): Simplify the default case.
10023 (sxhash): Use case_Lisp_Int.
10024 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
10025 any more.
10026 (Ftype_of): Use case_Lisp_Int.
10027 (store_symval_forwarding): Take into account the fact that Ints can
10028 now have more than one tag.
10029 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
686b968e 10030 (buffer_slot_type_mismatch):
2de9f71c
SM
10031 * xfaces.c (face_attr_equal_p):
10032 * print.c (print_object):
10033 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
10034 Use case_Lisp_Int.
10035
323637a2
EZ
100362009-11-06 Eli Zaretskii <eliz@gnu.org>
10037
7ac65b38
EZ
10038 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
10039
323637a2
EZ
10040 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
10041 warning.
10042
e511451f
JD
100432009-11-06 Jan Djärv <jan.h.d@swipnet.se>
10044
10045 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
10046
10047 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
10048
10049 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
10050 ButtonPressRelease and MotionNotify (bug#4870).
10051
5e2327cf
DN
100522009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
10053
5adc433e
DN
10054 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
10055
d67b4f80
DN
10056 * xterm.c (syms_of_xterm):
10057 * xselect.c (syms_of_xselect):
10058 * xmenu.c (syms_of_xmenu):
10059 * xfns.c (syms_of_xfns):
10060 * xfaces.c (syms_of_xfaces):
10061 * xdisp.c (syms_of_xdisp):
10062 * window.c (syms_of_window):
10063 * w32fns.c (syms_of_w32fns):
10064 * undo.c (syms_of_undo):
10065 * textprop.c (syms_of_textprop):
10066 * terminal.c (syms_of_terminal):
10067 * syntax.c (syms_of_syntax):
10068 * sound.c (syms_of_sound):
10069 * search.c (syms_of_search):
10070 * print.c (syms_of_print):
10071 * minibuf.c (syms_of_minibuf):
10072 * macros.c (syms_of_macros):
10073 * keymap.c (syms_of_keymap, initial_define_key)
10074 (initial_define_lispy_key):
10075 * keyboard.c (syms_of_keyboard):
10076 * insdel.c (syms_of_insdel):
10077 * image.c (syms_of_image):
10078 * fringe.c (syms_of_fringe):
10079 * frame.c (syms_of_frame):
10080 * fontset.c (syms_of_fontset):
10081 * fns.c (syms_of_fns):
10082 * fns.c (syms_of_fns):
10083 * fileio.c (syms_of_fileio):
10084 * fileio.c (syms_of_fileio):
10085 * eval.c (syms_of_eval):
10086 * doc.c (syms_of_doc):
10087 * dispnew.c (syms_of_display):
10088 * dired.c (syms_of_dired):
10089 * dbusbind.c (syms_of_dbusbind):
10090 * data.c (syms_of_data):
10091 * composite.c (syms_of_composite):
10092 * coding.c (syms_of_coding):
10093 * cmds.c (syms_of_cmds):
10094 * charset.c (define_charset_internal, syms_of_character):
10095 * ccl.c (syms_of_ccl):
10096 * category.c (syms_of_category, init_category_once):
10097 * casetab.c (syms_of_casetab):
10098 * casefiddle.c (syms_of_casefiddle):
10099 * callint.c (syms_of_callint):
10100 * bytecode.c (syms_of_bytecode):
10101 * buffer.c (keys_of_buffer, syms_of_buffer):
10102 * alloc.c (syms_of_alloc):
10103 * process.c (syms_of_process, init_process):
10104 * lread.c (syms_of_lread, init_obarray):
10105 * font.c (build_style_table):
10106 * emacs.c (syms_of_emacs, main): Replace calls to intern with
10107 intern_c_string, calls to make_pure_string with
10108 make_pure_c_string. Use pure_cons instead of Fcons.
10109
5e2327cf
DN
10110 * process.c (socket_options): Make it const.
10111 (set_socket_option, init_process): Use a const pointer.
10112
10113 * lread.c (intern_c_string): New function.
10114 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
10115 (defvar_int): Uset it. Make the name const char*.
10116
10117 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
10118 (defvar_int): Update prototypes.
10119 (DEFUN, EXFUN): Support for prototypes is now required.
10120 (intern_c_string): New prototype.
10121 (struct Lisp_Subr): Make symbol_name constant.
10122
10123 * font.c (struct table_entry): Remove unused member. Make NAMES
10124 constant.
10125 (weight_table, slant_table, width_table): Make constant.
10126
10127 * emacs.c (struct standard_args): Make name and longname constant.
10128
10129 * character.h (DEFSYM): Use intern_c_string.
10130
a56eaaef
DN
101312009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
10132
10133 * alloc.c (make_pure_c_string): New function.
10134
10135 * eval.c (Fautoload): Purecopy all arguments.
10136
f6a07420
KH
101372009-11-05 Kenichi Handa <handa@m17n.org>
10138
10139 * fileio.c (Finsert_file_contents): Be sure set coding-system of
10140 the buffer in case of replace.
10141
5d28d4b1
DN
101422009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
10143
10144 * puresize.h (BASE_PURESIZE): Increase to 1620000.
10145
b349d111
SM
101462009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
10147
d528b1ce
SM
10148 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
10149 when applicable (bug#4851).
10150
b349d111
SM
10151 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
10152 (P_): Support for prototypes is now required.
10153
c38eb027
CY
101542009-10-31 Chong Yidong <cyd@stupidchicken.com>
10155
10156 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
10157 (Bug#4827).
10158
0405f8d9
EZ
101592009-10-30 Eli Zaretskii <eliz@gnu.org>
10160
d528b1ce 10161 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 10162
ca0a881a
DN
101632009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
10164
10165 * puresize.h (BASE_PURESIZE): Increase to 1470000.
10166
d528b1ce
SM
10167 * lread.c (Fload): Purecopy the file name when building
10168 Vpreloaded_file_list.
ca0a881a 10169
47e0e0e4
JR
101702009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
10171
10172 * w32fns.c (syms_of_w32fns): Change default value of
10173 w32-scroll-lock-modifier to nil. (Bug#2827)
10174
057bce6f
JB
101752009-10-26 Juanma Barranquero <lekktu@gmail.com>
10176
782a943e 10177 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 10178
242bc74c
AS
101792009-10-26 Andreas Schwab <schwab@redhat.com>
10180
10181 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
10182
522d013a
JB
101832009-10-26 Juanma Barranquero <lekktu@gmail.com>
10184
10185 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
10186 For delta < 0, skip check that only makes sense when the mini-window
10187 is going to be enlarged. (Bug#4534)
10188
18060980
CY
101892009-10-25 Chong Yidong <cyd@stupidchicken.com>
10190
10191 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
10192 string in menu maps (Bug#4471).
10193
fec8f0fe
CY
101942009-10-24 Chong Yidong <cyd@stupidchicken.com>
10195
10196 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
10197 FRAME_NS_VIEW on terminal frames (Bug#4765).
10198
10d66ec0
AS
101992009-10-24 Andreas Schwab <schwab@linux-m68k.org>
10200
1cae01f7
AS
10201 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
10202 DBUS_TYPE_UINTnn separately to get proper sign extension.
10203
58a12889
AS
10204 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
10205 can properly handle unsigned types.
d528b1ce 10206 (make_uid, make_gid): Remove.
58a12889 10207
987c9327
AS
10208 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
10209 types again.
10210
522d013a 10211 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
10212 (system_process_attributes): Likewise.
10213
905a9ed3
DN
102142009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
10215
10216 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
10217
10218 * eval.c (Fautoload): Purecopy the filename. Simplify.
10219
10220 * category.c (Fdefine_category): Purecopy docstring.
10221
a599b3e8
AS
102222009-10-23 Andreas Schwab <schwab@linux-m68k.org>
10223
7b792fc9
AS
10224 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
10225
a599b3e8
AS
10226 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
10227
b35ac83e
CY
102282009-10-23 Chong Yidong <cyd@stupidchicken.com>
10229
10230 * window.c (Fwindow_edges, Fwindow_pixel_edges)
10231 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
10232 (Bug#4775).
10233
e8903e00
SM
102342009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
10235
10236 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
10237 (init_fileio_once):
10238 * lisp.h (init_fileio_once): Remove.
10239 * emacs.c (main): Don't call init_fileio_once.
10240
8f43cbf3
DN
102412009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
10242
10243 * puresize.h (BASE_PURESIZE): Increase to 1430000.
10244
26898943
AS
102452009-10-21 Andreas Schwab <schwab@linux-m68k.org>
10246
10247 * doprnt.c (doprnt): Fix overflow check.
10248
5c646d5a
JD
102492009-10-21 Jan Djärv <jan.h.d@swipnet.se>
10250
3132a7ea
JD
10251 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
10252
5c646d5a
JD
10253 * xterm.h (x_wait_for_event): Declare it.
10254
10255 * xterm.c (pending_event_wait): New variable.
10256 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
10257 see pending_event_wait.eventtype.
10258 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
10259 (x_new_font): Call change_frame_size with new rows/columns before we
10260 try to resize the frame.
5c646d5a 10261 (x_wait_for_event): New function.
d528b1ce
SM
10262 (x_set_window_size_1): Don't change gravity unless change_gravity
10263 is set.
5c646d5a
JD
10264 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
10265 don't change frame size, instead wait for the ConfigureNotify.
10266 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
10267 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
10268 (x_initialize): Initialize pending_event_wait.
10269
10270 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
10271 size.
10272
10273 * widget.c (EmacsFrameSetValues): Add comment.
10274 (EmacsFrameSetCharSize): Just call x_set_window_size.
10275
10276 * gtkutil.c (xg_frame_set_char_size): Flush events and call
10277 x_wait_for_event.
d528b1ce 10278 (flush_and_sync): Remove again.
5c646d5a
JD
10279 (xg_get_font_name): Suggest monospace if no previous font is known.
10280
e9c1637d
SM
102812009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
10282
10283 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 10284 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 10285
5a72cccb
YM
102862009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10287
10288 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
10289 processing pending events when event is filtered for input method.
ab04798f 10290 (Bug#3681)
5a72cccb 10291
2629aa37
JB
102922009-10-20 Juanma Barranquero <lekktu@gmail.com>
10293
10294 * fns.c: Add #endif accidentally removed in previous change.
10295
c3417a74
DN
102962009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
10297
10298 * fns.c: Remove code for unsupported system: MAC_OS.
10299 * image.c: Likewise. Include setjmp.h.
10300
9685cef2
JD
103012009-10-19 Jan Djärv <jan.h.d@swipnet.se>
10302
10303 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
10304 pixel -1 (bug #4742).
10305
d7306fe6
DN
103062009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
10307
019d2c4c
DN
10308 * process.c (create_pty): Remove conditionals for no longer
10309 supported systems: UNIPLUS and RTU.
10310
ee6bacd4
DN
10311 * xterm.c:
10312 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
10313
d7306fe6
DN
10314 * alloc.c: Do not define struct catchtag.
10315 * eval.c: Move struct catchtag definition ...
10316 * lisp.h: ... here.
10317
10318 * image.c: Move png.h #include earlier to avoid warnings.
10319
10320 * xterm.c:
10321 * xsmfns.c:
10322 * xselect.c:
10323 * xrdb.c:
10324 * xmenu.c:
10325 * xftfont.c:
10326 * xfont.c:
10327 * xfns.c:
10328 * xfaces.c:
10329 * xdisp.c:
10330 * window.c:
10331 * widget.c:
10332 * w32xfns.c:
10333 * w32uniscribe.c:
10334 * w32term.c:
10335 * w32select.c:
10336 * w32reg.c:
10337 * w32proc.c:
10338 * w32menu.c:
10339 * w32inevt.c:
10340 * w32heap.c:
10341 * w32font.c:
10342 * w32fns.c:
10343 * w32console.c:
10344 * w32.c:
10345 * w16select.c:
10346 * vm-limit.c:
10347 * unexsol.c:
10348 * unexec.c:
10349 * unexcw.c:
10350 * unexaix.c:
10351 * undo.c:
10352 * tparam.c:
10353 * textprop.c:
10354 * terminfo.c:
10355 * terminal.c:
10356 * termcap.c:
10357 * term.c:
10358 * syntax.c:
10359 * sound.c:
10360 * sheap.c:
10361 * search.c:
10362 * scroll.c:
10363 * region-cache.c:
10364 * regex.c:
10365 * ralloc.c:
10366 * process.c:
10367 * print.c:
b024548b
DN
10368 * nsterm.m:
10369 * nsselect.m:
10370 * nsmenu.m:
10371 * nsimage.m:
10372 * nsfont.m:
10373 * nsfns.m:
d7306fe6
DN
10374 * msdos.c:
10375 * minibuf.c:
10376 * menu.c:
10377 * marker.c:
10378 * macros.c:
10379 * keymap.c:
10380 * keyboard.c:
10381 * intervals.c:
10382 * insdel.c:
10383 * indent.c:
10384 * gtkutil.c:
10385 * ftxfont.c:
10386 * ftfont.c:
10387 * fringe.c:
10388 * frame.c:
10389 * fontset.c:
10390 * font.c:
10391 * fns.c:
10392 * floatfns.c:
10393 * filelock.c:
10394 * fileio.c:
10395 * emacs.c:
10396 * editfns.c:
10397 * dosfns.c:
10398 * doprnt.c:
10399 * doc.c:
10400 * dispnew.c:
10401 * dired.c:
10402 * dbusbind.c:
10403 * data.c:
10404 * composite.c:
10405 * coding.c:
10406 * cmds.c:
10407 * cm.c:
10408 * chartab.c:
10409 * charset.c:
10410 * character.c:
10411 * ccl.c:
10412 * category.c:
10413 * casetab.c:
10414 * casefiddle.c:
10415 * callproc.c:
10416 * callint.c:
10417 * bytecode.c:
10418 * buffer.c:
10419 * atimer.c: Include setjmp.h. (Bug#4643)
10420
fd5f21e6
SM
104212009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
10422
4c0354d7
SM
10423 Remove leftover table unibyte_to_multibyte_table.
10424 * character.c (unibyte_to_multibyte_table): Remove.
10425 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
10426 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
10427 * character.h (UNIBYTE_TO_CHAR): New macro.
10428 (MAKE_CHAR_MULTIBYTE): Use it.
10429 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
10430 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
10431 (message_dolog, set_message_1):
10432 * search.c (Freplace_match):
10433 * editfns.c (Fcompare_buffer_substrings):
10434 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
10435 (concat):
10436 * insdel.c (copy_text, count_size_as_multibyte):
10437 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
10438 * term.c (produce_glyphs):
10439 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
10440 * regex.c (RE_CHAR_TO_MULTIBYTE):
10441 * cmds.c (internal_self_insert):
10442 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
10443
fd5f21e6
SM
10444 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
10445
4418646e
DN
104462009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
10447
10448 * puresize.h (BASE_PURESIZE): Increase to 1310000.
10449
35f5c1d2
JB
104502009-10-16 Juanma Barranquero <lekktu@gmail.com>
10451
10452 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
10453
a0cd8f6b
AR
104542009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
10455
10456 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
10457 still needed under Tiger.
10458
10459 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
10460
10461 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
10462 __Apple__.
10463
10464 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
10465
01a8d3fa
KH
104662009-10-15 Kenichi Handa <handa@m17n.org>
10467
10468 * print.c (print_object): Escape a symbol like "2E10" too.
10469
bf6c75c9 104702009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
10471
10472 Cleanups and changes for 64-bit compile under Snow Leopard.
10473 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
10474
10475 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
10476
c5959062 10477 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
10478 (ns_findfonts, nsfont_list_family): Use long format in printf, and
10479 cast argument.
10480 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 10481 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
10482
10483 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
10484
10485 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
10486 where appropriate.
10487
10488 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
10489 where appropriate.
6e4780c5
JB
10490 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
10491 Use stringWithUTF8String.
bf6c75c9
AR
10492 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
10493
6e4780c5
JB
10494 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
10495 Add formal protocol mention to inheritance.
bf6c75c9
AR
10496 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
10497
6e4780c5
JB
10498 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
10499 Fix printf format.
bf6c75c9
AR
10500 (ns_query_color): Use CGFloat where appropriate.
10501 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
ac146f82 10502 (EmacsScroller-mouseDown:): Use long format in printf, and cast
bf6c75c9
AR
10503 argument.
10504
3d87f118
AR
10505 * config.in (NS_HAVE_NSINTEGER): Drop.
10506
a95c8102
AR
10507 * dbusbind.c (dbus-method-return-internal)
10508 (dbus-method-error-internal): Use long format in printf, and cast
10509 argument.
10510
10511 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
10512 in printf, and cast argument.
10513
6873acca 10514 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
10515 cast argument.
10516
9ec6f100
GM
105172009-10-11 Glenn Morris <rgm@gnu.org>
10518
10519 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
10520
5be883cd
JD
105212009-10-08 Jan Djärv <jan.h.d@swipnet.se>
10522
10523 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
10524 menu bar with a small width so it doesn't enlarge the frame.
10525
d7a39b51
JB
105262009-10-08 Juanma Barranquero <lekktu@gmail.com>
10527
10528 * fontset.c (Fset_fontset_font): Fix typos in error messages.
10529
0c2b6f8e
GM
105302009-10-06 Glenn Morris <rgm@gnu.org>
10531
10532 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
10533 SOME_MACHINE_LISP (this enters indirectly via DOC).
10534
e02131a2
EZ
105352009-10-05 Eli Zaretskii <eliz@gnu.org>
10536
10537 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
10538
b4744254
EZ
105392009-10-04 Eli Zaretskii <eliz@gnu.org>
10540
10541 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
10542 Doc fix.
10543
dbf64827
JB
105442009-10-03 Martin Rudalics <rudalics@gmx.at>
10545
10546 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
10547
e9a0aef8
MA
105482009-10-02 Michael Albinus <michael.albinus@gmx.de>
10549
d528b1ce 10550 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
10551 used anymore outside fileio.c.
10552
10553 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
10554
64eb2b56
JB
105552009-10-01 Juanma Barranquero <lekktu@gmail.com>
10556
10557 * lisp.h (Qdelete_directory_internal):
10558 Declare, instead of Qdelete_directory.
10559
10560 * w32fns.c (Fsystem_move_file_to_trash): Use it.
10561
9d28c33e
SM
105622009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
10563
10564 * eval.c (Fcalled_interactively_p): Add `kind' argument.
10565
9d8f3bd9
MA
105662009-10-01 Michael Albinus <michael.albinus@gmx.de>
10567
9d28c33e 10568 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
10569 Fdelete_directory. It is not a command anymore. It has no file
10570 name handler.
10571
9694740b
SM
105722009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
10573
10574 * xdisp.c (get_next_display_element): Use an enum in last change.
10575
748e162f
KH
105762009-09-28 Kenichi Handa <handa@m17n.org>
10577
9694740b 10578 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
10579 unibyte_display_via_language_environment in handling
10580 Vnobreak_char_display.
10581
17efd58d
AR
105822009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
10583
10584 * nsterm.h (ns_app_name): New extern variable.
10585
10586 * nsterm.m (ns_app_name): New variable.
10587 (ns_term_init): Set and use it.
10588 (ns_term_shutdown): Use it.
10589
10590 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
10591 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
10592
10593 * nsfns.m (ns_set_name_iconic, ns_set_name)
10594 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
10595 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
10596
9694740b
SM
10597 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
10598 Remove double-casting in client_data comparison.
31c2d412 10599
3208cb35
YM
106002009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10601
10602 * keyboard.c (make_lispy_event): Remember last wheel direction.
10603 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
10604
b7d552d6
GM
106052009-09-26 Glenn Morris <rgm@gnu.org>
10606
10607 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
10608 internal.elc. Add term/pc-win.elc.
10609 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
10610 term/x-win.elc.
10611 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
10612 term/w32-win.elc.
10613 (NS_SUPPORT): New.
10614 (lisp): Add NS_SUPPORT.
10615 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
10616
4ff670a8
DR
106172009-09-25 David Reitter <david.reitter@gmail.com>
10618
10619 * nsmenu.m (EmacsMenu-clear): Recognize application menu
10620 on Mac OS X 10.6+ (bug#4513).
10621
feabfb6c
JB
106222009-09-24 Juanma Barranquero <lekktu@gmail.com>
10623
10624 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
10625 some parts of Emacs code (like font selection) don't grok them.
10626 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 10627
de59072a
AS
106282009-09-24 Andreas Schwab <schwab@redhat.com>
10629
10630 * coding.c (decode_coding_iso_2022): Fix operator precedence.
10631
a489517b
JB
106322009-09-24 Juanma Barranquero <lekktu@gmail.com>
10633
10634 * dired.c (Fdirectory_files): Fix typo in docstring.
10635
0592970c
AR
106362009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
10637
10638 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
10639 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
10640 (EmacsScroller-setPosition:portion:whole:): Remove -display call
10641 under GNUstep.
10642 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
10643
10644 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
10645 glyph advancement.
10646
48e8a88b
AR
106472009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
10648
10649 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 10650 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
10651
10652 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
10653 deleted (bug #4492).
10654
e14f0a78
AR
10655 * nsfont.m (Vns_reg_to_script): New lisp variable.
10656 (syms_of_nsfont): Declare it.
10657 (ns_registry_to_script): New function.
10658 (ns_get_req_script): Call it.
10659 (ns_findfonts): Don't give up on non-unicode registry.
10660
10661 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
10662
5b650faa
SM
106632009-09-20 Tom Tromey <tromey@redhat.com>
10664
10665 * eval.c (find_handler_clause): Make stack-trace-on-error work in
10666 batch mode (bug#4228).
10667
a489517b 106682009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
10669
10670 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 10671 carefully. (Bug #4339)
0bae4e09 10672
fcfe06f3
CY
106732009-09-18 Chong Yidong <cyd@stupidchicken.com>
10674
d798ba87 10675 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 10676
31642728
AR
106772009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
10678
10679 * emacs.c (inhibit_x_resources): Update doc string for NS.
bba3e508
SM
10680 (main) [HAVE_NS]: Don't process --no-init-file option.
10681 Remove legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
10682
10683 * nsterm.h (ns_no_defaults): Remove.
10684
10685 * nsterm.m (ns_no_defaults): Remove.
10686 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
10687 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
10688 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
10689 don't update the NSWindow itself.
bba3e508
SM
10690 (EmacsView-windowWillUseStandardFrame:defaultFrame:):
10691 Improve state detection and store user rect ourselves. (Bug #3581)
31642728
AR
10692
10693 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
10694 ns_use_qd_smoothing.
10695
10696 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
10697 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 10698 (x-close-connection): Drop PSFlush() under OS X.
a489517b 10699 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 10700
8686ac71
JB
107012009-09-17 Juanma Barranquero <lekktu@gmail.com>
10702
10703 * emacs.c (inhibit_x_resources): New variable.
10704 (main) [HAVE_NS]: Don't process --quick command line option.
10705 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
10706
10707 * lisp.h (inhibit_x_resources): Declare it extern.
10708
10709 * w32reg.c (x_get_string_resource):
10710 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
10711
e227ba05
EZ
107122009-09-17 Eli Zaretskii <eliz@gnu.org>
10713
362654a6
JB
10714 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
10715 Add lisp/term/internal.elc.
e227ba05 10716
742d40e8
SM
107172009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
10718
10719 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
10720 (bug#4461).
10721
005bd5a2
DN
107222009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
10723
10724 * puresize.h (BASE_PURESIZE): Increase to 1290000.
10725
10726 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
10727 (OBJECTS_MACHINE): Remove, unused.
10728
f9af9719
SM
107292009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
10730
10731 * frame.c (x_get_resource_string): Remove unused.
10732
0307c7d2
JD
107332009-09-15 Jan Djärv <jan.h.d@swipnet.se>
10734
10735 * xterm.c (x_new_font): Call change_frame_size before calling
10736 x_set_window_size, in case frame size won't change.
10737
10738 * frame.c (x_set_font): Remove dead code.
10739
428b13d6
SM
107402009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
10741
10742 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
10743
5766c380
SM
107442009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
10745
10746 * lread.c (Fload): Don't output a message after loading an obsolete
10747 package any more (done in Lisp now).
10748
2fd0161b
CY
107492009-09-12 Chong Yidong <cyd@stupidchicken.com>
10750
10751 * fns.c (syms_of_fns): Doc fix (Bug#4227).
10752
bc5e75b6
SM
107532009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
10754
10755 * keymap.c (Fwhere_is_internal): Use nconc2.
10756
c31c985e
AM
107572009-09-11 Alan Mackenzie <acm@muc.de>
10758
10759 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
10760 batch mode.
10761
78012bd2
AS
107622009-09-11 Andreas Schwab <schwab@linux-m68k.org>
10763
10764 * xdisp.c (display_mode_element): Detect cycles.
10765
9d889332
SM
107662009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
10767
10768 * keymap.c (where_is_internal): Don't erroneously return nil right after
10769 filling the cache.
10770 (where_is_internal_1): Fix up typo.
10771
7ab5d780
GM
107722009-09-11 Glenn Morris <rgm@gnu.org>
10773
10774 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
10775 share a common doc-string.
10776
5238a749
SM
107772009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
10778
66d77eda
SM
10779 * keymap.c (get_keymap): Return the actual keymap symbol rather than
10780 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
10781
5238a749
SM
10782 * keymap.c (QCadvertised_binding): New constant.
10783 (syms_of_keymap): Initialize it.
10784 (Fwhere_is_internal): Try and use bindings from :advertised-binding
10785 if applicable.
10786
19f48442
SM
107872009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
10788
50d4ba39
SM
10789 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
10790 (parse_menu_item): Streamline since bindings are recomputed all the
10791 time anyway. Don't bother checking Vdefine_key_rebound_commands any
10792 more and don't support lmenu's menu-alias any more either.
10793
a88a5372
SM
10794 * keymap.c (where_is_internal_data): Make noindirect a boolean.
10795 (where_is_internal): Strip it down to only traverse the keymaps.
10796 Move the cache handling from Fwhere_is_internal to here.
10797 (Fwhere_is_internal): Move the handling of remapping and the choice of
10798 the best binding from where_is_internal to here.
10799 Unify the cached/noncached paths, so remapping is also handled
10800 correctly when the cache is used, and so the cache can be used to
10801 speed up remap-handling when applicable.
10802 Give preference to non-remapped bindings.
10803 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
10804 non-remapped bindings.
10805 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
10806 command remapping.
10807
19f48442
SM
10808 * xdisp.c (display_mode_element): Move list length limit from 50 to
10809 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
10810
599498c3 108112009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
10812
10813 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
10814
f9b7b5ac
SM
108152009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
10816
a53af587
JB
10817 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
10818 (Bug#4334)
10819
f9b7b5ac
SM
10820 * keymap.c (where_is_internal): Filter out shadowed remappings.
10821 Assume that where_is_internal returns unshadowed bindings to simplify
10822 the code and get rid of the gotos. Use ASIZE.
10823
04f4b72d
JD
108242009-09-04 Jan Djärv <jan.h.d@swipnet.se>
10825
4da146f2
JD
10826 * xterm.c (x_focus_changed): If we get a focusout and pointer
10827 is invisible, make it visible.
10828
04f4b72d
JD
10829 * xterm.h: Remove condition for declaration of
10830 x_*_window_to_frame.
10831
7cef7ce3
SM
108322009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
10833
10834 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
10835 initial terminal as well.
10836
a54fa5b7
JD
108372009-09-02 Jan Djärv <jan.h.d@swipnet.se>
10838
10839 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 10840 x_menubar_window_to_frame.
a54fa5b7 10841
50426a04 10842 * xterm.c: Remove declarations also in xterm.h.
a54fa5b7
JD
10843 (XTmouse_position): Do not return valid positions
10844 for clicks in the menubar and the toolbar for Gtk+.
10845
10846 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
10847 if the widget for the event has the same top level as a frame,
10848 return the frame.
10849 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
10850 internal windows, bug #4122.
10851 (x_non_menubar_window_to_frame): Remove.
10852
5a021dd0
GM
108532009-09-02 Glenn Morris <rgm@gnu.org>
10854
10855 * buffer.c (default-major-mode): Move most of the doc from here...
10856 (major-mode): ... to here.
10857
548fe2f3
NR
108582009-08-30 Nick Roberts <nickrob@snap.net.nz>
10859
10860 * process.c (wait_reading_process_output): Keep the descriptor
10861 when pty is used by a non-child process, e.g., in I/O buffer of
10862 GDB this allows inferior to be restarted.
10863
e0840eef
EZ
108642009-08-29 Eli Zaretskii <eliz@gnu.org>
10865
10866 * xdisp.c (redisplay_internal): Remove redundant test and collapse
10867 both branches into one.
10868
82e98df4
SM
108692009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
10870
10871 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
10872 (main): Use enable-multibyte-characters rather than
10873 default-enable-multibyte-characters. Output a warning message when
10874 running a unibyte session.
10875
890617cb
YM
108762009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10877
10878 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
10879 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
10880 (copy_data_segment): Also copy __program_vars section.
10881 (copy_dyld_info) [LC_DYLD_INFO]: New function.
10882 (dump_it) [LC_DYLD_INFO]: Use it.
10883
10884 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
10885
e7adeadc
EZ
108862009-08-28 Eli Zaretskii <eliz@gnu.org>
10887
10888 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
10889 $(SRC)/buildobj.h.
ef1b0ba7 10890 (buildobj.h): Rename from $(SRC)/buildobj.h.
e7adeadc
EZ
10891 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
10892 $(SRC)/buildobj.h.
10893 (clean): Add buildobj.h.
10894
3ed8bbdc
TZ
108952009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
10896
10897 * print.c (print_object): Set escapeflag to 1 when printing
10898 hashtable keys and values.
10899
155a6764
SM
109002009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
10901
10902 * lread.c (read_integer): Use doubles (and potentially return a float
10903 number) as we do in string-to-number.
10904 (read1): Use strtol to read integers, signal errors on strtol's
10905 overflow and use floats if strtol's output is too large for
10906 Elisp integers.
10907
877610de
EZ
109082009-08-27 Eli Zaretskii <eliz@gnu.org>
10909
10910 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
10911 (make-buildobj-SH): Fix last change.
10912 (SRC): Move to before where it's first used.
10913
ef73e7be
KH
109142009-08-27 Kenichi Handa <handa@m17n.org>
10915
550c8289
KH
10916 * process.c (send_process): Use encode_coding_object instead of
10917 encode_coding_string to perform eol-conversion even if the string
10918 is unibyte.
10919
60afa08d
KH
10920 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
10921 character.
10922
ef73e7be 10923 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 10924 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 10925
7b3a82d7
DN
109262009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
10927
5654bf63
DN
10928 * callproc.c (Fcall_process): Remove always true #if.
10929
7b3a82d7
DN
10930 * lisp.h: Replace #if 0 code for checking with text pointing to
10931 the --enable-checking configure flag.
10932
10933 * emacs.c (main): Mention the --enable-profiling configure flag
10934 instead of using CFLAGS.
10935
878bde49
KR
109362009-08-26 Ken Raeburn <raeburn@raeburn.org>
10937
10938 * Makefile.in (buildobj.h): New target.
10939 (doc.o): Depend on it.
10940 (temacs${EXEEXT}): Don't generate buildobj.lst.
10941 (mostlyclean): Delete buildobj.h, not buildobj.lst.
10942 * makefile.w32-in ($(SRC)/buildobj.h): New target.
10943 ($(BLD)/doc.$(O)): Depend on it.
10944 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
10945 provided by Eli Zaretskii.)
10946 ($(TEMACS)): Don't generate buildobj.lst.
10947 * doc.c: Include buildobj.h.
10948 (buildobj): New static variable.
10949 (Fsnarf_documentation): Use it, instead of opening and reading
10950 buildobj.lst.
10951
1574224c
MA
109522009-08-25 Michael Albinus <michael.albinus@gmx.de>
10953
10954 * dbusbind.c (Fdbus_call_method)
10955 (Fdbus_call_method_asynchronously): Use English numeric format for
10956 timeout values in doc string.
10957
d9da2f45
KH
109582009-08-25 Kenichi Handa <handa@m17n.org>
10959
ef73e7be
KH
10960 * alloc.c (mark_char_table): New function.
10961 (mark_object): Use mark_char_table for a char-table.
10962
d9da2f45
KH
10963 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
10964 (CHAR_TABLE_REF): Use it.
10965
c8edcc01
KR
109662009-08-23 Ken Raeburn <raeburn@raeburn.org>
10967
10968 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
10969 before invoking the newly build emacs to check for load-path
10970 shadowing.
10971
7763401b
GM
109722009-08-22 Glenn Morris <rgm@gnu.org>
10973
10974 * Makefile.in (bootstrap_exe): New variable.
10975 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
10976 Use ${bootstrap_exe}.
10977
729eadda
EZ
109782009-08-22 Eli Zaretskii <eliz@gnu.org>
10979
10980 * coding.h (encode_coding_string): Don't encode unibyte strings.
10981 (Bug#4047)
10982
eb4c6ace
MA
109832009-08-22 Michael Albinus <michael.albinus@gmx.de>
10984
10985 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
10986
10987 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
10988 intended as hotfix only.
10989 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
10990
36e34d1b
AR
109912009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
10992
10993 * nsterm.m (ns_get_color): Update documentation properly for last
bba3e508
SM
10994 change, and clean up loose ends in the code left by it.
10995 Fix longstanding bug with 16-bit hex parsing, and add support for
36e34d1b
AR
10996 yet another X11 format (rgb:r/g/b) for compatibility.
10997 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
10998 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
10999
f983eb8a
SM
110002009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
11001
11002 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
11003
3f56d3c6
MA
110042009-08-20 Michael Albinus <michael.albinus@gmx.de>
11005
11006 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
11007 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
11008 (xd_initialize, xd_pending_messages): Check, whether
11009 $DBUS_SESSION_BUS_ADDRESS is set.
11010
fb641d68
YM
110112009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11012
11013 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
11014
11015 * nsterm.m (ns_get_color): Remove incompatible color formats again.
11016
cf59a374
GM
110172009-08-20 Glenn Morris <rgm@gnu.org>
11018
11019 * emacs.c (system-type): Doc fix.
11020
1373f3be
SM
110212009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
11022
11023 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
11024 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
11025
058ed861
MA
110262009-08-18 Michael Albinus <michael.albinus@gmx.de>
11027
1373f3be
SM
11028 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
11029 New functions.
058ed861
MA
11030 (xd_initialize): Revert change from 2009-08-16.
11031
563a866e 110322009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
11033
11034 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 11035 font-group vector, return nil.
5fc05db0 11036
e42bdf01
CY
110372009-08-17 Chong Yidong <cyd@stupidchicken.com>
11038
11039 * process.c (status_notify): Don't perform redisplay.
11040 (Fdelete_process, list_processes_1, process_send_signal):
11041 Expliticly perform redisplay.
11042 (wait_reading_process_output): Always check process status, but
11043 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
11044
4230ab74
KR
110452009-08-17 Ken Raeburn <raeburn@raeburn.org>
11046
1373f3be 11047 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
11048 (XFLOAT_INIT): New macro for storing a float value.
11049 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
11050 * fns.c (sxhash): Copy out the value of a float in order to
11051 examine its bytes.
11052 * dbusbind.c (xd_append_arg): Likewise.
11053
4230ab74
KR
11054 * emacs.c (main): Don't call syms_of_data twice.
11055
a0645cdd
MA
110562009-08-16 Michael Albinus <michael.albinus@gmx.de>
11057
11058 * dbusbind.c (xd_initialize): Add connection file descriptor to
11059 input_wait_mask, in order to let select() detect, whether a new
11060 message has been arrived.
ca4f31ea 11061 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 11062
485db0ba
MA
110632009-08-15 Michael Albinus <michael.albinus@gmx.de>
11064
1373f3be
SM
11065 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
11066 New functions.
485db0ba
MA
11067
11068 * lisp.h (xd_pending_messages): Declare.
11069
11070 * keyboard.c (readable_events): Call xd_pending_messages.
11071
b5b98ff4
CY
110722009-08-15 Chong Yidong <cyd@stupidchicken.com>
11073
1373f3be 11074 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 11075
f8354c6e
CY
11076 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
11077
b5b98ff4
CY
11078 * buffer.c (set_buffer_internal_1)
11079 (swap_out_buffer_local_variables): Check for unbound local
11080 variables (Bug#4138).
11081
8b9fc636
EZ
110822009-08-14 Eli Zaretskii <eliz@gnu.org>
11083
11084 * process.c (create_pty): Fix last change.
11085
ce959360
CY
110862009-08-13 Chong Yidong <cyd@stupidchicken.com>
11087
11088 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
11089 (xbm_load_image): Caller changed.
64b807c9 11090 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 11091
c7baf7e9
NR
110922009-08-13 Nick Roberts <nickrob@snap.net.nz>
11093
11094 * process.c (create_pty): New function.
11095 (Fstart_process): Use it to allow Emacs to just associate a pty
11096 with the buffer. See associated change in gdb-mi.el.
11097 (list_processes_1): Deal with no program name.
11098 (start_process_unwind): Use pid == -2 to mean no process.
11099
1ac9108a
SM
111002009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
11101
11102 * cmds.c (nonundocount): New global variable.
11103 (keys_of_cmds): Initialize it.
11104 (Fself_insert_command): Use it to combine upto 20 sequential chars
11105 into a single undo entry, just like the Qself_insert_command code in
11106 keyboard.c does.
11107 Call frame_make_pointer_invisible, also like the Qself_insert_command
11108 code in keyboard.c does.
11109 * keyboard.c (command_loop_1): Use the new global nonundocount rather
11110 than its own local replacement for it.
11111
e267324c
KR
111122009-08-10 Ken Raeburn <raeburn@raeburn.org>
11113
1ac9108a 11114 * fns.c (concat): Don't re-set string length to its current value.
77437343 11115
1ac9108a
SM
11116 * coding.h (decode_coding_string, encode_coding_string):
11117 Use SBYTES macro.
f0bed503 11118
1ac9108a 11119 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
11120 (doprnt): Merge with doprnt1, discarding lispstrings code.
11121 * lisp.h (doprnt_lisp): Don't declare.
11122
416e006d
JL
111232009-08-07 Juri Linkov <juri@jurta.org>
11124
11125 * puresize.h (BASE_PURESIZE): Increase to 1270000.
11126
6f7d5780
DN
111272009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
11128
11129 * print.c (syms_of_print): Undo previous change.
11130
f19a0f5b
TZ
111312009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
11132
11133 * lread.c (read1, syms_of_lread): Read hashtables back from the
11134 readable format.
11135
11136 * print.c (print_preprocess, print_object): Print hashtables fully
11137 and readably.
11138 (syms_of_print): Provide 'hashtable-print-readable.
11139
b9173dc2
AR
111402009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
11141
11142 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
11143 no family set.
11144 (nsfont_open): Handle case when entity has no family.
11145
1586503c
AR
111462009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
11147
11148 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
11149 element, not a list, for match case.
11150
087048cd
KH
111512009-07-28 Kenichi Handa <handa@m17n.org>
11152
11153 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
11154 rigidly.
11155
11156 * xfont.c (xfont_list_pattern): Don't ignore the return value of
11157 font_parse_xlfd. Check font properties more rigidly.
11158
780c2506
DN
111592009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
11160
31fd7c5c
JB
11161 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
11162 bsd-common.h.
780c2506 11163
a8c0cc18
KH
111642009-07-27 Kenichi Handa <handa@m17n.org>
11165
11166 * xfaces.c (face_with_height): Call font_clear_prop.
11167
4fbe2306
CY
111682009-07-26 Chong Yidong <cyd@stupidchicken.com>
11169
111d9af3
CY
11170 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
11171
11172 * xterm.c (x_term_init): Use Qx.
11173
4fbe2306
CY
11174 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
11175
1ac9108a 11176 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
11177 (ns_get_color): Revert 2009-07-16 change.
11178
beb0b7f9
EZ
111792009-07-25 Eli Zaretskii <eliz@gnu.org>
11180
11181 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 11182 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 11183
2baf5e76
KR
111842009-07-25 Ken Raeburn <raeburn@raeburn.org>
11185
1ac9108a
SM
11186 * coding.h (decode_coding_string, encode_coding_string):
11187 Use SCHARS macro.
8890e5f5 11188
2baf5e76 11189 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 11190 (load_depth): Delete.
2baf5e76
KR
11191 (Qload_in_progress): New variable.
11192 (load_unwind): Don't reference load_depth or load_in_progress.
11193 (Fload): Likewise; specbind Qload_in_progress instead.
11194 (init_lread): Don't initialize load_depth.
11195 (syms_of_lread): Initialize and protect Qload_in_progress.
11196
1395c6f5
AR
111972009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
11198
11199 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
11200
4e2f36cf
AR
112012009-07-23 Yavor Doganov <yavor@gnu.org>
11202
11203 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
11204
5dd9a6f7
AR
112052009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
11206
11207 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
11208 Bugs 3792, 3720, 2402.
11209 (ns_lookup_indexed_color): Check for bad index.
11210 (ns_index_color): Init unused slot to 0.
11211 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
11212 Bug 3714, possibly 3082.
5dd9a6f7 11213
c902b920
JR
112142009-07-22 Jason Rumney <jasonr@gnu.org>
11215
1ac9108a
SM
11216 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
11217 Position IME window at cursor (Bug#2570).
c902b920
JR
11218 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
11219 (globals_of_w32fns): Dynamically load functions required above.
11220
11221 * w32term.c (w32_draw_window_cursor): Send message to reposition
11222 any IME window.
11223
090101cf
CY
112242009-07-21 Chong Yidong <cyd@stupidchicken.com>
11225
11226 * fileio.c: Revert 2009-07-16 changes.
11227 (Vauto_save_include_big_deletions): New variable.
11228 (Fdo_auto_save): Disable auto-save only if
11229 auto-save-include-big-deletions is nil.
11230
e6583e3d
CY
112312009-07-21 Chong Yidong <cyd@stupidchicken.com>
11232
11233 * xdisp.c (move_it_to): For continued lines ending in a tab, take
11234 the overflowed pixels into account (Bug#3879).
11235
ece435a5
KR
112362009-07-21 Ken Raeburn <raeburn@raeburn.org>
11237
11238 * lread.c (load_depth): New variable.
11239 (Fload, load_unwind, init_lread): Set it to the load recursion
11240 depth; set load_in_progress as a simple boolean based on the
11241 current load_depth. (Bug#3892)
11242
40b2d973
AR
112432009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
11244
11245 * nsfont.m (ns_has_attribute): Remove.
11246 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
11247
10be7e0d
JL
112482009-07-18 Juri Linkov <juri@jurta.org>
11249
11250 * process.c (Fset_process_query_on_exit_flag): Mention killing
11251 a buffer in docstring.
11252
fa055055
KH
112532009-07-17 Kenichi Handa <handa@m17n.org>
11254
11255 * casetab.c (shuffle): Fix the logic of setting up the cycle.
11256
042f7b69
YM
112572009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11258
11259 * nsfns.m (Fns_set_alpha): Remove function.
11260 (syms_of_nsfns): Don't defsubr it.
11261
11262 * nsterm.m (ns_get_color): Remove incompatible color formats.
11263 (ns_color_to_lisp): Generate #rrggbb color format string.
11264
4be941e3
RS
112652009-07-16 Richard Stallman <rms@gnu.org>
11266
11267 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
11268 (Fset_buffer_auto_saved): Handle save_length = -2.
11269
4e6b227d
CY
112702009-07-16 Chong Yidong <cyd@stupidchicken.com>
11271
11272 * xterm.c (Qx_gtk_map_stock): New var.
11273
11274 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
11275 of calling intern each time.
11276
a1856973
YM
112772009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11278
11279 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
11280 does tiling.
11281
11282 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
11283
497e54d8
KH
112842009-07-14 Kenichi Handa <handa@m17n.org>
11285
72d36834
KH
11286 * font.c (font_vconcat_entity_vectors): New function.
11287 (struct font_sort_data): New member font_driver_preference.
11288 (font_compare): Check font_driver_preference.
11289 (font_sort_entities): The format of the first argument changed.
11290 (font_delete_unmatched): Likewise.
11291 (font_list_entities): The return type changed.
11292 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
11293 (font_find_for_lface): Adjuste for the above changes.
11294 Don't suppress the checking of C even if the repertory supports it.
11295 (Flist_fonts): Adjust for the above changes.
72d36834 11296
1ac9108a
SM
11297 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
11298 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
11299 Reject a font who has adstyle property that is different from a
11300 langname derived from registry property.
1ac9108a 11301 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 11302
b6046155
EZ
113032009-07-13 Eli Zaretskii <eliz@gnu.org>
11304
11305 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
11306 local copy of dirfilename.
11307
fb6b6049
KH
113082009-07-13 Kenichi Handa <handa@m17n.org>
11309
e2402a5e
KH
11310 * chartab.c (sub_char_table_ref_and_range): Fix the range check
11311 against max_char.
11312
fb6b6049
KH
11313 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
11314 calling XSYMBOL (sym).
11315
65156807
EZ
113162009-07-11 Eli Zaretskii <eliz@gnu.org>
11317
1ac9108a
SM
11318 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
11319 New function.
11320 (directory_files_internal) [WINDOWSNT]:
11321 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
11322 the filesystem of the directory is fast or slow.
11323
11324 * w32.c (logon_network_drive): Don't assume PATH is an absolute
11325 file name.
11326 (is_slow_fs): New function.
11327 (stat): Use it to determine whether to issue more system calls to
11328 get accurate file attributes, when w32-get-true-file-attributes is
11329 `local'.
11330
e0ab5fcf
JD
113312009-07-10 Jan Djärv <jan.h.d@swipnet.se>
11332
11333 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 11334 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
11335 parameter font-parameter as default to the font dialog.
11336
784ceded
KH
113372009-07-10 Kenichi Handa <handa@m17n.org>
11338
11339 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
11340
fb8edc0b
EZ
113412009-07-09 Eli Zaretskii <eliz@gnu.org>
11342
1ac9108a 11343 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 11344
fb8edc0b
EZ
11345 * w32.c (stat): Treat UNC file names as residing on remote
11346 drives. (Bug#3542)
11347
635c75b1
KH
113482009-07-09 Kenichi Handa <handa@m17n.org>
11349
11350 * fontset.c (fontset_find_font): Fix previous change.
11351
c1d5ce94
MA
113522009-07-08 Michael Albinus <michael.albinus@gmx.de>
11353
11354 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
11355 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
11356 error flag.
11357
edb61b39
KH
113582009-07-08 Kenichi Handa <handa@m17n.org>
11359
374bf7e4
KH
11360 * fontset.c (fontset_find_font): Fix the logic of handling
11361 charset_matched.
11362 (font_for_char): Delete unused var.
11363 (generate_ascii_font_name): Delete it.
11364
edb61b39
KH
11365 * coding.h (JIS_TO_SJIS2): Fix the code range check.
11366
11367 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
11368 (encode_coding_sjis): Fix the code range check.
11369
0f3f018c
CY
113702009-07-07 Chong Yidong <cyd@stupidchicken.com>
11371
11372 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
11373 (Fexpand_file_name): Copy string data properly (Bug#3772).
11374
fcaf6f3a
JD
113752009-07-07 Jan Djärv <jan.h.d@swipnet.se>
11376
11377 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
11378 first MapNotify.
11379
6809ca75
KH
113802009-07-07 Kenichi Handa <handa@m17n.org>
11381
11382 * character.h (unibyte_has_multibyte_table): Delete extern.
11383 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
11384
11385 * charset.c (Fset_charset_priority): Update charset_unibyte.
11386 (syms_of_charset): Initialize charset_unibyte.
11387
11388 * character.c (unibyte_has_multibyte_table): Delete it.
11389 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
11390 charset_unibyte.
11391 (multibyte_char_to_unibyte_safe): Likewise.
11392 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
11393
1ac9108a 11394 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
11395 (x_produce_glyphs): Likewise.
11396
11397 * .gdbinit (xcharset): Fix the treating $arg0.
11398
ad9e2d54
EZ
113992009-07-04 Eli Zaretskii <eliz@gnu.org>
11400
11401 Emulation of `getloadavg' on MS-Windows.
50426a04 11402 * w32.c: Include float.h.
ad9e2d54
EZ
11403 (g_b_init_get_native_system_info, g_b_init_get_system_times)
11404 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
11405 (get_native_system_info, get_system_times): New functions.
11406 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
11407 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
11408 (globals_of_w32): Initialize g_b_init_get_native_system_info,
11409 g_b_init_get_system_times, and num_of_processors.
11410
0a3472c7
JR
114112009-07-03 Jason Rumney <jasonr@gnu.org>
11412
11413 * w32term.c (w32_initialize): Use standard types.
11414
80904120
EZ
114152009-07-03 Eli Zaretskii <eliz@gnu.org>
11416
11417 * dired.c (Ffile_attributes): Decode user and group names by the
11418 locale's encoding. (Bug#3443)
11419
6978862d
DN
114202009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
11421
f8d23104
DN
11422 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
11423 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
11424
11425 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
11426
11427 * term.c (init_tty): Remove spurious #ifdef.
11428
6978862d
DN
11429 * m/mips.h: Mention this file is also used for netbsd.
11430 * m/pmax.h: Remove file.
11431
e044e4fc
JD
114322009-07-03 Jan Djärv <jan.h.d@swipnet.se>
11433
11434 * xterm.h (struct x_display_info): Add invisible_cursor.
11435 (struct x_output): Add current_cursor.
11436
11437 * xterm.c (XTtoggle_invisible_pointer): New function.
11438 (x_define_frame_cursor): Don't define cursor if invisible or the
11439 same as before. Set current_cursor.
11440 (x_create_terminal): Set toggle_invisible_pointer_hook.
11441
11442 * xfns.c (make_invisible_cursor): New function.
11443 (x_set_mouse_color): Call make_invisible_cursor.
11444 Set current_cursor.
11445 (x_window): Set current_cursor.
11446
11447 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
11448
11449 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
11450 inserting a character.
11451 (read_avail_input): Call frame_make_pointer_visible.
11452
11453 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
11454 (frame_make_pointer_invisible, frame_make_pointer_visible):
11455 New functions.
e044e4fc
JD
11456 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
11457
11458 * frame.h: Declare frame_make_pointer_invisible and
11459 frame_make_pointer_visible.
11460 (struct frame): Add pointer_invisible.
11461
574c8efa
JD
114622009-07-02 Jan Djärv <jan.h.d@swipnet.se>
11463
7b507248
JD
11464 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
11465 frame isn't visible.
11466 (xg_frame_resized): If width/height is -1, get size of window
11467 from X server.
11468
11469 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
11470 for MapNotify.
11471
835bdaa7 11472 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 11473 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 11474 (flush_and_sync): Reintroduce.
574c8efa 11475
3f1c6666 114762009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 11477
31fd7c5c 11478 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
11479
11480 * xterm.c (x_handle_net_wm_state): Also look for sticky.
11481 (x_term_init): Initialize Xatom_net_wm_state_sticky.
11482
11483 * frame.h: Declare Qsticky.
11484
cad9ef74
JD
11485 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
11486
11487 * nsfns.m (ns_frame_parm_handlers): Ditto.
11488
11489 * frame.c: Declare Qsticky.
11490 (frame_parms): Add sticky.
11491
11492 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
11493
11494 * xterm.h: Declare x_set_sticky.
11495
11496 * xterm.c (x_set_sticky): New function.
11497
69b16610
JD
11498 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
11499 (xg_tool_bar_menu_proxy): Attach enter/leave events to
11500 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
11501
11502 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
11503
11504 * frame.c: Qmaximized is new.
11505 (x_set_frame_parameters): Do not handle fullscreen specially.
11506 Only set width and height if explicitly set.
11507 (x_set_fullscreen): Handle Qmaximized.
11508 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
11509 (syms_of_frame): Initialize Qmaximized.
11510
1ac9108a
SM
11511 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
11512 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
11513
11514 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
11515 for Expose event. Add call to x_check_fullscreen for MapNotify event.
11516 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
11517 set gravity to NorthWestGravity when USE_GTK.
11518 (set_wm_state): New function.
31fd7c5c 11519 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
11520 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
11521 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 11522 or the case when no window manager is running. That means remove calls
3f1c6666
JD
11523 to x_real_positions and x_fullscreen_adjust.
11524
11525 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
11526 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
11527 flush_and_sync.
11528 (xg_height_changed): New function.
11529 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
11530 and gtk_window_set_policy. Set frame gravity after parsing the
11531 geometry string.
3f1c6666
JD
11532 (xg_update_frame_menubar, free_frame_menubar)
11533 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
11534 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
11535 Remove calls to xg_frame_set_char_size.
11536
fd503d99
KH
115372009-07-01 Kenichi Handa <handa@m17n.org>
11538
11539 * keyboard.c (decode_keyboard_code): New function.
11540 (tty_read_avail_input): Decode the input bytes if necessary.
11541
1ac9108a
SM
11542 * coding.c (setup_coding_system):
11543 Initialize coding->carryover_bytes to 0.
fd503d99
KH
11544 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
11545 use Qno_conversion.
11546
24ed93fb
YM
115472009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11548
11549 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
11550
99061dfc
CY
115512009-06-30 Chong Yidong <cyd@stupidchicken.com>
11552
1ac9108a 11553 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 11554
ff90fbde
JR
115552009-06-30 Jason Rumney <jasonr@gnu.org>
11556
11557 * w32term.c (w32_initialize): Use GetModuleHandle for library that
11558 is already loaded.
11559 Set user model ID if supported (bug#1849).
11560
5f445726
JM
115612009-06-29 Jim Meyering <meyering@redhat.com>
11562
11563 Remove useless if-before-xfree test.
11564 * nsfont.m (nsfont_close): Remove useless test.
11565 * term.c (delete_tty): Likewise.
11566 * w32.c (system_process_attributes): Likewise.
11567 * w32font.c (w32font_close): Likewise.
11568 * xfaces.c (x_free_gc): Likewise.
11569 * xselect.c (buffer): Likewise.
11570
b9607587
AS
115712009-06-28 Andreas Schwab <schwab@linux-m68k.org>
11572
11573 * process.c (send_process): Keep decoded string in a local
11574 variable and protect it from GC. (Bug#3521)
11575
89ba96f4
EZ
115762009-06-28 Eli Zaretskii <eliz@gnu.org>
11577
11578 * term.c (create_tty_output) [MSDOS]: #ifdef away.
11579 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
11580
098a1589
CY
115812009-06-28 Chong Yidong <cyd@stupidchicken.com>
11582
485422be
CY
11583 * xdisp.c (start_display, handle_face_prop)
11584 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
11585 (redisplay_window, try_window_id, produce_image_glyph):
11586 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 11587
098a1589
CY
11588 * xterm.c (x_update_window_begin, x_new_focus_frame)
11589 (x_scroll_bar_handle_click, handle_one_xevent)
11590 (handle_one_xevent, XTread_socket, x_focus_on_frame)
11591 (x_make_frame_visible, x_make_frame_invisible)
11592 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
11593 code chunks that are now obsolete.
11594
78c38319
MA
115952009-06-28 Michael Albinus <michael.albinus@gmx.de>
11596
11597 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
11598 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
11599 for hours, when optimzation is enabled.
11600 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
11601 (xd_read_message): Make them static.
11602
4189ed40
CY
116032009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
11604
11605 * term.c (turn_on_face): Allow simultaneously bold and dim
11606 terminal faces (Bug#3530).
11607
cd9b5e16
CY
116082009-06-27 Chong Yidong <cyd@stupidchicken.com>
11609
4e23bedb
CY
11610 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
11611
cd9b5e16
CY
11612 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
11613 truncation glyphs (Bug#3686).
11614
07cc3c35
GM
116152009-06-27 Glenn Morris <rgm@gnu.org>
11616
11617 * m/pmax.h: Restore file, with only netbsd portions.
11618
31fd7c5c 116192009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 11620
cd9b5e16 11621 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 11622
42d4a64f
KH
116232009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
11624
11625 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
11626 the arg FORCE_SYMBOL.
11627
930fe55b 116282009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
11629
11630 * fontset.c (fontset_find_font): When a usable rfont_def is found
11631 in a fallback font-group, make it the first element of the group.
11632
57ebc3fd
CY
116332009-06-24 Chong Yidong <cyd@stupidchicken.com>
11634
11635 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
11636
f084f942
KH
116372009-06-24 Kenichi Handa <handa@m17n.org>
11638
11639 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
11640 set for C.
11641 (fontset_font): Record the availability of a font for C both in
11642 the realized fontsets of the current one and the default one.
11643
2f686c87
DN
116442009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
11645
11646 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
11647 conditional, it is always defined on AIX.
11648
666e158e
MB
116492009-06-23 Miles Bader <miles@gnu.org>
11650
11651 * window.c (Vrecenter_redisplay): New variable.
11652 (syms_of_window): Initialize it.
11653 (Qtty): New extern declaration.
11654 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
11655
c6da7cd2
JM
116562009-06-23 Jim Meyering <meyering@redhat.com>
11657
1ac9108a
SM
11658 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
11659 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 11660 pointer dereferences are guaranteed to be valid.
c6da7cd2 11661
678dca3d
KH
116622009-06-23 Kenichi Handa <handa@m17n.org>
11663
74d75424
KH
11664 * emacs.c (main): Call init_font ().
11665
11666 * font.h (Vfont_log): Extern it.
11667 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
11668
11669 * font.c (font_sort_entities, font_list_entities)
11670 (font_matching_entity, font_open_entity)
11671 (font_close_object): Change font_add_log to FONT_ADD_LOG.
11672 (Vfont_log): Delete static.
11673 (font_log_env_checked): Delete this variable.
11674 (font_add_log): Don't check font_log_env_checked.
11675 (font_deferred_log): Check Vfont_log.
11676 (init_font): New function.
11677
678dca3d
KH
11678 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
11679
11680 * w32font.c: Change font_add_log to FONT_ADD_LOG.
11681
11682 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
11683
11684 * xfont.c: Change font_add_log to FONT_ADD_LOG.
11685
11686 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
11687 (face_for_char): Don't call font_deferred_log here.
11688 (font_for_char): Likewise.
11689
8a668709
CY
116902009-06-22 Chong Yidong <cyd@stupidchicken.com>
11691
9a01ee33
CY
11692 * w32term.c (x_draw_glyph_string): Use the glyph string's width
11693 rather than its background_width for drawing the overline and
11694 underline (Bug#489).
11695
11696 * xterm.c (x_draw_glyph_string): Use the glyph string's width
11697 rather than its background_width for drawing the overline and
11698 underline (Bug#489).
ec7c9926
CY
11699 (xg_default_icon_file): New variable.
11700 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
11701 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 11702
8a668709
CY
11703 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
11704 (load_overlay_strings): Remove externs.
11705 (fast_find_position): Function deleted.
11706 (mouse_face_from_buffer_pos): New function, based on
11707 fast_find_position. Correctly handle before-strings,
11708 display-strings, and after-strings (Bug#1220).
11709 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
11710
4d4c02d8
CY
117112009-06-21 Chong Yidong <cyd@stupidchicken.com>
11712
1ac9108a 11713 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
11714 (move_it_in_display_line_to, move_it_in_display_line_to)
11715 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
11716
70243478
CY
117172009-06-21 Chong Yidong <cyd@stupidchicken.com>
11718
11719 * Branch for 23.1.
11720
13087e59
JR
117212009-06-21 Jason Rumney <jasonr@gnu.org>
11722
11723 * w32term.c (keyboard_codepage): New static variable.
11724 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
11725 (w32_read_socket) [WM_CHAR]: Use it to decode character
11726 input (bug#3237).
11727 (w32_initialize): Initialize it.
11728 (codepage_for_locale): New function.
11729
4735b74e
KR
117302009-06-20 Ken Raeburn <raeburn@raeburn.org>
11731
11732 * process.c (status_message): Pass Faset index argument as a lisp
11733 object, so as to work with USE_LISP_UNION_TYPE.
11734
0e727afa
YM
117352009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11736
11737 * coding.c (Ffind_coding_systems_region_internal):
11738 Cache checked characters.
11739
cf299835
KH
117402009-06-18 Kenichi Handa <handa@m17n.org>
11741
1ac9108a 11742 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 11743
90f20d94
AS
117442009-06-18 Andreas Schwab <aschwab@redhat.com>
11745
11746 * xdisp.c (redisplay_internal): Check that the frame is still
11747 live after redisplay of its windows.
11748 (redisplay_windows): Check that the window is still live.
11749
7f1faf1c
KH
117502009-06-17 Andreas Schwab <schwab@linux-m68k.org>
11751
11752 * coding.c (detect_coding_utf_16): Fix previous change.
11753
cc13543e
KH
117542009-06-16 Kenichi Handa <handa@m17n.org>
11755
11756 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
11757 UTF-16 by checking the dispersion of Eth and Oth bytes.
11758
977b85f4
AS
117592009-06-15 Andreas Schwab <schwab@linux-m68k.org>
11760
11761 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
11762
66bd43d1
KH
117632009-06-15 Kenichi Handa <handa@m17n.org>
11764
11765 * process.c (status_message): Fix previous change. Be sure to
11766 decode a localized string.
11767
cb5ca9c5
YM
117682009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11769
11770 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
11771 add comment explaining why.
11772
ec7709ba 117732009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 11774
ec7709ba 11775 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 11776
4b7f335c
AR
117772009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
11778
11779 * nsfont.m (ns_attribute_value): Remove.
11780 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
11781 (ns_has_attribute): Shrink the normal range.
11782 (ns_findfonts): Don't worry about requested spec in determining
11783 need for synthItal.
e41820ee 11784 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 11785
73b26103
SZ
117862009-06-14 Seiji Zenitani <zenitani@mac.com>
11787
11788 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
11789
5753e4da
KH
117902009-06-11 Kenichi Handa <handa@m17n.org>
11791
11792 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
11793 overhang for the static composition case.
11794
3561b671
KH
117952009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11796
5753e4da
KH
11797 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
11798 overhang for the automatic composition case.
11799
3561b671
KH
11800 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
11801 composition case.
11802
852bbd41
CY
118032009-06-10 Chong Yidong <cyd@stupidchicken.com>
11804
11805 * xdisp.c (get_next_display_element): When handling wrap-prefix
11806 and line-prefix, treat \n as a control character (bug#3502).
11807
9903d1e6
KH
118082009-06-10 Kenichi Handa <handa@m17n.org>
11809
11810 * font.c (font_parse_family_registry): Fix for one-char foundry.
11811 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
11812
0bcbaaaa
CY
118132009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
11814
11815 * process.c (status_message): Fix handling of multibyte signal
11816 string (Bug#3499).
11817
40aa3f13
JM
118182009-06-09 Jim Meyering <meyering@redhat.com>
11819
1f80c7e2
CY
11820 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
11821 color name is missing.
40aa3f13 11822
72d51285
KH
118232009-06-09 Kenichi Handa <handa@m17n.org>
11824
11825 * charset.c (Fmap_charset_chars): In docstring, state clearly that
11826 FROM-CODE and TO-CODE are codepoints of CHARSET.
11827
c1d04d84
AR
118282009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
11829
11830 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
11831
118322009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
11833
11834 Changes to support :script/:lang/:otf in NS font driver.
11835 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
11836 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
11837 indicate not part of font driver interface, and change callers.
11838 (ns_get_family): Remove pointless null check.
11839 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
11840 ns_spec_to_descriptor, ns_descriptor_to_entity.
11841 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
11842 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
11843 (ns_spec_to_descriptor, ns_descriptor_to_entity)
11844 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
11845 (ns_get_req_script, ns_accumulate_script_ranges)
11846 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
11847 New functions.
11848 (nsfont_list, nsfont_match): Use ns_findfonts.
11849 (nsfont_open): Use font descriptor instead of traits.
11850 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
11851 (dump_glyphstring): Rename to ns_dump_glyphstring.
11852
c7eb9816
AR
11853 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
11854
c1d04d84
AR
11855 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
11856
11857 * fontset.c (fontset_from_font): Remove NS-specific code.
11858
ec7709ba 118592009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
11860
11861 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
11862 nonactive windows.
11863
31fd7c5c 118642009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 11865
1ac9108a 11866 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 11867
68852c13 118682009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
11869
11870 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
11871
6756cd1d
CY
118722009-06-07 Chong Yidong <cyd@stupidchicken.com>
11873
11874 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
11875 account for the overflowing of newlines into the last glyph on the
11876 display line (Bug#3482).
11877
28bf482a
DR
118782009-06-05 David Reitter <david.reitter@gmail.com>
11879
ec7709ba
JB
11880 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
11881 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
11882 Fns_selection_exists_p, Fns_selection_owner_p.
11883
fdb55376
JR
118842009-06-03 Jason Rumney <jasonr@gnu.org>
11885
11886 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
11887 available. (Bug#3379)
11888
05129fbe
KH
118892009-05-29 Kenichi Handa <handa@m17n.org>
11890
1ac9108a
SM
11891 * coding.c (get_translation_table):
11892 Check Venable_character_translation.
05129fbe 11893
ec7709ba 118942009-05-26 David Reitter <david.reitter@gmail.com>
15891144 11895
ec7709ba
JB
11896 * nsterm.m (ns_raise_frame): Only raise frame if visible.
11897 (x_make_frame_visible): Move frame to front rather than calling
15891144 11898 ns_raise_frame().
ec7709ba 11899 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 11900 isn't key window.
ec7709ba 11901 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
11902 drawRect may be called by NSView even if the frame is hidden.
11903
ec7709ba
JB
11904 * nsfns.m (Fx_create_frame): Follow other ports in
11905 determining visibility; default to t. Ensure async_visible is set.
15891144 11906
21f73755
EZ
119072009-05-23 Eli Zaretskii <eliz@gnu.org>
11908
11909 * dired.c (Ffile_attributes): Doc fix.
11910
34001e41
CY
119112009-05-22 Chong Yidong <cyd@stupidchicken.com>
11912
11913 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
11914
46306a17
SM
119152009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
11916
11917 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
11918 and xfont_scratch_props.
11919 (syms_of_xfont): Do it here instead.
11920 (xfont_find_ccl_program): Delete, unused.
11921 (xfont_open): Delete unused var `i'.
11922
ef6e0694
KH
119232009-05-21 Kenichi Handa <handa@m17n.org>
11924
11925 * fontset.c (Qlatin): Don't make it static.
11926
46306a17
SM
11927 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
11928 New functions.
ef6e0694
KH
11929 (xfont_scripts_cache, xfont_scratch_props): New variables.
11930 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
11931 (xfont_list_pattern): Argument changed. Callers changed.
11932 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
11933 (xfont_list): Don't reject a font spec with :script property.
11934 (xfont_has_char): Fix setting of encoding.
11935 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
11936 xfont_scratch_props.
11937
119382009-05-19 Kenichi Handa <handa@m17n.org>
11939
46306a17 11940 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
11941 Callers changed.
11942
119432009-05-18 Kenichi Handa <handa@m17n.org>
11944
11945 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
11946
ac71ced7
SM
119472009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
11948
11949 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
11950 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
11951
1c6d1051
YM
119522009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11953
11954 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
11955 (x_delete_terminal): Dissociate resource database from display and
11956 then call XrmDestroyDatabase before closing display.
11957
9b9b779c
AR
119582009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
11959
11960 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
11961 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
11962 whether selected frame is viable before raising it (based on patch
11963 by David Reitter), and improve commentary.
11964 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 11965
cccd42d5
KH
119662009-05-15 Kenichi Handa <handa@m17n.org>
11967
11968 * font.c (Ffont_spec): Check arguments.
11969
337fbd17
CY
119702009-05-14 Chong Yidong <cyd@stupidchicken.com>
11971
11972 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
11973 weight when testing attributes (Bug#3282).
11974
47a6002f
JD
119752009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11976
11977 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
11978 what we expect to get in the next ConfigureNotify event.
11979
9cb363db
YM
11980 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
11981 before Xft one (Bug#1696).
11982
b9126609
CY
119832009-05-07 David Reitter <david.reitter@gmail.com>
11984
11985 * nsfns.m (Fx_display_planes): Compute bitplanes using
11986 NSBitsPerPixelFromDepth (Bug#3207).
11987
27a69fd9
CY
119882009-05-10 Chong Yidong <cyd@stupidchicken.com>
11989
11990 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
11991
00f37552
TTN
119922009-05-10 Ulrich Mueller <ulm@gentoo.org>
11993
11994 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
11995
2d82a920
DR
119962009-05-07 David Reitter <david.reitter@gmail.com>
11997
ec7709ba
JB
11998 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
11999 Respect mouse face background.
2d82a920 12000
46b0d52d
DR
120012009-05-07 David Reitter <david.reitter@gmail.com>
12002
ec7709ba
JB
12003 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
12004 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
12005 in ns_update_begin and ns_update_end.
12006
ce1b23bb
SM
120072009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
12008
5996e1b7
SM
12009 * nsfns.m (ns_get_screen): Rewrite.
12010 Don't presume selected-frame is of type `ns'.
12011
ba98e3a0
SM
12012 * font.c (font_update_drivers): Sanity fallback to avoid disabling
12013 all drivers.
12014
ce1b23bb
SM
12015 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
12016
bcda200f
YM
120172009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12018
12019 * keyboard.h (add_user_signal): Fix typo in extern.
12020
12021 * lisp.h (add_user_signal): Remove extern.
12022
12023 * unexelf.c (unexec): Consider a section to precede the .bss section
12024 if its addresses overlap that of .bss.
12025 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
12026 instead of dumping process.
12027
864660a2
SM
120282009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
12029
12030 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
12031
50da4e56
SM
120322009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
12033
12034 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
12035
51520a1a
DN
120362009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
12037
12038 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
12039 any statements.
12040
409ea3a1
AS
120412009-05-02 Andreas Schwab <schwab@linux-m68k.org>
12042
59c4c60f
AS
12043 * process.c (read_process_output): Make sure the current buffer is
12044 always restored.
12045
409ea3a1
AS
12046 * coding.c (record_conversion_result): Don't modify
12047 Vlast_code_conversion_error for successful result.
12048 (alloc_destination): Don't clobber conversion result. (Bug#1650)
12049
56f00ed2
KH
120502009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
12051
12052 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 12053 (load_charset_map): Remove unnecessary code.
56f00ed2 12054
4491c9d2
DR
120552009-04-30 David Reitter <david.reitter@gmail.com>
12056
35f5b128 12057 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
12058 through f24.
12059
6970f632
CY
120602009-04-30 Chong Yidong <cyd@stupidchicken.com>
12061
12062 * xfaces.c (face_at_buffer_position): New arg base_face_id.
12063
12064 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
12065 face_at_buffer_position.
12066 (face_before_or_after_it_pos, get_next_display_element)
12067 (note_mouse_highlight): Update face_at_buffer_position call.
12068
12069 * term.c (term_mouse_highlight):
12070 * msdos.c (IT_note_mouse_highlight):
12071 * fontset.c (Finternal_char_font):
35f5b128 12072 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
12073
12074 * dispextern.h (face_at_buffer_position): Update prototype.
12075
0c616f63
KH
120762009-04-30 Kenichi Handa <handa@m17n.org>
12077
35f5b128 12078 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 12079
ad3aaf33
AS
120802009-04-29 Andreas Schwab <schwab@linux-m68k.org>
12081
12082 * callproc.c (Fcall_process): Fix GC protection. Make sure
12083 current buffer is always restored.
12084
c3c963a0
YM
120852009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12086
12087 * atimer.c (init_atimer): Also clear stopped_atimers.
12088
12089 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
12090
7e3386cb
YM
12091 * process.c (create_process): Clean up merger residues of
12092 2008-07-17 change.
12093
91f68422
CY
120942009-04-29 Ulrich Mueller <ulm@gentoo.org>
12095
12096 * lread.c (Vread_circle): New variable.
12097 (read1): Disable recursive read if Vread_circle is nil.
12098
24b34550
KH
120992009-04-29 Kenichi Handa <handa@m17n.org>
12100
12101 * fontset.h (set_default_ascii_font): Delete extern.
12102
12103 * fontset.c (set_default_ascii_font): Delete this unused function.
12104
12105 * frame.c (x_set_font): When ARG is a font-object, check if the
12106 font-object matches with the ASCII font-spec of the frame's
9c358bda 12107 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 12108
77bf07e1
AS
121092009-04-28 Andreas Schwab <schwab@linux-m68k.org>
12110
12111 * fns.c (Flocale_info): Protect vector from GC during decoding.
12112
12113 * process.c (Fstart_process): Protect argv strings from GC during
12114 encoding.
12115
2c55aacf
AS
121162009-04-27 Andreas Schwab <schwab@linux-m68k.org>
12117
12118 * sysdep.c: Include <ctype.h>.
12119
b892d3c9
DR
121202009-04-27 David Reitter <david.reitter@gmail.com>
12121
35f5b128 12122 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
12123 Remove commented-out code.
12124
9d0644c4
JB
121252009-04-26 Johan Bockgård <bojohan@gnu.org>
12126
12127 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
12128
b7053016
JR
121292009-04-25 Jason Rumney <jasonr@gnu.org>
12130
12131 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
12132
4e8231f3
YM
121332009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12134
12135 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
12136 Swap bytes in short integer if fringe bitmap width > 8.
12137
493dcf2c
KH
121382009-04-23 Kenichi Handa <handa@m17n.org>
12139
12140 * xfaces.c (Fx_list_fonts): If a font size is specified in
12141 PATTERN, set it in returned scalable fonts.
12142
401e9e57
CY
121432009-04-22 Chong Yidong <cyd@stupidchicken.com>
12144
708e05dc
CY
12145 * keyboard.c (Fset_input_meta_mode): Doc fix.
12146
12147 * dispnew.c (Fsend_string_to_terminal): Doc fix.
12148
1ac9108a 12149 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
12150
12151 * coding.c (Fterminal_coding_system): Doc fix.
12152
12153 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
12154 (Fx_display_pixel_height, Fx_display_planes)
12155 (Fx_display_color_cells, Fx_server_max_request_size)
12156 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
12157 (Fx_display_mm_height, Fx_display_mm_width)
12158 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
12159 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
12160 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
12161 (check_x_display_info): Handle terminal objects instead of
12162 terminal ids.
12163
401e9e57
CY
12164 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
12165 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
12166 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
12167 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 12168
df80c7f0
KH
121692009-04-21 Kenichi Handa <handa@m17n.org>
12170
5a8f12af 12171 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 12172 (font_score): Check AVGWIDTH too.
908567ef 12173
df80c7f0
KH
12174 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
12175 worst case.
1ac9108a
SM
12176 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
12177 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 12178
705af33f
JR
121792009-04-19 Jason Rumney <jasonr@gnu.org>
12180
12181 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 12182 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
12183
12184 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
12185 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
12186 get_phys_cursor_geometry.
12187
b71ac3dd 12188 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
12189 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
12190 using get_phys_cursor_geometry.
12191
12192 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
12193 correctly calculated.
12194
dc2933eb
JD
121952009-04-19 Jan Djärv <jan.h.d@swipnet.se>
12196
1ac9108a
SM
12197 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
12198 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
12199 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
12200 is deprecated.
12201
973e7849
AS
122022009-04-18 Andreas Schwab <schwab@linux-m68k.org>
12203
12204 * font.c (font_put_frame_data): Use xfree instead of free.
12205
314d66f4
JB
122062009-04-17 Juanma Barranquero <lekktu@gmail.com>
12207
12208 * w32font.c (Qja, Qko): Remove declarations.
12209 (syms_of_w32font): Don't DEFSYM them.
12210
cf702558
CY
122112009-04-17 Chong Yidong <cyd@stupidchicken.com>
12212
12213 * font.c (Qja, Qko): Move definitions here from ftfont.c.
12214
12215 * font.h (Qja, Qko): Extern them.
12216
12217 * ftfont.c (Qja, Qko): Remove declarations.
12218
12219 * xfont.c (Qja, Qko): Remove declarations.
12220
b50504f5
KH
122212009-04-17 Kenichi Handa <handa@m17n.org>
12222
bde25748
KH
12223 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
12224 string from a vector to handle Latin-1 characters correctly.
12225
b50504f5
KH
12226 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
12227 entity even if the cache hits.
12228
f4646fff
AS
122292009-04-16 Andreas Schwab <schwab@linux-m68k.org>
12230
12231 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 12232 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 12233
e7deaab0
AS
12234 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
12235 * lisp.h: Adjust prototypes.
12236
0a0e7d49
CY
122372009-04-16 Chong Yidong <cyd@stupidchicken.com>
12238
12239 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
12240 change (Bug#3003).
12241
3c908a57
KH
122422009-04-16 Kenichi Handa <handa@m17n.org>
12243
1ac9108a 12244 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
12245
12246 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
12247 adstyle.
12248
12249 * ftfont.c (Qja, Qko): Don't make them static.
12250 (enum ftfont_cache_for): New enum.
12251 (fc_charset_table): Undo the previous change.
12252 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
12253 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
12254 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
12255 non-scarable font, try to get AVERAGE_WIDTH.
12256 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
12257 Change ft_face_cache from a list of a hash-table. Don't check
12258 `ja' and `ko' adstyle here.
12259 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
12260 FTFONT_CACHE_FOR_CHARET.
12261 (ftfont_get_charset): Undo the previous change.
1ac9108a 12262 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
12263 (ftfont_close): Likewise.
12264 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
12265
12266 * font.c (font_sort_entites): Change the meaning of the arg
12267 BEST-ONLY. Don't optimize for VEC of lenght 1.
12268 (font_select_entity): Just return the value of font_sort_entites.
12269
12270 * xfaces.c (merge_face_vectors): Reflect font properties in
12271 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
12272 font_clear_prop if a face attribute doesn't change.
12273
3c908a57
KH
12274 * charset.h (charset_ksc5601): Extern it.
12275
12276 * charset.c (charset_ksc5601): New variable.
12277 (Fdefine_charset_internal): Set charset_ksc5601.
12278 (init_charset_once): Initialize charset_ksc5601 to -1.
12279
d65859c3
DN
122802009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
12281
12282 * fileio.c (history_delete_duplicates): Remove unused declaration.
12283
12284 * callint.c (history_delete_duplicates): New declaration.
12285 (Fcall_interactively): Remove command history duplicates when
12286 history_delete_duplicates is true.
12287
3ba010e5
EZ
122882009-04-14 Eli Zaretskii <eliz@gnu.org>
12289
12290 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
12291
06f19b91
KH
122922009-04-14 Kenichi Handa <handa@m17n.org>
12293
12294 * font.c (Ffont_info): Fix docstring. Fix the second element of
12295 the returned value (bug#2949).
12296
2cce8bfc
CY
122972009-04-14 Chong Yidong <cyd@stupidchicken.com>
12298
12299 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
12300
d156542d
KH
123012009-04-14 Kenichi Handa <handa@m17n.org>
12302
12303 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
12304 encoding charset is ascii_compatible.
12305
12306 * charset.c (Fdefine_charset_internal): Make charset
12307 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
12308 code_offset is 0, and covers all ASCII characters.
12309
86fa089e
SM
123102009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
12311
12312 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
12313 (ns_string_to_pasteboard_internal):
12314 * nsmenu.m (process_dialog):
12315 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
12316 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
12317 * lisp.h (Fx_load_color_file): Declare.
12318
a8a3728b
KH
123192009-04-13 Kenichi Handa <handa@m17n.org>
12320
1ac9108a 12321 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
12322 (font_select_entity): Suppress the code to optimize for the same
12323 kind of fonts.
12324 (font_load_for_lface): Get a font that supports at least ASCII
12325 characters.
12326
12327 * ftfont.c (Qja, Qko): New variables.
12328 (fc_charset_table): Delete uniquifier data for iso8859-1.
12329 (ftfont_get_latin1_charset): New function.
12330 (get_adstyle_property): New function.
12331 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
12332 bitmap fonts.
12333 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
12334 Delete iso-8859-1 range from the charset of fonts whose adstyle is
12335 `ko' or `ja'.
12336 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 12337 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
12338 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
12339 property.
12340 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
12341 (syms_of_ftfont): DEFSYM Qja and Qko.
12342
483670b5
KH
123432009-04-09 Kenichi Handa <handa@m17n.org>
12344
12b55765
KH
12345 * charset.c (map_charset_chars): For a charset of `superset'
12346 method, fix calculation of code range.
12347
483670b5
KH
12348 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
12349 from the list of extra properties.
12350 (font_clear_prop): Be sure to delete `:name' font property.
12351
57d3b93b
KH
123522009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12353
b4b2c2ca
YM
12354 * dispnew.c (redraw_overlapping_rows): Fix detection of
12355 overlapping for topmost and bottommost rows.
12356
1ac9108a 12357 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 12358
472c3609
JR
123592009-04-06 Jason Rumney <jasonr@gnu.org>
12360
12361 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
12362
ab193662
KH
123632009-04-06 Kenichi Handa <handa@m17n.org>
12364
12365 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
12366
12367 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
12368
0c26f026
KH
123692009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12370
12371 * ftfont.c (ftfont_open): Fix checking of the return value of
12372 FT_Load_Char. Fix setting font->underline_thickness.
12373
e173bbce
CY
123742009-04-04 Chong Yidong <cyd@stupidchicken.com>
12375
12376 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
12377 (Fterminal_parameters, Fterminal_parameter)
12378 (Fset_terminal_parameter): In doc string, refer to terminal
12379 objects rather than terminal ids.
12380
693a2698
EZ
123812009-04-04 Eli Zaretskii <eliz@gnu.org>
12382
12383 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
12384 ret_lim_data. (Bug#2867)
12385
d5221487
CY
123862009-04-03 Chong Yidong <cyd@stupidchicken.com>
12387
12388 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
12389 so they don't get wider than the window, matching 2006-01-23
12390 change to the partner function in xdisp.c (Bug#2800).
12391
223509a3
KH
123922009-04-03 Kenichi Handa <handa@m17n.org>
12393
12394 * print.c (print_object): Make each lowest sub_char_table start a
12395 new line (Bug#2866).
12396
74fcd0b1
KH
123972009-04-02 Kenichi Handa <handa@m17n.org>
12398
12399 * fontset.c (fontset_font): Record no-font when a fontset
12400 explicitly tells not to try another font-specs.
12401
c542407d
SM
124022009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
12403
12404 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
12405
e3869731
KH
124062009-03-30 Kenichi Handa <handa@m17n.org>
12407
d8d2f142
KH
12408 * fontset.c (fontset_from_font): Specify only registry in a
12409 font-spec for all characters supported by that registry.
12410
e3869731
KH
12411 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
12412 even if HAVE_M17N_FLT is not defined.
12413
5da5f805
CY
124142009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
12415
12416 * ftfont.c: Conditionalize prototyping and use of
12417 ftfont_variation_glyphs.
12418
ab226c50
SM
124192009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
12420
9628fed7
SM
12421 * frame.c (delete_frame): Work around compiler bug.
12422
12423 * editfns.c (general_insert_function): Adjust to insdel.c changes.
12424 * insdel.c (prepare_to_modify_buffer, signal_before_change):
12425 Some more EMACS_INT.
12426 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
12427
12428 * xdisp.c (dump_glyph): Fix typo.
12429
ae19ba7c
SM
12430 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
12431 (adjust_markers_gap_motion, adjust_markers_for_delete)
12432 (adjust_markers_for_insert, adjust_point)
12433 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
12434 (make_gap, copy_text, count_size_as_multibyte, insert)
12435 (insert_and_inherit, insert_before_markers)
12436 (insert_before_markers_and_inherit, insert_1)
12437 (count_combining_before, count_combining_after, insert_1_both)
12438 (insert_from_string, insert_from_string_before_markers)
12439 (insert_from_string_1, insert_from_gap, insert_from_buffer)
12440 (insert_from_buffer_1, adjust_after_replace)
12441 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
12442 (replace_range_2, del_range, del_range_1, del_range_byte)
12443 (del_range_both, del_range_2, modify_region)
12444 (prepare_to_modify_buffer, signal_before_change)
12445 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
12446 for buffer positions and sizes.
12447 * lisp.h: Adjust prototypes accordingly.
12448
12449 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
12450 (non_regular_inserted, non_regular_nbytes, read_non_regular)
12451 (Finsert_file_contents): Use EMACS_INT for buffer positions.
12452
ab226c50
SM
12453 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
12454
46dfb8fb
JD
124552009-03-27 Jan Djärv <jan.h.d@swipnet.se>
12456
12457 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
12458 lines and columns so we keep the same pixel height and width.
12459
12460 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
12461 the property _NET_WM_STATE has changed.
46dfb8fb
JD
12462 (x_handle_net_wm_state): New function to update frame parameter
12463 fullscreen.
12464 (x_term_init): Initialize atoms for _NET_WM_STATE.
12465
12466 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
12467
d347e494
SM
124682009-03-27 Kevin Ryde <user42@zip.com.au>
12469
12470 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
12471 Gpm_GetEvent as an error that justifies closing the filedescriptor.
12472 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
12473 (Fgpm_mouse_stop): Pass that new parameter.
12474 * termhooks.h (close_gpm): Adjust prototype.
12475
84db11d6
SM
124762009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
12477
c95a5008
SM
12478 * lisp.h (Fx_focus_frame): Declare.
12479
84db11d6
SM
12480 * callint.c (Fcall_interactively): For '^' just delegate the work to
12481 handle-shift-selection.
12482 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
12483
0a1958d6
CY
124842009-03-24 Chong Yidong <cyd@stupidchicken.com>
12485
0bfdff23
CY
12486 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
12487
0a1958d6
CY
12488 * data.c (Qinteractive_form): New variable.
12489 (Finteractive_form): Use it.
12490
12491 * eval.c (Fcommandp): Use Qinteractive_form.
12492
58aec0d6
JR
124932009-03-24 Jason Rumney <jasonr@gnu.org>
12494
12495 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
12496 Calculate total size precisely. Decode environment variables
12497 before substituting. (Bug#38)
12498
553dd618
KH
124992009-03-24 Kenichi Handa <handa@m17n.org>
12500
12501 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 12502 encoding (Bug#2722).
553dd618 12503
c39ea606
JD
125042009-03-23 Jan Djärv <jan.h.d@swipnet.se>
12505
12506 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
12507 that gdpy is set.
12508
bc9b2b5e
AM
125092009-03-22 Alan Mackenzie <acm@muc.de>
12510
12511 * callint.c (Finteractive): Clarify the doc string - even
12512 promptless elements need \n separators.
12513
9f995a76
JR
125142009-03-22 Jason Rumney <jasonr@gnu.org>
12515
12516 * w32term.c (syms_of_w32term): Doc fix for
12517 x-use-underline-position-properties.
12518
22749e9a
EZ
125192009-03-21 Eli Zaretskii <eliz@gnu.org>
12520
12521 * w32.c (getpwuid): Change argument type to unsigned.
12522 (struct w32_id): Change type of `rid' member to unsigned.
12523 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
12524 argument ID to unsigned. All callers changed.
12525 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
12526
e00553bf
EZ
125272009-03-20 Eli Zaretskii <eliz@gnu.org>
12528
12529 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
12530 negative, produce a float value.
12531
12532 * dired.c (make_uid, make_gid): New functions.
12533 (Ffile_attributes): Use them to avoid negative UID and GID.
12534
f761d6b6
JB
125352009-03-20 Juanma Barranquero <lekktu@gmail.com>
12536
12537 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
12538 (syms_of_keyboard) <command-hook-internal, input-method-function>:
12539 Fix typos in docstrings.
12540
d507f8d7
KH
125412009-03-19 Kenichi Handa <handa@m17n.org>
12542
12543 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
12544 changed, use font_load_for_lface to get a new font object.
12545 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
12546
12547 * frame.c (x_set_font): Handle the case that ARG is a cons.
12548
c68845e0
GM
125492009-03-19 Glenn Morris <rgm@gnu.org>
12550
12551 * fileio.c (Fsubstitute_in_file_name): Doc fix.
12552
bfa49dd1
CY
125532009-03-19 Chong Yidong <cyd@stupidchicken.com>
12554
12555 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
12556
8458d4c1
KH
125572009-03-19 Kenichi Handa <handa@m17n.org>
12558
12559 * charset.c (load_charset_map_from_file): When a mapfile can't be
12560 loaded, signal an error.
12561
78e7d1fe
EZ
125622009-03-18 Eli Zaretskii <eliz@gnu.org>
12563
12564 * dired.c (Ffile_attributes): Make sure UID and GID are always
12565 positive, even if the value is too large for a positive EMACS_INT.
12566 Doc fix.
12567
12568 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
12569
5da9fdfa
YM
125702009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12571
12572 * xmenu.c (xdialog_show): Move Fredisplay call ...
12573 (Fx_popup_dialog): ... here.
12574
7519c40d
SM
125752009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
12576
12577 * dired.c (file_name_completion): Disable the first optimization just
12578 installed, since it is not implemented correctly.
12579
2cd298e2
SM
125802009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
12581
12582 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 12583 only if the entry can affect bestmatch.
2cd298e2
SM
12584 Stop the search early, as Ftry_completion already does.
12585
48d37adf
CY
125862009-03-17 Chong Yidong <cyd@stupidchicken.com>
12587
e10c9c93 12588 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 12589
9286b16a
CY
125902009-03-15 Chong Yidong <cyd@stupidchicken.com>
12591
12592 * keyboard.c (parse_menu_item): Don't display remappings as menu
12593 equivalent bindings (Bug#788).
12594
f7b146dc
JR
125952009-03-15 Jason Rumney <jasonr@gnu.org>
12596
12597 * w32term.h (WM_EMACS_PAINT): New message.
12598 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
12599 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
12600 before passing to lisp thread. (Bug#950)
12601
f761d6b6 126022009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 12603
d93f9575
CY
12604 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
12605 variable as it was never reset.
12606 (ns_term_init): Remove initialization of Lisp-settable defaults
12607 and ns_expand_space.
12608 (-setPanelFromDefaultValues): Remove ns_expand_space.
12609 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
12610 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
12611 i.e. no additional spacing, similar to Carbon port.
12612
d93f9575
CY
12613 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
12614 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 12615
305018ec
JD
126162009-03-14 Jan Djärv <jan.h.d@swipnet.se>
12617
12618 * sound.c (alsa_configure): Remove call to deprecated
12619 snd_pcm_sw_params_set_xfer_align.
12620
f761d6b6 126212009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
12622
12623 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
12624 after clicking in a detached tool bar.
12625 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
12626
46e722a9
SM
126272009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
12628
348db3dd
SM
12629 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
12630 int/Lisp_Object mixup).
46e722a9 12631
a3d16f39
KH
126322009-03-13 Kenichi Handa <handa@m17n.org>
12633
12634 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 12635 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
12636 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
12637 (set_fontset_font): Change ARG to a vector. Handle range_list in
12638 ARG correctly.
12639 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 12640 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
12641 the above change.
12642 (fontset_from_font): Fix previous change.
fe24f56a 12643 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
12644 entry. If FONTSET is the default fontset, don't set the extra
12645 slot of the returning char-table.
12646
b066e6b6
JB
126472009-03-12 Juanma Barranquero <lekktu@gmail.com>
12648
12649 * nsfns.m (Fx_close_connection): Doc fix.
12650 (Fns_do_applescript): Reflow docstring.
12651 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
12652 (Fx_display_pixel_width, Fx_display_pixel_height)
12653 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
12654 Fix typos in docstrings.
12655 (Fns_set_alpha): Fix typos in error messages.
12656
d472514e 126572009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 12658
d472514e 12659 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
12660 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
12661 were used for such events.
12662
d472514e
JB
12663 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
12664 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 12665
d472514e 12666 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
12667 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
12668
fb930676
KH
126692009-03-11 Kenichi Handa <handa@m17n.org>
12670
ff85581a
KH
12671 * font.h (font_open_by_spec): Extern it.
12672
c50b7e98
KH
12673 * font.c (font_open_by_spec): New function.
12674 (font_open_by_name): Use font_open_by_spec.
12675
fb930676
KH
12676 * frame.c (x_set_font): When ARG is a font-object, don't alter the
12677 fontset of the frame.
12678
12679 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
12680 modify the default font of frames that use this fontset.
12681 (num_auto_fontsets): New variable.
12682 (fontset_from_font): Use num_auto_fontsets to decide a fontset
12683 name. Be sure to set FONTSET_ASCII to the correct font name.
12684 (update_auto_fontset_alist): New function.
12685
df4e8455
JB
126862009-03-11 Juanma Barranquero <lekktu@gmail.com>
12687
12688 * makefile.w32-in: Update dependencies.
12689
0a375797
AR
126902009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
12691
12692 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
12693
61313fa3
SM
126942009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
12695
12696 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
12697
b55103fb
CY
126982009-03-10 Chong Yidong <cyd@stupidchicken.com>
12699
12700 * lread.c (Feval_buffer): Doc fix.
12701
dde2559c
KH
127022009-03-09 Kenichi Handa <handa@m17n.org>
12703
12704 * charset.c (Qfile_name_handler_alist): Extern it.
12705 (load_charset_map_from_file): Temporarily bind
12706 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
12707
df4e8455 127082009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 12709
47f588bb
GM
12710 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
12711 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 12712
4ddf94bd
AR
127132009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
12714
4c9bdfc2
AR
12715 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
12716 (x_set_window_size): Change back to calculated method of setting
12717 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
12718 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
12719 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
12720
fe41ae9e
AR
12721 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
12722
4c9bdfc2
AR
12723 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
12724 accelerator in parens under GNUstep.
12725
825d0875
KH
127262009-03-06 Kenichi Handa <handa@m17n.org>
12727
12728 These changes are to detect incorrect composition sequence without
f3b3be74 12729 looking ahead the source. (Bug#2370)
825d0875
KH
12730
12731 * coding.h: Include "composite.h".
12732 (enum compisition_state): New enum.
12733 (struct compisition_status): New struct.
12734 (struct iso_2022_spec): New member cmp_status.
12735 (struct emacs_mule_spec): New struct.
12736 (struct coding_system): New members ctext_extended_segment_len and
12737 embedded_utf_8. Change the union member
12738 spec.emacs_mule_full_support to spec.emacs_mule.
12739
12740 * coding.c (CODING_ISO_CMP_STATUS): New macro.
12741 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 12742 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
12743 (ADD_COMPOSITION_DATA): New arg nbytes.
12744 (emacs_mule_char): New arg cmp_status.
12745 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
12746 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
12747 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
12748 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
12749 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
12750 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
12751 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
12752 (EMACS_MULE_COMPOSITION_END): New macro.
12753 (emacs_mule_finish_composition): New function.
12754 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
12755 (decode_coding_emacs_mule): Avoid long looking ahead while
12756 handling composition.
12757 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
12758 (ENCODE_COMPOSITION_RULE): New macro.
12759 (finish_composition): New function.
12760 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
12761 (DECODE_COMPOSITION_START): New implementation.
12762 (DECODE_COMPOSITION_END): Likewise.
12763 (STORE_COMPOSITION_RULE): New macro.
12764 (decode_coding_iso_2022): Avoid long looking ahead while handling
12765 composition, CTEXT extended segment, and embedded UTF-8.
12766 (setup_coding_system): For a coding of type iso-2022, reset
12767 CODING_ISO_EXTSEGMENT_LEN (coding) and
12768 CODING_ISO_EMBEDDED_UTF_8 (coding).
12769 (get_translation): Delete arguments last_block, from_nchars,
12770 to_nchars. Callers changed.
12771 (produce_chars): Don't modify charbuf. Adjusted for the change of
12772 get_translation.
98a326f7 12773 (produce_composition): Adjust for the new annotation sequence.
825d0875 12774 (handle_composition_annotation): Likewise.
98a326f7 12775 (consume_chars): Adjust for the change of get_translation.
825d0875 12776
ccbc4452
AR
127772009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
12778
4ddf94bd 12779 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 12780
988a7ddb
KH
127812009-03-05 Kenichi Handa <handa@m17n.org>
12782
12783 * font.c (font_select_entity): New function.
12784 (font_find_for_lface): Use font_select_entity to select a font.
12785
12786 * fontset.c (fontset_find_font): If a font found without
a8a3728b 12787 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
12788 font with C restriction.
12789
98a326f7 127902009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 12791
be1bce46 12792 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 12793
10ea2b82
JR
127942009-03-04 Jason Rumney <jasonr@gnu.org>
12795
2c93b248 12796 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 12797 characters that have already been read. (Bug#2569)
2c93b248 12798
10ea2b82
JR
12799 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
12800 Log an error message if check_image_size failed.
12801 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 12802 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 12803
71a0c011
EZ
128042009-03-02 Eli Zaretskii <eliz@gnu.org>
12805
12806 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
12807 when decoding process output.
12808
2f63bba8
RS
128092009-03-01 Richard M Stallman <rms@gnu.org>
12810
12811 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
12812
12813 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
12814
0a9564cb
EZ
128152009-02-28 Eli Zaretskii <eliz@gnu.org>
12816
12817 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
12818 (decode_coding_emacs_mule, decode_coding_iso_2022)
12819 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
12820 (decode_coding_raw_text, decode_coding_charset)
12821 (setup_coding_system, decode_eol, decode_coding, consume_chars):
12822 Honor inhibit-eol-conversion. (Bug #2186)
12823
449148b3
JR
128242009-02-28 Jason Rumney <jasonr@gnu.org>
12825
12826 * coding.c (detect_coding_charset): If not checking latin extra,
12827 fail on characters between 0x80 and 0xA0. (Bug#2354)
12828
a4aee864
EZ
128292009-02-28 Eli Zaretskii <eliz@gnu.org>
12830
12831 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 12832 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 12833
d88bee5a
GM
128342009-02-27 Glenn Morris <rgm@gnu.org>
12835
12836 * callint.c (Finteractive): Doc fix.
12837
a808f22d
KH
128382009-02-27 Kenichi Handa <handa@m17n.org>
12839
12840 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
12841
caf8d60c
CY
128422009-02-27 Chong Yidong <cyd@stupidchicken.com>
12843
12844 * font.c (font_style_to_value): Set value for unknown symbols to
12845 100 instead of 255.
b61137ea
CY
12846 (weight_table, slant_table, width_table): Treat "unspecified" as
12847 the default value.
caf8d60c 12848
1a0de25c
JB
128492009-02-26 Juanma Barranquero <lekktu@gmail.com>
12850
12851 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
12852
8fc45744
JB
128532009-02-25 Juanma Barranquero <lekktu@gmail.com>
12854
107bd7d1
JB
12855 * lread.c (Fload): Stop checking Vloads_in_progress and signal
12856 error as soon as a recursive load is detected.
8fc45744 12857
f097e223
AR
128582009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
12859
12860 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
12861 before caching.
12862
8810a12f
KH
128632009-02-24 Kenichi Handa <handa@m17n.org>
12864
12865 * fontset.c (fontset_find_font): Fix the condition for checking
12866 unavailable font.
12867
2c7d1565
GM
128682009-02-24 Glenn Morris <rgm@gnu.org>
12869
12870 * xfaces.c (Finternal_set_font_selection_order): Remove leading
12871 whitespace that confuses documentation.
12872
a20878b6
MB
128732009-02-23 Miles Bader <miles@gnu.org>
12874
12875 * process.c (Flist_system_processes, Fprocess_attributes)
12876 (syms_of_process): Rename `system-process-attributes' to
12877 `process-attributes'.
12878
b3b58c01
AS
128792009-02-22 Andreas Schwab <schwab@linux-m68k.org>
12880
1b3b981b
AS
12881 * coding.h (struct coding_system): Make safe_charsets a pointer to
12882 unsigned char.
12883 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
12884 being 255.
12885 (SAFE_CHARSET_P): Likewise.
12886 (setup_iso_safe_charsets): Properly setup safe_charsets.
12887 (Fdefine_coding_system_internal): Likewise.
12888 (setup_coding_system): Likewise. Remove unneeded casts.
12889 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
bba3e508
SM
12890 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS.
12891 Remove unneeded casts.
1b3b981b 12892
b3b58c01
AS
12893 * insdel.c (del_range_2): Don't modify gap contents when called
12894 from decode_coding_object. (Bug#1809)
12895
0b6f228c
CY
128962009-02-21 Chong Yidong <cyd@stupidchicken.com>
12897
12898 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
12899 Qfont_object.
12900 (Ftype_of): Recognize font objects.
12901
12902 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
12903
bba3e508
SM
12904 * font.c (Qfont_spec, Qfont_entity, Qfont_object):
12905 Definitions moved to data.c.
0b6f228c 12906
52f8870b
AR
129072009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
12908
12909 * nsterm.m (x_make_frame_invisible): Unset async_visible,
12910 async_iconified. Based on a patch by Christian Lynbech
12911 <christian.lynbech@tieto.com>.
12912 (EmacsView-windowDidMiniaturize:): Unset async_visible.
12913
7087d5e9
GM
129142009-02-20 Glenn Morris <rgm@gnu.org>
12915
12916 * syntax.c (Fskip_chars_forward): Fix doc typo.
12917
41d2ceef
CY
129182009-02-20 Chong Yidong <cyd@stupidchicken.com>
12919
12920 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
12921
1a3b7ca6
CY
129222009-02-19 Chong Yidong <cyd@stupidchicken.com>
12923
12924 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
12925
73cce38d
KH
129262009-02-19 Kenichi Handa <handa@m17n.org>
12927
12928 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 12929 Don't overflow coding->carryover. (Bug#2370)
73cce38d 12930
a51092ee
DN
129312009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
12932
12933 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
12934
c423ecca
KH
129352009-02-18 Kenichi Handa <handa@m17n.org>
12936
12937 * font.c (font_check_otf_features): Fix handling of `nil' element.
12938 (Ffont_spec): Describe :lang and :otf in the docstring.
12939
4c1958f4
AS
129402009-02-16 Andreas Schwab <schwab@suse.de>
12941
12942 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
12943 string.
12944
5704f39a
KH
129452009-02-16 Kenichi Handa <handa@m17n.org>
12946
12947 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 12948 (Bug#1723)
5704f39a 12949
8f0085aa
CY
129502009-02-14 Chong Yidong <cyd@stupidchicken.com>
12951
a057d86a 12952 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
12953
12954 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
12955 (handle_line_prefix): Suppress wrapping of wrap prefixes.
12956
aff01dd9
EZ
129572009-02-14 Eli Zaretskii <eliz@gnu.org>
12958
12959 * msdos.c (MAX_SCREEN_BUF): New macro.
12960 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
12961 Encode the entire run of glyphs sharing the same face, instead of
12962 doing that one glyph at a time (fixes a bug with displaying
12963 double-size characters).
12964
ba301db3
AR
129652009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
12966
12967 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
12968
12969 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
12970 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 12971 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
12972
12973 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 12974 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 12975
51d861de
SM
129762009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
12977
ac146f82 12978 * keyboard.c (adjust_point_for_property): Allow stopping between two
51d861de
SM
12979 invisible areas.
12980
7fed8996
JR
129812009-02-12 Jason Rumney <jasonr@gnu.org>
12982
631ea4fb
JR
12983 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
12984 (add_font_entity_to_list): Call check_face_name even when family
12985 is unspecified.
12986
cb4a3e42
JR
12987 * w32term.c (x_display_pixel_height, x_display_pixel_width):
12988 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 12989 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 12990
7fed8996 12991 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 12992 raster fonts. (Bug#2219)
7fed8996 12993
895416e3
KH
129942009-02-12 Kenichi Handa <handa@m17n.org>
12995
12996 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
12997 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
12998 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 12999 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
13000 (find_automatic_composition): While looking forward and backward,
13001 check static composition. Fix where to stop looking forward.
13002 (composition_adjust_point): Fix checking of static composition.
13003 (Fcomposition_get_gstring): Pay attention to
1dacf998 13004 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
13005
13006 * lisp.h (fast_looking_at): Extern it.
13007
13008 * search.c (fast_looking_at): New function.
13009
51d861de 13010 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
13011 <struct glyph>.u.cmp.to.
13012 (append_composite_glyph): Likewise.
13013
51d861de 13014 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
13015 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
13016 composition.
51d861de 13017 (append_composite_glyph): Adjust for the change of
895416e3
KH
13018 <strcut glyph>.u.cmp.to.
13019
8510724d
JB
130202009-02-11 Juanma Barranquero <lekktu@gmail.com>
13021
13022 * casetab.c (init_casetab_once):
13023 * coding.c (ALLOC_CONVERSION_WORK_AREA):
13024 * font.c (font_update_lface):
13025 * fontset.c (Fnew_fontset):
13026 * ftfont.c (ftfont_drive_otf):
13027 * xfont.c (xfont_open):
13028 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
13029
294fa707
SM
130302009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
13031
13032 * fileio.c (Fwrite_region): !NILP -> CONSP.
13033
b5bfebec
AS
130342009-02-10 Andreas Schwab <schwab@suse.de>
13035
13036 * process.c (send_process): Properly relocate pointer into data
adab88bd 13037 when using encoded data. (Bug#2272)
b5bfebec 13038
cb84a2be
KH
130392009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
13040
13041 * coding.c (detect_coding_charset): Fix previous change.
13042
89e09428
JR
130432009-02-08 Jason Rumney <jasonr@gnu.org>
13044
13045 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 13046 disappeared while hourglass was displayed. (Bug #2193)
89e09428 13047
4470a277
AS
130482009-02-07 Andreas Schwab <schwab@suse.de>
13049
13050 * unexelf.c (unexec): Fix error message.
13051
3175b12a
AR
130522009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
13053
13054 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 13055 when modal window is active. (Bug #2152)
3175b12a
AR
13056 (applicationShouldTerminate:): Remove now-unneeded while loop
13057 around NSRunAlertPanel.
13058
13059 * nsmenu.m (popupSession): New file-global variable.
13060 (pop_down_menu): End the popupSession before closing dialog.
13061 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
13062 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
13063 don't query NSApp for events (just sleep instead).
13064
8434d0b8
EZ
130652009-02-07 Eli Zaretskii <eliz@gnu.org>
13066
51d861de
SM
13067 * coding.c (syms_of_coding) <translation-table-for-input>:
13068 Modify doc string to discourage use for character code unification.
8434d0b8 13069
aa82edfd
CY
130702009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13071
13072 * atimer.c (run_timers): Update pending_atimers.
13073
2d283c7c
CY
130742009-02-06 Chong Yidong <cyd@stupidchicken.com>
13075
eb306cab
CY
13076 * image.c (svg_load_image): Fix last change.
13077
2d283c7c
CY
13078 * xfns.c (Fx_create_frame): Signal an error if no font is
13079 found (Bug#2147).
13080
4d8e170e
JB
130812009-02-05 Juanma Barranquero <lekktu@gmail.com>
13082
13083 * character.c (syms_of_character) <script-representative-chars>:
13084 Fix typo in docstring.
13085
c96169a0
AR
130862009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
13087
13088 * nsmenu.m (pop_down_menu): New function.
13089 (ns_popup_dialog): Call it on unwind.
13090 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
13091 call timer_check() (Bug#2154).
13092 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
13093 handling_signal is set.
13094 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
13095
31fd7c5c 13096 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
13097
13098 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
13099
13100 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
13101
51d861de
SM
13102 * keyboard.c (poll_for_input_1, handle_async_input):
13103 Set handling_signal under HAVE_NS.
c96169a0 13104
aacd8ba1
GM
131052009-02-04 Glenn Morris <rgm@gnu.org>
13106
13107 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
13108
4cb75c4b
KH
131092009-02-04 Kenichi Handa <handa@m17n.org>
13110
13111 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
13112
13113 * charset.c (Fchar_charset): New optional arg restriction.
13114
13115 * coding.h (coding_system_charset_list): Extern it.
13116
13117 * coding.c (coding_system_charset_list): New function.
13118
13119 * composite.c: Include coding.h and termhooks.h.
13120 (composition_gstring_p): Fix for the terminal case.
13121 (composition_gstring_width): Likewise.
13122 (fill_gstring_body): Likewise.
13123 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
13124 the frame.
13125 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
13126 is within a composition.
867d4bb3 13127 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
13128
13129 * term.c (encode_terminal_code): Fix handling of composition.
13130 (produce_composite_glyph): For static composition, get pixel_width
13131 from struct composition.
13132
826ba17e
AS
131332009-02-02 Andreas Schwab <schwab@suse.de>
13134
13135 * unexelf.c (unexec): Handle unaligned bss offset.
13136
8ad093db
AR
131372009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
13138
13139 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
13140 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 13141
8ad093db
AR
13142 * keyboard.c (handle_interrupt): Don't call
13143 quit_throw_to_read_char() under NS.
d0a76a6e 13144
8ad093db
AR
13145 * blockinput.h: Remove NS-specific code.
13146
4d18a7a2
DN
131472009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
13148
db878925
DN
13149 * dispnew.c (window_change_signal): Don't try to get the size of a
13150 suspended tty frame.
13151 * term.c (Fresume_tty): Resize if the size has changed while the
13152 tty was suspended.
13153
4d18a7a2
DN
13154 * alloc.c (mark_stack): Properly conditionalize previous change.
13155
8984df7c
JB
131562009-01-30 Juanma Barranquero <lekktu@gmail.com>
13157
13158 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
13159 * w32term.c (w32_read_socket) [SYNC_INPUT]:
13160 Remove; this code is not used on Windows.
13161
75f4f1ac
EZ
131622009-01-30 Eli Zaretskii <eliz@gnu.org>
13163
13164 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
13165 EOLs that also has stray ^M characters.
13166
07a1e794
JB
131672009-01-30 Juanma Barranquero <lekktu@gmail.com>
13168
13169 * atimer.c (run_timers, alarm_signal_handler):
13170 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
13171 * w32inevt.c (w32_console_read_socket):
13172 * w32term.c (w32_read_socket):
13173 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
13174
a8b11cc9
CY
131752009-01-30 Chong Yidong <cyd@stupidchicken.com>
13176
13177 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
13178 Initialize it as a relative filename pattern.
13179 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
13180 (Fcall_process_region): Simplify temp file creation using
13181 temporary-file-directory.
13182
c279587b
EZ
131832009-01-29 Eli Zaretskii <eliz@gnu.org>
13184
13185 * msdos.c: Rename pending_signals to msdos_pending_signals.
13186 (sig_suspender, sigprocmask): Adjust.
13187
a8fe3242
CY
131882009-01-29 Chong Yidong <cyd@stupidchicken.com>
13189
13190 * keyboard.c (pending_signals): New var.
13191 (poll_for_input, input_available_signal, init_keyboard): Set it.
13192 (process_pending_signals): New function.
13193
13194 * lisp.h (QUIT): Check pending_signals instead of
13195 interrupt_input_pending. Use process_pending_signals.
13196
51d861de 13197 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 13198
51d861de 13199 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
13200
13201 * sysdep.c (emacs_write): Use process_pending_signals.
13202
13203 * xterm.c (XTread_socket): Update pending_signals.
13204
13205 * w32term.c (w32_read_socket): Update pending_signals.
13206
13207 * w32inevt.c (w32_console_read_socket): Update pending_signals.
13208
6570a1c4
KH
132092009-01-29 Kenichi Handa <handa@m17n.org>
13210
13211 * xftfont.c (xftfont_has_char): New function.
13212 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
13213
d72a4afa
AR
132142009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
13215
13216 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
13217 under GNUstep.
13218 (ns_query_color): New declaration.
13219
13220 * nsterm.m (ns_confirm_quit): New variable.
13221 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
13222 (EmacsApp-applicationShouldTerminate:): Use it.
13223 (EmacsPrefsController): Let user set it.
13224 (ns_query_color): New function.
13225 (ns_defined_color): Use it.
13226 (ns_initialize): Drop.
13227 (ns_term_init): Add two lines from ns_initialize(), and set
13228 input_interrupt_mode to nil.
13229
13230 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 13231 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 13232
9fe78804
KH
132332009-01-28 Kenichi Handa <handa@m17n.org>
13234
13235 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
13236 (fontset_get_font_group): Remember that no font-group is specified
13237 for C.
9fe78804 13238
fa57de36
CY
132392009-01-27 Chong Yidong <cyd@stupidchicken.com>
13240
930600e9
CY
13241 * fns.c (concat): Check for string overflow (bug#1787).
13242
fa57de36
CY
13243 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
13244 Quadruple undo limits (bug#1501).
13245
7179ce7b
KH
132462009-01-27 Kenichi Handa <handa@m17n.org>
13247
13248 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
13249 directly use GT_Get_Char_index.
13250
13251 * xftfont.c (struct xftfont_info): New member `index'.
13252
13253 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 13254 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 13255
5be8fcc0
CY
132562009-01-26 Kenichi Handa <handa@m17n.org>
13257
13258 * fontset.c (fontset_find_font): Fix handling of non-cons return
13259 value of fontset_get_font_group.
13260 (fontset_font): Revert last change.
13261
19ae3e61
JR
132622009-01-26 Jason Rumney <jasonr@gnu.org>
13263
13264 * w32font.c (w32font_list_internal): Return quickly if registry is
13265 unknown. Simplify final return.
13266 (add_font_entity_to_list): Break complex logic down into more
13267 manageable chunks. Move unknown registry check to
13268 w32font_list_internal.
13269
8612b71a
AR
132702009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
13271
13272 Changes to remove Feval calls from GUI under NS.
13273
d8038940
JB
13274 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
13275 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
13276 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
13277
13278 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
13279 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
13280 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
13281 instead of NON_ASCII_KEYSTROKE_EVENT.
13282 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
13283 (EmacsApp-applicationShouldTerminate:): Query user.
13284 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
13285 instead of Feval.
13286
13287 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
13288
13289 * keyboard.c (kbd_buffer_get_event): Check for it.
13290 (keys_of_keyboard): Define lispy keys for
13291 ns-put/unput-working-text.
13292
13293 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
13294 versions.
13295 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
13296
6288ae55
CY
132972009-01-25 Chong Yidong <cyd@stupidchicken.com>
13298
13299 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 13300 setting current_buffer directly. (Bug#2044)
6288ae55 13301
289e7f8f
CY
133022009-01-24 Chong Yidong <cyd@stupidchicken.com>
13303
5ce87308 13304 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 13305 any work. (Bug#1952, bug#1990).
5ce87308 13306
64cc3cf6 13307 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 13308
b3243e6f
AR
133092009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
13310
13311 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
13312 (ns_no_defaults): New declaration.
13313 (main): Use it.
e0d2e69a 13314
d900b2af 13315 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 13316
d900b2af 13317 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 13318
d900b2af
AR
13319 * nsterm.m (ns_no_defaults): New variable.
13320 (ns_initialize): Don't read defaults when ns_no_defaults.
13321 (EmacsView-readSelectionFromPasteboard:)
13322 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 13323 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
13324 (ns_dumpglyphs_stretch): New function.
13325 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 13326 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 13327
e0d2e69a
AR
13328 * nsimage.m (setPixmapData:): Set to ignore image DPI.
13329
3ac71f5d
CY
133302009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
13331
13332 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
13333 call for Sparc64.
13334
3fe53a83
AR
133352009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
13336
13337 * nsfns.m:
13338 * nsgui.h:
13339 * nsmenu.m:
13340 * nsselect.m:
13341 * nsterm.h:
13342 * nsterm.m: Remove '23' comments that indicated code added during
13343 update from emacs-20 -> emacs-23.
13344
10f87c6f 133452009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
13346
13347 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 13348 ns_alternate_modifier. (Bug#1217)
a3b53a85 13349
c7cef62d
AR
13350 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
13351 Display all shortcuts, including those w/o super modifier.
13352
575fb8bd
AR
13353 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
13354
918b848b
CY
133552009-01-22 Chong Yidong <cyd@stupidchicken.com>
13356
13357 * fileio.c (Vwrite_region_post_annotation_function)
13358 (Vwrite_region_annotation_buffers): New vars.
13359 (build_annotations_unwind): Just reset
13360 Vwrite_region_annotation_buffers.
13361 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
13362 Call write-region-post-annotation-function.
13363 (build_annotations): Add to Vwrite_region_annotation_buffers if
13364 buffer changes.
13365
a39e2539
AR
133662009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
13367
13368 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
13369 Tiger.
51d861de
SM
13370 * nsfns.m (ns_do_applescript):
13371 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 13372
35ed44db
AR
133732009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
13374
13375 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
13376
cbe0b5bf
AR
133772009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
13378
13379 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 13380
6049d3a0
AR
13381 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
13382
13383 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
13384 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
13385 handle Ctrl-tab. (Bug#1841)
13386 (ns_get_color): Use unsigned long long for scanned hex string value.
13387 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 13388 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 13389 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 13390 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 13391 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 13392 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 13393 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 13394
d3810c21 13395 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 13396 DPI. (Bug#1316)
d3810c21
AR
13397 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
13398 values in onTiger section.
4c7077c3 13399
e301e634
CY
134002009-01-19 Chong Yidong <cyd@stupidchicken.com>
13401
7f82490b
CY
13402 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
13403 Check return value of font_spec_from_name.
64cc3cf6 13404 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
13405
13406 * font.c (font_spec_from_name): Return Qnil if font name could not
13407 be parsed.
13408 (font_parse_name): Treat a `?' character as part of an XLFD.
13409
e301e634
CY
13410 * fns.c (Fsubstring): Doc fix.
13411
1c0db158
KH
134122009-01-19 Kenichi Handa <handa@m17n.org>
13413
51d861de 13414 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
13415 (ftfont_list): Likewise.
13416
acf20901
JB
134172009-01-18 Juanma Barranquero <lekktu@gmail.com>
13418
fff4e459
JB
13419 * dbusbind.c (Fdbus_register_signal):
13420 * process.c (conv_sockaddr_to_lisp):
13421 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
13422
acf20901
JB
13423 * callproc.c (Fgetenv_internal): Doc fix.
13424
e7abcdfb
CY
134252009-01-16 Chong Yidong <cyd@stupidchicken.com>
13426
13427 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
13428 it is not even used.
13429
b60861e6
GM
134302009-01-16 Glenn Morris <rgm@gnu.org>
13431
13432 * font.c (Ffont_variation_glyphs): Silence compiler.
13433
8db52afe
JB
134342009-01-15 Juanma Barranquero <lekktu@gmail.com>
13435
13436 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
13437 Reported by David Robinow <drobinow@gmail.com>.
13438
4cddb209
KH
134392009-01-15 Kenichi Handa <handa@m17n.org>
13440
51d861de 13441 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 13442
f247f67b
JR
134432009-01-14 Jason Rumney <jasonr@gnu.org>
13444
13445 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 13446 never a fontset. (Bug#1562)
f247f67b 13447
f56a4450
KH
134482009-01-14 Kenichi Handa <handa@m17n.org>
13449
13450 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 13451 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 13452
4e99855e
CY
134532009-01-13 Chong Yidong <cyd@stupidchicken.com>
13454
13455 * font.c (font_clear_prop): If clearing the family, clear the font
13456 width index too.
13457
fff4e459 13458 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 13459
24f01470
JB
134602009-01-12 Juanma Barranquero <lekktu@gmail.com>
13461
13462 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
13463 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
13464 functions, use sizeof.
13465
a41240a3
MR
134662009-01-12 Martin Rudalics <rudalics@gmx.at>
13467
13468 * keyboard.c (read_char): Fix case where last_nonmenu_event
13469 returned a bad value with submenus. (Bug#447)
13470
944636b8
CY
134712009-01-12 Chong Yidong <cyd@stupidchicken.com>
13472
13473 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
13474 family, clear the font width index too.
13475
0dad7c6f
JR
134762009-01-11 Jason Rumney <jasonr@gnu.org>
13477
13478 * keyboard.c (cmd_error_internal): Exit when errors occur before
13479 frame creation and not in daemon mode. (Bug#1836)
13480
7c2363af
CY
134812009-01-10 Chong Yidong <cyd@stupidchicken.com>
13482
13483 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
13484 of a display vector, backtrack.
13485 (try_window_reusing_current_matrix): Check glyph type before
13486 referencing charpos member.
13487
97b1b294
EZ
134882009-01-10 Eli Zaretskii <eliz@gnu.org>
13489
13490 Fix Bug #876:
13491
13492 * coding.c (inhibit_null_byte_detection): New variable.
13493 (detect_coding, detect_coding_system): Don't pay attention to null
13494 bytes if inhibit_null_byte_detection is non-zero.
51d861de 13495 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
13496 <inhibit-iso-escape-detection>: Doc fix.
13497
4624b6e3
JR
134982009-01-09 Jason Rumney <jasonr@gnu.org>
13499
13500 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 13501 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
13502 Only report Unicode Plane 2 fonts as unicode-sip.
13503
323b840c
CY
135042009-01-09 Chong Yidong <cyd@stupidchicken.com>
13505
51d861de
SM
13506 * xfaces.c (Fx_font_family_list): Delete function.
13507 Move compatibility version to faces.el.
323b840c 13508
51d861de 13509 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 13510
eba7400d
MR
135112009-01-09 Martin Rudalics <rudalics@gmx.at>
13512
13513 * frame.c (x_set_frame_parameters): Remember requested value for
13514 fullscreen before it's reset by the parameter handler.
13515
4b09796d
GM
135162009-01-09 Glenn Morris <rgm@gnu.org>
13517
13518 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 13519 (last_command_event): ... and update all users.
4b09796d
GM
13520 (last_input_char): For clarity, rename to...
13521 (last_input_event): ... and update all users.
13522 (last-command-char, last-input-char): Move to subr.el as aliases.
13523 * cmds.c, commands.h: Update for last_command_char rename.
13524
14ccea62
CY
135252009-01-08 Chong Yidong <cyd@stupidchicken.com>
13526
51d861de 13527 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 13528
5f004711
JR
135292009-01-08 Jason Rumney <jasonr@gnu.org>
13530
13531 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
13532 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
13533 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
13534 Don't declare.
fff4e459 13535 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
13536 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
13537
b71f6f73
KH
135382009-01-07 Kenichi Handa <handa@m17n.org>
13539
50b06221 13540 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 13541 remember the coding system used for decoding in
50b06221
KH
13542 coding_system (Bug#1039).
13543
b71f6f73 13544 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 13545 breaking the loop. (Bug#870)
b71f6f73
KH
13546 (decode_coding_utf_16, decode_coding_emacs_mule)
13547 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
13548 (decode_coding_charset): Likewise.
13549
56f668f7
MR
135502009-01-05 Martin Rudalics <rudalics@gmx.at>
13551
13552 * frame.c (x_set_frame_parameters): Make sure height (width) get
13553 applied when fullwidth (fullheight) is set. (Bug#1522)
13554
5da9424d
JB
135552009-01-04 Juanma Barranquero <lekktu@gmail.com>
13556
13557 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
13558 (utc_base): Declare as ULONGLONG, not long double.
13559 (convert_time_raw): Delete.
13560 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
13561 (initialize_utc_base): New function.
13562 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
13563 (convert_from_time_t): Use initialize_utc_base; compute result with
13564 64-bit arithmetic.
13565 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
13566
c4605e09
EZ
135672009-01-03 Eli Zaretskii <eliz@gnu.org>
13568
9acef61c 13569 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
13570 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
13571 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
13572 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
13573 [!subprocesses]: Define.
13574 (syms_of_process) [!subprocesses]: Intern and staticpro them.
13575 (Flist_system_processes, Fsystem_process_attributes)
13576 [!subprocesses]: Call list_system_processes and
13577 system_process_attributes instead of returning Qnil.
13578
9acef61c
JB
13579 * dosfns.c (system_process_attributes, list_system_processes):
13580 New functions.
c4605e09
EZ
13581
13582 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
13583
13584 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
13585 Don't use the default (no-op) implementation.
13586
8b7d0a16
JR
135872009-01-03 Jason Rumney <jasonr@gnu.org>
13588
a6d46bc1
JR
13589 * keyboard.c (parse_modifiers_uncached): Wheel events are
13590 clicks (bug#687).
13591
8b7d0a16
JR
13592 * w32term.c (x_query_colors, x_query_color): New functions.
13593
13594 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
13595 (svg_load_image): Cast returned pointers from dynamically loaded
13596 functions. Eliminate W32 specific code.
13597
bfe11752
DN
135982009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
13599
89e2438a
DN
13600 * nsfns.m (x_set_foreground_color, x_set_background_color)
13601 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
13602 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
13603 x_ prefix instead of ns_. Update references.
13604 (syms_of_nsfns): Add a FIXME comment.
13605
13606 * nsterm.m (x_set_cursor_type): New prototype.
13607 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
13608
bfe11752
DN
13609 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
13610 for Solaris instead of incorrectly providing Qutime and Qcutime.
13611
031da700
EZ
136122009-01-02 Eli Zaretskii <eliz@gnu.org>
13613
13614 * w32.c (process_times): Compute sum of utime and stime.
13615 (system_process_attributes): Add Qtime to the alist.
13616
13617 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
13618 and add them to the alist.
13619
13620 * process.c (top level) <Qtime, Qctime>: New variables.
13621 (syms_of_process): staticpro them.
13622 (Fsystem_process_attributes): Add their documentation to the doc
13623 string.
13624
13625 * process.h: Declare Qtime and Qctime.
13626
df23bf08
JR
136272009-01-02 Jason Rumney <jasonr@gnu.org>
13628
9acef61c 13629 * image.c (Qgobject): New symbol.
df23bf08
JR
13630 (syms_of_image): Initialize it.
13631 (init_svg_functions): Load some functions from gobject library.
13632
5bbdf7aa
DN
136332009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
13634
13635 * frame.c (make_terminal_frame): Remove redundant code and useless
13636 block.
13637
63136da6
AS
136382009-01-01 Andreas Schwab <schwab@suse.de>
13639
13640 * process.c (conv_sockaddr_to_lisp): Add workaround for
13641 getsockname bug on BSD.
13642
9ef69046
CY
136432009-01-01 Chong Yidong <cyd@stupidchicken.com>
13644
d6fafbe0
CY
13645 * xfns.c (x_create_tip_frame): Set border width of the X window.
13646
51d861de 13647 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 13648
f9c34147
JR
136492009-01-01 Jason Rumney <jasonr@gnu.org>
13650
9acef61c 13651 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
13652 Don't block input, as per earlier xterm.c changes.
13653
f5497e45
AR
136542008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
13655
13656 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
13657 (ns_appkit_version_int): New function.
13658 (x-server-version): Use ns_appkit_version_int and follow 21+
13659 convention of returning 3 integers.
13660
c19cab20
KH
136612008-12-30 Kenichi Handa <handa@m17n.org>
13662
13663 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
13664 (CHAR_SURROGATE_PAIR_P): New macro.
13665
13666 * font.h (struct font_driver): New member get_variation_glyphs.
13667
9acef61c 13668 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
13669 (Ffont_variation_glyphs): New function.
13670 (syms_of_font): Defsubr it.
13671
13672 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
13673 ftfont_variation_glyphs.
13674 (setup_otf_gstring): New function.
13675 (ftfont_drive_otf): Use it.
13676 (ftfont_shape_by_flt): Handle variation selector.
13677 (ftfont_variation_glyphs): New function.
13678
28cd591f
MR
136792008-12-30 Martin Rudalics <rudalics@gmx.at>
13680
13681 * frame.c (Vemacs_iconified): Remove.
13682
7f714baf
JR
136832008-12-30 Jason Rumney <jasonr@gnu.org>
13684
13685 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 13686 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 13687
9d2d22ab
CY
136882008-12-30 Chong Yidong <cyd@stupidchicken.com>
13689
13690 * indent.c (Fvertical_motion): Don't advance iterator if we have
13691 reseated to the desired position.
13692
13693 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
13694 checking for pos match.
13695
545312c2
KH
136962008-12-30 Kenichi Handa <handa@m17n.org>
13697
1ede3eb6
KH
13698 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
13699 just get the low 8-bit of the code.
13700
545312c2
KH
13701 * font.c (font_intern_prop): Validate str as multibyte.
13702
bd7bbf29
DN
137032008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
13704
31e0750e
DN
13705 * dispextern.h (struct face): Move lface and hash from the middle
13706 of bitfields.
13707
bd7bbf29
DN
13708 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
13709
b5672e7c
DN
137102008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
13711
13712 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
13713 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
13714 instead of intervals.h.
13715
d704470f
AS
137162008-12-26 Andreas Schwab <schwab@suse.de>
13717
13718 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
13719 cons.
13720
54b33868
MR
137212008-12-26 Martin Rudalics <rudalics@gmx.at>
13722
13723 * textprop.c (Qminibuffer_prompt): New variable.
13724 (syms_of_textprop): Initialize it.
13725 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
13726 in minibuffer-prompt face. (Bug#1662)
13727
40b615d6
JR
137282008-12-25 Jason Rumney <jasonr@gnu.org>
13729
13730 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
13731
baae5c2d
JR
137322008-12-24 Jason Rumney <jasonr@gnu.org>
13733
13734 * ralloc.c (r_alloc_reset_variable): New function.
13735
13736 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 13737 record of what points where. (Bug#716)
baae5c2d 13738
a9051c88
DN
137392008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
13740
13741 * minibuf.c (read_minibuf): Follow the non-interactive case when
13742 running as a daemon, before detaching.
13743
8b146312
AS
137442008-12-22 Andreas Schwab <schwab@suse.de>
13745
13746 * buffer.c (init_buffer): Use realloc instead of xrealloc.
13747 * gtkutil.c (free_widget_value): Use xfree instead of free.
13748
56f2de10
MR
137492008-12-22 Martin Rudalics <rudalics@gmx.at>
13750
13751 * frame.c (delete_frame): New function derived from
13752 Fdelete_frame to handle Qnoelisp value for FORCE argument.
13753 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
13754 (Fdelete_frame): Call delete_frame. Remove line from doc-string
13755 saying that FORCE non-nil doesn't run `delete-frame-functions'.
13756 * frame.h: Extern delete_frame.
13757 * window.c (window_loop):
13758 * terminal.c (delete_terminal):
13759 * xterm.c (x_connection_closed):
13760 * xfns.c (Fx_hide_tip):
9acef61c 13761 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 13762
1fc200d6
JR
137632008-12-21 Jason Rumney <jasonr@gnu.org>
13764
13765 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
13766 when character maps to .notdef character.
13767
5e252df2
SM
137682008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
13769
13770 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
13771
99b72cc4
JR
137722008-12-20 Jason Rumney <jasonr@gnu.org>
13773
13774 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 13775 a graphical frame on Windows. (Bug#1325)
99b72cc4 13776
acc49a52
JD
137772008-12-20 Jan Djärv <jan.h.d@swipnet.se>
13778
13779 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
13780
6ea15123
CY
137812008-12-20 Chong Yidong <cyd@stupidchicken.com>
13782
13783 * minibuf.c (Fread_buffer): Doc fix.
13784
b2dab6c8
JR
137852008-12-20 Jason Rumney <jasonr@gnu.org>
13786
54ea0c87 13787 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 13788 server name in UNC paths. (Bug#719)
54ea0c87 13789
b2dab6c8 13790 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 13791 charbuf. (Bug#1035)
b2dab6c8 13792
6d1921be
DN
137932008-12-19 Daniel Engeler <engeler@gmail.com>
13794
13795 * sysdep.c (serial_configure): Fix typo.
13796
53934c98
DN
137972008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
13798
13799 * sysdep.c: Include alloca.h.
f4f634e8
DN
13800 (system_process_attributes): Add implementation for Solaris.
13801
13802 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 13803
06e111a6
DN
138042008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
13805
13806 Reorganize implementation of Flist_system_processes and
13807 Fsystem_process_attributes. No functional changes.
13808 * process.c: Don't #include pwd.h, grp.h and limits.h.
13809 (Flist_system_processes): Just call list_system_processes.
13810 (Fsystem_process_attributes): Just call system_process_attributes.
13811 (procfs_list_system_processes, time_from_jiffies)
13812 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
13813 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
13814
13815 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
13816 (list_system_processes): Rename from
13817 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
13818 Provide a do nothing implementation.
13819 (system_process_attributes): Rename from
13820 procfs_list_system_processes.
13821 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 13822 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
13823
13824 * w32.c (list_system_processes): Rename from
13825 w32_list_system_processes.
13826 (system_process_attributes): Rename from
13827 w32_system_process_attributes.
13828
13829 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
13830
13831 * process.h (w32_list_system_processes)
13832 (w32_system_process_attributes): Remove.
362654a6
JB
13833 (list_system_processes, system_process_attributes):
13834 New prototypes.
06e111a6 13835
6a705b23
KH
138362008-12-19 Kenichi Handa <handa@m17n.org>
13837
13838 * xfont.c (xfont_decode_coding_xlfd): New function.
13839 (xfont_encode_coding_xlfd): New function.
13840 (xfont_list_pattern): Decode XLFD by iso-8859-1.
13841 (xfont_list): Decode and encode XLFD by iso-8859-1.
13842 (xfont_match): Likewise.
13843 (xfont_list_family): Likewise.
13844 (xfont_open): Likewise.
13845
d66c0241 13846 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
13847 names are utf-8.
13848
d66c0241 13849 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
13850 names are utf-8.
13851
5a130941
JD
138522008-12-18 Jan Djärv <jan.h.d@swipnet.se>
13853
13854 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
13855 changed.
bfd20325
JD
13856 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
13857 clicked on a detached tool bar button.
5a130941 13858
fd95644b
DN
138592008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
13860
13861 * emacs.c (main): Print and error and exit when no data is read
13862 from the pipe.
13863
e6eee6ae
JR
138642008-12-17 Jason Rumney <jasonr@gnu.org>
13865
13866 * w32font.c (w32font_has_char): Always return -1.
13867
a35dd56b
KH
138682008-12-16 Kenichi Handa <handa@m17n.org>
13869
13870 * font.c (font_open_entity): Fix previous change.
13871
0e3635c2
DN
138722008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
13873
13874 * process.c: Include <limits.h>.
13875
d4835507 138762008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
13877
13878 * font.c (font_update_drivers): Fix mistake in reconstructing the
13879 driver list.
13880
138812008-12-16 Chong Yidong <cyd@stupidchicken.com>
13882
13883 * font.c (font_clear_cache): Fix format of font cache data.
13884
e2cbc401
CY
138852008-12-15 Chong Yidong <cyd@stupidchicken.com>
13886
13887 * xftfont.c (xftfont_open): Free Xft font pattern if
13888 XftFontOpenPattern fails.
13889
13890 * xterm.c (x_free_frame_resources): Remove extraneous call to
13891 free_frame_faces.
13892
b131d535
CY
138932008-12-13 Chong Yidong <cyd@stupidchicken.com>
13894
13895 * xterm.c (x_delete_display): Move xim_close_dpy call to
13896 x_delete_terminal.
13897 (x_delete_terminal): Call xim_close_dpy.
13898
e6df5336
JR
138992008-12-13 Jason Rumney <jasonr@gnu.org>
13900
13901 * w32font.c (intern_font_name): New function.
13902 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
13903 (w32font_open_internal, Fx_select_font): Decode font name.
13904 (fill_in_logfont, list_all_matching_fonts): Encode font name.
13905
13906 * w32font.h (intern_font_name): Declare new function.
13907
13908 * w32uniscribe.c (add_opentype_font_name_to_list):
13909 Use intern_font_name.
13910
20d68145
CY
139112008-12-13 Chong Yidong <cyd@stupidchicken.com>
13912
9f2554de
CY
13913 * frame.c (Fdelete_frame): Call free_font_driver_list.
13914
3d9bec9a
CY
13915 * font.c (free_font_driver_list): Implement missing function.
13916
20d68145
CY
13917 * w32term.c (w32_term_init): Don't initialize the image cache
13918 here; it will be done in init_frame_faces.
13919
13920 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
bba3e508
SM
13921 (struct x_display_info): Remove unused member null_pixel.
13922 New member xim_callback_data.
20d68145
CY
13923
13924 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
13925 (xim_initialize): Save pointer to callback function data.
13926 (xim_close_dpy): Free callback function data. Call XCloseIM,
13927 reverting 2008-11-04 change by David Smith.
13928 (x_term_init): Don't initialize the image cache here; it will be
13929 done in init_frame_faces. Remove ancient "null_pixel" cruft.
13930 (x_delete_display): Free x_dnd_atoms member.
13931
96f9306b
KH
139322008-12-13 Kenichi Handa <handa@m17n.org>
13933
ef1b0ba7 13934 * font.c (font_rescale_ratio): Move from xfaces.c.
6dec9044 13935 Argument type changed. Handle a font-spec too.
96f9306b 13936 (font_score): Check Vface_font_rescale_alist.
6dec9044 13937 (font_open_entity): Likewise. (Bug#1547)
96f9306b 13938
ef1b0ba7 13939 * xfaces.c (font_rescale_ratio): Move to font.c.
96f9306b 13940
8d5b4964
CY
139412008-12-13 Chong Yidong <cyd@stupidchicken.com>
13942
13943 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
13944
e6df5336
JR
139452008-12-12 Jason Rumney <jasonr@gnu.org>
13946
bba3e508
SM
13947 * w32fns.c (x_display_info_for_name, Fx_open_connection):
13948 Set Vwindow_system_version to the real w32 major version.
e6df5336 13949
97c6058a
DN
139502008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
13951
13952 * term.c (init_tty): Move setting the terminal name before the
13953 potential user: maybe_fatal.
13954
ec4e88d7
CY
139552008-12-11 Chong Yidong <cyd@stupidchicken.com>
13956
ef1b0ba7 13957 * term.c (tty_free_frame_resources): Rename from delete_tty_output;
d4835507 13958 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 13959
b4233ec9
JR
139602008-12-11 Jason Rumney <jasonr@gnu.org>
13961
8ec71e23 13962 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 13963 SYMBOL_CHARSET. (Bug#547)
8ec71e23 13964
b4233ec9 13965 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 13966 size for surrogates. (Bug#1096, bug#872)
b4233ec9 13967
011a0143
JB
139682008-12-11 Juanma Barranquero <lekktu@gmail.com>
13969
13970 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
13971
3c309f34
JB
139722008-12-11 Juanma Barranquero <lekktu@gmail.com>
13973
13974 * process.c (Fsystem_process_attributes, syms_of_process):
13975 Fix typo in name of Ssystem_process_attributes.
13976 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
13977
fedc6ab5
JB
139782008-12-11 Juanma Barranquero <lekktu@gmail.com>
13979
13980 * syntax.c (Fmodify_syntax_entry): Doc fix.
13981
ba3de0e8
JB
139822008-12-10 Juanma Barranquero <lekktu@gmail.com>
13983
13984 * font.c (Ffont_spec): Move usage to end of docstring.
13985
174f1c74
JR
139862008-12-10 Jason Rumney <jasonr@gnu.org>
13987
13988 * w32font.c (Qcham): New symbol.
13989 (font_supported_scripts): Add cham, and comments for other new
13990 scripts in bitfield from OpenType spec.
9d32f818
JR
13991 (add_font_entity_to_list): Limit unicode-sip fonts to those that
13992 contain characters beyond the bmp.
174f1c74 13993
7b649478
KH
139942008-12-10 Kenichi Handa <handa@m17n.org>
13995
13996 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 13997 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
13998 Qunicode_sip.
13999
2133e2d1
JB
140002008-12-10 Juanma Barranquero <lekktu@gmail.com>
14001
14002 * coding.c (QCdefault_char): Rename from QCdefalut_char.
14003 (Fcoding_system_put): Use QCdefault_char.
14004 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
14005
9af886ee
CY
140062008-12-09 Chong Yidong <cyd@stupidchicken.com>
14007
74d819eb
CY
14008 * xftfont.c (syms_of_xftfont): Fix typo.
14009
4ccfa1c0 14010 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 14011
7c19d3ae
DN
140122008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
14013
14014 * emacs.c (main): Close daemon_pipe on exec.
14015
567826bb
CY
140162008-12-08 Chong Yidong <cyd@stupidchicken.com>
14017
14018 * termchar.h (struct tty): New members termcap_term_buffer and
14019 termcap_strings_buffer.
14020
14021 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 14022 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
14023 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
14024 All callers changed.
14025 (init_tty): Store termcap data and string buffers in new struct
14026 tty members termcap_term_buffer and termcap_strings_buffer.
14027 (delete_tty): Free them.
4ccfa1c0 14028 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 14029
aa96c42b
SZ
140302008-12-07 Seiji Zenitani <zenitani@mac.com>
14031
14032 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 14033 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 14034
b7e1d896
CY
140352008-12-06 Chong Yidong <cyd@stupidchicken.com>
14036
14037 * coding.c (make_conversion_work_buffer): Disable buffer
14038 modification hooks in the work buffer.
14039
b5ec91a5
EZ
140402008-12-05 Eli Zaretskii <eliz@gnu.org>
14041
14042 * process.c (procfs_system_process_attributes): If `nread' has a
14043 negative value, assign zero to it.
14044
a5d2a52b
CY
140452008-12-05 Chong Yidong <cyd@stupidchicken.com>
14046
68c5540b 14047 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 14048
7bf1bb21
KH
140492008-12-05 Kenichi Handa <handa@m17n.org>
14050
14051 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
14052 second character is a combining character.
14053
2fdc7d00
EZ
140542008-12-05 Eli Zaretskii <eliz@gnu.org>
14055
14056 * process.c (procfs_system_process_attributes): Don't use cmd,
14057 cmdsize, and q without initializing them first.
14058
bf6bfba8
JR
140592008-12-04 Jason Rumney <jasonr@gnu.org>
14060
14061 * w32font.c (w32font_draw): Initialize orig_clip before getting
14062 it, and delete it when finished.
14063
a3b1a468
DN
140642008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
14065
14066 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
14067 case when running as a daemon before detaching.
14068
8b8be8eb
JB
140692008-12-03 Juanma Barranquero <lekktu@gmail.com>
14070
805f2638 14071 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 14072
b1bde622
KH
140732008-12-03 Kenichi Handa <handa@m17n.org>
14074
e500c47d
KH
14075 * font.c (font_at): Set `multibyte' at first.
14076
ca516334
KH
14077 * coding.c (decode_coding_charset): Check type of an element of
14078 vector VALIDS.
7bf1bb21 14079 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 14080
4ccfa1c0 14081 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
14082 (font_for_char): Likewise.
14083
1e5ecd37
CY
140842008-12-03 Chong Yidong <cyd@stupidchicken.com>
14085
d5b01609 14086 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
14087 (font_update_lface): Handle fonts with corrupted size specs,
14088 i.e. non-int and non-float.
d5b01609 14089
11e3a6e4 14090 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 14091 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 14092 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 14093
ab06788b
CY
14094 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
14095
1e5ecd37 14096 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 14097 underline_minimum_offset for underline position.
1e5ecd37 14098
63c125ab
DN
140992008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
14100
14101 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
14102
14103 * character.c (c_string_width): Specify the type for LEN.
14104
3a8406e1
KH
141052008-12-03 Kenichi Handa <handa@m17n.org>
14106
4ccfa1c0 14107 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 14108 (decode_coding_utf_8): Likewise.
4ccfa1c0 14109 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 14110 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 14111
651df7d9
CY
141122008-12-02 Chong Yidong <cyd@stupidchicken.com>
14113
14114 * keyboard.c (make_lispy_position): Only use PT if the selected
14115 window is current.
14116
1f625c6c
AS
141172008-12-02 Andreas Schwab <schwab@suse.de>
14118
f7741ce9
AS
14119 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
14120
1f625c6c
AS
14121 * doprnt.c (doprnt1): Fix size of charbuf.
14122
92bc2678
CY
141232008-12-02 Chong Yidong <cyd@stupidchicken.com>
14124
14125 * keyboard.c (timer_check): Revert last change.
14126
93b9e8cc
JB
141272008-12-02 Juanma Barranquero <lekktu@gmail.com>
14128
14129 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
14130
fd7a37d5
JB
141312008-12-01 Juanma Barranquero <lekktu@gmail.com>
14132
14133 * makefile.w32-in: Update dependencies.
14134 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
14135
c115043b
AS
141362008-12-01 Andreas Schwab <schwab@suse.de>
14137
14138 * font.c (register_font_driver): Use xmalloc.
14139 (font_put_frame_data): Likewise.
14140
f5668d2a
CY
141412008-12-01 Chong Yidong <cyd@stupidchicken.com>
14142
860d96be
CY
14143 * xfaces.c (realize_x_face): Make abort condition clearer.
14144
f5668d2a
CY
14145 * gtkutil.c (update_frame_tool_bar): Initialize variable.
14146
379c17e7
CY
141472008-11-30 Chong Yidong <cyd@stupidchicken.com>
14148
14149 * keyboard.c (timer_check): After a timer runs, ensure that the
14150 selected window's buffer is current.
14151
35f36d65
JB
141522008-11-30 Juanma Barranquero <lekktu@gmail.com>
14153
f952c61c
JB
14154 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
14155 It was accidentally restored by the Unicode merge.
14156
35f36d65
JB
14157 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
14158
b23077df
JB
141592008-11-29 Juanma Barranquero <lekktu@gmail.com>
14160
14161 * w32proc.c: Include "coding.h".
14162 (Fw32_short_file_name): Encode filename passed to Windows API.
14163 (Fw32_long_file_name): Encode filename passed to Windows API and
14164 decode back the result. (Bug#1433)
14165
b8ebe9dd
KH
141662008-11-29 Kenichi Handa <handa@m17n.org>
14167
8cc53f96
KH
14168 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
14169 not before accessing it.
14170
b8ebe9dd
KH
14171 * charset.c (Fdefine_charset_internal): After calculating
14172 min_char, max_char, and fastmap, copy the charset structure again.
14173 (encode_char): Fix the previous change.
14174
59bc82c0
SZ
141752008-11-28 Seiji Zenitani <zenitani@mac.com>
14176
14177 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
14178
14179 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
14180
14181 * nsterm.m (x_set_frame_alpha): New function.
14182
32247e3d
EZ
141832008-11-27 Eli Zaretskii <eliz@gnu.org>
14184
14185 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
14186
b003e5ff
JB
141872008-11-27 Juanma Barranquero <lekktu@gmail.com>
14188
14189 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
14190 pointer to check_face_name.
14191
708550f5
KH
141922008-11-27 Kenichi Handa <handa@m17n.org>
14193
14194 * category.h (SET_CATEGORY_SET): Call set_category_set.
14195 (set_category_set): Extern it.
14196
14197 * category.c (hash_get_category_set): New function.
bba3e508 14198 (Fmodify_category_entry): Adjust for the change of
708550f5
KH
14199 char_table_ref_and_range. Call hash_get_category_set to get a
14200 category set to store in the table.
14201
14202 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
14203 Funify_charset.
14204
2ae37cf0 14205 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
14206 (DECODE_CHAR): Check if the decoder vector is ready.
14207 (ENCODE_CHAR): Check if the encoder char-table is ready.
14208 (maybe_unify_char): Extern it.
14209
14210 * charset.c (Vchar_unified_charset_table): Delete it.
14211 (inhibit_load_charset_map): New variable.
14212 (temp_charset_work): New variable.
14213 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
14214 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
14215 New macros.
bba3e508
SM
14216 (load_charset_map): Meaning of control_flag changed.
14217 If inhibit_load_charset_map is nonzero, setup a table in
708550f5
KH
14218 temp_charset_work.
14219 (load_charset): New argument control_flag.
14220 (map_charset_for_dump): New function.
14221 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
14222 map_charset_for_dump.
14223 (Fdefine_charset_internal): If the charset method is MAP, load
14224 mapping tables by calling load_charset.
14225 (Funify_charset): Don't load a mapping table but directly set
14226 Vchar_unify_table.
14227 (maybe_unify_char): New function.
14228 (decode_char): Don't handle the deleted method MAP_DEFERRED.
14229 Handle the case of inhibit_load_charset_map being nonzero.
14230 (encode_char): Don't handle the deleted method MAP_DEFERRED.
14231 Handle the case of inhibit_load_charset_map being nonzero.
14232 (Fclear_charset_maps): Just free temp_charset_work.
14233 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
14234 variable.
14235
bba3e508 14236 * chartab.c (sub_char_table_ref_and_range): Adjust for the
708550f5
KH
14237 change of char_table_ref_and_range.
14238 (char_table_ref_and_range): Change the meaning of argument FROM
14239 and TO. Now the caller must provide initial values for *FROM
14240 and *TO.
14241
bba3e508 14242 * fontset.c (fontset_add): Adjust for the change of
708550f5
KH
14243 char_table_ref_and_range.
14244 (fontset_get_font_group): Likewise.
14245 (Ffontset_info): Likewise.
14246
bba3e508 14247 * keymap.c (describe_vector): Adjust for the change of
708550f5
KH
14248 char_table_ref_and_range. For char-table, put boundary between
14249 non-ASCII and 8-bit characters.
14250
14251 * print.c (print_object): For bool-vector, delete unnecessary
14252 check of ASCII_BYTE_P.
14253
9196133b
JR
142542008-11-26 Jason Rumney <jasonr@gnu.org>
14255
14256 * w32font.c (w32font_open_internal): Don't include external
9acef61c 14257 leading in font height. (Bug#879)
9196133b 14258
9f688acf
GM
142592008-11-26 Glenn Morris <rgm@gnu.org>
14260
14261 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
14262 redefinition with ifdef. (Bug#1383)
14263
90d19aff
AR
142642008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
14265
14266 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
14267
4ccfa1c0 142682008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
14269
14270 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
14271 New EmacsView methods.
14272 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
14273 Fixes bug #1048,1357,1414.
14274
142752008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
14276
14277 Fix bug #1362.
14278 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
14279 is not an indexed color.
14280 * nsterm.m (free_indexed_color): Add argument checking.
14281 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
14282
e7d5ecb3
CY
142832008-11-24 Chong Yidong <cyd@stupidchicken.com>
14284
14285 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
14286 Document confirm-after-completion value for
14287 minibuffer-completion-confirm.
14288
c285743c
JR
142892008-11-24 Jason Rumney <jasonr@gnu.org>
14290
14291 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
14292 warning.
14293
b0857706
JR
142942008-11-23 Jason Rumney <jasonr@gnu.org>
14295
14296 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
14297 restored before returning.
14298
14299 * w32font.c (check_face_name): New function.
14300 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 14301 fonts. (Bug#642)
b0857706 14302
ee50ff07
MR
143032008-11-22 Martin Rudalics <rudalics@gmx.at>
14304
14305 * buffer.c (Fswitch_to_buffer): Reword and mention new option
14306 confirm-nonexistent-file-or-buffer in doc-string.
14307
b8ff72fa
SM
143082008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
14309
14310 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
14311 Fix copy/paste typo. Add checks.
14312
cee53ed4
KH
143132008-11-21 Kenichi Handa <handa@m17n.org>
14314
14315 * coding.c (detect_coding_iso_2022): Reject invalid composition
14316 sequence.
14317 (DECODE_COMPOSITION_START): If the current source is the last
14318 block, and the current composition doesn't end, regard this
14319 sequence as invalid.
14320 (decode_coding_iso_2022): Handle invalid composition sequence.
14321
f6ef1e65
MR
143222008-11-20 Martin Rudalics <rudalics@gmx.at>
14323
14324 * window.c (coordinates_in_window): Don't return
14325 ON_VERTICAL_BORDER for the rightmost position of a mode/header
14326 line when the window is not the rightmost one. (Bug#1372)
14327
e08b1705
MR
143282008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
14329
14330 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
14331
ad98e89f
EZ
143322008-11-15 Eli Zaretskii <eliz@gnu.org>
14333
14334 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
14335 and bright_bg if noninteractive is non-zero.
14336
fb098a4b
CY
143372008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14338
14339 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
14340 x_draw_glyph_string_background.
14341
14342 * w32term.c (x_draw_glyph_string): Likewise.
14343
ce952b6e
CY
143442008-11-15 Chong Yidong <cyd@stupidchicken.com>
14345
14346 * xterm.c (x_draw_glyph_string): Stop drawing the background of
14347 the next glyph string once past the overhang width.
14348
14349 * nsterm.m (ns_draw_glyph_string): Likewise.
14350
14351 * w32term.c (x_draw_glyph_string): Likewise.
14352
26ea7079
CY
143532008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
14354
14355 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
14356 double file close.
14357
1c33c906
MR
143582008-11-14 Martin Rudalics <rudalics@gmx.at>
14359
14360 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
14361 dedicated status of window before attempting to display another
14362 buffer in it.
14363
8fc29035
JB
143642008-11-14 Juanma Barranquero <lekktu@gmail.com>
14365
14366 * msdos.c (Fmsdos_long_file_names):
14367 (syms_of_msdos) <dos-unsupported-char-glyph>:
14368 * dosfns.c (Fint86): Fix typos in docstrings.
14369
55fb4286
EZ
143702008-11-14 Eli Zaretskii <eliz@gnu.org>
14371
14372 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
14373
3fda0315
KY
143742008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
14375
14376 * puresize.h (BASE_PURESIZE): Increase to 1260000.
14377
7e849c17
CY
143782008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
14379
14380 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
14381
14382 * frame.h: Negative alpha means "don't touch".
14383
14384 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
14385
14386 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
14387
b9fd67bd
DN
143882008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
14389
14390 * hftctl.c:
14391 * chpdef.h:
14392 * acldef.h: Remove files used only for systems no longer supported.
14393
14394 * Makefile.in: Fix .o alphabetical ordering.
14395 (hftctl.o): Remove dependency, file removed.
14396 (keymap.o, print.o): Depend on charset.h.
14397
d5998e03
KH
143982008-11-10 Kenichi Handa <handa@m17n.org>
14399
2ae37cf0 14400 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 14401
be70e183
CY
144022008-11-08 Chong Yidong <cyd@stupidchicken.com>
14403
14404 * dired.c (file_name_completion): If completion_ignore_case is
14405 enabled, ignore case when checking completion-regexp-list.
14406
7cf94eac
EZ
144072008-11-08 Eli Zaretskii <eliz@gnu.org>
14408
14409 * vm-limit.c (get_lim_data): Fix last change.
14410
ee107a89
KH
144112008-11-08 Kenichi Handa <handa@m17n.org>
14412
14413 * character.c (Fget_byte): New function.
14414 (syms_of_character): Defsubr Fget_byte.
14415
5fd15622
CY
144162008-11-07 Chong Yidong <cyd@stupidchicken.com>
14417
14418 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
14419 cursor position is valid after scrolling.
14420
13d62fad
JB
144212008-11-06 Juanma Barranquero <lekktu@gmail.com>
14422
14423 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
14424
a1dd2936
GM
144252008-11-06 Glenn Morris <rgm@gnu.org>
14426
14427 * xterm.c (handle_one_xevent): Don't let popup menus cause
14428 mouse-autoselect-window related window switching. (Bug#1261)
14429
860cd236
CY
144302008-11-04 David Smith <davidsmith@acm.org> (tiny change)
14431
14432 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
14433
653a3150
AS
144342008-11-04 Andreas Schwab <schwab@suse.de>
14435
14436 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
14437
870f5cac
CY
144382008-11-03 Chong Yidong <cyd@stupidchicken.com>
14439
14440 * xfns.c (Fx_wm_set_size_hint): New function.
14441
1e02f3cb
MR
144422008-11-03 Martin Rudalics <rudalics@gmx.at>
14443
14444 * textprop.c (Fprevious_single_char_property_change): Return 0
14445 when there's no change in a string. (Bug#1301)
14446
e630dfc6
MR
144472008-11-02 Martin Rudalics <rudalics@gmx.at>
14448
14449 * frame.c (do_switch_frame): New argument NORECORD passed to
14450 Fselect_window.
14451 (Fselect_frame): New argument NORECORD passed to
14452 do_switch_frame.
14453 (Fset_frame_selected_window): New argument NORECORD passed to
14454 Fselect_frame.
14455 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
14456 in call of do_switch_frame.
14457 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
14458 Handle NORECORD argument in call of Fselect_frame.
14459 * lisp.h (do_switch_frame, Fselect_frame)
14460 (Fset_frame_selected_window): Adjust declarations.
14461 * window.c (select_frame_norecord): New function.
14462 (run_window_configuration_change_hook): Use it and call
14463 Fselect_frame with NORECORD set.
14464 (Fselect_window): Pass NORECORD to Fselect_frame.
14465 (Fset_window_configuration): Handle NORECORD argument in call of
14466 do_switch_frame.
14467 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
14468 Fset_frame_selected_window.
14469 * keyboard.c (command_loop_1): Handle NORECORD in call of
14470 Fselect_frame (currently ifdefd).
14471
9020b223
GM
144722008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
14473
14474 * emacs.c (USAGE2): Untabify.
14475
793ffee8
SM
144762008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
14477
14478 * composite.c (fill_gstring_header): Fix copy/paste typo.
14479
ab6d1131
MR
144802008-10-31 Martin Rudalics <rudalics@gmx.at>
14481
14482 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
14483 (Fother_window): Rename argument and rewrite doc-string.
14484 (select_window_norecord): Fix return value. (Bug#1276)
14485
601a9cf1
JB
144862008-10-30 Juanma Barranquero <lekktu@gmail.com>
14487
14488 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
14489 new frames overriding foreground for tooltips. Based on similar patch
14490 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
14491
813b0652
CY
144922008-10-29 Chong Yidong <cyd@stupidchicken.com>
14493
14494 * emacs.c (Fdaemon_initialized): Initialize nfd.
14495
4414f58f
MR
144962008-10-29 Martin Rudalics <rudalics@gmx.at>
14497
14498 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
14499 (Fwindow_text_height): Clarify doc-strings.
14500 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
14501 doc-string of window-scroll-functions.
14502
ecdcaa09
RS
145032008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
14504
14505 * category.c (syms_of_category): Fix typo in docstring.
14506
23fe745a
JB
145072008-10-28 Juanma Barranquero <lekktu@gmail.com>
14508
14509 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
14510 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
14511 Fix typos in docstrings.
14512
ff808935
DN
145132008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
14514
14515 * emacs.c (daemon_pipe): Make non-static.
14516 (IS_DAEMON): Move definition ...
14517 * lisp.h (IS_DAEMON): ... here.
14518 (daemon_pipe): Declare.
14519 (is_daemon): Remove.
14520 * dispnew.c (init_display): Use IS_DAEMON.
14521
fc012771
SM
145222008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
14523
14524 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
14525 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
14526
14527 * emacs.c (is_daemon): Remove.
14528 (main): Don't set is_daemon.
14529 (IS_DAEMON): New macro.
14530 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 14531 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
14532 parent exits.
14533 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
14534
d8bdbe6f
CY
145352008-10-27 Chong Yidong <cyd@stupidchicken.com>
14536
d1a072bf
CY
14537 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
14538 over-sized glyph, draw it with the default glyph width.
14539
e2e325aa
CY
14540 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
14541 glyph, draw it with the default glyph width.
14542
14543 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
14544 glyph, draw it with the default glyph width.
14545
d8bdbe6f
CY
14546 * xdisp.c (try_scrolling): When computing the distance from the
14547 scroll margin to PT, try moving some distance past the window
14548 bottom before giving up.
14549
7bfac547
MR
145502008-10-27 Martin Rudalics <rudalics@gmx.at>
14551
14552 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
14553 (Fset_window_buffer): Explain in doc-string that a window can be
14554 "strongly" dedicated to its buffer.
14555
4ff029f6
DN
145562008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
14557
14558 * emacs.c (daemon_name): New variable.
14559 (main): Deal with --daemon=SERVER_NAME.
14560 (Fdaemonp): Return a name if one was passed to --daemon.
14561
5790ef40
DN
145622008-10-26 Romain Francoise <romain@orebokech.com>
14563
f9bd0df9 14564 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
14565 (main): Create a pipe before forking, make the parent exit only after
14566 the child has closed its end of the pipe. Move closing the
14567 descriptors ...
14568 (Fdaemon_initialized): ... here. New function.
14569
f5385255
SM
145702008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
14571
4d632321
SM
14572 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
14573 the previous unoptimized table.
14574
f5385255
SM
14575 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
14576 the distinction between non-nil and non-t value of `dedicated'.
14577
6c56a0f3
CY
145782008-10-25 Chong Yidong <cyd@stupidchicken.com>
14579
14580 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 14581 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 14582
fec89261
MR
145832008-10-25 Martin Rudalics <rudalics@gmx.at>
14584
14585 * window.c (Fget_buffer_window, Fdelete_windows_on)
14586 (Freplace_buffer_in_windows): Make buffer argument optional and
14587 rename to buffer_or_name.
14588
34fcddd0
CY
145892008-10-24 Chong Yidong <cyd@stupidchicken.com>
14590
f5385255
SM
14591 * xdisp.c (handle_single_display_spec, handle_display_prop):
14592 Undo 2005-05-16 change.
34fcddd0
CY
14593 (handle_stop): Pop iterator if it's loaded with an empty string.
14594 (get_overlay_strings_1): Don't save iterator if it's loaded with
14595 an empty string (bug#1201).
14596
064766f2
KH
145972008-10-24 Kenichi Handa <handa@m17n.org>
14598
14599 * ftfont.c (ftfont_otf_features): Fix previous change.
14600 (ftfont_otf_capability): Check FeatureList.FeatureCount before
14601 calling ftfont_otf_features.
14602
f9bd0df9 146032008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
14604
14605 * font.c (font_match_p): Fix for the case that a vector of
14606 characters is in script-representative-chars.
14607
1dae9197
MA
146082008-10-24 Michael Albinus <michael.albinus@gmx.de>
14609
14610 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 14611 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
14612 (xd_read_queued_messages): Catch Qdbus_error from the macros.
14613 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
777013f2 14614 macro. (Bug#1186)
1dae9197 14615
f9bd0df9 146162008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
14617
14618 * s/sol2-10.h: New file.
14619
878a4584
JB
146202008-10-23 Juanma Barranquero <lekktu@gmail.com>
14621
14622 * xdisp.c (fill_glyph_string): Fix typo in source (though the
14623 poor beast has survived 9+ years and the jump from xterm.c!).
14624
cd265ca6
MR
146252008-10-23 Martin Rudalics <rudalics@gmx.at>
14626
14627 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
14628 Reword doc-string.
f5385255 14629 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 14630
472a4dc9
JB
146312008-10-23 Juanma Barranquero <lekktu@gmail.com>
14632
14633 * character.c (syms_of_character) <script-representative-chars>:
14634 <unicode-category-table>: Doc fixes.
14635
159bd5a2
NF
146362008-10-23 Noah Friedman <friedman@splode.com>
14637
14638 * coding.c (make_conversion_work_buffer): Check that
14639 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
14640 Fget_buffer_create.
14641
49f9c344
KH
146422008-10-23 Kenichi Handa <handa@m17n.org>
14643
14644 * font.c (font_add_log): Check the values of extra properties.
14645
12bb3111
MR
146462008-10-22 Martin Rudalics <rudalics@gmx.at>
14647
14648 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
14649 Reword doc-string.
14650 (Fset_window_parameter): Use NILP.
14651 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 14652 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 14653
bbeb4e99
JB
146542008-10-22 Juanma Barranquero <lekktu@gmail.com>
14655
14656 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
14657
146582008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
14659
14660 * nsfns.m (ns_appkit_version): New function.
14661 (x-server-version): Use it.
14662 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
14663 (x-server-vendor): Don't check_ns().
14664
14665 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
14666
a9b555d3
JB
146672008-10-22 Juanma Barranquero <lekktu@gmail.com>
14668
14669 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
14670 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
14671
4626499f
KH
146722008-10-22 Kenichi Handa <handa@m17n.org>
14673
e3681952
KH
14674 * syntax.c (scan_words): Call word_boundary_p instead of comparing
14675 scripts.
14676
4626499f
KH
14677 * category.c (word_boundary_p): Check scripts instead of charset.
14678 Handle nil value in word-separating-categories and
14679 word-combining-categories.
14680 (syms_of_category): Fix docstrings of word-separating-categories
14681 and word-combining-categories.
14682
1560f91a
EZ
146832008-10-21 Eli Zaretskii <eliz@gnu.org>
14684
14685 * coding.c (Fencode_coding_region, Fdecode_coding_region)
14686 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
14687
f4668441
MR
146882008-10-21 Martin Rudalics <rudalics@gmx.at>
14689
14690 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
14691 Rename arg "buffer" to "buffer_or_name".
14692 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
14693 it optional.
14694 (no_switch_window): Remove since the return value is not used.
a9b555d3 14695 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
14696 Consider window as dedicated when Fwindow_dedicated_p returns a
14697 non-nil value.
14698 * lisp.h: Remove prototype for no_switch_window.
14699
fd75ddb2
JD
147002008-10-21 Jan Djärv <jan.h.d@swipnet.se>
14701
14702 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 14703 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 14704
07295713
KH
147052008-10-21 Kenichi Handa <handa@m17n.org>
14706
14707 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
14708 check Vlatin_extra_code_table.
14709
712adc82
EZ
147102008-10-20 Eli Zaretskii <eliz@gnu.org>
14711
14712 * fileio.c (Fset_file_modes): Doc fix.
14713
f549eb0b
MA
147142008-10-19 Michael Albinus <michael.albinus@gmx.de>
14715
14716 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
14717 in arrays.
14718
aac0c6e3
MR
147192008-10-19 Martin Rudalics <rudalics@gmx.at>
14720
14721 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
14722 Mention kill-buffer in doc-string.
14723 (Fset_window_buffer): Reinsert tem check removed in last commit.
14724 (Fenlarge_window, Fshrink_window): Have argument names and
14725 doc-string follow Elisp manual more closely.
14726
147272008-10-18 Eli Zaretskii <eliz@gnu.org>
14728
14729 * fileio.c (Fset_file_modes): Doc fix.
14730
147312008-10-18 Martin Rudalics <rudalics@gmx.at>
14732
14733 * window.c (Fwindow_width, Fset_window_start)
14734 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
14735 (Fdelete_windows_on, Freplace_buffer_in_windows):
14736 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
14737 (Fwindow_dedicated_p): Make window argument optional.
14738 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
14739 (Fset_window_buffer): Respect any non-nil dedicated value for
14740 window. Rename "buffer" argument to "buffer_or_name".
14741
147422008-10-18 Ulrich Mueller <ulm@gentoo.org>
14743
14744 * m/sh3.h: New file, machine description for SuperH.
14745
147462008-10-17 Martin Rudalics <rudalics@gmx.at>
14747
14748 * window.c (Fsplit_window): Rename arg horflag to horizontal.
14749
147502008-10-17 Kenichi Handa <handa@m17n.org>
14751
14752 * ftfont.c (ftfont_otf_features): Fix indexing
14753 gsub_gpos->FeatureList.Feature. Check the validity of indices.
14754
147552008-10-16 Magnus Henoch <mange@freemail.hu>
14756
14757 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
14758 (Fdbus_call_method_asynchronously): Ditto.
14759 This change makes C-h f display the argument list.
14760
147612008-10-16 Chong Yidong <cyd@stupidchicken.com>
14762
14763 * fileio.c (Fexpand_file_name): Doc fix.
14764
14765 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
14766 of :foreground and :background equivalent to unspecified (20.x
14767 compatibility).
14768
147692008-10-15 Eli Zaretskii <eliz@gnu.org>
14770
14771 * buffer.c (syms_of_buffer): Doc fix.
14772
147732008-10-14 Kenichi Handa <handa@m17n.org>
14774
14775 * font.c (font_clear_prop): When clearing font width, clear the
14776 average width field too.
14777
147782008-10-12 Andreas Schwab <schwab@suse.de>
14779
14780 * ftfont.c (ftfont_shape_by_flt): Make static.
14781 * ftfont.h (ftfont_shape_by_flt): Don't declare.
14782
14783 * font.c: Don't include <m17n-flt.h>.
14784
147852008-10-10 Eli Zaretskii <eliz@gnu.org>
14786
14787 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
14788
147892008-10-09 Eli Zaretskii <eliz@gnu.org>
14790
14791 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
14792 away code.
14793
147942008-10-09 Chong Yidong <cyd@stupidchicken.com>
14795
14796 * dispnew.c (update_text_area): Avoid looping due to large glyph
14797 overhangs (bug#1070).
14798
147992008-10-09 Kenichi Handa <handa@m17n.org>
14800
14801 * fontset.c (face_for_char): If face->fontset is negative, just
14802 return ascii_face.
14803
f5385255
SM
14804 * font.c (font_delete_unmatched): Fix previous change.
14805 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
14806
148072008-10-09 Martin Rudalics <rudalics@gmx.at>
14808
14809 * frame.c (Fraise_frame): On text-only terminals select frame in
14810 order to make it visible. (Bug#1061)
14811
148122008-10-08 Chong Yidong <cyd@stupidchicken.com>
14813
14814 * fontset.c (fontset_find_font): Check frame validity.
14815
148162008-10-07 Chong Yidong <cyd@stupidchicken.com>
14817
a9b555d3 14818 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
14819 (xg_display_close): Allow Emacs to close all displays (bug#985).
14820
148212008-10-06 Andreas Schwab <schwab@suse.de>
14822
f5385255 14823 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
14824
148252008-10-06 Chong Yidong <cyd@stupidchicken.com>
14826
f5385255 14827 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 14828
a9b555d3 14829 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
14830
14831 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
14832 during initialization.
14833
148342008-10-04 Eli Zaretskii <eliz@gnu.org>
14835
14836 * xdisp.c (redisplay_internal): If frame switched, redisplay the
14837 whole thing on MSDOS frames as well as on a TTY.
14838
14839 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
14840 well as for TTY.
14841 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
14842 well as on a TTY.
14843
14844 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
14845 as well as for TTY.
14846
14847 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
14848
14849 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
14850 MSDOS frames as well.
14851
148522008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
14853
14854 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
14855 correct arguments.
b71ac3dd 14856 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
14857
148582008-10-03 Glenn Morris <rgm@gnu.org>
14859
14860 * emacs.c (USAGE1): Add --daemon.
14861
148622008-10-02 Eli Zaretskii <eliz@gnu.org>
14863
14864 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
14865 100, so it's in percents as advertised.
14866
148672008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
14868
14869 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
14870 (ns_output.current_cursor, ns_output.desired_cursor)
14871 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
14872 (FRAME_NEW_CURSOR_COLOR): Remove.
14873
14874 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 14875 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
14876 enumeration (HOLLOW_BOX_CURSOR, etc.).
14877
14878 * nsterm.m (ns_frame_rehighlight): Remove commented code.
14879 (draw_window_cursor): Simplify code.
f5385255
SM
14880 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
14881 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 14882 updates manually.
a9b555d3
JB
14883 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
14884 Use core Emacs cursor types.
aac0c6e3 14885
b8ff72fa 14886 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
14887
148882008-10-02 Martin Rudalics <rudalics@gmx.at>
14889
14890 * process.c (Faccept_process_output): Fix doc-string.
14891
148922008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
14893
14894 * gmalloc.c (__sbrk): Also define for uClibc.
14895
14896 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
14897 for uClibc.
14898
148992008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
14900
14901 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
14902 styles.
14903 (nsfont_open): Reenable the cache.
14904
149052008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
14906
14907 * font.c (font_matching_entity): Reflect ATTRS in font selection.
14908 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
14909
149102008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
14911
14912 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
14913 a suspended terminal.
14914
149152008-09-30 Michael Albinus <michael.albinus@gmx.de>
14916
14917 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
14918
149192008-09-30 Eli Zaretskii <eliz@gnu.org>
14920
14921 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
14922
149232008-09-30 Chong Yidong <cyd@stupidchicken.com>
14924
14925 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
14926 in a continued line coincides with a line beginning.
14927
149282008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
14929
14930 * nsfont.m (nsfont_trait_distance): Fix bug.
14931 (nsfont_list): Return a list rather than a vector (syncs with Handa
14932 changes of 2008-05-14).
14933 (nsfont_open): Improve logging.
14934
149352008-09-29 Andreas Schwab <schwab@suse.de>
14936
14937 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
14938
149392008-09-28 Martin Rudalics <rudalics@gmx.at>
14940
14941 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
14942 name as char-resolve-modifiers.
14943 Reported by: Markus Triska <markus.triska@gmx.at>
14944
149452008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
14946
14947 * dispnew.c (init_display): Return earlier when running as a daemon.
14948
149492008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
14950
14951 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
14952
149532008-09-27 Eli Zaretskii <eliz@gnu.org>
14954
14955 * composite.c (Fcomposition_get_gstring)
14956 (Fcompose_region_internal, Fcompose_string_internal)
14957 (Ffind_composition_internal): Doc fix.
14958 (syms_of_composite) <compose-chars-after-function>: Doc fix.
14959 (syms_of_composite) <auto-composition-function>: Doc fix.
14960 (syms_of_composite) <composition-function-table>: Doc fix.
14961
149622008-09-25 Chong Yidong <cyd@stupidchicken.com>
14963
14964 * search.c (wordify): New argument for lax word-ends.
14965 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
14966
149672008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
14968
14969 * lisp.h (is_daemon): Declare.
14970 * dispnew.c (init_display): Do not try to initialize the terminal
14971 when running as a daemon.
14972
149732008-09-22 Chong Yidong <cyd@stupidchicken.com>
14974
14975 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
14976 x_display_pixel_height.
14977
149782008-09-22 Martin Rudalics <rudalics@gmx.at>
14979
14980 * undo.c (record_point): Don't call Fundo_boundary for first
14981 change. (Bug#731)
14982
149832008-09-22 Juanma Barranquero <lekktu@gmail.com>
14984
14985 * emacs.c (Fdaemonp): Doc fix.
14986
149872008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
14988
14989 * emacs.c (main): Place #ifdef in the proper place.
14990
149912008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
14992
14993 * emacs.c (standard_args): Add --daemon.
14994 (main): Disconnect from the terminal when --daemon is passed.
14995 (is_daemon): New variable.
14996 (Fdaemonp): New function.
14997 (syms_of_emacs): Defsubr it.
14998
149992008-09-20 Chong Yidong <cyd@stupidchicken.com>
15000
15001 * xdisp.c (get_next_display_element): Handle string display
15002 correctly when checking for the end of a box run.
15003
150042008-09-20 Glenn Morris <rgm@gnu.org>
15005
15006 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
15007 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
15008 (Frename_file): Avoid copying to trash if a rename involves
15009 a delete. (Bug#964).
15010
150112008-09-20 Eli Zaretskii <eliz@gnu.org>
15012
15013 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
15014 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
15015 frames as well as termcap frames.
15016 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
15017 get_named_tty.
15018
150192008-09-19 Eli Zaretskii <eliz@gnu.org>
15020
15021 * process.c (procfs_system_process_attributes): Fix cmdline in
15022 case /proc/PID/cmdline is empty.
15023
15024 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
15025 x_display_pixel_height.
15026
150272008-09-19 Juanma Barranquero <lekktu@gmail.com>
15028
15029 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
15030
15031 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
15032 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
15033
150342008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
15035
15036 * dispextern.h (struct it): Move line_wrap away from the middle of
15037 bitfields. Move voffset in struct iterator_stack_entry after the
15038 bitfields. Move tab_width near after another short.
15039
150402008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
15041
15042 * frame.h (struct frame): Move alpha from the middle of bitfields.
15043
15044 * window.h (struct window): Move frozen_window_start_p after the
15045 rest of the bitfields to reduce padding.
15046
150472008-09-18 Chong Yidong <cyd@stupidchicken.com>
15048
15049 * xterm.h (x_display_info): Remove `height' and `width' members.
15050
15051 * nsterm.h (ns_display_info): Remove `height' and `width' members.
15052
15053 * w32term.h (w32_display_info): Remove `height', `width',
15054 `height_in', and `width_in' members.
15055
b8ff72fa
SM
15056 * xterm.c (x_display_pixel_height, x_display_pixel_width):
15057 New functions.
aac0c6e3
MR
15058 (x_calc_absolute_position): Use them.
15059 (x_term_init): Omit removed `height' and `width' members.
15060
b8ff72fa
SM
15061 * w32term.c (x_display_pixel_height, x_display_pixel_width):
15062 New functions.
aac0c6e3
MR
15063 (w32_read_socket, x_calc_absolute_position): Use them.
15064 (w32_initialize_display_info, w32_term_init): Omit removed members
15065 of w32_display_info.
15066
b8ff72fa
SM
15067 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
15068 New functions.
15069 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 15070
b8ff72fa
SM
15071 * xterm.c (x_display_pixel_height, x_display_pixel_width):
15072 New functions.
aac0c6e3
MR
15073 (x_calc_absolute_position): Use them.
15074 (x_term_init): Omit removed `height' and `width' members.
15075
15076 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
15077 (compute_tip_xy):
15078 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
15079 * xmenu.c (menu_position_func): Use x_display_pixel_height and
15080 x_display_pixel_width.
15081
150822008-09-18 Kenichi Handa <handa@m17n.org>
15083
15084 * composite.c (fill_gstring_header): Don't check FROM and TO here.
15085 (composition_compute_stop_pos): Fix handling of static composition.
15086 (Fcomposition_get_gstring): Check FROM and TO at first.
15087
150882008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
15089
46e722a9 15090 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
15091 mixup (YAILOM).
15092
150932008-09-17 Chong Yidong <cyd@stupidchicken.com>
15094
15095 * indent.c (Fvertical_motion): Use position reported by iterator
15096 instead of PT for determining screen motion (bug#943).
15097
150982008-09-17 Romain Francoise <romain@orebokech.com>
15099
15100 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
15101
151022008-09-17 Kenichi Handa <handa@m17n.org>
15103
15104 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
15105
15106 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
15107 if necessary.
15108
151092008-09-16 Kenichi Handa <handa@m17n.org>
15110
15111 * coding.c (make_conversion_work_buffer): Avoid calling
15112 Fget_buffer_create if it is not necessary.
15113
151142008-09-15 Martin Rudalics <rudalics@gmx.at>
15115
15116 * window.c (Fselect_window): Don't update window_select_count and
15117 use_time when norecord is not nil.
15118
151192008-09-14 Kenichi Handa <handa@m17n.org>
15120
15121 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
15122 specpdl_ptr.
15123
151242008-09-12 Kenichi Handa <handa@m17n.org>
15125
15126 * indent.c (scan_for_column): Don't handle automatic composition
15127 if the current buffer is not associated with a window.
15128
15129 * composite.c (composition_reseat_it): If the current buffer is
15130 not associated with a window, ignore the automatic composition.
15131 (find_automatic_composition): Likewise.
15132
151332008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
15134
15135 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
15136 (Fgpm_mouse_stop): Use it.
15137 * termhooks.h (close_gpm): Declare.
15138 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
15139 connection if Gpm_GetEvent fails.
15140
15141 * window.c (set_window_buffer): Always preserve current-buffer.
15142
151432008-09-12 Glenn Morris <rgm@gnu.org>
15144
15145 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
15146
151472008-09-11 Glenn Morris <rgm@gnu.org>
15148
15149 * charset.c (charset-map-path): Doc fix.
15150
151512008-09-10 Kenichi Handa <handa@m17n.org>
15152
15153 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
15154
15155 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
15156 compose a grapheme cluster with the preceding base glyph.
15157
15158 * composite.c (composition_compute_stop_pos): Fix previous change.
15159 Reset cmp_it->id to -1 at first.
15160
151612008-09-10 Glenn Morris <rgm@gnu.org>
15162
15163 * Makefile.in (character.o, chartab.o): Fix config.h typo.
15164
151652008-09-09 Chong Yidong <cyd@stupidchicken.com>
15166
15167 * keyboard.c (read_key_sequence): Reapply translation maps when
15168 switching keyboards.
15169
151702008-09-09 Kenichi Handa <handa@m17n.org>
15171
15172 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
15173 characters.
15174
15175 * composite.c (FORWARD_CHAR): Fix calculation
15176 of (POSITION).pos_byte.
15177 (composition_compute_stop_pos): Limit the search of composition to
15178 at most 500 characters ahead. If we reach the limit or find a
15179 newline, set cmp_it->ch to -2 and return 0.
15180 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
15181
151822008-09-08 Kenichi Handa <handa@m17n.org>
15183
15184 * indent.c (Fvertical_motion): Be sure to set
15185 it_overshoot_expected if it.cmp_it.id is non-negative.
15186
151872008-09-07 Andreas Schwab <schwab@suse.de>
15188
15189 * callproc.c (Fcall_process): Don't hold references to string data
15190 across garbage collection. Move initialisation of new_argv down
15191 to avoid compiler bug.
15192
151932008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
15194
15195 * process.c (Fsystem_process_attributes): Doc fix.
15196
151972008-09-07 Chong Yidong <cyd@stupidchicken.com>
15198
15199 * callproc.c (Fcall_process): Canonicalize current directory name.
15200
15201 * xdisp.c (move_it_to): When moving by vpos, ensure that the
15202 iterator advances to the next line if the current line ends in a
15203 continued tab.
15204
152052008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
15206
15207 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
15208 member to point to cmp_from.
15209
15210 * xdisp.c: Doc fix for references to gidx data member.
15211
152122008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
15213
15214 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
15215
152162008-09-07 Kenichi Handa <handa@m17n.org>
15217
15218 * composite.c (FORWARD_CHAR): Check STOP after
15219 incrementing (POSITION).pos.
15220
152212008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
15222
15223 * process.c (Fsystem_process_attributes): Doc fix.
15224
152252008-09-06 Chong Yidong <cyd@stupidchicken.com>
15226
15227 * keyboard.c (Ftop_level): Doc fix.
15228
152292008-09-06 Eli Zaretskii <eliz@gnu.org>
15230
15231 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
15232 minibuffer, don't let lower part of menu invade the echo area.
15233
15234 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
15235 "char *q" to access menu text and advance through it. Revert the
15236 change that displayed ">" instead of ASCII character 0x10.
15237
152382008-09-05 Eli Zaretskii <eliz@gnu.org>
15239
15240 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
15241 toggle boxes and radio buttons on MS-DOS as well.
15242
152432008-09-05 Kenichi Handa <handa@m17n.org>
15244
15245 * composite.c (autocmp_chars): Check lookback count.
15246 (composition_compute_stop_pos): Set cmp_it->lookback.
15247 (composition_reseat_it): Check lookback count.
15248 (struct position_record): New struct.
15249 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
15250 (find_automatic_composition): New function.
15251 (composition_adjust_point): Use find_automatic_composition.
15252
15253 * dispextern.h (struct composition_it): New member lookback.
15254
152552008-09-02 Chong Yidong <cyd@stupidchicken.com>
15256
15257 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
15258 if moving by a single line.
15259
152602008-09-02 Andreas Schwab <schwab@suse.de>
15261
15262 * xterm.c (x_delete_display): Fix merge error.
15263
15264 * fileio.c (Fexpand_file_name): Remove unused variables.
15265
152662008-09-02 Eli Zaretskii <eliz@gnu.org>
15267
15268 * fileio.c (Fexpand_file_name): Copy argument `name' into local
15269 storage on all platforms, not just on DOS_NT.
15270
152712008-09-02 Jason Rumney <jasonr@gnu.org>
15272
b8ff72fa
SM
15273 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
15274 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
15275
152762008-09-01 Chong Yidong <cyd@stupidchicken.com>
15277
15278 * xfaces.c (Finternal_set_alternative_font_family_alist)
15279 (Finternal_set_alternative_font_registry_alist): Properly copy
15280 entire alist structure.
15281
152822008-09-01 Kenichi Handa <handa@m17n.org>
15283
d66c0241 15284 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 15285 representative chars of the script is a vector.
d66c0241
JB
15286 (ftfont_list): Handle the case where the representative chars of
15287 the script is a vector.
aac0c6e3
MR
15288
15289 * character.c (syms_of_character): Docstring of
15290 script-representative-chars fixed.
15291
152922008-08-31 Eli Zaretskii <eliz@gnu.org>
15293
15294 * msdos.c (BUILD_CHAR_GLYPH): New macro.
15295 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
15296 the menu. Allocate larger buffer for `text', to account for
15297 possible ^C characters.
15298
152992008-08-31 Martin Rudalics <rudalics@gmx.at>
15300
15301 * xdisp.c (prepare_menu_bars): Don't call
15302 Vwindow_size_change_functions with arg Qt.
15303
153042008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
15305
15306 * font.h (font_range):
15307 * fileio.c (report_file_error):
46e722a9
SM
15308 * composite.c (composition_update_it): Yet another int/Lisp_Object
15309 mixup (YAILOM).
aac0c6e3
MR
15310
153112008-08-30 Glenn Morris <rgm@gnu.org>
15312
15313 * data.c (Fmake_variable_frame_local): Doc fix.
15314
15315 * frame.c (Fmodify_frame_parameters): Doc fix.
15316
153172008-08-30 Eli Zaretskii <eliz@gnu.org>
15318
15319 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
15320 needed by GetTokenInformation.
15321 (w32_system_process_attributes): Check return values of all system
15322 APIs.
15323
15324 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
15325 only when the state changes.
15326 (IT_update_begin, IT_update_end): Add termscript trace.
15327
15328 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
15329 clipboard is unavailable. Set dst to NULL if it doesn't point to
15330 malloc'ed data.
15331 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
15332 passing random values to xfree.
15333
15334 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 15335 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
15336
153372008-08-29 Jason Rumney <jasonr@gnu.org>
15338
15339 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
15340
153412008-08-29 Eli Zaretskii <eliz@gnu.org>
15342
15343 * composite.c (fill_gstring_body): Avoid compiler warnings.
15344
15345 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
15346 LGLYPH_SET_CODE to avoid compiler warnings.
15347
2ae37cf0 15348 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
15349
15350 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
15351
15352 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
15353 LGLYPH_SET_CODE.
15354
153552008-08-29 Kenichi Handa <handa@m17n.org>
15356
15357 * fileio.c (report_file_error): Don't downcase the first character
15358 of errstring if it is still unibyte.
15359
153602008-08-29 Kenichi Handa <handa@m17n.org>
15361
15362 These changes are to re-implement the automatic composition so
15363 that it doesn't use text properties.
15364
15365 * Makefile.in (ftfont.o): Depend on composite.h.
15366 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
15367
15368 * character.h (Vunicode_category_table): Extern it.
15369
15370 * character.c (Vunicode_category_table): New variable.
15371 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
15372
15373 * chartab.c (optimize_sub_char_table): Perform more greedy
15374 optimization.
15375
b8ff72fa
SM
15376 * composite.h (enum composition_method):
15377 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
15378 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
15379 (Vcomposition_function_table): Extern it.
15380 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
15381 (composition_gstring_put_cache, composition_gstring_from_id)
15382 (composition_gstring_p, composition_gstring_width)
15383 (composition_compute_stop_pos, composition_reseat_it)
15384 (composition_update_it, composition_adjust_point): Extern them.
15385 (Fcomposition_get_gstring): EXFUN it.
15386
d66c0241 15387 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
15388 (Vcomposition_function_table)
15389 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
15390 (gstring_hash_table, gstring_work, gstring_work_headers):
15391 New variables.
aac0c6e3
MR
15392 (gstring_lookup_cache, composition_gstring_put_cache)
15393 (composition_gstring_from_id, composition_gstring_p)
15394 (composition_gstring_width, fill_gstring_header)
15395 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
15396 (composition_reseat_it, composition_update_it)
b8ff72fa 15397 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
15398 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
15399 and gstring_work_headers. DEFVAR_LISP composition-function-table.
a73f9c9d 15400 Defsubr composition_get_gstring.
aac0c6e3
MR
15401
15402 * dispextern.h (struct glyph): New union u.cmp. Delete the member
15403 cmp_id.
15404 (struct glyph_string): Delete the member gidx. New members
15405 cmp_id, cmp_from, and cmp_to.
15406 (enum it_method): Delete GET_FROM_COMPOSITION.
15407 (struct composition_it): New struct.
15408 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
15409 Delete c, len, cmp_id, cmp_len in u.comp.
15410
15411 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 15412 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 15413 (enum lglyph_indices): Likewise.
b8ff72fa 15414 (font_range): Adjust extern.
aac0c6e3
MR
15415 (font_fill_lglyph_metrics): Extern it.
15416
15417 * font.c (QCf): New variable.
15418 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
15419 (font_prepare_composition): Delete this function.
15420 (font_range): Type and arguments changed.
15421 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
15422 (font_fill_lglyph_metrics): New function.
b8ff72fa 15423 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 15424 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
15425 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
15426 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
15427
15428 * fontset.h (font_for_char): Extern it.
15429
15430 * fontset.c (font_for_char): New function.
15431
15432 * ftfont.c: Include composite.h.
15433 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 15434 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
15435
15436 * indent.c: Include composite.h and dispextern.h.
15437 (check_composition): Delete this function.
15438 (scan_for_column): Handle composition by
15439 composition_compute_stop_pos, composition_reseat_it, and
15440 composition_update_it.
15441 (compute_motion): Likewise.
15442 (Fvertical_motion): Fix checking of composition.
15443
15444 * keyboard.c (adjust_point_for_property): Check composition by
15445 composition_adjust_point.
15446
b8ff72fa 15447 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
15448 struct glyph_string.
15449
b8ff72fa
SM
15450 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
15451 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
15452 struct glyph.
15453 (produce_composite_glyph): Likewise.
15454
b8ff72fa
SM
15455 * w32term.c (x_draw_composite_glyph_string_foreground):
15456 Adjust for the change of struct glyph_string.
aac0c6e3
MR
15457 (x_draw_glyph_string): Likewise.
15458
15459 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
15460 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
15461
15462 * xdisp.c: Include font.h.
15463 (it_props): Delete the entry for Qauto_composed.
15464 (init_iterator): Initialize it->cmp_it.id to -1.
15465 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 15466 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
15467 (handle_auto_composed_prop): Delete it.
15468 (handle_composition_prop): Handle only static composition.
15469 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
15470 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 15471 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
15472 (pop_it): Likewise.
15473 (get_next_element): Delete next_element_from_composition.
15474 (CHAR_COMPOSED_P): New macro.
15475 (get_next_display_element): For automatic composition, get a face
15476 from the font in the glyph-string.
15477 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 15478 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
15479 (next_element_from_string): Check if the character at the current
15480 position is composed by CHAR_COMPOSED_P.
15481 (next_element_from_buffer): Likewise.
d66c0241
JB
15482 (next_element_from_composition): Adjust for the change of struct it.
15483 Update it->cmp_it.
b8ff72fa
SM
15484 (dump_glyph): Adjust for the change of struct glyph.
15485 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
15486 it and struct glyph. Don't handle automatic composition here.
15487 (fill_gstring_glyph_string): New function.
15488 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 15489 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
15490 (BUILD_GSTRING_GLYPH_STRING): New macro.
15491 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
15492 automatic composition.
b8ff72fa 15493 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 15494 struct glyph.
b8ff72fa 15495 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 15496
b8ff72fa 15497 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
15498 the change of struct glyph_string.
15499 (x_draw_glyph_string): Likewise.
15500
155012008-08-29 Glenn Morris <rgm@gnu.org>
15502
15503 * buffer.c (word-wrap): Doc fix.
15504 * xdisp.c (truncate-partial-width-windows): Doc fix.
15505 Increase default to 50.
15506
155072008-08-29 Chong Yidong <cyd@stupidchicken.com>
15508
15509 * xdisp.c (update_tool_bar_unwind): New function.
15510 (update_tool_bar): Temporarily set selected frame before building
15511 tool-bar items.
15512
155132008-08-28 Michael Albinus <michael.albinus@gmx.de>
15514
15515 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
15516 snprintf, respectively.
15517 (xd_append_arg): Convert strings with Fstring_make_unibyte.
15518
155192008-08-28 Chong Yidong <cyd@stupidchicken.com>
15520
15521 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
15522 LDFLAGS to GNUstep CC invocation.
15523
155242008-08-27 Chong Yidong <cyd@stupidchicken.com>
15525
15526 * indent.c (Fvertical_motion): Revert last change. Handle the
15527 general case where we are moving forward, and PT spans multiple
15528 screen lines.
15529
15530 * eval.c (find_handler_clause): Temporarily increase
15531 max-lisp-eval-depth while printing the backtrace buffer, to
15532 guarantee that help-mode code can run.
15533
155342008-08-27 Eli Zaretskii <eliz@gnu.org>
15535
15536 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
15537 colors under -rv.
15538 (IT_set_frame_parameters): Don't swap foreground and background
15539 colors if `(reverse . t)' is present in the frame properties.
15540 (internal_terminal_init): Call init_frame_faces only for the
15541 initial frame.
15542
155432008-08-27 Andreas Schwab <schwab@suse.de>
15544
15545 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
15546
155472008-08-27 Andreas Schwab <schwab@suse.de>
15548
15549 * search.c (search_buffer): Set char_base to zero only at the end.
15550
155512008-08-27 Kenichi Handa <handa@m17n.org>
15552
b8ff72fa 15553 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
15554
155552008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
15556
15557 * xterm.c (x_term_init): Temporarily hide the partially
15558 initialized terminal while calling vendor-specific-keysyms.
15559
155602008-08-26 Eli Zaretskii <eliz@gnu.org>
15561
15562 * msdos.c (internal_terminal_init): Most initializations done only
15563 once, especially initial_screen_colors[] and termscript open.
15564
155652008-08-26 Chong Yidong <cyd@stupidchicken.com>
15566
15567 * eval.c (Fcondition_case): Doc fix.
15568
15569 * widgetprv.h (EmacsFramePart): Change font member to the new font
15570 struct.
15571
15572 * widget.c: Include character.h and font.h for XSETFONT.
15573 (setup_frame_gcs): Compute X font id from font struct, just once.
15574
155752008-08-26 Eli Zaretskii <eliz@gnu.org>
15576
15577 * term.c (get_named_tty): Fix last change.
15578
155792008-08-26 Chong Yidong <cyd@stupidchicken.com>
15580
15581 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 15582 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
15583
155842008-08-25 Eli Zaretskii <eliz@gnu.org>
15585
15586 * frame.c (do_switch_frame): Mark previously displayed frame as
15587 obscured for FRAME_MSDOS_P frames as well.
15588
155892008-08-24 Eli Zaretskii <eliz@gnu.org>
15590
15591 * frame.c (make_terminal_frame): Initialize f->terminal,
15592 f->terminal->reference_count, and scroll bars on MS-DOS as well.
15593 Set the top frame to newly created frame.
15594 (Fmake_terminal_frame): Reuse the_only_display_info.
15595
15596 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
15597 estimating available memory.
15598
b97439ce 155992008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
15600
15601 * nsterm.m (ns_draw_window_cursor): Don't call
15602 NSDisableScreenUpdates and NSEnableScreenUpdates on
15603 non-NS_IMPL_COCOA systems.
15604
156052008-08-23 Andreas Schwab <schwab@suse.de>
15606
15607 * process.c (procfs_system_process_attributes): Fix use of
15608 uninitialized variables.
15609
156102008-08-23 Eli Zaretskii <eliz@gnu.org>
15611
15612 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
15613
15614 * dispnew.c (init_display): Remove MS-DOS specific conditions for
15615 calling tty-set-up-initial-frame-faces.
15616
b8ff72fa
SM
15617 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
15618 Allow MSDOS frames along with X frames.
aac0c6e3
MR
15619
15620 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
15621 addition to output_termcap.
15622
15623 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
15624
15625 * termchar.h (FRAME_TTY): Support output_msdos_raw.
15626 (struct tty_display_info) [MSDOS]: Add fields related to mouse
15627 highlight.
15628
15629 * process.c [!subprocesses]: Define QCname.
15630 (syms_of_process): Intern and staticpro it.
15631
15632 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
15633 Adjust for changes in encoding/decoding routines.
15634 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
15635 encode_coding and decode_coding.
15636
b8ff72fa 15637 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
15638
15639 * dosfns.c: Include frame.h before termhooks.h.
15640 (dos_cleanup): Use CURTTY ()->termscript instead of a global
15641 variable termscript.
15642
15643 * s/msdos.h (USER_FULL_NAME): Define.
15644 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
15645
15646 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
15647 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
15648 pw->pw_gecos.
15649
15650 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
15651 SELECTED_FRAME as additional (1st) argument.
15652 (tty_read_avail_input): Handle output_msdos_raw in
15653 addition to output_termcap.
15654
15655 * msdos.c: Include frame.h before termhooks.h.
15656 (mouse_on, mouse_off, mouse_moveto, mouse_init)
15657 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
15658 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
15659 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
15660 (IT_set_terminal_modes, IT_reset_terminal_modes)
15661 (IT_set_frame_parameters): Use tty->termscript instead of a global
15662 variable termscript.
15663 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
15664 global variable terminal_coding. Don't refer to
15665 Vnonascii_translation_table.
15666 (internal_terminal_init): Set Vwindow_system in current_kboard.
15667 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
15668 Announce date and time of session start, if termscript is open.
15669 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
15670 term.c:init_tty). Open termscript only of not already open.
15671 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
15672 here instead of dos_ttraw. Don't initialize display if this is an
15673 initial tty. Don't set FRAME_FONT.
15674 (Vwindow_system_version): Bump to 23.
15675 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
15676 is available, set up mouse_position_hook.
15677 (dos_ttraw, IT_set_terminal_modes): If called with initial
15678 terminal, do nothing.
15679 (IT_set_frame_parameters): Handle the Qtty_type frame
15680 parameter by calling internal_terminal_init.
15681 (dos_set_window_size, show_mouse_face)
15682 (clear_mouse_face, IT_note_mode_line_highlight)
15683 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
15684 (dos_rawgetc): Use tty_display_info instead of x_display_info.
15685 (initialize_msdos_display): New function.
15686 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
15687 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
15688 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
15689 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 15690 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
15691 (request_sigio, unrequest_sigio): Don't define, now defined on
15692 sysdep.c.
15693 (IT_write_glyphs): Rewrite to use encode_terminal_code.
15694
15695 * term.c [MSDOS]: Include msdos.h.
15696 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
15697 conditional to DOS_NT. Allow only one call to this function in a
15698 session. Don't allocate a new struct tty_display_info; instead,
15699 reuse the_only_display_info. Call get_tty_size to get screen
15700 dimensions. Call init_baud_rate to set bad_rate.
15701 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
15702 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 15703 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
15704 (get_tty_terminal, get_named_tty, Ftty_type)
15705 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
15706 output_termcap.
b8ff72fa
SM
15707 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
15708 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 15709 only when subprocesses are supported.
aac0c6e3
MR
15710
15711 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
15712 f->output_data.x.
15713 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
15714 terminal devices.
15715
5582fbc7 15716 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
15717 x_output.
15718 (FRAME_FONT): Use output_data.tty.
15719 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
15720 (struct x_display_info): Rename from display_info. Update all users in
15721 msdos.c.
aac0c6e3 15722 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 15723 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
15724 (dos_ttraw): Update prototype.
15725
15726 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
15727 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
15728
157292008-08-23 Jason Rumney <jasonr@gnu.org>
15730
15731 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
15732 (fn_TIFFSetDirectory): New library function used.
15733 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
15734 (tiff_load): Use :index to select among multiple images. Set count
15735 property when multiple images exist.
15736 (gif_format): Use :index, not :image.
15737
157382008-08-23 Chong Yidong <cyd@stupidchicken.com>
15739
15740 * xdisp.c (try_scrolling): Check INT_MAX instead of
15741 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
15742 to obtain INT_MAX.
15743
157442008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
15745
15746 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
15747
157482008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
15749
15750 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
15751 GNUstep library location.
15752
157532008-08-21 Chong Yidong <cyd@stupidchicken.com>
15754
15755 * xfaces.c (x_update_menu_appearance): Check validity of menu font
15756 before using it.
15757
15758 * puresize.h (BASE_PURESIZE): Increase to 1250000.
15759
157602008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
15761
15762 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
15763 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
15764 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
15765 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
15766 (EmacsApp-cursor_blink_handler): Remove declaration.
15767 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
15768 match 01 Feb 2008 changes in xterm.c.
15769 (ns_read_socket): Add cast to avoid warning.
15770 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
15771 GNUstep.
15772
157732008-08-20 Chong Yidong <cyd@stupidchicken.com>
15774
15775 * xselect.c (x_get_foreign_selection): Return nil if desired
15776 selection could not be obtained, instead of signalling an error.
15777
157782008-08-20 David Reitter <david.reitter@gmail.com>
15779
15780 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
15781 * nsterm.m: Remove ns-specific code for cursor blinking.
15782 (ns_draw_window_cursor): Clear cursor properly rather than
15783 redrawing the area. Respect width of bar cursors.
15784 These changes enable the use of generic blink-cursor-mode and
15785 generic cursor types in NS and support smooth cursor movements (do
15786 not blink off after command).
15787 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
15788 Nextstep, too.
15789
157902008-08-19 Kenichi Handa <handa@m17n.org>
15791
15792 * font.c (Vfont_log_deferred): New variable.
15793 (font_add_log): Check Vfont_log_deferred.
15794 (font_deferred_log): New function.
15795
15796 * font.h (font_deferred_log): Extern it.
15797
15798 * fontset.c (reorder_font_vector): Use encoding charset of fonts
15799 for sorting.
15800 (face_for_char): Use deferred log.
15801
158022008-08-18 Kenichi Handa <handa@m17n.org>
15803
15804 * fontset.c (face_for_char): Add font log.
15805
15806 * font.c (font_add_log): Add the font properties :script, :lang,
15807 and :otf in the log.
15808
158092008-08-17 Chong Yidong <cyd@stupidchicken.com>
15810
15811 * xdisp.c: Remove dead code.
15812 (handle_invisible_prop, next_overlay_string): Defer call to
15813 setup_for_ellipsis.
15814 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
15815
158162008-08-15 Chong Yidong <cyd@stupidchicken.com>
15817
15818 * xfaces.c (lookup_derived_face): Properly handle possible zero
15819 return value of get_lface_attributes.
15820 (merge_faces): Don't tell lookup_derived_face to signal an error
15821 if face is not found.
15822
15823 * dired.c (Fdirectory_files): Doc fix.
15824
15825 * process.c (make_process): Initialize kill_without_query struct
15826 member.
15827
158282008-08-15 Eli Zaretskii <eliz@gnu.org>
15829
15830 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
15831 Alternative calculation of totphys for Visual Studio 6.
15832
15833 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
15834
15835 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
15836 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
15837 All users changed.
15838 (stat): Only root directory passed to GetDriveType. Allow RAM
15839 disk as well as local fixed disk when w32-get-true-file-attributes
15840 is set to `local'.
15841 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
15842 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
15843 (w32_cached_id, w32_add_to_cache): New functions.
15844 (get_name_and_id): Look account names in the cache before calling
15845 lookup_account_sid.
15846 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
15847 New initialization flags.
15848 (globals_of_w32): Initialize them to zero.
15849 (w32_system_process_attributes): Use w32_cached_id and
15850 w32_add_to_cache.
15851
158522008-08-14 Lawrence Mitchell <wence@gmx.li>
15853
15854 * lread.c (Fread_char, Fread_char_exclusive): If no character
15855 event is read before timeout is reached, return nil, rather than
15856 converting to a number.
15857
158582008-08-14 Chong Yidong <cyd@stupidchicken.com>
15859
15860 * fns.c (use_dialog_box): Doc fix.
15861
15862 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
15863 on OS X.
15864
158652008-08-13 Chong Yidong <cyd@stupidchicken.com>
15866
15867 * frame.c (Qns_parse_geometry): New var.
15868 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
15869
158702008-08-11 Chong Yidong <cyd@stupidchicken.com>
15871
15872 * xdisp.c (x_produce_glyphs): Handle the case when font has no
15873 space character in calculating tabs.
15874
158752008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
15876
15877 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
15878
158792008-08-10 Glenn Morris <rgm@gnu.org>
15880
15881 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
15882 silence gcc "limited range of data type" warnings in some
15883 make_fixnum_or_float calls.
15884
158852008-08-09 Eli Zaretskii <eliz@gnu.org>
15886
15887 * w32.c (w32_system_process_attributes): If the process does not
15888 exist, return nil.
15889
15890 * w32.c: Include thelp32.h, psapi.h and coding.h.
15891 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
15892 declarations.
15893 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
15894 (Process32Next_Proc): New typedefs.
15895 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
15896 (g_b_init_process32_next, g_b_init_open_thread_token)
15897 (g_b_init_impersonate_self, g_b_init_revert_to_self)
15898 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
15899 (g_b_init_get_process_working_set_size)
15900 (g_b_init_global_memory_status_ex): New static variables.
15901 (globals_of_w32): Initialize them.
15902 (create_toolhelp32_snapshot, process32_first, process32_next)
15903 (open_thread_token, impersonate_self, revert_to_self)
15904 (get_process_memory_info, get_process_working_set_size)
15905 (global_memory_status, global_memory_status_ex): New wrapper
15906 functions.
15907 (w32_list_system_processes, w32_system_process_attributes)
15908 (enable_privilege, restore_privilege, ltime, process_times):
15909 New functions.
15910 (convert_time_raw): New function.
15911 (convert_time): Remove conversion of FILETIME into time in 100
15912 nsec units, call convert_time_raw instead.
15913
15914 * process.h (w32_list_system_processes, w32_system_process_attributes):
15915 Add prototypes.
15916 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
15917 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
15918 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
15919 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
15920
15921 * process.c (Fsystem_process_attributes): Doc fix.
15922
159232008-08-08 Chong Yidong <cyd@stupidchicken.com>
15924
15925 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
15926 a continued multi-char glyph; if so, advance to the actual glyph.
15927
159282008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
15929
15930 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
15931
15932 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
15933 (.m.o): Use it.
15934 * config.in: Regenerate.
15935
159362008-08-07 Chong Yidong <cyd@stupidchicken.com>
15937
15938 * xdisp.c (redisplay_window): Revert last change.
15939 (try_window): Check bottom scroll margin too.
15940
159412008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
15942
15943 * config.in: Regenerate.
15944
15945 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
15946 -list-load-path-shadows'.
15947 (nsgui.h): Reduce number of things depending on it.
15948
159492008-08-06 Chong Yidong <cyd@stupidchicken.com>
15950
15951 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
15952 instead of window-end which does the wrong thing at eob.
15953 (try_cursor_movement): Minor optimization.
15954 (redisplay_window): If scroll margin is defined, don't assume
15955 window doesn't need scrolling.
15956
159572008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
15958
15959 * config.in: Regenerate.
15960
15961 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
15962 (mostlyclean): Don't delete *.d under NS.
15963
15964 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
15965
159662008-08-06 Kenichi Handa <handa@m17n.org>
15967
15968 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
15969
159702008-08-06 Andreas Schwab <schwab@suse.de>
15971
15972 * config.in: Regenerate.
15973
159742008-08-05 Chong Yidong <cyd@stupidchicken.com>
15975
15976 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
15977 forcing a window start.
15978
15979 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
15980 (auto_save_1): Update modtime when auto-save-list-file-name is on.
15981
159822008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
15983
15984 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
15985 argument.
15986
159872008-08-05 Juanma Barranquero <lekktu@gmail.com>
15988
15989 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
15990 <scroll-down-aggressively, before-change-functions>:
15991 <after-change-functions>: Reflow docstrings.
15992
159932008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
acd0102a 15994 Ken Raeburn <raeburn@gnu.org>
aac0c6e3
MR
15995
15996 Dock menu customization, based on a patch by Ken Raeburn, plus some
15997 other fixes.
15998 * nsmenu.m (dockMenu): New variable.
15999 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
16000
16001 * nsterm.h (dockMenu): Declare.
16002
16003 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
16004 (ns_term_init): Initialize dockMenu.
16005 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
16006 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
16007 left.
16008
16009 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
16010
160112008-08-04 Chong Yidong <cyd@stupidchicken.com>
16012
16013 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
16014
16015 * config.in: Regenerate.
16016
160172008-08-04 Seiji Zenitani <zenitani@mac.com>
16018
16019 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
16020
160212008-08-04 Chong Yidong <cyd@stupidchicken.com>
16022
16023 * nsterm.h (find_and_call_menu_selection): Fix prototype.
16024
160252008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
16026
16027 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
16028
16029 * keyboard.h: Comment an #endif.
16030
16031 * lisp.h (have_menus_p): Adjust comment.
16032
16033 * menu.c (find_and_return_menu_selection): Fix comparison with
16034 client_data.
16035
16036 * nsmenu.m (popup_activated_flag): New variable.
16037 (popup_activated): New function.
16038 (menu-or-popup-active-p): New exported lisp definition.
16039 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
16040 when popup done.
16041 (ns_popup_dialog): Set popup_activated_flag.
16042
16043 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
16044 version for GNUstep (handled by conditional typedef in nsterm.m).
16045 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
16046 in rgb.txt).
16047
16048 * process.c (init_process): Use DARWIN_OS, not DARWIN.
16049
16050 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
16051
16052 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
16053
16054 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
16055 shortcircuit if popup_activated like GTK and X toolkit.
16056
16057 * m/inter386.h: Change DARWIN to DARWIN_OS.
16058
16059 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
16060 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
bba3e508
SM
16061 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood.
16062 Expand comment on NO_SOCK_SIGIO.
aac0c6e3
MR
16063
160642008-08-03 Chong Yidong <cyd@stupidchicken.com>
16065
16066 * nsterm.m (windowDidResize): Remove stopModal call.
16067
160682008-08-03 Andreas Schwab <schwab@suse.de>
16069
16070 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
16071 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
16072
160732008-08-02 Chong Yidong <cyd@stupidchicken.com>
16074
16075 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
16076 Don't use uninitialized pointer variable when using getrlimit.
16077
160782008-08-02 Jason Rumney <jasonr@gnu.org>
16079
16080 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
16081
160822008-08-02 Eli Zaretskii <eliz@gnu.org>
16083
16084 * alloc.c (NSTATICS): Bump to 0x640.
16085
16086 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
16087
16088 * lisp.h: Add prototype for directory_files_internal.
16089
16090 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
16091 New functions.
16092 (syms_of_process): Defsubr them. Add initializations for various
16093 Q* symbols used in procfs_system_process_attributes.
16094 (procfs_list_system_processes, procfs_system_process_attributes)
16095 [HAVE_PROCFS]: New functions.
16096 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
16097 (procfs_get_total_memory): New functions.
16098
160992008-08-01 Juanma Barranquero <lekktu@gmail.com>
16100
16101 * xfaces.c (Fx_load_color_file): Fix previous change;
16102 it is #ifdef WINDOWSNT, not WINDOWS_NT.
16103
161042008-08-01 Michael Albinus <michael.albinus@gmx.de>
16105
16106 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
16107
161082008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
16109
16110 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
16111
161122008-08-01 Chong Yidong <cyd@stupidchicken.com>
16113
16114 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
16115
16116 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
16117 define NSApplicationDelegateReplySuccess.
16118 (EmacsView -converstationIdentifier): Use long instead of
16119 NSInteger for GNUstep, since it doesn't have NSInteger.
16120
16121 * xmenu.c: Revert last change.
16122
16123 * keyboard.h: Fix last change.
16124
161252008-08-01 Juanma Barranquero <lekktu@gmail.com>
16126
16127 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
16128 on Windows.
16129
161302008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
16131
16132 Warning clearing and clean-up in NS port.
16133 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
16134 Add prototypes.
16135 * nsgui.h (FACE_DEFAULT): Remove, unused.
16136 (XGCValues): Change colors to unsigned long.
16137 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
16138 nsterm.m.
16139 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
16140 (ns_list_fonts): Remove, unused.
16141 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
16142 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
16143 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
16144 (nsfont_draw): Compare face colors to 0, not nil.
16145 * nsmenu.m (struct widget_value): Drop unneeded declaration.
16146 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
16147 (-addSubmenuWithTitle:): Use NSMenuItem class.
16148 (ns_popup_menu): Use NO, not NULL, for enabled setting.
16149 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
16150 (ns_clip_to_row): Make gc arg a BOOL.
16151 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
16152 ns_clip_to_row() call.
16153 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
16154 used). Cast FRAME_FONT assignments.
16155 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
16156 (ns_string_to_lispmod): Change arg to const char.
16157 (ns_term_init): Use NSMenuItem class.
16158 (EmacsApp -openFile:): Move to different section of file.
16159 (EmacsApp -application:openFiles:): Don't return a value, call
16160 -replyToOpenOrPrint:.
16161 (EmacsView -keyDown:): Fix up cast.
16162 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
16163 (EmacsView -menuDown:): Cast tag in call to
16164 find_and_call_menu_selection().
16165 (ns_list_fonts): Remove, unused.
16166 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
16167 (ns_fontname_to_xlfd): Make static.
16168 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
16169 Remove prototypes (now in keyboard.h).
16170 (next_menubar_widget_id): Remove, unused.
16171 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
16172 Remove prototypes (now in keyboard.h).
16173 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
16174
161752008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
16176
16177 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
16178 (floatfns.o): Depend on syssignal.h.
16179 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
16180
16181 * systty.h: Fix previous change that removed BSD_TERMIOS.
16182 Add comments to #ifdefs.
16183
161842008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
16185
16186 * w32fns.c (w32-load-color-file): Remove.
16187 (x-open-connection): Use renamed Fx_load_color_file.
16188 * xfaces.c (x-load-color-file): Add.
16189 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
16190 Emacs.clr.
16191 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
16192
161932008-07-31 Michael Albinus <michael.albinus@gmx.de>
16194
16195 * dbusbind.c (Fdbus_call_method_asynchronously)
16196 (Fdbus_method_error_internal): New defuns.
16197 (xd_read_message): Handle also reply messages.
16198 (Vdbus_registered_functions_table): Extend docstring.
16199
162002008-07-31 Juanma Barranquero <lekktu@gmail.com>
16201
16202 * keyboard.c (gobble_input): Fix previous change.
16203
162042008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
16205
16206 * bitmaps/README:
16207 * xfns.c:
16208 * termcap.c:
16209 * term.c:
16210 * syswait.h:
16211 * systty.h:
16212 * systime.h:
16213 * syssignal.h:
16214 * sysdep.c:
16215 * process.h:
16216 * process.c:
16217 * print.c:
16218 * ndir.h:
16219 * lread.c:
16220 * keyboard.c:
16221 * getpagesize.h:
16222 * floatfns.c:
16223 * fileio.c:
16224 * emacs.c:
16225 * doc.c:
16226 * dispnew.c:
16227 * dired.c:
16228 * data.c:
16229 * callproc.c:
16230 * buffer.c:
16231 * README:
16232 * Makefile.in:
16233 * s/template.h:
16234 * s/msdos.h:
16235 * m/vax.h: Remove VMS support.
16236 * s/vms.h:
16237 * vlimit.h:
16238 * uaf.h:
16239 * temacs.opt:
16240 * param.h:
16241 * ioctl.h: Remove file.
16242
162432008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
16244
16245 * s/ms-w32.h (MULTI_KBOARD): Remove.
16246 * xterm.c:
16247 * xselect.c:
16248 * xfns.c:
16249 * window.c:
16250 * w32term.c:
16251 * w32fns.c:
16252 * terminal.c:
16253 * termhooks.h:
16254 * term.c:
16255 * sysdep.c:
16256 * keyboard.h:
16257 * keyboard.c:
16258 * frame.h:
16259 * frame.c:
16260 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
16261 * config.in: Regenerate.
16262
162632008-07-30 Jason Rumney <jasonr@gnu.org>
16264
16265 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
16266
16267 * w32font.c (w32font_encode_char): Leave as unicode if in range.
16268 (w32font_open_internal): Get unicode version of textmetrics.
16269 Don't enable or disable glyph indices here.
16270 (w32font_open): Disable use of glyph indices.
16271
16272 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
16273
162742008-07-30 Chong Yidong <cyd@stupidchicken.com>
16275
16276 * minibuf.c (Vread_buffer_function): Doc fix.
16277
162782008-07-30 John Paul Wallington <jpw@pobox.com>
16279
16280 * minibuf.c (read_buffer_completion_ignore_case): New var.
16281 (Fread_buffer): Use it.
16282
162832008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
16284
16285 * systty.h (sensemode): Remove empty #if. Remove reference to
16286 BSD_TERMIOS, unused.
16287
16288 * sysdep.c: Remove reference to DGUX.
16289 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
16290
16291 * config.in: Regenerate.
16292
162932008-07-30 Jason Rumney <jasonr@gnu.org>
16294
16295 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
16296
162972008-07-29 Jason Rumney <jasonr@gnu.org>
16298
16299 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
16300 is populated.
16301 (uniscribe_encode_char): Always use uniscribe.
16302 Avoid using context if cache is populated.
16303
163042008-07-29 Jan Djärv <jan.h.d@swipnet.se>
16305
16306 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
16307 open menu.
16308
16309 * gtkutil.c (menu_nav_ended): Remove.
16310 (create_menus): Remove signal connect for menu_nav_ended.
16311
163122008-07-28 Chong Yidong <cyd@stupidchicken.com>
16313
16314 * xdisp.c (redisplay_window): Check return value of
16315 compute_window_start_on_continuation_line before forcing a window
16316 start.
16317
163182008-07-28 Jason Rumney <jasonr@gnu.org>
16319
16320 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
16321
16322 * w32term.c (w32_enable_unicode_output, cleartype_active):
16323 Remove obsolete display options.
16324 (x_draw_glyph_string_background): Don't use old cleartype_active
16325 workaround.
16326 (w32_initialize): Remove cleartype_active initialization.
16327 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
16328
163292008-07-28 Andreas Schwab <schwab@suse.de>
16330
16331 * lisp.h (init_weak_hash_tables, syms_of_font)
16332 (xd_read_queued_messages, syms_of_dbusbind): Declare.
16333 (remove_hash_entry): Don't declare.
16334 * eval.c (maybe_call_debugger): Make static and move before use.
16335 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
16336 * xdisp.c: Include "gtkutil.h" if USE_GTK.
16337 * xterm.h (x_set_frame_alpha): Declare.
16338
163392008-07-28 Jan Djärv <jan.h.d@swipnet.se>
16340
16341 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
16342 (create_menus): Connect selection-done to menu_nav_ended.
16343
163442008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
16345
16346 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
16347 Set Vx_resource_name to a fallback. Replace read of 'buffered'
16348 parameter with read of 'alpha' one.
16349 (Qns_frame_parameter): Remove.
5582fbc7 16350 * nsselect.m (selection-coding-system)
aac0c6e3
MR
16351 (next-selection-coding-system, Vselection_coding_system)
16352 (Vnext_selection_coding_system): Drop.
16353
163542008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
16355
16356 * nsfns.m (do-applescript, do_applescript): Rename to
16357 ns-do-applescript, ns_do_applescript, and move within file.
16358
163592008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
16360
16361 Remove support for Mac Carbon.
16362 * mactoolbox.c:
16363 * macterm.h:
16364 * macterm.c:
16365 * macselect.c:
16366 * macmenu.c:
16367 * macgui.h:
16368 * macfns.c:
16369 * mac.c: Remove file.
16370 * s/darwin.h:
16371 * m/intel386.h:
16372 * xfaces.c:
16373 * xdisp.c:
16374 * window.c:
16375 * tparam.c:
16376 * termhooks.h:
16377 * termcap.c:
16378 * term.c:
16379 * syssignal.h:
16380 * sysselect.h:
16381 * sysdep.c:
16382 * process.c:
16383 * lread.c:
16384 * lisp.h:
16385 * keyboard.c:
16386 * image.c:
16387 * fringe.c:
16388 * frame.h:
16389 * frame.c:
16390 * fontset.c:
16391 * font.h:
16392 * font.c:
16393 * fns.c:
16394 * fileio.c:
16395 * emacs.c:
16396 * dispnew.c:
16397 * dispextern.h:
16398 * config.in:
16399 * atimer.c:
2ae37cf0 16400 * Makefile.in: Remove code for Carbon.
aac0c6e3 16401
f0131492 164022008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
16403
16404 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
16405
164062008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16407
16408 * macterm.h (kCGBitmapByteOrder32Host): New define for
16409 non-universal SDKs.
16410
16411 * image.c (mac_create_cg_image_from_image, image_load_image_io)
16412 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
16413
16414 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
16415 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
16416
164172008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
16418
16419 * w32inevt.c: Include dispextern.h.
16420
164212008-07-26 Andreas Schwab <schwab@suse.de>
16422
16423 * print.c (print_object): Fix off-by-one in last change.
16424
164252008-07-25 Juanma Barranquero <lekktu@gmail.com>
16426
16427 * term.c (syms_of_term): Don't initialize default_orig_pair,
16428 default_set_foreground and default_set_background on Windows.
16429
164302008-07-25 Jason Rumney <jasonr@gnu.org>
16431
16432 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
16433 ScriptItemize. Clean up return value checking. Remove unused
16434 variables.
16435 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
16436 shaping engine.
16437
16438 * w32font.c (w32font_has_char): Handle the case where we can't
16439 determine the script for a character.
16440
164412008-07-25 Chong Yidong <cyd@stupidchicken.com>
16442
16443 * term.c (syms_of_term): Initialize default_orig_pair,
16444 default_set_foreground, and default_set_background.
16445
16446 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
16447 clash (bug#86).
16448 (getloadavg): Callers changed.
16449
16450 * image.c (svg_load_image): Fix last change.
16451 (svg_load_image): Use rsvg_handle_get_dimensions to check that
16452 image size is valid. Use g_object_unref instead of deprecated
16453 rsvg_handle_free to free rsvg handle.
16454 (x_from_xcolors): Don't initialize pixmap (silence compiler).
16455
164562008-07-25 Jason Rumney <jasonr@gnu.org>
16457
16458 * w32font.c (w32font_encode_char): Encode characters outside BMP as
16459 surrogates before looking up glyph index.
16460 (w32font_text_extents): Encode as surrogates if falling back to
16461 functions that need UTF-16 wide chars.
16462
16463 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
16464 BMP as surrogates before looking up glyph index.
16465
164662008-07-25 Chong Yidong <cyd@stupidchicken.com>
16467
16468 * image.c (svg_load_image): Check for failure in return value of
16469 rsvg_handle_get_pixbuf. Free rsvg handle when done.
16470
164712008-07-25 Jason Rumney <jasonr@gnu.org>
16472
16473 * w32font.c (Fx_select_font): Reverse sense of second arg.
16474
164752008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
16476
16477 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
16478 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
16479
16480 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
16481 (PURESIZE): Use it.
16482
164832008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
16484
16485 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
16486 * m/alpha.h (TEXT_END):
16487 * m/ibmrs6000.h (TEXT_END):
16488 * m/macppc.h (TEXT_END):
16489 * s/darwin.h (TEXT_END):
16490 * s/msdos.h (TEXT_END): Remove, unused.
16491 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
16492 * s/cygwin.h: Remove comment.
16493
16494 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
16495 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
16496 * m/intel386.h (DOT_GLOBAL_START):
16497 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
16498 (USG): Remove, file not used on USG platforms.
16499
16500 * Makefile.in (HAVE_X11): Remove empty #else.
16501
165022008-07-24 Andreas Schwab <schwab@suse.de>
16503
16504 * fileio.c (Finsert_file_contents): Properly adjust undo list
16505 after format conversion.
16506
165072008-07-24 Jan Djärv <jan.h.d@swipnet.se>
16508
16509 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
16510 (menu_nav_ended): Remove.
16511 (create_menus): Remove signal connect for menu_nav_ended.
16512 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
16513 create_menus.
16514 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
16515
165162008-07-23 Jason Rumney <jasonr@gnu.org>
16517
16518 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
16519 with opened font.
16520 (w32font_open): Set font type to gdi.
16521
16522 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
16523
165242008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
16525
16526 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
16527 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
16528 defines it.
16529 * unexec.c (ADDR_CORRECT): Define unconditionally.
16530
16531 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
16532
16533 * unexec.c: Remove code depending on !COFF and USG, the file is
16534 not used for such systems.
16535
16536 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
16537 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
16538 (LD_SWITCH_SYSTEM_1): Remove, update users.
16539
16540 * s/darwin.h (DATA_END):
16541 * m/intel386.h (DATA_END):
16542 * m/ibmrs6000.h (DATA_END):
16543 * m/alpha.h (DATA_END): Remove, unused.
16544
16545 * config.in: Regenerate.
16546 * s/ms-w32.h (subprocesses): Define unconditionally.
16547 * s/template.h (subprocesses): Update comment.
16548 * s/vms.h (subprocesses):
16549 * s/usg5-4.h (subprocesses):
16550 * s/hpux10-20.h (subprocesses):
16551 * s/gnu-linux.h (subprocesses):
16552 * s/cygwin.h (subprocesses):
16553 * s/bsd-common.h (subprocesses):
16554 * s/aix4-2.h (subprocesses):
16555 * s/darwin.h (subprocesses): Do not define, defined by default now.
16556
16557 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
16558 Remove all references.
16559 (temacs): Add GNUstep specific ld flags.
16560
16561 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
16562 similarly to what X does.
16563
165642008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
16565
16566 * nsfns.m (x-list-fonts): Remove.
16567 (syms_of_nsfns): Drop the x-list-fonts declaration.
16568 * nsterm.m: Get rid of remaining "//" comments.
16569
165702008-07-22 Chong Yidong <cyd@stupidchicken.com>
16571
16572 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
16573
16574 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
16575 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
16576 (Fns_own_selection_internal, Fx_disown_selection_internal)
16577 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
16578
16579 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
16580 ... */' style of docstrings. Doc fixes.
16581
165822008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
16583
16584 * terminfo.c (UP, BC, PC): Undo previous change.
16585
16586 * nsfns.m: Rename ns prefixed functions/variables to the
16587 corresponding x versions. Update references.
16588
165892008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
16590
16591 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
16592
165932008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
16594
16595 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
16596 Remove forwarding functions.
16597 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
16598 non-static.
16599 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
16600 non-static.
16601 (ns_frame_parm_handlers): Use the new names.
16602 (syms_of_nsfns): Move to the end of file.
16603
16604 * nsterm.m (syms_of_nsterm): Move to the end of file.
16605
16606 * dispnew.c (init_display): Remove code for X10.
16607
166082008-07-22 Jason Rumney <jasonr@gnu.org>
16609
16610 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
16611 bare drive.
16612
166132008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
16614
16615 * nsterm.m (syms_of_nsterm): Remove debugging println.
16616
166172008-07-22 David Reitter <david.reitter@gmail.com>
16618
16619 * nsfns.m (do_applescript, F_do_applescript): NS version of the
16620 Carbon implementation of the same functionality: execute arbitrary
16621 AppleScript code.
16622
166232008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
16624
16625 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
16626 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
16627 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
16628 (Fx_display_mm_height, Fx_display_mm_width)
16629 (Fx_display_backing_store, Fx_display_visual_class)
16630 (Fx_display_save_under, Fx_open_connection)
16631 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
16632 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
16633 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
16634 (Fx_display_pixel_width, Fx_display_pixel_height)
16635 (Fx_display_usable_bounds, Fx_display_planes)
16636 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
16637 ... */' style of docstrings.
16638
166392008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
16640
16641 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
16642 on this platform.
16643 (mips):
16644 * m/iris4d.h (mips): Do not define.
16645 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
16646
16647 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
16648
16649 * image.c:
16650 * nsfns.m:
16651 * nsselect.m:
16652 * nsterm.h:
16653 * nsterm.m: Rename ns prefixed functions/variables to the
16654 corresponding x versions. Update references.
16655
16656 * m/ibms390x.h (NO_REMAP): Do not undefine.
16657
16658 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
16659
166602008-07-21 Chong Yidong <cyd@stupidchicken.com>
16661
16662 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
16663 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
16664 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
16665 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
16666 (Fns_display_mm_height, Fns_display_mm_width)
16667 (Fns_display_backing_store, Fns_display_visual_class)
16668 (Fns_display_save_under, Fns_open_connection)
16669 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
16670 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
16671 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
16672 (Fns_display_pixel_width, Fns_display_pixel_height)
16673 (Fns_display_usable_bounds, Fx_display_planes)
16674 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
16675
166762008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
16677
16678 * print.c (print_object): Check print_depth before searching for
16679 circularities.
16680
166812008-07-21 Michael Albinus <michael.albinus@gmx.de>
16682
16683 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
16684 only sprintf.
16685
166862008-07-21 Kenichi Handa <handa@m17n.org>
16687
16688 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
16689
166902008-07-20 Andreas Schwab <schwab@suse.de>
16691
16692 * syntax.c (find_start_pos, find_start_value)
16693 (find_start_value_byte, find_start_begv, find_defun_start)
16694 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
16695
166962008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
16697
16698 * s/sol2-3.h: Insert contents of s/sol2.h.
16699 (LD_SWITCH_SYSTEM): Remove redundant definition.
16700 * s/sol2.h: Remove, unused.
16701
167022008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
16703
16704 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
16705
167062008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
16707
16708 * Makefile.in (ns_appdir): Fix typo in find command.
16709
167102008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
16711
16712 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
16713
16714 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
16715 added not supported anymore.
16716
16717 * s/usg5-4-2.h (LIBS_SYSTEM):
16718 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
16719
16720 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
16721 * s/lynxos.h (GETPGRP_NO_ARG):
16722 * s/hpux10-20.h (NO_SIOCTL_H):
16723 * s/gnu.h (GETPGRP_NO_ARG):
16724 * s/gnu-linux.h (NO_SIOCTL_H):
16725 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
16726 * s/cygwin.h (GETPGRP_NO_ARG):
16727 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
16728 (C_DEBUG_SWITCH): Remove duplicate definition.
16729
16730 * m/ibms390.h: Remove boilerplate comments.
16731
16732 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
16733
16734 * process.c (HAVE_SERIAL): Consolidate ifdefs.
16735 (wait_reading_process_output): Remove code for SunOS, platform not
16736 supported anymore. Use SOLARIS2 instead of sun.
16737
167382008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
16739
16740 * font.c (font_open_by_name): Under NS, default lface height to zero.
16741 (font_open_for_lface): Under NS, set size based on frame fontsize.
16742 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
16743 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
16744
167452008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
16746
16747 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
16748 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
16749 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
16750 YES/NO.
16751 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
16752 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
16753 * Makefile.in (clean): Clear out build destination dir.
16754
167552008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
16756
16757 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
16758 xterm, xselect.
16759 * lisp.h: Remove declaration of hash_remove.
16760 * nsgui.h: Remove redefinitions of hash_remove.
16761 * fns.c (hash_remove): Rename to hash_remove_from_table.
16762
167632008-07-19 Seiji Zenitani <zenitani@mac.com>
16764
16765 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
16766 strdup() the family UTF8String before modifying it.
16767
167682008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
16769
16770 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
16771 NS_FACE_BACKGROUND with 0 instead of nil.
16772 * nsfont.m (nsfont_draw): Same.
16773
167742008-07-19 Chong Yidong <cyd@stupidchicken.com>
16775
16776 * nsfns.m (ns_set_background_color): Fix crash.
16777
167782008-07-18 Chong Yidong <cyd@stupidchicken.com>
16779
16780 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
16781
167822008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
16783
16784 * puresize.h (BASE_PURESIZE): Increase to 1240000.
16785
167862008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16787
16788 * gtkutil.c: Include <config.h> instead of "config.h".
16789
16790 * lisp.h (Foverlay_buffer): Add EXFUN.
16791
16792 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
16793 child process to complete child_setup. Undo 2005-09-21 change.
16794
16795 * s/darwin.h: Mention setsid after vfork.
16796
167972008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16798
16799 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
16800 Depend on macgui.h.
16801
16802 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
16803 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
16804
16805 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
16806 and f19.
16807 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
16808
16809 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
16810 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
16811 Remove enumerators.
16812
16813 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
16814 Check if FACE_FROM_ID returns NULL.
16815
168162008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
16817
16818 * w32inevt.c (change_frame_size): Remove extern declaration.
16819 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
16820 change_frame_size.
16821
168222008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
16823
16824 * getloadavg.c: Revert last change (2008-07-15).
16825
168262008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
16827
16828 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 16829 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
16830 from configure.
16831
168322008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
16833
16834 * s/sol2.h:
16835 * s/sol2-4.h: Reorganize conditionals.
16836
16837 * ecrt0.c: Remove code depending on m68000, not used anymore.
16838
16839 * fns.c (hash_remove): Make static.
16840 * lisp.h (hash_remove): Don't prototype.
16841
16842 * m/ibmrs6000.h:
16843 * m/ibms390x.h:
16844 * m/macppc.h: Remove boilerplate comments.
16845
16846 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
16847 Solaris, which does not need them.
16848
16849 * m/vax.h: Remove comments about unsupported systems.
16850
16851 * s/darwin.h: Reorganize ifdefs.
16852
168532008-07-17 Andreas Schwab <schwab@suse.de>
16854
16855 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
16856
168572008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
16858
16859 Use SDATA. Follow coding convention of placing operators at
16860 beginning of next line rather than end of previous line, and placing
16861 spaces around infix operators.
16862
16863 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
16864 in case it was defined already.
16865 USE @GNUSTEP_MAKEFILES@ rather than envvars.
16866 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
16867 ns_default.
16868 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
16869 Lisp_Objects.
16870 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
16871 (ns_defined_color, ns_color_to_lisp): Declare.
16872 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
16873 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
16874 it's accepted even with USE_LISP_UNION_TYPE.
16875 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
16876 (update_frame_tool_bar): Remove apparently obsolete tests for
16877 non-integerness of f->tool_bar_lines.
16878 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
16879 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
16880 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
16881 (nsfont_open): Don't confuse NULL for Qnil.
16882 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
16883 * menu.h (find_and_call_menu_selection):
16884 * menu.c (find_and_call_menu_selection): Use just int for vector size.
16885 (find_and_return_menu_selection): Always return something.
16886 * frame.h: Include dispextern.h for Display_Info.
16887 (display_x_get_resource): Declare.
16888
168892008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
16890
16891 * syntax.c: Remove stdio.h include accidentally introduced in
16892 Emacs.app commit.
16893 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
16894 NS_IMPL_COCOA.
16895 * keyboard.c (handle_async_input, input_available_signal): Remove
16896 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
16897
168982008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
16899
16900 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
16901 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
16902 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
16903 Use SDATA.
16904
16905 * keymap.c: Remove all NS-specific code.
16906 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
16907 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
16908 where_is_preferred_modifier, return a different value depending on how
16909 preferred is the binding.
16910 (where_is_internal): Adjust accordingly.
16911 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
16912 Adjust to new preferred_sequence_p.
16913 (syms_of_keymap): Declare `where-is-preferred-modifier'.
16914 * keyboard.c (parse_solitary_modifier): Not static any more.
16915 * keyboard.h (parse_solitary_modifier): Declare.
16916
169172008-07-16 Andreas Schwab <schwab@suse.de>
16918
16919 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
16920 of easymenu.
16921
169222008-07-16 Chong Yidong <cyd@stupidchicken.com>
16923
16924 * xdisp.c (move_it_in_display_line): Account for word wrap, so
16925 that we don't move off the line.
16926
169272008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
16928
16929 * keyboard.c (Qsuper): Remove.
16930 (parse_menu_item): Don't call where_is_internal specially for NS.
16931
169322008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
16933
16934 * s/gnu-linux.h: Remove boilerplate comments.
16935
16936 * m/alpha.h (__ELF__): Consolidate conditions.
16937
16938 * m/m68k.h (linux): Use GNU_LINUX instead.
16939 Remove boilerplate comments.
16940
16941 * m/intel386.h: Undo refactoring from previous change.
16942 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
16943 too, remove dead code.
16944 (linux): Use GNU_LINUX instead.
16945
169462008-07-16 Jason Rumney <jasonr@gnu.org>
16947
16948 * w32gui.h: Repeat 26 June changes lost by last change.
16949
169502008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
16951
16952 * systty.h: Remove code for Aix on 386, unsupported platform.
16953
16954 * s/ms-w32.h: Remove boilerplate comments.
16955 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
16956
16957 * s/gnu-linux.h (TERM): Remove support.
16958 (HAVE_SYSVIPC): Remove, unused.
16959 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
16960 for this system.
16961
16962 * process.c: Remove support for IRIS, unused.
16963 Remove support for TERM, not relevant anymore.
16964
16965 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
16966 used with the definition.
16967
16968 * s/aix4-2.h (static): Do not undef.
16969
16970 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
16971 only used on Aix.
16972 (HAVE_SYSVIPC): Remove, unused.
16973
16974 * m/hp800.h (CANNOT_DUMP): Do not undef.
16975
16976 * m/alpha.h: Fix comment.
16977
16978 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
16979 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
16980 used by this configuration.
16981 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
16982 * unexec.c: Remove code depending on HPUX and
16983 USG_SHARED_LIBRARIES, not used with this file. Remove code
16984 depending on IRIS, unused. Remove if 0-ed code.
16985
16986 * s/template.h: Remove comments about static.
16987
16988 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
16989 Remove if 0-ed code.
16990 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
16991 were the same as the default.
16992 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
16993 Remove boilerplate comments.
16994 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
16995 (HAVE_SYSVIPC): Remove, unused.
16996 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
16997
16998 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
16999 Remove boilerplate comments.
17000 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
17001 Remove boilerplate comments.
17002 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
17003 Remove boilerplate comments.
17004 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
17005
17006 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
17007 USG systems which do not use DATA_SEG_BITS.
17008 Refactor code. Remove boilerplate comments.
17009
17010 * m/ibms390.h:
17011 * m/m68k.h:
17012 * s/bsd-common.h:
17013 * s/cygwin.h:
17014 * s/darwin.h:
17015 * s/freebsd.h:
17016 * s/gnu.h:
17017 * s/msdos.h: Remove boilerplate comments.
17018
17019 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 17020 do not use this file.
aac0c6e3
MR
17021 (IRIS_4D): Remove, unused.
17022
17023 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 17024 do not use this file.
aac0c6e3
MR
17025 (SIGN_EXTEND_CHAR):
17026 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
17027 * unexmips.c: Remove file, unused.
17028
17029 * editfns.c (Fuser_full_name): Replace the only use of
17030 USER_FULL_NAME with its value.
17031 * config.in: Regenerate.
17032
170332008-07-16 David Reitter <david.reitter@gmail.com>
17034
17035 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
17036 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
17037
170382008-07-16 Glenn Morris <rgm@gnu.org>
17039
17040 * emacs.c (system-type): Doc fix.
17041
170422008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
17043
17044 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
17045 If the cache doesn't work, let's fix it, rather than work around it.
17046
170472008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
17048
17049 * Makefile.in: Correct additions for nsfont.o in last commit.
17050 * nsfont.m: New file (forgot last commit).
17051
170522008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
17053
bba3e508
SM
17054 * callproc.c (set_initial_environment):
17055 Initialize Vprocess_environment under CANNOT_DUMP (fixes crash when
aac0c6e3
MR
17056 batch-compiling for bootstrap).
17057
170582008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
acd0102a 17059 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3 17060
c4cc8b9a
JB
17061 * frame.c (make_initial_frame): Call init_frame_faces(f) in
17062 CANNOT_DUMP case -- fix crash due to different init order.
aac0c6e3
MR
17063
170642008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
17065
17066 Changes and additions for NeXTstep windowing system (Cocoa and
17067 GNUstep) support.
17068
17069 * Makefile.in:
17070 * config.in: Support defines and build commands for NS port.
17071 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
17072 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
17073 * dispextern.h: Include nsgui.h and add needed typedefs under NS
17074 windowing.
17075 (struct face): Add synth_ital field.
17076 * dispnew.c: Include nsterm.h when compiling under NS windowing.
17077 (init_display): Initialize Vinitial_window_system to "ns" when so
17078 compiled.
17079 * emacs.c: Include GSConfig.h when compiling under GNUstep.
17080 (display_arg): Use under NS.
17081 (main): Under NS, allocate autorelease pool and handle command line
17082 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
17083 (standard_args): Add NS-specific args.
17084 (shut_down_emacs): Shut down NS terminal if compiled under NS.
17085 * font.c (DEFAULT_ENCODING): New variable.
17086 (font_find_for_lface): Use it.
17087 (syms_of_font): Load syms_of_nsfont under NS.
17088 * font.h: Declare nsfont_driver when compiled under NS.
17089 * fontset.c: When compiling under NS, include nsterm.h.
17090 (fontset_from_font): Autoconstruct fontset under NS.
17091 * frame.c (various): Under NS, include nsterm.h, add Qns window system
17092 symbol, document and use it.
17093 (do_switch_frame): When for_deletion under Cocoa, add
17094 Fraise_frame(Qnil).
17095 (x_set_frame_parameters): Ensure font attribute changes are picked up.
17096 (x_get_arg): Allow "yes" and "no" as boolean values.
17097 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
17098 Qright under Cocoa.
17099 (focus-follows-mouse): Default to 0 under NS.
17100 * frame.h (enum output_method): Add output_ns.
17101 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
17102 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
17103 (FRAME_WINDOW_P): NS-specific definition.
17104 * fringe.c (max_used_fringe_bitmap): Make public.
17105 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
17106 (getloadavg): Use NeXT code under descendant OS's.
17107 * image.c (includes and header section, x_create_bitmap_from_data)
17108 (x_create_bitmap_from_file, free_bitmap_record, image_background)
17109 (image_background_transparent, x_clear_image_1)
17110 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
17111 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
17112 (x_to_xcolors, x_from_xcolors, x_disable_image)
17113 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
17114 other GUIs, including XPM support using code originally written for
17115 Carbon GUI.
17116 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
17117 using NS API.
17118 (image_ascent): Use font metrics macros instead of direct struct field
17119 access.
17120 * keyboard.c (includes): Add nsterm.h when compiling under NS.
17121 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
17122 Also, handle NS as GTK for menu bar purposes.
17123 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
17124 toolkit where they differ.
17125 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
17126 use cachelist, still needed under NS.
17127 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
17128 (struct widget_value): Define it here for menu.c.
17129 * keymap.c (includes): Include modifier internals.
17130 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
17131 NS.
17132 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
17133 support for preferring sequences using certain modifiers, specified by
17134 the FIRSTONLY argument.
17135 * lisp.h (hash_remove): Rename to avoid name clash when compiling
17136 under NS GNUstep implementation.
17137 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
17138 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
17139 * menu.c: Include nsterm.h under NS.
17140 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
17141 (free_menubar_widget_tree_value, update_submenu_strings)
17142 (find_and_call_menu_selection): Treat NS as X and NT.
17143 (find_and_return_menu_selection): New function, used for popup menus.
17144 * nsgui.h:
17145 * nsterm.h:
17146 * nsfns.m:
17147 * nsimage.m:
17148 * nsmenu.m:
17149 * nsselect.m:
17150 * nsterm.m: New files.
17151 * process.c (wait_reading_process_output): Under NS, call ns_select()
17152 instead of plain select().
17153 * syntax.c (char_quoted): Under NS, avoid a crash when called near
17154 beginning of buffer.
17155 * sysselect.h (init_process): Rename when compiling under Cocoa to
17156 avoid name conflict.
17157 * termhooks.h (display_info): Add ns_display_info to union.
17158 * terminal.c (Fterminal_live_p): Add ns to terminal types.
17159 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
17160 COCOA environment.
17161 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
17162 unexec() signature. (Note, this will dump, but the resulting file
17163 crashes; unexosx is used instead; keeping around for reference and
17164 possible aid in getting dump working under GNUstep.)
17165 * w32gui.h (button_type, widget_value): Remove definitions (now in
17166 keyboard.h).
17167 * window.c: Include nsterm.h when compiling under NS.
17168 * xdisp.c (includes): Include nsterm.h when compiling under NS.
17169 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
17170 other GUI windowing systems.
17171 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
17172 GTK.
17173 (x_consider_frame_title): Under NS, set icon type and frame
17174 modified-state indicator; use ns_set_name_as_filename() when using
17175 formatted title.
17176 (update_window_cursor): Make public when compiling under NS.
17177 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
17178 (hourglass_atimer, Vhourglass_delay
17179 * xfaces.c (header section, init_frame_faces, clear_font_table)
17180 (defined_color, unload_color, x_face_list_fonts)
17181 (prepare_face_for_display): Add NS support parallel to other GUIs.
17182 Emulate GCs like other non-X GUIs.
17183 (split_font_name): Don't lowercase font name under NS.
17184 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
17185 under NS.
17186 * s/darwin.h: Add support for compilation under NS.
17187
171882008-07-15 Jason Rumney <jasonr@gnu.org>
17189
17190 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
17191 (w32_show_hourglass): Rename from show_hourglass.
17192 (w32_hide_hourglass): Rename from hide_hourglass.
17193 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
17194 (Vhourglass_delay): Declare extern.
17195 (hourglass_started): Remove.
17196
17197 * xdisp.c (Vhourglass_delay): Remove static.
17198 (hourglass_started, start_hourglass, cancel_hourglass):
17199 Don't include these versions on WINDOWSNT.
17200
172012008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
17202
17203 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
17204 variables (formerly in xfns.c).
17205 (show_hourglass, hide_hourglass): New prototypes (same).
17206 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
17207 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
17208 in xfns.c).
17209 (syms_of_xdisp): Declare/initialize display-hourglass,
17210 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
17211 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
17212 formerly in xfns.c.
17213 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
17214 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
17215 (start_hourglass, cancel_hourglass): Remove.
17216 (show_hourglass, hide_hourglass): Remove prototypes and static
17217 modifiers.
17218 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
17219 hourglass_atimer, hourglass_shown_p declaration/initialization.
17220 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
17221 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
17222 (start_hourglass, cancel_hourglass): Remove.
17223 (show_hourglass, hide_hourglass): Remove prototypes and static
17224 modifiers.
17225 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
17226 hourglass_atimer, hourglass_shown_p declaration/initialization.
17227 * w32fns.c (display_hourglass_p, Vhourglass_delay)
17228 (DEFAULT_HOURGLASS_DELAY): Remove.
17229 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
17230 hourglass_shown_p declaration/initialization.
17231
172322008-07-14 Jason Rumney <jasonr@gnu.org>
17233
17234 * w32fns.c (w32_get_arg): Remove wrapper function.
17235 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
17236 directly.
17237 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
17238
172392008-07-14 Kenichi Handa <handa@m17n.org>
17240
17241 * xfont.c (xfont_open): Add workaround for X's bug.
17242
172432008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
17244
17245 * fontset.c: Include <stdio.h> unconditionally.
17246
172472008-07-13 Michael Albinus <michael.albinus@gmx.de>
17248
17249 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
17250 for filtering.
17251
172522008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
17253
17254 * s/vms.h: Use __GNUC__ instead of _GNUC_.
17255
17256 * m/macppc.h:
17257 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
17258
c4cc8b9a 17259 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default.
aac0c6e3
MR
17260 (SPECIAL_EMACS_INT):
17261 * m/ia64.h (SPECIAL_EMACS_INT):
17262 * m/amdx86-64.h (SPECIAL_EMACS_INT):
17263 * s/gnu.h (NLIST_STRUCT):
17264 * s/aix4-2.h (X11R5_INHIBIT_I18N):
17265 * s/gnu-linux.h (LINUX):
17266 * s/msdos.h (HAVE_FACES):
17267 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
17268
17269 * systty.h:
17270 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
17271 anymore.
17272
172732008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
17274
17275 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
17276 always defined as int.
17277
17278 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
17279 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
17280 * s/gnu-linux.h (HAVE_WAIT_HEADER):
17281 * s/freebsd.h (HAVE_WAIT_HEADER):
17282 * s/bsd-common.h (HAVE_UNION_WAIT):
17283 * s/aix4-2.h (HAVE_WAIT_HEADER):
17284 * m/mips.h (HAVE_UNION_WAIT):
17285 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
17286 (COFF, static): Do not define, they are undefined later in the file.
17287
17288 * process.c (update_status): Don't use a union.
17289 (status_convert):
17290 (sigchld_handler): Use int instead of WAITTYPE.
17291
172922008-07-12 Chong Yidong <cyd@stupidchicken.com>
17293
17294 * indent.c (Fvertical_motion): Restore hscroll before moving to
17295 goal column.
17296
172972008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
17298
17299 * lisp.h: Remove left over code.
17300
173012008-07-11 Andreas Schwab <schwab@suse.de>
17302
17303 * lisp.h: Fix logic in last change.
17304
17305 * menu.h: New file.
17306 * menu.c: Include it.
17307 * xmenu.c: Likewise.
17308 * Makefile.in: Update dependencies.
17309
173102008-07-11 Kenichi Handa <handa@m17n.org>
17311
17312 * fontset.c (fontset_from_font): Cancel the previous change.
17313
173142008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
17315
17316 * lisp.h:
17317 * w32heap.c:
17318 * emacs.c:
17319 * alloc.c: Replace all references of NO_UNION_TYPE with
17320 USE_LISP_UNION_TYPE.
17321
17322 * m/xtensa.h (NO_UNION_TYPE):
17323 * m/vax.h (NO_UNION_TYPE):
17324 * m/template.h (NO_UNION_TYPE):
17325 * m/sparc.h (NO_UNION_TYPE):
17326 * m/mips.h (NO_UNION_TYPE):
17327 * m/macppc.h (NO_UNION_TYPE):
17328 * m/m68k.h (NO_UNION_TYPE):
17329 * m/iris4d.h (NO_UNION_TYPE):
17330 * m/intel386.h (NO_UNION_TYPE):
17331 * m/ibms390x.h (NO_UNION_TYPE):
17332 * m/ibms390.h (NO_UNION_TYPE):
17333 * m/ibmrs6000.h (NO_UNION_TYPE):
17334 * m/ia64.h (NO_UNION_TYPE):
17335 * m/hp800.h (NO_UNION_TYPE):
17336 * m/arm.h (NO_UNION_TYPE):
17337 * m/amdx86-64.h (NO_UNION_TYPE):
17338 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
17339 defining it the same.
17340
173412008-07-10 Chong Yidong <cyd@stupidchicken.com>
17342
17343 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
17344
173452008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
17346
17347 * fileio.c:
50426a04 17348 * sysdep.c:
aac0c6e3
MR
17349 * systty.h:
17350 * m/ibmrs6000.h:
17351 * m/iris4d.h:
17352 * s/aix4-2.h:
17353 * s/freebsd.h:
17354 * s/gnu-linux.h:
17355 * s/hpux10-20.h:
17356 * s/hpux11.h:
17357 * s/netbsd.h:
17358 * s/sol2-3.h:
17359 * s/sol2-4.h:
17360 * s/sol2.h:
17361 * s/usg5-4.h:
17362 * s/vms.h: Remove references to unused variables.
17363
173642008-07-10 Andreas Schwab <schwab@suse.de>
17365
17366 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
17367 pattern before matching the generic family.
17368
173692008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
17370
17371 * unexec.c:
17372 * s/vms.h:
17373 * s/usg5-4-2.h:
17374 * s/sol2-5.h:
17375 * s/freebsd.h:
17376 * s/darwin.h: Remove dead code.
17377
17378 * m/template.h:
17379 * m/sparc.h:
17380 * m/mips.h:
17381 * m/m68k.h:
17382 * m/iris4d.h:
17383 * m/intel386.h:
17384 * m/ibms390x.h:
17385 * m/ibms390.h:
17386 * m/ia64.h:
17387 * m/hp800.h:
17388 * m/arm.h:
17389 * m/amdx86-64.h: Remove dead code and references to unused
17390 and compiler defined symbols.
17391
17392 * unexmips.c:
17393 * unexelf.c: Remove references to desupported systems.
17394
17395 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
17396
17397 * m/powermac.h: Remove boilerplate comments.
17398 (NO_REMAP): Remove unused definition.
17399
17400 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
17401 define them.
17402
174032008-07-10 Kenichi Handa <handa@m17n.org>
17404
17405 * xfont.c (xfont_open): Log the reason of failure.
17406
174072008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
17408
17409 * fontset.c (fontset_get_font_group):
17410 * font.c (font_check_otf): Specify argument types.
17411
174122008-07-09 Kenichi Handa <handa@m17n.org>
17413
17414 * coding.c (detect_coding_utf_8): Set detect_info->found only when
17415 non-ASCII char is found.
17416
17417 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
17418 (reorder_font_vector): Change the arg preferred_family to font.
17419 Prefer the spec matching with font.
17420 (fontset_get_font_group): New function.
17421 (fontset_find_font): Change the format of an element of a realized
17422 fontset. Use fontset_get_font_group.
17423 (fontset_font): Try the current fontset, the default fontset, the
17424 fallbacks of the current fontset, and the fallbacks of the default
17425 fontset in this order.
17426 (face_for_char): Delete the shortcut to use the current font.
17427 (fontset_from_font): Don't set fonts for Latin in the fontset.
17428
17429 * font.h (font_make_object, font_match_p): Adjust prototypes.
17430
17431 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
17432
17433 * font.c (font_make_object): New arg entity and pixelsize.
17434 (font_check_otf_features, font_check_otf): New functions.
17435 (font_match_p): Check :lang, :script, and :otf properties.
17436
17437 * xfont.c (xfont_open): Adjust it for the change of
17438 font_make_object.
17439 (xfont_text_extents): Fix initial setting of metrics.
17440
17441 * ftfont.c (struct ftfont_info): New member index, delete member
17442 fc_charset_idx. Make the member order compatible with struct
17443 xftfont_info.
17444 (fc_charset_table): Change charset names to registry names.
17445 (ftfont_pattern_entity): Delete the args registry and
17446 fc_charset_idx. Change the value of :font-entity property
17447 to (FONTNAME . INDEX). Always set :registry property to
17448 `iso10646-1'.
17449 (struct ftfont_cache_data): New struct.
17450 (ftfont_lookup_cache): New arg for_face.
17451 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
17452 (ftfont_driver): Set the member otf_capability.
17453 (ftfont_get_charset): Adjust it for the change of
17454 fc_charset_table.
17455 (OTF_TAG_SYM): New macro.
17456 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
17457 for the change of fc_charset_table.
17458 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
17459 ftfont_pattern_entity. Add FC_INDEX to objset.
17460 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
17461 and ftfont_pattern_entity.
17462 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
17463 font_make_object, struct ftfont_info.
17464 (ftfont_has_char): Use ftfont_get_fc_charset.
17465 (ftfont_otf_features, ftfont_otf_capability): New functions.
17466 (ftfont_shape): Use ftfont_get_otf.
17467 (ftfont_text_extents): Fix initial setting of metrics.
17468
17469 * xftfont.c (struct xftfont_info): New member ft_size. Make the
17470 member order compatible with struct ftfont_info.
bba3e508
SM
17471 (xftfont_open): Add FC_CHARSET to the pattern.
17472 Set xftfont_info->ft_size. Don't unlock the face. Check BDF
aac0c6e3
MR
17473 properties if appropriate.
17474 (xftfont_close): Unlock the face.
17475 (xftfont_anchor_point, xftfont_shape): Deleted.
17476 (syms_of_xftfont): Don't set members anchor_point and shape of
17477 xftfont_driver.
17478
17479 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
17480 font_make_object.
17481
17482 * w32font.c (w32font_open): Adjust it for the change of
17483 font_make_object.
17484 (w32font_open_internal): Don't set properties of font_object here.
17485
174862008-07-08 Chong Yidong <cyd@stupidchicken.com>
17487
17488 * macfns.c (x_create_tip_frame):
17489 * w32fns.c (x_create_tip_frame):
17490 * xfns.c (x_create_tip_frame): Pass parameter argument to
17491 face-set-after-frame-default.
17492
17493 * xfaces.c (Finternal_merge_in_global_face): Save merged
17494 attributes for the default face back into the face vector.
17495
174962008-07-08 Andreas Schwab <schwab@suse.de>
17497
17498 * fontset.h: Declare fontset_from_font. Don't declare
17499 new_fontset_from_font and fontset_from_font_name.
17500 * xterm.c: Include "fontset.h".
17501 * Makefile.in (xterm.o): Update dependencies.
17502
175032008-07-08 Glenn Morris <rgm@gnu.org>
17504
17505 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
17506 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
17507
175082008-07-07 Chong Yidong <cyd@stupidchicken.com>
17509
17510 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
17511 (x_set_frame_parameters): Don't bind it.
17512
175132008-07-07 Juanma Barranquero <lekktu@gmail.com>
17514
17515 * w32fns.c (map_w32_filename): Declare extern.
17516
175172008-07-07 Jason Rumney <jasonr@gnu.org>
17518
17519 * w32term.c (WS_EX_LAYERED): Define if not already.
17520
175212008-07-06 Chong Yidong <cyd@stupidchicken.com>
17522
17523 * xfaces.c (set_font_frame_param): Don't try to set the font
17524 parameter if it is still unspecified in the lface.
17525
175262008-07-05 Chong Yidong <cyd@stupidchicken.com>
17527
17528 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
17529 face if it didn't already exist.
17530
17531 * xdisp.c (try_window_id): Give up if word-wrapping is on.
17532
175332008-07-05 Andreas Schwab <schwab@suse.de>
17534
17535 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
17536
175372008-07-05 Chong Yidong <cyd@stupidchicken.com>
17538
17539 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
17540 word-wrapping.
17541 (IT_DISPLAYING_WHITESPACE): New macro.
17542 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
17543 when word-wrapping. Simplify word-wrapping logic. Use correct
17544 pixel positions when saving copies of the iterator.
17545 (display_line): Use proper wrap point if the last character on a
17546 line was preceded by whitespace.
17547
175482008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
17549
17550 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
17551
175522008-07-04 Kenichi Handa <handa@m17n.org>
17553
17554 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
17555
17556 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
17557
175582008-07-02 Jason Rumney <jasonr@gnu.org>
17559
17560 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 17561 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
17562
17563 * xdisp.c (next_element_from_display_vector): Move assignment out
17564 of if statement.
17565
175662008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
17567
17568 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
17569
17570 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
17571 (syms_of_fileio): Initialize and export them.
17572 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
17573
17574 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
17575 (Fsystem_move_file_to_trash): New function.
17576 (syms_of_w32fns): Export it to lisp.
17577
175782008-07-01 Jason Rumney <jasonr@gnu.org>
17579
17580 * w32font.c (w32font_text_extents): Don't count overhang as part
17581 of width.
17582
175832008-06-30 Miles Bader <miles@gnu.org>
17584
17585 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
17586 Add `avoid_cursor_p' field.
17587
17588 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
17589 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
17590 (append_glyph, append_composite_glyph, produce_image_glyph)
17591 (append_stretch_glyph): Initialize avoid_cursor_p.
17592 (get_it_property): Rename from `get_line_height_property'.
17593 (x_produce_glyphs): Use get_it_property.
17594 (handle_line_prefix, push_display_prop): New functions.
17595 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
17596 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
17597 New variables.
17598 (syms_of_xdisp): Initialize them.
17599
176002008-06-30 Kenichi Handa <handa@m17n.org>
17601
17602 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
17603 XftDefaultSubstitute (they are called in XftFontMatch).
17604 (xftfont_open): Fix args to ftfont_font_format.
17605
17606 * ftfont.c (fc_charset_table): New member lang.
17607 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 17608 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
17609 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
17610 (ftfont_open): Fix args to ftfont_font_format.
17611 (ftfont_font_format): New arg filename.
17612
176132008-06-30 Chong Yidong <cyd@stupidchicken.com>
17614
17615 * xfaces.c (Finternal_merge_in_global_face): If default face was
17616 modified, realize it again. Update the font face attribute.
17617
176182008-06-29 Jason Rumney <jasonr@gnu.org>
17619
17620 * w32term.c (x_set_frame_alpha): Fix logic.
17621
176222008-06-29 Kenichi Handa <handa@m17n.org>
17623
17624 * fontset.c (Finternal_char_font): Return font-object instead of
17625 font-name.
17626
17627 * composite.c (get_composition_id): Fix the width calculation for TAB.
17628
176292008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
17630
17631 * indent.c (Fvertical_motion): Properly handle float column arg.
17632
176332008-06-28 Jason Rumney <jasonr@gnu.org>
17634
17635 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
17636 (pfnSetLayeredWindowAttributes): New function pointer.
17637 (w32_initialize): Initialize it when supported.
17638 (x_set_frame_alpha): New function.
17639
17640 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
17641 (w32_frame_parm_handlers): Set alpha handler.
17642
17643 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
17644
176452008-06-27 Jason Rumney <jasonr@gnu.org>
17646
17647 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
17648 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
17649 (w32_to_x_charset, x_to_w32_charset)
17650 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
17651 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
17652 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
17653 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
17654 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
17655 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
17656 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
17657 (Qw32_charset_unicode): Remove.
17658 (syms_of_w32fns): Update for above changes.
17659
17660 * w32font.c (w32_to_x_charset, x_to_w32_charset)
17661 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
17662 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
17663 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
17664 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
17665 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
17666 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
17667 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
17668 (syms_of_w32font): Update for above changes.
17669
176702008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
17671
17672 * s/usg5-4.h: Fix previous change: keep the correct branch of a
17673 removed #if.
17674 (USG_SHARED_LIBRARIES): Remove duplicate definition.
17675
176762008-06-26 Juanma Barranquero <lekktu@gmail.com>
acd0102a 17677 Eli Zaretskii <eliz@gnu.org>
aac0c6e3
MR
17678
17679 * makefile.w32-in (LOCAL_FLAGS):
17680 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
17681
17682 * sysdep.c (_spawnlp, _getpid):
17683 Declare with explicit _cdecl instead of _CRTAPI1.
17684
17685 * editfns.c (Fget_internal_run_time):
17686 Check for WINDOWSNT with #ifdef, not #if.
17687
176882008-06-26 Jason Rumney <jasonr@gnu.org>
17689
17690 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
17691
17692 * w32term.c (x_draw_glyph_string_foreground)
17693 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
17694 Use FONT_HANDLE macro.
17695 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
17696
17697 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
17698 (uniscribe_encode_char): Use FONT_HANDLE macro.
17699
17700 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
17701 (w32font_text_extents): Use precast w32_font.
17702 (w32font_close): Free cached metrics.
17703 (w32font_open_internal): Allocate space for name on stack.
17704
177052008-06-26 Chong Yidong <cyd@stupidchicken.com>
17706
17707 * xdisp.c (extend_face_to_end_of_line): Fix last change.
17708
177092008-06-26 Jason Rumney <jasonr@gnu.org>
17710
17711 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
17712 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
17713
177142008-06-26 Juanma Barranquero <lekktu@gmail.com>
17715
17716 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
17717
177182008-06-26 Jason Rumney <jasonr@gnu.org>
17719
17720 * w32bdf.c, w32bdf.h: Remove obsolete files.
17721
17722 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
17723
17724 * w32gui.h: Don't include w32bdf.h.
17725 (XCharStruct, enum w32_char_font_type, W32FontStruct):
17726 Remove obsolete font support.
17727
17728 * w32font.h (struct w32font_info): Remove compat_w32_font.
17729 Add hfont member.
17730 (FONT_COMPAT): Remove obsolete macro.
17731
17732 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
17733 (w32font_encode_char, w32font_text_extents): Use new hfont member.
17734 (w32font_open_internal): Remove compat code. Set new hfont member.
17735 (Fx_select_font): Use new hfont member.
17736
17737 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
17738 (uniscribe_encode_char): Use new hfont member.
17739
17740 * w32term.c (x_draw_glyph_string_foreground)
17741 (x_draw_composite_glyph_string_foreground): Use new hfont member.
17742 (x_draw_glyph_string): Use metrics in w32font_info.
17743
177442008-06-26 Kenichi Handa <handa@m17n.org>
17745
17746 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
17747
177482008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
17749
17750 * unexnext.c:
17751 * m/ews4800.h:
17752 * m/hp9000s300.h:
17753 * m/ibm370aix.h:
17754 * m/mips-siemens.h:
17755 * m/ncr386.h:
17756 * m/next.h:
17757 * m/pmax.h:
17758 * m/powerpcle.h:
17759 * m/tandem-s2.h:
17760 * s/386bsd.h:
17761 * s/bsd386.h:
17762 * s/bsd4-1.h:
17763 * s/bsd4-2.h:
17764 * s/bsdos2-1.h:
17765 * s/bsdos2.h:
17766 * s/bsdos3.h:
17767 * s/bsdos4.h:
17768 * s/nextstep.h:
17769 * s/ultrix4-3.h:
17770 * s/usg5-0.h:
17771 * s/usg5-2-2.h:
17772 * s/usg5-2.h:
17773 * s/usg5-4-3.h:
17774 * s/ux4800.h:
17775 * s/uxpds.h:
17776 * s/uxpv.h: Remove support for obsolete systems.
17777 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 17778 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
17779 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
17780 Remove, insert contents in s/aix4-2.h.
17781 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
17782 * s/bsd4-3.h: Rename to ...
17783 * s/bsd-common.h: ... this.
17784 * data.c:
17785 * doc.c:
17786 * ecrt0.c:
17787 * emacs.c:
17788 * fileio.c:
17789 * floatfns.c:
17790 * keyboard.c:
17791 * mem-limits.h:
17792 * print.c:
17793 * process.c:
17794 * sysdep.c:
17795 * syssignal.h:
17796 * systty.h:
17797 * syswait.h:
17798 * term.c:
17799 * unexec.c:
17800 * unexelf.c:
17801 * unexhp9k800.c:
17802 * m/hp800.h:
17803 * m/ibmrs6000.h:
17804 * m/mips.h:
17805 * m/vax.h:
17806 * s/darwin.h:
17807 * s/freebsd.h:
17808 * s/gnu.h:
17809 * s/ms-w32.h:
17810 * s/msdos.h:
17811 * s/netbsd.h:
17812 * s/template.h: Remove references to obsolete variables.
17813
17814 * Makefile.in: Add dependencies for all unexec files.
17815 (admindir): Remove unused variable.
17816 (UNEXEC_SRC): Remove references.
17817
178182008-06-25 Chong Yidong <cyd@stupidchicken.com>
17819
17820 * xfns.c (x_default_font_parameter): If Xft is available, first
17821 try Monospace-12 for the default font.
17822
178232008-06-25 Jason Rumney <jasonr@gnu.org>
17824
17825 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
17826
178272008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
17828
17829 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
17830
17831 * buffer.c (syms_of_buffer): Remove default-word-wrap.
17832
178332008-06-25 Juanma Barranquero <lekktu@gmail.com>
17834
17835 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
17836 <scroll-conservatively>: Fix typo in docstring.
17837
17838 * xselect.c (Fx_send_client_event): Doc fix.
17839
178402008-06-25 Kenichi Handa <handa@m17n.org>
17841
17842 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
17843
17844 * font.c (font_parse_fcname): Remove unused variables.
17845 (font_sort_entites): Delete the arg SPEC. Caller changed.
17846 Fix for the case of ! best_only.
17847 (font_delete_unmatched): Check DPI and AVGWIDTH too.
17848
17849 * lisp.h (Fstring_to_unibyte): EXFUN it.
17850
17851 * character.h (str_to_unibyte): Extern it.
17852
17853 * character.c (str_to_unibyte): New function.
17854
17855 * fns.c (Fstring_to_unibyte): New function.
17856 (syms_of_fns): Defsubr it.
17857
178582008-06-24 Kenichi Handa <handa@m17n.org>
17859
17860 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
17861 DPI too.
17862 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
17863
178642008-06-24 Andreas Schwab <schwab@suse.de>
17865
17866 * Makefile.in (${lispsource}loaddefs.el): Rename from
17867 ../lisp/loaddefs.el.
17868 (bootstrap-clean): Do what distclean does but don't remove
17869 Makefile.
17870 (distclean): Depend on bootstrap-clean and remove Makefile.
17871
178722008-06-24 Chong Yidong <cyd@stupidchicken.com>
17873
17874 * buffer.h (struct buffer): New member word_wrap.
17875
17876 * buffer.c (syms_of_buffer): New variables default-word-wrap and
17877 word-wrap.
17878 (init_buffer_once): Initialize them.
17879
17880 * dispextern.h (struct it): Replace bool truncate_lines_p with a
17881 line_wrap enum possessing three possible values.
17882
17883 * termopts.h: Replace truncate_partial_width_windows with
17884 Vtruncate_partial_width_windows.
17885
17886 * dispnew.c (direct_output_for_insert): Avoid direct output when
17887 inserting a space with word wrap on.
17888
17889 * indent.c (compute_motion): Obey integer values of
17890 truncate-partial-width-windows.
17891
17892 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
17893 replacing truncate_partial_width_windows.
17894 (init_iterator): If Vtruncate_partial_width_windows is an integer,
17895 truncate only if the window width is below that integer.
17896 (start_display, resize_mini_window, produce_stretch_glyph)
17897 (display_string, move_it_in_display_line_to): Use line_wrap.
bba3e508
SM
17898 (back_to_previous_visible_line_start, reseat_1):
17899 Reset string_from_display_prop_p.
aac0c6e3
MR
17900 (display_line): Extend default face to end of line when wrapping.
17901
179022008-06-24 Kim F. Storm <storm@cua.dk>
17903
17904 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
17905 to wrap continued lines at word boundaries.
17906
179072008-06-24 Jason Rumney <jasonr@gnu.org>
17908
17909 * font.c (Ffont_face_attributes): Multiply pixel size before point
17910 conversion to avoid multiplying rounding error.
17911
179122008-06-23 Jason Rumney <jasonr@gnu.org>
17913
17914 * w32term.c (x_draw_glyph_string_background)
17915 (x_draw_glyph_string): Remove old bdf font code.
17916
17917 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
17918
179192008-06-22 Kenichi Handa <handa@m17n.org>
17920
17921 * font.c (font_find_for_lface): Try the adstyle specified in
17922 the property of LFACE_FONT of LFACE (if any).
17923
179242008-06-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 17925 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
17926
17927 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
17928
179292008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
17930
17931 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
17932 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
17933 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
17934 (witness-emacs): Remove.
17935 (lisp, shortlisp): Move loaddefs.el earlier.
17936 (mostlyclean): Forget about witness-emacs.
17937
179382008-06-22 Glenn Morris <rgm@gnu.org>
17939
17940 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
17941 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
17942
179432008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
17944
17945 * Makefile.in (PRECOMP): Remove.
17946 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
17947 (witness-emacs): Run `compile-first'.
17948 (.el.elc): Use the new compile-onefile target.
17949
179502008-06-21 Kenichi Handa <handa@m17n.org>
17951
17952 * xftfont.c (xftfont_open): Handle QCembolden only when
17953 FC_EMBOLDEN is defined.
17954
179552008-06-21 Andreas Schwab <schwab@suse.de>
17956
17957 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
17958 (.el.elc): Likewise.
17959
179602008-06-21 Miles Bader <miles@gnu.org>
17961
17962 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
17963 build dir, not the lisp source dir.
17964
179652008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
17966
17967 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
17968 (bootstrapclean): Remove.
17969 (.el.elc): New rule.
17970 (PRECOMP): New var.
17971 (../lisp/subdirs.el): Remove.
17972 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
17973 (witness-emacs): New target.
17974 (mostlyclean): Remove witness-emacs as well.
17975 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
17976 Add witness-emacs dependency.
17977
179782008-06-20 Chong Yidong <cyd@stupidchicken.com>
17979
17980 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
17981 defined by the font.
17982
179832008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
17984
17985 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
17986 (bootstrap-clean): New target that keeps TAGS around.
17987 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
17988 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
17989
179902008-06-20 Jason Rumney <jasonr@gnu.org>
17991
17992 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
17993 Remove obsolete font code.
17994
17995 * w32font.c (font_matches_spec): Use csb bitfield from font signature
17996 to determine language support.
17997
179982008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
17999
18000 * sysdep.c (cfsetspeed): New fun extracted from the code.
18001 (cfmakeraw): Move before first use.
18002
180032008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
18004
18005 * sysdep.c (cfmakeraw): Provide fallback implementation.
18006 (serial_configure): Provide fallback implementation of cfsetspeed.
18007
180082008-06-20 Kenichi Handa <handa@m17n.org>
18009
18010 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
18011 the pattern.
18012
18013 * fontset.c (fontset_from_font): Copy font_spec before changing
18014 the elements.
18015
18016 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
18017
180182008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
18019
18020 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
18021 for explicit `font' parameters.
18022
18023 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
18024
180252008-06-19 Kenichi Handa <handa@m17n.org>
18026
18027 * frame.c: Include <ctype.h>.
18028 (x_set_font_backend): Allow spacing characters in the X resource
18029 for FontBackend.
18030
180312008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
18032
18033 * w32fns.c, xfns.c (Qfont_param): New var.
18034 (syms_of_w32fns): Initialize it.
18035 (x_default_font_parameter): Record explicit `font' into
18036 `font-parameter'.
18037
180382008-06-18 Kenichi Handa <handa@m17n.org>
18039
18040 * font.c (font_parse_xlfd): Fix previous change.
18041 (font_parse_fcname): Don't use :fc-unknown-spec.
18042 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
18043 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
18044 (font_add_log): Prepend the driver name to the resulting fonts.
18045
18046 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
18047 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
18048 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
18049
18050 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
18051 (QCembolden): New variables.
18052 (syms_of_xftfont): DEFSYM them.
18053 (xftfont_open): Call XftFontMatch. Don't trust the result of
18054 XftTextExtents8 if the pixel_size is less than 5.
18055
180562008-06-18 Andreas Schwab <schwab@suse.de>
18057
18058 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
18059 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
18060
180612008-06-18 Jason Rumney <jasonr@gnu.org>
18062
18063 * w32font.c (w32font_list, w32font_match): Add logging.
18064
18065 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
18066
180672008-06-17 Chong Yidong <cyd@stupidchicken.com>
18068
18069 * font.c (font_parse_fcname): Store divider characters for
18070 unknown-spec list. For known key symbols, intern using correct
18071 symbol name.
18072
180732008-06-17 Kenichi Handa <handa@m17n.org>
18074
18075 * xfaces.c (realize_default_face): If the frame is not on window
18076 system, set the fontset of face to nil.
18077
180782008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
18079
18080 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
18081
180822008-06-16 Juanma Barranquero <lekktu@gmail.com>
18083
18084 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
18085 (build_font_name_from_vector): Delete externs.
18086
18087 * xfaces.c (struct font_name): Don't declare.
18088
180892008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
18090
18091 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
18092
180932008-06-16 Chong Yidong <cyd@stupidchicken.com>
18094
18095 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
18096
180972008-06-16 Juanma Barranquero <lekktu@gmail.com>
18098
18099 * font.c (Ffont_spec): Fix usage in docstring.
18100 (Ffont_face_attributes): Doc fix.
18101
181022008-06-16 Andreas Schwab <schwab@suse.de>
18103
18104 * font.c (Ffont_face_attributes): Fix definition.
18105
181062008-06-16 Jason Rumney <jasonr@gnu.org>
18107
18108 * font.h (font_style_symbolic_from_value): Remove.
18109
18110 * font.c (font_style_symbolic_from_value): Remove.
18111 (font_style_symbolic): Revert to pre 2008-06-13 version.
18112
18113 * w32font.c (w32_to_fc_weight): New function.
18114 (w32font_full_name, logfont_to_fcname): Use it.
18115
181162008-06-16 Kenichi Handa <handa@m17n.org>
18117
18118 * font.c (font_check_object): Delete it.
18119 (font_clear_cache): Check if a font-object is alive.
18120 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
18121 font-object to nil.
18122 (font_close_object): Don't check FONT_CLOSE_OBJECT.
18123 (font_at): Don't call font_check_object.
18124 (Ffont_get): Return a symbol for :weight, :slant, and :width.
18125
181262008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
18127
18128 * puresize.h (BASE_PURESIZE): Increase to 1230000.
18129
181302008-06-16 Chong Yidong <cyd@stupidchicken.com>
18131
18132 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
18133
181342008-06-15 Chong Yidong <cyd@stupidchicken.com>
18135
18136 * font.c (font_parse_fcname): Only one decimal point.
18137 (font_unparse_fcname): Handle data in family and foundry indices
18138 as symbols, not strings.
18139 (font_unparse_gtkname, Ffont_face_attributes): New functions.
18140
18141 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
18142
18143 * font.h (font_unparse_gtkname): Add prototype.
18144
181452008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
18146
18147 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
18148
181492008-06-15 Andreas Schwab <schwab@suse.de>
18150
18151 * font.c (font_update_drivers): Fix crash when no drivers match.
18152
181532008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
18154
18155 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
18156 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
18157
181582008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
18159
18160 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
18161
181622008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
18163
18164 * process.c (Fserial_process_configure, Fprocess_send_eof):
18165 Use EQ to compare Lisp_Objects.
18166
181672008-06-13 Jason Rumney <jasonr@gnu.org>
18168
18169 * w32fns.c (Fw32_select_font): Remove old font API function.
18170
18171 * w32font.c (logfont_to_fcname): New function.
18172 (Fx_select_font): New font dialog function compatible with
18173 GTK/fontconfig version.
18174
18175 * font.c (font_style_symbolic_from_value): New function.
18176 (font_style_symbolic): Use it.
18177
18178 * font.h (font_style_symbolic_from_value): Declare new function.
18179
181802008-06-13 Juanma Barranquero <lekktu@gmail.com>
18181
18182 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
18183 <font-width-table>: Fix typos in docstrings.
18184
181852008-06-13 Daniel Engeler <engeler@gmail.com>
18186
18187 These changes add serial port access.
18188 * process.c: Add HAVE_SERIAL.
18189 (Fdelete_process, Fprocess_status, Fset_process_buffer)
18190 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
18191 (list_processes_1, select_wrapper, Fstop_process)
18192 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
18193 (status_notify): Modify to handle serial processes.
18194 [HAVE_SERIAL] (Fserial_process_configure)
18195 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
18196 New functions.
18197 * process.h (struct Lisp_Process): Add `type'.
18198 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
18199 New functions.
18200 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
18201 serial ports.
b71ac3dd 18202 (serial_open, serial_configure): New functions.
aac0c6e3
MR
18203 * w32.h: Add FILE_SERIAL.
18204 (struct _child_process): Add ovl_read, ovl_write.
18205
182062008-06-13 Kenichi Handa <handa@m17n.org>
18207
18208 * dispextern.h (enum lface_attribute_index): New member
18209 LFACE_FOUNDRY_INDEX.
18210
18211 * font.c (font_score): Delete arg alternate_families. Check only
18212 weight, slant, width, and size. Ignore the difference of alias
18213 style symbols.
18214 (font_sort_entites): Adjust for the above change. Reflect the
18215 order of font-driver to scores.
18216 (font_list_entities): Don't check alternate_familes here.
18217 (font_clear_prop): Handle foundry.
18218 (font_update_lface): Don't parse "foundry-family" form here.
18219 Handle FONT_FOUNDRY_INDEX.
18220 (font_find_for_lface): Likewise. Handle alternate families here.
18221 If registry is nil, try iso8859-1 and ascii-0.
18222 (font_open_for_lface): Pay attention to size in ENTITY.
18223 (font_open_by_name): Simplify by calling font_load_for_lface.
18224 (free_font_driver_list): Delete it.
18225 (font_update_drivers): Preserve the order of backends.
18226 (syms_of_font): Setting of sort_shift_bits adjusted for the change
18227 of font_score and font_sort_entites.
18228 (font_update_sort_order): Likewise.
18229
18230 * xfaces.c (LFACE_FOUNDRY): New macro.
18231 (check_lface_attrs): Check foundry.
18232 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
18233 (merge_face_vectors): Check foundry.
18234 (merge_face_ref): Likewise.
18235 (Finternal_set_lisp_face_attribute): Likewise.
18236 (x_update_menu_appearance): Likewise.
18237 (Finternal_get_lisp_face_attribute): Likewise.
18238 (lface_hash): Likewise.
18239 (lface_same_font_attributes_p): Likewise.
18240 (x_supports_face_attributes_p): Likewise.
18241 (tty_supports_face_attributes_p): Likewise.
18242 (Finternal_set_alternative_font_family_alist): Intern strings.
18243 (Finternal_set_alternative_font_registry_alist): Downcase strings.
18244 (realize_default_face): Set LFACE_FOUNDRY (lface).
18245
18246 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
18247 font-driver at first.
18248
18249 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
18250
182512008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
18252
18253 * lread.c (Fload): Use xfree, not free on saved_doc_string.
18254
182552008-06-12 Jim Meyering <meyering@redhat.com>
18256
18257 Make unexec_free handle NULL the same way free does.
18258 * unexmacosx.c (unexec_free): Ignore a NULL argument.
18259
182602008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
18261
18262 * character.h (CHAR_TO_BYTE_SAFE): New macro.
18263 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
18264 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
18265 (WEAK_ALIAS): Simplify.
18266 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
18267 when searching a unibyte buffer.
18268
182692008-06-12 Chong Yidong <cyd@stupidchicken.com>
18270
18271 * xfns.c (Fx_select_font): Rename from x-font-dialog.
18272
182732008-06-12 Juanma Barranquero <lekktu@gmail.com>
18274
18275 * w32font.c: Include ctype.h.
18276
182772008-06-11 Jason Rumney <jasonr@gnu.org>
18278
18279 * w32font.c (w32font_encode_char): Detect missing glyphs that are
18280 misreported as space.
18281 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
18282 as aliases for registry iso10646-1.
18283
182842008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
18285
18286 * buffer.c (clone_per_buffer_values): Skip `name'.
18287
182882008-06-11 Chong Yidong <cyd@stupidchicken.com>
18289
18290 * font.c (font_parse_fcname): Fix last change; accept decimal
18291 points in font size.
18292
182932008-06-10 Jason Rumney <jasonr@gnu.org>
18294
18295 * w32uniscribe.c (add_opentype_font_name_to_list):
18296 Skip non unicode fonts.
18297
182982008-06-10 Chong Yidong <cyd@stupidchicken.com>
18299
18300 * xfns.c (Fx_font_dialog): New function.
18301
18302 * gtkutil.c (xg_dialog_response_cb): Rename from
18303 xg_file_response_callback.
18304 (pop_down_dialog): Rename from pop_down_file_dialog.
18305 (xg_get_file_name): Callers changed.
18306 (xg_get_font_name): New function.
18307
18308 * gtkutil.h (xg_get_font_name): Insert prototype.
18309
183102008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
18311
18312 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
18313 x_underline_minimum_display_offset.
18314 (syms_of_xdisp): Declare it here rather than in xterm.c.
18315 * dispextern.h (underline_minimum_offset): Declare it.
18316 * w32term.c (x_draw_glyph_string): Use it.
18317 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
18318 (syms_of_xterm): Don't declare it any more.
18319 (x_draw_glyph_string): Adjust to the new name.
18320
8719abec 183212008-06-10 David De La Harpe Golden <david@harpegolden.net>
aac0c6e3
MR
18322
18323 * xterm.c (x_underline_minimum_display_offset): New var.
18324 (x_draw_glyph_string): Use it.
18325 (syms_of_xterm): Declare it.
18326
183272008-06-10 Chong Yidong <cyd@stupidchicken.com>
18328
18329 * font.c (font_parse_fcname): Accept GTK-style font names too.
18330
183312008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
18332
18333 * dired.c (file_name_completion): Don't return t if the match is exact
18334 but with different capitalization.
18335 * minibuf.c (Ftry_completion): Simplify.
18336
18337 * window.c (Vwindow_point_insertion_type): New var.
18338 (set_window_buffer): Use it.
18339 (syms_of_window): Init and export it to Lisp.
18340
183412008-06-10 Kenichi Handa <handa@m17n.org>
18342
18343 * font.h (font_intern_prop): Prototype adjusted.
18344
18345 * font.c (font_intern_prop): New arg force_symbol.
18346 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
18347 Adjust for the change of font_intern_prop.
18348
18349 * ftfont.c (ftfont_pattern_entity):
18350 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
18351 (w32_registry):
18352 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
18353 the change of font_intern_prop.
18354
183552008-06-09 Juanma Barranquero <lekktu@gmail.com>
18356
18357 * w32menu.c (digest_single_submenu): Declare extern.
18358
183592008-06-09 Jason Rumney <jasonr@gnu.org>
18360
18361 * w32term.c (x_make_frame_visible): Use alternate restore flags.
18362
18363 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
18364 (parse_single_submenu): Remove.
18365 (digest_single_submenu): Remove.
18366 (syms_of_w32menu): Don't initialise variables that have moved
18367 to menu.c.
18368 (set_frame_menubar): Sync with version in xmenu.c.
18369 (w32_menu_show): Sync with xmenu_show in xmenu.c.
18370
18371 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
18372 Make static again.
18373
183742008-06-09 Jason Rumney <jasonr@gnu.org>
18375
18376 Changes to w32 files related to the move of common menu code
18377 to menu.c on 2008-06-08 by Chong Yidong.
18378
18379 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
18380 defs to w32gui.h.
18381 (single_keymap_panes, push_menu_item, push_menu_pane):
18382 Make globally visible.
18383
18384 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
18385 (local_free, malloc_widget_value, free_widget_value)
18386 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
18387 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
18388 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
18389 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
18390 (menu_items, menu_items_allocated, menu_items_used)
18391 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
18392 (init_menu_items, finish_menu_items, discard_menu_items)
18393 (grow_menu_items, push_submenu_start, push_submenu_end)
18394 (push_left_right_boundary, push_menu_pane, push_menu_item)
18395 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
18396 (free_menubar_widget_tree_value, parse_single_submenu)
18397 (update_submenu_strings): Remove functions.
18398 (xmalloc_widget_value): Remove and declare extern.
18399
18400 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
18401 (OBJ1): Build it.
18402
18403 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
18404 (local_heap, local_alloc, local_free, malloc_widget_value)
18405 (free_widget_value): Define here.
18406
184072008-06-09 Kenichi Handa <handa@m17n.org>
18408
18409 * font.h (Qascii_0): Extern it.
18410
18411 * font.c (Qascii_0): New variable.
18412 (syms_of_font): DEFSYM it.
18413 (font_open_by_name): If the registry "iso8859-1" fails, try also
18414 "ascii-0".
18415
18416 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
18417
184182008-06-08 Kenichi Handa <handa@m17n.org>
18419
18420 * .gdbinit (xfont): New command.
18421
184222008-06-08 Andreas Schwab <schwab@suse.de>
18423
18424 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
18425 * Makefile.in (menu.o): Update dependencies.
18426
18427 * Makefile.in (obj): Always add menu.o.
18428 * emacs.c (main): Always call syms_of_menu.
18429 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
18430
184312008-06-08 Chong Yidong <cyd@stupidchicken.com>
18432
18433 * Makefile.in: Compile menu.c.
18434
18435 * lisp.h: Declare syms_of_menu.
18436
18437 * emacs.c (main): Call syms_of_menu.
18438
18439 * keyboard.h: Relocate platform-independent menu definitions from
18440 xmenu.c.
18441
18442 * menu.c: New file. Relocate platform-independent menu
18443 definitions from xmenu.c. Suggested by Adrian Robert.
18444
18445 * xmenu.c: Remove platform-independent menu definitions.
560bb7ae 18446 (menu_items, menu_items_inuse, menu_items_allocated)
aac0c6e3
MR
18447 (menu_items_used, menu_items_n_panes)
18448 (menu_items_submenu_depth): Move to keyboard.h.
18449 (init_menu_items, finish_menu_items, unuse_menu_items)
18450 (discard_menu_items, restore_menu_items, save_menu_items)
18451 (grow_menu_items, push_submenu_start, push_submenu_end)
18452 (push_left_right_boundary, push_menu_pane, push_menu_item)
18453 (keymap_panes, single_keymap_panes, single_menu_item)
18454 (list_of_panes, list_of_items, find_and_call_menu_selection)
18455 (xmalloc_widget_value, free_menubar_widget_value_tree)
18456 (parse_single_submenu, digest_single_submenu)
18457 (update_submenu_strings): Move to menu.c.
18458
184592008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
18460
18461 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
18462
184632008-06-06 Miles Bader <miles@gnu.org>
18464
18465 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
18466 face, not frame default.
18467
184682008-06-05 Martin Rudalics <rudalics@gmx.at>
18469
18470 * window.c (pop_up_windows, pop_up_frames)
18471 (display_buffer_reuse_frames, Vpop_up_frame_function)
18472 (Vdisplay_buffer_function, Veven_window_heights)
18473 (Vspecial_display_buffer_names, Vspecial_display_regexps)
18474 (Vspecial_display_function, Vsame_window_buffer_names)
18475 (Vsame_window_regexps, split_height_threshold)
18476 (Vsplit_window_preferred_function): Move those vars to window.el.
18477 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
18478 (Fdisplay_buffer): Move those functions to window.el.
18479 (syms_of_window): Remove corresponding declarations.
18480 (display_buffer): New function.
18481 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
18482 * dispnew.c (Flast_nonminibuf_frame): New function.
18483 * buffer.c (Fpop_to_buffer): Move to window.el.
18484
184852008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
18486
18487 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
18488
184892008-06-05 Kenichi Handa <handa@m17n.org>
18490
18491 * coding.c (detect_coding): Fix previous change.
18492 (detect_coding_system): Likewise.
18493
184942008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
18495
18496 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
18497
18498 * keymap.c (Vminibuffer_local_filename_must_match_map):
18499 Rename from Vminibuffer_local_must_match_filename_map.
18500 (syms_of_keymap):
18501 * minibuf.c (Fcompleting_read): Adjust accordingly.
18502 * commands.h: Rename declaration as well.
18503
185042008-06-05 Kenichi Handa <handa@m17n.org>
18505
18506 * font.c (Ffont_spec): Don't use font_parse_family_registry for
18507 family name.
18508 (Ffont_put): Likewise.
18509
18510 * fontset.c (fontset_find_font): Call font_open_for_lface with the
18511 current font-spec.
18512
18513 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
18514 is unspecified.
18515
18516 * xfaces.c (realize_x_face): If the font-related face attributes
18517 are the same as those of default face, realize a new fontset from
18518 default->fontset.
18519 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
18520
185212008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
18522
18523 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
18524 (move_it_in_display_line): New wrapper.
18525
18526 * window.c (window_scroll_pixel_based_preserve_x)
18527 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
18528 (window_scroll_pixel_based, window_scroll_line_based):
18529 Use them to preserve column positions.
18530 (syms_of_window): Initialize them.
18531
18532 * indent.c (Fvertical_motion): Extend first arg to allow passing an
18533 (HPOS . VPOS) pair.
18534
18535 * dispextern.h (move_it_in_display_line): Declare.
18536
185372008-06-05 Juanma Barranquero <lekktu@gmail.com>
18538
18539 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
18540 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
18541 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
18542
185432008-06-04 Juanma Barranquero <lekktu@gmail.com>
18544
18545 * window.c (Fset_window_parameter): Doc fix.
18546 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
18547
185482008-06-04 Joakim Verona <joakim@verona.se>
18549
18550 * window.h (struct window): Add new member window_parameters.
18551
18552 * window.c (Fwindow_parameters, Fwindow_parameter)
18553 (Fset_window_parameter): New defuns.
18554 (syms_of_window): Defsubr the new defuns.
18555 (make_window): Initialize window_parameters to nil.
18556
185572008-06-04 John Paul Wallington <jpw@pobox.com>
18558
18559 * eval.c (Fdefmacro): Doc fix.
18560
185612008-06-04 Kenichi Handa <handa@m17n.org>
18562
18563 * coding.c (detect_coding): Fix handling of coding->head_ascii.
18564 Be sure to call setup_coding_system when we find a proper coding system.
18565 (detect_coding_system): Fix handling of coding->head_ascii.
18566
185672008-06-03 Andreas Schwab <schwab@suse.de>
18568
18569 * font.c (font_prop_validate_spacing): Fix last change.
18570
185712008-06-03 Kenichi Handa <handa@m17n.org>
18572
18573 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
18574 (font_parse_fcname): Fix handling of unknown key.
18575
18576 * xfont.c (xfont_list): Try an alias.
18577
18578 * charset.c (char_charset): Return NULL if the arg charset_list is
18579 specified and C doesn't belong to any of them.
18580
185812008-06-02 Chip Coldwell <coldwell@redhat.com>
18582
18583 * font.c (font_pixel_size): Don't take cdr of an integer.
18584
185852008-06-02 Jim Meyering <meyering@redhat.com>
18586
18587 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
18588 * alloc.c (xfree): Return right away for a NULL arg.
18589 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
18590 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
18591 * mac.c (create_apple_event_from_event_ref): Likewise.
18592 (create_apple_event_from_drag_ref, cfstring_create_normalized):
18593 Likewise.
18594 * doprnt.c (doprnt1): Likewise.
18595 * frame.c (frame): Likewise.
18596 * keyboard.c (wipe_kboard): Likewise.
18597 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
18598 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
18599 * term.c (tty_default_color_capabilities, maybe_fatal)
18600 (delete_tty): Likewise.
18601 * w16select.c (string): Likewise.
18602 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
18603 * w32bdf.c (w32_free_bdf_font): Likewise.
18604 * w32fns.c (w32_unload_font): Likewise.
18605 * w32font.c (w32font_close): Likewise.
18606 * window.c (size_window): Likewise.
18607 * xselect.c (receive_incremental_selection): Likewise.
18608 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
18609 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
18610 * w32.c (stat): Likewise.
18611
18612 Remove useless if-before-free tests.
18613 * editfns.c (Fset_time_zone_rule): Likewise.
18614 * lread.c (nosuffix): Likewise.
18615 * ralloc.c (get_bloc): Likewise.
18616 * regex.c (reg_free): Likewise.
18617 * xftfont.c (xftfont_open, xftfont_close): Likewise.
18618 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
18619 * xsmfns.c (smc_save_yourself_CB): Likewise.
18620
186212008-06-02 Kenichi Handa <handa@m17n.org>
18622
18623 * font.c (font_find_for_lface): Handle float font size.
18624 (font_open_for_lface): Likewise.
18625
18626 * xfaces.c (x_supports_face_attributes_p): Check face->font before
18627 comparing the properties.
18628
186292008-06-01 Jason Rumney <jasonr@gnu.org>
18630
18631 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
18632 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
18633 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
18634 Don't add empty script list.
18635 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
18636
186372008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
18638
18639 * Makefile.in (dot, dotdot): Remove, update users.
18640 ".." has been used elsewhere in the file for a long time.
18641 (LIBXT_STATIC): Remove conditional based on unused variable.
18642
186432008-06-01 Miles Bader <miles@gnu.org>
18644
18645 * xfaces.c (Vface_remapping_alist): New variable.
18646 (syms_of_xfaces): Initialize it.
18647 (enum named_merge_point_kind): New type.
18648 (struct named_merge_point): Add `named_merge_point_kind' field.
18649 (push_named_merge_point): Make cycle detection respect different
18650 named-merge-point kinds.
18651 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
18652 Remove face-name alias resolution.
18653 (lface_from_face_name): New definition using
18654 `lface_from_face_name_no_resolve'.
18655 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
18656 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
18657 (get_lface_attributes): New definition that layers face-remapping on
18658 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
18659 (lookup_basic_face): New function.
18660 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
18661 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
18662 `get_lface_attributes'.
18663 (face_at_buffer_position): Use `lookup_basic_face' to lookup
18664 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
18665 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
18666
18667 * xdisp.c (init_iterator): Pass base_face_id through
18668 `lookup_basic_face' when we actually use it as a face-id.
18669 (handle_single_display_prop): Use `lookup_basic_face' to lookup
18670 DEFAULT_FACE_ID.
18671
18672 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
18673 lookup the initial face-id.
18674
18675 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
18676
186772008-06-01 Juanma Barranquero <lekktu@gmail.com>
18678
18679 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
18680 (Fremove_text_properties): Fix typos in docstrings.
18681
186822008-05-31 Kenichi Handa <handa@m17n.org>
18683
18684 * font.c (font_list_entities): Fix the car part of data to be
18685 stored in the cache.
18686
18687 * ftfont.c (ftfont_font_format): Don't use strcasestr.
18688
186892008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
18690
18691 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
18692 Add a `test' argument so another predicate than `equal' can be used.
18693 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
18694 (map_char_table): Remove unused vars `c' and `i'.
18695 * lisp.h (Foptimize_char_table): Adjust declaration.
18696 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
18697
186982008-05-30 Kenichi Handa <handa@m17n.org>
18699
18700 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
18701 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
18702 defined.
18703
187042008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
18705
18706 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
18707 (Fmake_variable_frame_local): Disallow mixing buffer-local and
18708 frame-local settings for the same variable.
18709
187102008-05-30 Kenichi Handa <handa@m17n.org>
18711
18712 * fontset.c (Ffont_info): Move to font.c.
18713 (syms_of_fontset): Delete defsubr of Sfont_info.
18714
18715 * font.c (font_style_to_value, font_score): Delete casting of the
18716 args to xstcasecmp.
18717 (register_font_driver): Increment num_font_drivers only when
18718 registering the driver globally.
18719 (Ffont_info): Move from fontset.c. Handle a font object too.
18720 (syms_of_font): Defsubr Sfont_info.
18721
187222008-05-29 Kenichi Handa <handa@m17n.org>
18723
18724 * coding.h (enum define_coding_utf8_arg_index): New enum.
18725 (enum coding_attr_index): Change coding_attr_utf_16_bom to
18726 coding_attr_utf_bom.
18727 (enum utf_bom_type): Rename from utf_16_bom_type.
18728 (struct utf_16_spec): Adjust for the above change.
18729 (struct coding_system): Add utf_8_bom in `spec' union.
18730
18731 * coding.c (CODING_UTF_8_BOM): New macro.
18732 (enum coding_category): Delete coding_category_utf_8, add
18733 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
18734 coding_category_utf_8_sig.
18735 (CATEGORY_MASK_UTF_8): Delete it.
18736 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
18737 (CATEGORY_MASK_UTF_8_SIG): New macros.
18738 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
18739 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
18740 CATEGORY_MASK_UTF_8_SIG.
18741 (CATEGORY_MASK_UTF_8): New macro.
18742 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
18743 (detect_coding_utf_8): Check BOM.
18744 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
18745 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
18746 (encode_coding_utf_16): Likewise.
18747 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
18748 (detect_coding, detect_coding_system): Handle utf-8-auto.
18749 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
18750 (syms_of_coding): Fix setting up of Vcoding_category_table.
18751
187522008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
18753
18754 * process.c (Faccept_process_output): If `millisec' is non-nil,
18755 `seconds' default to 0.
18756 (wait_reading_process_output): Also return non-nil if we read output
18757 from a non-running process.
18758
187592008-05-29 Jason Rumney <jasonr@gnu.org>
18760
18761 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
18762 `raster' specified.
18763 (add_font_entity_to_list): Allow non-opentype truetype fonts back
18764 in the uniscribe backend, but disallow any font that has no
18765 unicode subrange support.
18766
187672008-05-29 Juanma Barranquero <lekktu@gmail.com>
18768
18769 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
18770 Fix typos in docstrings.
18771
187722008-05-29 Kenichi Handa <handa@m17n.org>
18773
18774 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
18775 (Fx_family_fonts): Set frame correctly.
18776
187772008-05-28 Jason Rumney <jasonr@gnu.org>
18778
18779 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
18780
187812008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
18782
18783 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
18784 calling build_annotations.
18785
187862008-05-28 Juanma Barranquero <lekktu@gmail.com>
18787
18788 * coding.c (Fdecode_coding_region, Fencode_coding_region)
18789 (Fencode_coding_string):
18790 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
18791 <latin-extra-code-table>: Fix typos in docstrings.
18792 (syms_of_coding) <coding-system-alist>: Doc fix.
18793 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
18794
187952008-05-28 Kenichi Handa <handa@m17n.org>
18796
18797 * fontset.c (Ffont_info): Don't call font_close_object.
18798
18799 * font.c (font_parse_family_registry): Use Ffont_put to validate
18800 foundry and family.
18801 (font_delete_unmatched): Don't check spacing.
18802 (font_list_entities): Add spacing to the spec to list fonts.
18803
18804 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
18805 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
18806
18807 * coding.c (encode_coding_raw_text): Fix previous change.
18808 (encode_coding_object): When the dst_object is a buffer and is
18809 different from src_object, move gap to PT.
18810
188112008-05-27 Chong Yidong <cyd@stupidchicken.com>
18812
18813 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
18814
188152008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
18816
18817 * coding.c (encode_coding_raw_text): Set coding->produced_char for
18818 all branches. Compute it differently.
18819
18820 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
18821
188222008-05-27 Juanma Barranquero <lekktu@gmail.com>
18823
18824 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
18825 into "else if () ... else ...".
18826
188272008-05-27 Jason Rumney <jasonr@gnu.org>
18828
18829 * w32font.c (w32font_open_internal): Determine if glyph indices
18830 are likely to work here.
18831
188322008-05-27 Chong Yidong <cyd@stupidchicken.com>
18833
18834 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
18835 draw overlap glyphs with appropriate highlighting.
18836
188372008-05-27 Kenichi Handa <handa@m17n.org>
18838
18839 * xfont.c (xfont_open): Fix calculation of font->average_width.
18840
188412008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
18842
18843 * casefiddle.c (casify_object): Try to guess better whether the
18844 argument is a byte or a char.
18845
188462008-05-26 Andreas Schwab <schwab@suse.de>
18847
18848 * xselect.c (x_reply_selection_request): Properly handle format == 32.
18849 Always send multiples of format size.
18850
18851 * xterm.c (x_set_frame_alpha): Fix type mismatch.
18852
188532008-05-26 Jason Rumney <jasonr@gnu.org>
18854
18855 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
18856 (compute_metrics): Don't set failure if we just cleared the cache.
18857 (w32_weight_table): Remove unused variable.
18858 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
18859 backwards compatibility.
18860
188612008-05-25 Kenichi Handa <handa@m17n.org>
18862
18863 * w32term.c (x_draw_glyph_string):
18864 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
18865
18866 * xfaces.c: Delete unused function prototypes.
18867 (xstrlwr, font_frame): Delete them.
18868 (clear_face_cache): Delete unused variable.
18869
18870 * xftfont.c (xftfont_open): Delete unused variable.
18871 If underline_thickness is not 1, adjust underline_position.
18872
18873 * ftxfont.c (ftxfont_open): Delete unused variable.
18874
18875 * fontset.c (face_for_char): Optimize for the case of no charset
18876 property.
18877
18878 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
18879 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
18880 (otf_open, font_otf_capability, generate_otf_features)
18881 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
18882 Comment out by surrounding "#if 0" and "#endif" for the moment.
18883 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
18884 (syms_of_font): Codes for accessing above commented out.
18885
188862008-05-24 Eli Zaretskii <eliz@gnu.org>
18887
18888 * w32proc.c: Include dispextern.h.
18889
18890 * w32.c: Include dispextern.h.
18891
188922008-05-23 Juanma Barranquero <lekktu@gmail.com>
18893
18894 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
18895 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
18896 Fix typos in docstrings.
18897
188982008-05-23 Jason Rumney <jasonr@gnu.org>
18899
18900 * xsmfns.c: Remove includes that are already included by config.h.
18901
189022008-05-23 Kenichi Handa <handa@m17n.org>
18903
18904 * charset.c (Qemacs, charset_emacs): New variables.
18905 (char_charset): Fix for non-Unicode characters.
18906 (syms_of_charset): Define charset_emacs.
18907
18908 * w32term.c (x_draw_glyph_string): Be sure to update
18909 s->underline_thickness and s->underline_position. Be sure to draw
18910 underline within the current line area.
18911
18912 * xterm.c (x_draw_glyph_string): Be sure to update
18913 s->underline_thickness and s->underline_position. Be sure to draw
18914 underline within the current line area.
18915
18916 * fontset.c: Delete unused variables and add casting for char *
18917 throughout the file.
18918 (fontset_font): Try the fallback fonts of the current fontset
18919 before consulting the default fontset.
18920
18921 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
18922
18923 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
18924
189252008-05-22 Jason Rumney <jasonr@gnu.org>
18926
18927 * font.c: Don't include strings.h.
18928
18929 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
18930
18931 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
18932 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
18933 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
18934 to call xstrcasecmp.
18935
18936 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
18937
18938 * fontset.c (fs_query_fontset): Use xstrcasecmp.
18939
18940 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
18941
18942 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
18943
189442008-05-22 Kenichi Handa <handa@m17n.org>
18945
18946 * puresize.h (BASE_PURESIZE): Increase to 1220000.
18947
18948 * font.c (font_prop_validate_style): Adjust for the format
18949 change of font_style_table.
18950
18951 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
18952 two args.
18953
18954 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
18955 two args.
18956
189572008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
18958
18959 * minibuf.c (keys_of_minibuf): Delete.
18960 * lisp.h (keys_of_minibuf): Delete.
18961 * emacs.c (main): Don't call keys_of_minibuf.
18962
189632008-05-22 Kenichi Handa <handa@m17n.org>
18964
18965 * ftfont.c (ftfont_resolve_generic_family): Rename from
18966 ftfont_list_generic_family. Return a single family for each
18967 generic family.
18968 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
18969 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
18970 Call font_add_log.
18971 (ftfont_match): Call font_add_log.
18972
18973 * font.h (Ffont_xlfd_name): EXFUN adjusted.
18974 (FONT_DEBUG): Define it.
18975 (font_add_log): Extern it.
18976 (font_assert): Rename from xassert.
18977
18978 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
18979 (xfont_list_family): Call font_add_log.
18980 (xfont_match): Likewise.
18981 (memq_no_quit): Delete.
18982
18983 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
18984 call of Ffont_xlfd_name.
18985
18986 * xfaces.c (struct table_entry, slant_table, weight_table)
18987 (swidth_table): Move to font.c.
18988
18989 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
18990 xassert are changed to font_assert. Delete many unused variables.
18991 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
18992 New variables.
18993 (struct table_entry): Move from xfaces.c and modified.
18994 (weight_table, slant_table, width_table): Move from xfaces.c and
18995 contents adjusted for the change of struct table_entry.
18996 (font_style_to_value, font_style_symbolic): Adjust for the
18997 format change of font_style_table.
18998 (font_parse_family_registry): Don't overwrite existing foundry and
18999 family of font_spec.
19000 (font_score): Fix calculation of diff for sizes.
19001 (font_sort_entites): Call font_add_log.
19002 (font_delete_unmatched): Return a newly created list.
19003 (font_list_entities): Fix previous change. Call font_add_log.
19004 (font_matching_entity, font_open_entity, font_close_entity):
19005 Call font_add_log.
19006 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
19007 (Finternal_set_font_style_table): Delete.
19008 (BUILD_STYLE_TABLE): New macro.
19009 (build_style_table): New function.
19010 (Vfont_log, font_log_env_checked): New variables.
19011 (font_add_log): New function.
19012 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
19013 Declare Lisp variables "font-weight-table", "font-slant-table",
19014 "font-width-table", and "font-log". Initialize font_style_table.
19015
190162008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
19017
19018 * xterm.c (x_set_frame_alpha): Move declarations before statements.
19019
190202008-05-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 19021 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
19022
19023 * frame.c (Qalpha): Add a new frame parameter `alpha'.
19024 (Vframe_alpha_lower_limit): New variable.
19025 (x_set_alpha): New function.
19026
19027 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
19028
19029 * xfns.c (x-create-frame, Qalpha):
19030 Initialize the frame parameter `alpha'.
19031 * xterm.c (OPAQUE, OPACITY): New.
19032 (x_set_frame_alpha): New function.
19033 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
19034
19035 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
19036 * w32fns.c (w32_frame_parm_handlers): Likewise.
19037
190382008-05-20 Jason Rumney <jasonr@gnu.org>
19039
19040 * w32font.c (add_font_entity_to_list): Don't add non-opentype
19041 truetype fonts to opentype list.
19042
190432008-05-20 Juanma Barranquero <lekktu@gmail.com>
19044
19045 * fontset.c (Ffontset_info): Doc fix.
19046 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
19047 <ignore-relative-composition>: Fix typos in docstrings.
19048
19049 * font.c (syms-of-font) <font-encoding-alist>:
19050 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
19051 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
19052 (Ffont_otf_alternates): Doc fixes.
19053
190542008-05-20 Kenichi Handa <handa@m17n.org>
19055
19056 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
19057 font.h through out the file.
19058 (FONT_DRIVERS): Rename from FONTOBJ.
19059 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
19060 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
19061
19062 * emacs.c (main): Call syms_of_font unconditionally.
19063
19064 * font.h (find_font_encoding): Extern it.
19065
19066 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
19067 fontset.c.
194d44e7 19068 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
aac0c6e3
MR
19069 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
19070 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
19071 only when HAVE_WINDOW_SYSTEM is defined.
19072 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
19073 when HAVE_WINDOW_SYSTEM is defined.
19074
19075 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
19076 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
19077
19078 * xfaces.c: Include font.h unconditionally.
19079 (merge_face_ref, merge_face_vectors)
19080 (Finternal_set_lisp_face_attribute): Cancel the previous change.
19081
190822008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
19083
19084 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
19085 indirect_variable.
19086 * eval.c (lisp_indirect_variable): New fun.
19087 (Fuser_variable_p): Use it.
19088
190892008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
19090
19091 * lisp.h (indirect_variable):
19092 * data.c (indirect_variable, let_shadows_buffer_binding_p):
19093 Use Lisp_Symbol pointers rather than Lisp_Object.
19094 Adjust callers.
19095 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
19096 To this end, change calling-convention.
19097
19098 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
19099 if some non-hidden buffers are selected by string&pred.
19100
191012008-05-19 Chong Yidong <cyd@stupidchicken.com>
19102
19103 * process.c (wait_reading_process_output): Always check status
19104 when in batch mode.
19105
191062008-05-19 Kenichi Handa <handa@m17n.org>
19107
19108 * font.c (font_list_entities): Fix handling of cache.
19109 (font_matching_entity): Likewise.
19110
19111 * ftfont.c (cs_iso8859_1): Delete.
19112 (ft_face_cache): New variable.
19113 (struct ftfont_info): New member fc_charset_idx.
19114 (ftfont_build_basic_charsets): Delete.
19115 (fc_charset_table): New variable.
19116 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
19117 . FC_CHARSET_IDX) as :font-entity property in the font entity.
19118 Callers changed.
19119 (ftfont_lookup_cache, ftfont_get_charset): New functions.
19120 (ftfont_spec_pattern): New argument fc_charset_idx.
19121 Check registry more rigidly. Change callers.
19122 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
19123 change of :font-entity property of the font.
19124
19125 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
19126 property of the font.
19127
191282008-05-18 Juanma Barranquero <lekktu@gmail.com>
19129
19130 * coding.c (Fcoding_system_p): Rename argument to match docstring.
19131 (Funencodable_char_position, Fcheck_coding_systems_region)
19132 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
19133 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
19134 (Ffind_operation_coding_system, Fset_coding_system_priority)
19135 (Fcoding_system_eol_type): Doc fixes.
19136
191372008-05-17 Glenn Morris <rgm@gnu.org>
19138
19139 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
19140
191412008-05-16 Eli Zaretskii <eliz@gnu.org>
19142
19143 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
19144 and st_gid.
19145
19146 * frame.c (Fdelete_frame): Don't call font_update_drivers if
19147 HAVE_WINDOW_SYSTEM is not defined.
19148
19149 * xfaces.c (merge_face_ref, merge_face_vectors)
19150 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
19151 HAVE_WINDOW_SYSTEM is defined.
19152 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
19153
191542008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
19155
19156 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
19157
191582008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19159
19160 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
19161
191622008-05-15 Kenichi Handa <handa@m17n.org>
19163
19164 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
19165 preference.
19166
191672008-05-15 Glenn Morris <rgm@gnu.org>
19168
19169 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
19170
191712008-05-15 Chong Yidong <cyd@stupidchicken.com>
19172
19173 * fns.c (init_fns): Don't initialize weak_hash_tables here.
19174 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
19175
19176 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
19177
191782008-05-15 Kenichi Handa <handa@m17n.org>
19179
19180 * ftfont.c (ftfont_list): Downcase family name to check generic
19181 families.
19182
19183 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
19184 font-spec for QCfont value.
19185
19186 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
19187 buffer. Check the return value of it.
19188
191892008-05-14 Jason Rumney <jasonr@gnu.org>
19190
19191 * w32term.c (w32_get_glyph_overhangs): Remove.
19192 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
19193
191942008-05-14 Kenichi Handa <handa@m17n.org>
19195
19196 * font.c (font_prop_validate): Make nil a valid value.
19197 (font_clear_cache): Check if the cached vector of entities is nil
19198 or not.
19199
192002008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19201
19202 * emacs.c (main_thread): Conditionalize on
19203 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
19204 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
19205
19206 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
19207 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
19208 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
19209
192102008-05-14 Kenichi Handa <handa@m17n.org>
19211
19212 * coding.c (detect_coding_iso_2022): Ignore a coding category that
19213 has no corresponding coding system.
19214
192152008-05-14 Jason Rumney <jasonr@gnu.org>
19216
19217 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
19218
19219 * w32font.h (w32font_open_internal): Update declaration.
19220
19221 * w32font.c (w32font_open_internal): Change last argument from
19222 w32font_info struct to font object. Fill in font object from
19223 font_entity. Get Outline metrics if possible. Use them to
19224 calculate underline position and thickness. Use xlfd name as name
19225 property. Don't set codepage.
19226 (w32font_open): Pass font_object to w32font_open_internal. Don't
19227 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
19228 (w32font_draw): Use s->font.
19229 (clear_cached_metrics): Don't clear non-existent blocks.
19230
19231 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
19232 font was not found.
19233 (x_draw_glyph_string): Use underline position and thickness from font.
19234
19235 * w32uniscribe.c (uniscribe_open): Pass font_object to
19236 w32font_open_internal.
19237
192382008-05-14 Kenichi Handa <handa@m17n.org>
19239
19240 These changes are to delete all legacy font-handling codes, and
19241 make Emacs use only font-backends.
19242
19243 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
19244 (frame.o, image.o, print.o): Depend on $(FONTSRC).
19245
19246 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
19247
19248 * charset.h (Vcharset_non_preferred_head)
19249 (Vcurrent_iso639_language): Extern them.
19250
19251 * charset.c (Vcharset_non_preferred_head): New variable.
19252 (Vcurrent_iso639_language): New variable.
19253 (syms_of_charset): Declare it as a Lisp variable.
19254 (char_charset): Don't check non preferred charsets. As a last
19255 resort, return charset_unicode.
19256 (Fset_charset_priority): Update Vcharset_non_preferred_head.
19257
19258 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
19259 conditionals. Don't check enable_font_backend. Delete all codes
19260 used only when USE_FONT_BACKEND is not defined.
19261
19262 * dispextern.h (struct glyph_string): Change type of `font' to
19263 `struct font *'.
19264 (struct glyph_string): New member underline_position and
19265 underline_thickness.
19266 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
bba3e508
SM
19267 (struct face): Change type of `font' to `struct font *'.
19268 Remove members `font_name', `font_info_id'.
aac0c6e3
MR
19269 (per_char_metric, encode_char): Delete externs.
19270 (calc_pixel_width_or_height): Adjust the prototype.
19271
19272 * emacs.c (enable_font_backend): Delete extern.
19273 (main): Don't set enable_font_backend. Don't check the command
19274 line argument "-disable-font-backend".
19275
19276 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
19277 (enum font_property_index): New members FONT_DPI_INDEX,
19278 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
19279 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
19280 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
19281 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
19282 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
19283 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
19284 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
19285 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
19286 (struct font_spec, struct font_entity): New structs.
ef1b0ba7 19287 (FONT_ENCODING_NOT_DECIDED): Move from fontset.h.
aac0c6e3
MR
19288 (struct font): Many members from old "struct font_info" moved to
19289 here. Members font and entity deleted.
19290 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
19291 the new font-related objects.
19292 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
19293 (CHECK_FONT_GET_OBJECT): Likewise.
19294 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
ef1b0ba7 19295 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Move from font.h.
bba3e508
SM
19296 (struct font_driver): New members case_sensitive anc check.
19297 Type of the member list and open changed.
aac0c6e3
MR
19298 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
19299 (font_symbolic_width, font_find_object, font_get_spec)
19300 (font_set_lface_from_name): Delete extern.
19301 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
19302
19303 * font.c: Include <strings.h>.
19304 (enable_font_backend): Delete it.
19305 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
19306 (CHECK_VALIDATE_FONT_SPEC): Delete it.
ef1b0ba7 19307 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Move to font.h.
aac0c6e3
MR
19308 (null_string): Delete it.
19309 (null_vector): Make it static.
19310 (font_family_alist): Delete it.
19311 (Qnormal): Extern it.
19312 (QCextra, QClanguage): Delete it.
19313 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
19314 (font_make_spec, font_make_entity, font_make_object)
ef1b0ba7 19315 (font_intern_prop): Rename from intern_downcase. Don't downcase
aac0c6e3 19316 the string. Callers changed.
bba3e508 19317 (font_pixel_size): Adjust for the format change of font-related
aac0c6e3
MR
19318 objects.
19319 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
19320 (font_style_to_value, font_style_symbolic): New function.
19321 (build_font_family_alist): Delete it.
19322 (font_registry_charsets): Use Fassoc_string instead of
19323 assq_no_quit.
19324 (font_prop_validate_symbol): Don't return null_string.
bba3e508 19325 (font_prop_validate_style): Adjust for the change of
aac0c6e3
MR
19326 style-related values in a font vector.
19327 (font_property_table): Delete entries for QClanguage and
19328 QCantialias, add entries for QCavgwidth.
19329 (get_font_prop_index): Delete the 2nd argument FROM.
19330 (font_prop_validate): Arguments changed.
bba3e508 19331 (font_put_extra): Adjust for the change of font-related objects.
aac0c6e3
MR
19332 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
19333 (font_parse_fcname, font_unparse_fcname)
19334 (font_prepare_composition): Likewise.
ef1b0ba7 19335 (font_parse_family_registry): Rename from font_merge_old_spec.
aac0c6e3 19336 (otf_open): Delete the 1st arg entity.
bba3e508 19337 (font_otf_capability): Adjust for the above change.
aac0c6e3
MR
19338 (font_score): New arg alternate_families. Adjusted for the change
19339 of font-related objects.
19340 (font_sort_entites): New arg best_only.
19341 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
19342 Delete them.
19343 (font_match_p): Check alternate families.
19344 (font_find_object): Delete it.
19345 (font_check_object): New function.
bba3e508 19346 (font_clear_cache): Adjust for the change of font-related objects.
aac0c6e3
MR
19347 (font_delete_unmatched): New arg.
19348 (font_list_entities): Call font_driver->list with a spec that
19349 doesn't specify style-related properties.
19350 (font_matching_entity): Arguments changed. Caller changed.
bba3e508 19351 (font_open_entity): Adjust for the change of font-related objects.
aac0c6e3
MR
19352 (font_close_object, font_has_char, font_encode_char)
19353 (font_get_name, font_get_spec): Likewise.
19354 (font_spec_from_name, font_clear_prop, font_update_lface):
19355 New functions.
19356 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
19357 (font_prepare_for_face, font_done_for_face, font_open_by_name)
bba3e508 19358 (font_at): Adjust for the change of font-related objects.
aac0c6e3
MR
19359 (font_range): New function.
19360 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
bba3e508 19361 (Ffont_xlfd_name): Adjust for the change of font-related objects.
aac0c6e3 19362 (Fcopy_font_spec, Fmerge_font_spec): New function.
ef1b0ba7 19363 (Ffont_family_list): Rename from list-families.
aac0c6e3
MR
19364 (Finternal_set_font_style_table): Arguments changed.
19365 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
bba3e508 19366 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjust for the
aac0c6e3
MR
19367 change of font-related objects.
19368 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
19369
19370 * fontset.h (struct font_info): Delete it. Most members go to
19371 struct font.
ef1b0ba7 19372 (FONT_ENCODING_NOT_DECIDED): Move to font.h.
aac0c6e3
MR
19373 (enum FONT_SPEC_INDEX): Delete it.
19374 (font_info, list_fonts_func, load_font_func, query_font_func)
19375 (set_frame_fontset_func, find_ccl_program_func)
bba3e508
SM
19376 (get_font_repertory_func, new_fontset_from_font_name):
19377 Delete externs.
aac0c6e3
MR
19378 (fontset_from_font_name): Extern it.
19379 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
19380 (FONT_INFO_FROM_FACE): Deleted.
19381 (face_for_font): Adjust prototype.
19382
19383 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
19384 conditionals. Don't check enable_font_backend. Delete all codes
19385 used only when USE_FONT_BACKEND is not defined.
19386 (get_font_info_func, list_font_func, load_font_func)
19387 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
19388 (get_font_repertory_func): Delete them.
19389 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
19390 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
19391 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
19392 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
19393 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
19394 (fontset_compare_rfontdef): New function.
19395 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
19396 rfont-defs by qsort. Adjusted for the change of font-group vector.
19397 (load_font_get_repertory): Deleted.
19398 (fontset_find_font): Use new macros to ref/set elements of
19399 font-def and rfont-def.
19400 (fontset_font): Fix the timing of remembering that no font for C.
19401 (free_face_fontset): Do nothing if the face has no fontset.
19402 (face_suitable_for_char_p): Use new macros to ref/set elements of
19403 rfont-def.
19404 (face_for_char): Likewise. Call face_for_char with font_object.
19405 (fs_load_font): Delete. Delete #pragma surrounding it.
19406 (fs_query_fontset): Use strcasecmp instead of strcmp.
bba3e508 19407 (generate_ascii_font_name): Adjust for the format change of
aac0c6e3
MR
19408 font-spec.
19409 (Fset_fontset_font): Likewise. Use new macros to set elements of
19410 font-def.
19411 (Fnew_fontset): Use font_unparse_xlfd to generate
19412 FONTSET_ASCII (fontset).
19413 (new_fontset_from_font_name): Deleted.
ef1b0ba7 19414 (fontset_from_font): Rename from new_fontset_from_font. Check if
aac0c6e3
MR
19415 a fontset is already created for the font. FIx updating of
19416 Vfontset_alias_alist.
19417 (fontset_ascii_font): Deleted.
bba3e508 19418 (Ffont_info): Adjust for the format change of font-spec.
aac0c6e3
MR
19419 (Finternal_char_font): Likewise.
19420 (Ffontset_info): Likewise.
19421 (syms_of_fontset): Don't check load_font_func.
19422
19423 * fns.c (internal_equal): Handle PREV_FONT.
19424
19425 * frame.h: Delete USE_FONT_BACKEND conditional.
19426
19427 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
19428 conditionals. Don't check enable_font_backend. Delete all codes
19429 used only when USE_FONT_BACKEND is not defined.
19430 (x_set_font): Call x_new_font, not x_new_fontset2.
19431 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
19432 already set for the frame.
19433
bba3e508
SM
19434 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed.
19435 Make a font-entity by font_make_entity. Use font_intern_prop instead
aac0c6e3
MR
19436 of intern_downcase. Use FONT_SET_STYLE to set a style-related
19437 font property. If a font is scalable, set avgwidth property to 0.
19438 Set font-entity property by font_put_extra.
19439 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
bba3e508 19440 (ffont_driver): Adjust for the change of struct font_driver.
aac0c6e3
MR
19441 (ftfont_spec_pattern): New function.
19442 (ftfont_list): Return a list, not vector.
19443 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
19444 (ftfont_list_family): Don't downcase names.
19445 (ftfont_free_entity): Deleted.
19446 (ftfont_open): Return a font-object. Adjusted for the change of
19447 struct font. Get underline_thickness and underline_position from
19448 font property. Don't update dpyinfo->smallest_font_height and
19449 dpyinfo->smallest_char_width.
19450 (ftfont_close): Don't free `struct font'.
bba3e508 19451 (ftfont_has_char): Adjust for the format change of font-entity.
aac0c6e3
MR
19452 (ftfont_encode_char, ftfont_text_extents): Likewise.
19453
19454 * ftxfont.c (ftxfont_list): Return a list, not vector.
19455 (ftxfont_open): Return a font-object. Adjusted for the change of
19456 struct font. Get underline_thickness and underline_position from
19457 font property. Don't update dpyinfo->smallest_font_height and
19458 dpyinfo->smallest_char_width.
19459 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
bba3e508 19460 (ftxfont_draw): Adjust for the change of struct font.
aac0c6e3 19461
bba3e508
SM
19462 * image.c (image_ascent): Don't include "charset.h".
19463 Include "character.h" and "font.h".
aac0c6e3
MR
19464
19465 * lisp.h (enum pvec_type): New member PREV_FONT.
19466 (Fassoc_string): EXFUN it.
19467
19468 * print.c: Include font.h.
19469 (print_object): Handle font-related objects.
19470
19471 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
19472 conditionals. Don't check enable_font_backend. Delete all codes
19473 used only when USE_FONT_BACKEND is not defined.
19474 (handle_auto_composed_prop): Do nothing if it->f is not on a
19475 window system. Check how many following characters can be
19476 displayed by the same font.
19477 (calc_pixel_width_or_height): Type of the 4th arg is changed to
19478 'struct font *'.
19479 (get_char_face_and_encoding): Assign the whole encoding task to
19480 the `encode-char' method of a font driver.
bba3e508 19481 (fill_composite_glyph_string): Adjust for the change of `struct
aac0c6e3
MR
19482 face' and `struct glyph_string'.
19483 (fill_glyph_string): Likewise.
19484 (get_per_char_metric): Arguments changed.
bba3e508 19485 (x_get_glyph_overhangs): Adjust for the change of `struct face'
aac0c6e3
MR
19486 and `struct glyph_string'.
19487 (produce_stretch_glyph, calc_line_height_property)
19488 (x_produce_glyphs): Likewise.
19489
19490 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
19491 conditionals. Don't check enable_font_backend. Delete all codes
bba3e508
SM
19492 used only when USE_FONT_BACKEND is not defined.
19493 Use FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
aac0c6e3
MR
19494 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
19495 (Qp): Extern them.
19496 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
19497 Deleted.
19498 (struct font_name): Deleted.
19499 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
19500 (compare_fonts_by_sort_order): New function.
19501 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
19502 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
19503 Deleted.
19504 (Fx_family_fonts): Use font_list_entities, and sort fonts by
19505 compare_fonts_by_sort_order.
19506 (Fx_font_family_list): Call Ffont_family_list.
19507 (face_numeric_value, face_numeric_weight, face_numeric_slant)
19508 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
19509 (face_symbolic_slant, face_symbolic_swidth)
19510 (split_font_name_into_vector, build_font_name_from_vector)
19511 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
19512 (font_rescale_ratio, split_font_name, build_font_name)
19513 (free_font_names, sort_fonts, x_face_list_fonts)
19514 (face_font_available_p, sorted_font_list, cmp_font_names)
19515 (font_list_1, concat_font_list, font_list, remove_duplicates):
19516 Deleted.
19517 (Fx_list_fonts): Use Ffont_list.
19518 (LFACE_AVGWIDTH): Deleted.
19519 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
19520 by FONTP.
19521 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
19522 (set_lface_from_font_name): Delete it.
ef1b0ba7 19523 (set_lface_from_font): Rename from
aac0c6e3
MR
19524 set_lface_from_font_and_fontset. Caller changed. Don't set
19525 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
19526 for face.
19527 (merge_face_vectors): Copy font-spec if necessary.
19528 Clear properties of the font-spec if necessary.
19529 (merge_face_ref): Clear properties of the font-spec if necessary.
19530 (Finternal_set_lisp_face_attribute): Likewise.
19531 (set_font_frame_param): Use font_load_for_lface to load a
19532 font-object, and call Fmodify_frame_parameters with it.
19533 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
19534 font name by Ffont_xlfd_name.
19535 (Finternal_lisp_face_attribute_values): Don't check QCweight,
19536 QCslant, and QCwidth.
19537 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
19538 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
19539 Compare fonts by EQ.
19540 (lookup_non_ascii_face): Deleted.
19541 (face_for_font): The 2nd argument changed.
19542 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
19543 Check atomic font properties by case insensitive.
19544 (realize_non_ascii_face): Set face->overstrike correctly.
19545 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
19546 (dump_realized_face): Get font name from
19547 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
19548
19549 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
19550 conditionals. Don't check enable_font_backend. Delete all codes
19551 used only when USE_FONT_BACKEND is not defined.
19552 (xic_create_xfontset): Original code deleted and renamed from
19553 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
19554 (x_make_gc): Don't set GCFont in GCs.
19555 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
19556 opened by "fixed".
19557 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
19558 find_ccl_program_func, query_font_func, set_frame_fontset_func,
19559 get_font_repertory_func.
19560
19561 * xfont.c: Include <stdlib.h> and "ccl.h".
19562 (struct xfont_info): New structure.
19563 (xfont_query_font): Deleted.
ef1b0ba7 19564 (xfont_find_ccl_program): Rename from x_find_ccl_program and
aac0c6e3 19565 moved from xterm.c.
bba3e508 19566 (xfont_driver): Adjust for the change of struct font_driver.
aac0c6e3 19567 (compare_font_names): New function.
ef1b0ba7
SM
19568 (xfont_list_pattern): Sort font names case insensitively.
19569 Make font_entity by calling font_make_entity. Avoid auto-scaled fonts.
aac0c6e3
MR
19570 (xfont_list): Return a list, not vector.
19571 (xfont_match): If the font doesn't have QCname property, generate
19572 a name from the other font properties.
19573 (xfont_open): Return a font-object. Adjusted for the change of
19574 struct font. Get underline_thickness and underline_position from
19575 font property. Don't update dpyinfo->smallest_font_height and
19576 dpyinfo->smallest_char_width.
19577 (xfont_close): Don't free struct font.
bba3e508 19578 (xfont_prepare_face): Adjust for the change of struct font.
aac0c6e3 19579 (xfont_done_face): Deleted.
bba3e508 19580 (xfont_has_char): Adjust for the change of struct font.
aac0c6e3
MR
19581 (xfont_encode_char, xfont_draw): Likewise.
19582 (xfont_check): New function.
19583
bba3e508 19584 * xftfont.c (xftfont_list): Adjust for the change of `list'
aac0c6e3 19585 callback function.
bba3e508
SM
19586 (xftfont_match): Adjust for the format change of font-entity.
19587 (xftfont_open): Adjust for the format change of font-entity and
aac0c6e3
MR
19588 font-object. Adjusted for the change of struct font. Return a
19589 font-object. Don't update dpyinfo->smallest_font_height and
19590 dpyinfo->smallest_char_width.
19591 (xftfont_close): Block input while calling XftFontClose.
19592 (xftfont_prepare_face): Don't block input while calling
19593 xftfont_get_colors. Adjusted for the change of struct font.
19594 (xftfont_shape): Return value of error case fixed.
19595
19596 * xrdb.c (x_load_resources): Don't setup a fontset resource.
19597
19598 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
19599 conditionals.
19600 (FONT_WIDTH): Return (f)->max_width.
19601 (struct x_display_info): Delete member `font'.
19602 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
19603 (x_find_ccl_program, x_get_font_repertory): Delete externs.
19604 (struct x_output): Change type of `font' to `struct font *'.
19605
19606 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
19607 conditionals. Don't check enable_font_backend. Delete all codes
19608 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
19609 (x_per_char_metric, x_encode_char): Deleted.
19610 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
bba3e508 19611 (x_compute_glyph_string_overhangs): Adjust for the change of
aac0c6e3
MR
19612 `struct face'.
19613 (x_draw_glyph_string_foreground)
19614 (x_draw_composite_glyph_string_foreground): Likewise.
19615 (x_draw_glyph_string): Likewise. Use font->underline_position and
19616 font->underline_thickness.
ef1b0ba7 19617 (x_new_font): Rename from x_new_fontset2.
aac0c6e3
MR
19618 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
19619 (x_check_font): Call `check' method of a font driver.
19620 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
19621 (x_query_font, x_get_font_repertory): Deleted.
ef1b0ba7 19622 (x_find_ccl_program): Rename and moved to xfont.c.
bba3e508 19623 (x_redisplay_interface): Adjust for the change of `struct
aac0c6e3
MR
19624 redisplay_interface'.
19625
19626 * w32fns.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. Surround non-used
19629 code by "#ifdef OLD_FONT" and "endif".
19630 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
19631
19632 * w32font.h (struct w32font_info): New member.
19633 (FONT_COMPAT): New macro.
19634 (w32font_open_internal): Prototype adjusted.
19635
19636 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
19637 OLD_FONT" and "endif".
19638
19639 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
19640 conditionals. Don't check enable_font_backend. Delete all codes
19641 used only when USE_FONT_BACKEND is not defined.
19642 (w32font_open): Return a font-object. Make a font-object by
19643 font_make_object. Adjusted for the change of struct w32font_info.
19644 (w32font_close): Don't free struct font. Adjusted for the change
19645 of struct w32font_info.
19646 (w32font_encode_char, w32font_text_extents, w32font_draw):
ef1b0ba7 19647 Adjust for the change of struct w32font_info.
aac0c6e3
MR
19648 (w32font_draw): Likewise.
19649 (w32font_list_internal): Return a list, not vector.
19650 (w32font_open_internal): Change the 4th arg to font-object.
19651 Adjusted for the change of struct w32font_info and font-object format.
19652 (add_font_name_to_list): Don't downcase names.
19653 (w32_enumfont_pattern_entity): Make a font-entity by
19654 font_make_entity. Adjusted for the format change of font-entity.
19655 Use FONT_SET_STYLE to set a style-related font property. If a
19656 font is scalable, set avgwidth property to 0. Set font-entity
19657 property by font_put_extra.
bba3e508 19658 (font_matches_spec): Adjust for the format change of font-entity.
aac0c6e3
MR
19659 (w32_weight_table, w32_decode_weight): New variables.
19660 (w32_encode_weight): New function.
bba3e508 19661 (fill_in_logfont): Adjust for the format change of font-spec.
aac0c6e3
MR
19662 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
19663 weight value.
bba3e508 19664 (w32font_driver): Adjust for the change of struct font_driver.
aac0c6e3
MR
19665
19666 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
19667 conditionals. Don't check enable_font_backend. Surround non-used
19668 code by "#ifdef OLD_FONT" and "endif".
19669 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
bba3e508 19670 (FONT_AVG_WIDTH): Adjust for the change of struct font.
aac0c6e3
MR
19671
19672 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
19673 conditionals. Don't check enable_font_backend. Delete all codes
19674 used only when USE_FONT_BACKEND is not defined. Surround non-used
19675 code by "#ifdef OLD_FONT" and "endif".
19676
19677 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
19678 (uniscribe_open): Return value changed to font-object.
19679 Adjusted for the format change of font-object.
bba3e508 19680 (uniscribe_otf_capability): Adjust for the change of struct font.
aac0c6e3 19681 (add_opentype_font_name_to_list): Don't downcase names.
bba3e508 19682 (uniscribe_font_driver): Adjust for the change of struct
aac0c6e3
MR
19683 font_driver.
19684
196852008-05-13 Chong Yidong <cyd@stupidchicken.com>
19686
19687 * dispnew.c (update_frame_1): Check if tty output is still valid
19688 before flushing it.
19689
196902008-05-13 Jan Djärv <jan.h.d@swipnet.se>
19691
19692 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
19693 to Gtk+ menus.
19694
196952008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
19696
19697 * dired.c (file_name_completion): Tweak the code so as to always do it
19698 in a single pass. Tighten the scope of some variables.
19699
19700 * dired.c (Qdefault_directory): New var.
19701 (file_name_completion): Use it instead of Fexpand_file_name.
19702 (syms_of_dired): Initialize it.
19703
197042008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
19705
19706 * fileio.c (double_dollars): Remove dead code.
19707
197082008-05-10 Eli Zaretskii <eliz@gnu.org>
19709
19710 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
19711 Mention w32-get-true-file-attributes in doc string.
19712
19713 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
19714
197152008-05-09 Glenn Morris <rgm@gnu.org>
19716
19717 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
19718 2008-04-23.
19719
197202008-05-09 Eli Zaretskii <eliz@gnu.org>
19721
19722 Support for reporting owner and group of each file on MS-Windows:
19723 * dired.c (stat_uname, stat_gname): New functions, with special
19724 implementation for w32.
19725 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
19726
19727 * w32.c: Rename the_passwd_* to dflt_passwd_*.
19728 (dflt_group_name): New static variable.
19729 (dflt_group): Rename from the_group.
19730 (init_user_info): Init dflt_group fields. Get user's group name
19731 from LookupAccountSid.
19732 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
19733 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
19734 New initialization states.
19735 (globals_of_w32): Initialize them to zero. Initialize the default
19736 group name to "None".
19737 (GetFileSecurity_Name): New global var, the name of the function
19738 to call for GetFileSecurity.
19739 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
19740 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
19741 (get_file_security, get_security_descriptor_owner)
19742 (get_security_descriptor_group, is_valid_sid)
19743 (get_file_security_desc, get_rid, get_name_and_id)
19744 (get_file_owner_and_group): New functions.
19745 (stat): Use get_file_security_desc and get_file_owner_and_group to
19746 report the owner and primary group of each file. Don't ignore the
19747 high 32 bits of file's size, now that st_size is 64-bit wide.
19748 Fix test when to get true file attributes.
19749 (init_user_info): Use get_rid instead of equivalent inline code.
19750 (fstat): Don't ignore the high 32 bits of file's size.
19751
197522008-05-09 Chong Yidong <cyd@stupidchicken.com>
19753
19754 * image.c (png_load): Use correct bit-depth for setting background
19755 color.
19756
197572008-05-08 Eli Zaretskii <eliz@gnu.org>
19758
19759 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
19760 epa-hook.elc.
19761
197622008-05-08 Juanma Barranquero <lekktu@gmail.com>
19763
19764 * font.c (Ffont_match_p): Don't use `iff' in docstring.
19765
197662008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
19767
19768 * macfns.c (Fx_create_frame): Make a copy of frame parameters
19769 because the original parameters are in pure storage now.
19770 (mac_window): Remove unused params. Update callers.
19771
197722008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
19773
19774 * lread.c (substitute_object_recurse): Use lower-level primitives.
19775 Don't signal errors when traversing sub-char-tables.
19776 Don't loop over all the possible characters when traversing char-tables.
19777
19778 * print.c (print_preprocess): Add sub-char-tables to the print-table,
19779 just like we do in print.c.
19780
197812008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
19782
19783 * minibuf.c (Ftry_completion): Remove code left over from when we used
19784 scmp instead of Fcompare_strings.
19785
197862008-05-04 Juanma Barranquero <lekktu@gmail.com>
19787
19788 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
19789
197902008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19791
19792 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
19793 Create bitmap context in native byte order.
19794
19795 * macterm.c (XDrawLine)
19796 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
19797 context in native byte order.
19798
197992008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19800
19801 * config.in: Regenerate.
19802
19803 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
19804 New definitions for Image I/O support.
19805 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
19806 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
19807 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
19808 (mac_data_provider_release_data, image_load_image_io)
19809 [USE_MAC_IMAGE_IO]: New functions.
19810 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
19811 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
19812 (init_image_func_pointer) [MAC_OSX]: Remove function.
19813 (image_load_quartz2d) [MAC_OSX]: Check availability of
19814 CGImageCreateWithPNGDataProvider at compile time.
19815 Use lowercase `false' for boolean constant.
19816 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
19817 Use image_load_image_io.
19818 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
19819 Don't check MyCGImageCreateWithPNGDataProvider.
19820 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
19821 Don't call init_image_func_pointer.
19822
19823 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
19824
19825 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
19826 Make variable non-static.
19827 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
19828 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
19829
19830 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
19831 (RED_FROM_ULONG): Mask off higher bits.
19832 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
19833
19834 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
19835 Include AvailabilityMacros.h.
19836 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
19837 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
19838
198392008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
19840
19841 * chartab.c (Fset_char_table_range): If range is t, really set all
19842 chars to that value.
19843
198442008-05-03 Eli Zaretskii <eliz@gnu.org>
19845
19846 * dired.c (Ffile_attributes): Don't allow the device number become
19847 negative.
19848
198492008-05-02 Daiki Ueno <ueno@unixuser.org>
19850
19851 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
19852
198532008-05-02 Juri Linkov <juri@jurta.org>
19854
19855 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
19856 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
19857 DEFAULT argument as a list of default values in docstrings.
19858
198592008-05-01 Chong Yidong <cyd@stupidchicken.com>
19860
19861 * puresize.h (BASE_PURESIZE): Increase to 1210000.
19862
198632008-05-01 Martin Rudalics <rudalics@gmx.at>
19864
19865 * dispnew.c (change_frame_size_1): Preserve small windows when
19866 shrinking frames by calling set_window_height|width with third
19867 arg 2.
19868
19869 * window.h (struct window): Replace field too_small_ok by field
19870 resize_proportionally.
19871
19872 * window.c (make_window): Initialize resize_proportionally.
19873 (enlarge_window): Temporarily set resize_proportionally to make
19874 sure that shrink_windows does scale the window proportionally.
19875 (shrink_windows): When window has resize_proportionally set try
19876 to shrink it proportionally by stealing from other windows.
19877 (struct saved_window, Fset_window_configuration)
19878 (compare_window_configurations): Handle resize_proportionally.
19879 (WINDOW_TOTAL_SIZE): New macro.
19880 (window_min_size, shrink_windows, size_window): Use it.
19881 (check_min_window_sizes): Remove. Invalid values of
19882 window-min-height|width are handled by window_min_size_2 now.
19883 (size_window, Fsplit_window, enlarge_window)
19884 (adjust_window_trailing_edge, grow_mini_window): Don't call
19885 check_min_window_sizes.
19886 (window_min_size_2, window_min_size_1, window_min_size):
19887 New argument safe_p for retrieving "safe" minimum sizes.
19888 (Fdisplay_buffer, Fsplit_window, enlarge_window)
19889 (adjust_window_trailing_edge, grow_mini_window):
19890 Adjust arguments of window_min_size... functions.
19891 (shrink_windows): Argument min_size removed. New argument
19892 safe_p allows shrinking windows to their safe minimum sizes.
19893 Calculate minimum size and decide whether a window shall be
19894 deleted for each window individually.
19895 (size_window): When nodelete_p equals 2, tell shrink_windows to
19896 delete windows only if their new minimum size is no more safe.
19897 (shrink_window_lowest_first): Call window_min_size_1 to make
19898 sure to preserve modeline of bottom-most window when resizing
19899 the minibuffer.
19900 (Fset_window_configuration, Fcurrent_window_configuration)
19901 (compare_window_configurations): Do not handle
19902 window-min-height|width any more.
19903 (syms_of_window): Clarify window-min-height|width doc-strings.
19904
199052008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
19906
19907 * dired.c (file_name_completion): Fix up the encoding/decoding issue
19908 some more. Copy some of the code from Ftry_completions.
19909 Remove special case code that dates back to initial revision when the
19910 slash was only added when necessary and that can't trigger nowadays.
19911
199122008-04-27 Kenichi Handa <handa@m17n.org>
19913
19914 * font.c (font_prop_validate): Signal `error' instead of `font'.
19915
199162008-04-29 Jason Rumney <jasonr@gnu.org>
19917
19918 * w32fns.c (Fw32_battery_status): New defun.
19919 (syms_of_w32fns): Defsubr it.
19920
199212008-04-28 Andreas Schwab <schwab@suse.de>
19922
19923 * dired.c (file_name_completion): Fix another mixing of encoded
19924 and decoded names.
19925
199262008-04-28 Juanma Barranquero <lekktu@gmail.com>
19927
19928 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
19929
199302008-04-27 Juanma Barranquero <lekktu@gmail.com>
19931
19932 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
19933
199342008-04-27 Andreas Schwab <schwab@suse.de>
19935
19936 * dired.c (file_name_completion): Fix inappropriate mixing of
19937 encoded and decoded names.
19938
19939 * xterm.c (XTread_socket): Fix use of uninitialized variable.
19940
19941 * puresize.h (BASE_PURESIZE): Increase to 1200000.
19942
199432008-04-26 Eli Zaretskii <eliz@gnu.org>
19944
19945 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
19946 2008-03-31, it's not needed anymore with `struct stat' definition
19947 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
19948 for the same reasons.
19949
199502008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
19951
19952 * m/sparc.h: Additional redefinitions for GNU/Linux.
19953
199542008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19955
19956 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
19957 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
19958 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
19959 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
19960 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
19961 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
19962 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
19963 Likewise.
19964
19965 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
19966 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
19967 (mac_ax_number_of_characters): Add externs.
19968 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
19969 [USE_MAC_TSM]: Likewise.
19970 (mac_handle_text_input_event) [MAC_OSX]:
19971 Handle kEventTextInputOffsetToPos for no active input area case.
19972 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
19973 (mac_handle_document_access_event)
19974 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
19975 (install_application_handler) [MAC_OSX]: Register handlers for
19976 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
19977 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
19978 Register mac_handle_document_access_event.
19979
19980 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
19981 Make functions non-static.
19982
199832008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
19984
19985 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
19986 (read_file_name_completion_ignore_case, insert_default_directory)
19987 (Qdefault_directory): Move to minibuffer.el.
19988 (Fread_file_name): Call the new `read-file-name' instead.
19989
199902008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19991
19992 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
19993 Make function non-static.
19994 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
19995 Remove function.
19996 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
19997 Move to mactoolbox.c.
19998 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
19999
20000 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
20001 (mac_rect_make): New macro.
20002
20003 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
20004 instead of float.
20005 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
20006 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
20007 (XSetBackground) [USE_CG_DRAWING]: Likewise.
20008 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
20009 CGRectMake.
20010 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
20011 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
20012 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
20013 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
20014 instead of WindowRef in argument type.
20015 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
20016 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
20017 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
20018 instead of DISPLAY. All uses changed.
20019 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
20020 (x_calc_absolute_position): Simplify so as not to use
20021 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
20022
20023 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
20024 instead of WindowRef in argument type.
20025 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
20026 [TARGET_API_MAC_CARBON]: Remove externs.
20027 (create_apple_event, mac_event_parameters_to_lisp)
20028 [TARGET_API_MAC_CARBON]: Add externs.
20029
20030 * mactoolbox.c (Vmac_ts_script_language_on_focus)
20031 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
20032 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
20033 is clicked.
20034 (x_activate_menubar): Remove extern for saved_menu_event_location.
20035 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
20036 Move from mac.c.
20037
200382008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20039
20040 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
20041 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
20042
200432008-04-23 Jason Rumney <jasonr@gnu.org>
20044
20045 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
20046 attributes only for local files.
20047
20048 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
20049 default to Qlocal.
20050
200512008-04-22 Juri Linkov <juri@jurta.org>
20052
20053 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
20054 read-buffer-to-switch instead of using the letter "B".
20055
200562008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
20057
20058 * fileio.c (Qdefault_directory): New variable.
20059 (Fread_file_name): Use it to pass `dir' to the completion functions.
20060
200612008-04-20 Chong Yidong <cyd@stupidchicken.com>
20062
20063 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
20064
200652008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
20066
20067 * keyboard.c (Vpre_help_message): Remove.
20068 (show_help_echo): Remove default C code.
20069
20070 * dired.c (directory_files_internal, file_name_completion):
20071 Only call ENCODE_FILE if the string is indeed decoded.
20072
200732008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
20074
20075 * Makefile.in (TOOLKIT_DEFINES): Remove.
20076 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
20077
200782008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20079
20080 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
20081 (mactoolbox.o): New target.
20082
20083 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
20084 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
20085
20086 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
20087 Use mac_set_frame_window_background instead of XSetWindowBackground.
20088 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
20089 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
20090 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
20091 instead of SetWindowTitleWithCFString.
20092 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
20093 Move function to mactoolbox.c.
20094 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
20095 Use mac_set_window_modified instead of SetWindowModified.
20096 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
20097 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
20098 (Fx_focus_frame): Use mac_front_non_floating_window instead of
20099 FrontNonFloatingWindow. Use mac_activate_window instead of
20100 ActivateWindow. Use mac_active_non_floating_window instead of
20101 ActiveNonFloatingWindow.
20102 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
20103 Use mac_show_hourglass and mac_hide_hourglass.
20104 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
20105 instead of GetGlobalMouse.
20106 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
20107 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
20108 Use mac_bring_window_to_front instead of BringToFront.
20109 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
20110 mactoolbox.c.
20111 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
20112 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
20113 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
20114 mactoolbox.c.
20115
20116 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
20117 (XtPointer): Move typedef from macmenu.c.
20118 (enum button_type): Move enum from macmenu.c.
20119 (widget_value): Move typedef from macmenu.c.
20120 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
20121 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
20122 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
20123 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
20124 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
20125 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
20126 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
20127 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
20128 (Selection): Move typedef from macselect.c.
20129 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
20130 macterm.c.
20131 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
20132 (mac_is_window_collapsed, mac_bring_window_to_front)
20133 (mac_send_window_behind, mac_hide_window, mac_show_window)
20134 (mac_collapse_window, mac_front_non_floating_window)
20135 (mac_active_non_floating_window, mac_activate_window)
20136 (mac_move_window_structure, mac_move_window, mac_size_window)
20137 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
20138
20139 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
20140 (enum mac_menu_kind): Move enum to mactoolbox.c.
20141 (min_menu_id): Move variable to mactoolbox.c.
20142 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
20143 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
20144 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
20145 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
20146 [TARGET_API_MAC_CARBON]: Likewise.
20147 (XtPointer): Move typedef to macgui.h.
20148 (enum button_type): Move enum to macgui.h.
20149 (widget_value): Move typedef to macgui.h.
20150 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
20151 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
20152 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
20153 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
20154 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
20155 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
20156 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
20157 (popup_activated_flag): Make variable non-static.
20158 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
20159 (add_menu_item, fill_menu, dispose_menus):
20160 Move functions to mactoolbox.c.
20161 (restore_show_help_function, menu_target_item_handler)
20162 (install_menu_target_item_handler, mac_handle_dialog_event)
20163 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
20164 [TARGET_API_MAC_CARBON]: Likewise.
20165 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
20166 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
20167 (find_and_call_menu_selection, name_is_separator): Make function
20168 non-static.
20169 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
20170 to mactoolbox.c.
20171 (set_frame_menubar): Don't call install_menu_quit_handler.
20172 (menu_item_selection): New variable.
20173 (mac_menu_show): Use create_and_show_popup_menu.
20174 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
20175 selection but set variable menu_item_selection. All uses changed.
20176 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
20177 Call install_menu_quit_handler. Move to mactoolbox.c.
20178
20179 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
20180 (Selection): Move typedef to macgui.h.
20181 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
20182 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
20183 Make variables non-static.
20184 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
20185 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
20186 Make functions non-static.
20187 (Vmac_service_selection) [MAC_OSX]: Likewise.
20188 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
20189 (mac_valid_selection_target_p, mac_clear_selection)
20190 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
20191 (mac_put_selection_value, mac_selection_has_target_p)
20192 (mac_get_selection_value, mac_get_selection_target_list)
20193 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
20194 Move functions to mactoolbox.c.
20195 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
20196 Likewise.
20197 (copy_scrap_flavor_data, mac_handle_service_event)
20198 (install_service_handler) [MAC_OSX]: Likewise.
20199 (syms_of_macselect) <Vmac_dnd_known_types>:
20200 Use mac_dnd_default_known_types.
20201
20202 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
20203 Move to mactoolbox.c.
20204 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
20205 (Fx_selection_owner_p): Add EXFUN.
20206 (install_window_handler, remove_window_handler, XSetWindowBackground):
20207 Remove externs.
20208 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
20209 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
20210 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
20211 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
20212 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
20213 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
20214 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
20215 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
20216 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
20217 (create_and_show_popup_menu, mac_get_selection_from_symbol)
20218 (mac_valid_selection_target_p, mac_clear_selection)
20219 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
20220 (mac_put_selection_value, mac_selection_has_target_p)
20221 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
20222 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
20223 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
20224 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
20225 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
20226 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
20227 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
20228 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
20229 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
20230
20231 * mactoolbox.c: New file.
20232
202332008-04-18 Jason Rumney <jasonr@gnu.org>
20234
20235 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
20236
202372008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
20238
20239 * character.c (Fmultibyte_char_to_unibyte):
20240 Return latin1 chars unchanged.
20241
20242 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
20243 relocated if it points to `name'.
20244
202452008-04-17 Kenichi Handa <handa@m17n.org>
20246
20247 * data.c (Faset): Allow setting a multibyte character in an
20248 ASCII-only unibyte string.
20249
20250 * lisp.h (STRING_SET_MULTIBYTE): New macro.
20251
202522008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
20253
20254 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
20255 done in config.h.
20256
202572008-04-16 Juanma Barranquero <lekktu@gmail.com>
20258
20259 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
20260 (Fchar_direction): Add usage in the docstring.
20261
202622008-04-15 Chong Yidong <cyd@stupidchicken.com>
20263
20264 * keyboard.c (read_key_sequence): Remove always-true checks.
20265
202662008-04-14 Jason Rumney <jasonr@gnu.org>
20267
20268 * w32font.c (w32font_open_internal): Set max_bounds.descent in
20269 compatibility struct, for better underline positioning.
20270
202712008-04-13 David Hansen <david.hansen@gmx.net>
20272
20273 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
20274 string.
20275
202762008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
20277
20278 * m/hp800.h (XUINT, XSET): Remove.
20279
202802008-04-12 Juanma Barranquero <lekktu@gmail.com>
20281
20282 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
20283 previous change.
20284
202852008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
20286
20287 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
20288 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
20289
202902008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
20291
20292 * keymap.h (map_keymap_canonical): Declare.
20293 * xmenu.c (single_keymap_panes): Use it.
20294
202952008-04-11 Glenn Morris <rgm@gnu.org>
20296
20297 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
20298 set the target's value to that of the alias.
20299
203002008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
20301
20302 * term.c (set_tty_color_mode): Left over typo.
20303
203042008-04-10 Michael Albinus <michael.albinus@gmx.de>
20305
20306 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
20307 only after check for file name handler functions. Signal, when
20308 native functionality is not supported.
20309 (syms_of_fileio): Declare it unconditionally.
20310
203112008-04-10 Jason Rumney <jasonr@gnu.org>
20312
20313 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
20314 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
20315
20316 * w32.c (logon_network_drive): Also logon to remote drives that
20317 are mapped to drive letters.
20318
203192008-04-10 Glenn Morris <rgm@gnu.org>
20320
20321 * xdisp.c (truncate-partial-width-windows): Doc fix.
20322
203232008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
20324
20325 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
20326 Move functions to minibuffer.el.
20327 (syms_of_fileio): Don't declare them.
20328
203292008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
20330
20331 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
20332 (syms_of_minibuf): Remove its initialization.
20333
20334 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
20335
203362008-04-09 Juanma Barranquero <lekktu@gmail.com>
20337
20338 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
20339
203402008-04-09 Jason Rumney <jasonr@gnu.org>
20341
20342 * makefile.w32-in (distclean): Delete makefile too.
20343 (maintainer-clean): New target.
20344
20345 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
20346
20347 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
20348 for new font backend and composite cases.
20349
203502008-04-09 Jan Djärv <jan.h.d@swipnet.se>
20351
20352 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
20353 Most of the code moved to run_timers.
20354 (do_pending_atimers): Call run_timers.
20355 (run_timers): New function.
20356
20357 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
20358 run atimers.
20359
20360 * process.c (wait_reading_process_output): The same as above.
20361
203622008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
20363
20364 * minibuf.c (last_exact_completion): Remove variable.
20365 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
20366 (complete_and_exit_1, complete_and_exit_2)
20367 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
20368 (Fdisplay_completion_list, display_completion_list_1)
20369 (Fminibuffer_completion_help, Fself_insert_and_exit)
20370 (Fexit_minibuffer, Fminibuffer_message): Move functions to
20371 minibuffer.el.
20372 (syms_of_minibuf): Remove corresponding initializations.
20373
20374 * keyboard.c (Qdeactivate_mark): New var.
20375 (command_loop_1): Use it to call `deactivate-mark'.
20376 (syms_of_keyboard): Initialize it.
20377
20378 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
20379 to another frame.
20380 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
20381 Don't call set_tty_color_mode.
20382 (store_frame_param): Reset previous_frame rather than call
20383 set_tty_color_mode.
20384 * term.c (set_tty_color_mode): Rewrite.
20385 * dispextern.h (set_tty_color_mode): New type.
20386 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
20387
203882008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
20389
20390 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
20391 for generic chars, which do not exist any more in emacs-unicode.
20392
203932008-04-08 Michael Albinus <michael.albinus@gmx.de>
20394
20395 * coding.c (detect_coding_emacs_mule)
20396 (Ffind_operation_coding_system): Fix typo.
20397
203982008-04-08 Jason Rumney <jasonr@gnu.org>
20399
20400 * w32uniscribe.c (SNAME): Extract only symbol name.
20401
20402 * w32font.h (struct w32_metric_cache): New struct.
20403 (w32font_info): Use it.
20404 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
20405 (CACHE_BLOCKSIZE): New constants.
20406
20407 * w32font.c (Qja, Qko, Qzh): New symbols.
20408 (syms_of_w32font): Initialise them.
20409 (font_matches_spec): Use them to filter by language.
20410 (recompute_cached_metrics): Remove function.
20411 (compute_metrics, clear_cached_metrics): New functions.
20412 (w32font_encode_char): Use them to manage metric cache.
20413 (w32font_text_extents): Cache metrics for all glyphs on demand.
20414 Delay converting glyph indices to WORD until needed.
20415 (w32font_open_internal): Initialize metric cache to empty.
20416 (registry_to_w32_charset): Charset should always be a symbol.
20417 (fill_in_logfont, list_all_matching_fonts): Family should
20418 always be a symbol.
20419
204202008-04-06 Jason Rumney <jasonr@gnu.org>
20421
20422 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
20423 Give up if glyph indices not supported. Use uniscribe obtained
20424 ABC widths for individual metrics. Map glyph clusters back to
20425 characters using fClusterStart flag. Return number of glyphs
20426 produced, not chars processed.
20427 (uniscribe_shape): Map char at FROM to current glyph.
20428
204292008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20430
20431 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
20432 Use SetMenuItemHierarchicalMenu.
20433
204342008-04-05 Jason Rumney <jasonr@gnu.org>
20435
20436 * image.c (pbm_load): Allow color values up to 65535.
20437 Throw an error if max_color_idx is outside the supported range.
20438 Report an error when image size is invalid.
20439 Read two bytes at a time when raw images have max_color_idx above 255.
20440
aac0c6e3
MR
204412008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
20442
20443 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
20444 append "CCL: Quitted" when the CCL program is quitted.
20445 (setup_ccl_program): Initialize ccl->quit_silently to zero.
20446
20447 * ccl.h (struct ccl_program): New member quit_silently.
20448
204492008-04-05 Chong Yidong <cyd@stupidchicken.com>
20450
20451 * search.c (compile_pattern_1): Treat non-nil and non-string of
20452 search-spaces-regexp as nil.
20453
20454 * minibuf.c (Fassoc_string): Tweak docstring.
20455
204562008-04-05 Eli Zaretskii <eliz@gnu.org>
20457
20458 * dired.c (Ffile_attributes): Support inode numbers wider than 32
20459 bits. Remove ugly WINDOWSNT-specific kludge introduced on
20460 2008-03-14 to force inode be positive.
20461
20462 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
20463 _S_* ones, since we now use our own sys/stat.h.
20464 (stat, fstat): Don't mangle the inode number.
20465 (init_user_info): Don't restrict UID and GID to 0-60000 range.
20466
204672008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
20468
20469 * frame.h (struct frame): Give one more bit to `visible' since we use
20470 values larger than 1 to indicate obscured frames on ttys.
20471
20472 * keymap.c (Qkeymap_canonicalize): New var.
20473 (Fmap_keymap_internal): New fun.
20474 (describe_map): Use keymap-canonicalize.
20475
20476 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
20477 (Fundo_boundary): Set them.
20478 (syms_of_undo): Initialize them.
20479 (record_point): Use them instead of last_point_position*.
20480 (last_undo_buffer): Change type.
20481
204822008-04-04 Jason Rumney <jasonr@gnu.org>
20483
20484 * w32font.c (w32font_text_extents): Use font's ascent and descent.
20485 (recompute_cached_metrics): Don't set ascent and descent per char.
20486
20487 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
20488 (uniscribe_check_otf): Add GC protection before consing.
20489 Rearrange loop for counting features.
20490
204912008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
20492
20493 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
20494 buffer with byte-size of source buffer.
20495
204962008-04-03 Chong Yidong <cyd@stupidchicken.com>
20497
20498 * callint.c (Fcall_interactively): Handle temporary region even
20499 when shift-select-mode is off.
20500
205012008-04-03 Jason Rumney <jasonr@gnu.org>
20502
20503 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
20504
205052008-04-03 Kenichi Handa <handa@m17n.org>
20506
20507 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
20508 (CATEGORY_MASK_UTF_16): Likewise.
20509 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
20510 binary file.
20511 (detect_coding): Add null-byte detection for a binary file.
20512 (detect_coding_system): Likewise.
20513
205142008-04-03 Jason Rumney <jasonr@gnu.org>
20515
20516 * w32uniscribe.c: New file.
20517
20518 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
20519
20520 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
20521
20522 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
20523 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
20524 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
20525 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
20526 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
20527 (Qphonetic): New symbols.
20528 (syms_of_w32font): Initialize them.
20529 (font_supported_scripts): Use them.
20530 (w32font_list_family): List all charsets.
20531 (w32font_text_extents, recompute_cached_metrics): Fix metric
20532 calculations.
20533 (w32_enumfont_pattern_entity): Make full_type a DWORD.
20534 Give opentype fonts their own format.
20535 (font_matches_spec): New arguments backend and logfont.
20536 Handle :otf spec for uniscribe backend.
20537 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
20538 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
20539
20540 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
20541 font backend.
20542 (globals_of_w32fns): Initialize uniscribe font backend.
20543
20544 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
20545 dependencies.
20546 (w32uniscribe.$(O)): New file to build.
20547 (FONT_OBJ): Include w32uniscribe.$(O).
20548 (LIBS): Add uniscribe libraries.
20549
20550 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
20551
205522008-04-02 Chong Yidong <cyd@stupidchicken.com>
20553
20554 * callint.c (Vshift_select_mode): New var.
20555 (Finteractive): Document new ^ spec.
20556 (Fcall_interactively): Call handle-shift-selection if the ^ spec
20557 is present.
20558
20559 * keyboard.c (Vthis_command_keys_shift_translated): New var.
20560 (command_loop_1): Avoid running the direct display versions of
20561 forward-char and backward-char if shift-selection may occur.
20562 (read_key_sequence): Set Vthis_command_keys_shift_translated if
20563 shift-translation takes place.
20564
20565 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
20566 avoid clobbering by define-minor-mode.
20567
20568 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
20569 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
20570
20571 * syntax.c (Fforward_word): Add ^ interactive spec.
20572
20573 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
20574 (Fscroll_right): Add ^ interactive spec.
20575
205762008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
20577
20578 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
20579
20580 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
20581
20582 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
20583
205842008-03-31 Juri Linkov <juri@jurta.org>
20585
20586 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
20587
205882008-03-30 Jan Djärv <jan.h.d@swipnet.se>
20589
20590 * gtkutil.c (xg_set_geometry): Fix indentation.
20591 (xg_resize_outer_widget): Remove.
20592 (x_wm_size_hint_off): Fix indentation.
20593 (xg_frame_set_char_size): Call flush_and_sync after
20594 gtk_window_resize.
20595 (x_wm_set_size_hint): Pass NULL as geometry window to
20596 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
20597 Add menu bar and tool bar height to base height.
20598 (xg_update_frame_menubar, free_frame_menubar)
20599 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
20600 (update_frame_tool_bar, free_frame_tool_bar):
20601 Change xg_resize_outer_widget to xg_frame_set_char_size.
20602
206032008-03-30 Michael Albinus <michael.albinus@gmx.de>
20604
20605 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
20606 (Fdbus_call_method): New parameter TIMEOUT.
20607 (dbus-send-signal): Optimize UNGCPRO call.
20608
206092008-03-29 Juri Linkov <juri@jurta.org>
20610
20611 * window.c (Fdisplay_buffer): Move call to
20612 Vsplit_window_preferred_function out of conditions that check
20613 if window is eligible for vertical splitting.
20614 When Vsplit_window_preferred_function is non-nil, call it and use
20615 its non-nil return value as window. Otherwise, continue doing
20616 vertical splitting using Fsplit_window with arg horflag=nil.
20617 (syms_of_window) <Vsplit_window_preferred_function>: Change the
20618 default value from `split-window' to nil.
20619
206202008-03-29 Juri Linkov <juri@jurta.org>
20621
20622 * callint.c (Fcall_interactively): Revert 2008-03-16 change
20623 for interactive code letters 'b' and 'B'.
20624
206252008-03-29 Eli Zaretskii <eliz@gnu.org>
20626
20627 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
20628 multibyte string.
20629
206302008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
20631
20632 * keyboard.c (pending_funcalls): New var.
20633 (timer_check): Run it.
20634 (syms_of_keyboard): Initialize it.
20635 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
20636 (Vdelete_terminal_functions): New vars.
20637 (syms_of_terminal): Initialize them.
20638 (Fdelete_terminal): Run delete-terminal-functions.
20639 * xdisp.c (safe_eval): Rewrite.
20640 (safe_call2): New fun.
20641 * frame.c (Qdelete_frame_functions): New var.
20642 (syms_of_frame): Initialize it.
20643 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
20644 * lisp.h (safe_call2, pending_funcalls): Declare.
20645
206462008-03-28 Andreas Schwab <schwab@suse.de>
20647
20648 * indent.c (Fmove_to_column): Move declaration before statements.
20649
206502008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
20651
20652 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
20653 (struct frame): Use bit fields for boolean vars.
20654
20655 * process.c (server_accept_connection): Simplify naming.
20656 (emacs_get_tty_pgrp): Use SDATA.
20657
20658 * coding.c (decode_coding_object): Fix last change.
20659
206602008-03-27 Jason Rumney <jasonr@gnu.org>
20661
20662 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
20663
206642008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
20665
20666 * charset.c (Fdefine_charset_internal): Change the way of
20667 registering charsets in Vcharset_order_list.
20668 (syms_of_charset): Make the charset `eight-bit' supplementary.
20669
206702008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
20671
20672 * regex.c (EXTEND_BUFFER): Change order of pointer addition
20673 operations, to avoid having the difference between pointers
20674 overflow.
20675
206762008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
20677
20678 * indent.c (check_display_width): New fun.
20679 (scan_for_column): Use it.
20680
20681 * data.c (syms_of_data): Mark most-positive-fixnum and
20682 most-negative-fixnum as constants.
20683
20684 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
20685
20686 * indent.c (scan_for_column): Extract from current_column_1.
20687 Merge with the same code from Fmove_to_column.
20688 (current_column_1, Fmove_to_column): Use it.
20689
206902008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
20691
20692 * keymap.c (map_keymap_internal): New fun.
20693 (map_keymap): Use it.
20694 (Fmap_keymap_internal): New fun.
20695 (Fmap_keymap): Remove left-out test from before make_save_value.
20696
20697 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
20698
20699 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
20700 Use XCAR/XCDR.
20701
20702 * process.h (struct Lisp_Process): Remove filter_multibyte.
20703 * process.c (QCfilter_multibyte): Remove.
20704 (setup_process_coding_systems): Don't use filter_multibyte.
20705 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
20706 (read_process_output): Don't adjust multibyteness to filter_multibyte.
20707 (Fset_process_filter_multibyte): Change the coding-system to
20708 approximate the previous behavior.
20709 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
20710 coding-system.
20711
20712 * coding.c (decode_coding_object): When not decoding into a buffer,
20713 obey the coding system's preference of (uni|multi)byte.
20714
207152008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
20716
20717 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
20718 every char is changed and has a different byte-length.
20719 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
20720 Fix int -> EMACS_INT.
20721
207222008-03-23 David Hansen <david.hansen@gmx.net>
20723
20724 * dbusbind.c (xd_read_message): Remove extra copying of message
20725 strings. Check for NULL `interface' or `member'.
20726
207272008-03-22 Eli Zaretskii <eliz@gnu.org>
20728
20729 * w32.c (readdir): If FindFirstFile/FindNextFile return in
20730 cFileName a file name that includes `?' characters, use the 8+3
20731 alias in cAlternateFileName instead.
20732
207332008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
20734
20735 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
20736
207372008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
20738
20739 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
20740 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
20741 work on current_buffer only instead (that was already the case
20742 for some of the code anyway).
20743 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
20744 (temp_set_point, temp_set_point_both): Use EMACS_INT.
20745 (SET_PT, SET_PT_BOTH): Adjust.
20746 * intervals.h (set_point, temp_set_point, set_point_both)
20747 (temp_set_point_both): Remove redundant declarations.
20748
207492008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
20750
20751 * fileio.c (Finsert_file_contents):
20752 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
20753 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
20754 when buffer != current_buffer anyway.
20755
207562008-03-20 Andreas Schwab <schwab@suse.de>
20757
20758 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
20759 as default.
20760
207612008-03-19 Jason Rumney <jasonr@gnu.org>
20762
20763 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
20764 (syms_of_w32fns): Initialize them.
20765 (HOURGLASS_ID): New constant.
20766 (x_window_to_frame): Don't check hourglass_window.
20767 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
20768 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
20769 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
20770 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
20771 Only change the cursor if hourglass is not active.
20772 (Fx_create_frame): Initialize frame's current_cursor.
20773 (hourglass_atimer): Remove.
20774 (hourglass_started): New function.
20775 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
20776 (show_hourglass): Adapt to w32, changing argument to frame.
20777
20778 * w32term.h (struct w32_output): Remove hourglass_window.
20779 Add current_cursor.
20780
20781 * eval.c (call_debugger, Fsignal):
20782 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
20783 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
20784 (Fexecute_extended_command, cancel_hourglass_unwind):
20785 * minibuf.c (read_minibuf):
20786 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
20787
207882008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
20789
20790 * window.c (run_funs): New fun.
20791 (run_window_configuration_change_hook): Use it to run the buffer-local
20792 and the global part of the hook.
20793
20794 * xdisp.c (format_mode_line_unwind_data): Add window argument.
20795 (unwind_format_mode_line): Restore selected window.
20796 (x_consider_frame_title, Fformat_mode_line): Set selected window.
20797
207982008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
20799
20800 * editfns.c (Fchar_equal): Check they are valid characters.
20801
20802 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
20803
208042008-03-17 Andreas Schwab <schwab@suse.de>
20805
20806 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
20807 against a charset.
20808
20809 * lisp.h (Fbuffer_list): Declare.
20810
208112008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 20812
aac0c6e3
MR
20813 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
20814 handlebox_widget is != 0.
20815
208162008-03-16 Juri Linkov <juri@jurta.org>
20817
20818 * callint.c (Fcall_interactively): For interactive code letters
20819 'b' and 'B' put the buffer list into the list of default "future"
20820 values of the minibuffer.
20821
208222008-03-16 Andreas Schwab <schwab@suse.de>
20823
20824 * keyboard.c (read_key_sequence): Fix downcasing of letters with
20825 modifiers.
20826
20827 * regex.c (re_match_2_internal): Correct matching of a charset
20828 against latin-1 characters.
20829
208302008-03-16 Kenichi Handa <handa@m17n.org>
20831
20832 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
20833 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
20834 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
20835 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
20836 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
20837 CHAR_STRING_ADVANCE.
20838 (produce_chars): Fix for the case that the source and the
20839 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
20840 instead of CHAR_STRING_ADVANCE.
20841 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
20842 STRING_CHAR_ADVANCE.
20843
208442008-03-15 Andreas Schwab <schwab@suse.de>
20845
20846 * regex.c (re_match_2_internal): Correct matching of eight bit
20847 characters in unibyte strings.
20848
208492008-03-15 Martin Rudalics <rudalics@gmx.at>
20850
20851 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
20852 at end of range when it coincides with the end of the buffer.
20853
208542008-03-14 Eli Zaretskii <eliz@gnu.org>
20855
20856 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
20857
20858 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
20859
208602008-03-14 Jason Rumney <jasonr@gnu.org>
20861
20862 * editfns.c (initial_tz): New variable.
20863 (syms_of_editfns): Initialize it.
20864 (Fset_time_zone_rule): Set it when first called.
20865 Use it when TZSTRING is nil.
20866
20867 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
20868 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
20869 (monitor_from_point_fn, get_monitor_info_fn): New globals.
20870 (globals_of_w32fns): Initialize them.
20871 (compute_tip_xy): Use them to position tooltips.
20872
208732008-03-14 Glenn Morris <rgm@gnu.org>
20874
20875 * emacs.c (main): Revert previous change.
20876 (standard_args): Revert -internal-script back to -scriptload,
20877 and remove the long-option form.
20878
208792008-03-13 Glenn Morris <rgm@gnu.org>
20880
20881 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
20882 Remove option -enable-font-backend.
20883
208842008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
20885
20886 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
20887
208882008-03-11 Jan Djärv <jan.h.d@swipnet.se>
20889
20890 * xterm.c (x_connection_closed): For GTK: If this is the last
20891 terminal just exit without closing the display.
20892
208932008-03-11 Jason Rumney <jasonr@gnu.org>
20894
20895 * w32font.c (w32font_full_name): Use floor to round.
20896
f0131492 208972008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
20898
20899 * sound.c (alsa_configure): Declare vol at beginning of block.
20900
20901 * fontset.c (Ffontset_info): Remove extra semicolon.
20902
209032008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
20904
20905 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
20906 size of resulting string.
20907
209082008-03-10 Jason Rumney <jasonr@gnu.org>
20909
20910 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
20911
209122008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20913
20914 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
20915 Don't pretend as if characters with display property haven't been
20916 consumed for string-replacing-string case.
20917
209182008-03-08 Kim F. Storm <storm@cua.dk>
20919
20920 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
20921 (get_next_display_element, next_element_from_string)
20922 (next_element_from_ellipsis, next_element_from_buffer): Use it.
20923
209242008-03-08 Andreas Schwab <schwab@suse.de>
20925
20926 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
20927
209282008-03-06 Jason Rumney <jasonr@gnu.org>
20929
20930 * w32font.c (w32_registry): Take font_type argument. Use ANSI
20931 when charset not specified. Only translate ANSI to unicode when
20932 font_type is truetype.
20933 (w32font_coverage_ok): New function.
20934 (add_font_entity_to_list): Use it to filter unsuitable fonts.
20935
209362008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
20937
20938 * lread.c (Fread_char): Resolve modifiers.
20939 (Fread_char_exclusive): Likewise.
20940
20941 * character.c (char_resolve_modifier_mask): New function.
20942 (char_string): Use char_resolve_modifier_mask.
20943 (Fchar_resolve_modifiers): New function.
20944 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
20945 function.
20946
209472008-03-04 Jason Rumney <jasonr@gnu.org>
20948
20949 * makefile.w32-in: Always include w32font.c in the build.
20950 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
20951
209522008-03-04 Andreas Schwab <schwab@suse.de>
20953
20954 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
20955 (versionclean): Likewise.
20956
209572008-03-04 Juanma Barranquero <lekktu@gmail.com>
20958
20959 * .cvsignore: Add oo.
20960
209612008-03-03 Andreas Schwab <schwab@suse.de>
20962
20963 * coding.c (decode_coding_object): Inhibit gap shrinking while
20964 decoding in place.
20965
209662008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
20967
20968 * w32term.c: Remove unused include "gnu.h".
20969 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
20970
20971 * gnu.h: Rename to ...
20972 * emacs-icon.h: ... this.
20973 * xterm.c: Use emacs-icon.h instead of gnu.h.
20974 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
20975
209762008-03-03 Juanma Barranquero <lekktu@gmail.com>
20977
20978 * w32font.c: Include math.h.
20979
209802008-03-03 Jason Rumney <jasonr@gnu.org>
20981
20982 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
20983 Compute options separately.
20984 (w32font_open_internal): Set glyph_idx before caching metrics.
20985
20986 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
20987 Define if system headers don't.
20988 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
20989 (w32font_encode_char): Don't declare here.
20990
20991 * w32font.c (Quniscribe, QCformat): New symbols.
20992 (syms_of_w32font): Define them.
20993 (w32font_has_char): Indicate uncertainty.
20994 (w32font_encode_char): Encode as glyph point. Make static.
20995 (recompute_cached_metrics): New function.
20996 (w32font_open_internal): Use it. Set font to use glyph points
20997 initially. Set format based on type of font.
20998 (w32font_text_extents, w32font_draw): Optionally use glyph points.
20999 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
21000 on it. Set format based on information available here.
21001 (add_font_entity_to_list): Identify backend based on opentype_only.
21002
210032008-03-02 Andreas Schwab <schwab@suse.de>
21004
21005 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
21006
21007 * coding.c (decode_coding_big5, produce_chars):
21008 Fix typos in last change.
21009
210102008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
21011
21012 * gnu.h: New icon.
21013
210142008-03-02 Kenichi Handa <handa@m17n.org>
21015
21016 * coding.c (decode_coding_utf_8): When eol-type of CODING is
21017 `dos', don't decode '\r' if that is the last in the source.
21018 (decode_coding_utf_16, decode_coding_emacs_mule)
21019 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
21020 (decode_coding_raw_text, decode_coding_charset): Likewise.
21021 (produce_chars): Don't decode EOL here. Use EMACS_INT.
21022
210232008-03-01 Jason Rumney <jasonr@gnu.org>
21024
21025 * w32font.c (w32font_full_name): Report point size for scalable fonts.
21026
210272008-03-01 Kim F. Storm <storm@cua.dk>
21028
21029 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
21030
210312008-03-01 Jason Rumney <jasonr@gnu.org>
21032
21033 * w32font.c (w32font_full_name): New function.
21034 (w32font_open_internal): Use it.
21035
210362008-03-01 Kim F. Storm <storm@cua.dk>
21037
21038 * dispnew.c (line_draw_cost): Fix invalid glyph check.
21039
210402008-03-01 Jason Rumney <jasonr@gnu.org>
21041
21042 * font.c (font_unparse_fcname): Increase len when style is a symbol.
21043
210442008-03-01 Jan Djärv <jan.h.d@swipnet.se>
21045
21046 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
21047 xg_frame_resized when the event is for the edit widget.
21048
ef1b0ba7 21049 * gtkutil.h (xg_frame_resized): Rename from xg_resize_widgets.
aac0c6e3
MR
21050
21051 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
21052 set_char_size.
ef1b0ba7 21053 (xg_frame_resized): Rename from xg_resize_widgets. Remove all
aac0c6e3
MR
21054 operations on widgets here. Just set frame size if needed.
21055 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
21056 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
21057 (x_wm_set_size_hint): Set size hints on the edit widget only, not
21058 the whole frame.
21059 (xg_create_tool_bar): Move attachment of the tool bar to
21060 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
21061 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
21062
210632008-03-01 Jason Rumney <jasonr@gnu.org>
21064
21065 * w32fns.c (w32_msg_pump): Disable debug code.
21066
210672008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21068
21069 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
21070
210712008-02-29 Chong Yidong <cyd@stupidchicken.com>
21072
21073 * xdisp.c (next_overlay_string): Don't set
21074 overlay_strings_at_end_processed_p if we're currently reading from
21075 a display string.
21076
210772008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
21078
21079 * xdisp.c (get_overlay_strings_1): Fix typo.
21080
210812008-02-29 Chong Yidong <cyd@stupidchicken.com>
21082
21083 * xdisp.c (get_overlay_strings_1): Add missing argument type.
21084
210852008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
21086
21087 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
21088
21089 * xdisp.c (display_mode_element): Cancel the previous change.
21090 (decode_mode_spec): Likewise.
21091 (handle_auto_composed_prop): Don't make composition if it->string
21092 is a string.
21093
210942008-02-27 Kim F. Storm <storm@cua.dk>
21095
21096 * lisp.h (GLYPH): Change type from int to struct with separate char
21097 and face_id members.
21098 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
21099 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
21100 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
21101 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
21102 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
21103 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
21104 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
21105 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
21106 handle new Lisp glyph code encoding, either an integer or a cons.
21107
21108 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
21109 (GLYPH_ALIAS): Delete.
21110 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
21111 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
21112 (GLYPH_FROM_CHAR): Replace macro by ...
21113 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
21114
21115 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
21116 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
21117 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
21118 (GLYPH_INVALID_P): New macro.
21119 (spec_glyph_lookup_face): Update prototype.
21120
21121 * dispnew.c (line_draw_cost): Adapt to new glyph type.
21122 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
21123 new glyph code encoding.
21124 (spec_glyph_lookup_face): No return value; update passed glyph instead.
21125 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
21126
21127 * xdisp.c (get_next_display_element, next_element_from_display_vector):
21128 Adapt to new glyph type and new glyph code encoding.
21129
21130 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
21131
21132 * indent.c (current_column, current_column_1, Fmove_to_column)
21133 (compute_motion): Adapt to new glyph code encoding.
21134
21135 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
21136
211372008-02-27 Chong Yidong <cyd@stupidchicken.com>
21138
21139 * process.c (wait_reading_process_output): Check for window
21140 changes caused by timers.
21141 Suggested by Johan Bockgård.
21142
211432008-02-27 Glenn Morris <rgm@gnu.org>
21144
21145 * emacs.c (USAGE1): Add `--disable-font-backend'.
21146
211472008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
21148
21149 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
21150 is made to the buffer.
21151
211522008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
21153
21154 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
21155 (face_at_string_position):
21156 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
21157 (face_at_string_position):
21158 * xdisp.c (display_string, next_overlay_change):
21159 * buffer.h (overlays_at):
21160 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
21161 Update callers.
21162
211632008-02-26 Chong Yidong <cyd@stupidchicken.com>
21164
21165 * editfns.c (Fformat): Doc fix.
21166
211672008-02-26 Juanma Barranquero <lekktu@gmail.com>
21168
21169 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
21170 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
21171 (Ffont_otf_alternates, Fquery_font): Doc fixes.
21172
211732008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
21174
21175 * buffer.c (Fbuffer_swap_text): New function.
21176 (syms_of_buffer): Defsubr it.
21177
211782008-02-25 Chong Yidong <cyd@stupidchicken.com>
21179
21180 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
21181
211822008-02-25 Jason Rumney <jasonr@gnu.org>
21183
21184 * w32font.c (w32font_draw): Draw one character at a time when padding.
21185
211862008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
21187
21188 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
21189 Handle a nil arg. Use run_window_configuration_change_hook.
21190 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
21191 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
21192 Use run_window_configuration_change_hook.
21193
211942008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
21195
21196 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
21197 1-pixel width.
21198
211992008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
21200
21201 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
21202 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
21203 if the glyph in the font is zero pixel with.
21204
21205 * dispextern.h (struct glyph_string): New member padding_p.
21206
21207 * w32font.c (w32font_draw): Pay attention to s->padding_p.
21208
21209 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
21210
21211 * xfont.c (xfont_draw): Pay attention to s->padding_p.
21212
21213 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
21214
21215 * font.c: If the font driver doesn't have `shape' function, return Qnil.
21216
212172008-02-25 Jason Rumney <jasonr@gnu.org>
21218
21219 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
21220
212212008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
21222
21223 Allow fine-grained image-cache flushing.
21224 * dispextern.h (struct image): Add `dependencies' field.
21225 (clear_image_caches): Change arg to Lisp_Object.
21226 * image.c (make_image): Initialize `dependencies' field.
21227 (clear_image_cache): Change arg to allow fine-grained flushing.
21228 Perform the flush even if image-cache-eviction-delay is nil.
21229 (clear_image_caches): Change arg to Lisp_Object.
21230 (Fclear_image_cache): Expand meaning of the argument.
21231 (mark_image): Mark `dependencies' field.
21232 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
21233 (lface_hash): Use XHASH rather than XFASTINT.
21234 (face_at_buffer_position): Fix int -> EMACS_INT position.
21235 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
21236 (select_frame_for_redisplay): Remove code duplication.
21237 (redisplay_internal): Adapt arg to call to clear_image_caches.
21238
212392008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
21240
21241 * s/vms4-0.h:
21242 * s/vms4-2.h:
21243 * s/vms4-4.h:
21244 * s/vms5-5.h: Remove, unused.
21245
21246 * s/irix5-2.h:
21247 * s/irix6-0.h:
21248 * s/riscos5.h:
21249 * s/mach-bsd4-3.h:
21250 * m/mips4.h: Remove files for obsolete systems.
21251
21252 * Makefile.in:
21253 * filelock.c:
21254 * unexmips.c:
21255 * m/hp9000s300.h:
21256 * m/iris4d.h:
21257 * s/aix3-1.h:
21258 * s/hpux.h:
21259 * s/msdos.h:
21260 * s/usg5-0.h:
21261 * s/usg5-2-2.h:
21262 * s/usg5-2.h:
21263 * s/usg5-3.h: Remove references to obsolete variables.
21264
21265 * s/irix5-0.h: Remove, move all the contents ...
21266 * s/irix6-5.h: ... here. Simplify.
21267 * config.in: Regenerate.
21268
212692008-02-24 Jason Rumney <jasonr@gnu.org>
21270
21271 * w32term.c (x_draw_glyph_string_background): Clear the background
21272 manually when cleartype is in use.
21273 (x_draw_glyph_string_foreground): Draw text transparently when
21274 cleartype is in use.
21275
21276 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
21277 a font into it unless we have to.
21278
212792008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
21280
21281 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
21282 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 21283
aac0c6e3
MR
212842008-02-18 Jason Rumney <jasonr@gnu.org>
21285
21286 * w32fns.c (Fw32_shell_execute): Encode parameters.
21287
212882008-02-09 Eli Zaretskii <eliz@gnu.org>
21289
21290 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
21291
212922008-02-05 Juanma Barranquero <lekktu@gmail.com>
21293
21294 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
21295
212962008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
21297
21298 * xterm.c (x_set_offset): Don't change the gravity if
21299 CHANGE_GRAVITY is -1.
21300
213012008-02-23 Chong Yidong <cyd@stupidchicken.com>
21302
21303 * fileio.c (auto_save_error_occurred): New var.
21304 (auto_save_error): Set it.
21305 (Fdo_auto_save): Don't overwrite the error message if an auto-save
21306 error occurred.
21307
213082008-02-23 Eli Zaretskii <eliz@gnu.org>
21309
21310 * w32.c (globals_of_w32): Add initializations for
21311 g_b_init_get_sid_sub_authority and
21312 g_b_init_get_sid_sub_authority_count.
21313
213142008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
21315
21316 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
21317 (font_parse_xlfd): Use them for sanity check.
21318 (Finternal_set_font_style_table): Make sure the table is bijective.
21319
21320 Consolidate the image_cache to the terminal struct.
21321 * termhooks.h (P_): Remove redundant def.
21322 (struct terminal): New field `image_cache'.
21323 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
21324 of FRAME_X_IMAGE_CACHE.
21325 * xterm.h (struct x_display_info): Remove image_cache field.
21326 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
21327 * w32term.h (struct w32_display_info): Remove image_cache field.
21328 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
21329 * macterm.h (struct mac_display_info): Remove image_cache field.
21330 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
21331 * xterm.c (x_term_init):
21332 * w32term.c (w32_term_init):
21333 * macterm.c (mac_term_init): Set the image_cache in the terminal.
21334 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
21335 Remove declarations.
21336 (clear_image_caches, mark_image_cache): New declarations.
21337 * xfaces.c (clear_face_cache):
21338 * xdisp.c (redisplay_internal): Use clear_image_caches.
21339 * image.c (clear_image_cache): Don't check that a frame is on
21340 a window-system before checking if it shares the same cache.
21341 (clear_image_caches): New function.
21342 (Fclear_image_cache): Use it.
21343 (mark_image): Move from allo.c.
21344 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
21345 * alloc.c (mark_image, mark_image_cache): Move to image.c.
21346 (mark_object): Don't call mark_image_cache for frames.
21347 (mark_terminals): Call mark_image_cache.
21348
21349 * lisp.h (Fdelete_terminal): Declare.
21350
21351 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
21352 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
21353 wrong_type_argument.
21354
213552008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
21356
21357 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
21358 malayalam.el, and tamil.el. Add sinhala.el.
21359
213602008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
21361
21362 * xterm.c (x_connection_closed): Consolidate identical tests.
21363 (x_delete_terminal): Don't crash if called via x_connection_closed.
21364
213652008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
21366
21367 * xdisp.c (decode_mode_spec): New arg string.
21368 (display_mode_element): Adjust for the above change.
21369
213702008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
21371
21372 * callint.c (Fcall_interactively): Use AREF.
21373
213742008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
21375
21376 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
21377
213782008-02-18 Jan Djärv <jan.h.d@swipnet.se>
21379
21380 * xfns.c (Fx_show_tip): Set string to " " if empty.
21381
213822008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
21383
21384 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
21385 with Qt.
21386
213872008-02-17 Kenichi Handa <handa@m17n.org>
21388
21389 * ftfont.c (ftfont_shape): Return Lispy number.
21390
21391 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
21392 for GCs.
21393 (Finternal_set_font_selection_order): Call font_update_sort_order
21394 only when enable_font_backend is set.
21395 (realize_x_face): Set face->font_info to that of default face only
21396 when enable_font_backend is set.
21397
21398 * xdisp.c (handle_composition_prop): Set it->c to the fist
21399 character of the composed region.
21400 (fill_composite_glyph_string): Set base_face->font_info to
21401 s->font_info. Get a face for ascii from base_face->ascii_face.
21402 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
21403 with a face already decided.
21404 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
21405 non-negative.
21406 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
21407 call font_prepare_composition unconditionally.
21408
21409 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
21410
21411 * xterm.h (struct x_display_info): New member font.
21412
21413 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
21414 (x_set_mouse_face_gc, x_new_font): Likewise.
21415 (x_term_init): Setup display_info->font.
21416 (x_delete_terminal): Free display_info->font.
21417
21418 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
21419
21420 * ftxfont.c (ftxfont_default_fid): Delete it.
21421 (ftxfont_open): Set xfont->fid to 0.
21422 (ftxfont_end_for_frame): Clear data specific to the frame and the
21423 font-driver.
21424
21425 * xftfont.c (xftfont_default_fid): Delete it.
21426 (xftfont_open): Set xfont->fid to 0.
21427
21428 * fontset.c (FONTSET_OBJLIST): New macro.
21429 (fontset_find_font): Update font-object list of the fontset.
21430 (free_realized_fontset): New function.
21431 (free_face_fontset): Call free_realized_fontset.
21432 (Ffont_info): Call font_close_object only when enable_font_backend
21433 is set.
21434
21435 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
21436 [HAVE_NTGUI]: Include w32term.h.
21437 [MAC_OS]: Include macterm.ch.
21438 (font_otf_ValueRecord): Use make_number.
21439 (font_finish_cache): Fix handling of reference count.
21440 (font_clear_cache): Update num_fonts.
21441 (font_open_entity): Update smallest_char_width and
21442 smallest_font_height of the frame.
21443 (font_close_object): Update num_fonts.
21444 (Fclear_font_cache): Fix finding the target cache data.
21445
214462008-02-16 Glenn Morris <rgm@gnu.org>
21447
21448 * fontset.c (Finternal_char_font): Fix compilation warning.
21449
214502008-02-16 Eli Zaretskii <eliz@gnu.org>
21451
21452 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
21453 instead of char arrays. Enlarge the size of array passed to
21454 get_token_information.
21455
21456 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
21457 warnings.
21458
214592008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
21460
21461 * .gdbinit: Don't set `args', it breaks gdb --args.
21462
214632008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
21464
21465 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
21466 within a narrowed buffer.
21467
214682008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
21469
21470 * coding.c (decode_coding_object, encode_coding_object):
21471 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
21472
214732008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
21474
21475 * coding.c (coding_set_destination): Use BEG_BYTE rather than
21476 hardcoding 1.
21477 (detect_coding_system):
21478 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
21479 (string_char_to_byte, string_byte_to_char, insert_from_gap):
21480 * insdel.c (insert_from_gap):
21481 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
21482 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
21483 (string_to_multibyte):
21484 * character.c (chars_in_text, multibyte_chars_in_text):
21485 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
21486
21487 * character.h (FETCH_STRING_CHAR_ADVANCE)
21488 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
21489 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
21490 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
21491
21492 * casefiddle.c (casify_region): Only call after-change and composition
21493 functions on the part of the region that was changed.
21494
21495 * keyboard.c (read_avail_input):
21496 * frame.c (Fdelete_frame): Call Fdelete_terminal.
21497
214982008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
21499
21500 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
21501 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
21502
215032008-02-11 Juanma Barranquero <lekktu@gmail.com>
21504
21505 * w32menu.c (push_submenu_start, push_submenu_end)
21506 (push_left_right_boundary, push_menu_pane, push_menu_item):
21507 * keyboard.c (read_key_sequence): Don't pass args with side effects
21508 to AREF, it fails when compiling with -DENABLE_CHECKING.
21509
215102008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
21511
21512 * Makefile.in (${lispsource}international/charprop.el):
21513 Delete this target.
21514
21515 * search.c (boyer_moore): Fix incorrect synching of the trunk and
21516 emacs-unicode-2.
21517
215182008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
21519
21520 * terminal.c (Fdelete_terminal): Clean up the `force' path.
21521
215222008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
21523
21524 * frame.c (Qnoelisp): New symbol.
21525 (syms_of_frame): Initialize it.
21526 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
21527 harmless Elisp code, from a strong `force' from x_connection_closed.
21528 * frame.h (Qnoelisp): Declare.
21529 * xterm.c (x_connection_closed): Pass `noelisp'.
21530
21531 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
21532 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
21533 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
21534 rather than `int' for the type of `type'.
21535
215362008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
21537
21538 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
21539
21540 * Makefile.in (GNUC): Remove support for gcc-1.x.
21541
215422008-02-10 Richard Stallman <rms@gnu.org>
21543
21544 * lisp.h (ASET): Use AREF, not ASLOT.
21545
215462008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
21547
21548 * lisp.h (ASET): Check bounds.
21549
215502008-02-10 Glenn Morris <rgm@gnu.org>
21551
21552 * buffer.c (mode-name): Doc fix.
21553
215542008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
21555
21556 * Makefile.in:
21557 * emacs.c:
21558 * gmalloc.c:
21559 * keyboard.c:
21560 * lisp.h:
21561 * m/ibm370aix.h:
21562 * process.c:
21563 * regex.c:
21564 * s/hpux.h:
21565 * sysdep.c:
21566 * sysselect.h:
21567 * systty.h:
21568 * unexec.c:
21569 * w32term.c:
21570 * xsmfns.c:
21571 * xterm.c: Remove code that deals with obsolete variables.
21572
21573 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
21574
21575 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
21576 nothing else needs it anymore.
21577
215782008-02-09 Eli Zaretskii <eliz@gnu.org>
21579
21580 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
21581 instead of unibyte_char_to_multibyte.
21582
215832008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
21584
21585 * s/gnu-linux.h: Remove commented out code.
21586
21587 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
21588
21589 * Makefile.in: Update what RMS says about using autoconf.
21590 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
21591 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
21592 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
21593 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
21594
215952008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
21596
21597 * keymap.c (Fkey_description): Move side effect outside of macro call.
21598
21599 * xfaces.c (Finternal_make_lisp_face):
21600 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
21601
21602 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
21603 (syms_of_fontset): Use ASET.
21604
21605 * fns.c (concat): Move side effect outside of macro call.
21606 (hash_clear): Use ASET.
21607
216082008-02-08 Richard Stallman <rms@gnu.org>
21609
21610 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
21611 If FORCE, and frame has a surrogate minibuffer for another frame,
21612 delete the other frame first.
21613
216142008-02-07 Timo Savola <timo.savola@iki.fi>
21615
21616 * xterm.c (x_detect_focus_change): Handle embed client message.
21617 (handle_one_xevent): Ditto.
21618 (handle_one_xevent): If embedded and we get a button press/release,
21619 request focus.
21620 (xembed_set_info, xembed_send_message): New functions.
21621 (x_make_frame_visible): Call xembed_set_info if embedded.
21622 (x_make_frame_invisible): Call xembed_set_info if embedded.
21623 (x_term_init): Initialize Xatom_XEMBED.
21624 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
21625 (x_iconify_frame): Ditto.
21626
21627 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
21628 (enum xembed_info, enum xembed_message, enum xembed_focus)
21629 (enum xembed_modifier, enum xembed_accelerator): New.
21630 (xembed_set_info, xembed_send_message): Declare.
21631 (FRAME_X_EMBEDDED_P): New.
21632
21633 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
21634 gtk_plug_new.
21635
21636 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
21637 window ID of a frame.
21638 (x_window): Reparent frame if embedded.
21639 (Fx_create_frame): Don't set border width if embedded.
21640
21641 * emacs.c (USAGE3): Add --parent-id.
21642 (standard_args): Ditto.
21643
216442008-02-07 Jan Djärv <jan.h.d@swipnet.se>
21645
21646 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
21647
216482008-02-07 Jim Meyering <meyering@redhat.com>
21649
21650 Use "do...while (0)", not "if (1)...else" in macro definitions.
21651 The latter provokes a warning from gcc about the empty else, when
21652 followed by ";". Also, without that trailing semicolon, it would
21653 silently swallow up any following statement.
21654 * syntax.h (SETUP_SYNTAX_TABLE)
21655 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
21656 * buffer.h (DECODE_POSITION): Likewise.
21657 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
21658 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
21659 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
21660 (FETCH_CHAR_ADVANCE): Likewise.
21661 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
21662
216632008-02-07 Jim Meyering <meyering@redhat.com>
21664
21665 * lread.c [lint]: Don't include <sys/inode.h>.
21666
216672008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
21668
21669 * xselect.c (x_handle_dnd_message):
21670 * xmenu.c (digest_single_submenu, xmenu_show):
21671 * xdisp.c (with_echo_area_buffer_unwind_data)
21672 (format_mode_line_unwind_data, unwind_format_mode_line)
21673 (display_menu_bar):
21674 * eval.c (Ffetch_bytecode):
21675 * doc.c (store_function_docstring):
21676 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
21677 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
21678 * buffer.c (add_overlay_mod_hooklist): Use ASET.
21679
216802008-02-07 Kenichi Handa <handa@m17n.org>
21681
21682 * ftxfont.c (ftxfont_open): Don't set
21683 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
21684
21685 * ftfont.c (ftfont_open): Fix previous change.
21686
216872008-02-06 Jason Rumney <jasonr@gnu.org>
21688
21689 * w32font.c (w32font_text_extents): Fill in lbearing metric.
21690 Use cached metrics for ASCII characters.
21691 (w32font_open_internal): Don't set font's owning_frame.
21692 Cache metrics for ASCII characters.
21693
21694 * w32font.h (struct w32font_info): Add ascii_metrics.
21695 Remove owning_frame.
21696
216972008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
21698
21699 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
21700 to negative value.
21701
21702 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
21703
21704 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
21705
21706 * charset.c (syms_of_charset): Set QCtest and Qeq.
21707
217082008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
21709
21710 * process.c (Fstart_process):
21711 * callproc.c (Fcall_process): Handle the case where
21712 Funhandled_file_name_directory returns nil.
21713
21714 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
21715 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
21716 * font.c (check_gstring): Use them and AREF to access the vector before
21717 we know it's really a gstring.
21718 (Ffont_shape_text): Fix typo.
46e722a9 21719 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
21720
21721 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
21722 Declare.
21723
21724 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
21725
217262008-02-05 Jason Rumney <jasonr@gnu.org>
21727
21728 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
21729 Set smallest_font_height and smallest_char_width in display info.
21730
217312008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
21732
21733 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
21734
217352008-02-05 Miles Bader <miles@gnu.org>
21736
21737 * xfaces.c (get_lface_attributes, merge_named_face)
21738 (lookup_named_face, lookup_derived_face, realize_named_face):
21739 Revert 2008-02-01 change by cyd@stupidchicken.com.
21740
217412008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
21742
21743 * fontset.c (Ffontset_info): Handle the case of inhibitting the
21744 fallback fonts.
21745 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
21746
217472008-02-04 Jason Rumney <jasonr@gnu.org>
21748
21749 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
21750 set full_name.
21751 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
21752
217532008-02-03 Jason Rumney <jasonr@gnu.org>
21754
21755 * makefile.w32-in (OBJ1): Include font.o here.
21756 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
21757
217582008-02-02 Jason Rumney <jasonr@gnu.org>
21759
21760 * makefile.w32-in (temacs): Bump EMHEAP to 21.
21761
217622008-02-01 Jason Rumney <jasonr@gnu.org>
21763
21764 * s/cygwin.h: Define VIRT_ADDR_VARIES.
21765
21766 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
21767
217682008-02-01 Andreas Schwab <schwab@suse.de>
21769
21770 * Makefile.in (shortlisp, lisp): Update for rename of
21771 ../lisp/language/myanmar.el.
21772
217732008-02-01 Chong Yidong <cyd@stupidchicken.com>
21774
21775 * xfaces.c (get_lface_attributes): Delete function.
21776 (merge_named_face, lookup_named_face, lookup_derived_face)
21777 (realize_named_face): Call lface_from_face_name directly, and use
21778 the fact that merge_face_vectors does not alter its FROM argument.
21779
217802008-02-01 Jason Rumney <jasonr@gnu.org>
21781
21782 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
21783 input in the default locale. Handle non-Unicode multibyte input.
21784
217852008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21786
21787 * fontset.c (reorder_font_vector): Exclude nil elements from the
21788 font group. Don't try multiple fonts.
21789 (fontset_font): Adjust for the above change.
21790 (Finternal_char_font): Return nil if the found font doesn't
21791 contain the character ch.
21792
21793 * Makefile.in (lisp, shortlisp): Add cham.el.
21794
217952008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21796
21797 * font.h (FONTP): Make it return 1 also for a font-object.
21798
21799 * .gdbinit (xfontset): New function.
21800
21801 * font.c (font_find_for_lface): Check if the character C is
21802 supported or not only for the first font.
21803
21804 * fontset.c (reorder_font_vector): Fix typo.
21805 (fontset_find_font): Don't add a font-spec specifying a script.
21806 Use 0 (not Qt) for the indication of empty font-group. Change the
21807 format of RFONT-DEF. Return Qt if no font in the font-group
21808 support the character.
21809 (fontset_font): Adjust for the above change. If no font was
21810 found the character, remember that.
21811 (face_for_char): Adjust for the change of RFONT-DEF.
21812 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
21813 no font for the target.
21814 (Finternal_char_font): Adjust for the change of RFONT-DEF.
21815
218162008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21817
21818 * font.c (font_load_for_face): Handle the case that the font in
21819 face->lface is a string.
21820
218212008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21822
21823 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
21824
218252008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21826
21827 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
21828 Fix previous change. If the frame is not on a window system,
21829 signal an error.
21830
218312008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21832
bba3e508
SM
21833 * coding.c (decode_coding_object, encode_coding_object):
21834 Adjust marker positions after conversion.
aac0c6e3
MR
21835
21836 * lisp.h (struct Lisp_Marker): New member need_adjustment.
21837
218382008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21839
21840 * font.c (font_find_for_lface): Fix the handling of the return
21841 value of font_has_char.
21842 (Ffont_shape_text): Fix previous change.
21843
21844 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
21845 (fontset_ref_and_range): Delete it.
21846 (fontset_find_font): Call char_table_ref_and_range instead of
21847 FONTSET_REF_AND_RANGE.
21848 (make_fontset): Don't setup font groups of Latin here.
21849 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
21850 (new_fontset_from_font): Make the specified font the default for
21851 all Latin characters.
21852
218532008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21854
21855 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
21856 is on a window system before accessing the fontset of the frame.
21857
218582008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21859
21860 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
21861
21862 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
21863 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
21864
21865 * font.c (Ffont_shape_text): If the font driver doesn't have a
21866 shaper function, make zero-width glyphs to have at least one-pixel
21867 width. Fix setting of `to' field of glyphs.
21868
218692008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21870
21871 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
21872 glyphs.
21873
21874 * font.h (struct font_driver): Improve docstring of member `shape'.
21875
218762008-02-01 Kenichi Handa <handa@m17n.org>
21877
21878 * composite.c (syms_of_composite): Fix docstring of
21879 auto-composition-function.
21880
21881 * font.h (LGLYPH_SIZE): New macro.
21882
21883 * font.c (Ffont_fill_gstring): Stop filling when a character not
21884 supported by the font is found.
21885 (Ffont_shape_text): When a shape callback function returns nil,
21886 try at most two more times with larger gstring.
21887 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
21888
21889 * xdisp.c (handle_auto_composed_prop): Change the argument to
21890 auto-composition-function.
21891
21892 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
21893 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
21894 Lispy glyph and store it in the lgstring.
21895
21896 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
21897
21898 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
21899
219002008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21901
21902 * font.c (Ffont_shape_text): Avoid unnecessary composition.
21903
21904 * fontset.c (Vfont_encoding_charset_alist): New variable.
21905 (syms_of_fontset): DEFVAR it.
21906 (reorder_font_vector, fontset_find_font): Optimize for the case of
21907 no need of reordering.
21908 (face_for_char): Map the charset property by
21909 Vfont_encoding_charset_alist.
21910
219112008-02-01 Jason Rumney <jasonr@gnu.org>
21912
21913 * w32font.c (logfonts_match): Don't check adstyle here.
21914 (font_matches_spec): Check here against physical font instead.
21915 (add_font_entity_to_list): Avoid some substitutions.
21916
21917 * font.c (font_parse_fcname): Default weight and slant to normal.
21918 (font_score): Prefer normal fonts if weight or slant unspecified.
21919 (font_score) [WINDOWSNT]: Scale weight difference down to closer
21920 match freetype scores.
21921
219222008-02-01 Jason Rumney <jasonr@gnu.org>
21923
21924 * w32font.c (w32font_text_extents): Don't use the frame stored in the
21925 font, as it may have been deleted.
21926 (w32_enumfont_pattern_entity): Map generic family to adstyle using
21927 most common hyphenless variation.
21928 (logfonts_match): Check generic family.
21929 (font_matches_spec): Don't check generic family here.
21930 (fill_in_logfont): Set generic family based on adstyle.
21931
21932 * w32font.h (w32font_get_cache): Update declaration.
21933
219342008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21935
21936 * ftfont.c (ftfont_get_cache): Adjust the argument type.
21937
21938 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
21939 If none of the new drivers are available, call font_update_drivers
21940 with the old drivers.
21941
21942 * w32font.c (w32font_get_cache): Adjust the argument type.
21943
21944 * xfont.c (xfont_get_cache): Adjust the argument type.
21945
21946 * font.h (struct font_driver): Change argument type of get_cache.
21947
21948 * xftfont.c (xftfont_start_for_frame): Delete prototype.
21949
21950 * font.c (Ffont_get): Fix arguments to Fassoc.
21951 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
21952 (font_clear_cache): New function.
21953 (font_list_entities, font_matching_entity): Use font_get_cache.
21954 (font_update_drivers): Call font_clear_cache when finishing a driver.
21955
21956 * fontset.c (fontset_find_font): Fix previous change.
21957
219582008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21959
21960 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
21961 dpyinfo->font_table.
21962 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
21963 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
21964
21965 * font.c (font_at): Handle the case that the arg C is negative.
21966 Handle the unibyte case.
21967 (Ffont_at): Call font_at with the arg C -1.
21968
21969 * xdisp.c (handle_auto_composed_prop): Don't get a character at
21970 the position here, and call font_at with the arg C -1.
21971 Don't check the range of the existing composition at the point.
21972
219732008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21974
21975 * fontset.c (fontset_add): New args charset_id and family.
21976 Change caller.
21977 (load_font_get_repertory, fontset_find_font): Assume that
21978 font_spec is always a font-spec object.
21979 (Fset_fontset_font): Always store a font-spec object in a fontset.
21980
21981 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
21982 instead of get_property_and_range.
21983
219842008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21985
21986 * xftfont.c (struct xftfont_info): Delete the member ft_face.
21987 (xftfont_open): Don't keep locking face.
21988 (xftfont_close): Don't unlock face.
21989 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
21990
21991 * fontset.c (fontset_find_font): Don't prefer a font of
21992 supplementary charset.
21993
219942008-02-01 Kenichi Handa <handa@m17n.org>
21995
21996 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
21997 script, langsys_tag to langsys, new member script.
21998 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 21999 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
22000 listing to the script specified in that property. Fix arg to
22001 OTF_check_features.
22002
220032008-02-01 Jason Rumney <jasonr@gnu.org>
22004
22005 * w32font.h: New file.
22006
22007 * w32font.c: Include it.
22008 (struct w32font_info): Add owning_frame field. Move to w32font.h.
22009 (w32font_open): Set owning_frame.
22010 (w32font_text_extents): Use owning_frame.
22011 (struct font_callback_data): Add opentype_only field.
22012 (add_font_entity_to_list): Use it to filter fonts.
22013 Don't check against full name.
22014 (w32font_list_internal): New function.
22015 (w32font_list): Use it.
22016 (w32font_match_internal): New function.
22017 (w32font_match): Use it.
22018 (w32font_open_internal): New function.
22019 (w32font_open): Use it.
22020 (w32font_get_cache, w32font_close, w32font_has_char)
22021 (w32font_encode_char, w32font_text_extents, w32font_draw):
22022 Make non-static.
22023
22024 * makefile.w32-in (w32font.o): Depend on w32font.h.
22025
220262008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22027
22028 * charset.c (Fdefine_charset_internal): Record a supplementary
22029 charset at the tail of Vcharset_order_list.
22030
22031 * font.c (Ffont_shape_text): Fix the return value.
22032
22033 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
22034
22035 * xdisp.c (handle_auto_composed_prop): Fix previous change.
22036
220372008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22038
22039 * ftfont.c (struct OpenTypeSpec): New struct.
22040 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
22041 (ftfont_get_open_type_spec): New function.
22042 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
22043
22044 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
22045
220462008-02-01 Jason Rumney <jasonr@gnu.org>
22047
22048 * w32font.c (add_font_entity_to_list): Compare only the beginning
22049 of full name.
22050
220512008-02-01 Kenichi Handa <handa@m17n.org>
22052
22053 * xdisp.c (handle_auto_composed_prop): Simplify the code.
22054 Never return HANDLED_RECOMPUTE_PROPS.
22055
220562008-02-01 Kenichi Handa <handa@m17n.org>
22057
22058 * font.c (font_gstring_produce): Delete it.
22059
22060 * composite.h (COMPOSITION_METHOD):
22061 Handle COMPOSITION_WITH_GLYPH_STRING.
22062
220632008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22064
22065 * xfont.c (Qx): Delete.
22066 (syms_of_xfont): Don't initialize Qx.
22067
22068 * composite.h (enum composition_method):
22069 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
22070
220712008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22072
22073 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
22074 (choose_face_font): Accept new form of font-spec.
22075
22076 * frame.h (font_driver_list): Declare it unconditionally.
22077 (struct frame): Define members font_driver_list and font_data_list
22078 unconditionally.
22079
22080 * fontset.c: Include "font.h" unconditionally.
22081 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
22082 (Fset_fontset_font): Accept a font-spec object.
22083
22084 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
22085 PIXEL_SIZE part a wild card.
22086
22087 * dispextern.h (struct glyph_string): Define members clip and
22088 num_clips unconditionally.
22089 (struct face): Define members font_info and extra unconditionally.
22090
22091 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
22092 ftfont_info only when HAVE_LIBOTF is defined.
22093
220942008-02-01 Andreas Schwab <schwab@suse.de>
22095
22096 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
22097 and end.
22098
220992008-02-01 Jason Rumney <jasonr@gnu.org>
22100
22101 * w32font.c (w32font_driver): Add new fields.
22102
221032008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22104
22105 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
22106 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
22107 (LIBES): Add @M17N_FLT_CFLAGS@.
22108
22109 * composite.c (compose_text): Don't treat the new style
22110 composition specially.
22111
22112 * emacs.c (main): Call syms_of_font unconditionally.
22113
22114 * font.h (FONT_ENTITY_NOT_LOADABLE)
22115 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
22116 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
22117 (struct font_driver): New member shape.
22118 (font_registry_charsets): Extern it.
22119 (font_find_for_lface, font_prepare_composition): Adjust prototype.
22120 (font_otf_capability, font_drive_otf): Delete their externs.
22121
22122 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
22123 (font_charset_alist, font_registry_charsets): Move from xfont.c
22124 and rename.
22125 (font_prop_validate_otf): New function.
22126 (font_property_table): Register it for QCotf.
22127 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
22128 (font_drive_otf): Delete.
22129 (font_prepare_composition): New arg F. Adjust for the change of
22130 lispy gstring.
22131 (font_find_for_lface): New arg C.
22132 (font_load_for_face): Adjust for the change of font_find_for_lface.
22133 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
22134 lispy gstring.
22135 (Ffont_shape_text): New function.
22136 (Fopen_font): If the font size is not given, use 12-pixel.
22137 (Ffont_at): New arg STRING.
40b1a3a9 22138 (syms_of_font): Initialize font_charset_alist.
aac0c6e3
MR
22139 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
22140 conditionally.
22141
22142 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
22143 fonts of the same font-spec. Change the format of RFONT-DEF.
22144 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
22145 Adjust for the change of RFONT-DEF.
22146 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
22147
22148 * ftfont.h: New file.
22149
22150 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
22151 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
22152 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
22153 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
22154 font_otf_capability and font_drive_otf, set ftfont_shape.
22155 (ftfont_list): Adjust for the change of :otf property value.
22156 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
22157 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
22158 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
22159 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
22160 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
22161 (otf_gstring, gstring, m17n_flt_initialized): New variables.
22162
22163 * w32term.c (x_draw_composite_glyph_string_foreground):
22164 Adjust for the change of lispy gstring.
22165
22166 * xdisp.c (handle_composition_prop): Adjust for the change of
22167 lispy gstring. Call a function for auto-composition with the
22168 third arg it->window.
22169 (fill_composite_glyph_string): Adjust for the change of lispy string.
22170 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
22171
22172 * xfaces.c (set_font_frame_param): Adjust for the change of
22173 font_find_for_lface.
22174
22175 * xfont.c (x_font_charset_alist): Move to font.c and rename.
22176 (xfont_registry_charsets): Likewise. Change caller.
22177 (syms_of_xfont): Don't handle x_font_charset_alist.
22178
22179 * xftfont.c: Include "ftfont.h".
22180 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
22181 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
22182 (xftfont_close) [HAVE_LIBOTF]: Close otf.
22183 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
22184 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
22185 Set xftfont_driver.shape to xftfont_shape.
22186
22187 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
22188 the change of lispy gstring.
22189
221902008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22191
22192 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
22193
221942008-02-01 Jason Rumney <jasonr@gnu.org>
22195
22196 * w32font.c (w32font_draw): Fill background manually.
22197
221982008-02-01 Jason Rumney <jasonr@gnu.org>
22199
22200 * font.c (Qfontp): Remove unused symbol.
22201 (QCantialias): New symbol.
22202 (syms_of_font): Define it.
22203 (font_property_table): Set a validator for QCantialias.
22204
22205 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
22206 Define if not already.
22207 (QCfamily): Share with xfaces.c.
22208 (Qstandard, Qsubpixel, Qnatural): New symbols.
22209 (syms_of_w32font): Define them. Don't define QCfamily here.
22210 (w32_antialias_type, lispy_antialias_type): New functions.
22211 (w32_enumfont_pattern_entity): New arg requested_font.
22212 Set antialias parameter if non-default was requested.
22213 (fill_in_logfont): Fill in lfQuality if :antialias specified.
22214
222152008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22216
22217 * lread.c (read1): Undo the previous change.
22218
222192008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
22220
22221 * frame.c (Fdelete_frame): Call font_update_drivers only when
22222 USE_FONT_BACKEND is defined.
22223
222242008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22225
22226 * font.h (struct font_bitmap): New member bits_per_pixel.
22227 (struct font_driver): New members start_for_frame and end_for_frame.
22228 (struct font_data_list): New struct.
22229 (font_put_frame_data, font_get_frame_data): Extern them.
22230
22231 * frame.h (struct frame): New member font_data_list.
22232
22233 * font.c (font_update_drivers): Call driver->start_for_frame and
22234 driver->end_for_frame at proper timings.
22235 (font_put_frame_data, font_get_frame_data): New functions.
22236 (Ffont_spec): Add usage in the docstring.
22237
22238 * frame.c (make_frame): Initialize f->font_data_list to NULL.
22239 (Fdelete_frame): Call font_update_drivers.
22240
22241 * xftfont.c (struct xftface_info): Delete the member xft_draw.
22242 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
22243 (xftfont_get_xft_draw): New function.
22244 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
22245 (xftfont_end_for_frame): New function.
22246 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
22247
22248 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
22249 Change argument. Cache GCs in the per-frame data.
22250 (struct ftxfont_frame_data): New struct.
22251 (ftxfont_draw_bitmap): New arg gc_fore and flush.
22252 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
22253 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
22254 (ftxfont_end_for_frame): New function.
22255 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
22256
22257 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
22258
222592008-02-01 Kenichi Handa <handa@m17n.org>
22260
22261 * xselect.c (Vselection_coding_system)
22262 (Vnext_selection_coding_system): Delete them.
22263 (syms_of_xselect): Don't declare selection-coding-system and
22264 next-selection-coding-system. They are declared in select.el.
22265
222662008-02-01 Jason Rumney <jasonr@gnu.org>
22267
22268 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
22269
22270 * w32fns.c: Include imm.h.
22271 (get_composition_string_fn, get_ime_context_fn): New optional
22272 system functions.
22273 (globals_of_w32fns): Load them from imm32.dll.
22274 (ignore_ime_char): New flag.
22275 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
22276 WM_IME_ENDCOMPOSITION messages.
22277
22278 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
22279 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
22280
222812008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22282
22283 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
22284 (READCHAR_REPORT_MULTIBYTE): New macro.
22285 (readchar): New 2nd arg MULTIBYTE.
22286 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
22287 Make symbol's name multibyte according to the multibyteness of the
22288 source.
22289
222902008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22291
22292 * xfaces.c (face_for_overlay_string): Call lookup_face with
22293 correct arguments (fix of synching with the trunk).
22294
222952008-02-01 Kenichi Handa <handa@m17n.org>
22296
22297 * font.c (font_prop_validate_symbol, font_prop_validate_style)
22298 (font_prop_validate_non_neg, font_prop_validate_spacing):
22299 Delete argument prop_index.
22300 (font_property_table): Change arguments to validater. Change Callers.
22301 (font_lispy_object): Delete.
22302 (font_at): Use font_find_object instead fo font_lispy_object.
22303
223042008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22305
22306 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
22307 and file names.
22308
223092008-02-01 Jason Rumney <jasonr@gnu.org>
22310
22311 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
22312 (font_matches_spec): Remove debug output.
22313 (add_font_entity_to_list): Avoid using substituted fonts.
22314
223152008-02-01 Jason Rumney <jasonr@gnu.org>
22316
22317 * doc.c (Fsnarf_documentation):
22318 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
22319
223202008-02-01 Miles Bader <miles@gnu.org>
22321
22322 * dispextern.h (struct glyph_row): Only define "clip" field if
22323 HAVE_WINDOW_SYSTEM is defined.
22324
223252008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
22326
22327 Fix up multi-tty merge.
22328
22329 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
22330 and indentation.
22331
22332 * xfaces.c (free_realized_face, clear_face_gcs):
22333 Include font_done_for_face in the input_blocked section, just in case.
22334
22335 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
22336 (get_char_face_and_encoding): Undo last change and remove the *other*
22337 duplicate definition (i.e. keep the one that's better scoped and that
22338 includes code for the font-backend).
22339
22340 * terminal.c (create_terminal): Default keyboard_coding to
22341 `no-conversion' and terminal_coding to `undecided'.
22342
22343 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
22344
22345 * fontset.c (free_realized_fontsets): Check that the table entry does
22346 contain a fontset before trying to compare it to `base'.
22347
22348 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
22349 syms_of_charset, and syms_of_coding earlier because init_window_once
22350 now needs Vcoding_system_hash_table to be setup.
22351
22352 * coding.h (default_buffer_file_coding): Remove.
22353
22354 * coding.c (default_buffer_file_coding): Remove.
22355 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
22356 than ->symbol, and use the terminal-local coding system.
22357 (syms_of_coding): Don't setup the coding-systems that are not
22358 terminal-local.
22359 (Fdefine_coding_system_internal): Use XCAR/XCDR.
22360
22361 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
22362 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
22363
22364 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
22365 in chartab.c and were re-added here by mistake.
22366 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
22367
22368 * doc.c (Fsnarf_documentation):
22369 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
22370 src to etc.
22371
22372 * ChangeLog.10: Add mistakenly removed entry.
22373
223742008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
22375
22376 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
22377
223782008-02-01 Miles Bader <miles@gnu.org>
22379
22380 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
22381 Add extra args to FACE_FOR_CHAR.
22382
223832008-02-01 Kenichi Handa <handa@m17n.org>
22384
22385 * keymap.c (where_is_internal_1): If key is a cons, store the copy
22386 in sequence.
22387
22388 * chartab.c (map_sub_char_table, map_char_table): If the range
22389 contains just one character, call the function with that character
22390 even if the depth is not 3.
22391
223922008-02-01 Jason Rumney <jasonr@gnu.org>
22393
22394 * w32font.c (w32font_text_extents): Calculate metrics for the
22395 whole string.
22396
223972008-02-01 Jason Rumney <jasonr@gnu.org>
22398
22399 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
22400
224012008-02-01 Jason Rumney <jasonr@gnu.org>
22402
bba3e508
SM
22403 * w32term.c (x_set_glyph_string_clipping):
22404 Use get_glyph_string_clip_rects.
aac0c6e3
MR
22405 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
22406 Adjust for the change of struct glyph_string.
22407
22408 * w32font.c (w32font_draw): Do clipping here.
22409
224102008-02-01 Kenichi Handa <handa@m17n.org>
22411
22412 * xftfont.c (xftfont_draw): Adjust for the change of struct
22413 glyph_string.
22414
bba3e508
SM
22415 * xterm.c (x_set_glyph_string_clipping):
22416 Use get_glyph_string_clip_rects.
aac0c6e3
MR
22417 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
22418 Adjust for the change of struct glyph_string.
22419
22420 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
22421 the resulting clip(s}.
22422 (expose_overlaps): Add arg r. Change callers. Set it to
22423 row->clip temporarily.
22424 (expose_window): Redraw rows overlapping the exposed area.
22425
22426 * dispextern.h (struct glyph_row): New member clip.
22427 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
22428 clip_height, new member clip, and num_clips.
22429
224302008-02-01 Kenichi Handa <handa@m17n.org>
22431
22432 * data.c (Fchar_or_string_p): Fix docstring.
22433
224342008-02-01 Kenichi Handa <handa@m17n.org>
22435
22436 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
22437 create a temporary XftDraw object.
22438
224392008-02-01 Kenichi Handa <handa@m17n.org>
22440
22441 * font.c (Ffontp): Fix docstring.
22442
22443 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
22444 strong evidence of ISO-2022.
22445
224462008-02-01 Kenichi Handa <handa@m17n.org>
22447
22448 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
22449 SYNTAX_ENTRY_FOLLOW_PARENT.
22450
224512008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
22452
22453 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
22454 its type.
22455 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
22456 Update to the new type of weak_hash_tables and next_weak.
22457
22458 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
22459 a plain C pointer to Lisp_Hash_Table.
22460
22461 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
22462 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
22463 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
22464 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
22465 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
22466 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
22467 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
22468 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
22469 (GC_EQ): Remove since they've been identical to their non-GC_
22470 alter-egos ever since the markbit was eradicated.
22471
22472 * alloc.c:
22473 * buffer.c:
22474 * buffer.h:
22475 * data.c:
22476 * fileio.c:
22477 * filelock.c:
22478 * fns.c:
22479 * frame.h:
22480 * lisp.h:
22481 * macterm.c:
22482 * print.c:
22483 * process.c:
22484 * w32fns.c:
22485 * w32menu.c:
22486 * w32term.c:
22487 * xfns.c:
22488 * xmenu.c:
22489 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
22490
224912008-02-01 Kenichi Handa <handa@m17n.org>
22492
22493 * chartab.c (map_sub_char_table): Make it work for the top-level
22494 char-table. Fix handling of parent char-table.
22495 (map_char_table): Adjust for the above change.
22496
224972008-02-01 Jason Rumney <jasonr@gnu.org>
22498
22499 * w32font.c (Qgdi): Rename from Qw32.
22500
225012008-02-01 Jason Rumney <jasonr@gnu.org>
22502
22503 * w32bdf.c (get_quoted_string): Make function static.
22504
225052008-02-01 Kenichi Handa <handa@m17n.org>
22506
22507 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
22508 bigger ascent and descent than those of the font, use them as
22509 font's ascent and descent.
22510
225112008-02-01 Kenichi Handa <handa@m17n.org>
22512
22513 * Makefile.in (${lispsource}international/charprop.el): Move this
22514 target within "#ifdef HAVE_UNIDATA" and "#endif".
22515
225162008-02-01 Kenichi Handa <handa@m17n.org>
22517
22518 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
22519 (shortlisp): Add ../lisp/language/tai-viet.el.
22520
225212008-02-01 Ulrich Mueller <ulm@gentoo.org>
22522
22523 * Makefile.in (${lispsource}international/charprop.el): Depend on
22524 temacs${EXEEXT}.
22525
225262008-02-01 Jason Rumney <jasonr@gnu.org>
22527
22528 * w32font.c (w32font_close): Delete the GDI font object.
22529
22530 * w32menu.c: Include character.h.
22531
22532 * w32proc.c: Likewise.
22533
22534 * w32select.c: Likewise.
22535
22536 * makefile.w32-in (w32proc.o): Depend on character.h.
22537
225382008-02-01 Jason Rumney <jasonr@gnu.org>
22539
22540 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
22541
22542 * w32menu.c (syms_of_w32menu): Likewise.
22543
22544 * w32proc.c (syms_of_ntproc): Likewise.
22545
22546 * w32select.c (syms_of_w32select): Likewise.
22547
22548 * w32term.c (syms_of_w32term): Likewise.
22549
225502008-02-01 Jason Rumney <jasonr@gnu.org>
22551
22552 * w32font.c (w32font_draw): Delete brush after using it.
22553
225542008-02-01 Jason Rumney <jasonr@gnu.org>
22555
22556 * w32font.c (w32font_open): Don't set font_idx.
22557 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
22558 to font settings.
22559 (w32font_draw): Fill background explicitly.
22560
225612008-02-01 Jason Rumney <jasonr@gnu.org>
22562
22563 * w32term.c (w32_initialize): Don't call w32font_initialize.
22564
22565 * w32font.c (w32font_info): Remove subranges.
22566 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
22567 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
22568 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
22569 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
22570 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
22571 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
22572 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
22573 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
22574 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
22575 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
22576 New symbols.
22577 (font_callback_data): New struct.
22578 (w32font_list, w32font_match): Use it.
22579 (w32font_open): Don't populate subranges.
22580 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
22581 (w32font_encode_char): Always return unicode code-point as-is.
22582 (w32font_text_extents): Supply a transformation matrix to
22583 GetGlyphOutline. Never look up by glyph index. Avoid looping
22584 twice. Use unicode version of GetTexExtentPoint32 instead of
22585 glyph index version.
22586 (set_fonts_frame): Remove.
22587 (w32_enumfont_pattern_entity): Add frame parameter, use it to
22588 set frame parameter. Use backward compatible fake foundries.
22589 Save generic family in extra slot under QCfamily. Make width slot
22590 constant. Save QCspacing value. Save list of scripts instead of
22591 binary subranges.
22592 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
bba3e508
SM
22593 (add_font_entity_to_list): Use font_callback_data struct.
22594 Filter unwanted fonts.
aac0c6e3
MR
22595 (add_one_font_entity_to_list): Use font_callback_data struct.
22596 (w32_registry): Default to iso10646_1.
22597 (fill_in_logfont): Use dpi from extra slot. Don't bother with
22598 string font registries. Don't fill in font name if it is a generic
22599 family name, fill family instead. Use spacing, family and script
22600 extra info to fill pitch, family and charset fields.
22601 (list_all_matching_fonts): Use font_callback_data struct.
22602 (unicode_range_for_char): Remove.
22603 (font_supported_scripts): New function.
22604 (w32font_initialize): Remove.
22605 (syms_of_w32font): Update which symbols are defined.
22606
226072008-02-01 Jason Rumney <jasonr@gnu.org>
22608
22609 * font.c (font_pixel_size): Reverse assq_no_quit args.
22610
22611 * w32term.h (FONT_WIDTH): Report max width, not average.
22612 (FONT_MAX_WIDTH): Remove.
22613 (FONT_AVG_WIDTH): New macro.
22614
22615 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
22616 redefinition of FONT_WIDTH.
22617
22618 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
22619 (w32_cache_char_metrics): Use FONT_WIDTH.
22620
22621 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
22622
226232008-02-01 Jason Rumney <jasonr@gnu.org>
22624
22625 * w32font.c (w32font_open): Make lfHeight negative.
22626
22627 * w32fns.c (x_default_font_parameter): Use new style font name.
22628 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
22629
226302008-02-01 Jason Rumney <jasonr@gnu.org>
22631
22632 * w32font.c (QCsubranges): New symbol.
22633 (w32font_open, w32font_has_char): Get subranges from subproperty
22634 of extra.
22635 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
22636 (syms_of_w32font): Define :subranges symbol.
22637
22638 * font.c (font_put_extra): Expose externally.
22639
22640 * font.h (font_put_extra): Move declaration from font.c.
22641
22642 * font.c (Ffont_get): Use font driver to determine otf capability.
22643 (adjust_anchor): Check if driver defines anchor_point before using.
22644
22645 * w32font.c (w32font_open): Handle size, height and pixel_size better.
22646 (w32font_draw): Use options.
22647 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
22648 Fix detection of truetype fonts.
22649 (registry_to_w32_charset): Handle charsets other than iso8859-1
22650 expressed as lisp symbols.
22651 (w32_registry): Express charset as lisp symbol.
22652 (fill_in_logfont): Reverse pixel and point height logic.
22653 Don't set width here. Set quality to default.
22654
22655 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
22656 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
22657
22658 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
22659 Remove redundant loop and allocation.
22660
22661 * makefile.w32-in (font.o, w32font.o): New objects.
22662 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
22663 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
22664
22665 * xdisp.c (fill_composite_glyph_string): Make the first arg to
22666 STORE_XCHARB a valid l-value.
22667
22668 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
22669 calculations for non-Truetype fonts.
22670 (x_draw_glyph_string): Sync with xterm.c.
22671 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
22672 Remove redundant code.
22673 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
22674
22675 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
22676 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
22677
22678 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
22679 (x_to_w32_charset, w32_to_x_charset): Expose externally.
22680
22681 * w32font.c: New file for w32 font backend.
22682
226832008-02-01 Kenichi Handa <handa@m17n.org>
22684
22685 * term.c: Don't include "buffer.h" twice.
22686
226872008-02-01 Kenichi Handa <handa@m17n.org>
22688
22689 * character.c (Funibyte_string): New function.
22690 (syms_of_character): Defsubr it.
22691
226922008-02-01 Jason Rumney <jasonr@gnu.org>
22693
22694 * w32term.c [USE_FONT_BACKEND]:
22695 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
22696 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
22697 (x_draw_glyph_string, x_draw_glyph_string_foreground)
22698 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
22699 (x_free_frame_resources): Sync with xterm.c.
22700
227012008-02-01 Andreas Schwab <schwab@suse.de>
22702
22703 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
22704 char-table size.
22705
227062008-02-01 Kenichi Handa <handa@m17n.org>
22707
22708 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
22709
227102008-02-01 Kenichi Handa <handa@m17n.org>
22711
22712 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
22713 font_otf_gpos, add font_drive_otf.
22714
22715 * fontset.c (fontset_find_font): Pay attention to font size
22716 specified for a font.
22717 (reorder_font_vector): Check contents of font_def.
22718
22719 * font.c (struct otf_list): Delete it.
22720 (otf_list): Make it a lisp variable.
22721 (otf_open): Use lispy otf_list.
22722 (generate_otf_features): Rename from parse_gsub_gpos_spec.
22723 (check_otf_features): New function.
22724 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
22725 New functions.
22726 (font_drive_otf): New function merging font_otf_gsub and
22727 font_otf_gpos.
22728 (font_open_for_lface): New arg spec. Change argument order.
22729 (font_load_for_face): Adjust for the change of font_open_for_lface.
22730 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
22731 Ffont_otf_gpos.
22732 (syms_of_font): Staticpro otf_list. Delete defsubr of
22733 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
22734
22735 * xfaces.c (set_font_frame_param): Adjust for the change of
22736 font_open_for_lface.
22737
22738 * font.h (font_open_for_lface): Adjust prototype.
22739 (struct font_driver): Delete members otf_gsub and otf_gpos, add
22740 member otf_drive.
22741 (font_otf_gsub, font_otf_gpos): Delete externs.
22742 (font_drive_otf): Extern it.
22743
227442008-02-01 Kenichi Handa <handa@m17n.org>
22745
22746 * font.c (font_at): If the window W is not on a window system,
22747 return Qnil.
22748
22749 * coding.c (produce_chars, encode_coding): Don't call
22750 insert_from_gap if no characters to produce.
22751
227522008-02-01 Kenichi Handa <handa@m17n.org>
22753
22754 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
22755 Fclear_face_cache.
22756
22757 * xfaces.c (face_for_font): Check also face->font==font->font.font.
22758
227592008-02-01 Miles Bader <miles@gnu.org>
22760
22761 * emacs.c (main): Change default value of `enable_font_backend' to 1.
22762 Parse "--disable-font-backend" option.
22763 (standard_args): Add "--disable-font-backend" option.
22764
227652008-02-01 Kenichi Handa <handa@m17n.org>
22766
22767 * fontset.c (fontset_find_font): New function.
22768 (fontset_font): Use fontset_find_font.
22769 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
22770 Register the specified font for all Latin characters.
22771 (new_fontset_from_font): Register the specified font for all Latin
22772 characters.
22773 (dump_fontset): For a realized fontset, include the base fontset
22774 name in the returned vector.
22775
227762008-02-01 Kenichi Handa <handa@m17n.org>
22777
22778 * character.h (CHAR_STRING): Cast C to unsigned on calling
22779 char_string.
22780
22781 * character.c (char_string): Type of arg C changed to unsigned.
22782 Signal an error if C is an invalid character code.
22783
22784 * editfns.c (general_insert_function, Fchar_to_string):
22785 Use CHARACTERP, not INTEGERP.
22786
227872008-02-01 Kenichi Handa <handa@m17n.org>
22788
22789 * character.h (MIN_MULTIBYTE_LEADING_CODE)
22790 (MAX_MULTIBYTE_LEADING_CODE): New macros.
22791
22792 * regex.c (analyse_first): Fix for multibyte characters in "case
22793 charset:" and "case categoryspec:".
22794
227952008-02-01 Andreas Schwab <schwab@suse.de>
22796
22797 * Makefile.in (LIBES): Move standard libraries to the end.
22798
227992008-02-01 Kenichi Handa <handa@m17n.org>
22800
22801 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
22802 nonzero, don't shrink the buffer nextb.
22803
22804 * buffer.h (struct buffer_text): New member inhibit_shrinking.
22805
22806 * coding.c (coding_alloc_by_making_gap): New arg offset.
22807 (alloc_destination): Call coding_alloc_by_making_gap with the arg
22808 offset.
22809 (decode_coding_iso_2022): Update coding->safe_charsets.
22810 (decode_coding_gap): Temporarily set
22811 current_buffer->text->inhibit_shrinking to 1.
22812
228132008-02-01 Kenichi Handa <handa@m17n.org>
22814
bba3e508
SM
22815 * xterm.c (x_draw_composite_glyph_string_foreground):
22816 Fix indexing into elements of s->cmp and s->char2b.
aac0c6e3
MR
22817
228182008-02-01 Juanma Barranquero <lekktu@gmail.com>
22819
22820 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
22821
228222008-02-01 Kenichi Handa <handa@m17n.org>
22823
22824 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
22825 target_multibyte instead of multibyte.
22826 (re_match_2_internal): Call bcmp_translate with target_multibyte.
22827 (bcmp_translate): Change the argument name from multibyte to
22828 target_multibyte.
22829
228302008-02-01 Kenichi Handa <handa@m17n.org>
22831
22832 These changes are to compile a regexp into a pattern that can be
22833 used both for multibyte and unibyte targets.
22834
22835 * Makefile.in (search.o): Depend on charset.h.
22836
22837 * character.c (multibyte_char_to_unibyte_safe): New function.
22838
22839 * search.c: Include "charset.h".
22840 (compile_pattern_1): Delete argument multibyte. Don't set
22841 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
22842 (compile_pattern): Don't compare cp->buf.target_multibyte.
22843 Compare cp->buf.charset_unibyte.
22844 (compile_pattern): Set cp->buf.target_multibyte.
22845
22846 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
22847
22848 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
22849
22850 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
22851 multibyte. Change callers.
22852 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
22853 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
22854 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
22855 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
22856 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
22857 (regex_compile): Make the compiled pattern usable both for
22858 multibyte and unibyte targets.
22859 (analyse_first): Make the fastmap usable both for multibyte and
22860 unibyte targets.
22861 (TRANSLATE_VIA_MULTIBYTE): Delete.
22862 (re_match_2_internal): Pay attention to the case that the
22863 multibyteness of bufp and target may be different.
22864
228652008-02-01 Kenichi Handa <handa@m17n.org>
22866
22867 * xdisp.c (x_produce_glyphs): When a font is not found, make the
22868 empty box occupy at least one column width.
22869
228702008-02-01 Miles Bader <miles@gnu.org>
22871
22872 * Makefile.in: Remove redundant HAVE_XFT clause.
22873
228742008-02-01 Kenichi Handa <handa@m17n.org>
22875
22876 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
22877
228782008-02-01 Kenichi Handa <handa@m17n.org>
22879
22880 * fontset.c (Finternal_char_font): Fix for the case of POSITION
22881 being nil.
22882
228832008-02-01 Kenichi Handa <handa@m17n.org>
22884
22885 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
22886
228872008-02-01 Kenichi Handa <handa@m17n.org>
22888
22889 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
22890
228912008-02-01 Kenichi Handa <handa@m17n.org>
22892
22893 * search.c (simple_search): Fix previous change.
22894
228952008-02-01 Kenichi Handa <handa@m17n.org>
22896
22897 * xftfont.c (ftfont_font_format): Extern declaration.
22898
22899 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
22900
22901 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
22902 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
22903
22904 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
22905 (ftfont_font_format): Fix previous change.
22906
22907 * font.h (Ffont_xlfd_name): EXFUN it.
22908
22909 * font.c (font_parse_xlfd): Fix the array size of `f'.
22910 (register_font_driver): Use EQ to compare driver->type.
22911
22912 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
22913 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
22914 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
22915
229162008-02-01 Kenichi Handa <handa@m17n.org>
22917
22918 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
22919 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
22920
229212008-02-01 Kenichi Handa <handa@m17n.org>
22922
22923 * xfont.c (xfont_open): Set font->format.
22924
22925 * xftfont.c (xftfont_open): Set font->format.
22926
22927 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
22928 (ftfont_list): Include FC_FONTFORMAT in FcObject.
22929 (ftfont_open): Set font->format.
22930 (ftfont_font_format): New function.
22931
22932 * font.h (struct font): New member format.
22933
22934 * font.c (Qopentype): New variable.
22935 (syms_of_font): Defsym it.
22936 (Fquery_font): Change the format of the last element of the return
22937 value.
22938
229392008-02-01 Kenichi Handa <handa@m17n.org>
22940
22941 * xfns.c (xic_create_xfontset): Try the default fontset name as a
22942 last resort.
22943
229442008-02-01 Kenichi Handa <handa@m17n.org>
22945
22946 * coding.c (detect_coding_charset): Fix detection of multi-byte
22947 charset.
22948
229492008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
22950
22951 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
22952
229532008-02-01 Kenichi Handa <handa@m17n.org>
22954
22955 * xdisp.c (get_next_display_element): Set it->face_id for the
22956 first component of a composition.
22957 (x_produce_glyphs): Check if the font is changed or not for composition.
22958
229592008-02-01 Kenichi Handa <handa@m17n.org>
22960
22961 * fontset.c (Qlatin): New variable.
22962 (syms_of_fontset): Define it as a lisp symbol.
22963 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
22964
229652008-02-01 Kenichi Handa <handa@m17n.org>
22966
22967 * font.c (font_unparse_fcname): Pay attention to the case that
22968 some of font property is a null string.
22969
229702008-02-01 Kenichi Handa <handa@m17n.org>
22971
22972 * term.c: Include "composite.h".
22973 (encode_terminal_code): Output all components of composition.
22974 Check the size of encode_terminal_src.
22975 (produce_glyphs): For composition, call produce_composite_glyph.
22976 (append_composite_glyph, produce_composite_glyph): New functions.
22977
22978 * xdisp.c (x_produce_glyphs): In handling composition, if a font
22979 is not found, get font_info from the current ascii face.
22980
229812008-02-01 Kenichi Handa <handa@m17n.org>
22982
22983 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
22984 buffer-file-name to Qnil before calling insert_from_buffer.
22985
22986 * font.c (font_unparse_fcname): Pay attention to the case that
22987 foundry is a null string.
22988
229892008-02-01 Kenichi Handa <handa@m17n.org>
22990
22991 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
22992
22993 * font.c (Qunicode_sip): New variable.
22994 (syms_of_font): Declare it as a Lisp symbol.
22995
22996 * font.h (Qunicode_sip): Extern it.
22997
229982008-02-01 Kenichi Handa <handa@m17n.org>
22999
23000 * composite.c (get_composition_id): Pay attention to TAB component.
23001
23002 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
23003 TAB. Adjust for the change of s->char2b which always points to
23004 the first element of allocated memory.
23005
23006 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
23007
23008 * xdisp.c (handle_composition_prop): Set it->c to the first
23009 non-TAB component.
23010 (fill_composite_glyph_string): Change argument.
23011 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
23012 (x_produce_glyphs): Fix handling of left/right padding.
23013
230142008-02-01 Kenichi Handa <handa@m17n.org>
23015
23016 * coding.c (detect_coding_system): Fix for handling off
23017 inhibit_iso_escape_detection. Fix for the case that no coding
23018 system is defined for a specific coding category.
23019
230202008-02-01 Kenichi Handa <handa@m17n.org>
23021
23022 * font.c (font_matching_entity): Delete unused local var.
23023
23024 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
23025 opening a font.
23026
23027 * fileio.c (Finsert_file_contents): On recovering a file, assume
23028 Unix-like eol.
23029 (choose_write_coding_system): On auto-saving a file, force
23030 Unix-like eol.
23031
23032 * coding.c (setup_coding_system): Fix setting of
23033 coding->common_flags based on eol_type.
23034 (coding_inherit_eol_type): If PARENT is not nil, be sure to
23035 inherit from it.
23036
230372008-02-01 Kenichi Handa <handa@m17n.org>
23038
23039 * alloc.c (NSTATICS): Increas to 0x600.
23040
230412008-02-01 Kenichi Handa <handa@m17n.org>
23042
23043 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
23044 (ftfont_list): Don't check :name property.
23045 (ftfont_match): New function.
23046 (ftfont_pattern_entity): If the pattern doesn't contain
23047 FC_SPACING, don't assume FC_MONO.
23048
23049 * font.h (struct font_driver): New member `match'.
23050 (font_update_drivers): Adjust prototype.
23051
23052 * font.c (font_parse_fcname, font_parse_name): Don't change :name
23053 property of FONT.
bba3e508
SM
23054 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring):
23055 Define them unconditionally.
aac0c6e3
MR
23056 (font_matching_entity): New function.
23057 (font_open_by_name): Try font_matching_entity if exact match is
23058 not found.
23059 (font_update_drivers): Delete the arg FONT. Return a list of
23060 actually used backends. Don't free faces, font caches here.
23061 Don't store data in frame parameters. Don't call x_set_font.
23062 (Ffont_spec): Store :name property as is.
23063 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
23064 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
23065 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
23066 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
23067 Call font->driver->otf_gsub instead of font_otf_gsub.
23068
23069 * frame.c (x_set_font_backend): Do more works that were done in
23070 font_update_drivers before.
23071
23072 * xfont.c (xfont_match): New function.
23073 (xfont_driver): Set xfont_driver.match to xfont_match.
23074 (xfont_draw): Set font in GC if necessary.
23075
23076 * ftxfont.c (ftxfont_match): New function.
23077 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
23078
23079 * xftfont.c (xftfont_match): New function.
23080 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
23081
230822008-02-01 Kenichi Handa <handa@m17n.org>
23083
23084 * font.h (struct font): New member scalable.
23085 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
23086 (font_otf_gsub): Adjust prototype.
23087
23088 * font.c (font_otf_capability): Fix handling of the default langsys.
23089 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
23090 Check the contents of SPEC.
23091 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
23092 (check_gstring): New function.
23093 (REPLACEMENT_CHARACTER): New macro.
23094 (font_otf_gsub): New arg alternate_subst. Be sure to set all
23095 glyph codes of GSTRING.
23096 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
23097 (font_prepare_composition): Set cmp->glyph_len.
23098 (font_open_entity): Set font->scalable.
23099 (Ffont_get): Handle :otf property.
bba3e508
SM
23100 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates):
23101 New functions.
aac0c6e3
MR
23102 (Fquery_font): Use font->font.full_name.
23103 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
23104 Sfont_otf_alternates.
23105
23106 * ftfont.c (ftfont_open): Set font->font.full_name and
23107 font->font.name properly. Fix calculation of font->font.height
23108 and font->min_width.
23109
23110 * ftxfont.c (ftxfont_create_gcs): New function.
23111 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
23112 (ftxfont_draw_backgrond): Fix filling region.
23113 (ftxfont_default_fid): New function.
23114 (ftxfont_open): Set xfont->fid to the return value of
23115 ftxfont_default_fid.
23116 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
23117 (ftxfont_done_face): Free only GCs that are created by
23118 ftxfont_create_gcs.
23119 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
23120
23121 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
23122 Clip to src->width, etc (not src->clip_XXX).
23123
23124 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
23125 FontBackend frame parameter.
23126
231272008-02-01 Kenichi Handa <handa@m17n.org>
23128
23129 * font.h (struct font_driver_list): New member `on'.
23130 (Fclear_font_cache): EXFUN it.
23131 (font_update_drivers): Extern it.
23132
23133 * font.c (font_unparse_fcname): Fix typo (swidth->width).
23134 (font_list_entities): Check driver_list->on.
40b1a3a9 23135 (register_font_driver): Initialize `on' member to 0.
aac0c6e3
MR
23136 (font_update_drivers): New function.
23137 (Fclear_font_cache): Check driver_list->on.
23138
23139 * frame.h (Qfont_backend): Extern it.
23140 (x_set_font_backend): Extern it.
23141
23142 * frame.c (Qfont_backend): New variable.
23143 (frame_parms): New element for font-backend.
23144 (x_set_font_backend): New function.
23145
23146 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
23147 FontBackend frame parameter.
23148 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
23149 x_set_font_backend.
23150
23151 * xfont.c (xfont_list): Don't try listing by :name property if the
23152 name is not for XLFD.
23153
231542008-02-01 Kenichi Handa <handa@m17n.org>
23155
23156 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
23157 (LGLYPH_SET_TO): New macros.
23158 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
23159 element of G is vector or not.
23160 (font_at): Extern it.
23161
23162 * font.c: Include window.h.
23163 (font_lispy_object): New function.
23164 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
23165 end of valid glyph.
23166 (font_close_object): Fix getting (struct font *).
23167 (font_at): New function.
23168 (Ffont_get): If FONT is a font-object, get entity from it.
23169 (Ffont_make_gstring): Initialize elements of glyphs with nil.
bba3e508
SM
23170 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX.
23171 Fix range check.
aac0c6e3
MR
23172 (Ffont_at): New function.
23173 (syms_of_font): Defsubr Sfont_at.
23174
23175 * xdisp.c (it_props): Move the entry for Qauto_composed to just
23176 before the entry for Qcomposition.
23177 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
23178 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
23179 the font in gstring.
23180 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
23181 LGLYPH_FORM (g) to detect the end of valid glyph.
23182 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
23183 we are composing with gstring.
23184
23185 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
23186 Check if adjustment is vector or not.
23187
23188 * Makefile.in (font.o): Make it depends on window.h.
23189
231902008-02-01 Kenichi Handa <handa@m17n.org>
23191
23192 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
23193 adjustment is vector or not.
23194
231952008-02-01 Miles Bader <miles@gnu.org>
23196
23197 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
23198
231992008-02-01 Kenichi Handa <handa@m17n.org>
23200
23201 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
bba3e508 23202 (LGLYPH_SET_WIDTH): Adjust for the change of LGLYPH format.
aac0c6e3
MR
23203 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
23204
23205 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
23206 (DEVICE_DELTA): Fix typo.
23207 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
23208 LGLYPH format.
23209
23210 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
23211 the change of LGLYPH format.
23212
232132008-02-01 Kenichi Handa <handa@m17n.org>
23214
23215 * ftfont.c (ftfont_list): Fix typo.
23216 (ftfont_build_basic_charsets): Don't include letters with diacritics.
23217
232182008-02-01 Jan Djärv <jan.h.d@swipnet.se>
23219
23220 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
23221
23222 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
23223 xftface_info is non-NULL.
23224
232252008-02-01 Jan Djärv <jan.h.d@swipnet.se>
23226
23227 * ftfont.c (ftfont_list): Move misplaced #endif.
23228
232292008-02-01 Kenichi Handa <handa@m17n.org>
23230
23231 * ftfont.c (ftfont_list): Pay attention to the case that
23232 FC_CAPABILITY is not defined.
23233
232342008-02-01 Kenichi Handa <handa@m17n.org>
23235
23236 * xftfont.c (xftfont_open): Set charset related members to -1.
23237
23238 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
23239 QCname.
23240 (ftfont_open): Set charset related members to -1.
23241
23242 * fontset.c (Votf_script_alist): New variable.
23243 (syms_of_fontset): Initialize it.
23244 (fontset_font): Delete unused variable.
23245
23246 * fontset.h (Votf_script_alist): Extern it.
23247
23248 * font.c (font_find_for_lface): Optimize code.
23249
23250 * font.h (font_close_object, font_merge_old_spec): Extern them.
23251
232522008-02-01 Kenichi Handa <handa@m17n.org>
23253
23254 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
23255 (syms_of_font): Initialize them.
23256 (font_pixel_size): Allow float value in dpi.
23257 (font_prop_validate_type): Delete.
23258 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
23259 Change caller.
23260 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
23261 (font_prop_validate_extra): Delete.
23262 (font_prop_validate_spacing): New function.
23263 (font_property_table): Add elements for all known properties.
bba3e508
SM
23264 (get_font_prop_index): Rename from check_font_prop_name.
23265 New argument FROM. Change caller.
aac0c6e3
MR
23266 (font_prop_validate): Validate all known properties.
23267 (font_put_extra): Delete argument force. Change caller.
23268 (font_expand_wildcards): Make it static. Fix the way of shrinking
23269 the possible range.
23270 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
23271 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
23272 Change caller.
23273 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
23274 (font_parse_fcname): Delete argument merge. Fix parsing of point
23275 size. Don't validate properties values here. Change caller.
23276 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
23277 (font_open_by_name): Delete unused variable.
23278 (Ffont_spec): Likewise. Validate property values.
23279 (Ffont_match_p): New function.
23280
23281 * font.h (QCscalable): Extern it.
23282 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
23283
23284 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
23285
23286 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
23287 (xfont_list_pattern): New function.
23288 (xfont_list): Use xfont_list_pattern.
23289
232902008-02-01 Kenichi Handa <handa@m17n.org>
23291
23292 * font.h (Flist_fonts): EXFUN it.
23293
232942008-02-01 Jason Rumney <jasonr@gnu.org>
23295
23296 * w32term.c (w32_initialize): Add back smoothing_type and
23297 smoothing_enabled definitions.
23298
232992008-02-01 Kenichi Handa <handa@m17n.org>
23300
23301 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
23302 s->face->font on determining underline position.
23303
233042008-02-01 Kenichi Handa <handa@m17n.org>
23305
23306 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
23307 (font_has_char): Accept font-object too.
23308 (font_find_for_lface): Try at first with a size specified in face.
23309
233102008-02-01 Kenichi Handa <handa@m17n.org>
23311
23312 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
23313 font_open_by_name.
23314
233152008-02-01 Kenichi Handa <handa@m17n.org>
23316
23317 * font.h (QCspacing, QCdpi): Extern them.
23318 (enum font_spacing): New enum.
23319 (FONT_PIXEL_SIZE_QUANTUM): New macro.
23320
23321 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
23322 (QCspacing, QCdpi): New variables.
23323 (syms_of_font): Initialize them.
23324 (font_pixel_size): New function.
23325 (font_put_extra): New function.
23326 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
23327 in FONT_EXTRA.
23328 (font_parse_fcname): Handle enumerated values (e.g. bold).
23329 Fix handling font size. Add QCname property that contains only
23330 unknown properties.
23331 (font_score): Change argument. Change caller. Pay attention to
23332 FONT_PIXEL_SIZE_QUANTUM.
23333 (font_sort_entites, font_list_entities, font_find_for_lface)
23334 (font_open_for_lface, font_open_by_name): Fix handling of font size.
23335 (Ffont_spec): Add QCname property that contains only unknown properties.
23336
bba3e508
SM
23337 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq.
23338 Don't include weight in listing pattern, instead check weight of each
aac0c6e3
MR
23339 listed font. Don't include scalable in pattern. Pay attention to
23340 FONT_PIXEL_SIZE_QUANTUM.
23341
233422008-02-01 Kenichi Handa <handa@m17n.org>
23343
23344 * font.c (font_parse_fcname): Fix parsing of point-size.
23345 (font_unparse_fcname): Produce symbolic names for style properties.
23346 (font_list_entities): Handle float size correctly.
23347 (font_open_by_name): Prefer `normal' property values if the name
23348 doesn't specify them.
23349
23350 * fontset.c (Finternal_char_font): Use font_get_name, not
23351 Ffont_xlfd_name.
23352
23353 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
23354 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
23355 pattern. Don't force scalable.
23356
23357 * xftfont.c (xftfont_open): For generating a name, start from
23358 96-byte buffer.
23359
233602008-02-01 Jan Djärv <jan.h.d@swipnet.se>
23361
23362 * frame.h (x_new_fontset2): Fix prototype.
23363
233642008-02-01 Kenichi Handa <handa@m17n.org>
23365
23366 * font.h (struct font_driver): Delete member parse_name.
23367 (font_match_p, font_get_spec, font_parse_fcname)
23368 (font_unparse_fcname): Extern them.
23369 (font_get_name): Adjust prototype.
23370
23371 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
23372 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
bba3e508
SM
23373 (font_expand_wildcards): Fix handling ENCODING field.
23374 Avoid unnecessary checks for weight, slant, and swidth.
aac0c6e3
MR
23375 (font_parse_fcname): New function.
23376 (font_unparse_fcname): New function.
23377 (font_parse_name): New function.
23378 (font_match_p): New function.
23379 (font_get_name): Change return value to Lisp string.
23380 (font_get_spec): New function.
23381 (Qunspecified, Qignore_defface): Don't extern them.
23382 (font_find_for_lface): Assume that LFACE is fully specified.
23383 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
23384 object, use it for FACE.
23385 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
23386 driver->parse_name.
23387 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
23388
23389 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
23390 prototype.
23391
23392 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
23393 argument F. Don't call Fnew_fontset. Instead, directly call
23394 make_fontset.
23395
23396 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
23397
23398 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
23399 of x_new_fontset2.
23400
23401 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
23402 (Qsans__serif): New variables.
23403 (ftfont_generic_family_list): New variable.
23404 (syms_of_ftfont): Initialize the above variables.
23405 (ftfont_pattern_entity): Delete argument NAME.
23406 (ftfont_list_generic_family): New function.
23407 (ftfont_parse_name): Delete this function.
23408 (ftfont_list): Try generic family only when FcFontList found no font.
23409 (ftfont_list_family): Fix args to FcObjectSetBuild.
23410
23411 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
23412 object in attrs[LFACE_FONT_INDEX].
23413 (set_lface_from_font_name): Cancel all changes for font-backend.
23414 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
23415 function.
23416 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
23417 font object in QCfont attribute.
23418 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
23419 (realize_default_face) [USE_FONT_BACKEND]: Call
23420 set_lface_from_font_and_fontset.
23421
23422 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
23423 "fixed", and signal error here if no suitable font was found.
23424
23425 * xfont.c (xfont_parse_name): Delete this function.
23426
23427 * xftfont.c (xftfont_open): Change coding style of error
23428 handling. Generate fontconfig's fontname pattern.
23429
23430 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
23431 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
23432
23433 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
23434 Both args FONTSET and FONT_OBJECT must be existing ones.
23435
234362008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23437
23438 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
23439
234402008-02-01 Kenichi Handa <handa@m17n.org>
23441
23442 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
23443
23444 * font.h (struct font): Fix typo.
23445
23446 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
23447 XLFD_XXX_INDEX.
23448 (enum xlfd_field_mask): New enum.
ef1b0ba7 23449 (intern_font_field): Change argument. Change caller. If digits
aac0c6e3
MR
23450 are followed by non-digits, return a symbol.
23451 (font_expand_wildcards): New function.
23452 (font_parse_xlfd): Fix wildcard handling.
23453 (Ffont_spec): If :name is specified, reflect the info in the other
23454 properties.
23455
23456 * ftfont.c (ftfont_pattern_entity): Fix typo.
23457 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
23458 locale.
23459
234602008-02-01 Kenichi Handa <handa@m17n.org>
23461
23462 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
23463
23464 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
23465 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
23466 registry doesn't specify encoding part.
23467 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
23468 (font_open_by_name): At first try parsing the name.
23469 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
23470 as Lisp symbols.
23471
23472 * fontset.c (reorder_font_vector): Pay attention to the case that
23473 the 3rd element of font_def is nil.
23474 (fontset_font): For the default fontset, append one more fontset
23475 elements for a script-based font specification. Don't add script
23476 attribute on finding a font.
23477 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
23478 font name.
23479 (fontset_ascii_font): If a font can't be opened, return nil.
23480
23481 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
23482 (ftfont_pattern_entity): New function.
23483 (ftfont_get_cache): Assume that freetype_font_cache is already
23484 initialized.
23485 (ftfont_list): Handle the case that a file is specified in font
23486 name. Use ftfont_pattern_entity to generate entities.
23487 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
23488 (syms_of_ftfont): Initialize freetype_font_cache.
23489
23490 * xftfont.c (xftfont_open): Make the font name fontconfig's
23491 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
23492 (xftfont_close): Free font->font.name if not NULL.
23493
23494 * xfont.c (xfont_list): If script is specified for a font, return
23495 null_vector.
23496 (xfont_list_family): Declare argument type.
23497
23498 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
23499 name, set LFACE_FONT (lface) to nil.
23500
23501 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
23502 return Qnil.
23503
235042008-02-01 Kenichi Handa <handa@m17n.org>
23505
23506 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
23507 (standard_args): Add "-enable-font-backend".
23508
235092008-02-01 Kenichi Handa <handa@m17n.org>
23510
23511 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
23512 (struct xftdraw_list, xftdraw_list): Delete them.
23513 (register_xftdraw, check_xftdraw): Delete them.
23514 (xftfont_prepare_face): Don't call register_xftdraw.
23515 (xftfont_done_face): Don't call check_xftdraw.
23516 (xftfont_draw): Get background color only when with_background is
23517 nonzero.
23518
23519 * xfont.c (xfont_encode_char): Fix calculation of char2b.
23520
235212008-02-01 Kenichi Handa <handa@m17n.org>
23522
23523 These changes are for the new font handling codes.
23524
23525 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
23526 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
23527 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
23528 (FONTSRC, FONTOBJ): New variables.
23529 (obj): Add $(FONTOBJ).
23530 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
23531 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
23532 @LIBOTF_LIBS@.
23533 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
23534 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
23535
23536 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
23537
23538 * character.h (Vscript_representative_chars): Extern it.
23539
23540 * character.c (Vscript_representative_chars): New variable.
23541 (syms_of_character): Declare it as a Lisp variable.
23542
23543 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
23544 enable_font_backend is nonzero, accept the composition method
23545 COMPOSITION_WITH_GLYPH_STRING.
23546
23547 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
23548 enumeration COMPOSITION_WITH_GLYPH_STRING.
23549
23550 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
23551 members clip_x, clip_y, clip_width, and clip_height.
23552 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
23553
23554 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
23555 --enable-font-backend. Call syms_of_font.
23556
23557 * fns.c (assoc_no_quit): New function.
23558
23559 * fontset.h (FONT_INFO_FROM_FACE): New macro.
23560 (face_for_font, new_fontset_from_font)
23561 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
23562
23563 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
23564 (fontset_font, fontset_ascii, face_for_char)
23565 (make_fontset_for_ascii_face, Ffont_info)
23566 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
23567 is nonzero, use font-backend mechanism.
23568 (find_font_encoding): Make it non-static.
23569 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
23570 New functions.
23571
23572 * frame.h (struct frame): New members resx and resy.
23573 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
23574 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
23575
23576 * frame.c [USE_FONT_BACKEND]: Include "font.h".
23577 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
23578
23579 * lisp.h (assoc_no_quit): Extern it.
23580
23581 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
23582 Through out the file, use FONT_INFO_FROM_FACE instead of
23583 FONT_INFO_FROM_ID, use get_per_char_metric instead of
23584 rif->per_char_metric.
23585 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
23586 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
23587 (get_glyph_face_and_encoding, fill_composite_glyph_string)
23588 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
23589 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
23590 nonzero, use font-backend mechanism.
23591 (get_per_char_metric): New function.
23592
23593 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
23594 (set_lface_from_font_name)
23595 (set_font_frame_param, free_realized_face)
23596 (prepare_face_for_display, clear_face_gcs)
23597 (Finternal_set_font_selection_order, realize_x_face)
23598 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
23599 font-backend mechanism.
23600 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
23601 (load_face_font) [USE_FONT_BACKEND]: Abort.
23602 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
23603 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
23604
23605 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
23606 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
23607 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
bba3e508
SM
23608 nonzero, register all available font drivers.
23609 Call x_default_font_parameter for deciding a font.
aac0c6e3
MR
23610 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
23611
23612 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
23613 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
23614 (x_set_glyph_string_clipping_exactly)
23615 (x_compute_glyph_string_overhangs)
23616 (x_draw_glyph_string_foreground)
23617 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
23618 (x_free_frame_resources) [USE_FONT_BACKEND]: If
23619 enable_font_backend is nonzero, use font-backend mechanism.
23620 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
23621
236222008-02-01 Kenichi Handa <handa@m17n.org>
23623
23624 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
23625 system_eol_type.
23626 (syms_of_coding): Initialize system_eol_type.
23627
23628 * process.c (Fset_process_coding_system): Inherit system's eol
23629 format if necessary.
23630
236312008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23632
23633 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
23634
236352008-02-01 Kenichi Handa <handa@m17n.org>
23636
23637 * coding.c (decode_eol): Pay attention to buffer relocation in
23638 del_range_2.
23639 (decode_coding): Call decode_eol before restoring undo_list.
23640
236412008-02-01 Kenichi Handa <handa@m17n.org>
23642
23643 * charset.c (Fdefine_charset_internal): Fix setting of
23644 emacs_mule_bytes.
23645
236462008-02-01 Kenichi Handa <handa@m17n.org>
23647
23648 * keyboard.c (read_char): Check if C is a character or not before
23649 looking up Vkeyboard_translate_table.
23650
236512008-02-01 Kenichi Handa <handa@m17n.org>
23652
bba3e508
SM
23653 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION):
23654 Fix condition to terminate the loop.
aac0c6e3
MR
23655
236562008-02-01 Kenichi Handa <handa@m17n.org>
23657
23658 * coding.c (produce_composition): Compare charbuf[i] instead of
23659 args[i] against 0.
23660 (Fterminal_coding_system): Use EQ to compare Lisp objects.
23661
236622008-02-01 Kenichi Handa <handa@m17n.org>
23663
23664 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
23665 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
23666 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
23667 detect_coding.
23668 (emacs_mule_char): Handle old style (Emacs 20) component character
23669 of a composition.
23670 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
23671 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
23672 composition rule.
23673 (decode_coding_emacs_mule): Handle invalid bytes correctly.
23674
236752008-02-01 Kenichi Handa <handa@m17n.org>
23676
23677 * coding.c (encode_coding_ccl): Allocate destination dynamically
23678 when necessary.
23679
236802008-02-01 Kenichi Handa <handa@m17n.org>
23681
23682 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
23683 the loop. When quitted, show a proper error message.
23684
236852008-02-01 Kenichi Handa <handa@m17n.org>
23686
bba3e508
SM
23687 * xterm.c (x_set_glyph_string_clipping_exactly):
23688 Set src->clip_head and src->clip_tail temporarily instead of src->hl.
aac0c6e3
MR
23689
23690 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
23691 character sequence.
23692 (Fccl_execute_on_string): Use ASET, not XSET.
23693
236942008-02-01 Kenichi Handa <handa@m17n.org>
23695
23696 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
23697
236982008-02-01 Kenichi Handa <handa@m17n.org>
23699
23700 * coding.c (decode_coding): Fix the condition of terminating the
23701 decoding loop.
23702
237032008-02-01 Kenichi Handa <handa@m17n.org>
23704
23705 * data.c (Faset): On setting a character bigger than 255 in a
23706 unibyte string, signal an error instead of make the string multibyte.
23707
237082008-02-01 Kenichi Handa <handa@m17n.org>
23709
23710 * charset.c (map_charset_chars): Fix for ascii-compatible charset
23711 made by a mapping table.
23712
237132008-02-01 Kenichi Handa <handa@m17n.org>
23714
23715 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
23716 not.
23717 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
23718 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
23719
bba3e508
SM
23720 * xterm.c (x_draw_composite_glyph_string_foreground):
23721 Check s->face is NULL or not.
aac0c6e3
MR
23722
237232008-02-01 Kenichi Handa <handa@m17n.org>
23724
23725 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
23726 (x_draw_glyph_string): Fix drawing of right_overhang and
23727 left_overhang around/on cursor.
23728
23729 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
23730
237312008-02-01 Kenichi Handa <handa@m17n.org>
23732
23733 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
23734
237352008-02-01 Kenichi Handa <handa@m17n.org>
23736
23737 * coding.c (Fdefine_coding_system_internal)
23738 (Fdefine_coding_system_alias): Avoid a duplicated element in
23739 Vcoding_system_alist.
23740
237412008-02-01 Kenichi Handa <handa@m17n.org>
23742
23743 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
23744
23745 * coding.c (Qcoding_system_define_form): New variable.
23746 (syms_of_coding): Intern and staticpro it.
23747 (Fcoding_system_p): Check Qcoding_system_define_form.
23748 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
23749
23750 * coding.h (CODING_SYSTEM_P): If ID is not available, call
23751 Fcoding_system_p.
23752 (CHECK_CODING_SYSTEM): If ID is not available, call
23753 Fcheck_coding_system.
23754 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
23755 Try also Fcheck_coding_system.
23756
237572008-02-01 Kenichi Handa <handa@m17n.org>
23758
23759 * coding.c (code_conversion_restore): GCPRO arg.
23760
237612008-02-01 Kenichi Handa <handa@m17n.org>
23762
23763 * character.c (lisp_string_width): Check multibyteness of STRING.
23764
237652008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23766
23767 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
23768 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
23769 (decode_mac_font_name): Use decode_coding_c_string instead of
23770 decode_coding.
bba3e508
SM
23771 (x_load_font): Initialize fontp->fontset to -1.
23772 Set fontp->encoding_type.
aac0c6e3
MR
23773
237742008-02-01 Kenichi Handa <handa@m17n.org>
23775
23776 * search.c (search_buffer): Give up BM search on case-fold-search
23777 if one of a target character has a case-equivalence of different
3b59c351 23778 byte length even if that target character is an ASCII.
aac0c6e3
MR
23779 (simple_search): Fix calculation of byte length of matched text.
23780 (boyer_moore): Fix handling of case-equivalent multibyte characters.
23781
237822008-02-01 Kenichi Handa <handa@m17n.org>
23783
23784 * coding.c (decode_coding): Fix handling of invalid bytes.
23785
237862008-02-01 Kenichi Handa <handa@m17n.org>
23787
23788 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
23789 Unicode characters.
23790
237912008-02-01 Kenichi Handa <handa@m17n.org>
23792
23793 * coding.c (encode_coding_object): If a pre-write-conversion
23794 function makes a new buffer, kill it.
23795
237962008-02-01 Kenichi Handa <handa@m17n.org>
23797
23798 * coding.c (QCascii_compatible_p): New variable.
23799 (syms_of_coding): Initialize it.
23800 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
23801 calling string_char.
23802 (record_conversion_result): Add `default:' case.
23803 (coding_charset_list): Delete unused variable `coding_type'.
23804 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
23805 property in the plist of the coding system.
23806 (Fcoding_system_put): Check QCascii_compatible_p.
23807
238082008-02-01 Miles Bader <miles@gnu.org>
23809
23810 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
23811 removed calculation of frame `f', as it's now used.
23812
238132008-02-01 Kenichi Handa <handa@m17n.org>
23814
23815 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
23816 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
23817 (UNIDATA): New variable.
23818 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
bba3e508
SM
23819 (bootstrap-emacs${EXEEXT}): Depends on charprop.el.
23820 Run $(RUN_TEMACS) unconditionally.
aac0c6e3
MR
23821
238222008-02-01 Kenichi Handa <handa@m17n.org>
23823
23824 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
23825 (admindir): New variable.
23826 ($(lispsource)international/charprop.el): New target.
23827
238282008-02-01 Miles Bader <miles@gnu.org>
23829
23830 * character.c (chars-in-region): Remove obsolete function.
23831 (syms_of_character): Remove its initialization.
23832
238332008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
23834
23835 * w32select.c (validate_coding_system)
23836 (setup_windows_coding_system): New functions.
bba3e508
SM
23837 (convert_to_handle_as_coded, Fw32_get_clipboard_data):
23838 Use setup_windows_coding_system.
23839 (setup_config, Fw32_get_clipboard_data):
23840 Use validate_coding_system.
aac0c6e3
MR
23841 (Fx_selection_exists): Move call to setup_config to a place
23842 where signals are allowed.
23843
23844 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
23845 (Fcheck_coding_system): Add declarations.
23846
238472008-02-01 Kenichi Handa <handa@m17n.org>
23848
23849 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
23850
238512008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23852
23853 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
23854 string as the second argument for x_new_fontset.
23855
238562008-02-01 Kenichi Handa <handa@m17n.org>
23857
23858 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
23859 (encode_coding_object): Use safe_call instead of call2.
23860
238612008-02-01 Kenichi Handa <handa@m17n.org>
23862
23863 * fontset.c (Fset_fontset_font): Check family element of a given vector.
23864
23865 * Makefile.in (lisp): Include charprop.el.
23866
238672008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23868
23869 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
23870 Not sure if it's unnecessary.
23871
238722008-02-01 Steven Tamm <steventamm@mac.com>
23873
23874 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
23875 some possibly unnecessary fontset checking code that crashed
23876 when creating a new frame.
23877
238782008-02-01 Kenichi Handa <handa@m17n.org>
23879
23880 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
23881 lookup_face.
23882
23883 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
23884
23885 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
23886
238872008-02-01 Kenichi Handa <handa@m17n.org>
23888
23889 * coding.c: Cancel the change done in HEAD on 2008-02-01.
23890 (coding_charset_list): New function.
23891
23892 * coding.h (coding_charset_list): Extern it.
23893
238942008-02-01 Kenichi Handa <handa@m17n.org>
23895
23896 * fontset.c (Fset_fontset_font): Call find_font_encoding with
23897 concatenation of family and registry.
23898
238992008-02-01 Kenichi Handa <handa@m17n.org>
23900
23901 * character.h (BYTE8_STRING): Fix typo.
23902
23903 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
23904 string to multibyte (sync to HEAD).
23905
23906 * casefiddle.c (casify_region): Handle changes in byte-length
23907 using replace_range_2 (sync to HEAD).
23908
239092008-02-01 Andreas Schwab <schwab@suse.de>
23910
23911 * chartab.c (map_char_table): GCPRO table and arg.
23912
239132008-02-01 Kenichi Handa <handa@m17n.org>
23914
23915 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
23916 already at limit.
23917
239182008-02-01 Kenichi Handa <handa@m17n.org>
23919
23920 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
23921 instead of fast_c_string_match_ignore_case.
bba3e508
SM
23922 (find_font_encoding): Change argument to Lisp_Object.
23923 Use fast_string_match_ignore_case instead of
aac0c6e3
MR
23924 fast_c_string_match_ignore_case. Change caller.
23925
239262008-02-01 Kenichi Handa <handa@m17n.org>
23927
23928 * xdisp.c (get_next_display_element): In unibyte case, decide to
23929 display in octal form by checking a character by
23930 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
23931
23932 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
23933
23934 * character.c (unibyte_has_multibyte_table): New variable.
23935
23936 * character.h (unibyte_has_multibyte_table): Extern it.
23937 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
23938
239392008-02-01 Kenichi Handa <handa@m17n.org>
23940
23941 * coding.c (encode_coding_iso_2022): Fix handling of charset
23942 annotation.
23943
239442008-02-01 Kenichi Handa <handa@m17n.org>
23945
23946 * coding.c (setup_coding_system): If coding_system is nil, use
23947 Qundecided.
23948 (Fterminal_coding_system): Return nil if terminal coding system is
23949 `undecided'.
bba3e508
SM
23950 (syms_of_coding): Define coding-system `undecided' here.
23951 Setup terminal_coding as `undecided'.
aac0c6e3
MR
23952
239532008-02-01 Kenichi Handa <handa@m17n.org>
23954
bba3e508
SM
23955 * xdisp.c (message_dolog, set_message_1):
23956 Call unibyte_char_to_multibyte with arg type int.
aac0c6e3
MR
23957
23958 * lread.c (read1): Fix reading of a char-table.
23959
23960 * print.c (print_object): Include sub char-table in circularities
23961 detection.
23962
239632008-02-01 Kenichi Handa <handa@m17n.org>
23964
23965 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
23966 Append the found sequences in car of ARGS instead of prepending.
23967
239682008-02-01 Kenichi Handa <handa@m17n.org>
23969
23970 * fileio.c (report_file_error): Make a unibyte string from
23971 strerror (errorno).
23972 (Fsubstitute_in_file_name): Fix the arg to
23973 unibyte_char_to_multibyte. It is evaluated twice.
23974
239752008-02-01 Kenichi Handa <handa@m17n.org>
23976
23977 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
23978
239792008-02-01 Kenichi Handa <handa@m17n.org>
23980
23981 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
23982 BOM is not found.
23983 (detect_coding, detect_coding_system): Optimization for ISO-2022
23984 when no 8-bit data is found.
23985
239862008-02-01 Jason Rumney <jasonr@gnu.org>
23987
23988 * w32fns.c (x_to_w32_font): Update to use new coding struct.
23989
239902008-02-01 Kenichi Handa <handa@m17n.org>
23991
23992 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
23993 CHARS.
23994
239952008-02-01 Steven Tamm <steventamm@mac.com>
23996
23997 * macterm.c (mac_encode_char): Add charset argument and update
23998 to use encoding_type.
23999 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
24000 switch to pure fontset.
24001 (decode_mac_font_name): Temporarily remove decoding.
24002 (x_font_name_to_mac_font_name): Temporarily remove encoding.
24003 (x_load_font): Temporarily remove encoding.
24004
240052008-02-01 Kenichi Handa <handa@m17n.org>
24006
24007 * xfaces.c (Fface_font): If frame is not on a window system,
24008 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
24009 refer to face->font.
24010 (split_font_name_into_vector, build_font_name_from_vector)
24011 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
24012 when HAVE_WINDOW_SYSTEM is defined.
24013
240142008-02-01 Kenichi Handa <handa@m17n.org>
24015
24016 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
24017 (x_produce_glyphs): Fix setting of members of cmp in case
24018 cmp->glyph_len is zero.
24019
24020 * fontset.c (Fset_fontset_font): Fix docstring.
24021 (Ffontset_info): Make it backward compatible. New arg ALL.
24022
240232008-02-01 Kim F. Storm <storm@cua.dk>
24024
24025 * process.c (read_process_output): Grow decoding_buf when needed;
24026 this could cause a crash in allocate_string and compact_small_strings.
24027
240282008-02-01 Kenichi Handa <handa@m17n.org>
24029
24030 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
24031
240322008-02-01 Kenichi Handa <handa@m17n.org>
24033
24034 * coding.c (setup_coding_system): Set coding->common_flags
24035 correctly for raw-text.
24036 (consume_chars): On encoding unibyte text by raw-text, don't check
24037 multibyte form.
24038 (encode_coding): On encoding by raw-text, never use translation tables.
24039
24040 * fileio.c (e_write): Short cut for the case of no encoding.
24041
240422008-02-01 Kenichi Handa <handa@m17n.org>
24043
24044 * coding.c (detect_coding, detect_coding_system): Delete unused
24045 variables.
24046
240472008-02-01 Kenichi Handa <handa@m17n.org>
24048
24049 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
24050 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
24051
240522008-02-01 Kenichi Handa <handa@m17n.org>
24053
bba3e508
SM
24054 * coding.c (Ffind_coding_systems_region_internal):
24055 Include raw-text and no-conversion in the result.
aac0c6e3
MR
24056
240572008-02-01 Kenichi Handa <handa@m17n.org>
24058
24059 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
24060 (load_font_get_repertory): Delete unnecessary check of ENCODING of
24061 FONT_DEF.
24062 (font_def_arg, add_arg, from_arg, to_arg): New args.
24063 (set_fontset_font): Change argument.
24064 (Fset_fontset_font): Fix for the case that TARGET is a script
24065 name and charset name.
24066 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
24067
240682008-02-01 Kenichi Handa <handa@m17n.org>
24069
24070 * fontset.c (fontset_font): Rename from fontset_face. Change return
24071 value.
24072 (face_suitable_for_char_p, face_for_char): Adjust for the change
24073 of fontset_font.
24074 (make_fontset_for_ascii_face): Fix setting of the fontset element
24075 for ASCII.
24076 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
24077 to get a font name.
24078 (Ffontset_info): Adjust for the change of fontset_font.
24079
24080 * coding.c (emacs_mule_char): Check invalid code more rigidly.
24081
24082 * character.h (LEADING_CODE_LATIN_1_MIN)
24083 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
24084
240852008-02-01 Kenichi Handa <handa@m17n.org>
24086
24087 * editfns.c (check_translation): New function.
24088 (Ftranslate_region_internal): Handle M:N mapping.
24089
240902008-02-01 Kenichi Handa <handa@m17n.org>
24091
24092 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
24093
240942008-02-01 Kenichi Handa <handa@m17n.org>
24095
24096 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
24097 goto invalid_code.
24098 (decode_coding_iso_2022): Fix handling of invalid designation.
24099
24100 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
24101 after calling code_conversion_save.
24102
241032008-02-01 Kenichi Handa <handa@m17n.org>
24104
24105 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
24106
24107 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
24108
24109 * fontset.c: Include "intervals.h".
24110 (fontset_face): Fix comparing of Lisp_Objects.
bba3e508
SM
24111 (free_face_fontset, new_fontset_from_font_name):
24112 Fix Lisp_Object/int mixup.
aac0c6e3
MR
24113
24114 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
24115
24116 * coding.c: Add many prototypes for static functions.
24117 (get_translation_table): Allow max_lookup to be NULL.
24118 (decode_coding, Ffind_coding_systems_region_internal)
bba3e508
SM
24119 (Funencodable_char_position, Fcheck_coding_systems_region):
24120 Call get_translation_table with max_lookup NULL.
aac0c6e3
MR
24121
241222008-02-01 Kenichi Handa <handa@m17n.org>
24123
24124 * coding.c (get_translation_table): Declare it as Lisp_Object.
24125 (LOOKUP_TRANSLATION_TABLE): New macro.
24126 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
24127 instead of CHAR_TABLE_REF.
24128
241292008-02-01 Kenichi Handa <handa@m17n.org>
24130
24131 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
24132 annotation data format.
24133 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
24134 Change arguments FROM and TO to single argument NCHARS. Change caller.
24135 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
24136 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
24137 (decode_coding_ccl, decode_coding_charset): Pay attention to
24138 coding->charbuf_used.
24139 (get_translation): New function.
24140 (produce_chars): New arguments translation_table and last_block.
24141 Translate characters here. Return number of carryover chars.
24142 Change caller.
24143 (produce_composition): New argument pos. Change caller.
24144 Adjust for the change of annotation data format.
24145 (produce_charset, produce_annotation): Likewise.
24146 (decode_coding, encode_coding): Don't call translate_chars.
24147 (consume_chars): New arg translation_table. Change caller.
24148 (translate_chars): Delete.
24149 (syms_of_coding): Make translation-table's number of extra slots 2.
24150
241512008-02-01 Kenichi Handa <handa@m17n.org>
24152
24153 * search.c (simple_search): Fix setting this_pos_byte in backward
24154 search.
24155
24156 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
24157 byte sequence.
24158 (detect_coding_ccl): Fix setting of the variable valids.
24159
241602008-02-01 Kenichi Handa <handa@m17n.org>
24161
24162 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
24163
24164 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
24165
24166 * editfns.c (Ftranslate_region_internal): Rename from
24167 Ftranslate_region. Accept a char-table in TABLE.
24168 (syms_of_editfns): Defsubr Stranslate_region_internal.
24169
24170 * xfaces.c (set_lface_from_font_name): If a font is specified for
24171 a frame, generate a fontset from the font.
24172 (build_scalable_font_name): If the scalable font is requested for
24173 a specific size, don't change that size.
24174 (try_font_list): Try a scalable font also in the case that a
24175 pattern string is specified.
24176
241772008-02-01 Kenichi Handa <handa@m17n.org>
24178
24179 * xfaces.c (Fface_font): New optional arg CHARACTER.
24180
241812008-02-01 Kenichi Handa <handa@m17n.org>
24182
24183 * charset.h (CHARSET_OFFSET): New macro.
24184
241852008-02-01 Kenichi Handa <handa@m17n.org>
24186
24187 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
24188
24189 * fontset.c (fontset_face): Handle the case that repertory is a
24190 char-table.
24191 (find_font_encoding): Return nil for unknown encoding.
24192 (Fset_fontset_font): Ignore a font of unknown encoding.
24193
241942008-02-01 Kenichi Handa <handa@m17n.org>
24195
24196 * keymap.c (describe_vector): Handle default value of a char table.
24197
24198 * fontset.c (fontset_face): Handle fallback fonts correctly.
24199 (Ffontset_info): Return infomation about fallback fonts.
24200
242012008-02-01 Kenichi Handa <handa@m17n.org>
24202
24203 * fontset.c (FONTSET_DEFAULT): New macro.
24204 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
24205 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
24206 the case that it is nil.
24207 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
24208 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
24209
24210 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
24211 subset or superset.
24212
242132008-02-01 Kenichi Handa <handa@m17n.org>
24214
24215 * emacs.c (main): Call init_charset after syms_of_XXX.
24216
24217 * charset.c (Vcharset_map_directory): Delete.
24218 (Vcharset_map_path): New variable.
24219 (load_charset_map_from_file): Use Vcharset_map_path instead.
24220 (init_charset): Initialize Vcharset_map_path.
24221 (syms_of_charset): Delete declaration of "charset-map-directory",
24222 add declaration of "charset-map-path".
24223
242242008-02-01 Kenichi Handa <handa@m17n.org>
24225
24226 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
24227 ASCII only string.
24228
24229 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
24230
24231 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
24232 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
24233
242342008-02-01 Kenichi Handa <handa@m17n.org>
24235
24236 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
24237
24238 * coding.c (QCmnemonic, QCdefalut_char)
24239 (QCdecode_translation_table, QCencode_translation_table)
24240 (QCpost_read_conversion, QCpre_write_conversion): New variables.
24241 (get_translation_table): Return a list of translation tables if
24242 necessary.
24243 (decode_coding): Call get_translation_table with ENCODEP 0.
24244 (char_encodable_p): If translation_table is non-nil, always call
24245 translate_char.
24246 (Fdefine_coding_system_internal): Accept list of translation
24247 tables as :encode-translation-table and :decode-translation-table.
24248 (Fcoding_system_put): New function.
bba3e508
SM
24249 (syms_of_coding): Declare new symbols.
24250 Defsubr Scoding_system_put.
aac0c6e3
MR
24251 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
24252 typically JISX0212.
24253
24254 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
24255 when the charset is superset type.
24256
24257 * character.c (translate_char): Accept list of translation tables.
24258
242592008-02-01 Kenichi Handa <handa@m17n.org>
24260
24261 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
24262 (CODING_ATTR_TRANS_TBL): New macro.
24263
24264 * coding.c (get_translation_table): New function.
24265 (translate_chars): Fix the bug of skipping annotation data.
24266 (decode_coding, encode_coding): Utilize get_translation_table.
24267 (char_encodable_p, Funencodable_char_position): Translate char if
24268 necessary.
24269 (Ffind_coding_systems_region_internal)
24270 (Fcheck_coding_systems_region): Setup translation table for encode
24271 in a coding system attribute vector in advance.
24272 (Fdefine_coding_system_internal): Allow a symbol as translation
24273 table. For shift-jis type coding system, allow 4th charset.
24274
242752008-02-01 Kenichi Handa <handa@m17n.org>
24276
24277 * coding.c (decode_coding_sjis): Check the first byte rigidly.
24278
24279 * xdisp.c (get_next_display_element): Pass -1 as POS to
24280 FACE_FOR_CHAR if displaying a C-string.
24281
242822008-02-01 Kenichi Handa <handa@m17n.org>
24283
24284 * composite.c (get_composition_id): Handle xoff and yoff in a
24285 composition rule.
24286
24287 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
24288 (struct composition): New member lbearing and rbearing.
24289
24290 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
24291 (x_get_glyph_overhangs): Handle a composition glyph.
24292 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
24293
24294 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
24295 composition glyph.
24296
242972008-02-01 Kenichi Handa <handa@m17n.org>
24298
24299 * print.c: Include charset.h.
24300 (Vprint_charset_text_property): New variable.
24301 (Qdefault): Extern it.
24302 (PRINT_STRING_NON_CHARSET_FOUND)
24303 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
24304 (print_check_string_result): New variable.
24305 (print_check_string_charset_prop): New function.
24306 (print_prune_charset_plist): New variable.
24307 (print_prune_string_charset): New function.
24308 (print_object): Call print_prune_string_charset if
24309 Vprint_charset_text_property is not t.
24310 (print_interval): Print nothing if interval->plist is nil.
24311 (syms_of_print): Declare Vprint_charset_text_property as a lisp
24312 variable. Init and staticpro print_prune_charset_plist.
24313
243142008-02-01 Kenichi Handa <handa@m17n.org>
24315
24316 * fontset.c (new_fontset_from_font_name): Use the specified font
24317 for all characters in the new fontset.
24318
24319 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
24320 OBJECT args.
24321
24322 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
24323 OBJECT args for composition too.
24324
24325 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
24326 OBJECT args.
24327
243282008-02-01 Kenichi Handa <handa@m17n.org>
24329
24330 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
24331
24332 * fontset.c (reorder_font_vector): Adjust for the change of
24333 FONT_DEF format.
24334 (fontset_face): New arg id. Change caller.
24335 (face_for_char): New args pos and object.
24336 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
24337 (fs_query_fontset): Check NAME by Fassoc too.
24338 (Fset_fontset_font): Allow non-XLFD font name.
24339 (Ffontset_info): Adjust for the change of FONT_DEF format.
24340
24341 * fontset.h (face_for_char): Adjust prototype.
24342
24343 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
24344 (append_space, extend_face_to_end_of_line)
24345 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
24346 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
24347
24348 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
24349 POS and OBJECT args.
24350
24351 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
24352 POS and OBJECT args.
24353
243542008-02-01 Jason Rumney <jasonr@gnu.org>
24355
24356 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
24357 of GlobalAlloc'ed memory.
24358
243592008-02-01 Kenichi Handa <handa@m17n.org>
24360
24361 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
24362
24363 * charset.h (charset_table_used): Delete extern.
24364
24365 * charset.c (charset_table_used): Make it static.
24366 (map_charset_chars): Fix args to c_function with.
24367
24368 * chartab.c (map_sub_char_table_for_charset): Fix args to
24369 c_function with.
24370
bba3e508
SM
24371 * coding.h (enum coding_result_code):
24372 Delete CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
aac0c6e3
MR
24373
24374 * coding.c (Qinsufficient_source, Qinconsistent_eol)
24375 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
24376 (Vlast_code_conversion_error): New variables.
24377 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
24378 (ONE_MORE_BYTE): Record error if any instead of signaling an
24379 error. If non-ASCII multibyte char is found, return the negative
24380 value of the code. All callers changed to check it.
24381 (ONE_MORE_BYTE_NO_CHECK): Likewise.
24382 (record_conversion_result): New function. Change all codes setting
24383 coding->result to call this function.
24384 (detect_coding_utf_8, decode_coding_utf_8)
24385 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
24386 Don't use the local variable incomplete.
24387 (emacs_mule_char): Change the second arg to `const'.
24388 (decode_coding): Fix of flushing out unprocessed data.
24389 (make_conversion_work_buffer): Fix making of a work buffer.
24390 (decode_coding_object): Return coding->dst_object.
24391
24392 * fontset.c (set_fontset_font): Fix args.
24393
24394 * lisp.h (CHARACTERBITS): Define as 22.
24395
24396 * process.c (send_process): Be sure to set coding->src_multibyte.
24397
24398 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
24399
244002008-02-01 Kenichi Handa <handa@m17n.org>
24401
24402 * xdisp.c (handle_auto_composed_prop): Give limit to
24403 Fnext_single_char_property_change.
24404
244052008-02-01 Kenichi Handa <handa@m17n.org>
24406
24407 * composite.c (syms_of_composite): Don't make the composition hash
24408 table weak.
24409
24410 * fontset.c (Fset_fontset_font): Fix docstring.
24411
24412 * lisp.h (detect_coding_system): Adjust prototype.
24413
24414 * fileio.c (kill_workbuf_unwind): Delete this function.
24415 (Finsert_file_contents): Adjust the call of detect_coding_system.
24416 Get conversion_buffer by code_conversion_save. Use the macro
24417 CODING_MAY_REQUIRE_DECODING. After decoding, update
24418 coding_system.
24419
24420 * coding.h (make_conversion_work_buffer): Delete extern.
24421 (code_conversion_save): Extern it.
24422
24423 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
24424 (CODING_GET_INFO): Delete argument eol_type. Change callers.
24425 (decode_coding_utf_8): Don't do eol converion.
24426 (detect_coding_utf_16): Check coding->src_chars, not
24427 coding->src_bytes. Add heuristics for those that have no signature.
24428 (decode_coding_emacs_mule, decode_coding_iso_2022)
24429 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
24430 Don't do eol converion.
24431 (adjust_coding_eol_type): Return a new coding system.
24432 (detect_coding): Don't detect eol. Fix for utf-16 detection.
24433 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
24434 each change.
24435 (decode_coding): Pay attention to undo_list. Do eol conversion for
24436 all types of coding-systems (if necessary).
24437 (Vcode_conversion_work_buf_list): Delete it.
24438 (Vcode_conversion_reused_workbuf): Rename from
24439 Vcode_conversion_reused_work_buf.
24440 (Vcode_conversion_workbuf_name): New variable.
24441 (reused_workbuf_in_use): New variable.
24442 (make_conversion_work_buffer): Delete the arg DEPTH.
24443 (code_conversion_restore): Change argument to cons.
24444 (code_conversion_save): Delete the argument BUFFER. Change callers.
24445 (detect_coding_system): New argument src_chars. Change callers.
24446 Fix for utf-16 detection.
24447 (init_coding_once): Don't use ISO_carriage_return.
24448 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
24449 reused_workbuf_in_use.
24450
244512008-02-01 Kenichi Handa <handa@m17n.org>
24452
24453 * keymap.c (store_in_keymap): Pay attention to the case that idx
24454 is a cons specifying a character range.
24455
244562008-02-01 Kenichi Handa <handa@m17n.org>
24457
24458 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
24459 HANDLED_RECOMPUTE_PROPS.
24460
24461 * coding.c (Fdefine_coding_system_internal): Fix checking of
24462 ascii compatibility.
24463
244642008-02-01 Kenichi Handa <handa@m17n.org>
24465
24466 * charset.c (find_charsets_in_text): Delete unused locale variable.
24467 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
24468
24469 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
24470 Resync charset_list to Vemacs_mule_charset_list.
24471
24472 * keymap.c (store_in_keymap): Pay attention to the case that idx
24473 is a cons specifying a character range.
24474
244752008-02-01 Kenichi Handa <handa@m17n.org>
24476
24477 * composite.c (update_compositions): Bind inhibit-read-only, etc
24478 to t before calling remove-list-of-text-properties.
24479
24480 * print.c (print_object): Always print ASCII chars as is.
24481
244822008-02-01 Kenichi Handa <handa@m17n.org>
24483
24484 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
24485
24486 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
24487 is a char table.
24488
244892008-02-01 Kenichi Handa <handa@m17n.org>
24490
24491 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
24492
244932008-02-01 Kenichi Handa <handa@m17n.org>
24494
24495 * xfaces.c (set_lface_from_font_name): Fix for the case that
24496 FONTNAME is not fontset name.
24497
244982008-02-01 Kenichi Handa <handa@m17n.org>
24499
24500 * fns.c (base64_encode_1): Fix previous change.
24501
245022008-02-01 Kenichi Handa <handa@m17n.org>
24503
24504 * fontset.c (set_fontset_font): New function.
24505 (Fset_fontset_font): If a font is specified for a charset, use
24506 map_charset_chars to store the font spec in a fontset.
24507
245082008-02-01 Kenichi Handa <handa@m17n.org>
24509
24510 * fontset.c (fontset_face): Create a fallback fontset on demand.
24511 (make_fontset): Don't create a fallback fontset here.
24512 (free_face_fontset): Free a fallback fontset (if any) too.
24513 (n_auto_fontsets): Delete this variable.
24514 (auto_fontset_alist): New variable.
24515 (new_fontset_from_font_name): Check auto_fontset_alist.
24516 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
24517 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
24518 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
24519 Defsubr Sfontset_list_all.
24520
245212008-02-01 Kenichi Handa <handa@m17n.org>
24522
24523 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
24524
245252008-02-01 Kenichi Handa <handa@m17n.org>
24526
24527 * fontset.c (Fnew_fontset): Check NAME more rigidly.
24528
245292008-02-01 Kenichi Handa <handa@m17n.org>
24530
24531 * editfns.c (Fgoto_char): Fix docstring.
24532
245332008-02-01 Kenichi Handa <handa@m17n.org>
24534
24535 * insdel.c (insert_from_gap): Adjust intervals correctly.
24536
245372008-02-01 Jason Rumney <jasonr@gnu.org>
24538
24539 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
24540 (pfnGetFontUnicodeRanges): New dynamically loaded function.
24541 (w32_initialize): Try to load it.
24542 (x_get_font_repertory): Use it if available.
24543 (w32_encode_char): Add shortcut for unicode output.
24544
24545 * w32fns.c (w32_load_system_font): Default charset to -1.
24546 (x_to_w32_charset): Match all fonts for unicode.
24547 (w32_to_x_charset): New parameter matching. Don't return partial
24548 or wildcard charsets.
24549 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
24550 (w32_codepage_for_font): Return CP_UNICODE for unicode.
24551 (w32_to_x_font): Match charset to real charset.
24552 (enum_font_cb2): Always list unicode versions.
24553
24554 * makefile.w32-in (temacs): Increase EMHEAP.
24555
245562008-02-01 Jason Rumney <jasonr@gnu.org>
24557
24558 * w32term.c (w32_encode_char): New charset parameter.
24559 font_info.encoding becomes encoding_type.
24560 (x_get_font_repertory): New function. Warning: stub only!
24561 (x_new_font): Return quickly if font already set.
24562 (x_new_fontset): fontsetname parameter is Lisp_Object.
24563 Use new fs_query_fontset. Try new_fontset_from_font_name.
24564 Use fontset_name for return value.
24565
24566 * w32term.h: Declare x_get_font_repertory.
24567
24568 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
24569 place of find_charset_in_text. Use encode_coding_object in place
24570 of encode_coding.
24571 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
24572 decode_coding.
24573
24574 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
24575 of x_new_fontset.
24576 (w32_load_system_font): Initialize charset as unicode.
24577 font_info.encoding becomes encoding_type.
24578 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
24579 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
24580 (syms_of_w32fns): Set get_font_repertory_func.
24581
24582 * w32console.c: Include character.h. Use terminal_encode_buffer
24583 from term.c.
bba3e508
SM
24584 (write_glyphs): Use new version of encode_terminal_code.
24585 Use encode_coding_object in place of encode_coding.
aac0c6e3
MR
24586
24587 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
24588 encoding becomes encoding_type.
24589
24590 * term.c (terminal_encode_buffer): Make externally visible.
24591
24592 * makefile.w32-in: Add character.h dependancies.
24593 (character.o, chartab.o): New targets.
24594
245952008-02-01 Kenichi Handa <handa@m17n.org>
24596
24597 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
24598 CODING_ID_EOL_TYPE.
24599
246002008-02-01 Andreas Schwab <schwab@suse.de>
24601
24602 * coding.c (produce_chars): Revert last change.
24603
246042008-02-01 Kenichi Handa <handa@m17n.org>
24605
24606 * charset.h (charset_unicode): Extern it.
24607
24608 * charset.c (string_xstring_p): Check by (C >= 0x100).
bba3e508
SM
24609 (find_charsets_in_text): Change format of the arc CHARSETS.
24610 New arg MULTIBYTE.
aac0c6e3
MR
24611 (Ffind_charset_region, Ffind_charset_string): Adjust for the
24612 change of find_charsets_in_text.
24613 (Fsplit_char): Fix doc. Never return unknown.
24614
24615 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
24616
bba3e508
SM
24617 * coding.c (Fdefine_coding_system_alias):
24618 Update Vcoding_system_list.
aac0c6e3
MR
24619
24620 * fontset.c (load_font_get_repertory): Pay attention to the case
24621 that ENCODING of a font is specified by a char-table.
24622
24623 * xterm.c (x_get_font_repertory): Handle the case that the
24624 encoding of font is other than Unicode.
24625
246262008-02-01 Kenichi Handa <handa@m17n.org>
24627
bba3e508
SM
24628 * term.c (encode_terminal_code): Don't handle glyph-table.
24629 Check if a character is encodable by the terminal coding system.
24630 If not, produces proper number of `?'s. Update
aac0c6e3
MR
24631 terminal_encode_buffer and terminal_encode_buf_size if necessary.
24632 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
24633
246342008-02-01 Kenichi Handa <handa@m17n.org>
24635
bba3e508
SM
24636 * term.c (terminal_encode_buffer, terminal_encode_buf_size):
24637 New variables.
aac0c6e3
MR
24638 (encode_terminal_code): Change argument. Encode multiple
24639 characters at once. Store the result of encoding in
24640 terminal_encode_buffer.
24641 (write_glyphs, insert_glyphs): Adjust for the change of
24642 encode_terminal_code.
24643 (term_init): Initialize terminal_encode_buffer and
24644 terminal_encode_buf_size.
24645
24646 * coding.c (consume_chars): If coding->src_object is nil, don't
24647 check annotation.
24648
246492008-02-01 Kenichi Handa <handa@m17n.org>
24650
24651 * character.c (char_string): Use ASCII_CHAR_P instead of
24652 SINGLE_BYTE_CHAR_P.
24653
246542008-02-01 Kenichi Handa <handa@m17n.org>
24655
24656 * xdisp.c (handle_auto_composed_prop): Check if the last
24657 characters of auto-composed region is newly composed with the
24658 following characters.
24659 (handle_composition_prop): Fix checking of point being inside
24660 composition.
24661
246622008-02-01 Kenichi Handa <handa@m17n.org>
24663
24664 * fns.c (concat): Don't change multibyteness of the result by
24665 concatenating an 8-bit character.
24666
24667 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
24668 multibyteness of the result when newelt is an 8-bit character.
24669
246702008-02-01 Dave Love <fx@gnu.org>
24671
24672 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
24673 EMACS_INT.
24674
24675 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
24676
24677 * xfaces.c (face_numeric_value): Declare dim size_t.
24678 (Finternal_lisp_face_equal_p): Remove unused f.
24679
24680 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
24681 (MATRIX_ROW): Remove unused vars.
24682 (draw_glyphs, x_insert_glyphs, fast_find_position)
24683 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
24684 byte/char counts.
24685
24686 * regex.c (regex_compile): Remove unused var.
24687
24688 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
24689
24690 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
24691 (Faccessible_keymaps, where_is_internal): Remove unused vars.
24692
24693 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
24694
24695 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
24696
24697 * fileio.c (Fwrite_region): Remove unused var.
24698
24699 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
24700 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
24701
24702 * composite.c (Fremove_list_of_text_properties): Declare.
24703
24704 * coding.c (inhibit_pre_post_conversion): Remove (unused).
24705 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
24706 (coding_inherit_eol_type): Remove unused attrs.
24707 (detect_coding): Cast arg of detect_eol.
24708
24709 * charset.c (syms_of_charset): Remove unused var p.
24710 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
24711 byte/char counts.
24712
24713 * casetab.c (set_case_table): Remove unused var.
24714
bba3e508
SM
24715 * window.c (Fdisplay_buffer, Fframe_selected_window):
24716 Remove unused vars.
aac0c6e3
MR
24717
247182008-02-01 Dave Love <fx@gnu.org>
24719
24720 * xterm.c (x_bitmap_mask): Declare.
24721
247222008-02-01 Dave Love <fx@gnu.org>
24723
24724 * xterm.c (x_term_init): Fix type error.
24725
24726 * lisp.h: Add Funibyte_char_to_multibyte.
24727
24728 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
24729 (Fset_coding_system_priority): Doc fix.
24730
24731 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
24732
24733 * indent.c (check_composition): Make start and end EMACS_INT.
24734
24735 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
24736
24737 * xdisp.c (handle_composition_prop, check_point_in_composition):
24738 Make buffer positions EMACS_INT.
24739
24740 * composite.c (find_composition, run_composition_function)
24741 (update_compositions, Ffind_composition_internal): Make buffer
24742 positions EMACS_INT.
24743
bba3e508
SM
24744 * composite.h (find_composition, update_compositions):
24745 Make position args EMACS_INT.
aac0c6e3
MR
24746
24747 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
24748
24749 * intervals.c (get_property_and_range):
24750 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
24751
24752 * unexalpha.c: Don't include varargs.h.
24753
247542008-02-01 Dave Love <fx@gnu.org>
24755
24756 * coding.h (ENCODE_UTF_8): New.
24757
24758 * Makefile.in (gtkutil.o): Depend on coding.h.
24759
24760 * coding.c (Fset_coding_system_priority): Doc fix.
24761
247622008-02-01 Kenichi Handa <handa@m17n.org>
24763
24764 * fileio.c (Finsert_file_contents): Call setup_coding_system in
24765 the case of auto saving.
24766
247672008-02-01 Andreas Schwab <schwab@suse.de>
24768
bba3e508
SM
24769 * chartab.c (map_char_table, map_char_table_for_charset):
24770 Protect `range' from GC.
aac0c6e3
MR
24771
247722008-02-01 Kenichi Handa <handa@m17n.org>
24773
24774 * coding.c (decode_coding_sjis): Check bytes more rigidly.
24775
247762008-02-01 Kenichi Handa <handa@m17n.org>
24777
24778 * fileio.c (choose_write_coding_system): Return a decided coding system.
24779 (Fwrite_region): Set Vlast_coding_system_used to the return value
24780 of choose_write_coding_system.
24781
247822008-02-01 Kenichi Handa <handa@m17n.org>
24783
24784 * charset.c (Fset_charset_priority): Pay attention to duplicated
24785 arguments.
24786
24787 * coding.c (QCcategory): New variable.
24788 (syms_of_coding): Defsym it. Set all elements of
24789 Vcoding_category_table and their symbol values.
24790 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
24791 coding-category-XXX, and coding-category-list.
24792 (Fdefine_coding_system_internal): Add category in the plist.
24793
247942008-02-01 Kenichi Handa <handa@m17n.org>
24795
24796 * callproc.c (Fcall_process): Handle carryover correctly.
24797
24798 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
24799 (raw_text_coding_system): Check NILP (coding_system).
24800 (coding_inherit_eol_type): Check NILP (coding_system) and
24801 NILP (parent).
24802 (consume_chars): Fix for the case of raw-text.
24803
24804 * process.c (read_process_output): Handle carryover correctly.
24805
248062008-02-01 Dave Love <fx@gnu.org>
24807
24808 * regex.c (re_search_2): Fix last change.
24809
248102008-02-01 Kenichi Handa <handa@m17n.org>
24811
24812 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
24813 target_multibyte. Even in a unibyte case, return a converted
24814 multibyte char.
24815 (GET_CHAR_AFTER): New macro.
24816 (PATFETCH): Translate via multibyte char.
24817 (HANDLE_UNIBYTE_RANGE): Delete this macro.
24818 (SETUP_MULTIBYTE_RANGE): New macro.
24819 (regex_compile): Setup compiled code so that its multibyteness
24820 matches that of a target. Fix the handling of "[X-YZ]" using
24821 SETUP_MULTIBYTE_RANGE.
24822 (analyse_first) <charset>: For filling fastmap for all multibyte
24823 characters, don't check by BASE_LEADING_CODE_P.
24824 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
24825 the same as RE_MULTIBYTE_P (bufp) now.
24826 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
24827 (TARGET_CHAR_AND_LENGTH): Delete this macro.
24828 (TRANSLATE_VIA_MULTIBYTE): New macro.
24829 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
24830 It is the same as RE_MULTIBYTE_P (bufp) now.
24831 <exactn>: Translate via multibyte.
bba3e508
SM
24832 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH.
24833 Don't translate it.
aac0c6e3
MR
24834 <charset, charset_not>: Fetch a character by
24835 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
24836 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
24837 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
24838 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
24839 by GET_CHAR_AFTER.
24840 (bcmp_translate): Likewise.
24841
24842 * search.c (compile_pattern): Check the member target_multibyte,
24843 not the member multibyte of buf.
24844
24845 * lread.c (read1): While reading a string, set force_singlebyte
24846 and force_multibyte correctly.
24847
24848 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
24849 up of unibyte_to_multibyte_table.
24850
248512008-02-01 Kenichi Handa <handa@m17n.org>
24852
24853 * coding.c (setup_coding_system): If coding has
24854 post-read-conversion or pre-write-conversion, set
24855 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
24856 respectively.
24857 (decode_coding_gap): Run post-read-conversion if any.
24858
24859 * fileio.c (Finsert_file_contents): Even if we read into a
24860 unibyte buffer, check if we must decode the result or not.
24861
248622008-02-01 Kenichi Handa <handa@m17n.org>
24863
24864 * coding.c (make_conversion_work_buffer): Change the work buffer
24865 name to the same one as that of Emacs 21.
24866
248672008-02-01 Kenichi Handa <handa@m17n.org>
24868
24869 * coding.h (make_conversion_work_buffer): Adjust prototype.
24870 (code_conversion_restore): Don't extern it.
24871
24872 * coding.c (detected_mask): Delete unused variable.
24873 (decode_coding_iso_2022): Pay attention to the byte sequence of
24874 CTEXT extended segment, and retain those bytes as is.
24875 (decode_coding_ccl): Delete unused variable `valids'.
24876 (setup_coding_system): Delete unused variable `category'.
24877 (consume_chars): Delete unused variable `category'. Make it work
24878 for non-multibyte case.
24879 (make_conversion_work_buffer): Change argument.
24880 (saved_coding): Delete unused variable.
24881 (code_conversion_restore): Don't check saved_coding->destination.
24882 (code_conversion_save): New function.
24883 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
24884 instead of record_unwind_protect.
24885 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
24886 (detect_coding_system): Delete unused variable `mask'.
24887 (Fdefine_coding_system_internal): Delete unused variable id.
24888
24889 * fileio.c (kill_workbuf_unwind): New function.
24890 (Finsert_file_contents): On replacing, call
24891 make_conversion_work_buffer with correct args, and call
24892 record_unwind_protect with the first arg kill_workbuf_unwind.
24893
24894 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
24895
248962008-02-01 Kenichi Handa <handa@m17n.org>
24897
24898 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
24899 (fontset_add): Fix for the case that TO is less than TO1.
24900 (Ffontset_info): Don't use fallback fontset on checking the
24901 default fontset.
24902 (dump_fontset): New function for debugging.
24903
24904 * coding.c (Fdefine_coding_system_internal): Fix for the case that
24905 coding_type is Qcharset.
24906
249072008-02-01 Kenichi Handa <handa@m17n.org>
24908
24909 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
24910 (map_char_table): Don't inherit the value from the parent on
24911 initializing VAL. Adjust for the above change.
24912
249132008-02-01 Kenichi Handa <handa@m17n.org>
24914
24915 * coding.c (Qsignature, Qendian): Delete these variables.
24916 (syms_of_coding): Don't initialize them.
24917 (CATEGORY_MASK_UTF_16_AUTO): New macro.
24918 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
24919 detect_info->found.
24920 (decode_coding_utf_16): Don't detect BOM here.
24921 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
24922 is NOT utf_16_without_bom.
24923 (setup_coding_system): For a coding system of type utf-16, check
24924 if the attribute :endian is Qbig or not (not nil or not), and set
24925 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
24926 (detect_coding): If coding type is utf-16 and BOM detection is
24927 required, detect it.
24928 (Fdefine_coding_system_internal): For a coding system of type
24929 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
24930
249312008-02-01 Kenichi Handa <handa@m17n.org>
24932
24933 * coding.c (coding_set_source): Fix for the case that the current
24934 buffer is different from coding->src_object.
24935 (decode_coding_object): Don't use the conversion work buffer if
24936 DST_OBJECT is a buffer.
24937
249382008-02-01 Dave Love <fx@gnu.org>
24939
24940 * lread.c (read_emacs_mule_char) [len==2]: Index
24941 emacs_mule_charset correctly.
24942
249432008-02-01 Dave Love <fx@gnu.org>
24944
24945 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
24946 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
24947 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
24948 treated specially.)
24949 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
24950 (detected_mask): Remove Big5 bits.
24951
249522008-02-01 Kenichi Handa <handa@m17n.org>
24953
24954 The following changes are to make the font rescaling facility
24955 compatible with Emacs 21.
24956
24957 * xfaces.c (Vface_font_rescale_alist): Rename from
24958 Vface_resizing_fonts.
24959 (struct font_name): Rename member resizing_ratio to rescale_ratio.
24960 (font_rescale_ratio): Rename from font_resizing_ratio.
24961 (split_font_name): Set font->rescale_ratio.
24962 (better_font_p): Pay attention to font->rescale_ratio.
24963 (build_scalable_font_name): Likewise. Change RESX, and RESY
24964 fields.
24965 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
24966
249672008-02-01 Kenichi Handa <handa@m17n.org>
24968
24969 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
24970 (Qutf_16_le): Remove these variables.
24971 (syms_of_coding): Don't DEFSYM them.
24972 (decode_coding_utf_16): Fix handling of BOM.
24973 (encode_coding_utf_16): Fix handling of BOM.
24974
249752008-02-01 Kenichi Handa <handa@m17n.org>
24976
24977 * fileio.c (Finsert_file_contents): On replacing, before decoding
24978 the file into the work buffer, set point of the work buffer to the end.
24979
249802008-02-01 Dave Love <fx@gnu.org>
24981
24982 * coding.c (Fcheck_coding_systems_region): Fix type errors.
24983
249842008-02-01 Dave Love <fx@gnu.org>
24985
24986 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
24987 and fix C types.
24988
249892008-02-01 Kenichi Handa <handa@m17n.org>
24990
24991 * xdisp.c (SKIP_GLYPHS): New macro.
24992 (set_cursor_from_row): Pay attention to string display properties.
24993
24994 * category.c (copy_category_entry): Fix for the case that RANGE
24995 is an integer.
24996
24997 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
24998
24999 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
25000
250012008-02-01 Kenichi Handa <handa@m17n.org>
25002
25003 * charset.c (Fcharset_id_internal): New function.
25004 (syms_of_charset): Defsubr it.
25005
25006 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
25007 with the last arg charset_list acquired from coding.
25008 (Fdefine_coding_system_internal): For ccl-based coding system, fix
25009 the attribute coding_attr_ccl_valids.
25010
25011 * coding.h (enum define_coding_ccl_arg_index): Set the first
25012 member coding_arg_ccl_decoder to coding_arg_max.
25013
25014 * ccl.h (ccl_driver): Adjust prototype.
25015
25016 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
25017 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 25018 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
25019 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
25020 last arg Qnil.
25021
250222008-02-01 Kenichi Handa <handa@m17n.org>
25023
25024 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
25025 call encode_char.
25026
25027 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
25028
250292008-02-01 Dave Love <fx@gnu.org>
25030
25031 * composite.c (syms_of_composite): Make composition_hash_table weak.
25032
250332008-02-01 Kenichi Handa <handa@m17n.org>
25034
25035 * dispextern.h (check_face_attributes, generate_ascii_font_name)
25036 (font_name_registry): Don't extern them.
25037 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
25038
25039 * fontset.h (Qfontset): Don't extern it.
25040 (new_fontset_from_font_name): Extern it.
25041
25042 * fontset.c: Give 8 extra slots to fontset objects.
25043 (Qfontset_info): New variable.
25044 (syms_of_fontset): Defsym it.
25045 (FONTSET_FALLBACK): New macro.
25046 (fontset_face): Try also the default fontset.
25047 (make_fontset): Realize a fallback fontset from the default fontset.
25048 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
25049 using split_font_name_into_vector and build_font_name_from_vector.
25050 (Fset_fontset_font): Access the elements of font_spec by enum
25051 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
25052 name by using split_font_name_into_vector.
25053 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
bba3e508
SM
25054 generate a proper font name from the fontset name.
25055 Update Vfontset_alias_alist.
aac0c6e3
MR
25056 (n_auto_fontsets): New variable.
25057 (new_fontset_from_font_name): New function.
25058 (Ffont_info): Store the information about fonts generated from the
25059 default fontset in the first extra slot of the returned char-table.
25060
25061 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
25062 (font_name_registry): Delete function.
25063 (split_font_name_into_vector): New function.
25064 (build_font_name_from_vector): New function.
25065 (font_list): The argument REGISTRY is now a list of registry names.
25066 (choose_face_font): If we are choosing an ASCII font, and ATTRS
25067 specifies an explicit font name, return the name as is. Make a
25068 list of registy names.
25069
25070 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
25071 of x_new_fontset.
25072 (Fx_create_frame): Don't call x_new_fontset here. Just use
25073 x_list_fonts to check the existence of fonts.
25074
25075 * xterm.h (x_new_fontset): Adjust prototype.
25076
25077 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
25078 string. Use new_fontset_from_font_name to create a fontset from a
25079 font name.
25080
250812008-02-01 Kenichi Handa <handa@m17n.org>
25082
25083 * syntax.c (Vfind_word_boundary_function_table): New name for
25084 Vnext_word_boundary_function_table.
25085 (find-word-boundary-function-table): New name for
25086 next-word-boundary-function-table.
25087
250882008-02-01 Dave Love <fx@gnu.org>
25089
25090 * Makefile.in: Fix some dependencies.
25091
25092 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
25093 set it to nil before returning.
25094
25095 * composite.c (update_compositions): Fix type error.
25096
25097 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
25098
250992008-02-01 Kenichi Handa <handa@m17n.org>
25100
25101 * xterm.c (x_new_font): Optimize for the case that the font is
25102 already set for the frame.
25103
251042008-02-01 Kenichi Handa <handa@m17n.org>
25105
25106 * chartab.c (char_table_ascii): Check if the char table contents
25107 is sub-char-table or not.
25108 (char_table_set, char_table_set_range): Fix argument to
25109 char_table_ascii.
25110
25111 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
25112 (detect_coding_utf_8, detect_coding_utf_16)
25113 (detect_coding_emacs_mule, detect_coding_iso_2022)
25114 (detect_coding_sjis, detect_coding_big5)
25115 (detect_coding_ccl, detect_coding_charset): Change argument MASK
25116 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
25117 sequence is valid in this coding system. Change callers.
25118 (MAX_ANNOTATION_LENGTH): New macro.
25119 (ADD_ANNOTATION_DATA): New macro.
bba3e508
SM
25120 (ADD_COMPOSITION_DATA): Change argument. Change callers.
25121 Call ADD_ANNOTATION_DATA. Change the format of annotation data.
aac0c6e3
MR
25122 (ADD_CHARSET_DATA): New macro.
25123 (emacs_mule_char): New argument ID. Change callers.
25124 (decode_coding_emacs_mule, decode_coding_iso_2022)
25125 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
25126 Produce charset annotation data in coding->charbuf.
25127 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
25128 to charset annotation data in coding->charbuf.
25129 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
25130 coding->common_flags if the coding system is iso-2022 based and
25131 uses designation.
25132 (produce_composition): Adjust for the new annotation data format.
25133 (produce_charset): New function.
25134 (produce_annotation): Handle charset annotation.
bba3e508
SM
25135 (handle_composition_annotation, handle_charset_annotation):
25136 New functions.
aac0c6e3
MR
25137 (consume_chars): Handle charset annotation. Utilize the above two
25138 functions.
25139 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
25140 buffer, get the deleted text as a string and set
25141 coding->src_object to that string.
25142 (detect_coding, detect_coding_system): Use the new struct
25143 coding_detection_info.
25144
25145 * coding.h (struct coding_detection_info): New structure.
25146 (struct coding_system): Adjust prototype of the member `detector'.
25147 (CODING_ANNOTATE_CHARSET_MASK): New macro.
25148
251492008-02-01 Kenichi Handa <handa@m17n.org>
25150
25151 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
25152
251532008-02-01 Dave Love <fx@gnu.org>
25154
25155 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
25156 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
25157 to new local and nullify apropos_accumulate before returning.
25158 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
25159
251602008-02-01 Kenichi Handa <handa@m17n.org>
25161
25162 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
25163 correctly.
e3eea1fc 25164
aac0c6e3
MR
251652008-02-01 Dave Love <fx@gnu.org>
25166
25167 * fns.c (Flanginfo): Call synchronize_system_time_locale.
25168
251692008-02-01 Kenichi Handa <handa@m17n.org>
25170
25171 The following changes are to make character composition happen
25172 automatically on displaying.
25173
25174 * Makefile.in (lisp, shortlisp): Add composite.elc.
25175
25176 * composite.h (Qauto_composed, Vauto_composition_function)
25177 (Qauto_composition_function): Extern them.
25178
25179 * composite.c (Vcomposition_function_table)
25180 (Qcomposition_function_table): Delete variables.
25181 (Qauto_composed, Vauto_composition_function)
25182 (Qauto_composition_function): New variables.
25183 (run_composition_function): Don't call
25184 compose-chars-after-function.
25185 (update_compositions): Clear `auto-composed' text property.
25186 (compose_chars_in_text): Delete this function.
25187 (syms_of_composite): Staticpro Qauto_composed and
25188 Qauto_composition_function. Declare Vauto_composition_function as
25189 a Lisp variable.
25190
25191 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
25192
25193 * xdisp.c (it_props): Add an entry for Qauto_composed.
25194 (handle_auto_composed_prop): New function.
25195
25196 * xselect.c (selection_data_to_lisp_data): Don't call
25197 compose_chars_in_text.
25198
251992008-02-01 Dave Love <fx@gnu.org>
25200
25201 * keyboard.c (read_char): Modify checking around use of
25202 Vkeyboard_translate_table.
25203
25204 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
25205 and fix C types.
25206
252072008-02-01 Kenichi Handa <handa@m17n.org>
25208
25209 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
25210 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
25211 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
25212 the case that the last byte is '\r' correctly.
25213 (decode_coding): Flush out the unprocessed data correctly.
25214 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
25215
252162008-02-01 Dave Love <fx@gnu.org>
25217
25218 * xterm.c (XTread_socket): Fix changes for defined keysyms.
25219 Add XK_ISO... case.
25220 (xaw_scroll_callback): Revert last change.
25221
252222008-02-01 Kenichi Handa <handa@m17n.org>
25223
25224 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
25225
252262008-02-01 Kenichi Handa <handa@m17n.org>
25227
25228 * xfaces.c (Vface_resizing_fonts): New variable.
25229 (struct font_name): New member `resizing_ratio'.
25230 (font_resizing_ratio): New function.
25231 (split_font_name): Set font->resizing_ratio.
25232 (better_font_p): Pay attention to font->resizing_ratio.
25233 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
25234 RESX, and RESY fields.
25235 (try_alternative_families): Try scalable fonts if
25236 Vscalable_fonts_allowed is not Qt.
25237 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
25238
252392008-02-01 Dave Love <fx@gnu.org>
25240
25241 * xterm.c (xaw_scroll_callback): Cast correctly.
25242
252432008-02-01 Dave Love <fx@gnu.org>
25244
25245 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
25246 (lispy_kana_keys): Comment out.
25247 (make_lispy_event) [XK_kana_A]: Comment out.
25248
25249 * xterm.c (xaw_scroll_callback): Cast call_data.
25250 (XTread_socket): Deal with ASCII keysyms.
25251 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
25252
252532008-02-01 Dave Love <fx@gnu.org>
25254
25255 * xterm.c (Vx_keysym_table): New.
25256 (syms_of_xterm): Initialize it.
25257 (XTread_socket): Use it.
25258 From head: Eliminate incorrect optimization that tried to avoid
25259 decoding the output of X*LookupString.
25260 (x_get_font_repertory): Delete charset declaration.
25261
252622008-02-01 Kenichi Handa <handa@m17n.org>
25263
25264 * coding.c (detect_coding_charset): If only ASCII bytes are found,
25265 return 0.
bba3e508
SM
25266 (Fdefine_coding_system_internal):
25267 Setup CODING_ATTR_ASCII_COMPAT (attrs) correctly.
aac0c6e3
MR
25268
252692008-02-01 Dave Love <fx@gnu.org>
25270
25271 * coding.c (Fcheck_coding_system): Doc fix.
25272
25273 * editfns.c (Finsert_byte): Return a proper value.
25274
252752008-02-01 Kenichi Handa <handa@m17n.org>
25276
bba3e508
SM
25277 * coding.c (decode_coding): Fix args to translate_chars.
25278 Pay attention to Vstandard_translation_table_for_decode.
aac0c6e3
MR
25279 (encode_coding): Fix args to translate_chars. Pay attention to
25280 Vstandard_translation_table_for_encode.
25281
25282 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
25283 SINGLE_BYTE_CHAR_P.
25284
25285 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
25286 not by SINGLE_BYTE_CHAR_P.
25287
25288 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
25289 SINGLE_BYTE_CHAR_P.
25290
25291 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
25292 SINGLE_BYTE_CHAR_P.
25293
25294 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
25295 by SINGLE_BYTE_CHAR_P.
25296
25297 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
25298 SINGLE_BYTE_CHAR_P.
25299
253002008-02-01 Dave Love <fx@gnu.org>
25301
25302 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
25303
253042008-02-01 Dave Love <fx@gnu.org>
25305
25306 * fns.c (Flanginfo): Fix typo.
25307
25308 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
25309
253102008-02-01 Kenichi Handa <handa@m17n.org>
25311
25312 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
25313 (detect_coding_emacs_mule, detect_coding_iso_2022)
25314 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
25315 incomplete byte sequence. Don't update *mask when correctly detected.
25316 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
25317 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
25318 (detect_coding, detect_coding_system): Adjust for the changes above.
25319
253202008-02-01 Kenichi Handa <handa@m17n.org>
25321
25322 * character.c (char_string): Rename from
25323 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
25324 (string_char): Rename from string_char.
25325
25326 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
25327 if C is greater than MAX_3_BYTE_CHAR.
bba3e508
SM
25328 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE):
25329 Call string_char instead of string_char_with_unification.
aac0c6e3
MR
25330
253312008-02-01 Dave Love <fx@gnu.org>
25332
25333 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
25334
253352008-02-01 Kenichi Handa <handa@m17n.org>
25336
25337 * keymap.c (push_key_description): Pay attention to force_multibyte.
25338
25339 * regex.c (re_search_2): Fix for the case of unibyte buffer.
25340
253412008-02-01 Dave Love <fx@gnu.org>
25342
25343 * charset.c (define_charset_internal): Rename `supprementary'.
25344
25345 * Makefile.in (lisp, shortlisp): Remove latin-N.
25346
253472008-02-01 Dave Love <fx@gnu.org>
25348
25349 * xfns.c (x_window, x_window): Use use_xim.
25350
25351 * xterm.c (use_xim): Initialize.
25352 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
25353 (x_term_init): Maybe set use_xim.
25354
25355 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
25356
253572008-02-01 Kenichi Handa <handa@m17n.org>
25358
25359 * search.c (search_buffer): Fix case-fold-search of multibyte
25360 characters.
25361 (boyer_moore): Rename the last argument to char_high_bits.
25362
253632008-02-01 Kenichi Handa <handa@m17n.org>
25364
25365 * xdisp.c (display_string): Fix for the case of zero width glyph.
25366
25367 * xfns.c (x_set_font): Change the error message of the case that
25368 x_new_fontset returns Qt.
25369
25370 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
25371 (Finternal_set_lisp_face_attribute): Use signal_error for the
25372 error of invalid fontset.
25373
25374 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
25375 fontset, return Qt.
25376
253772008-02-01 Dave Love <fx@gnu.org>
25378
25379 * unexelf.c (unexec): Make .got handling not SGI-specific.
25380
25381 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
25382
25383 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
25384
25385 * keyboard.c (read_key_sequence): Fix type error.
25386
bba3e508
SM
25387 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte):
25388 Fix type error.
aac0c6e3
MR
25389
25390 * fontset.c (fontset_add): Return Lisp_Object.
25391
253922008-02-01 Dave Love <fx@gnu.org>
25393
25394 * charset.h (charset_ordered_list_tick): Declare extern.
25395
253962008-02-01 Kenichi Handa <handa@m17n.org>
25397
25398 The following changes (and some of 2008-02-01 changes of mine) are
25399 for handling syntax, category, and case conversion for unibyte
25400 characters by converting them to multibyte on the fly. With these
25401 changes, we don't have to setup syntax and case tables for unibyte
25402 characters in each language environment.
25403
25404 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
25405 multibyte if necessary.
25406
25407 * bytecode.c (Fbyte_code): Likewise.
25408
25409 * character.h (LEADING_CODE_LATIN_1_MIN)
25410 (LEADING_CODE_LATIN_1_MAX): New macros.
25411 (unibyte_to_multibyte_table): Extern it.
25412 (unibyte_char_to_multibyte): New macro.
25413 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
25414 (CHAR_LEADING_CODE): New macro.
25415 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
25416
25417 * character.c (unibyte_to_multibyte_table): New variable.
25418 (unibyte_char_to_multibyte): Move to character.h and define as macro.
25419 (multibyte_char_to_unibyte): If C is an eight-bit character,
25420 convert it to the corresponding byte value.
25421
25422 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
25423 not 1, signals an error. Update the elements of
25424 unibyte_to_multibyte_table.
25425 (init_charset_once): Initialize unibyte_to_multibyte_table.
25426 (syms_of_charset): Define the charset `iso-8859-1'.
25427
25428 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
25429 as is without converting it to unibyte. In a unibyte buffer,
25430 convert C to multibyte before checking the syntax.
25431
25432 * lisp.h (unibyte_char_to_multibyte): Delete extern.
25433
25434 * minibuf.c (Fminibuffer_complete_word): Use the macro
25435 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
25436
25437 * regex.h (struct re_pattern_buffer): New member target_multibyte.
25438
25439 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
bba3e508
SM
25440 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte.
25441 If that is zero, convert an eight-bit char to multibyte.
aac0c6e3
MR
25442 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
25443 non-emacs case.
25444 (PATFETCH): Convert an eight-bit char to multibyte.
25445 (HANDLE_UNIBYTE_RANGE): New macro.
25446 (regex_compile): Setup the compiled pattern for multibyte chars
25447 even if the given regex string is unibyte. Use PATFETCH_RAW
25448 instead of PATFETCH in many places. To handle `charset'
25449 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
25450 only for ASCII chars.
25451 (analyse_first) <exactn>: Simplify because the compiled pattern
25452 is multibyte.
25453 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
25454 <charset>: Use CHAR_LEADING_CODE to get leading codes.
25455 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
25456 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
25457 multibyte always 1.
25458 (re_search_2): In emacs, set the locale variable multibyte to 1,
25459 otherwise to 0. New local variable target_multibyte. Check it
bba3e508
SM
25460 to decide the multibyteness of STR1 and STR2.
25461 If target_multibyte is zero, convert unibyte chars to multibyte
aac0c6e3
MR
25462 before translating and checking fastmap.
25463 (TARGET_CHAR_AND_LENGTH): New macro.
25464 (re_match_2_internal): In emacs, set the locale variable multibyte
bba3e508
SM
25465 to 1, otherwise to 0. New local variable target_multibyte.
25466 Check it to decide the multibyteness of STR1 and STR2.
25467 Use TARGET_CHAR_AND_LENGTH to fetch a character from D.
aac0c6e3
MR
25468 <charset, charset_not>: If multibyte is nonzero, check fastmap
25469 only for ASCII chars. Call bcmp_translate with
25470 target_multibyte, not with multibyte.
25471 <begline>: Declare the local variable C as `unsigned'.
25472 (bcmp_translate): Change the last arg name to target_multibyte.
25473
25474 * search.c (compile_pattern_1): Don't adjust the multibyteness of
25475 the regexp pattern and the matching target. Set cp->buf.multibyte
25476 to the multibyteness of the regexp pattern. Set
25477 cp->but.target_multibyte to the multibyteness of the matching target.
25478 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
25479 FETCH_STRING_CHAR_ADVANCE.
25480 (Freplace_match): Convert unibyte chars to multibyte.
25481
25482 * syntax.c (char_quoted, back_comment, scan_words)
25483 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
25484 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
25485 unibyte chars to multibyte.
25486 (skip_chars): Delete the arg syntaxp, and move the code for
25487 handling syntaxes to skip_syntaxes. Change callers.
25488 Fix the case that the multibyteness of STRING and the current
25489 buffer doesn't match.
25490 (skip_syntaxes): New function.
25491 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
25492 SINGLE_BYTE_CHAR_P.
25493
254942008-02-01 Kenichi Handa <handa@m17n.org>
25495
25496 * xfaces.c (QCfontset): New variable.
25497 (LFACE_FONTSET): New macro.
25498 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
25499 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
25500 (Finternal_set_lisp_face_attribute)
25501 (Finternal_get_lisp_face_attribute): Handle QCfontset.
25502 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
25503 check also LFACE_FONTSET_INDEX.
25504 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
25505 attrs[LFACE_FONT_INDEX].
25506 (syms_of_xfaces): Intern and staticpro QCfontset.
25507
25508 * dispextern.h (enum lface_attribute_index): New member
25509 LFACE_FONTSET_INDEX.
25510
25511 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
25512
255132008-02-01 Kenichi Handa <handa@m17n.org>
25514
25515 * coding.c (coding_set_destination): Fix coding->destination for
25516 the case converting a region.
25517 (encode_coding_utf_8): Encode eight-bit chars as single byte.
25518 (encode_coding_object): Fix coding->dst_pos and
25519 coding->dst_pos_byte for the case converting a region.
25520
25521 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
25522
25523 * character.h (BYTE8_STRING): New macro.
25524
25525 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
25526
255272008-02-01 Kenichi Handa <handa@m17n.org>
25528
25529 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
25530 characters by octal form.
25531
25532 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
25533
25534 * buffer.h (_fetch_multibyte_char_len): Delete extern.
25535 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
25536 _fetch_multibyte_char_len.
25537 (FETCH_CHAR_AS_MULTIBYTE): New macro.
25538
25539 * casetab.c (set_canon, set_identity, shuffle): Simplify.
25540
25541 * casefiddle.c (casify_object): Simplify. Handle the case that
25542 the case conversion change the byte length.
25543 (casify_region): Likewise.
25544
25545 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
25546
25547 * character.c (_fetch_multibyte_char_len): Delete this variable.
25548 (syms_of_character): Setup Vprintable_chars.
25549
25550 * editfns.c (Fchar_equal): Fix for the unibyte case.
25551 (Finsert_byte): New function.
25552 (syms_of_editfns): Defsubr it.
25553
25554 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
25555 of direct code 0x3ffff.
25556
25557 * search.c (Freplace_match): Fix for the unibyte case.
25558
255592008-02-01 Kenichi Handa <handa@m17n.org>
25560
25561 * lread.c (safe_to_load_p): Fix the logic.
25562
25563 * syntax.c (scan_words): Don't treat characters belonging to
25564 different scripts as constituting a word.
25565
25566 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
25567
25568 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
25569
25570 * emacs.c (main): In the case of --unibyte, instead of aborting on
25571 finding non-empty buffer, make it unibyte.
25572
255732008-02-01 Kenichi Handa <handa@m17n.org>
25574
25575 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
25576 to create a fontset.
25577
255782008-02-01 Dave Love <fx@gnu.org>
25579
25580 * character.c (Funibyte_char_to_multibyte): Doc fix.
25581
25582 * xfns.c [HAVE_STDLIB_H]: Fix last change.
25583
255842008-02-01 Kenichi Handa <handa@m17n.org>
25585
25586 * fontset.c (fontset_add): Make the type `int'.
25587 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
25588
25589 * character.c (unibyte_char_to_multibyte)
25590 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
25591 charset_unibyte, not charset_primary.
25592
25593 * charset.h (charset_unibyte): Extern it instead of charset_primary.
25594
25595 * charset.c (charset_unibyte): Rename from charset_primary.
25596 (Funibyte_charset): Rename from Fprimary_charset.
25597 (Fset_unibyte_charset): Rename from Fset_primary_charset.
25598 (syms_of_charset): Adjust for the above changes.
25599
25600 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
25601 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
25602 it->multibyte_p is zero.
25603
25604 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
25605 Delete extern.
25606
256072008-02-01 Kenichi Handa <handa@m17n.org>
25608
25609 * coding.c (Fdefine_coding_system_internal): Fix category setting
25610 for a coding system of type iso-2022.
25611
256122008-02-01 Kenichi Handa <handa@m17n.org>
25613
25614 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
25615
256162008-02-01 Kenichi Handa <handa@m17n.org>
25617
25618 * syntax.c (Vnext_word_boundary_function_table): New variable.
25619 (next-word-boundary-function-table): Declare it as a Lisp variable
25620 in syms_of_syntax.
25621 (scan_words): Call functions in Vnext_word_boundary_function_table
25622 if any.
25623
25624 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
25625
25626 * fontset.c (fs_load_font): If fontp->charset is not negative,
25627 return fontp without setting its members.
25628
256292008-02-01 Dave Love <fx@gnu.org>
25630
25631 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
25632
25633 * m/sparc.h (HAVE_ALLOCA): Delete.
25634
25635 * s/irix6-5.h: Don't include strings.h.
25636 (bcopy, bzero, bcmp): Don't undef.
25637
25638 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
25639
25640 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
25641 (TIOCSIGSEND): Don't test IRIX6.
25642 (bcopy, bzero, bcmp): Define conditionally.
25643
256442008-02-01 Kenichi Handa <handa@m17n.org>
25645
25646 * buffer.c (Qas, Qmake, Qto): New variables.
25647 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
25648 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
25649
25650 * callproc.c (Fcall_process): Don't call insert_1_both directly if
25651 we are inserting a process output into a multibyte buffer.
25652
25653 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
25654 multibyte_char_to_unibyte.
25655
25656 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
25657 by the primary charset, make it eight-bit char.
25658 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
25659
25660 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
25661 (charset_8_bit__control, charset_8_bit_graphic)
25662 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
25663 (define_charset_internal): New function.
25664 (syms_of_charset): Call define_charset_internal for pre-defined
25665 charsets.
25666
25667 * charset.h (charset_8_bit): Extern it.
25668
25669 * coding.c (make_conversion_work_buffer): Adjust for the change
25670 of Fset_buffer_multibyte.
25671 (encode_coding_raw_text): Increment p0 in the loop.
25672
25673 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
25674
bba3e508
SM
25675 * xdisp.c (setup_echo_area_for_printing, set_message_1):
25676 Adjust for the change of Fset_buffer_multibyte.
aac0c6e3
MR
25677
25678 * fns.c (Fstring_to_multibyte): New function.
25679 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
25680
256812008-02-01 Dave Love <fx@gnu.org>
25682
25683 * xfns.c (x_put_x_image): Declare args.
25684
25685 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
25686 (try_font_list): Declare an arg.
25687
25688 * xdisp.c (message2_nolog, set_message): Declare an arg.
25689
25690 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
25691
25692 * syntax.c (scan_sexps_forward): Declare an arg.
25693
25694 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
25695 Declare an arg.
25696
25697 * lisp.h (Fnew_fontset): Declare.
25698
25699 * keymap.c (push_key_description): Call CHARACTERP correctly.
25700
25701 * fontset.c (fontset_add): Declare args. Call make_number correctly.
25702 (face_for_char): Delete unused vars.
25703 (Fset_fontset_font): Doc fix. Delete unused vars.
25704
25705 * doc.c (Fsubstitute_command_keys): Delete unused vars.
25706
25707 * composite.c (update_compositions): Declare arg.
25708
25709 * cm.c (calccost, cmgoto): Declare args.
25710
25711 * charset.c: Remove `emacs' conditional. Doc fixes.
25712 (map_char_table_for_charset): Declare.
25713
25714 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
25715
25716 * ccl.c: Remove `emacs' conditional.
25717
257182008-02-01 Kenichi Handa <handa@m17n.org>
25719
25720 The following changes are to allow specifying multiple font
25721 patterns for a character range (specified by script or charset).
25722
25723 * Makefile.in (abbrev.o): Depend on syntax.h.
25724 (xfaces.o): Depend on charset.h.
25725
25726 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
25727 SINGLE_BYTE_CHAR_P.
25728
25729 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
25730
25731 * character.h (Vchar_script_table): Extern it.
25732
25733 * character.c (Vscript_alist): Delete.
25734 (Vchar_script_table, Qchar_script_table): New variable.
25735 (syms_of_character): Declare Vchar_script_table as a lisp variable
25736 and initialize it.
25737
25738 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
25739 have property char-table-extra-slots, make no extra slot.
25740
25741 * dispextern.h (struct face): Delete member `charset'.
25742 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
25743 SINGLE_BYTE_CHAR_P.
25744 (choose_face_font, lookup_non_ascii_face, font_name_registry):
25745 Add prototypes.
25746 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
25747 (generate_ascii_font_name): Rename from generate_ascii_font.
25748
25749 * fontset.h (get_font_repertory_func): New prototype.
25750 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
25751 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
25752
25753 * fontset.c (Qprepend, Qappend): New variables.
25754 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
25755 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
25756 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
25757 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
25758 (fontset_ref_and_range, fontset_add, reorder_font_vector)
25759 (load_font_get_repertory): New functions.
25760 (fontset_set): Delete.
25761 (fontset_face): New arg FACE. Return face ID, not face.
25762 Complete re-write to handle new fontset structure. Change caller.
25763 (free_face_fontset): Use ASET istead of AREF (X) = Y.
25764 (face_for_char): Don't call lookup_face.
25765 (make_fontset_for_ascii_face): New arg FACE.
25766 (fs_load_font): New arg CHARSET_ID. Don't check
25767 Vfont_encoding_alist here.
25768 (find_font_encoding): New function.
25769 (list_fontsets): Use STRINGP, not ! NILP.
25770 (accumulate_script_ranges): New function.
bba3e508
SM
25771 (Fset_fontset_font, Fnew_fontset, Ffontset_info):
25772 Completely re-written to handle new fontset structure.
aac0c6e3 25773 (Ffontset_font): Return a copy of element.
bba3e508
SM
25774 (syms_of_fontset): Define symbols Qprepend and Qappend.
25775 Fix docstring of font-encoding-alist.
aac0c6e3
MR
25776
25777 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
25778 (Fset_fotset_font): Fix arguments to 5.
25779
25780 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
25781
25782 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
25783 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
25784 (highlight_trailing_whitespace): Adjust for the change of
25785 lookup_named_face.
25786
25787 * xfaces.c: Include charset.h.
25788 (load_face_font): Delete argument C. Change caller.
25789 (generate_ascii_font_name): Rename from generate_ascii_font.
25790 (font_name_registry): New function.
25791 (cache_face): Store ascii faces before non-ascii faces in buckets.
25792 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
25793 Lookup only ascii faces.
25794 (lookup_non_ascii_face): New function.
25795 (lookup_named_face): Delete argument C. Change caller.
25796 (lookup_derived_face): Delete argument C. Change caller.
25797 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
25798 a string, just call font_list with it.
25799 (choose_face_font): Delete arguments FACE and C. New arg
25800 FONT_SPEC. Change caller.
25801 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
25802 Change caller.
25803 (realize_non_ascii_face): New function.
25804 (realize_x_face): Call load_face_font here.
25805 (realize_tty_face): Delete argument C. Change caller.
25806 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
25807 get a face ID.
25808 (dump_realized_face): Don't print charset of FACE.
25809
25810 * xfns.c (x_set_font): Always call x_new_fontset and
25811 store_frame_parameter.
25812 (Fx_create_frame): Call x_new_fontset, not x_new_font.
25813 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
25814
25815 * xterm.h (x_get_font_repertory): Extern it.
25816
25817 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
25818 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
25819 it->multibyte_p is zero.
25820 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
25821 (x_new_fontset): If FONTSETNAME doesn't match any existing
25822 fontsets, create a new one.
25823 (x_get_font_repertory): New function.
25824
258252008-02-01 Kenichi Handa <handa@m17n.org>
25826
25827 * coding.c (Ffind_coding_systems_region_internal): Detect an
25828 ASCII only string correctly.
25829
25830 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
25831 version is 0.
25832
258332008-02-01 Kenichi Handa <handa@m17n.org>
25834
25835 * lread.c: Include "coding.h".
25836 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
25837 (load_each_byte, unread_char): New variables.
25838 (readchar_backlog): Delete.
25839 (readchar): Return a character unless load_each_byte is nonzero.
25840 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
25841 cons. If unread_char is not -1, simply return it.
25842 (unreadchar): Handle the case that readcharfun is
25843 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
25844 (read_multibyte): Delete.
25845 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
25846 (read_emacs_mule_char): New functions.
25847 (Fload): Even if the file doesn't have the extension ".elc", if
25848 safe_to_load_p returns a positive version number, assume that the
25849 file contains bytecompiled code. If the version is less than 22,
25850 load the file while decoding multibyte sequences by emacs-mule.
25851 (readevalloop): Don't use readchar_backlog.
25852 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
25853 (Fread_from_string): Pay attention to the case that STREAM is a cons.
25854 (read_escape): Delete the arg BYTEREP.
25855 (read1): Set load_each_byte to 1 temporarily while handling
25856 #@NUMBER. Don't call read_multibyte.
25857 (read_vector): Call Fread with a cons. If readcharfun is
25858 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
25859 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
25860 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
25861 and Qload_force_doc_strings.
25862
258632008-02-01 Kenichi Handa <handa@m17n.org>
25864
bba3e508
SM
25865 * xdisp.c (face_before_or_after_it_pos):
25866 Call FETCH_MULTIBYTE_CHAR with byte postion, not char position.
aac0c6e3
MR
25867
258682008-02-01 Kenichi Handa <handa@m17n.org>
25869
25870 * character.h (TRAILING_CODE_P): New macro.
25871 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
25872 (string_char_with_unification): Fix prototype.
25873 (Vscript_alist): Extern it.
25874
25875 * character.c (Vscript_alist): New variable.
25876 (string_char_with_unification, str_as_unibyte)
25877 (string_escape_byte8): Add `const' to local variables.
25878 (syms_of_character): Declare script-alist as a Lisp variable.
25879
25880 * charset.h (Vcharset_ordered_list): Extern it.
25881 (charset_ordered_list_tick): Extern it.
25882 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
25883 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
25884 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
25885 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
25886 (Funify_charset): Adjust for the change of Funify_charset.
25887
25888 * charset.c (charset_ordered_list_tick): New variable.
25889 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
25890 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
6e051c0a 25891 deunify instead of unify a charset.
aac0c6e3
MR
25892 (string_xstring_p): Add `const' to local variables.
25893 (find_charsets_in_text): Add `const' to arguments and local variables.
bba3e508
SM
25894 (encode_char): Adjust for the change of Funify_charset.
25895 Fix detecting of invalid code.
aac0c6e3
MR
25896 (Fset_charset_priority): Increment charset_ordered_list_tick.
25897 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
25898 and TO_CODE.
25899
25900 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
25901 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
25902 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
25903 (decode_coding_ccl, consume_chars)
25904 (Ffind_coding_systems_region_internal)
25905 (Fcheck_coding_systems_region): Add `const' to local variables.
25906
25907 * print.c (print_object): Use octal form for printing the
25908 contents of a bool vector.
25909
259102008-02-01 Dave Love <fx@gnu.org>
25911
25912 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
25913 <version == 20>: Refuse to load.
25914
259152008-02-01 Dave Love <fx@gnu.org>
25916
25917 * fns.c: Move coding.h.
25918 (Qcodeset, Qdays, Qmonths): New.
25919 (concat): Use CHARACTERP instead of INTEGERP.
25920 (Flocale_codeset): Delete.
25921 (Flanginfo): New function.
25922 (syms_of_fns): Change accordingly.
25923
25924 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
25925
259262008-02-01 Dave Love <fx@gnu.org>
25927
bba3e508
SM
25928 * casetab.c (init_casetab_once, init_casetab_once):
25929 Fix CHAR_TABLE_SET call.
aac0c6e3
MR
25930
25931 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
25932
25933 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
25934
25935 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
25936 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
25937 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
25938
25939 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
25940
25941 * coding.c (ENCODE_DESIGNATION, decode_eol)
25942 (make_conversion_work_buffer, code_conversion_restore)
25943 (Fdefine_coding_system_internal): Convert Lisp types.
25944 (code_conversion_restore): Use EQ, not ==.
25945 (Fencode_coding_string): Fix code_convert_string call.
25946
25947 * coding.h (code_convert_region): Fix prototype.
25948
25949 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
25950
25951 * fontset.c (fontset_ref, fontset_set, fs_load_font)
25952 (Ffontset_info): Convert Lisp types.
25953
25954 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
25955
25956 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
25957
25958 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
25959
25960 * chartab.c: Include "...h", not <...h> in some cases.
25961
25962 * callproc.c (Fcall_process): Remove unused variables.
25963
259642008-02-01 Dave Love <fx@gnu.org>
25965
25966 * coding.c (Fset_coding_system_priority): Allow null arg list.
25967
259682008-02-01 Dave Love <fx@gnu.org>
25969
25970 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
25971 (Fself_insert_and_exit): Use CHARACTERP.
25972
25973 * callproc.c (Fcall_process): Remove unused vars.
25974
25975 * xterm.c (XTread_socket): Add extra dead keysyms.
25976
25977 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
25978
25979 * dispextern.h: Remove prototypes for redraw_frame,
25980 redraw_garbaged_frames.
25981
25982 * cmds.c (Fself_insert_command): Use CHARACTERP.
25983
25984 * chartab.c (make_sub_char_table): Remove unused var.
25985 (Fset_char_table_default, Fmap_char_table): Doc fix.
25986
25987 * keymap.c (access_keymap): Remove generic char code.
25988 (push_key_description): Use CHARACTERP.
25989
259902008-02-01 Dave Love <fx@gnu.org>
25991
25992 * charset.c: Doc fixes.
25993 (Funify_charset): Extra checking.
25994
259952008-02-01 Dave Love <fx@gnu.org>
25996
25997 * lread.c: Remove some unused variables.
25998 (safe_to_load_p): If safe, return the magic number version byte.
25999 (Fload): Maybe use load-with-code-conversion.
26000
260012008-02-01 Kenichi Handa <handa@m17n.org>
26002
26003 * category.c (Fmodify_category_entry): Don't modify the contents
bba3e508
SM
26004 of category_set for characters out of the range.
26005 Avoid unnecessary modification.
aac0c6e3
MR
26006
26007 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
26008 Vchar_unify_table. The default value of the table is now nil.
26009
26010 * character.c (syms_of_character): Setup Vchar_width_table for
26011 eight-bit-control and raw-byte chars.
26012
bba3e508
SM
26013 * charset.h (enum define_charset_arg_index):
26014 Delete charset_arg_parents and add charset_arg_subset and
aac0c6e3
MR
26015 charset_arg_superset.
26016 (enum charset_attr_index): Delete charset_parents and add
26017 charset_subset and charset_superset.
26018 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
26019 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
26020 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
26021 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
26022 (CHARSET_SUPERSET): New macros.
26023 (charset_work): Extern it.
26024 (ENCODE_CHAR): Use charset_work.
26025 (CHAR_CHARSET_P): Adjust for the change of encoder format.
26026 (map_charset_chars): Extern it.
26027
26028 * charset.c (load_charset_map): Set the default value of encoder
26029 and deunifier char-tables to nil.
bba3e508
SM
26030 (map_charset_chars): Change argument. Change callers.
26031 Use map_char_table_for_charset instead of map_char_table.
aac0c6e3
MR
26032 (Fmap_charset_chars): New optional args from_code and to_code.
26033 (Fdefine_charset_internal): Adjust for the change of
26034 `define-charset' (:parents -> :subset or :superset).
26035 (charset_work): New variable.
26036 (encode_char, syms_of_charset): Adjust for the change of
26037 Fdefine_charset_internal.
26038 (Ffind_charset_string): Setup the vector `charsets' correctly.
26039
bba3e508
SM
26040 * chartab.c (sub_char_table_ref_and_range): New arg default.
26041 Fix the previous change.
aac0c6e3
MR
26042 (char_table_ref_and_range): Adjust for the above change.
26043 (map_sub_char_table_for_charset): New function.
26044 (map_char_table_for_charset): New function.
26045
26046 * keymap.c (describe_vector): Handle a char-table directly here.
26047 (describe_char_table): Delete.
26048
26049 * lisp.h (map_charset_chars): Delete.
26050
260512008-02-01 Dave Love <fx@gnu.org>
26052
26053 * fns.c (count_combining): Comment out (unused).
26054 (Flocale_codeset): New.
26055 (syms_of_fns): Defsubr it.
26056
26057 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
26058 (size_t): Remove.
26059
260602008-02-01 Dave Love <fx@gnu.org>
26061
26062 * Makefile.in (chartab.o): Depend on charset.h.
26063
260642008-02-01 Kenichi Handa <handa@m17n.org>
26065
26066 * character.c (syms_of_character): Set the default value of
26067 Vprintable_chars to Qnil.
26068
260692008-02-01 Dave Love <fx@gnu.org>
26070
26071 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
26072
260732008-02-01 Kenichi Handa <handa@m17n.org>
26074
26075 * charset.c (load_charset_map): Handle the case that from < to
26076 correctly.
26077
26078 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
26079 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
26080 Pay attention to raw-8-bit chars.
26081
260822008-02-01 Kenichi Handa <handa@m17n.org>
26083
26084 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
26085 It is not bytecompiled now.
26086
26087 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
26088 (charset_jisx0208): New variables.
26089 (Fdefine_charset_internal): Setup them if appropriate.
26090 (init_charset_once): Initialize them to -1.
26091
26092 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
26093 (charset_jisx0208): Extern them.
26094
26095 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
26096 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
26097 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
26098 (setup_iso_safe_charsets): Fix arguments to Fassq.
26099 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
26100 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
26101 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
26102 (encode_coding_iso_2022): Change the 1st arg to
26103 ENCODE_ISO_CHARACTER to a variable.
26104
261052008-02-01 Kenichi Handa <handa@m17n.org>
26106
26107 * charset.h (enum define_charset_arg_index): New enums
26108 charset_arg_min_code and charset_arg_max_code.
26109 (struct charset): New member char_index_offset.
26110
26111 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
26112 Take charset->char_index_offset into account.
26113 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
26114 args[charset_arg_max_code]. Setup charset.char_index_offset.
26115 (syms_of_charset): Fix args to Fdefine_charset_internal.
26116
261172008-02-01 Dave Love <fx@gnu.org>
26118
26119 * coding.c (decode_coding_utf_8): Reject overlong sequences.
26120
261212008-02-01 Dave Love <fx@gnu.org>
26122
26123 * coding.c: Doc fixes.
26124 (Fcoding_system_aliases): Fix return value.
26125 (Qmac): Remove (duplicated) definition.
26126
261272008-02-01 Dave Love <fx@gnu.org>
26128
362654a6
JB
26129 * charset.c (Fcharset_priority_list, Fset_charset_priority):
26130 New functions.
aac0c6e3
MR
26131
26132 * character.c (Fstring): Doc fix.
26133
26134 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
26135
362654a6 26136 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
26137 (font-encoding-alist): Doc fix.
26138
261392008-02-01 Dave Love <fx@gnu.org>
26140
26141 * term.c (costs_set): Declare static, non-initialized for pcc.
26142 (encode_terminal_code): Remove unused var.
26143
26144 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
26145 for K&R.
26146
26147 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
26148
26149 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
26150 (suffixes): Move out of make_subsidiaries for K&R.
26151
26152 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
26153
26154 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
26155
261562008-02-01 Dave Love <fx@gnu.org>
26157
26158 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
26159
26160 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
26161
261622008-02-01 Yong Lu <lyongu@asia-infonet.com>
26163
26164 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
26165
26166 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
26167
261682008-02-01 Kenichi Handa <handa@m17n.org>
26169
26170 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
26171 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
26172
261732008-02-01 Kenichi Handa <handa@m17n.org>
26174
26175 * coding.c (decode_coding_charset): Adjust for the change of
26176 Fdefine_coding_system_internal.
26177 (Fdefine_coding_system_internal): For a coding system of
26178 `charset' type, store a list of charset IDs in
26179 `charset_attr_charset_valids' element of coding attributes.
26180
261812008-02-01 Kenichi Handa <handa@m17n.org>
26182
26183 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
bba3e508
SM
26184 (emacs_mule_char): New arg src. Delete arg `composition'.
26185 Change caller. Handle 2-byte and 3-byte charsets correctly.
aac0c6e3
MR
26186 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
26187 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
26188 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
ef1b0ba7
SM
26189 (DECODE_EMACS_MULE_21_COMPOSITION):
26190 Call DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
aac0c6e3
MR
26191 sequence.
26192 (decode_coding_emacs_mule): Handle composition correctly. Rewind
26193 `src' and `consumed_chars' correctly before calling emacs_mule_char.
26194 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
26195 and alt&rule composition.
26196 (decode_coding_iso_2022): Handle composition correctly.
26197 (init_coding_once): Setup emacs_mule_bytes for private charsets.
26198
26199 * charset.c (Fdefine_charset_internal): Fix bug for the case of
26200 re-defining a charset. If the charset has :emacs-mule-id, setup
26201 emacs_mule_bytes.
26202 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
26203
262042008-02-01 Kenichi Handa <handa@m17n.org>
26205
26206 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
26207 (encode_coding_big5, encode_coding_charset): If coding requires safe
26208 encoding, produce a character specified by
26209 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
26210
262112008-02-01 Dave Love <fx@gnu.org>
26212
26213 * xterm.c (XSetIMValues): Declare.
26214
26215 * process.c: Conditionally include sys/wait.h, pty.h.
26216
26217 * print.c (print_object): Fix print format for 64-bit systems.
26218
26219 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
26220
26221 * buffer.c (emacs_strerror): Declare.
26222
26223 * fontset.c (Fclear_face_cache): Declare.
26224 (accumulate_font_info): Comment-out (unused).
26225 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
26226 variables.
26227
26228 * character.h (string_escape_byte8): Declare.
26229
bba3e508
SM
26230 * charset.c (load_charset_map, load_charset_map_from_file):
26231 Remove unused vars.
aac0c6e3
MR
26232 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
26233 (Fmap_charset_chars): Doc fix.
26234
26235 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
26236 (Fset_coding_system_priority, Fset_coding_system_priority)
26237 (Fdefine_coding_system_internal): Doc fix.
26238
262392008-02-01 Dave Love <fx@gnu.org>
26240
26241 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
26242
262432008-02-01 Kenichi Handa <handa@m17n.org>
26244
26245 * character.c (string_escape_byte8): Make multibyte string with
26246 correct size.
26247
26248 * charset.c (Fmake_char): Delete unnecessary code.
26249
262502008-02-01 Kenichi Handa <handa@m17n.org>
26251
26252 * xfns.c (x_encode_text): Allocate coding.destination here, and
26253 call encode_coding_object with dst_object Qnil.
26254
26255 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
26256 multibyte form correctly.
26257
26258 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
26259 against Vfont_encoding_alist.
26260
26261 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
26262 handling of charset list.
26263 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
26264 (decode_coding_object): Move point to coding->dst_pos before
26265 calling post-read-conversion function.
26266 (encode_coding_object): Give correct arguments to
26267 pre-write-conversion. Ignore the return value of
26268 pre-write-conversion function. Pay attention to the case that
26269 pre-write-conversion changes the current buffer. If dst_object is
26270 Qt, even if coding->src_bytes is zero, allocate at least one byte
26271 to coding->destination.
26272
26273 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
26274
26275 * charset.c (Fmake_char): Make it more backward compatible.
26276 (Fmap_charset_chars): Fix docstring.
26277
262782008-02-01 Dave Love <fx@gnu.org>
26279
26280 * coding.c: Doc fixes.
26281 (Fdefine_coding_system_alias): Use names, not symbols, in
26282 coding-system-alist.
26283
262842008-02-01 Kenichi Handa <handa@m17n.org>
26285
26286 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
26287 of calling free_realized_face.
26288
262892008-02-01 Yong Lu <lyongu@asia-infonet.com>
26290
26291 * charset.c (read_hex): Don't treat SPC as a comment starter.
26292 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
26293 (Fdecode_char): Fix typo.
26294
262952008-02-01 Kenichi Handa <handa@m17n.org>
26296
26297 * charset.h (struct charset): New member `code_space_mask'.
26298
26299 * coding.c (coding_set_source): Delete the local variable beg_byte.
26300 (encode_coding_charset, Fdefine_coding_system_internal):
26301 Delete the local variable charset.
bba3e508
SM
26302 (Fdefine_coding_system_internal):
26303 Setup attrs[coding_attr_charset_valids] correctly.
aac0c6e3
MR
26304
26305 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
26306 member to check if CODE is valid or not.
26307 (Fdefine_charset_internal): Initialize `code_space_mask' member.
26308 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
26309 is within the range of charset->min_code and carset->max_code.
26310
263112008-02-01 Dave Love <fx@gnu.org>
26312
26313 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
26314
26315 * dispextern.h (generate_ascii_font): Fix return type.
26316
26317 * xfaces.c (generate_ascii_font): Fix arg declaration.
26318
26319 * coding.c (coding_inherit_eol_type)
26320 (Fset_terminal_coding_system_internal)
26321 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
26322
263232008-02-01 Kenichi Handa <handa@m17n.org>
26324
bba3e508
SM
26325 * coding.c (decode_coding_charset, encode_coding_charset):
26326 Handle multiple charsets correctly.
aac0c6e3
MR
26327
263282008-02-01 Kenichi Handa <handa@m17n.org>
26329
26330 * search.c (boyer_moore): Fix handling of multibyte character
26331 translation.
26332
26333 * xdisp.c (display_mode_element): When the variable `elt' is
26334 changed, update `this' and `lisp_string'.
26335
263362008-02-01 Kenichi Handa <handa@m17n.org>
26337
26338 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
26339
26340 * callproc.c (Fcall_process): Be sure to give the current buffer
26341 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
26342
26343 * charset.c (struct charset_map_entries): New struct.
26344 (load_charset_map): Rename from parse_charset_map. New args
26345 entries and n_entries. Change caller.
26346 (load_charset_map_from_file): Rename from load_charset_map.
26347 Change caller. New arg control_flag. Call load_charset_map at
26348 the tail.
26349 (load_charset_map_from_vector): New function.
26350 (Fdefine_charset_internal): Setup charset.compact_codes_p.
26351 (encode_char): If the charset is compact, change a character index
26352 to a code point.
26353
26354 * coding.c (coding_alloc_by_making_gap): Check the case that the
26355 source and destination are the same correctly.
26356 (decode_coding_raw_text): Set coding->consumed_char and
26357 coding->consumed to 0.
26358 (produce_chars): If coding->chars_at_source is nonzero, update
26359 coding->consumed_char and coding->consumed before calling
26360 alloc_destination.
26361 (Fdefine_coding_system_alias): Register ALIAS in
26362 Vcoding_system_alist.
26363 (syms_of_coding): Define `no-conversion' coding system at the tail.
26364
26365 * fileio.c (Finsert_file_contents): Set coding_system instead of
26366 val. If the current buffer is multibyte, always call
26367 decode_coding_gap.
26368
26369 * xfaces.c (try_font_list): Give higher priority to fontset's
26370 family than face's family.
26371
263722008-02-01 Kenichi Handa <handa@m17n.org>
26373
26374 * callproc.c (Fcall_process): Be sure to give the current buffer
26375 to decode_coding_c_string.
26376
26377 * xfaces.c (try_font_list): Give a family specified in a fontset
26378 higher priority than a family specified in a face.
26379
263802008-02-01 Kenichi Handa <handa@m17n.org>
26381
26382 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
26383 Fix arguments to insert_from_buffer.
26384
26385 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
26386
263872008-02-01 Kenichi Handa <handa@m17n.org>
26388
26389 * coding.c (produce_chars): Set the variable `multibytep' correctly.
26390 (decode_coding_gap): Set coding->dst_multibyte correctly.
26391
263922008-02-01 Kenichi Handa <handa@m17n.org>
26393
26394 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
26395 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
26396 (encode_coding_utf_16): Substitute coding->default_char for
26397 non-Unicode characters.
26398 (decode_coding): Don't call record_insert here.
26399 (setup_coding_system): Initialize `surrogate' of
26400 coding->spec.utf_16 to 0.
26401 (EMIT_ONE_BYTE): Fix for multibyte case.
26402
26403 * insdel.c (insert_from_gap): Call record_insert.
26404
264052008-02-01 Kenichi Handa <handa@m17n.org>
26406
26407 * casefiddle.c (casify_region): Fix multibyte case.
26408
26409 * character.c (c_string_width): Add return type `int'.
26410 (char_string_with_unification): Delete arg ADVANCED.
26411
26412 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
26413 (CHAR_STRING): Adjust for the change of char_string_with_unification.
26414 (CHAR_STRING_ADVANCE): Make it do-while statement.
26415
26416 * chartab.c (sub_char_table_set_range): Optimize for the case
26417 DEPTH == 3. Add workaround code for a GCC optimization bug.
26418
26419 * charset.c (parse_charset_map): Remove an unused variable.
26420
26421 * coding.c: Delete unused variables.
26422
26423 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
26424 earlier. If inserted is zero and the coding system doesn't
26425 require flushing, don't call decode_coding_gap.
26426
26427 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
26428
264292008-02-01 Kenichi Handa <handa@m17n.org>
26430
26431 The following changes are for using Unicode as an internal
26432 character model, and use UTF-8 format for buffer/string
26433 representation.
26434
26435 * .gdbinit (xchartable): Adjust for the change of char table structure.
26436 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
26437
26438 * Makefile.in (obj): Add character.o and chartab.o.
26439 (lisp, shortlisp): Remove utf-8.elc.
26440 (*.o): For many files, change dependency on charset.h to
26441 character.h, and add dependency on character.h.
26442 (character.o, chartab.o): New targets.
26443
26444 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
26445 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
26446 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
26447 of "charset.h".
26448
26449 * dired.c, filelock.c: Include "character.h".
26450
26451 * alloc.c: Include "character.h" instead of "charset.h".
26452 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
26453 (syms_of_alloc): Remove defsubr for Smake_char_table.
26454
26455 * buffer.c: Include "character.h" instead of "charset.h", don't
26456 include "coding.h".
26457 (Fset_buffer_multibyte): Adjust for UTF-8.
26458
26459 * buffer.h: EXFUN Fbuffer_live_p.
26460
26461 * callproc.c: Include "character.h" instead of "charset.h".
26462 (Fcall_process): Big change for the new code-conversion APIs.
26463
26464 * casetab.c: Include "character.h" instead of "charset.h".
26465 (set_canon, set_identity, shuffle): Adjust for the new
26466 map_char_table spec.
26467 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
26468 accessing the char table structure.
26469
26470 * chartab.c: New file that implements char table.
26471
26472 * category.c: Include "character.h".
26473 (copy_category_entry): New function.
26474 (copy_category_table): Call map_char_table and copy_category_entry.
26475 (Fmake_category_table): Initialize all top-level slots.
26476 (char_category_set): New function.
26477 (modify_lower_category_set): Delete.
26478 (Fmodify_category_entry): Call char_table_ref_and_range.
26479
26480 * category.h (CATEGORY_SET): Just call char_category_set.
26481
26482 * ccl.c: Include "character.h".
26483 (Qccl, Qcclp): New variables.
26484 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
26485 it's less than 256.
26486 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
26487 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
26488 and DST type.
26489 (ccl_driver): Change types of argument, adjust code accordingly.
26490 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
26491 ccl_driver.
26492 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
26493
26494 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
26495 New members src_multibyte, dst_multibyte, consumed, and produced.
26496 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
26497 (CODING_SPEC_CCL_PROGRAM): New macro.
26498 (ccl_driver): Update prototype.
26499 (Qccl, Qcclp, Fccl_program_p): Extern them.
26500 (CHECK_CCL_PROGRAM): New macro.
26501
26502 * character.c, character.h, chartab.c: New files.
26503
26504 * charset.c: Mostly re-written. Move character and multibyte sequence
26505 handling codes to character.c.
26506
26507 * charset.h: Mostly re-written. Move character and multibyte sequence
26508 handling codes to character.h.
26509
26510 * coding.c, coding.h: Mostly re-written.
26511
26512 * composite.c: Include "character.h" instead of "charset.h".
26513 (CHAR_WIDTH): Move to character.h.
26514 (HASH_KEY, HASH_VALUE): Delete.
26515
26516 * composite.h (enum composition_method): Change order of enumeration
26517 symbols.
26518
26519 * data.c: Include "character.h" instead of "charset.h".
26520 (Faref): Call CHAR_TABLE_REF for a char table.
26521 (Faset): Call CHAR_TABLE_SET for a char table.
26522
26523 * dispextern.h (free_realized_face, check_face_attribytes)
26524 (generate_ascii_font): Extern them.
26525 (free_realized_multibyte_face): Delete extern.
26526
26527 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
26528 table structure.
26529
26530 * editfns.c: Include "character.h" instead of "charset.h".
26531 (Fchar_to_string): Always call CHAR_STRING.
26532
26533 * emacs.c (main): Call init_charset_once, init_charset,
26534 syms_of_chartab, and syms_of_character.
26535
26536 * fileio.c: Include "character.h" instead of "charset.h".
26537 (Finsert_file_contents): Big change for the new code-conversion API.
26538 (choose_write_coding_system, Fwrite_region): Likewise.
26539 (build_annotations_2): Delete.
26540 (e_write): Big change for the new code-conversion API.
26541
26542 * fns.c: Include "character.h" instead of "charset.h".
26543 (copy_sub_char_table): Move to chartab.c.
26544 (Fcopy_sequence): Call copy_char_table for a char table.
26545 (concat): Delete codes calling count_multibyte.
26546 (string_char_to_byte, string_byte_to_char): Adjust for the new
26547 multibyte form.
26548 (internal_equal): Adjust for the change of char table structure.
26549 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
26550 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
26551 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
26552 (char_table_translate, optimize_sub_char_table)
26553 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
26554 chartab.c.
26555 (char_table_ref_and_index): Delete.
26556 (HASH_KEY, HASH_VALUE): Move to lisp.h.
26557 (Fmd5): Call preferred_coding_system instead of accessing
26558 Vcoding_category_list. Adjust for the new code-conversion API.
26559 (syms_of_fns): Move defsubr for char table related functions to
26560 chartab.c.
26561
26562 * fontset.c: Mostly re-written.
26563
26564 * fontset.h (struct font_info): Change type of the member encoding_type.
26565 (enum FONT_SPEC_INDEX): New enum.
26566 (fontset_font_pattern, fs_load_font): Update prototype.
26567 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
26568
26569 * indent.c: Include "character.h" instead of "charset.h".
26570 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
26571
26572 * insdel.c: Include "character.h" instead of "charset.h".
26573 (copy_text): Don't refer to Vnonascii_translation_table.
26574 (insert_from_gap): New function.
26575
26576 * keyboard.c: Include "character.h" instead of "charset.h".
26577 (command_loop_1): Never call direct_output_forward_char before
26578 a non-ASCII character.
26579 (read_char): If Vkeyboard_translate_table is a char table, always
26580 translate a character.
26581
26582 * keymap.c: Include "character.h".
26583 (store_in_keymap): Handle the case that IDX is a cons.
26584 (Fdefine_key): Handle the case that KEY is a cons and the car part
26585 is also a cons (range).
26586 (push_key_description): Adjust for the new character code.
26587 (describe_vector): Call describe_char_table for a char table.
26588 (describe_char_table): New function.
26589
26590 * keymap.h (describe_char_table): Extern it.
26591
26592 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
26593 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
26594 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
26595 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
26596 Delete.
26597 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
26598 structure.
26599 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
26600 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
26601 (CHARTAB_SIZE_BITS_3): New macros.
26602 (chartab_size): Extern it.
26603 (struct Lisp_Char_Table): Re-design.
26604 (struct Lisp_Sub_Char_Table): New structure.
26605 (HASH_KEY, HASH_VALUE): Move from fns.c.
26606 (CHARACTERBITS): Define as 22.
26607 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
26608 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
26609 (GC_SUB_CHAR_TABLE_P): New macro.
26610 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
ef1b0ba7 26611 (code_convert_string_norecord): Delete extern.
aac0c6e3
MR
26612 (init_character_once, syms_of_character, init_charset)
26613 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
26614
26615 * lread.c: Include "character.h".
26616 (read_multibyte): New arg NBYTES.
26617 (read_escape): Change the meaning of returned *BYTEREP.
26618 (to_multibyte): Delete.
26619 (read1): Adjust the handling of char table and string.
26620
26621 * print.c: Include "character.h" instead of "charset.h".
26622 (print_string): Convert 8-bit raw bytes to octal form by
26623 string_escape_byte8.
26624 (print_object): Adjust for the new multibyte form. Print 8-bit
26625 raw bytes always in octal form. Handle sub char table correctly.
26626
26627 * process.c: Include "character.h" instead of "charset.h".
26628 (read_process_output, send_process): Adjust for the new
26629 code-conversion API.
26630
26631 * puresize.h (BASE_PURESIZE): Increase.
26632
26633 * regex.c: Include "character.h" instead of "charset.h".
26634 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
26635 (regex_compile): Accept a range whose starting and ending
26636 character have different leading bytes.
26637 (analyse_first): Adjust for the above change.
26638
26639 * search.c: Include "character.h" instead of "charset.h".
26640 (search_buffer, boyer_moore): Adjust for the new multibyte form.
26641 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
26642
26643 * syntax.c: Include "character.h" instead of "charset.h".
26644 (syntax_parent_lookup): Delete.
26645 (Fmodify_syntax_entry): Accept a cons as CHAR.
26646 (skip_chars): Adjust for the new multibyte form.
26647 (init_syntax_once): Call char_table_set_range instead of directly
26648 accessing the structure of a char table.
26649
26650 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
26651 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
26652 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
26653 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
26654
26655 * term.c: Include "buffer.h" and "character.h".
26656 (encode_terminal_code, write_glyphs): Adjust for the new
26657 code-conversion API.
26658 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
26659
26660 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
26661
26662 * xdisp.c: Include "character.h".
26663 (get_next_display_element): Adjust for the new multibyte form.
26664 (disp_char_vector): Adjust for the new char table structure.
26665 (decode_mode_spec_coding): Adjust for the new structure of
26666 coding system.
26667 (decode_mode_spec): Adjust for the new code-conversion API.
26668
26669 * xfaces.c: Include "character.h" instead of "charset.h".
26670 (load_face_font): Adjust for the change of choose_face_font and
26671 FS_LOAD_FONT.
26672 (generate_ascii_font): New function.
26673 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
26674 (set_font_frame_param): Adjust for the change of choose_face_font.
26675 (free_realized_face): Make it public.
26676 (free_realized_faces_for_fontset): Rename from
26677 free_realized_multibyte_face. Free also faces realized for ASCII.
26678 (choose_face_font): Change arguments. Adjust for the change of
26679 fontset_font_pattern and FS_LOAD_FONT.
26680
26681 * xfns.c: Include "character.h".
26682 (x_encode_text): Adjust for the new code-conversion API.
26683
26684 * xselect.c: Don't include "charset.h".
26685 (selection_data_to_lisp_data): Adjust for the new code conversion API.
26686
26687 * xterm.c: Include "character.h".
26688 (x_encode_char): New argument CHARSET. Change caller.
26689 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
26690 Call ENCODE_CHAR instead of SPLIT_CHAR.
26691 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
26692 CHAR_WIDTH instead of CHARSET_WIDTH.
26693 (XTread_socket): Adjust for the new code-conversion API.
26694 (x_new_font): Adjust for the change of FS_LOAD_FONT.
26695 (x_load_font): Adjust for the change of struct font.
26696
266972008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
26698
26699 * xfaces.c (face_at_buffer_position): Remove unused vars.
26700
267012008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
26702
26703 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
26704 Fix overflow checking.
26705
267062008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
26707
26708 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
26709 Cancel previous change.
26710
267112008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
26712
26713 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
26714 ccl->eight_bit_control. Fix check for buffer overflow.
26715 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
26716 (ccl_driver): Initialize extra_bytes to 0.
26717
267182008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
26719
26720 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
26721 return it ORed with ctrl_modifier.
26722
267232008-01-29 Miles Bader <miles@gnu.org>
26724
26725 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
26726
267272008-01-28 Jason Rumney <jasonr@gnu.org>
26728
26729 * w32.c (stat): Don't double check for networked drive.
26730
267312008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
26732
26733 * window.c (run_window_configuration_change_hook): New function.
26734 Code extracted from set_window_buffer. Set the selected frame.
26735 (set_window_buffer): Use it.
26736 * window.h (run_window_configuration_change_hook): Declare.
26737 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
26738
26739 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
26740
267412008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
26742
26743 * Makefile.in: Remove references to unused macros.
26744
267452008-01-26 Eli Zaretskii <eliz@gnu.org>
26746
26747 * w32.c (g_b_init_get_sid_sub_authority)
26748 (g_b_init_get_sid_sub_authority_count): New static variables.
26749 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
26750 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
26751 (init_user_info): Use them to retrieve uid and gid.
26752 Use 500/513, the Windows defaults, as Administrator's uid/gid.
26753 (fstat): Use pw_uid and pw_gid from the_passwd structure for
26754 st_uid and st_gid of the file.
26755
267562008-01-26 Jason Rumney <jasonr@gnu.org>
26757
26758 * w32.c (logon_network_drive): New function.
26759 (stat): Use it.
26760
267612008-01-26 Chong Yidong <cyd@stupidchicken.com>
26762
26763 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
26764 invisible text covered with an ellipsis.
26765
267662008-01-25 Richard Stallman <rms@gnu.org>
26767
26768 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
26769 jump back to beginning. Move some other initializations after that.
26770 (Qwindow_text_change_functions, Vwindow_text_change_functions):
26771 New variables.
26772 (syms_of_xdisp): Init them.
26773
26774 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
26775
26776 * buffer.c (reset_buffer_local_variables):
26777 Implement `permanent-local-hook'.
26778 (Qpermanent_local_hook): New variable.
26779 (syms_of_buffer): Init and staticpro it.
26780
267812008-01-25 Michael Albinus <michael.albinus@gmx.de>
26782
26783 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
26784
267852008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
26786
26787 * fns.c (Fclrhash): Return TABLE.
26788
267892008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26790
26791 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
26792 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
26793 is set even without positional changes.
26794 (x_scroll_bar_clear): Set bar->redraw_needed_p.
26795
26796 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
26797
267982008-01-23 Jason Rumney <jasonr@gnu.org>
26799
26800 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
26801
26802 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
26803 the unicode range available in MULE by locale-coding-system.
26804 Improve dbcs lead byte detection. Set event timestamp and modifiers
26805 earlier.
26806
268072008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26808
26809 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
26810 [MAC_OSX] (init_mac_osx_environment): Initialize it.
26811 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
26812 when used on child processes.
26813
268142008-01-21 Michael Albinus <michael.albinus@gmx.de>
26815
26816 * dbusbind.c (Fdbus_method_return_internal): Rename from
26817 Fdbus_method_return.
26818 (Fdbus_unregister_object): Move to dbus.el.
26819 (Fdbus_call_method, Fdbus_method_return_internal)
26820 (Fdbus_send_signal): Improve debug messages.
26821
268222008-01-20 Martin Rudalics <rudalics@gmx.at>
26823
26824 * undo.c (undo_inhibit_record_point): New variable.
26825 (syms_of_undo): Initialize it.
26826 (record_point): Don't record point when undo_inhibit_record_point
26827 is set.
26828
268292008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
26830
26831 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
26832
26833 * xdisp.c (Qauto_hscroll_mode): New var.
26834 (syms_of_xdisp): Initialize it.
26835 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
26836 window's buffer.
26837 (hscroll_windows): Don't check automatic_hscrolling_p here.
26838
26839 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
26840 vscroll if we're setting window-buffer to the value it already has.
26841
268422008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
26843
26844 * m/intel386.h: Remove references to XENIX.
26845
268462008-01-17 Andreas Schwab <schwab@suse.de>
26847
26848 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
26849 instead of HAVE_X86_64_LIB64_DIR.
26850 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
26851
268522008-01-17 Glenn Morris <rgm@gnu.org>
26853
26854 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
26855 to HAVE_X86_64_LIB64_DIR.
26856
268572008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
26858
26859 * s/irix3-3.h:
26860 * s/irix4-0.h:
26861 * s/386-ix.h:
26862 * s/domain.h:
26863 * s/hpux9-x11r4.h:
26864 * s/hpux9shxr4.h: Remove files for systems no longer supported.
26865
26866 * sysdep.c: Remove code containing references to symbols defined
26867 by unsupported systems.
26868
268692008-01-16 Glenn Morris <rgm@gnu.org>
26870
26871 * coding.c (select-safe-coding-system-function): Doc fix.
26872
268732008-01-15 Glenn Morris <rgm@gnu.org>
26874
26875 * config.in: Revert 2008-01-13 change: this is a generated file.
26876
268772008-01-13 Tom Tromey <tromey@redhat.com>
26878
26879 * lisp.h: Fix typo.
26880
268812008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
26882
26883 * m/sequent-ptx.h:
26884 * m/sequent.h:
26885 * s/ptx.h:
26886 * s/ptx4-2.h:
26887 * s/ptx4.h: Remove files for systems no longer supported.
26888
26889 * callproc.c (Fcall_process): Fix previous change.
26890
268912008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
26892
26893 * unexsunos4.c: Remove file, system not supported anymore.
26894
26895 * m/mips.h:
26896 * m/intel386.h:
26897 * callproc.c:
26898 * config.in:
26899 * ecrt0.c:
26900 * emacs.c:
26901 * fileio.c:
26902 * frame.c:
26903 * getpagesize.h:
26904 * keyboard.c:
26905 * lread.c:
26906 * process.c:
26907 * puresize.h:
26908 * sysdep.c:
26909 * systty.h:
26910 * syswait.h:
26911 * unexec.c:
26912 * xdisp.c:
26913 * alloc.c: Remove code containing references to symbols defined by
26914 unsupported systems.
26915
269162008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
26917
26918 * coding.c (detect_coding_mask): Fix previous change.
26919
269202008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
26921
26922 * coding.c (detect_coding_iso2022): New arg
26923 latin_extra_code_state. Allow Latin extra codes only
26924 when *latin_extra_code_state is nonzero.
26925 (detect_coding_mask): If there is a NULL byte, detect the encoding
26926 as UTF-16 or binary. If Latin extra codes exist, detect the
26927 encoding as ISO-2022 only when there's no other proper encoding is
26928 found.
26929
269302008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26931
26932 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
26933 #ifdef MAC_OS.
26934
269352008-01-08 Richard Stallman <rms@gnu.org>
26936
26937 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
26938
269392008-01-06 Nick Roberts <nickrob@snap.net.nz>
26940
26941 * keyboard.c (parse_menu_item): Don't enclose key bindings on
26942 menu bar in parentheses.
26943
269442008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
26945
26946 * m/7300.h:
26947 * m/acorn.h:
26948 * m/alliant-2800.h:
26949 * m/alliant.h:
26950 * m/alliant1.h:
26951 * m/alliant4.h:
26952 * m/altos.h:
26953 * m/amdahl.h:
26954 * m/apollo.h:
26955 * m/att3b.h:
26956 * m/aviion-intel.h:
26957 * m/aviion.h:
26958 * m/celerity.h:
26959 * m/clipper.h:
26960 * m/cnvrgnt.h:
26961 * m/convex.h:
26962 * m/cydra5.h:
26963 * m/delta88k.h:
26964 * m/dpx2.h:
26965 * m/dual.h:
26966 * m/elxsi.h:
26967 * m/f301.h:
26968 * m/gould-np1.h:
26969 * m/gould.h:
26970 * m/i860.h:
26971 * m/ibmps2-aix.h:
26972 * m/ibmrt-aix.h:
26973 * m/ibmrt.h:
26974 * m/irist.h:
26975 * m/is386.h:
26976 * m/isi-ov.h:
26977 * m/mega68.h:
26978 * m/mg1.h:
26979 * m/news-r6.h:
26980 * m/news-risc.h:
26981 * m/news.h:
26982 * m/nh3000.h:
26983 * m/nh4000.h:
26984 * m/ns16000.h:
26985 * m/ns32000.h:
26986 * m/nu.h:
26987 * m/orion.h:
26988 * m/orion105.h:
26989 * m/paragon.h:
26990 * m/pfa50.h:
26991 * m/plexus.h:
26992 * m/pyramid.h:
26993 * m/pyrmips.h:
26994 * m/sh3el.h:
26995 * m/sps7.h:
26996 * m/sr2k.h:
26997 * m/stride.h:
26998 * m/sun1.h:
26999 * m/sun2.h:
27000 * m/sun3-68881.h:
27001 * m/sun3-fpa.h:
27002 * m/sun3-soft.h:
27003 * m/sun3.h:
27004 * m/sun386.h:
27005 * m/symmetry.h:
27006 * m/tad68k.h:
27007 * m/tahoe.h:
27008 * m/targon31.h:
27009 * m/tek4300.h:
27010 * m/tekxd88.h:
27011 * m/tower32.h:
27012 * m/tower32v3.h:
27013 * m/ustation.h:
27014 * m/wicat.h:
27015 * m/xps100.h:
27016 * s/cxux.h:
27017 * s/cxux7.h:
27018 * s/dgux.h:
27019 * s/dgux4.h:
27020 * s/dgux5-4-3.h:
27021 * s/dgux5-4r2.h:
27022 * s/esix.h:
27023 * s/esix5r4.h:
27024 * s/hiuxmpp.h:
27025 * s/hiuxwe2.h:
27026 * s/iris3-5.h:
27027 * s/iris3-6.h:
27028 * s/isc2-2.h:
27029 * s/isc3-0.h:
27030 * s/isc4-0.h:
27031 * s/isc4-1.h:
27032 * s/newsos5.h:
27033 * s/newsos6.h:
27034 * s/osf1.h:
27035 * s/osf5-0.h:
27036 * s/riscix1-1.h:
27037 * s/riscix12.h:
27038 * s/sco4.h:
27039 * s/sco5.h:
27040 * s/sunos4-0.h:
27041 * s/sunos4-1.h:
27042 * s/sunos413.h:
27043 * s/sunos4shr.h:
27044 * s/umax.h:
27045 * s/unipl5-2.h:
27046 * s/xenix.h:
27047 * cxux-crt0.s:
27048 * unexapollo.c:
27049 * unexconvex.c:
27050 * unexenix.c:
27051 * unexsni.c: Remove files for systems no longer supported.
27052
27053 * m/intel386.h: Remove references to unsupported systems.
27054
27055 * w32.c (get_emacs_configuration): Remove reference to i860.
27056
27057 * sysdep.c: Remove dead code.
27058
270592008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
27060
27061 * s/rtu.h:
27062 * m/masscomp.h: Remove files. Platform is obsolete.
27063
270642008-01-04 Michael Albinus <michael.albinus@gmx.de>
27065
27066 * dbusbind.c (Fdbus_method_return): New function.
27067 (xd_read_message): Add the serial number to the event.
27068 (Fdbus_register_method): Activate the function.
27069
270702008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
27071
27072 * keyboard.c (read_key_sequence): Fix typo.
27073
270742008-01-03 Michael Albinus <michael.albinus@gmx.de>
27075
27076 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
27077 (xd_signature, xd_append_arg): Handle element type detection for
27078 empty arrays.
27079 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
27080 SDATA () calls; this must be solved more general.
27081 (Fdbus_register_signal): Use SBYTES instead of strlen.
27082
270832008-01-03 Magnus Henoch <magnus@zemdatav>
27084
27085 * dbusbind.c (xd_append_arg): Use unsigned char instead of
27086 unsigned int for byte values (necessary for big-endian platform).
27087 (Fdbus_call_method): Handle the case of no returned arguments.
27088
270892007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
27090
27091 * dbusbind.c (xd_read_message): Use non-static input_event struct.
27092
270932007-12-31 Magnus Henoch <mange@freemail.hu>
27094
27095 * dbusbind.c (xd_signature): Signature of variant is just "v".
27096
270972007-12-30 Michael Albinus <michael.albinus@gmx.de>
27098
27099 * dbusbind.c: Fix several errors and compiler warnings.
27100 Reported by Tom Tromey <tromey@redhat.com>.
27101 (XD_ERROR, XD_DEBUG_MESSAGE)
27102 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
27103 (xd_append_arg): Part for basic D-Bus types rewritten.
27104 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
27105 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
27106 appropriate.
27107 (xd_read_message): Return Qnil. Don't signal an error; it is not
27108 useful during event reading.
27109 (Fdbus_register_signal): Signal an error if the check for
27110 FUNCTIONP fails.
27111 (Fdbus_register_method): New function. The implementation is not
27112 complete, the call of the function signals an error therefore.
27113 (Fdbus_unregister_object): New function, renamed from
27114 Fdbus_unregister_signal. The initial check signals an error, if
27115 the object is not well formed.
27116
271172007-12-30 Richard Stallman <rms@gnu.org>
27118
27119 * textprop.c (get_char_property_and_overlay):
27120 Signal error if POSITION is out of range in a buffer.
27121
271222007-12-29 Martin Rudalics <rudalics@gmx.at>
27123
27124 * w32fns.c (Fx_create_frame): Make copy of frame parameters
27125 because the original parameters are in pure storage now.
27126
271272007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27128
27129 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
27130
271312007-12-22 Eli Zaretskii <eliz@gnu.org>
27132
27133 * callint.c (syms_of_callint) <command-history>: Add reference to
27134 history-length in the doc string.
27135
271362007-12-17 Jason Rumney <jasonr@gnu.org>
27137
27138 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
27139 before passing as wParam.
27140
271412007-12-22 Michael Albinus <michael.albinus@gmx.de>
27142
27143 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
27144 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
27145 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
27146 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
27147 as number.
27148 (Fdbus_call_method): Fix docstring.
27149
271502007-12-21 Michael Albinus <michael.albinus@gmx.de>
27151
27152 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
27153 New macros.
27154 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
27155 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
27156 Simplify.
27157 (xd_signature): New function.
27158 (xd_append_arg): Compute also signatures. Major rewrite.
27159 (xd_retrieve_arg): Make debug messages friendly.
27160 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
27161 Check for signatures of arguments.
27162
271632007-12-19 Michael Albinus <michael.albinus@gmx.de>
27164
27165 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
27166 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
27167 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
27168 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
27169 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
27170 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
27171 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
27172 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
27173 (xd_retrieve_value): Remove. Functionality included in ...
27174 (xd_append_arg): New function.
27175 (Fdbus_call_method, Fdbus_send_signal): Apply it.
27176
271772007-12-16 Michael Albinus <michael.albinus@gmx.de>
27178
27179 * dbusbind.c (top): Include <stdio.h>.
27180 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
27181 dbus_message_new_method_call and dbus_message_new_signal.
27182 (Fdbus_register_signal): Rename unique_name to uname.
27183 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
27184 non-existing unique name. Fix typos in matching rule. Return an
27185 object which is useful in Fdbus_unregister_signal.
27186 (Fdbus_unregister_signal): Reimplementation, in order to remove
27187 only the corresponding entry.
27188 (Vdbus_registered_functions_table): Change the order of entries.
27189 Apply these changes in xd_read_message and Fdbus_register_signal.
27190
271912007-12-16 Andreas Schwab <schwab@suse.de>
27192
27193 * fileio.c (Finsert_file_contents): Fix overflow check to not
27194 depend on undefined integer overflow.
27195
271962007-12-14 Jason Rumney <jasonr@gnu.org>
27197
27198 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
27199 for characters above 127.
27200
272012007-12-13 Jason Rumney <jasonr@gnu.org>
27202
27203 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
27204 before dereferencing array.
27205 (lookup_vk_code): Remove zero comparison.
27206
272072007-12-14 Michael Albinus <michael.albinus@gmx.de>
27208
27209 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
27210 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
27211 Use `unsigned int' instead of `uint'.
27212 (xd_read_message, Fdbus_register_signal): Split expressions into
27213 multiple lines before operators "&&" and "||", according to the
27214 GNU Coding Standards.
27215
272162007-12-14 Eli Zaretskii <eliz@gnu.org>
27217
27218 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
27219
272202007-12-12 Juri Linkov <juri@jurta.org>
27221
27222 * buffer.c (Frename_buffer): In interactive spec replace
27223 `read-buffer' with `read-string' that uses `buffer-name-history'
27224 as history, and the current buffer's name as default.
27225
272262007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
27227
27228 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
27229 manipulating the backtrace manually.
27230 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
27231 (struct backtrace, backtrace_list): Remove.
27232 (command_loop_1): Remove dead var `no_direct'.
27233
27234 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
27235 preserve non-built-in buffer-local variables.
27236 (Fkill_all_local_variables): Don't re-create&re-set permanent
27237 buffer-local variables.
27238
272392007-12-09 Juri Linkov <juri@jurta.org>
27240
27241 * buffer.c (Frename_buffer): Change interactive spec from "s" to
27242 Lisp code that uses `read-buffer' with current buffer as default.
27243
272442007-12-08 Michael Albinus <michael.albinus@gmx.de>
27245
27246 * dbusbind.c (xd_read_message): Generate an event for every
27247 registered handler. There might be several handlers registered
27248 for the same signal.
27249 (Fdbus_register_signal): Don't overwrite a registration for the
27250 same signal. Add a new registration if handlers are different.
27251 (Vdbus_registered_functions_table): Rework doc string.
27252
272532007-12-07 Michael Albinus <michael.albinus@gmx.de>
27254
27255 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
27256 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
27257 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
27258 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
27259 Unify argument lists.
27260 (xd_read_message, Fdbus_register_signal): Reorder and extend event
27261 arguments and hash table keys. Use unique name for service.
27262 (Fdbus_unregister_signal): Remove checks.
27263 (Vdbus_registered_functions_table): Fix doc string.
27264
272652007-12-05 Magnus Henoch <mange@freemail.hu>
27266
27267 * process.c (make_process): Initialize pty_flag to 0.
27268
272692007-12-05 Jason Rumney <jasonr@gnu.org>
27270
27271 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
27272 specified XBMs.
27273
272742007-12-05 Richard Stallman <rms@gnu.org>
27275
27276 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
27277
272782007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27279
27280 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
27281 New variable.
27282 (mac_try_close_socket) [MAC_OSX]: New function.
27283 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
27284 Update cfsockets_for_select. Replace invalid CFRunLoop source.
27285
27286 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
27287 Use mac_try_close_socket.
27288
272892007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27290
27291 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
27292 reloc_base.
27293 (copy_dysymtab): Compute relocation base here.
27294 (rebase_reloc_address) [__ppc64__]: New function.
27295 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
27296 changed.
27297
272982007-12-05 Jason Rumney <jasonr@gnu.org>
27299
27300 * w32proc.c (sys_spawnve): Quote args with wildcards.
27301
273022007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27303
27304 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
27305 __objc_* sections.
27306 (unrelocate) [_LP64]: Set relocation base to address of data segment.
27307
273082007-12-05 Michael Albinus <michael.albinus@gmx.de>
27309
27310 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
27311 Move check for Vdbus_registered_functions_table to
27312 xd_read_queued_messages.
27313 (xd_read_queued_messages): Protect xd_read_message calls by
27314 internal_condition_case_1.
27315
273162007-12-04 Michael Albinus <michael.albinus@gmx.de>
27317
27318 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
27319 Qdbus_system_bus and Qdbus_session_bus, respectively.
27320 (Vdbus_intern_symbols): Remove.
27321 (Vdbus_registered_functions_table): New hash table.
27322 (XD_SYMBOL_INTERN_SYMBOL): Remove.
27323 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
27324 Rewrite in order to manage registered functions by hash table
27325 Vdbus_registered_functions_table.
27326
273272007-12-03 Jan Djärv <jan.h.d@swipnet.se>
27328
27329 * xterm.c: Update URL to Window Manager Specification in comment.
27330
273312007-12-02 Michael Albinus <michael.albinus@gmx.de>
27332
27333 * config.in (HAVE_DBUS): Add.
27334
27335 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
27336 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
27337 (obj): Add $(DBUS_OBJ).
27338 (LIBES): Add $(DBUS_LIBS).
27339 (dbusbind.o): New target.
27340
27341 * dbusbind.c: New file.
27342
27343 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
27344
27345 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
27346 (Qdbus_event): New Lisp symbol.
27347 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
27348 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 27349 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
27350
27351 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
27352
273532007-12-01 Richard Stallman <rms@gnu.org>
27354
27355 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
27356
273572007-11-30 Jason Rumney <jasonr@gnu.org>
27358
27359 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
27360 (w32con_reset_terminal_modes): Clear screen buffer.
27361 (w32_face_attributes): Don't use color indexes that are out of range.
27362 Only reverse the default colors.
27363
27364 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
27365 WINDOWSNT.
27366
27367 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
27368
273692007-11-29 Jason Rumney <jasonr@gnu.org>
27370
27371 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
27372 (w32_face_attributes): Use Vtty_defined_color_alist to determine
27373 if the terminal colors are initialized.
27374 (unspecified_fg, unspecified_bg): Remove unused declarations.
27375
273762007-11-29 Andreas Schwab <schwab@suse.de>
27377
27378 * keyboard.c (apply_modifiers): Fix typo.
27379
273802007-11-29 Richard Stallman <rms@gnu.org>
27381
27382 * keymap.c (Fcurrent_local_map): Doc fix.
27383
273842007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
27385
27386 * s/gnu-kfreebsd.h: New file.
27387
273882007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
27389
27390 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
27391 Don't cast redundantly.
27392
27393 * keyboard.c (KEY_TO_CHAR): New macro.
27394 (parse_modifiers, apply_modifiers): Accept integer arguments.
27395 (read_key_sequence): Use them to unify the "shift->unshift" mapping
27396 for chars and symbol keys.
27397 After doing such remapping, apply function-key-map again.
27398
273992007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
27400
27401 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
27402 compiled anymore.
27403
274042007-11-26 Andreas Schwab <schwab@suse.de>
27405
27406 * process.c (list_processes_1): Fix indentation level of the
27407 command column.
27408
274092007-11-23 Andreas Schwab <schwab@suse.de>
27410
27411 * editfns.c (Fformat): Handle %c specially since it requires the
27412 argument to be of type int.
27413
274142007-11-23 Markus Triska <markus.triska@gmx.at>
27415
27416 * emacs.c (main): Call init_editfns before init_process, since
27417 init_process sets Vprocess_connection_type depending on OS release.
27418
274192007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
27420
27421 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
27422 (find_symbol_value): Use do_symval_forwarding.
27423
27424 * data.c (set_internal): Set the value in the `cons-cell' (for
27425 Buffer_Local_values) not only for frame-local variables.
27426
274272007-11-22 Andreas Schwab <schwab@suse.de>
27428
27429 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
27430 values to sprintf.
27431 * keymap.c (Fsingle_key_description): Likewise.
27432 * print.c (print_object): Likewise.
27433
274342007-11-22 Jan Djärv <jan.h.d@swipnet.se>
27435
27436 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
27437 file for image is nil.
27438
274392007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
27440
27441 * term.c: Include stdarg.h.
27442 (fatal): Implement using varargs.
27443 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
27444
274452007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
27446
27447 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
27448 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
27449 Update call to buffer_slot_type_mismatch.
27450 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
27451 (buffer_slot_type_mismatch): Update.
27452 * buffer.c (buffer_local_types): Remove.
27453 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
27454 (defvar_per_buffer): Set the type in the buffer_objfwd.
27455
274562007-11-21 Jason Rumney <jasonr@gnu.org>
27457
27458 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
27459 CreateFileMapping returns NULL on failure.
27460
274612007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
27462
27463 * search.c (Fset_match_data): Remove the `evaporate' feature.
27464 (unwind_set_match_data): Don't use the `evaporate' feature.
27465
274662007-11-21 Jason Rumney <jasonr@gnu.org>
27467
27468 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
27469
27470 * w32console.c (w32con_write_glyphs): Remove unused variables.
27471
274722007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
27473
27474 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
27475
27476 * s/darwin.h (MULTI_KBOARD): Remove.
27477
27478 * macfns.c (x_create_tip_frame, Fx_create_frame)
27479 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
27480
274812007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
27482
27483 * buffer.c (Fbuffer_local_value): Remove redundant test.
27484 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
27485 than in `current-buffer' to match the comment.
27486 Do the swap using swap_in_global_binding.
27487
27488 * data.c (store_symval_forwarding, set_internal):
27489 * eval.c (specbind): Remove dead code.
27490
27491 * coding.c (detect_coding, Fupdate_coding_systems_internal):
27492 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
27493 Since we do not want to see internal Lisp_*fwd objects here.
27494
274952007-11-18 Jan Djärv <jan.h.d@swipnet.se>
27496
27497 * sysdep.c (init_system_name): Use getaddrinfo if available.
27498
27499 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
27500 (x_scroll_bar_note_movement): start, end, with, height in struct
27501 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
27502
275032007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
27504
27505 * puresize.h (BASE_PURESIZE): Increase to 1190000.
27506
275072007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
27508
27509 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
27510 This undoes Richard's change of 14-Oct-2002.
27511
27512 * alloc.c (allocate_other_vector):
27513 * lisp.h (allocate_other_vector): Remove.
27514
27515 * window.c (struct save_window_data): Move non-lisp data to the end
27516 and make it `int' rather than Lisp_Object.
27517 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
27518 Done wrap/unwrap integer values.
27519 (Fset_window_configuration, compare_window_configurations):
27520 Update use of fields to their new types.
27521
27522 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
27523 Turn integer fields into `int'. Merge x_window_low and x_window_high.
27524 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
27525 (SET_SCROLL_BAR_X_WINDOW): Remove.
27526 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
27527 Access the new x_window field directly.
27528 * xterm.c (x_scroll_bar_create): Use a pseudovector.
27529 Don't wrap/unwrap integers into Lisp_Objects.
27530 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
27531 (x_scroll_bar_report_motion):
27532 Don't wrap/unwrap integers into Lisp_Objects.
27533 (x_term_init): Use SDATA.
27534 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
27535 (x_scroll_bar_set_handle, x_scroll_bar_remove)
27536 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
27537 (x_scroll_bar_report_motion, x_scroll_bar_clear):
27538 * xfns.c (x_set_background_color):
27539 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
27540 Access the new x_window field directly.
27541
27542 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
27543 (allocate_pseudovector): Make non-static.
27544
27545 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
27546 (allocate_pseudovector): Declare.
27547 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
27548
275492007-11-15 Andreas Schwab <schwab@suse.de>
27550
27551 * editfns.c (Fformat): Correctly format EMACS_INT values.
27552 Also take precision into account when formatting an integer.
27553
27554 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
27555
275562007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
27557
27558 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
27559 (syms_of_keyboard): Defsubr it.
27560
27561 * data.c (swap_in_global_binding): Fix longstanding bug where
27562 store_symval_forwarding was not called with the right second argument,
27563 thus causing objfwd-ing from being dropped.
27564
275652007-11-14 Juanma Barranquero <lekktu@gmail.com>
27566
27567 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
27568 (Fx_display_pixel_height, Fx_display_planes)
27569 (Fx_display_color_cells, Fx_server_max_request_size)
27570 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
27571 (Fx_display_visual_class, Fx_display_save_under):
27572 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
27573 (Fx_display_pixel_height, Fx_display_planes)
27574 (Fx_display_color_cells, Fx_server_max_request_size)
27575 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
27576 (Fx_display_mm_height, Fx_display_mm_width)
27577 (Fx_display_backing_store, Fx_display_visual_class)
27578 (Fw32_select_font, Fx_display_save_under):
27579 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
27580 (Fx_display_pixel_height, Fx_display_planes)
27581 (Fx_display_color_cells, Fx_server_max_request_size)
27582 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
27583 (Fx_display_save_under): Fix typos in docstrings.
27584
275852007-11-14 Juanma Barranquero <lekktu@gmail.com>
27586
27587 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
27588 corresponding to deleted entries; they are an implementation detail.
27589 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
27590 Remove variables.
27591 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
27592 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
27593 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
27594 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
27595 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
27596 (Fw32_define_rgb_color, Fw32_load_color_file)
27597 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
27598 Fix typos in docstrings.
27599 (Fx_server_version): Reflow docstring.
27600 (Fw32_shell_execute): Doc fixes.
27601
276022007-11-13 Juanma Barranquero <lekktu@gmail.com>
27603
27604 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
27605 if w32_parse_hot_key returned nil.
27606
276072007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
27608
27609 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
27610
276112007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 27612
aac0c6e3
MR
27613 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
27614
27615 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
27616
27617 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
27618 Remove W32_SCROLL_BAR_CLICK_EVENT.
27619
27620 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
27621 Add MULTIMEDIA_KEY_EVENT.
27622
27623 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
27624 (lispy_multimedia_keys) [WINDOWSNT]: New array.
27625 (make_lispy_event) [WINDOWSNT]: Use it to translate
27626 MULTIMEDIA_KEY_EVENT.
27627
27628 * w32term.h (WM_APPCOMMAND): Define if not already.
27629 (GET_APPCOMMAND_LPARAM): Likewise.
27630
27631 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
27632 WM_APPCOMMAND.
27633
27634 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
27635 (syms_of_w32fns): Export and initialize it.
27636 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
27637
276382007-11-09 Chong Yidong <cyd@stupidchicken.com>
27639
27640 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
27641 twice.
27642
27643 * xdisp.c (handle_face_prop): Fix last change.
27644
276452007-11-09 Richard Stallman <rms@gnu.org>
27646
27647 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
27648 not just for after-strings and before-strings.
27649 Call face_for_overlay_string and pass the overlay to it.
27650 (handle_display_prop): Determine whether property came from an overlay.
27651 Pass OVERLAY arg to handle_single_display_spec.
27652 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
27653 (load_overlay_strings): Fill in it->string_overlays.
27654 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
27655
27656 * xfaces.c (face_for_overlay_string): Function renamed from
27657 face_at_buffer_position_no_overlays, and add arg OVERLAY.
27658
27659 * dispextern.h (struct it): New elt string_overlays.
27660 New elt from_overlay, also in stack.
27661 Rearrange a few elements.
27662 (face_for_overlay_string): Decl renamed from
27663 face_at_buffer_position_no_overlays, and add argument.
27664
276652007-11-09 Richard Stallman <rms@gnu.org>
27666
27667 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
27668 to get the base face for an overlay string.
27669
27670 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
27671
27672 * xfaces.c (face_at_buffer_position_no_overlays): New function.
27673
27674 * xdisp.c (handle_stop): Move some code out of loop.
27675
276762007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27677
27678 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
27679 Fix conversion from Lisp object to ATSUFontID.
27680
276812007-11-09 Jason Rumney <jasonr@gnu.org>
27682
27683 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
27684
276852007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27686
27687 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
27688 Don't assume regions are aligned to page boundary.
27689 (print_load_command_name): Add LC_UUID if defined.
27690
276912007-11-09 Richard Stallman <rms@gnu.org>
27692
27693 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
27694
276952007-11-07 Jason Rumney <jasonr@gnu.org>
27696
27697 * s/windows95.h: Remove.
27698
276992007-11-06 Jan Djärv <jan.h.d@swipnet.se>
27700
27701 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
27702 abort with a message on unhandled store_type values.
27703
277042007-11-01 Jan Djärv <jan.h.d@swipnet.se>
27705
27706 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
27707 Remove HAVE_X11R5 and HAVE_X11R4.
27708
277092007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
27710
27711 * Makefile.in: Remove references to sunfns.c and sunfns.o.
27712
277132007-11-01 Johan Bockgård <bojohan@gnu.org>
27714
27715 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
27716 Don't set s->stippled_p here, since it has already been set by
27717 x_set_glyph_string_gc from x_draw_glyph_string.
27718
277192007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
27720
27721 * sunfns.c: Remove file.
27722
27723 * m/sun386.h:
27724 * m/sun2.h:
27725 * m/sparc.h: Remove Sun windows code.
27726
277272007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
27728
27729 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
27730 (init_keyboard): Set current_kboard's window-system to nil.
27731 (tty_read_avail_input): Typo.
27732 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
27733
277342007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
27735
27736 * s/usg5-4.h:
27737 * s/usg5-3.h:
27738 * s/ptx.h:
27739 * m/is386.h:
27740 * m/ibmps2-aix.h:
27741 * Makefile.in: Remove all mentions of X10.
27742
27743 * dispnew.c (syms_of_display): Don't mention version 10.
27744
277452007-10-28 Juanma Barranquero <lekktu@gmail.com>
27746
27747 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
27748 ($(BLD)/abbrev.$(O)): Remove.
27749
277502007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
27751
27752 Rewrite abbrev.c in Elisp.
27753 * image.c (Qcount): Don't declare as extern.
27754 (syms_of_image): Initialize and staticpro `Qcount'.
27755 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
27756 * emacs.c (main): Don't call syms_of_abbrev.
27757 * Makefile.in (obj): Remove abbrev.o.
27758 (abbrev.o): Remove.
27759 * abbrev.c: Remove.
27760
277612007-10-26 Martin Rudalics <rudalics@gmx.at>
27762
27763 * window.c (window_min_size_2): Don't count header-line.
27764
277652007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
27766
27767 * frame.h (struct frame): Move all bit fields after the first bit
27768 field to take advantage of the available space. Group all the
27769 chars together to reduce wasted space due to padding.
27770
277712007-10-26 Juanma Barranquero <lekktu@gmail.com>
27772
27773 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
27774
27775 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
27776 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
27777 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
27778 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
27779 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
27780 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
27781 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
27782 (last_marked, mark_object_loop_halt): Make static.
27783
27784 * frame.c (syms_of_frame) <delete-frame-functions>:
27785 Fix typo in docstring.
27786
277872007-10-25 Juanma Barranquero <lekktu@gmail.com>
27788
27789 * w32.c (init_environment): Fix tiny memory leak.
27790 (w32_get_resource): Remove unused variable `ok'.
27791
277922007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
27793
27794 Make `window-system' into a keyboard-local variable (rather than
27795 frame-local as done originally by multi-tty).
27796
27797 * keyboard.h (struct kboard): Add Vwindow_system.
27798 * keyboard.c (init_kboard): Set a default for Vwindow_system.
27799 (mark_kboards): Mark Vwindow_system.
27800
27801 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
27802 (init_display): Don't set the obsolete `window-system' frame-param.
27803
27804 * xterm.c (x_term_init):
27805 * w32term.c (w32_create_terminal):
27806 * term.c (init_tty): Set Vwindow_system.
27807 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
27808 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
27809
27810 * xfns.c (Fx_create_frame, x_create_tip_frame):
27811 * w32fns.c (Fx_create_frame, x_create_tip_frame):
27812 * macfns.c (Fx_create_frame):
27813 Don't set the obsolete `window-system' frame-param.
27814
27815 * frame.h (Qwindow_system): Remove.
27816 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
27817 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
27818
278192007-10-24 Richard Stallman <rms@gnu.org>
27820
27821 * frame.c (x_figure_window_size): For fullscreen case,
27822 set USPosition | PPosition without clobbering rest of window_prompting.
27823
27824 * keyboard.c (Fcurrent_idle_time): Doc fix.
27825
27826 * print.c (Fwith_output_to_temp_buffer): Doc fix.
27827
278282007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
27829
27830 * process.c (unwind_request_sigio): Only define if __ultrix__.
27831
27832 * callproc.c (child_setup): Remove spurious *.
27833
27834 * lisp.h (Fget_text_property): Declare.
27835 (have_menus_p): Declare it here rather than in sys-dep header files.
27836 * macterm.h (have_menus_p):
27837 * msdos.h (have_menus_p):
27838 * xterm.h (have_menus_p): Remove.
27839
27840 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
27841 (Fmake_variable_frame_local): Just check the variable's const-ness
27842 rather than checking nil or t.
27843
278442007-10-22 Jason Rumney <jasonr@gnu.org>
27845
27846 * w32fns.c: Include math.h.
27847 (w32_abort): Declaration moved to nt/config.nt.
27848
27849 * s/ms-w32.h (HAVE_STDLIB_H): Define.
27850 (abort): Redefinition moved to nt/config.nt.
27851
27852 * m/windowsnt.h: Remove.
27853
278542007-10-22 Juanma Barranquero <lekktu@gmail.com>
27855
27856 * emacs.c (Fdump_emacs): Fix typo in message.
27857 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
27858 <installation-directory>: Reflow docstring.
27859
278602007-10-22 Juri Linkov <juri@jurta.org>
27861
27862 * minibuf.c: Allow minibuffer default to be a list of default values.
27863 With empty input use the first element of this list as returned default.
27864 (string_to_object)
27865 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
27866 (read_minibuf): If defalt is cons, set histstring to its car.
27867 (Fread_string): If default_value is cons, set val to its car.
27868 (Fread_buffer): If def is cons, use its car.
27869 (Fcompleting_read): If defalt is cons, set val to its car.
27870
278712007-10-21 Michael Albinus <michael.albinus@gmx.de>
27872
27873 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
27874
278752007-10-20 Juanma Barranquero <lekktu@gmail.com>
27876
27877 * doc.c (Fdocumentation): Check for advice in all cases.
27878
278792007-10-19 Chong Yidong <cyd@stupidchicken.com>
27880
27881 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
27882
278832007-10-19 Richard Stallman <rms@gnu.org>
27884
27885 * doc.c (Fdocumentation): Check for and handle an advised function.
27886
278872007-10-19 Juanma Barranquero <lekktu@gmail.com>
27888
27889 * process.c (Fset_process_filter): Doc fix.
27890
278912007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
27892
27893 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
27894 which caused key-translation-map to applied repeatedly (thus breaking
27895 double-mode).
27896
278972007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
27898
27899 * xselect.c (x_own_selection, x_handle_selection_clear)
27900 (x_clear_frame_selections):
27901 * w32menu.c (list_of_panes, list_of_items):
27902 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
27903 * textprop.c (validate_plist, interval_has_all_properties)
27904 (interval_has_some_properties, interval_has_some_properties_list)
27905 (add_properties, text_property_list):
27906 * process.c (Fget_buffer_process, list_processes_1, status_notify):
27907 * minibuf.c (Fassoc_string):
27908 * macselect.c (x_own_selection, x_clear_frame_selections)
27909 (Fx_disown_selection_internal):
27910 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
27911 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
27912
279132007-10-17 Chong Yidong <cyd@stupidchicken.com>
27914
27915 * process.c: Link to libs for calling res_init() if available.
27916 (Fmake_network_process): Call res_init() before getaddrinfo or
27917 gethostbyname, if possible.
27918
279192007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
27920
27921 * lread.c (read1): Set pvectype for char_tables.
27922
27923 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
27924 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
27925 Add type checks.
27926 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
27927
27928 * alloc.c (free_misc): Use XMISCTYPE.
27929 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
27930
279312007-10-17 Glenn Morris <rgm@gnu.org>
27932
27933 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
27934 (syms_of_minibuf): Add Qcompletion_ignore_case.
27935 * dired.c (Qcompletion_ignore_case): Change to external.
27936 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
27937 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
27938 (Fread_file_name): Use it rather than intern'ing.
27939
27940 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
27941 (Fread_coding_system): Ignore case of user input.
27942
279432007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27944
27945 * xdisp.c (handle_display_prop): Ignore display specs after
27946 replacing one when string text is being replaced.
27947 (handle_single_display_spec): Pretend as if characters with display
27948 property haven't been consumed only when buffer text is being replaced.
27949
279502007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
27951
27952 * xfns.c (Fx_create_frame, Fx_display_list):
27953 * window.c (window_fixed_size_p, enlarge_window)
27954 (shrink_window_lowest_first):
27955 * macterm.c (init_font_name_table):
27956 * macfns.c (Fx_create_frame, Fx_display_list):
27957 * lread.c (close_load_descs):
27958 * keyboard.c (read_char_x_menu_prompt):
27959 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
27960 * coding.c (code_convert_region_unwind): Test the type of an object
27961 rather than just !NILP before extracting data from it.
27962
27963 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
27964
27965 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
27966 (XMISCANY): New macro.
27967 (XMISCTYPE): Use it.
27968 (struct Lisp_Misc_Any): New type.
27969 (union Lisp_Misc): Use it.
27970 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
27971 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
27972 (find_symbol_value, set_internal, default_value, Fset_default)
27973 (Fmake_variable_buffer_local, Fmake_local_variable)
27974 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
27975 (Flocal_variable_if_set_p, Fvariable_binding_locus):
27976 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
27977 * alloc.c (allocate_buffer): Set the size and tag.
27978 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
27979 Use XMISCANY.
27980 (die): Follow the GNU convention for error messages.
27981 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
27982 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
27983 tag any more.
27984 (set_buffer_internal_1):
27985 * frame.c (store_frame_param):
27986 * eval.c (specbind):
27987 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
27988
27989 * doc.c (Fsnarf_documentation): Simplify.
27990
279912007-10-14 Juanma Barranquero <lekktu@gmail.com>
27992
27993 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
27994 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
27995
279962007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
27997
27998 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
27999
280002007-10-14 Juanma Barranquero <lekktu@gmail.com>
28001
28002 * eval.c (do_autoload): Don't save autoloads.
28003
28004 * data.c (Ffset): Save autoload of the function being set.
28005
280062007-10-07 John Paul Wallington <jpw@pobox.com>
28007
28008 * xfns.c (x_create_tip_frame): Set the `display-type' frame
28009 parameter before setting up faces.
28010
280112007-10-13 Eli Zaretskii <eliz@gnu.org>
28012
28013 * ccl.c (Fregister_code_conversion_map):
28014 * keyboard.c (append_tool_bar_item): Reformat last change.
28015
28016 * lisp.h (eabs): Rename from `abs'. All callers changed.
28017
280182007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
28019
28020 * buffer.c (add_overlay_mod_hooklist):
28021 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
28022 * fontset.c (make_fontset):
28023 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
28024 (append_tool_bar_item):
28025 * macmenu.c (grow_menu_items):
28026 * w32menu.c (grow_menu_items):
28027 * xmenu.c (grow_menu_items): Use larger_vector.
28028
280292007-10-13 Eli Zaretskii <eliz@gnu.org>
28030
28031 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
28032 selected frame'' on MSDOS).
28033
280342007-10-12 Martin Rudalics <rudalics@gmx.at>
28035
28036 * frame.c (Qexplicit_name): New variable.
28037 (x_report_frame_params): Report it in parameter alist.
28038 (syms_of_frame): Intern and staticpro it.
28039
280402007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
28041
28042 * macfns.c (x_create_tip_frame): Set terminal for frame.
28043
280442007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
28045
28046 * frame.c (Qenvironment): Remove.
28047 (syms_of_frame) <Qenvironment>: Don't initialize.
28048 (Fdelete_frame): Don't treat the `environment' param specially.
28049 * frame.h (Qenvironment): Don't declare.
28050 * callproc.c (set_initial_environment): Don't set unused frame param.
28051
28052 * frame.c (Fframe_with_environment): Remove.
28053 (syms_of_frame) <Sframe_with_environment>: Don't declare.
28054
28055 * lisp.h (Fframe_with_environment): Don't declare.
28056
280572007-10-10 Juanma Barranquero <lekktu@gmail.com>
28058
28059 * indent.c (indent_tabs_mode, last_known_column)
28060 (last_known_column_modified): Make static.
28061 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
28062
280632007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
28064
28065 * puresize.h (BASE_PURESIZE): Increase to 1170000.
28066
280672007-10-09 Jason Rumney <jasonr@gnu.org>
28068
28069 * w32term.c (x_set_window_size): Disable code that attempts to tell
28070 Lisp code about a size change before it actually happens.
28071
280722007-10-09 Richard Stallman <rms@gnu.org>
28073
28074 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
28075 return HANDLED_RETURN.
28076
280772007-10-08 Martin Rudalics <rudalics@gmx.at>
28078
28079 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
28080 when there's an unread command event.
28081
28082 * frame.c (focus_follows_mouse): Move here from frame.el to allow
28083 window autoselection act appropriately when leaving selected frame.
28084 (syms_of_frame): Initialize focus_follows_mouse.
28085 * frame.h (focus_follows_mouse): Extern it.
28086 * macterm.c (XTread_socket): When focus_follows_mouse is nil
28087 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
28088 * msdos.c (dos_rawgetc): Likewise.
28089 * w32term.c (w32_read_socket): Likewise.
28090 * xterm.c (handle_one_xevent): Likewise.
28091 * xdisp.c (syms_of_xdisp): In doc-string of
28092 mouse-autoselect-window mention focus-follows-mouse.
28093
280942007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28095
28096 * macterm.c (mac_load_query_font): Fix missing return value.
28097 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
28098 Add BLOCK_INPUT.
28099
281002007-10-08 Richard Stallman <rms@gnu.org>
28101
28102 * xdisp.c (get_window_cursor_type): Implement documented behavior
28103 for cursor-in-non-selected-windows = t.
28104
281052007-10-08 Jason Rumney <jasonr@gnu.org>
28106
28107 * w32.c (w32_get_resource): Always close registry keys.
28108
281092007-10-08 Jason Rumney <jasonr@gnu.org>
28110
28111 * makefile.w32-in (LIBS): Add COMCTL32.
28112
28113 * w32fns.c (globals_of_w32fns): Init common controls.
28114
281152007-10-08 Richard Stallman <rms@gnu.org>
28116
28117 * image.c (our_memory_buffer): Rename from omfib_buffer.
28118
281192007-10-08 Richard Stallman <rms@gnu.org>
28120
28121 * buffer.c (Foverlays_at): Doc fix.
28122
281232007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
28124
28125 * fns.c (Fplist_put): Preserve uneven tail data.
28126
281272007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
28128
28129 * termhooks.h (enum event_kind): Remove trailing comma.
28130
28131 * frame.h (enum): Remove trailing comma.
28132
281332007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
28134
28135 * w32proc.c (delete_child): Don't terminate threads of zombies.
28136
281372007-10-08 Martin Rudalics <rudalics@gmx.at>
28138
28139 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
28140
28141 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
28142 last-repeatable-command.
28143 (init_kboard): Initialize Vlast_repeatable_command.
28144 (command_loop_1): Set it to real_this_command unless that was
28145 bound to an input event.
28146 (mark_kboards): Mark it.
28147
281482007-10-08 Richard Stallman <rms@gnu.org>
28149
28150 * eval.c (condition-case): Doc fix.
28151
281522007-10-08 Masatake YAMATO <jet@gyve.org>
28153
28154 * xfaces.c (tty_supports_face_attributes_p): Fix code
28155 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
28156 was copied and not edited.
28157
281582007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
28159
28160 Add new `input-decode-map' keymap and use it for terminal
28161 escape sequences.
28162 * keyboard.h (struct kboard): Add Vinput_decode_map.
28163 Remove Vlocal_key_translation_map.
28164 * keyboard.c (read_key_sequence): Add support for input-decode-map.
28165 (init_kboard): Init input-decode-map.
28166 Replace local-key-translation-map back with key-translation-map.
28167 (syms_of_keyboard): Declare input-decode-map.
28168 Remove local-key-translation-map. Update docstrings.
28169 (mark_kboards): Mark Vinput_decode_map.
28170 Don't mark Vlocal_key_translation_map.
28171 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
28172 Replace local-key-translation-map back with key-translation-map.
28173 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
28174 Bind in input-decode-map rather than function-key-map.
28175
28176 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
28177 This was made redundant by the previous introduction of XSETPVECTYPE.
28178
281792007-10-09 Richard Stallman <rms@gnu.org>
28180
28181 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
28182
281832007-09-29 Richard Stallman <rms@gnu.org>
28184
28185 * eval.c (internal_condition_case_2, internal_condition_case_1)
28186 (internal_condition_case): Reenable abort if x_catching_errors ()
28187 to see if that really happens and why.
28188
281892007-10-06 Andreas Schwab <schwab@suse.de>
28190
28191 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
28192
281932007-10-04 Juanma Barranquero <lekktu@gmail.com>
28194
28195 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
28196
281972007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
28198
28199 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
28200
282012007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
28202
28203 * window.h (struct window):
28204 * window.c (struct save_window_data, struct saved_window):
28205 * termhooks.h (struct terminal):
28206 * process.h (struct Lisp_Process):
28207 * frame.h (struct frame):
28208 * buffer.h (struct buffer):
28209 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
28210 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
28211 The size field of (pseudo)vectors is now unsigned.
28212 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
28213
28214 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
28215 Turn `count' into an integer.
28216
28217 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
28218 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
28219 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
28220 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
28221 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
28222
28223 * alloc.c (allocate_pseudovector): New fun.
28224 (ALLOCATE_PSEUDOVECTOR): New macro.
28225 (allocate_window, allocate_terminal, allocate_frame)
28226 (allocate_process): Use it.
28227 (mark_vectorlike): New function.
28228 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
28229 (mark_terminals): Use it.
28230 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
28231 (Fmake_byte_code): Use XSETPVECTYPE.
28232
28233 * frame.c (Fframe_parameters): Minor simplification.
28234
28235 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
28236
28237 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
28238
28239 * buffer.c (Fget_buffer_create, init_buffer_once):
28240 * lread.c (defsubr):
28241 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
28242
28243 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
28244 defined differently in the m/*.h files.
28245 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
28246 (XSETPVECTYPE): New macro.
28247 (XSETPSEUDOVECTOR): Use it.
28248
28249 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
28250 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
28251
28252 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
28253 * lread.c (defvar_per_buffer):
28254 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
28255
28256 * window.c (candidate_window_p): Only consider as visible frames that
28257 are on the same terminal.
28258
28259 * m/ibms390x.h (MARKBIT): Remove unused macro.
28260
282612007-10-01 Juanma Barranquero <lekktu@gmail.com>
28262
28263 * lread.c (Fload): Fix typo in docstring.
28264
282652007-10-01 Michaël Cadilhac <michael@cadilhac.name>
28266
28267 * floatfns.c (Fexpt): Manually check for overflows, so that a power
28268 of a non-zero value can't yield zero.
28269
282702007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
28271
28272 * term.c (term_clear_mouse_face, term_mouse_highlight)
28273 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
28274
28275 * print.c (safe_debug_print): Use XHASH.
28276
28277 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
28278 Lisp elements such as tags.
28279 (XHASH): New macro.
28280 (EQ): Use it.
28281 (SREF, SSET, STRING_COPYIN): Use SDATA.
28282 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
28283
28284 * alloc.c (mark_terminal): Remove left-over declaration.
28285 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
28286 (allocate_vectorlike): Remove type argument. Adjust callers.
28287 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
28288 Only handle the one remaining MEM_TYPE_VECTORLIKE.
28289
28290 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
28291 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
28292 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
28293 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
28294 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
28295 Use them.
28296
28297 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
28298 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
28299 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
28300
283012007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
28302
28303 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
28304 loaded by default.
28305
283062007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
28307
28308 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
28309 on this tty.
28310 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
28311
28312 * term.c (mouse_face_window): Rename from Qmouse_face_window.
28313 Update all users.
28314 (handle_one_term_event): Use Gpm_DrawPointer.
28315 (Fgpm_mouse_start): Rename from Fterm_open_connection.
28316 Signal errors instead of returning nil. Always return nil.
28317 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
28318 Make it a noop if gpm-mouse was not activated.
28319 (syms_of_term): Update names.
28320
283212007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
28322
28323 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
28324 (init_sys_modes): Check that gpm_tty is the current tty.
28325
28326 * alloc.c (allocate_terminal): Set the vector size to only count the
28327 lisp fields. Initialize those to nil.
28328 (mark_object): Don't treat terminals specially.
28329 (mark_terminal): Remove.
28330 (mark_terminals): Use mark_object instead.
28331
28332 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
28333 the GC to the beginning.
28334
28335 * indent.h:
28336 * indent.c: Use EMACS_INT for ints coming from Elisp data.
28337
28338 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
28339
283402007-09-25 Jason Rumney <jasonr@gnu.org>
28341
28342 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
28343
28344 * w32console.c (create_w32cons_output): Remove.
28345
28346 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
28347
28348 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
28349 (reset_sys_modes): Use reset_terminal_modes_hook.
28350
283512007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
28352
28353 * eval.c (do_autoload): Don't output any message.
28354
283552007-09-24 Juri Linkov <juri@jurta.org>
28356
28357 * emacs.c (standard_args): Change priority of "--no-splash"
28358 from 40 to 3. Add "--no-desktop" with the same priority.
28359
283602007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
28361
28362 * alloc.c (gc_sweep): Check cons cell mark bits word by word
28363 and optimize the case where they are all 1.
28364
283652007-09-23 Johannes Weiner <hannes@saeurebad.de>
28366
28367 * lisp.h (abs): Define if not defined.
28368 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
28369 Don't define `abs', since it's defined in lisp.h.
28370
283712007-09-22 Eli Zaretskii <eliz@gnu.org>
28372
28373 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
28374 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
28375 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
28376 (init_tty): Use DEV_TTY instead of "/dev/tty".
28377 [WINDOWSNT]: No need to protect from NAME arg being null.
28378
283792007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
28380
28381 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
28382 up the tty state.
28383
283842007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
28385
28386 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
28387 (gpm_tty): Change its type.
28388 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
28389 (gpm_tty): Change its type and initialize it.
28390 (Fterm_open_connection): Check the frame is indeed a tty.
28391 Use the new gpm_tty.
28392 (Fterm_close_connection): Use the new gpm_tty.
28393 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
28394 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
28395
283962007-09-21 Juanma Barranquero <lekktu@gmail.com>
28397
28398 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
28399 underline_color, to draw strike-through.
28400
284012007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
28402
28403 * lisp.h (allocate_terminal): Declare.
28404
28405 * window.c (candidate_window_p): Consider frames that are being placed
28406 by the user as somewhere between visible and iconified.
28407 (window_loop): Prefer windows on the current frame.
28408 (Fselect_window): Move the use of select-frame to the beginning so we
28409 can just delegate all the work (it'll call us back anyway).
28410
28411 * frame.c (Qdisplay_environment_variable):
28412 * frame.h (Qdisplay_environment_variable): Delete.
28413
28414 * .gdbinit (xbacktrace): Print the arg's address rather than the value
28415 of the first arg, since that value may be a union.
28416
28417 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
28418 parameter rather than Qdisplay_environment_variable. If all else
28419 fails, look for DISPLAY in initial-environment.
28420
284212007-09-21 Glenn Morris <rgm@gnu.org>
28422
28423 * Makefile.in (emacstool): Remove target.
28424 (lisp, shortlisp): Remove termdev.elc.
28425
284262007-09-21 Markus Triska <markus.triska@gmx.at>
28427
28428 * xterm.c (x_delete_display): Compile session management conditionally.
28429
284302007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
28431
28432 * callproc.c (getenv_internal_1): New function.
28433 (getenv_internal): Use it.
28434 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
28435
28436 * terminal.c (get_terminal): Don't accept ints to represent terminals.
28437 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
28438 (Fset_terminal_parameter): Work with dead terminals as well.
28439 (Fmodify_terminal_parameters): Remove.
28440
28441 * terminal.c (get_terminal): Handle terminals.
28442 Make sure the terminal returned is live.
28443 (create_terminal): Use allocate_terminal.
28444 (mark_terminals): Move to alloc.c.
28445 (delete_terminal): Use terminal->name as liveness status.
28446 NULL out fields after freeing their contents.
28447 Don't deallocate the object.
28448 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
28449 rather than an int.
28450 (Fterminal_live_p): Accept non-integer arguments.
28451 (Fterminal_list): Return terminal objects rather than an ints.
28452
28453 * alloc.c (enum mem_type): New member for `terminal' objects.
28454 (allocate_terminal): New function.
28455 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
28456 Handle terminals.
28457 (mark_terminal): New fun.
28458 (mark_terminals): Move from terminal.c.
28459
28460 * term.c (get_tty_terminal): Don't treat output_initial specially.
28461 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
28462 (delete_tty): Use terminal->name as liveness status.
28463
28464 * termhooks.h (struct terminal): Make it into a pseudovector.
28465 Remove `deleted' replaced by checking `name's nullness.
28466
28467 * print.c (print_object): Handle terminals.
28468
28469 * lisp.h (enum pvec_type): New `terminal' pseudovector.
28470 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
28471
28472 * frame.c (make_terminal_frame):
28473 * keyboard.c (tty_read_avail_input):
28474 * w32term.c (x_delete_terminal):
28475 * xfns.c (Fx_create_frame, x_create_tip_frame):
28476 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
28477
284782007-09-20 Glenn Morris <rgm@gnu.org>
28479
28480 * process.c (Fmake_network_process): Doc fix.
28481
284822007-09-19 Jason Rumney <jasonr@gnu.org>
28483
28484 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
28485
284862007-09-19 Michaël Cadilhac <michael@cadilhac.name>
28487
28488 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
28489 Fix a C warning regarding variable constness.
28490
28491 * xterm.c (handle_one_xevent): Fix a C warning.
28492
284932007-09-18 Jason Rumney <jasonr@gnu.org>
28494
28495 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
28496
284972007-09-17 Jan Djärv <jan.h.d@swipnet.se>
28498
28499 * gtkutil.c (gdpy_def): New variable.
28500 (xg_initialize): Initialize gdpy_def.
28501 (xg_display_close): If no other display exists, set gdpy_def to a
28502 new connection.
28503
285042007-09-16 Jan Djärv <jan.h.d@swipnet.se>
28505
28506 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
28507 when we have no file name for the icon.
28508 (xg_tool_bar_expose_callback): Remove.
28509 (xg_create_tool_bar): Don't connect expose signal to
28510 xg_tool_bar_expose_callback.
28511 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
28512
285132007-09-16 Andreas Schwab <schwab@suse.de>
28514
28515 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
28516 values instead of zapping them.
28517
285182007-09-14 Glenn Morris <rgm@gnu.org>
28519
28520 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
28521 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
28522 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
28523 scope and rename to omfib_buffer for clarity.
28524 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
28525
285262007-09-14 Kenichi Handa <handa@m17n.org>
28527
28528 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
28529
285302007-09-13 Jason Rumney <jasonr@gnu.org>
28531
28532 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
28533
28534 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
28535
28536 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
28537 (mac_term_init): Call here instead, passing rif.
28538
285392007-09-13 Glenn Morris <rgm@gnu.org>
28540
28541 * s/hpux.h: No longer define `static' as nothing.
28542
285432007-09-13 Johan Bockgård <bojohan@gnu.org>
28544
28545 * callint.c (Fcall_interactively): Remove unused var `fun'.
28546
285472007-09-12 Romain Francoise <romain@orebokech.com>
28548
28549 * window.c (prefer_window_split_horizontally, display_buffer):
28550 Revert 2007-09-08 change.
28551
285522007-09-12 Glenn Morris <rgm@gnu.org>
28553
28554 * alloca.c: Remove file.
28555 * Makefile.in (alloca): Do not undef.
28556 (allocaobj, alloca.o): Remove.
28557 (otherobj): Remove allocaobj.
28558 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
28559 * regex.c (C_ALLOCA): Remove all references and code that was only
28560 used when this was defined.
28561 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
28562 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
28563 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
28564
28565 * Makefile.in (SOURCES, unlock, relock): Delete.
28566
28567 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
28568 (menu_grab_callback): All uses changed.
28569
28570 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
28571 (x_reply_selection_request): All uses changed.
28572
285732007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
28574
28575 * lread.c (load_warn_old_style_backquotes): Change message to look
28576 better when it appears in the middle of byte-compiler messages.
28577
285782007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
28579
28580 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
28581
28582 * xterm.c (x_create_terminal): Add comment.
28583
28584 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
28585
285862007-09-10 Richard Stallman <rms@gnu.org>
28587
28588 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
28589
285902007-09-10 Michaël Cadilhac <michael@cadilhac.name>
28591
28592 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
28593 (DEFUN): Document `intspec', use it instead of `prompt'.
28594
28595 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
28596
28597 * data.c (Finteractive_form): If the interactive specification starts
28598 with a `(', use it as a Lisp form.
28599
28600 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
28601 name and file modes.
28602
28603 * callint.c (Fcall_interactively): Comment fixes.
28604
286052007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
28606
28607 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
28608 and compiled functions.
28609
286102007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
28611
28612 * window.c (prefer_window_split_horizontally): New variable.
28613 (display_buffer): Consider splitting window horizontally depending
28614 on prefer_window_split_horizontally.
28615
286162007-09-08 Eli Zaretskii <eliz@gnu.org>
28617
28618 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
28619
286202007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
28621
28622 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
28623
28624 * frame.c (x_set_frame_parameters): Check number is positive before
28625 using XFASTINT.
28626
28627 * window.c (freeze_window_start): Don't presume selected_window holds
28628 a window object.
28629 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
28630
286312007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
28632
28633 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
28634
286352007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
28636
28637 * window.c (Vsplit_window_preferred_function): New var.
28638 (Fdisplay_buffer): Use it.
28639 (syms_of_window): Export, and initialize it.
28640
286412007-09-06 Pixel <pixel@mandriva.com> (tiny change)
28642
28643 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
28644
286452007-09-06 Glenn Morris <rgm@gnu.org>
28646
28647 * gtkutil.c (menu_grab_callback) <cnt>:
28648 * xselect.c (x_reply_selection_request) <cnt>: Move static
28649 variable to file scope.
28650
286512007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
28652
28653 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
28654 consistent values of selected_frame and selected_window.
28655
286562007-09-04 Jason Rumney <jasonr@gnu.org>
28657
28658 * w32console.c (initialize_w32_display): Zero unused hooks.
28659
286602007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
28661
28662 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
28663 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
28664
286652007-09-04 Jason Rumney <jasonr@gnu.org>
28666
28667 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
28668 in w32console.c. Set up input. Remove XXX comments that have been
28669 confirmed as correct.
28670
28671 * s/ms-w32.h (MULTI_KBOARD): Define.
28672
28673 * w32console.c (one_and_only_w32cons): Remove.
28674 (initialize_w32_display): Take terminal argument.
28675
28676 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
28677 initialize_w32_display.
28678 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
28679
28680 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
28681
28682 * keyboard.c (discard_mouse_events): Discard it.
28683 (make_lispy_event): Translate it to a lisp event.
28684 (lispy_wheel_names): Add wheel-left and right events.
28685 (syms_of_keyboard): Enlarge wheel_syms.
28686
28687 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
28688 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
28689
28690 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
28691
28692 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
28693 from WM_MOUSEHWHEEL.
28694 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
28695
28696 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
28697 terminal.
28698
28699 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
28700 keyboard for the terminal.
28701
287022007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
28703
28704 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
28705 (Vresume_tty_hook): Rename from Vresume_tty_functions.
28706 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
28707 and resume-tty-function to resume-tty-hook.
28708 (Fsuspend_tty, Fresume_tty): Use new names.
28709
287102007-09-02 Jan Djärv <jan.h.d@swipnet.se>
28711
28712 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
28713 if it starts with "n:".
28714
287152007-08-31 Jan Djärv <jan.h.d@swipnet.se>
28716
28717 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
28718
287192007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
28720
28721 * frame.h:
28722 * frame.c (Qterm_environment_variable): Remove.
28723 (syms_of_frame): Don't init and staticpro it.
28724
28725 * callproc.c (getenv_internal): Remove special case for $TERM.
28726
28727 * callproc.c (Vinitial_environment): New variable.
28728 (set_initial_environment): Initialize it.
28729 (syms_of_callproc): Declare it.
28730 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
28731 TERM under which a process runs is never related to the TERM in which
28732 Emacs is running.
28733
287342007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
28735
28736 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
28737 * s/darwin.h: ... do it here.
28738
287392007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
28740
28741 * lisp.h (set_initial_environment): Rename from set_global_environment.
28742
28743 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
28744 removed by mistake on the multi-tty branch.
28745
28746 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
28747 (Fmodify_frame_parameters): Return a value.
28748
28749 * image.c (png_load): Comment-out var only used in commented-out code.
28750
28751 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
28752 before passing it to mark_object.
28753
28754 * xfaces.c (internal_resolve_face_name): Return a value.
28755 (internal_resolve_face_name, resolve_face_name_error): Comment out.
28756
28757 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
28758 (x_icon): Comment-out var only used in commented-out code.
28759
287602007-08-29 Romain Francoise <romain@orebokech.com>
28761
28762 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
28763 QUIT hasn't been provided.
28764
287652007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
28766
28767 * callproc.c (child_setup, getenv_internal): Use the
28768 display-environment-variable and term-environment-variable frame params.
28769 (set_initial_environment): Initialise Vprocess_environment.
28770
28771 * config.in: Disable multi-keyboard support on a mac.
28772
28773 * frame.c (Qterm_environment_variable)
28774 (Qdisplay_environment_variable): New variables.
28775 (syms_of_frame): Intern and staticpro them.
28776 (Fmake_terminal_frame): Disable output method test.
28777
28778 * frame.h: Declare them here.
28779
28780 * macfns.c (x_set_mouse_color): Get rif from the frame.
28781 (x_set_tool_bar_lines): Don't use updating_frame.
28782 (mac_window): Add 2 new parameters for consistency with other systems.
28783 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
28784 frame parameters following what is done in X11 and w32. Don't use
28785 FRAME_MAC_DISPLAY_INFO.
28786 (Fx_open_connection, start_hourglass): Remove window-system check.
28787 (x_create_tip_frame): Get the keyboard from the terminal.
28788
28789 * macmenu.c: Reorder includes.
28790 (Fx_popup_menu): Use terminal specific mouse_position_hook.
28791
28792 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
28793 terminal parameter.
28794 (x_clear_frame): Add a frame parameter.
28795 (note_mouse_movement): Get rif from the frame.
28796 (mac_term_init): Initialize the terminal.
28797 (mac_initialize): Make static and move terminal initialization ...
28798 (mac_create_terminal): ... to this new function.
28799
28800 * macterm.h (struct mac_display_info): Add terminal.
28801 (mac_initialize): Delete declaration.
28802
28803 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
28804
28805 * sysdep.c: Comment out text after #endif.
28806
28807 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
28808 is defined. Better initialize ttys in windows. Use terminal
28809 specific mouse_position_hook.
28810
28811 * termhooks.h (union display_info): Add mac_display_info.
28812
28813 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
28814 Set the default minibuffer frame, window_system and the rest of the
28815 frame parameters following what is done in X11.
28816
28817 * w32term.c (w32_initialize): Make static.
28818
28819 * xselect.c (x_handle_selection_clear): Only access
28820 terminal->kboard when MULTI_KBOARD is defined.
28821
28822 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
28823 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
28824
288252007-08-29 Jason Rumney <jasonr@gnu.org>
28826
28827 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
28828 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
28829
28830 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
28831 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
28832
28833 * keyboard.c (restore_kboard_configuration): Only define when
28834 MULTI_KBOARD defined.
28835
28836 * makefile.w32-in: Update dependancies from Makefile.in.
28837 (OBJ1): Add terminal.$(O)
28838
28839 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
28840 Don't define function body.
28841 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
28842
28843 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
28844
28845 * w32.c (request_sigio, unrequest_sigio): Remove.
28846
28847 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
28848 (w32con_clear_frame, w32con_clear_end_of_line)
28849 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
28850 (w32con_delete_glyphs, w32con_set_terminal_window)
28851 (scroll_line, w32_sys_ring_bell): Add frame arg.
28852 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
28853 Add terminal arg.
28854 (PICK_FRAME): Remove.
28855 (w32con_write_glyphs): Use frame specific terminal coding.
28856 (one_and_only_w32cons): New global variable.
28857 (initialize_w32_display): Use it for storing hooks.
28858 (create_w32cons_output): New function.
28859
28860 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
28861 arg a frame.
28862
28863 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
28864 Set window_system.
28865 (x_set_tool_bar_lines): Don't use updating_frame.
28866 (Fx_create_frame): Set terminal and ref count.
28867 (Fx_open_connection): Remove window-system check.
28868
28869 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
28870
28871 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
28872 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
28873 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
28874 Add frame arg.
28875 (x_delete_terminal, w32_create_terminal): New functions.
28876 (w32_term_init): Create a terminal.
28877 (w32_initialize): Move terminal specific initialization to
28878 w32_create_terminal.
28879
28880 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
28881 (w32_clear_rect, w32_clear_area): Use background from frame.
28882 (w32_display_info): Add terminal.
28883 (w32_sys_ring_bell, x_delete_display): Declare here.
28884
28885 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
28886
28887 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
28888
288892007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
28890
28891 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
28892 Fix get_named_tty calls for the controlling tty.
28893
288942007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
28895
194d44e7 28896 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
aac0c6e3
MR
28897
288982007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
28899
28900 * term.c (tty_insert_glyphs): Add missing first parameter.
28901
289022007-08-29 Károly Lőrentey <karoly@lorentey.hu>
28903
28904 * buffer.c (Fbuffer_list, Fbury_buffer):
28905 Take frame->buried_buffer_list into account.
28906
28907 * cm.c (current_tty): New variable, for cmputc().
28908 (cmputc): Use it.
28909 (cmcheckmagic): Add tty parameter, look up terminal streams there.
28910 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
28911 (cmgoto): Add tty parameter. Pass it on to calccost().
28912 Use emacs_tputs() instead of tputs().
28913
28914 * cm.h (emacs_tputs): New macro to set current_tty, and then call
28915 tputs().
28916 (current_tty): New variable, for cmputc().
28917 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
28918
28919 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
28920 (internal_condition_case, internal_condition_case_1)
28921 (internal_condition_case_2): Don't abort when x_catching_errors.
28922
28923 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
28924 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
28925 prevent crashes caused by bogus longjmps in read_char.
28926
28927 * keymap.h (Fset_keymap_parent): Add EXFUN.
28928
28929 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
28930 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
28931 Remove redundant definition.
28932
28933 * macfns.c (x_set_mouse_color, x_make_gc):
28934 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
28935
28936 * w32term.c (x_free_frame_resources):
28937 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
28938 (w32_initialize): Use the accessor macros for terminal characteristics.
28939
28940 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
28941 Use the accessor macros for terminal characteristics.
28942 * msdos.c (internal_terminal_init): Use the accessor macros for
28943 terminal characteristics.
28944 (ScreenVisualBell, internal_terminal_init):
28945 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
28946
28947 * termopts.h (no_redraw_on_reenter): Declare.
28948
28949 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
28950 (mark_terminals, mark_ttys): Declare.
28951 (Fgarbage_collect): Call them.
28952 (mark_object): Mark buried_buffer_list.
28953
28954 * prefix-args.c: Include stdlib.h for exit.
28955
28956 * syssignal.h: Add comment.
28957
28958 * indent.c: Include stdio.h.
28959
28960 * window.h (Vinitial_window_system): Declare.
28961 (Vwindow_system): Delete declaration.
28962
28963 * fontset.c (Finternal_char_font): Use FRAME_RIF.
28964
28965 * image.c (lookup_image): Don't initialize `c' until the xasserts
28966 have been run.
28967
28968 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
28969 FRAME_FOREGROUND_PIXEL.
28970
28971 * print.c (print_preprocess): Don't lose print_depth levels while
28972 iterating.
28973
28974 * widget.c (update_from_various_frame_slots):
28975 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
28976
28977 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
28978 frames.
28979 (window_internal_height): Remove bogus make_number call.
28980 (init_window_once): Call make_terminal_frame with two zero parameters.
28981
28982 * fileio.c (Fread_file_name): Update comment.
28983
28984 * callint.c (Fcall_interactively):
28985 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
28986 Make sure it is correctly unwound.
28987
28988 * xsmfns.c (x_session_close): New function.
28989
28990 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
28991 Delete declarations.
28992
28993 * xterm.h: Remove declaration for x_fully_uncatch_errors.
28994 (x_output): Remove background_pixel and foreground_pixel fields.
28995 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
28996 (x_delete_device, x_session_close): Declare.
28997
28998 * lread.c: Include setjmp.h. Update declaration of `read_char'.
28999 (read_filtered_event): Call `read_char' with a local
29000 `wrong_kboard_jmpbuf'.
29001
29002 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
29003 Don't call single_kboard_state. Use FRAME_RIF.
29004
29005 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
29006 systems.
29007
29008 * lisp.h (set_process_environment): Rename to `set_global_environment'.
29009 (Fframe_with_environment, Fset_input_meta_mode)
29010 (Fset_quit_char): EXFUN.
29011 (x_create_device, tty_output, terminal, tty_display_info): Declare.
29012 (init_sys_modes, reset_sys_modes): Update prototypes.
29013 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
29014
29015 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
29016 Vlocal_key_translation_map, and Vkeyboard_translate_table.
29017 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
29018 Delete declarations.
29019 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
29020 (temporarily_switch_to_single_kboard, tty_read_avail_input):
29021 New declarations.
29022
29023 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
29024 already does that during init_display(). Call syms_of_keymap
29025 before syms_of_keyboard. Call `syms_of_terminal'.
29026 Call set_initial_environment, not set_process_environment.
29027 (shut_down_emacs): Call reset_all_sys_modes() instead of
29028 reset_sys_modes().
29029
29030 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
29031 (internal_resolve_face_name, resolve_face_name_error): New functions.
29032 (resolve_face_name): Protect against loops and errors thrown by Fget.
29033 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
29034 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
29035
29036 * scroll.c: Replace CURTTY() with local variables throughout the
29037 file (where applicable).
29038 (calculate_scrolling, calculate_direct_scrolling)
29039 (scrolling_1, scroll_cost): Use the accessor macros for terminal
29040 characteristics.
29041
29042 * keymap.c (Vfunction_key_map): Remove.
29043 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
29044 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
29045 (Vkey_translation_map): Remove.
29046 (syms_of_keymap): Remove DEFVAR for key-translation-map.
29047 (Fdescribe_buffer_bindings)
29048 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
29049 Update for terminal-local key-translation-map.
29050
29051 * Makefile.in (callproc.o): Update dependencies.
29052 (lisp, shortlisp): Add termdev.elc.
29053 (obj): Add terminal.o.
29054 (terminal.o): Add dependencies.
29055 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
29056 (data.o, fns.o): Add termhooks.h dependency.
29057 (SOME_MACHINE_LISP): Add dnd.elc.
29058 (minibuf.o): Fix typo.
29059 Update dependencies.
29060
29061 * data.c (do_symval_forwarding, store_symval_forwarding)
29062 (find_symbol_value): Use the selected frame's keyboard, not
29063 current_kboard.
29064
29065 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
29066 Vwindow_system.
29067
29068 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
29069 Fmenu_bar_open.
29070 (syms_of_xmenu): Update defsubr.
29071 (mouse_position_for_popup, Fx_popup_menu)
29072 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
29073 (set_frame_menubar, free_frame_menubar)
b97439ce 29074 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
29075 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
29076 an X frame.
29077
29078 * xselect.c (x_own_selection): Abort if not an X frame.
29079 (some_frame_on_display): Check if it is an X frame.
29080 (x_handle_selection_clear): Deal with MULTI_KBOARD.
29081
29082 * coding.c: Include frame.h and termhooks.h.
29083 (terminal_coding, keyboard_coding): Delete.
29084 (Fset_terminal_coding_system_internal)
29085 (Fset_keyboard_coding_system_internal)
29086 (Fkeyboard_coding_system)
29087 (Fterminal_coding_system): Add a terminal parameter.
29088 Get terminal_coding from the terminal.
29089 (init_coding_once): Don't call setup_coding_system here.
29090
29091 * dispextern.h (set_scroll_region, turn_off_insert)
29092 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
29093 (tty_clear_end_of_line, tty_setup_colors)
29094 (delete_tty, updating_frame)
29095 (produce_special_glyphs, produce_glyphs, write_glyphs)
29096 (insert_glyphs): Remove.
29097 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
29098 (tty_turn_off_highlight, get_tty_size): Add declaration.
29099 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
29100
29101 * frame.h (enum output_method): Add output_initial.
29102 (struct x_output): Delete.
29103 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
29104 Access foreground_pixel and background_pixel directly from the frame.
29105 (tty_display): Delete.
29106 (struct frame): Add buried_buffer_list, foreground_pixel,
29107 background_pixel and terminal. Delete kboard.
29108 (union output_data): Add tty.
29109 (FRAME_KBOARD): Get the kboard from the terminal.
29110 (FRAME_INITIAL_P): New macro.
29111 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
29112 (Qterm_environment_variable, Qdisplay_environment_variable)
29113 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
29114 New declarations.
29115
29116 * termchar.h (tty_output, tty_display_info): New structures.
29117 (tty_list): Declare.
29118 (FRAME_TTY, CURTTY): New macros.
29119 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
29120 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
29121 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
29122 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
29123
29124 * callproc.c: Include frame.h and termhooks.h, for terminal
29125 parameters.
29126 (add_env): New function.
29127 (child_setup): Use it.
29128 (child_setup, getenv_internal): Handle the new Vprocess_environment.
29129 (getenv_internal): Fix get_terminal_param call.
29130 (Fgetenv_internal, egetenv): Update doc.
29131 (syms_of_callproc): Initialize Vprocess_environment to nil.
29132 Register and initialize them. Remove obsolete defvars. Update doc
29133 strings.
29134 (child_setup): Handle Vlocal_environment_variables.
29135 (getenv_internal): Add terminal parameter.
29136 Handle Vlocal_environment_variables.
29137 (Fgetenv_internal): Add terminal parameter.
29138 (child_setup, getenv_internal, Fgetenv_internal): Store the local
29139 environment in a frame (not terminal) parameter. Update doc strings.
29140 (set_initial_environment): Rename from set_global_environment.
29141 Store Emacs environment in initial frame parameter.
29142
29143 * xdisp.c (redisplay_internal): Update references to
29144 `previous_terminal_frame'.
29145 (display_mode_line, Fformat_mode_line): Replace calls to
29146 `push_frame_kboard' with `push_kboard'.
29147 (get_glyph_string_clip_rects): Add extra parentheses and
29148 braces to prevent compiler warnings.
29149 (calc_pixel_width_or_height): Add xassert to check that the
29150 frame is alive. Don't call `lookup_image' on a termcap frame.
29151 (message2_nolog, message3_nolog, redisplay_internal)
29152 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
29153 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
29154 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
29155 (Fx_display_pixel_width, Fx_display_pixel_height)
29156 (Fx_display_planes, Fx_display_color_cells)
29157 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
29158 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
29159 (Fx_display_backing_store, Fx_display_visual_class)
29160 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
29161 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
29162
29163 * xfns.c (x_set_foreground_color x_set_background_color)
29164 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
29165 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
29166 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
29167 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
29168 terminal that is being deleted.
29169 (Fx_create_frame): Use `store_frame_param' to set `window-system'
29170 frame parameter, and make sure it overrides any user-supplied setting.
29171 (Fx_close_connection, Fx_synchronize): Unify argument names with
29172 the rest of the DEFUNs.
29173
29174 * dispnew.c (Fsend_string_to_terminal): Update call to
29175 `get_tty_terminal'.
29176 (Fredraw_frame, Fsend_string_to_terminal)
29177 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
29178 FRAME_TERMCAP_P and FRAME_TTY.
29179 (window_change_signal): Don't believe width/height values that are
29180 impossibly small.
29181 (Vinitial_window_system): Rename from Vwindow_system.
29182 (termscript, Wcm, rif): Delete.
29183
29184 * termhooks.h (struct terminal): New struct containing the
29185 previously global text display hooks and new members NAME,
29186 DELETED and PARAM_ALIST.
29187 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
29188 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
29189 (FRAME_RIF): New macros.
29190 (get_terminal_param, get_device): New declarations.
29191 (termscript): Delete declaration.
29192
29193 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
29194 (XTflash, x_free_frame_resources, x_scroll_bar_create)
29195 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
29196 FRAME_FOREGROUND_PIXEL.
29197 (x_fully_uncatch_errors): Disable definition.
29198 (x_scroll_bar_expose): Fix reference to foreground pixel.
29199 (XTread_socket): Disable loop on all X displays.
29200 (x_delete_terminal): Don't set terminal->deleted and let
29201 delete_terminal delete the frames on the terminal.
29202 (x_delete_display): Doc update to reflect changes in
29203 delete_terminal.
29204 (x_display_info) <terminal>: Move member earlier in the struct.
29205 (deleting_tty): Remove old variable.
29206 (Fsuspend_tty): Call clear_tty_hooks.
29207 (Fresume_tty, init_tty): Call set_tty_hooks.
29208 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
29209 errors on X frames.
29210 (x_catch_errors_unwind): Abort if x_error_message is NULL.
29211 (handle_one_xevent): Initialize `f' to NULL.
29212 (x_delete_terminal, x_create_terminal): New functions.
29213 (XTset_terminal_modes, XTreset_terminal_modes)
29214 (XTread_socket, x_connection_closed, x_term_init)
29215 (x_term_init, x_delete_display): Add terminal parameter.
29216 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
29217 X connections.
29218
29219 * frame.c: Include termchar.h.
29220 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
29221 (Qwindow_system, Qenvironment, Qterm_environment_variable)
29222 (Qdisplay_environment_variable): New vars.
29223 (Fframep): Deal with output_initial.
29224 (Fframe-live-p): Doc fix.
29225 (Fwindow-system): New function.
29226 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
29227 (make_terminal_frame): Don't create frames on a terminal that is
29228 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
29229 (store_frame_param): Check for found_for_frame before calling XFRAME.
29230 (Fmake_terminal_frame): Handle NULL tty names correctly.
29231 (syms_of_frame): Enhance doc string of `default-frame-alist'.
29232 (Fdelete_frame): Remove unused variable `count'. Don't allow other
29233 frames to refer to a deleted frame in their 'environment parameter.
29234 (Fframe_with_environment): New function.
29235 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
29236 (get_future_frame_param): New function.
29237 (Fmake_terminal_frame): Use it.
29238 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
29239
29240 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
29241 * sysdep.c (reset_sys_modes): Update for renames.
29242
29243 * keyboard.c (tty_read_avail_input): New function.
29244 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
29245 (syms_of_keyboard): Defsubr them.
29246 (Fset_input_meta_mode, Fset_quit_char): New functions.
29247 (Fset_input_mode): Split to above functions.
29248 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
29249 parameter. Use it in call to `read_char'.
29250 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
29251 Set wrong_kboard_jmpbuf correctly in recursive calls.
29252 Use current_kboard to access Vkeyboard_translate_table.
29253 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
29254 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
29255 Update longjmp invocations. Remember the original current_kboard,
29256 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
29257 changes it. Comment out unnecessary calls to
29258 `record_single_kboard_state' and `any_kboard_state'.
29259 Update recursive calls.
29260 (wrong_kboard_jmpbuf): Remove global variable.
29261 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
29262 Handle deleted interrupted_kboards correctly; that is a legal
29263 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
29264 and read_char calls. Abort if interrupted_kboard died in read_char.
29265 (any_kboard_state, single_kboard_state)
29266 (push_frame_kboard): Remove function.
29267 (pop_kboard): Switch out of single_kboard mode if the kboard has
29268 been deleted. Remove unused variable. Help debugging by not
29269 changing current_kboard unnecessarily. Set current_kboard to the
29270 kboard of the selected frame when the stored kboard object has
29271 been deleted before pop_kboard.
29272 (temporarily_switch_to_single_kboard): Change first parameter to a
29273 frame pointer. Throw an error when caller wants to change kboards
29274 while in single_kboard mode. Don't push_kboard if we weren't in
29275 single kboard state. Don't pop_kboard if we popped into any
29276 kboard state.
29277 (restore_kboard_configuration): Abort if pop_kboard changed the
29278 kboard in single_kboard mode. Call pop_kboard only after setting
29279 up single_kboard mode.
29280 (Frecursive_edit): Switch to single_kboard mode only in nested
29281 command loops.
29282 (cmd_error, command_loop, command_loop_1, timer_check):
29283 Comment out unnecessary call to `any_kboard_state' and
29284 `record_single_kboard_state'.
29285 (delete_kboard): Exit single_kboard mode if we have just deleted
29286 that kboard. Use FRAME_KBOARD.
29287 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
29288 `fatal_error_signal'.
29289 (record_single_kboard_state): Don't push_kboard if we weren't in
29290 single kboard state. Don't pop_kboard if we popped into any
29291 kboard state.
29292 (push_frame_kboard): Rename to push_kboard.
29293 (kbd_buffer_get_event): Use FRAME_TERMINAL.
29294 (read_avail_input): Read input from all terminals.
29295 (mark_kboards): Also mark Vkeyboard_translate_table.
29296 (kbd_buffer_store_event_hold): Simplify condition.
29297 (read_key_sequence): Reinitialize fkey and keytran at each replay.
29298 (Vkeyboard_translate_table): Move to struct kboard.
29299 (init_kboard): Initialize Vkeyboard_translate_table.
29300 (syms_of_keyboard): Use DEFVAR_KBOARD to define
29301 Vkeyboard_translate_table. Update doc strings. Update docs of
29302 local-function-key-map and function-key-map.
29303
29304 * terminal.c: New file.
29305
29306 * term.c: Include errno.h.
29307 (Vring_bell_function, device_list, initial_device)
29308 (next_device_id, ring_bell, update_begin, update_end)
29309 (set_terminal_window, cursor_to, raw_cursor_to)
29310 (clear_to_end, clear_frame, clear_end_of_line)
29311 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
29312 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
29313 (syms_of_term): Move their initialization to terminal.c.
29314 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
29315 (Ftty_display_color_cells)
29316 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
29317 (clear_tty_hooks, set_tty_hooks)
29318 (init_tty, maybe_fatal): New functions.
29319 (Ftty_type): Return nil if terminal is not on a tty instead of
29320 throwing an error. Doc update.
29321 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
29322 Doc update. Initialize new subrs and variables.
29323 (delete_tty): Use terminal->deleted.
29324 (tty_set_terminal_modes): Rename from set_terminal_modes.
29325 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
29326 (set_scroll_region): Rename to `tty_set_scroll_region'.
29327 (turn_on_insert): Rename to `tty_turn_on_insert'.
29328 (turn_off_insert): Rename to `tty_turn_off_insert'.
29329 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
29330 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
29331 (toggle_highligh): Rename to `tty_toggle_highlight'.
29332 (background_highlight): Rename to `tty_background_highlight'.
29333 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
29334 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
29335 (tty_set_scroll_region, tty_background_highlight)
29336 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
29337 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
29338 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
29339 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
29340 Add static modifier.
29341 (tty_reset_terminal_modes, tty_set_terminal_window)
29342 (tty_set_scroll_region, tty_background_highlight)
29343 (tty_highlight_if_desired, tty_cursor_to)
29344 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
29345 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
29346 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
29347 renames.
29348
293492007-08-28 Jan Djärv <jan.h.d@swipnet.se>
29350
29351 * keyboard.c: Qrtl is new.
29352 (parse_tool_bar_item): Handle :rtl keyword.
29353 (syms_of_keyboard): Intern :rtl keyword.
29354
29355 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
29356
29357 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
29358 so no Lisp code is executed.
29359 (file_for_image, find_rtl_image): New functions.
29360 (xg_get_image_for_pixmap): Use file_for_image.
29361 (update_frame_tool_bar): If direction is RTL, use RTL image if
29362 defined. Use Gtk stock images if defined.
29363
293642007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29365
29366 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
29367 for nonexistent or zero-width glyph in composition glyph.
29368
293692007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
29370
29371 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
29372
29373 * xdisp.c (Finvisible_p): New function.
29374 (syms_of_xdisp): defsubr it.
29375
293762007-08-24 Juanma Barranquero <lekktu@gmail.com>
29377
29378 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
29379 Doc fixes.
29380
293812007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29382
29383 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
29384
293852007-08-24 Martin Rudalics <rudalics@gmx.at>
29386
29387 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
29388 whether decoding has modified buffer contents.
29389
293902007-08-24 Jason Rumney <jasonr@gnu.org>
29391
29392 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
29393 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
29394 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
29395 (init_svg_functions) [HAVE_NTGUI]: New function.
29396 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
29397 (svg_load_image): Use them.
29398 (svg_load_image) [HAVE_NTGUI]: Implement background.
29399
294002007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29401
29402 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
29403 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
29404 (LIBX): Remove @RSVG_LIBS@.
29405 (LIBES): Add $(RSVG_LIBS).
29406
29407 * image.c (svg_load_image): Blend with specified background if exists.
29408 Use IMAGE_BACKGROUND. Add Mac OS Support.
29409
29410 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
29411 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
29412 Remove macros.
29413 [MAC_OSX] (socket_callback): Do nothing.
29414 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
29415 ReceiveNextEvent.
29416 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
29417 socket_callback.
29418 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
29419
294202007-08-22 Glenn Morris <rgm@gnu.org>
29421
29422 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
29423
294242007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
29425
29426 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
29427
29428 * image.c: Add support for SVG images. Some additional comments
29429 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
29430 (svg_image_p): New function to test for SVG image.
29431 (svg_load): New function to load SVG image.
29432 (svg_load_image): New function, helper for svg_load.
29433 (Qsvg): New Lisp_object.
29434 (svg_keyword_index): New enum.
29435 (svg_format): New static `image_keyword' struct.
29436 (svg_type): New static `image_type' struct.
29437 (librsvg/rsvg.h): Include it.
29438
294392007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
29440
29441 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
29442
294432007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
29444
29445 * lread.c (Qold_style_backquotes): New var.
29446 (syms_of_lread): Init and staticpro it.
29447 (load_warn_old_style_backquotes): New fun.
29448 (Fload): Use them to warn about old style backquotes.
29449 (end_of_file_error, Fload): Remove unused vars.
29450
29451 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
29452
29453 * lread.c (Vold_style_backquotes): New var.
29454 (syms_of_lread): Init and export it to Elisp.
29455 (read1): Set it when we find an old-style (back)quote.
29456
294572007-08-22 Jason Rumney <jasonr@gnu.org>
29458
29459 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
29460
294612007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
29462
29463 * puresize.h (BASE_PURESIZE): Increase to 1140000.
29464
294652007-08-19 Richard Stallman <rms@gnu.org>
29466
29467 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
29468
294692007-08-19 Andreas Schwab <schwab@suse.de>
29470
29471 * alloc.c (pure): Round PURESIZE up.
29472
294732007-08-17 Jan Djärv <jan.h.d@swipnet.se>
29474
29475 * xterm.c (handle_one_xevent): Remove check that mouse click is in
29476 active frame.
29477
294782007-08-16 Richard Stallman <rms@gnu.org>
29479
29480 * eval.c (Fcommandp): Add parens to clarify.
29481
29482 * minibuf.c (Fall_completions): Use enum for type of table.
29483
29484 * emacs.c (USAGE2): Improve text.
29485
294862007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
29487
29488 * term.c (tty_default_color_capabilities): Declare static
29489 variables in file scope, to avoid HPUX compiler problem.
29490
294912007-08-13 Jan Djärv <jan.h.d@swipnet.se>
29492
29493 * gtkutil.c (update_frame_tool_bar): Use -1 as index
29494 to gtk_toolbar_insert.
29495
294962007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
29497
29498 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
29499
29500 * insdel.c (reset_var_on_error): New fun.
29501 (signal_before_change, signal_after_change):
29502 Use it to reset (after|before)-change-functions to nil in case of error.
29503 Bind inhibit-modification-hooks to t.
29504 Don't bind (after|before)-change-functions to nil while they run.
29505
295062007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29507
29508 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
29509 filling pixmap with stippled background.
29510
295112007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29512
29513 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
29514 Don't use invisible frame as parent window for repositioning.
29515
295162007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
29517
29518 * print.c (new_backquote_output): Rename from old_backquote_output.
29519 (print): Inverse its logic (according to its name) so as to match the
29520 behavior of new_backquote_flag in lread.c.
29521
295222007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29523
29524 * gmalloc.c (posix_memalign): New function.
29525
29526 * macterm.c (frame_highlight, frame_unhighlight): Don't call
29527 ActivateControl/DeactivateControl here.
29528 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
29529 frame-notice-user-settings is non-nil.
29530 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
29531 for kEventParamFMFontStyle.
29532 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
29533 mac_pass_command_to_system and mac_pass_control_to_system here.
29534 (XTread_socket): Call ActivateControl/DeactivateControl here.
29535 (XTread_socket) [TARGET_API_MAC_CARBON]:
29536 Check mac_pass_command_to_system and mac_pass_control_to_system here.
29537 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
29538 for window repositioning.
29539
295402007-08-08 Glenn Morris <rgm@gnu.org>
29541
29542 * Replace `iff' in doc-strings and comments.
29543
295442007-08-07 Chong Yidong <cyd@stupidchicken.com>
29545
29546 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
29547
295482007-08-07 Martin Rudalics <rudalics@gmx.at>
29549
29550 * fileio.c (Finsert_file_contents): Run format-decode and
29551 after_insert_file_functions on entire buffer when REPLACE is
29552 non-nil and inhibit modification_hooks and point_motion_hooks.
29553 For consistency, run after_insert_file_functions iff something
29554 got inserted. Move signal_after_change and update_compositions
29555 after code running after_insert_file_functions. Make sure that
29556 undo_list doesn't record intermediate steps of the decoding process.
29557
295582007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29559
29560 * emacs.c (main)
29561 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
29562 Call malloc_enable_thread on interactive startup.
29563
29564 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
29565 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
29566 [USE_PTHREAD]: Conditionalize with it.
29567 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
29568 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
29569 New functions.
29570
295712007-08-06 Chong Yidong <cyd@stupidchicken.com>
29572
29573 * xdisp.c (redisplay_window): When restoring original buffer
29574 position, make sure it is still valid.
29575
29576 * image.c (png_load): Ignore png-supplied background color.
29577
295782007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29579
29580 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
29581 Use kCFAbsoluteTimeIntervalSince1970.
29582
29583 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
29584 New variable.
29585 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
29586 event loop should be quit.
29587 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
29588 Quit dialog event loop if quit_dialog_event_loop is set.
29589
29590 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
29591 (Selection): New typedef. Use instead of ScrapRef.
29592 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
29593 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
29594 (mac_clear_selection): Rename from clear_scrap.
29595 (get_flavor_type_from_symbol): New argument SEL and subsume function of
29596 scrap_has_target_type. All uses changed.
29597 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
29598 (mac_selection_has_target_p): New functions.
29599 (mac_put_selection_value): Rename from put_scrap_string.
29600 (mac_get_selection_value): Rename from get_scrap_string.
29601 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
29602 (put_scrap_private_timestamp, scrap_has_target_type)
29603 (get_scrap_private_timestamp): Remove functions.
29604 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
29605 (x_own_selection, x_get_local_selection):
29606 Use mac_valid_selection_value_p.
29607 (x_own_selection): Don't use put_scrap_private_timestamp.
29608 Record OWNERSHIP-INFO into Vselection_alist instead.
29609 (x_get_local_selection): Don't check type if request is local.
29610 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
29611 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
29612
296132007-08-04 Jan Djärv <jan.h.d@swipnet.se>
29614
29615 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
29616 add comment explaining why.
29617
296182007-08-03 Richard Stallman <rms@gnu.org>
29619
29620 * fileio.c (Fvisited_file_modtime): Use make_time.
29621
296222007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
29623
29624 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
29625 build.
29626
296272007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
29628
29629 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
29630
296312007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
29632
29633 * puresize.h (BASE_PURESIZE): Increase to 1130000.
29634
296352007-07-30 Richard Stallman <rms@gnu.org>
29636
29637 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
29638
296392007-07-29 Jan Djärv <jan.h.d@swipnet.se>
29640
29641 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
29642
296432007-07-28 Nick Roberts <nickrob@snap.net.nz>
29644
29645 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
29646 remote default-directory.
29647
29648 * buffer.c (mode-line-format): Update doc string.
29649
296502007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29651
29652 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
29653 scroll bar gap.
29654 (x_scroll_bar_create): Set bar->fringe_extended_p.
29655 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
29656 on frame edge. Check fringe background extension. Don't clear
29657 extended fringe background area.
29658
29659 * w32term.h (struct scroll_bar): New member fringe_extended_p.
29660 (w32_fill_area): Enclose multiple statements with do ... while (0).
29661
29662 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
29663 Extend fringe background to scroll bar gap.
29664 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
29665 Set bar->fringe_extended_p.
29666 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
29667 Put leftmost/rightmost scroll bars on frame edge. Check fringe
29668 background extension. Don't clear extended fringe background area.
29669
29670 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
29671 New member fringe_extended_p.
29672
296732007-07-25 Glenn Morris <rgm@gnu.org>
29674
29675 * Relicense all FSF files to GPLv3 or later.
29676
29677 * COPYING: Switch to GPLv3.
29678
296792007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
29680
29681 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
29682
29683 * data.c (Finteractive_form): Check for the presence of an
29684 `interactive-form' symbol property more thoroughly.
29685
29686 * data.c (Finteractive_form): Use an `interactive-form' property if
29687 present, analogous to the function-documentation property.
29688
296892007-07-24 Jason Rumney <jasonr@gnu.org>
29690
29691 * w32fns.c (x_real_positions): Get real position from OS instead of
29692 calculating it.
29693
296942007-07-23 Jason Rumney <jasonr@gnu.org>
29695
29696 * filelock.c (current_lock_owner): Allow for @ sign in username.
29697
296982007-07-22 Nick Roberts <nickrob@snap.net.nz>
29699
29700 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
29701 remote default-directory.
29702
29703 * buffer.c (mode-line-format): Describe above case in doc string.
29704
297052007-07-20 Eli Zaretskii <eliz@gnu.org>
29706
29707 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
29708 Define if not defined.
29709
297102007-07-18 Jason Rumney <jasonr@gnu.org>
29711
29712 * w32proc.c (w32_executable_type): Handle 64 bit executables.
29713
297142007-07-18 Richard Stallman <rms@gnu.org>
29715
29716 * data.c (Fsetq_default): Doc fix.
29717
29718 * eval.c (Fsetq): Doc fix.
29719
297202007-07-18 Juanma Barranquero <lekktu@gmail.com>
29721
29722 * coding.c (Ffind_operation_coding_system):
29723 * eval.c (For, Fand): Doc fixes.
29724 Reported by Johan Bockgård.
29725
297262007-07-18 Jan Djärv <jan.h.d@swipnet.se>
29727
29728 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
29729
29730 * xterm.h: Declare x_ewmh_activate_frame.
29731
29732 * xterm.c (x_ewmh_activate_frame): New function.
29733 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
29734
297352007-07-17 Martin Rudalics <rudalics@gmx.at>
29736
29737 * window.c (Fdisplay_buffer): If largest or LRU window is the
29738 only window, split it even if it is not eligible for splitting.
29739 This restores the original behavior broken by the 2007-07-15
29740 change.
29741
297422007-07-17 Glenn Morris <rgm@gnu.org>
29743
29744 * abbrev.c (abbrev_check_chars): New function.
29745 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
29746 Call abbrev_check_chars to check abbrev characters are word
29747 constituents. Doc fix.
29748
297492007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
29750
29751 * process.c (Fstart_process, Fmake_network_process)
29752 (read_process_output): Fix up last changes.
29753
297542007-07-16 Eli Zaretskii <eliz@gnu.org>
29755
29756 * makefile.w32-in (clean): Don't delete *~.
29757
297582007-07-16 Andreas Schwab <schwab@suse.de>
29759
29760 * window.c (Fdisplay_buffer): Use NILP.
29761 (Fset_window_scroll_bars): Likewise.
29762
297632007-07-15 Martin Rudalics <rudalics@gmx.at>
29764
29765 * window.c (window_min_size_2): New function.
29766 (window_min_size_1, size_window, Fdisplay_buffer)
29767 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
29768 windows without mode- or header-lines when window-min-height is
29769 too small.
29770 (size_window): Reset nodelete_p after testing it, following an
29771 earlier note by Kim F. Storm.
29772 (display_buffer): Do not set split_height_threshold to twice the
29773 value of window_min_height to avoid changing the value of a
29774 customizable variable. Rather explicitly check whether the
29775 height of the window that shall be splitted is at least as large
29776 as split_height_threshold.
29777 (Fwindow_full_width_p): New defun.
29778 (syms_of_window): Defsubr it.
29779
29780 * window.h: Add EXFUN for Fwindow_full_width_p.
29781
297822007-07-14 Jason Rumney <jasonr@gnu.org>
29783
29784 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
29785
297862007-07-14 Richard Stallman <rms@gnu.org>
29787
29788 * eval.c (maybe_call_debugger): New function.
29789 (find_handler_clause): Use maybe_call_debugger.
29790 Call it when the handler says `debug'.
29791 Eliminate DEBUGGER_VALUE_PTR.
29792 (Fsignal): Eliminate debugger_value.
29793 (Qdebug): New variable.
29794 (syms_of_eval): Initialize it.
29795
297962007-07-14 Juanma Barranquero <lekktu@gmail.com>
29797
29798 * eval.c (Fprogn):
29799 * keyboard.c (Ftrack_mouse):
29800 * print.c (Fwith_output_to_temp_buffer):
29801 * window.c (Fsave_window_excursion): Doc fix.
29802
298032007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
29804
29805 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
29806
298072007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
29808
29809 * process.h (struct Lisp_Process): Turn slots infd, outfd,
29810 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
29811 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
29812 read_output_delay, and read_output_skip from Lisp_Objects to ints.
29813 Remove unused encoding_carryover.
29814 * process.c: Adjust all functions accordingly.
29815
298162007-07-12 Richard Stallman <rms@gnu.org>
29817
29818 * term.c: Include unistd.h only if HAVE_UNISTD_H.
29819
298202007-07-11 Jason Rumney <jasonr@gnu.org>
29821
29822 * makefile.w32-in (LIBS): Include OLE32.
29823
29824 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
29825 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
29826
298272007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
29828
29829 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
29830 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
29831 from a Lisp_Object into a bare pointer.
29832 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
29833 Adjust the code correspondingly.
29834
29835 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
29836
29837 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
29838 (term_show_mouse_face): Remove unused var `j'.
29839 (handle_one_term_event): Remove unused vars `i' and `j'.
29840 Don't cast return value of ttyname since it's not necessary.
29841
298422007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
29843
29844 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
29845 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
29846
29847 * fns.c (map_char_table): Use an array of int for `indices' rather than
29848 an array of Lisp_Objects (which are only ever integers anyway).
29849 (Fmap_char_table): Update caller.
29850 * lisp.h: Update prototype.
29851 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
29852 * fontset.c (Ffontset_info):
29853 * casetab.c (set_case_table): Update callers.
29854
29855 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
29856
29857 * keymap.c (struct accessible_keymaps_data)
29858 (struct where_is_internal_data): New structures.
29859 (accessible_keymaps_1, where_is_internal_1): Use them to change
29860 interface to adhere to the one used by map_keymap.
29861 (Faccessible_keymaps, where_is_internal): Use map_keymap.
29862 (accessible_keymaps_char_table, where_is_internal_2): Remove.
29863
29864 * keymap.h (map_keymap_function_t): More informative prototype.
29865
298662007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
29867
29868 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
29869 (looking_at_1): Don't change search_regs and last_thing_searched
29870 if `inhibit-changing-match-data' is non-nil.
29871 (string_match_1, search_buffer, set_search_regs): Likewise.
29872 (syms_of_search): Add Lisp level definition for
29873 `inhibit-changing-match-data' and set it to nil.
29874 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
29875 start and end of the match, instead of using values in search_regs.
29876
298772007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
29878
29879 * minibuf.c (Fcompleting_read): New value `confirm-only'
29880 for `require-match'.
29881
298822007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
29883
29884 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
29885 part of the 2007-06-27 change to syms_of_fileio.
29886
298872007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29888
29889 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
29890 Check WINDOWP before using XWINDOW. Consolidate return statements.
29891
298922007-06-27 Richard Stallman <rms@gnu.org>
29893
29894 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
29895
298962007-06-27 Juanma Barranquero <lekktu@gmail.com>
29897
29898 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
29899
299002007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29901
29902 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
29903 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
29904 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
29905 (_free_internal, memalign): Use them.
29906 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
29907 Initialize to PTHREAD_MUTEX_INITIALIZER.
29908 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
29909 (morecore_nolock): Rename from morecore. All uses changed.
29910 Use only nolock versions of internal allocation functions.
29911 (_malloc_internal_nolock, _realloc_internal_nolock)
29912 (_free_internal_nolock): New functions created from
29913 _malloc_internal, _realloc_internal, and _free_internal.
29914 (_malloc_internal, _realloc_internal, _free_internal): Use them.
29915 Copy hook value to automatic variable before its use.
29916 (memalign): Copy hook value to automatic variable before its use.
29917
299182007-06-26 Kenichi Handa <handa@m17n.org>
29919
29920 * coding.c (Ffind_operation_coding_system): Docstring improved.
29921 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
29922
299232007-06-25 David Kastrup <dak@gnu.org>
29924
29925 * keymap.c (Fcurrent_active_maps): Add `position' argument.
29926 (Fwhere_is_internal): Adjust call to `current-active-maps' to
29927 cater for additional parameter.
29928
29929 * keymap.h: Adjust number of parameters to `current-active-maps'.
29930
29931 * doc.c (Fsubstitute_command_keys): Adjust call of
29932 `current-active-maps'.
29933
299342007-06-25 David Kastrup <dak@gnu.org>
29935
29936 * callint.c (Fcall_interactively): Make the parsing of interactive
29937 specs somewhat more readable.
29938
299392007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29940
29941 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
29942 to scroll bar gap also when bitmap fills fringe. Draw only foreground
29943 if extended background has already been filled.
29944
299452007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29946
29947 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
29948 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
29949
29950 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
29951 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
29952 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
29953 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
29954 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
29955 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
29956 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
29957 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
29958 Run timers during dialog popup.
29959 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
29960
299612007-06-21 Jason Rumney <jasonr@gnu.org>
29962
29963 * image.c (convert_mono_to_color_image): Swap fore and background.
29964
299652007-06-20 Jason Rumney <jasonr@gnu.org>
29966
29967 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
29968 (w32_free_bdf_font): Unmap memory not handle.
29969
299702007-06-20 Sam Steingold <sds@gnu.org>
29971
29972 * gmalloc.c (__morecore): Fix the declaration to comply with the
29973 definition.
29974
299752007-06-20 Juanma Barranquero <lekktu@gmail.com>
29976
29977 * w32term.c (w32_delete_display): Remove leftover declaration.
29978 (w32_define_cursor, w32_initialize): Make static.
29979
29980 * w32.c (_wsa_errlist): Fix typo in error message.
29981 (init_environment): Ignore any environment variable from the
29982 registry having a null value.
29983
299842007-06-20 Glenn Morris <rgm@gnu.org>
29985
29986 * Makefile.in (LIBGIF): Default to -lgif.
29987
299882007-06-17 Jason Rumney <jasonr@gnu.org>
29989
29990 * w32menu.c (add_menu_item): Don't use multibyte string functions on
29991 unicode strings.
29992
299932007-06-16 Juanma Barranquero <lekktu@gmail.com>
29994
29995 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
29996 Fix typo in docstring.
29997
299982007-06-16 Eli Zaretskii <eliz@gnu.org>
29999
30000 * w32menu.c (add_menu_item): Escape `&' characters in menu items
30001 and their keybindings.
30002
300032007-06-15 Chong Yidong <cyd@stupidchicken.com>
30004
30005 * composite.c (update_compositions): Fix last fix.
30006
300072007-06-14 Jason Rumney <jasonr@gnu.org>
30008
30009 * w32.c (get_process_times_fn): New function pointer.
30010 (globals_of_w32): Intialize it if present in kernel32.dll.
30011 (w32_get_internal_run_time): New function.
30012
30013 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
30014
300152007-06-14 Kenichi Handa <handa@etlken.m17n.org>
30016
30017 * composite.c (update_compositions): Check the validness of
30018 compositions.
30019
300202007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30021
30022 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
30023 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
30024
30025 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
30026 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
30027
30028 * macgui.h (USE_MAC_TOOLBAR): New define.
30029
30030 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
30031 Return immediately unless popup is activated.
30032
30033 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
30034 background to scroll bar gap.
30035 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
30036 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
30037 scroll bars on frame edge. Check fringe background extension.
30038 Don't clear extended fringe background area.
30039 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
30040 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
30041 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
30042 [USE_MAC_TOOLBAR]: New macros.
30043 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
30044 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
30045 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
30046 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
30047 [USE_MAC_TOOLBAR]: New functions.
30048 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
30049 manually if previous repositioning has failed.
30050 (mac_handle_keyboard_event): Use precomputed event kind.
30051 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
30052 as tool bar item click. Handle mouse movement over tool bar items.
30053
30054 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
30055 toolbar_win_gravity.
30056 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
30057 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
30058 Add externs.
30059
30060 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
30061 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
30062
300632007-06-14 Chong Yidong <cyd@stupidchicken.com>
30064
30065 * image.c (search_image_cache): Remove unused variable.
30066
300672007-06-13 Chong Yidong <cyd@stupidchicken.com>
30068
30069 * xfns.c, xmenu.c: Link to xaw3d if available.
30070
300712007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30072
30073 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
30074 frame_foreground and frame_background.
30075
30076 * image.c (lookup_image): Save frame foreground and background colors.
30077 (search_image_cache): Check if saved and current frame colors match.
30078
300792007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
30080
30081 * regex.c (regex_compile): Remove the `regnum' counter.
30082 Use bufp->re_nsub instead. Add support for \(?N:RE\).
30083
300842007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
30085
30086 * term.c: Include intervals.h to declare Fget_text_property.
30087
300882007-06-10 Jason Rumney <jasonr@gnu.org>
30089
30090 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
30091
300922007-06-08 Juanma Barranquero <lekktu@gmail.com>
30093
30094 * callint.c (Fcall_interactively):
30095 * editfns.c (Fdelete_and_extract_region):
30096 * fileio.c (Fread_file_name):
30097 * fns.c (Fmapconcat):
30098 * keyboard.c (cmd_error_internal):
30099 * keymap.c (Fkey_description):
30100 * lread.c (openp):
30101 * minibuf.c (read_minibuf):
30102 * search.c (wordify):
30103 * sunfns.c (sel_read):
30104 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
30105 * xfns.c (x_default_scroll_bar_color_parameter):
30106 * xmenu.c (menu_help_callback):
30107 * xselect.c (Fx_get_atom_name):
30108 * xterm.c (x_term_init): Use empty_unibyte_string.
30109
301102007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
30111
30112 * alloc.c (init_strings): Initialize canonical empty strings.
30113 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
30114 canonical empty string when the requested size is 0.
30115
30116 * emacs.c (empty_unibyte_string): Rename from empty_string.
30117 (empty_multibyte_string): New canonical empty string.
30118 (syms_of_emacs): Don't initialize empty_string.
30119
30120 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
30121 string, if appropriate.
30122 (empty_unibyte_string, empty_multibyte_string): New externs.
30123 (empty_string): Remove extern.
30124
30125 * lread.c (syms_of_lread): Use empty_unibyte_string.
30126
301272007-06-07 Jason Rumney <jasonr@gnu.org>
30128
30129 * s/ms-w32.h: Don't define HAVE_TZNAME.
30130
30131 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
30132
301332007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30134
30135 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
30136
30137 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
30138 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
30139
30140 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
30141 Don't call next handler.
30142 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
30143 Remove argument. Install handler to application.
30144 (set_frame_menubar): Don't change deep_p.
30145 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
30146 FRAME_OUTER_TO_INNER_DIFF_Y.
30147 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
30148 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
30149 [HAVE_DIALOGS]: New macros.
30150 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
30151 Use them.
30152 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
30153
30154 * macselect.c [MAC_OSX] (install_service_handler): Rename from
30155 init_service_handler. All callers changed. Return OSStatus value.
30156
30157 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
30158 All callers changed so as not to call SetPortWindowPort.
30159 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
30160 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
30161 mac_draw_string_common.
30162 (mac_draw_image_string_qd): Likewise.
30163 (mac_draw_string_common): Use them. Add INLINE.
30164 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
30165 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
30166 GetGlobalMouse.
30167 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
30168 and FRAME_OUTER_TO_INNER_DIFF_Y.
30169 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
30170 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
30171 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
30172 repositioning window to mac_handle_window_event.
30173 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
30174 saving window location to mac_handle_window_event
30175 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
30176 (install_menu_target_item_handler): Remove argument in extern.
30177 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
30178 Also accept command events.
30179 (do_keystroke): New function created from XTread_socket.
30180 (init_command_handler): Remove functions.
30181 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
30182 and save window location by kEventWindowShowing and kEventWindowHiding
30183 handlers here. Don't call next handler for window state change and
30184 focus events.
30185 (mac_handle_application_event, mac_handle_keyboard_event)
30186 [TARGET_API_MAC_CARBON]: New functions.
30187 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
30188 kEventWindowShowing and kEventWindowHiding events. Move installation
30189 of mouse, font, text input and menu target item handlers to
30190 install_application_handler.
30191 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
30192 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
30193 New function.
30194 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
30195 Register it.
30196 (XTread_socket) [TARGET_API_MAC_CARBON]:
30197 Consolidate SendEventToEventTarget calls.
30198 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
30199 Move application activation handler to mac_handle_application_event.
30200 Move keyboard handler to mac_handle_keyboard_event.
30201 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
30202 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
30203 init_command_handler. Call install_application_handler.
30204
30205 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
30206 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
30207
302082007-06-07 Glenn Morris <rgm@gnu.org>
30209
30210 * emacs.c (main): Use `emacs-copyright' in --version output.
30211
302122007-06-06 Chong Yidong <cyd@stupidchicken.com>
30213
30214 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
30215
302162007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30217
30218 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
30219
30220 * macgui.h: Replace WindowPtr with WindowRef.
30221
30222 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
30223 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
30224 Replace ControlHandle with ControlRef.
30225 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
30226
30227 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
30228 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
30229 Replace ControlHandle with ControlRef.
30230 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
30231 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
30232
30233 * macterm.h (struct scroll_bar): Rename member control_handle_low
30234 and control_handle_high to control_ref_low and control_ref_high.
30235 All uses changed.
30236 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
30237 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
30238 respectively. All uses changed.
30239 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
30240 (install_window_handler, remove_window_handler): Replace WindowPtr
30241 with WindowRef in externs.
30242
302432007-06-05 Juanma Barranquero <lekktu@gmail.com>
30244
30245 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
30246
302472007-06-03 Nick Roberts <nickrob@snap.net.nz>
30248
30249 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
30250
30251 * frame.c (Fmouse_position, Fmouse_pixel_position):
30252 Condition on HAVE_GPM too.
30253
30254 * term.c (term_mouse_highlight): Remove unused variables.
30255 (Fterm_open_connection): Set gpm_zerobased to 1.
30256 (term_mouse_movement, term_mouse_click, handle_one_term_event):
30257 Use zero based co-ordinates.
30258 (handle_one_term_event): Report a drag as mouse movement too.
30259
30260 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
30261
302622007-06-03 Chong Yidong <cyd@stupidchicken.com>
30263
30264 * image.c (search_image_cache): New function. Require background
30265 color match if background color is unspecified in the image spec.
30266 (uncache_image, lookup_image): Use it.
30267
302682007-06-01 Juanma Barranquero <lekktu@gmail.com>
30269
30270 * window.c (Fshrink_window): Reflow docstring.
30271
302722007-06-02 Chong Yidong <cyd@stupidchicken.com>
30273
30274 * Version 22.1 released.
30275
302762007-06-01 Richard Stallman <rms@gnu.org>
30277
30278 * xfns.c (x_encode_text): Add GCPRO.
30279
302802007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30281
30282 * xfns.c (x_set_name_internal): Save encoded name before
30283 x_encode_text in case string data is relocated.
30284
302852007-05-31 Richard Stallman <rms@gnu.org>
30286
30287 * buffer.c (syms_of_buffer): Doc fix.
30288
302892007-05-30 Nick Roberts <nickrob@snap.net.nz>
30290
30291 * sysdep.c (init_sys_modes): Add rather than replace with
30292 O_NONBLOCK.
30293
30294 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
30295 term_mouse_moveto.
30296
30297 * termhooks.h (term_mouse_moveto): New extern.
30298
30299 * term.c (mouse_face_window): Rename...
30300 (Qmouse_face_window): ...to this.
30301 (term_show_mouse_face, term_clear_mouse_face)
30302 (term_mouse_highlight): Use Qmouse_face_window.
30303 (term_mouse_moveto): New function.
30304 (term_mouse_position): Make it work.
30305 (syms_of_term): Uncomment assignment to mouse_position_hook.
30306 Staticpro Qmouse_face_window.
30307
303082007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30309
30310 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
30311 around current_column call.
30312
303132007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
30314
30315 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
30316 * xdisp.c (next_element_from_buffer):
30317 * window.c (delete_window):
30318 * term.c (term_mouse_highlight):
30319 * msdos.c (getdefdir):
30320 * macterm.c (mac_create_bitmap_from_bitmap_data)
30321 (init_font_name_table):
30322 * fns.c (Fsxhash):
30323 * data.c (Fmake_local_variable):
30324 * ccl.c (ccl_driver): Likewise.
30325
303262007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30327
30328 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
30329 Call mac_wakeup_from_rne on window size change.
30330
303312007-05-25 Chong Yidong <cyd@stupidchicken.com>
30332
30333 * image.c (uncache_image): Fix typo.
30334
303352007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
30336
30337 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
30338
303392007-05-22 Richard Stallman <rms@gnu.org>
30340
30341 * xterm.c (x_connection_closed): Remove NO_RETURN.
30342
303432007-05-22 Martin Rudalics <rudalics@gmx.at>
30344
30345 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
30346
303472007-05-21 Chong Yidong <cyd@stupidchicken.com>
30348
30349 * image.c (uncache_image): New function.
30350 (Fimage_refresh): New function.
30351
303522007-05-20 Jan Djärv <jan.h.d@swipnet.se>
30353
30354 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
30355
303562007-05-20 Nick Roberts <nickrob@snap.net.nz>
30357
30358 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
30359 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
30360
303612007-05-20 Nick Roberts <nickrob@snap.net.nz>
30362
30363 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
30364 conditional on [HAVE_GPM_H].
30365
303662007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
30367
30368 * syntax.c (skip_chars): Update syntax-table only after we checked that
30369 the new location is valid.
30370
303712007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30372
30373 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
30374 mac_get_window_bounds.
30375
303762007-05-20 Nick Roberts <nickrob@snap.net.nz>
30377
30378 * Makefile.in (LIBGPM): Allow it to be set from configure.
30379 If set then link Emacs with it.
30380
30381 * config.in: Regenerate.
30382
30383 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
30384 New externs.
30385
30386 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
30387 Include gpm.h.
30388 (handle_one_term_event, term_gpm): New externs.
30389
30390 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
30391 and allow it to be interrupted by SIGIO.
30392
30393 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
30394 (wait_reading_process_output): Wait on gpm_fd too.
30395 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
30396 (add_gpm_wait_descriptor_called_flag): New variable.
30397 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
30398
30399 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
30400 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
30401 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
30402 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
30403 (make_lispy_event): Add case GPM_CLICK_EVENT.
30404 (read_avail_input): Handle mouse input.
30405
30406 * term.c (write_glyphs_with_face): New function.
30407 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
30408 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
30409 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
30410 (mouse_face_face_id, term_gpm, pos_x, pos_y)
30411 (last_mouse_x, last_mouse_y): New variables.
30412 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
30413 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
30414 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
30415 (Fterm_close_connection): New functions.
30416 (term_init): Initialise mouse_face_window.
30417
304182007-05-19 Chong Yidong <cyd@stupidchicken.com>
30419
30420 * xdisp.c (redisplay_window): If first window line is a
30421 continuation line, recompute the new window start instead of
30422 recentering.
30423
304242007-05-18 Glenn Morris <rgm@gnu.org>
30425
30426 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
30427 Suggested by Alfred M. Szmidt <ams@gnu.org>.
30428
304292007-05-17 Glenn Morris <rgm@gnu.org>
30430
30431 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
30432
304332007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30434
30435 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
30436 dead key repeat and up events.
30437
304382007-05-14 Chong Yidong <cyd@stupidchicken.com>
30439
30440 * image.c (pbm_load): Check image size for monochrome pbm.
30441
304422007-05-13 Chong Yidong <cyd@stupidchicken.com>
30443
30444 * xterm.c (XTread_socket): Revert last change.
30445
304462007-05-12 Chong Yidong <cyd@stupidchicken.com>
30447
30448 * image.c (pbm_load): Correctly check image size for greyscale pbm.
30449
30450 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
30451
304522007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
30453
30454 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
30455 mixup (YAILOM).
30456
304572007-05-07 Andreas Schwab <schwab@suse.de>
30458
30459 * keymap.c (Flookup_key): Fix typo in last change.
30460
304612007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
30462
30463 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
30464 mapping for unibyte strings.
30465
304662007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30467
30468 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
30469 (Fx_popup_dialog) [MAC_OSX]: Likewise.
30470
304712007-04-29 Richard Stallman <rms@gnu.org>
30472
30473 * insdel.c (replace_range): For undo, record insertion first.
30474
304752007-04-29 Andreas Schwab <schwab@suse.de>
30476
30477 * lisp.h (VECSIZE): Use OFFSETOF.
30478
304792007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30480
30481 * xdisp.c (try_window_reusing_current_matrix): Fix number of
30482 disabled lines.
30483
304842007-04-28 Richard Stallman <rms@gnu.org>
30485
30486 * lread.c (read_escape): In a string, \s is always space.
30487
304882007-04-27 Jan Djärv <jan.h.d@swipnet.se>
30489
30490 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
30491
30492 * gtkutil.c (xg_update_menubar, create_menus): Create empty
30493 submenu for menu bar items.
30494
30495See ChangeLog.10 for earlier changes.
30496
30497;; Local Variables:
30498;; coding: utf-8
aac0c6e3
MR
30499;; End:
30500
73b0cd50 30501 Copyright (C) 2007-2011 Free Software Foundation, Inc.
aac0c6e3
MR
30502
30503 This file is part of GNU Emacs.
30504
30505 GNU Emacs is free software: you can redistribute it and/or modify
30506 it under the terms of the GNU General Public License as published by
30507 the Free Software Foundation, either version 3 of the License, or
30508 (at your option) any later version.
30509
30510 GNU Emacs is distributed in the hope that it will be useful,
30511 but WITHOUT ANY WARRANTY; without even the implied warranty of
30512 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
30513 GNU General Public License for more details.
30514
30515 You should have received a copy of the GNU General Public License
30516 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.