* composite.c (composition_gstring_put_cache): Use unsigned integer.
[bpt/emacs.git] / src / ChangeLog
1 2011-04-05 Paul Eggert <eggert@cs.ucla.edu>
2
3 * composite.c (composition_gstring_put_cache): Use unsigned integer.
4
5 2011-04-04 Paul Eggert <eggert@cs.ucla.edu>
6
7 * composite.h, composite.c (composition_gstring_put_cache):
8 Use EMACS_INT, not int, for length.
9
10 * composite.h (COMPOSITION_DECODE_REFS): New macro,
11 breaking out part of COMPOSITION_DECODE_RULE.
12 (COMPOSITION_DECODE_RULE): Use it.
13 * composite.c (get_composition_id): Remove unused local vars,
14 by using the new macro.
15
16 * textprop.c (set_text_properties_1): Change while to do-while,
17 since the condition is always true at first.
18
19 * intervals.c (graft_intervals_into_buffer): Mark var as used.
20 (interval_deletion_adjustment): Return unsigned value.
21 All uses changed.
22
23 * process.c (list_processes_1, create_pty, read_process_output):
24 (exec_sentinel): Remove vars that were set but not used.
25 (create_pty): Remove unnecessary "volatile"s.
26 (Fnetwork_interface_info): Avoid possibility of int overflow.
27 (read_process_output): Do adaptive read buffering even if carryover.
28 (read_process_output): Simplify nbytes computation if buffered.
29
30 * bytecode.c (exec_byte_code): Rename local to avoid shadowing.
31
32 * syntax.c (scan_words): Remove var that was set but not used.
33 (update_syntax_table): Use unsigned instead of int.
34
35 * lread.c (lisp_file_lexically_bound_p): Use ints rather than endptrs.
36 (lisp_file_lexically_bound_p, read1): Use unsigned instead of int.
37 (safe_to_load_p): Make the end-of-loop test the inverse of the in-loop.
38
39 * print.c (print_error_message): Avoid int overflow.
40
41 * font.c (font_list_entities): Redo for clarity,
42 so that reader need not know FONT_DPI_INDEX + 1 == FONT_SPACING_INDEX.
43
44 2011-04-03 Paul Eggert <eggert@cs.ucla.edu>
45
46 * font.c (font_find_for_lface, Ffont_get_glyphs): Remove unused vars.
47 (font_score): Avoid potential overflow in diff calculation.
48
49 * fns.c (substring_both): Remove var that is set but not used.
50 (sxhash): Redo loop for clarity and to avoid wraparound warning.
51
52 * eval.c (funcall_lambda): Rename local to avoid shadowing.
53
54 * alloc.c (mark_object_loop_halt, mark_object): Use size_t, not int.
55 Otherwise, GCC 4.6.0 optimizes the loop check away since the check
56 can always succeed if overflow has undefined behavior.
57
58 * search.c (boyer_moore, wordify): Remove vars set but not used.
59 (wordify): Omit three unnecessary tests.
60
61 * indent.c (MULTIBYTE_BYTES_WIDTH): Don't compute wide_column.
62 All callers changed. This avoids the need for an unused var.
63
64 * casefiddle.c (casify_region): Remove var that is set but not used.
65
66 * dired.c (file_name_completion): Remove var that is set but not used.
67
68 * fileio.c (Finsert_file_contents): Make EOF condition clearer.
69
70 2011-04-02 Paul Eggert <eggert@cs.ucla.edu>
71
72 * fileio.c (Finsert_file_contents): Avoid signed integer overflow.
73 (Finsert_file_contents): Remove unnecessary code checking fd.
74
75 * minibuf.c (read_minibuf_noninteractive): Use size_t for sizes.
76 Check for integer overflow on size calculations.
77
78 * buffer.c (Fprevious_overlay_change): Remove var that is set
79 but not used.
80
81 * keyboard.c (menu_bar_items, read_char_minibuf_menu_prompt):
82 Remove vars that are set but not used.
83 (timer_check_2): Don't assume timer-list and idle-timer-list are lists.
84 (timer_check_2): Mark vars as initialized.
85
86 * gtkutil.c (xg_get_file_with_chooser): Mark var as initialized.
87
88 * image.c (lookup_image): Remove var that is set but not used.
89 (xbm_load): Use parse_p, for gcc -Werror=unused-but-set-variable.
90
91 * fontset.c (Finternal_char_font, Ffontset_info): Remove vars
92 that are set but not used.
93
94 * xfns.c (make_invisible_cursor): Don't return garbage
95 if XCreateBitmapFromData fails (Bug#8410).
96
97 * xselect.c (x_get_local_selection, x_handle_property_notify):
98 Remove vars that are set but not used.
99
100 2011-04-01 Paul Eggert <eggert@cs.ucla.edu>
101
102 * xfns.c (x_create_tip_frame): Remove var that is set but not used.
103 (make_invisible_cursor): Initialize a possibly-uninitialized variable.
104
105 * xterm.c (x_scroll_bar_to_input_event) [!USE_GTK]:
106 Remove var that is set but not used.
107 (scroll_bar_windows_size): Now size_t, not int.
108 (x_send_scroll_bar_event): Use size_t, not int, for sizes.
109 Check for overflow.
110
111 * xfaces.c (realize_named_face): Remove vars that are set but not used.
112 (map_tty_color) [!defined MSDOS]: Likewise.
113
114 * term.c (tty_write_glyphs): Use size_t; this avoids overflow warning.
115
116 * coding.c: Remove vars that are set but not used.
117 (DECODE_COMPOSITION_RULE): Remove 2nd arg, which is unused.
118 All callers changed.
119 (decode_coding_utf_8, decode_coding_utf_16 decode_coding_emacs_mule):
120 (decode_coding_iso_2022, encode_coding_sjis, encode_coding_big5):
121 (decode_coding_charset): Remove vars that are set but not used.
122
123 * bytecode.c (Fbyte_code) [!defined BYTE_CODE_SAFE]: Remove var
124 that is set but not used.
125
126 * print.c (print_object): Remove var that is set but not used.
127
128 Replace 2 copies of readlink code with 1 gnulib version (Bug#8401).
129 The gnulib version avoids calling malloc in the usual case,
130 and on 64-bit hosts doesn't have some arbitrary 32-bit limits.
131 * fileio.c (Ffile_symlink_p): Use emacs_readlink.
132 * filelock.c (current_lock_owner): Likewise.
133 * lisp.h (READLINK_BUFSIZE, emacs_readlink): New function.
134 * sysdep.c: Include allocator.h, careadlinkat.h.
135 (emacs_no_realloc_allocator): New static constant.
136 (emacs_readlink): New function.
137 * deps.mk (sysdep.o): Depend on ../lib/allocator.h and on
138 ../lib/careadlinkat.h.
139
140 2011-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
141
142 Add lexical binding.
143
144 * window.c (Ftemp_output_buffer_show): New fun.
145 (Fsave_window_excursion):
146 * print.c (Fwith_output_to_temp_buffer): Move to subr.el.
147
148 * lread.c (lisp_file_lexically_bound_p): New function.
149 (Fload): Bind Qlexical_binding.
150 (readevalloop): Remove `evalfun' arg.
151 Bind Qinternal_interpreter_environment.
152 (Feval_buffer): Bind Qlexical_binding.
153 (defvar_int, defvar_bool, defvar_lisp_nopro, defvar_kboard):
154 Mark as dynamic.
155 (syms_of_lread): Declare `lexical-binding'.
156
157 * lisp.h (struct Lisp_Symbol): New field `declared_special'.
158
159 * keyboard.c (eval_dyn): New fun.
160 (menu_item_eval_property): Use it.
161
162 * image.c (parse_image_spec): Use Ffunctionp.
163
164 * fns.c (concat, mapcar1): Accept byte-code-functions.
165
166 * eval.c (Fsetq): Handle lexical vars.
167 (Fdefun, Fdefmacro, Ffunction): Make closures when needed.
168 (Fdefconst, Fdefvaralias, Fdefvar): Mark as dynamic.
169 (FletX, Flet): Obey lexical binding.
170 (Fcommandp): Handle closures.
171 (Feval): New `lexical' arg.
172 (eval_sub): New function extracted from Feval. Use it almost
173 everywhere where Feval was used. Look up vars in lexical env.
174 Handle closures.
175 (Ffunctionp): Move from subr.el.
176 (Ffuncall): Handle closures.
177 (apply_lambda): Remove `eval_flags'.
178 (funcall_lambda): Handle closures and new byte-code-functions.
179 (Fspecial_variable_p): New function.
180 (syms_of_eval): Initialize the Vinternal_interpreter_environment var,
181 but without exporting it to Lisp.
182
183 * doc.c (Fdocumentation, store_function_docstring):
184 * data.c (Finteractive_form): Handle closures.
185
186 * callint.c (Fcall_interactively): Preserve lexical-binding mode for
187 interactive spec.
188
189 * bytecode.c (Bstack_ref, Bstack_set, Bstack_set2, BdiscardN): New
190 byte-codes.
191 (exec_byte_code): New function extracted from Fbyte_code to handle new
192 calling convention for byte-code-functions. Add new byte-codes.
193
194 * buffer.c (defvar_per_buffer): Set new `declared_special' field.
195
196 * alloc.c (Fmake_symbol): Init new `declared_special' field.
197
198 2011-03-31 Juanma Barranquero <lekktu@gmail.com>
199
200 * xdisp.c (redisplay_internal): Fix prototype.
201
202 2011-03-31 Eli Zaretskii <eliz@gnu.org>
203
204 * xdisp.c (SCROLL_LIMIT): New macro.
205 (try_scrolling): Use it when setting scroll_limit. Limit
206 scrolling to 100 screen lines.
207 (redisplay_window): Even when falling back on "recentering",
208 position point in the window according to scroll-conservatively,
209 scroll-margin, and scroll-*-aggressively variables. (Bug#6671)
210
211 (try_scrolling): When point is above the window, allow searching
212 as far as scroll_max, or one screenful, to compute vertical
213 distance from PT to the scroll margin position. This prevents
214 try_scrolling from unnecessarily failing when
215 scroll-conservatively is set to a value slightly larger than the
216 window height. Clean up the case of PT below the margin at bottom
217 of window: scroll_max can no longer be INT_MAX. When aggressive
218 scrolling is in use, don't let point enter the opposite scroll
219 margin as result of the scroll.
220 (syms_of_xdisp) <scroll-conservatively>: Document the
221 threshold of 100 lines for never-recentering scrolling.
222
223 2011-03-31 Juanma Barranquero <lekktu@gmail.com>
224
225 * dispextern.h (move_it_by_lines):
226 * xdisp.c (move_it_by_lines): Remove parameter `need_y_p', unused
227 since 2000-12-29T14:24:09Z!gerd@gnu.org. All callers changed.
228 (message_log_check_duplicate): Remove parameters `prev_bol' and
229 `this_bol', unused since 1998-01-01T02:27:27Z!rms@gnu.org. All callers changed.
230 (redisplay_internal): Remove parameter `preserve_echo_area',
231 unused since 1999-07-21T21:43:52Z!gerd@gnu.org. All callers changed.
232
233 * indent.c (Fvertical_motion):
234 * window.c (window_scroll_pixel_based, Frecenter):
235 Don't pass `need_y_p' to `move_it_by_lines'.
236
237 2011-03-30 Stefan Monnier <monnier@iro.umontreal.ca>
238
239 * eval.c (struct backtrace): Don't cheat with negative numbers, but do
240 steal a few bits to be more compact.
241 (interactive_p, Fbacktrace, Fbacktrace_frame, mark_backtrace):
242 Remove unneeded casts.
243
244 * bytecode.c (Fbyte_code): CAR and CDR can GC.
245
246 2011-03-30 Zachary Kanfer <zkanfer@gmail.com> (tiny change)
247
248 * keyboard.c (Fexecute_extended_command): Do log the "suggest key
249 binding" message (bug#7967).
250
251 2011-03-30 Paul Eggert <eggert@cs.ucla.edu>
252
253 Fix more problems found by GCC 4.6.0's static checks.
254
255 * unexelf.c (unexec) [! (defined _SYSTYPE_SYSV || defined __sgi)]:
256 Remove unused local var.
257
258 * editfns.c (Fmessage_box): Remove unused local var.
259
260 * xdisp.c (try_window_reusing_current_matrix, x_produce_glyphs):
261 (note_mode_line_or_margin_highlight, note_mouse_highlight):
262 Omit unused local vars.
263 * window.c (shrink_windows): Omit unused local var.
264 * menu.c (digest_single_submenu): Omit unused local var.
265 * dispnew.c (update_window) [PERIODIC_PREEMPTION_CHECKING]:
266 Omit unused local var.
267
268 * keyboard.c (parse_modifiers_uncached, parse_modifiers):
269 Don't assume string length fits in int.
270 (keyremap_step, read_key_sequence): Use size_t for sizes.
271 (read_key_sequence): Don't check last_real_key_start redundantly.
272
273 * callproc.c (Fcall_process, Fcall_process_region): Use SAFE_ALLOCA
274 instead of alloca (Bug#8344).
275
276 * eval.c (Fbacktrace): Don't assume nargs fits in int.
277 (Fbacktrace_frame): Don't assume nframes fits in int.
278
279 * syntax.c (scan_sexps_forward): Avoid pointer wraparound.
280
281 * xterm.c (x_make_frame_visible, same_x_server): Redo to avoid overflow
282 concerns.
283
284 * term.c (produce_glyphless_glyph): Remove unnecessary test.
285
286 * cm.c (calccost): Turn while-do into do-while, for clarity.
287
288 * keyboard.c (syms_of_keyboard): Use the same style as later
289 in this function when indexing through an array. This also
290 works around GCC bug 48267.
291
292 * image.c (tiff_load): Fix off-by-one image count (Bug#8336).
293
294 * xselect.c (x_check_property_data): Return correct size (Bug#8335).
295
296 * chartab.c (sub_char_table_ref_and_range): Redo for slight
297 efficiency gain, and to bypass a gcc -Wstrict-overflow warning.
298
299 * keyboard.c, keyboard.h (num_input_events): Now size_t.
300 This avoids undefined behavior on integer overflow, and is a bit
301 more convenient anyway since it is compared to a size_t variable.
302
303 Variadic C functions now count arguments with size_t, not int.
304 This avoids an unnecessary limitation on 64-bit machines, which
305 caused (substring ...) to crash on large vectors (Bug#8344).
306 * lisp.h (struct Lisp_Subr.function.aMANY): Now takes size_t, not int.
307 (DEFUN_ARGS_MANY, internal_condition_case_n, safe_call): Likewise.
308 All variadic functions and their callers changed accordingly.
309 (struct gcpro.nvars): Now size_t, not int. All uses changed.
310 * data.c (arith_driver, float_arith_driver): Likewise.
311 * editfns.c (general_insert_function): Likewise.
312 * eval.c (struct backtrace.nargs, interactive_p)
313 (internal_condition_case_n, run_hook_with_args, apply_lambda)
314 (funcall_lambda, mark_backtrace): Likewise.
315 * fns.c (concat): Likewise.
316 * frame.c (x_set_frame_parameters): Likewise.
317 * fns.c (get_key_arg): Now accepts and returns size_t, and returns
318 0 if not found, not -1. All callers changed.
319
320 * alloc.c (garbage_collect): Don't assume stack size fits in int.
321 (stack_copy_size): Now size_t, not int.
322 (stack_copy, stack_copy_size): Define only if MAX_SAVE_STACK > 0.
323
324 2011-03-28 Juanma Barranquero <lekktu@gmail.com>
325
326 * coding.c (encode_designation_at_bol): Remove parameter `charbuf_end',
327 unused since 2002-03-01T01:17:24Z!handa@m17n.org and 2008-02-01T16:01:31Z!miles@gnu.org.
328 All callers changed.
329
330 * lisp.h (multibyte_char_to_unibyte):
331 * character.c (multibyte_char_to_unibyte): Remove parameter `rev_tbl',
332 unused since 2002-03-01T01:16:34Z!handa@m17n.org and 2008-02-01T16:01:31Z!miles@gnu.org.
333 * character.h (CHAR_TO_BYTE8):
334 * cmds.c (internal_self_insert):
335 * editfns.c (general_insert_function):
336 * keymap.c (push_key_description):
337 * search.c (Freplace_match):
338 * xdisp.c (message_dolog, set_message_1): All callers changed.
339
340 2011-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
341
342 * keyboard.c (safe_run_hook_funcall): New function.
343 (safe_run_hooks_1, safe_run_hooks_error, safe_run_hooks): On error,
344 don't set the hook to nil, but remove the offending function instead.
345 (Qcommand_hook_internal): Remove, unused.
346 (syms_of_keyboard): Don't initialize Qcommand_hook_internal nor define
347 Vcommand_hook_internal.
348
349 * eval.c (enum run_hooks_condition): Remove.
350 (funcall_nil, funcall_not): New functions.
351 (run_hook_with_args): Call each function through a `funcall' argument.
352 Remove `cond' argument, now redundant.
353 (Frun_hooks, Frun_hook_with_args, Frun_hook_with_args_until_success)
354 (Frun_hook_with_args_until_failure): Adjust accordingly.
355 (run_hook_wrapped_funcall, Frun_hook_wrapped): New functions.
356
357 2011-03-28 Juanma Barranquero <lekktu@gmail.com>
358
359 * dispextern.h (string_buffer_position): Remove declaration.
360
361 * print.c (strout): Remove parameter `multibyte', unused since
362 1999-08-21T19:30:21Z!gerd@gnu.org. All callers changed.
363
364 * search.c (boyer_moore): Remove parameters `len', `pos' and `lim',
365 never used since function introduction in 1998-02-08T21:33:56Z!rms@gnu.org.
366 All callers changed.
367
368 * w32.c (_wsa_errlist): Use braces for struct initializers.
369
370 * xdisp.c (string_buffer_position_lim): Remove parameter `w',
371 never used since function introduction in 2001-03-09T18:41:50Z!gerd@gnu.org.
372 All callers changed.
373 (string_buffer_position): Likewise. Also, make static (it's never
374 used outside xdisp.c).
375 (cursor_row_p): Remove parameter `w', unused since
376 2000-10-17T16:08:57Z!gerd@gnu.org. All callers changed.
377 (decode_mode_spec): Remove parameter `precision', introduced during
378 Gerd Moellmann's rewrite at 1999-07-21T21:43:52Z!gerd@gnu.org, but never used.
379 All callers changed.
380
381 2011-03-27 Jan Djärv <jan.h.d@swipnet.se>
382
383 * nsterm.m (syms_of_nsterm): Use doc: for ns-auto-hide-menu-bar.
384
385 2011-03-27 Anders Lindgren <andlind@gmail.com>
386
387 * nsterm.m (ns_menu_bar_is_hidden): New variable.
388 (ns_constrain_all_frames, ns_menu_bar_should_be_hidden)
389 (ns_update_auto_hide_menu_bar): New functions.
390 (ns_update_begin): Call ns_update_auto_hide_menu_bar.
391 (applicationDidBecomeActive): Call ns_update_auto_hide_menu_bar and
392 ns_constrain_all_frames.
393 (constrainFrameRect): Return at once if ns_menu_bar_should_be_hidden.
394 (syms_of_nsterm): DEFVAR ns-auto-hide-menu-bar, init to Qnil.
395
396 2011-03-27 Jan Djärv <jan.h.d@swipnet.se>
397
398 * nsmenu.m (runDialogAt): Remove argument to timer_check.
399
400 2011-03-27 Glenn Morris <rgm@gnu.org>
401
402 * syssignal.h: Replace RETSIGTYPE with void.
403 * atimer.c, data.c, dispnew.c, emacs.c, floatfns.c, keyboard.c:
404 * keyboard.h, lisp.h, process.c, sysdep.c, xterm.c:
405 Replace SIGTYPE with void everywhere.
406 * s/usg5-4-common.h (SIGTYPE): Remove definition.
407 * s/template.h (SIGTYPE): Remove commented out definition.
408
409 2011-03-26 Eli Zaretskii <eliz@gnu.org>
410
411 * xdisp.c (redisplay_window): Don't check buffer's clip_changed
412 flag as a prerequisite for invoking try_scrolling. (Bug#6671)
413
414 2011-03-26 Juanma Barranquero <lekktu@gmail.com>
415
416 * w32.c (read_unc_volume): Use parameter `henum', instead of
417 global variable `wget_enum_handle'.
418
419 * keymap.c (describe_vector): Remove parameters `indices' and
420 `char_table_depth', unused since 2002-03-01T01:43:26Z!handa@m17n.org.
421 (describe_map, Fdescribe_vector): Adjust calls to `describe_vector'.
422
423 * keyboard.h (timer_check, show_help_echo): Remove unused parameters.
424
425 * keyboard.c (timer_check): Remove parameter `do_it_now',
426 unused since 1996-04-12T06:01:29Z!rms@gnu.org.
427 (show_help_echo): Remove parameter `ok_to_overwrite_keystroke_echo',
428 unused since 2008-04-19T19:30:53Z!monnier@iro.umontreal.ca.
429
430 * keyboard.c (read_char):
431 * w32menu.c (w32_menu_display_help):
432 * xmenu.c (show_help_event, menu_help_callback):
433 Adjust calls to `show_help_echo'.
434
435 * gtkutil.c (xg_maybe_add_timer):
436 * keyboard.c (readable_events):
437 * process.c (wait_reading_process_output):
438 * xmenu.c (x_menu_wait_for_event): Adjust calls to `timer_check'.
439
440 * insdel.c (adjust_markers_gap_motion):
441 Remove; no-op since 1998-01-02T21:29:48Z!rms@gnu.org.
442 (gap_left, gap_right): Don't call it.
443
444 2011-03-25 Chong Yidong <cyd@stupidchicken.com>
445
446 * xdisp.c (handle_fontified_prop): Discard changes to clip_changed
447 incurred during fontification.
448
449 2011-03-25 Juanma Barranquero <lekktu@gmail.com>
450
451 * buffer.c (defvar_per_buffer): Remove unused parameter `doc'.
452 (DEFVAR_PER_BUFFER): Don't pass it.
453
454 * dispnew.c (row_equal_p, add_row_entry): Remove unused parameter `w'.
455 (scrolling_window): Don't pass it.
456
457 2011-03-25 Juanma Barranquero <lekktu@gmail.com>
458
459 * dispextern.h (glyph_matric): Use #if GLYPH_DEBUG, not #ifdef.
460
461 * fileio.c (check_executable) [DOS_NT]: Remove unused variables `len'
462 and `suffix'.
463 (Fset_file_selinux_context) [HAVE_LIBSELINUX]: Move here declaration
464 of variables specific to SELinux and computation of `encoded_absname'.
465
466 * image.c (XPutPixel): Remove unused variable `height'.
467
468 * keyboard.c (make_lispy_event): Remove unused variable `hpos'.
469
470 * unexw32.c (get_section_info): Remove unused variable `section'.
471
472 * w32.c (stat): Remove unused variables `drive_root' and `devtype'.
473 (system_process_attributes): Remove unused variable `sess'.
474 (sys_read): Remove unused variable `err'.
475
476 * w32fns.c (top): Wrap variables with #if GLYPH_DEBUG, not #ifdef.
477 (w32_wnd_proc): Remove unused variable `isdead'.
478 (unwind_create_frame): Use #if GLYPH_DEBUG, not #ifdef.
479 (Fx_server_max_request_size): Remove unused variable `dpyinfo'.
480 (x_create_tip_frame): Remove unused variable `tem'.
481
482 * w32inevt.c (w32_console_read_socket):
483 Remove unused variable `no_events'.
484
485 * w32term.c (x_draw_composite_glyph_string_foreground):
486 Remove unused variable `width'.
487
488 2011-03-24 Juanma Barranquero <lekktu@gmail.com>
489
490 * w32term.c (x_set_glyph_string_clipping):
491 Don't pass uninitialized region to CombineRgn.
492
493 2011-03-23 Juanma Barranquero <lekktu@gmail.com>
494
495 * w32fns.c (x_set_menu_bar_lines): Remove unused variable `olines'.
496 (w32_wnd_proc): Pass NULL to Windows API, not uninitialized buffer.
497 (Fx_close_connection): Remove unused variable `i'.
498
499 * w32font.c (w32font_draw): Return number of glyphs.
500 (w32font_open_internal): Remove unused variable `i'.
501 (w32font_driver): Add missing initializer.
502
503 * w32menu.c (utf8to16): Remove unused variable `utf16'.
504 (fill_in_menu): Remove unused variable `items_added'.
505
506 * w32term.c (last_mouse_press_frame): Remove static global variable.
507 (w32_clip_to_row): Remove unused variable `f'.
508 (x_delete_terminal): Remove unused variable `i'.
509
510 * w32uniscribe.c (uniscribe_shape): Remove unused variable `nclusters'.
511 (NOTHING): Remove unused static global variable.
512 (uniscribe_check_otf): Remove unused variable `table'.
513 (uniscribe_font_driver): Add missing initializers.
514
515 2011-03-23 Julien Danjou <julien@danjou.info>
516
517 * term.c (Fsuspend_tty, Fresume_tty):
518 * minibuf.c (read_minibuf, run_exit_minibuf_hook):
519 * window.c (temp_output_buffer_show):
520 * insdel.c (signal_before_change):
521 * frame.c (Fhandle_switch_frame):
522 * fileio.c (Fdo_auto_save):
523 * emacs.c (Fkill_emacs):
524 * editfns.c (save_excursion_restore):
525 * cmds.c (internal_self_insert):
526 * callint.c (Fcall_interactively):
527 * buffer.c (Fkill_all_local_variables):
528 * keyboard.c (Fcommand_execute, Fsuspend_emacs, safe_run_hooks_1):
529 Use Frun_hooks.
530 (command_loop_1): Use Frun_hooks. Call safe_run_hooks
531 unconditionnaly since it does the check itself.
532
533 2011-03-23 Paul Eggert <eggert@cs.ucla.edu>
534
535 Fix more problems found by GCC 4.5.2's static checks.
536
537 * coding.c (encode_coding_raw_text): Avoid unnecessary test
538 the first time through the loop, since we know p0 < p1 then.
539 This also avoids a gcc -Wstrict-overflow warning.
540
541 * lisp.h (SAFE_ALLOCA, SAFE_ALLOCA_LISP): Avoid 'int' overflow
542 leading to a memory leak, possible in functions like
543 load_charset_map_from_file that can allocate an unbounded number
544 of objects (Bug#8318).
545
546 * xmenu.c (set_frame_menubar): Use EMACS_UINT, not int, for indexes
547 that could (at least in theory) be that large.
548
549 * xdisp.c (message_log_check_duplicate): Return unsigned long, not int.
550 This is less likely to overflow, and avoids undefined behavior if
551 overflow does occur. All callers changed. Use strtoul to scan
552 for the unsigned long integer.
553 (pint2hrstr): Simplify and tune code slightly.
554 This also avoids a (bogus) GCC warning with gcc -Wstrict-overflow.
555
556 * scroll.c (do_scrolling): Work around GCC bug 48228.
557 See <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48228>.
558
559 * frame.c (Fmodify_frame_parameters): Simplify loop counter.
560 This also avoids a warning with gcc -Wstrict-overflow.
561 (validate_x_resource_name): Simplify count usage.
562 This also avoids a warning with gcc -Wstrict-overflow.
563
564 * fileio.c (Fcopy_file): Report error if fchown or fchmod
565 fail (Bug#8306).
566
567 * emacs.c (Fdaemon_initialized): Do not ignore I/O errors (Bug#8303).
568
569 * process.c (Fmake_network_process): Use socklen_t, not int,
570 where POSIX says socklen_t is required in portable programs.
571 This fixes a porting bug on hosts like 64-bit HP-UX, where
572 socklen_t is wider than int (Bug#8277).
573 (Fmake_network_process, server_accept_connection):
574 (wait_reading_process_output, read_process_output):
575 Likewise.
576
577 * process.c: Rename or move locals to avoid shadowing.
578 (list_processes_1, Fmake_network_process):
579 (read_process_output_error_handler, exec_sentinel_error_handler):
580 Rename or move locals.
581 (Fmake_network_process): Define label "retry_connect" only if needed.
582 (Fnetwork_interface_info): Fix pointer signedness.
583 (process_send_signal): Add cast to avoid pointer signedness problem.
584 (FIRST_PROC_DESC, IF_NON_BLOCKING_CONNECT): Remove unused macros.
585 (create_process): Use 'volatile' to avoid vfork clobbering (Bug#8298).
586
587 Make tparam.h and terminfo.c consistent.
588 * cm.c (tputs, tgoto, BC, UP): Remove extern decls.
589 Include tparam.h instead, since it declares them.
590 * cm.h (PC): Remove extern decl; tparam.h now does this.
591 * deps.mk (cm.o, terminfo.o): Depend on tparam.h.
592 * terminfo.c: Include tparam.h, to check interfaces.
593 (tparm): Make 1st arg a const pointer in decl. Put it at top level.
594 (tparam): Adjust signature to match interface in tparam.h;
595 this removes some undefined behavior. Check that outstring and len
596 are zero, which they always are with Emacs.
597 * tparam.h (PC, BC, UP): New extern decls.
598
599 * xftfont.c (xftfont_shape): Now static, and defined only if needed.
600 (xftfont_open): Rename locals to avoid shadowing.
601
602 * ftfont.c (ftfont_resolve_generic_family): Fix pointer signedness.
603 (ftfont_otf_capability, ftfont_shape): Omit decls if not needed.
604 (OTF_TAG_SYM): Omit macro if not needed.
605 (ftfont_list): Remove unused local.
606 (get_adstyle_property, ftfont_pattern_entity):
607 (ftfont_lookup_cache, ftfont_open, ftfont_anchor_point):
608 Rename locals to avoid shadowing.
609
610 * xfont.c (xfont_list_family): Mark var as initialized.
611
612 * xml.c (make_dom): Now static.
613
614 * composite.c (composition_compute_stop_pos): Rename local to
615 avoid shadowing.
616 (composition_reseat_it): Remove unused locals.
617 (find_automatic_composition, composition_adjust_point): Likewise.
618 (composition_update_it): Mark var as initialized.
619 (find_automatic_composition): Mark vars as initialized,
620 with a FIXME (Bug#8290).
621
622 character.h: Rename locals to avoid shadowing.
623 * character.h (PREV_CHAR_BOUNDARY, FETCH_STRING_CHAR_ADVANCE):
624 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE, FETCH_CHAR_ADVANCE):
625 (FETCH_CHAR_ADVANCE_NO_CHECK, INC_POS, DEC_POS, BUF_INC_POS):
626 (BUF_DEC_POS): Be more systematic about renaming local temporaries
627 to avoid shadowing.
628
629 * textprop.c (property_change_between_p): Remove; unused.
630
631 * intervals.c (interval_start_pos): Now static.
632
633 * intervals.h (CHECK_TOTAL_LENGTH): Avoid empty "else".
634
635 * atimer.c (start_atimer, append_atimer_lists, set_alarm):
636 Rename locals to avoid shadowing.
637
638 * sound.c (wav_play, au_play, Fplay_sound_internal):
639 Fix pointer signedness.
640 (alsa_choose_format): Remove unused local var.
641 (wav_play): Initialize a variable to 0, to prevent undefined
642 behavior (Bug#8278).
643
644 * region-cache.c (insert_cache_boundary): Redo var to avoid shadowing.
645
646 * region-cache.h (pp_cache): New decl, for gcc -Wmissing-prototypes.
647
648 * callproc.c (Fcall_process): Use 'volatile' to avoid vfork
649 clobbering (Bug#8298).
650 * sysdep.c (sys_subshell): Likewise.
651 Previously, the sys_subshell 'volatile' was incorrectly IF_LINTted out.
652
653 * lisp.h (child_setup): Now NO_RETURN unless DOS_NT.
654 This should get cleaned up, so that child_setup has the
655 same signature on all platforms.
656
657 * callproc.c (call_process_cleanup): Now static.
658 (relocate_fd): Rename locals to avoid shadowing.
659
660 2011-03-22 Chong Yidong <cyd@stupidchicken.com>
661
662 * xterm.c (x_clear_frame): Remove XClearWindow call. This appears
663 not to be necessary, and produces flickering.
664
665 2011-03-20 Glenn Morris <rgm@gnu.org>
666
667 * config.in: Remove file.
668
669 2011-03-20 Juanma Barranquero <lekktu@gmail.com>
670
671 * minibuf.c (Vcompleting_read_function): Don't declare, global variables
672 are now in src/globals.h.
673 (syms_of_minibuf): Remove spurious & from previous change.
674
675 2011-03-20 Leo <sdl.web@gmail.com>
676
677 * minibuf.c (completing-read-function): New variable.
678 (completing-read-default): Rename from completing-read.
679 (completing-read): Call completing-read-function.
680
681 2011-03-19 Juanma Barranquero <lekktu@gmail.com>
682
683 * xfaces.c (Fx_load_color_file):
684 Read color file from absolute filename (bug#8250).
685
686 2011-03-19 Juanma Barranquero <lekktu@gmail.com>
687
688 * makefile.w32-in: Update dependencies.
689
690 2011-03-17 Eli Zaretskii <eliz@gnu.org>
691
692 * makefile.w32-in ($(BLD)/unexw32.$(O)): Depend on $(SRC)/unexec.h.
693
694 2011-03-17 Paul Eggert <eggert@cs.ucla.edu>
695
696 Fix more problems found by GCC 4.5.2's static checks.
697
698 * process.c (make_serial_process_unwind, send_process_trap):
699 (sigchld_handler): Now static.
700
701 * process.c (allocate_pty): Let PTY_ITERATION declare iteration vars.
702 That way, the code declares only the vars that it needs.
703 * s/aix4-2.h (PTY_ITERATION): Declare iteration vars.
704 * s/cygwin.h (PTY_ITERATION): Likewise.
705 * s/darwin.h (PTY_ITERATION): Likewise.
706 * s/gnu-linux.h (PTY_ITERATION): Likewise.
707
708 * s/irix6-5.h (PTY_OPEN): Declare stb, to loosen coupling.
709 * process.c (allocate_pty): Don't declare stb unless it's needed.
710
711 * bytecode.c (MAYBE_GC): Rewrite so as not to use empty "else".
712 (CONSTANTLIM): Remove; unused.
713 (METER_CODE, Bscan_buffer, Bread_char, Bset_mark):
714 Define only if needed.
715
716 * unexelf.c (unexec): Name an expression,
717 to avoid gcc -Wbad-function-cast warning.
718 Use a different way to cause a compilation error if anyone uses
719 n rather than nn, a way that does not involve shadowing.
720 (ELF_BSS_SECTION_NAME, OLD_PROGRAM_H): Remove; unused.
721
722 * deps.mk (unexalpha.o): Remove; unused.
723
724 New file unexec.h, the (simple) interface for unexec (Bug#8267).
725 * unexec.h: New file.
726 * deps.mk (emacs.o, unexaix.o, unexcw.o, unexcoff.o, unexelf.o):
727 (unexhp9k800.o, unexmacosx.o, unexsol.o, unexw32.o):
728 Depend on unexec.h.
729 * emacs.c [!defined CANNOT_DUMP]: Include unexec.h.
730 * unexaix.c, unexcoff.c, unexcw.c, unexelf.c, unexhp9k800.c:
731 * unexmacosx.c, unexsol.c, unexw32.c: Include unexec.h.
732 Change as necessary to match prototype in unexec.h.
733
734 * syntax.c (Fforward_comment, scan_lists): Rename locals to avoid
735 shadowing.
736 (back_comment, skip_chars): Mark vars as initialized.
737
738 * character.h (FETCH_STRING_CHAR_ADVANCE_NO_CHECK, BUF_INC_POS):
739 Rename locals to avoid shadowing.
740
741 * lread.c (read1): Rewrite so as not to use empty "else".
742 (Fload, readevalloop, read1): Rename locals to avoid shadowing.
743
744 * print.c (Fredirect_debugging_output): Fix pointer signedess.
745
746 * lisp.h (debug_output_compilation_hack): Add decl here, to avoid
747 warning when compiling print.c.
748
749 * font.c (font_unparse_fcname): Abort in an "impossible" situation
750 instead of using an uninitialized var.
751 (font_sort_entities): Mark var as initialized.
752
753 * character.h (FETCH_CHAR_ADVANCE): Rename locals to avoid shadowing.
754
755 * font.c (font_unparse_xlfd): Don't mix pointers to variables with
756 pointers to constants.
757 (font_parse_fcname): Remove unused vars.
758 (font_delete_unmatched): Now static.
759 (font_get_spec): Remove; unused.
760 (font_style_to_value, font_prop_validate_style, font_unparse_fcname):
761 (font_update_drivers, Ffont_get_glyphs, font_add_log):
762 Rename or move locals to avoid shadowing.
763
764 * fns.c (require_nesting_list, require_unwind): Now static.
765 (Ffillarray): Rename locals to avoid shadowing.
766
767 * floatfns.c (domain_error2): Define only if needed.
768 (Ffrexp, Fldexp): Rename locals to avoid shadowing.
769
770 * alloc.c (mark_backtrace): Move decl from here ...
771 * lisp.h: ... to here, so that it can be checked.
772
773 * eval.c (call_debugger, do_debug_on_call, grow_specpdl): Now static.
774 (Fdefvar): Rewrite so as not to use empty "else".
775 (lisp_indirect_variable): Name an expression,
776 to avoid gcc -Wbad-function-cast warning.
777 (Fdefvar): Rename locals to avoid shadowing.
778
779 * callint.c (quotify_arg, quotify_args): Now static.
780 (Fcall_interactively): Rename locals to avoid shadowing.
781 Use const pointer when appropriate.
782
783 * lisp.h (get_system_name, get_operating_system_release):
784 Move decls here, to check interfaces.
785 * process.c (get_operating_system_release): Move decl to lisp.h.
786 * xrdb.c (get_system_name): Likewise.
787 * editfns.c (init_editfns, Fuser_login_name, Fuser_uid):
788 (Fuser_real_uid, Fuser_full_name): Remove unnecessary casts,
789 some of which prompt warnings from gcc -Wbad-function-cast.
790 (Fformat_time_string, Fencode_time, Finsert_char):
791 (Ftranslate_region_internal, Fformat):
792 Rename or remove local vars to avoid shadowing.
793 (Ftranslate_region_internal): Mark var as initialized.
794
795 * doc.c (Fdocumentation, Fsnarf_documentation): Move locals to
796 avoid shadowing.
797
798 * lisp.h (eassert): Check that the argument compiles, even if
799 ENABLE_CHECKING is not defined.
800
801 * data.c (Findirect_variable): Name an expression, to avoid
802 gcc -Wbad-function-cast warning.
803 (default_value, arithcompare, arith_driver, arith_error): Now static.
804 (store_symval_forwarding): Rename local to avoid shadowing.
805 (Fmake_variable_buffer_local, Fmake_local_variable):
806 Mark variables as initialized.
807 (do_blv_forwarding, do_symval_forwarding): Remove; unused.
808
809 * alloc.c (check_cons_list): Do not define unless GC_CHECK_CONS_LIST.
810 (Fmake_vector, Fvector, Fmake_byte_code, Fgarbage_collect):
811 Rename locals to avoid shadowing.
812 (mark_stack): Move local variables into the #ifdef region where
813 they're used.
814 (BLOCK_INPUT_ALLOC, UNBLOCK_INPUT_ALLOC): Define only if
815 ! defined SYSTEM_MALLOC && ! defined SYNC_INPUT, as they are not
816 needed otherwise.
817 (CHECK_ALLOCATED): Define only if GC_CHECK_MARKED_OBJECTS.
818 (GC_STRING_CHARS): Remove; not used.
819 (Fmemory_limit): Cast sbrk's returned value to char *.
820
821 * lisp.h (check_cons_list): Declare if GC_CHECK_CONS_LIST; this
822 avoids undefined behavior in theory.
823
824 * regex.c (IF_LINT): Add defn, for benefit of ../lib-src.
825
826 Use functions, not macros, for up- and down-casing (Bug#8254).
827 * buffer.h (DOWNCASE_TABLE, UPCASE_TABLE, DOWNCASE, UPPERCASEP):
828 (NOCASEP, LOWERCASEP, UPCASE, UPCASE1): Remove. All callers changed
829 to use the following functions instead of these macros.
830 (downcase): Adjust to lack of DOWNCASE_TABLE. Return int, not
831 EMACS_INT, since callers assume the returned value fits in int.
832 (upcase1): Likewise, for UPCASE_TABLE.
833 (uppercasep, lowercasep, upcase): New static inline functions.
834 * editfns.c (Fchar_equal): Remove no-longer-needed workaround for
835 the race-condition problem in the old DOWNCASE.
836
837 * regex.c (CHARSET_LOOKUP_RANGE_TABLE_RAW, POP_FAILURE_REG_OR_COUNT):
838 Rename locals to avoid shadowing.
839 (regex_compile, re_match_2_internal): Move locals to avoid shadowing.
840 (regex_compile, re_search_2, re_match_2_internal):
841 Remove unused local vars.
842 (FREE_VAR): Rewrite so as not to use empty "else",
843 which gcc can warn about.
844 (regex_compile, re_match_2_internal): Mark locals as initialized.
845 (RETALLOC_IF): Define only if needed.
846 (WORDCHAR_P): Likewise. This one is never needed, but is used
847 only in a comment talking about a compiler bug, so put inside
848 the #if 0 of that comment.
849 (CHARSET_LOOKUP_BITMAP, FAIL_STACK_FULL, RESET_FAIL_STACK):
850 (PUSH_FAILURE_ELT, BUF_PUSH_3, STOP_ADDR_VSTRING):
851 Remove; unused.
852
853 * search.c (boyer_moore): Rename locals to avoid shadowing.
854 * character.h (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE):
855 (PREV_CHAR_BOUNDARY): Likewise.
856
857 * search.c (simple_search): Remove unused var.
858
859 * dired.c (compile_pattern): Move decl from here ...
860 * lisp.h: ... to here, so that it can be checked.
861 (struct re_registers): New forward decl.
862
863 * character.h (INC_POS, DEC_POS): Rename locals to avoid shadowing.
864
865 * indent.c (MULTIBYTE_BYTES_WIDTH): New args bytes, width.
866 All uses changed.
867 (MULTIBYTE_BYTES_WIDTH, scan_for_column, compute_motion):
868 Rename locals to avoid shadowing.
869 (Fvertical_motion): Mark locals as initialized.
870
871 * casefiddle.c (casify_object, casify_region): Now static.
872 (casify_region): Mark local as initialized.
873
874 * cmds.c (internal_self_insert): Rename local to avoid shadowing.
875
876 * lisp.h (GCPRO2_VAR, GCPRO3_VAR, GCPRO4_VAR, GCPRO5_VAR, GCPRO6_VAR):
877 New macros, so that the caller can use some names other than
878 gcpro1, gcpro2, etc.
879 (GCPRO2, GCPRO3, GCPRO4, GCPRO5, GCPRO6): Reimplement in terms
880 of the new macros.
881 (GCPRO1_VAR, UNGCPRO_VAR): Change the meaning of the second
882 argument, for consistency with GCPRO2_VAR, etc: it is now the
883 prefix of the variable, not the variable itself. All uses
884 changed.
885 * dired.c (directory_files_internal, file_name_completion):
886 Rename locals to avoid shadowing.
887
888 Fix a race condition diagnosed by gcc -Wsequence-point (Bug#8254).
889 An expression of the form (DOWNCASE (x) == DOWNCASE (y)), found in
890 dired.c's scmp function, had undefined behavior.
891 * lisp.h (DOWNCASE_TABLE, UPCASE_TABLE, DOWNCASE, UPPERCASEP):
892 (NOCASEP, LOWERCASEP, UPCASE, UPCASE1): Move from here ...
893 * buffer.h: ... to here, because these macros use current_buffer,
894 and the new implementation with inline functions needs to have
895 current_buffer in scope now, rather than later when the macros
896 are used.
897 (downcase, upcase1): New static inline functions.
898 (DOWNCASE, UPCASE1): Reimplement using these functions.
899 This avoids undefined behavior in expressions like
900 DOWNCASE (x) == DOWNCASE (y), which previously suffered
901 from race conditions in accessing the global variables
902 case_temp1 and case_temp2.
903 * casetab.c (case_temp1, case_temp2): Remove; no longer needed.
904 * lisp.h (case_temp1, case_temp2): Remove their decls.
905 * character.h (ASCII_CHAR_P): Move from here ...
906 * lisp.h: ... to here, so that the inline functions mentioned
907 above can use them.
908
909 * dired.c (directory_files_internal_unwind): Now static.
910
911 * fileio.c (file_name_as_directory, directory_file_name):
912 (barf_or_query_if_file_exists, auto_save_error, auto_save_1):
913 Now static.
914 (file_name_as_directory): Use const pointers when appropriate.
915 (Fexpand_file_name): Likewise. In particular, newdir might
916 point at constant storage, so make it a const pointer.
917 (Fmake_directory_internal, Fread_file_name): Remove unused vars.
918 (Ffile_selinux_context, Fset_file_selinux_context): Fix pointer
919 signedness issues.
920 (Fset_file_times, Finsert_file_contents, auto_save_error):
921 Rename locals to avoid shadowing.
922
923 * minibuf.c (choose_minibuf_frame_1): Now static.
924 (Ftry_completion, Fall_completions): Rename or remove locals
925 to avoid shadowing.
926
927 * marker.c (bytepos_to_charpos): Remove; unused.
928
929 * lisp.h (verify_bytepos, count_markers): New decls,
930 so that gcc does not warn that these functions aren't declared.
931
932 * insdel.c (check_markers, make_gap_larger, make_gap_smaller):
933 (reset_var_on_error, Fcombine_after_change_execute_1): Now static.
934 (CHECK_MARKERS): Redo to avoid gcc -Wempty-body diagnostic.
935 (copy_text): Remove unused local var.
936
937 * filelock.c (within_one_second): Now static.
938 (lock_file_1): Rename local to avoid shadowing.
939
940 * buffer.c (fix_overlays_before): Mark locals as initialized.
941 (fix_start_end_in_overlays): Likewise. This function should be
942 simplified by using pointers-to-pointers, but that's a different
943 matter.
944 (switch_to_buffer_1): Now static.
945 (Fkill_buffer, record_buffer, Fbury_buffer, Fset_buffer_multibyte):
946 (report_overlay_modification): Rename locals to avoid shadowing.
947
948 * sysdep.c (system_process_attributes): Rename vars to avoid shadowing.
949 Fix pointer signedness issue.
950 (sys_subshell): Mark local as volatile if checking for lint,
951 to suppress a gcc -Wclobbered warning that does not seem to be right.
952 (MAXPATHLEN): Define only if needed.
953
954 * process.c (serial_open, serial_configure): Move decls from here ...
955 * systty.h: ... to here, so that they can be checked.
956
957 * fns.c (get_random, seed_random): Move extern decls from here ...
958 * lisp.h: ... to here, so that they can be checked.
959
960 * sysdep.c (reset_io): Now static.
961 (wait_for_termination_signal): Remove; unused.
962
963 * keymap.c (keymap_parent, keymap_memberp, map_keymap_internal):
964 (copy_keymap_item, append_key, push_text_char_description):
965 Now static.
966 (Fwhere_is_internal): Don't test CONSP (sequences) unnecessarily.
967 (DENSE_TABLE_SIZE): Remove; unused.
968 (get_keymap, access_keymap, Fdefine_key, Fwhere_is_internal):
969 (describe_map_tree):
970 Rename locals to avoid shadowing.
971
972 * keyboard.c: Declare functions static if they are not used elsewhere.
973 (echo_char, echo_dash, cmd_error, top_level_2):
974 (poll_for_input, handle_async_input): Now static.
975 (read_char, kbd_buffer_get_event, make_lispy_position):
976 (make_lispy_event, make_lispy_movement, apply_modifiers):
977 (decode_keyboard_code, tty_read_avail_input, menu_bar_items):
978 (parse_tool_bar_item, read_key_sequence, Fread_key_sequence):
979 (Fread_key_sequence_vector): Rename locals to avoid shadowing.
980 (read_key_sequence, read_char): Mark locals as initialized.
981 (Fexit_recursive_edit, Fabort_recursive_edit): Mark with NO_RETURN.
982
983 * keyboard.h (make_ctrl_char): New decl.
984 (mark_kboards): Move decl here ...
985 * alloc.c (mark_kboards): ... from here.
986
987 * lisp.h (force_auto_save_soon): New decl.
988
989 * emacs.c (init_cmdargs): Rename local to avoid shadowing.
990 (DEFINE_DUMMY_FUNCTION): New macro.
991 (__do_global_ctors, __do_global_ctors_aux, __do_global_dtors, __main):
992 Use it.
993 (main): Add casts to avoid warnings
994 if GCC considers string literals to be constants.
995
996 * lisp.h (fatal_error_signal): Add decl, since it's exported.
997
998 * dbusbind.c: Pointer signedness fixes.
999 (xd_signature, xd_append_arg, xd_initialize):
1000 (Fdbus_call_method, Fdbus_call_method_asynchronously):
1001 (Fdbus_method_return_internal, Fdbus_method_error_internal):
1002 (Fdbus_send_signal, xd_read_message_1, Fdbus_register_service):
1003 (Fdbus_register_signal): Use SSDATA when the context wants char *.
1004
1005 * dbusbind.c (Fdbus_init_bus): Add cast to avoid warning
1006 if GCC considers string literals to be constants.
1007 (Fdbus_register_service, Fdbus_register_method): Remove unused vars.
1008
1009 2011-03-16 Stefan Monnier <monnier@iro.umontreal.ca>
1010
1011 * print.c (PRINT_CIRCLE_CANDIDATE_P): New macro.
1012 (print_preprocess, print_object): New macro to fix last change.
1013
1014 * print.c (print_preprocess): Don't forget font objects.
1015
1016 2011-03-16 Juanma Barranquero <lekktu@gmail.com>
1017
1018 * emacs.c (USAGE3): Doc fixes.
1019
1020 2011-03-15 Andreas Schwab <schwab@linux-m68k.org>
1021
1022 * coding.c (detect_coding_iso_2022): Reorganize code to clarify
1023 structure.
1024
1025 2011-03-14 Juanma Barranquero <lekktu@gmail.com>
1026
1027 * lisp.h (VWindow_system, Qfile_name_history):
1028 * keyboard.h (lispy_function_keys) [WINDOWSNT]:
1029 * w32term.h (w32_system_caret_hwnd, w32_system_caret_height)
1030 (w32_system_caret_x, w32_system_caret_y): Declare extern.
1031
1032 * w32select.c: Don't #include "keyboard.h".
1033 (run_protected): Add extern declaration for waiting_for_input.
1034
1035 * w32.c (Qlocal, noninteractive1, inhibit_window_system):
1036 * w32console.c (detect_input_pending, read_input_pending)
1037 (encode_terminal_code):
1038 * w32fns.c (quit_char, lispy_function_keys, Qtooltip)
1039 (w32_system_caret_hwnd, w32_system_caret_height, w32_system_caret_x)
1040 (w32_system_caret_y, Qfile_name_history):
1041 * w32font.c (w32font_driver, QCantialias, QCotf, QClang):
1042 * w32inevt.c (reinvoke_input_signal, lispy_function_keys):
1043 * w32menu.c (Qmenu_bar, QCtoggle, QCradio, Qoverriding_local_map)
1044 (Qoverriding_terminal_local_map, Qmenu_bar_update_hook):
1045 * w32proc.c (Qlocal, report_file_error):
1046 * w32term.c (Vwindow_system, updating_frame):
1047 * w32uniscribe.c (initialized, uniscribe_font_driver):
1048 Remove unneeded extern declarations.
1049
1050 2011-03-14 Chong Yidong <cyd@stupidchicken.com>
1051
1052 * buffer.c (Fmake_indirect_buffer): Fix incorrect assertions.
1053
1054 2011-03-13 Chong Yidong <cyd@stupidchicken.com>
1055
1056 * buffer.h (BUF_BEGV, BUF_BEGV_BYTE, BUF_ZV, BUF_ZV_BYTE, BUF_PT)
1057 (BUF_PT_BYTE): Rewrite to handle indirect buffers (Bug#8219).
1058 These macros can no longer be used for assignment.
1059
1060 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
1061 Assign struct members directly, instead of using BUF_BEGV etc.
1062 (record_buffer_markers, fetch_buffer_markers): New functions for
1063 recording and fetching special buffer markers.
1064 (set_buffer_internal_1, set_buffer_temp): Use them.
1065
1066 * lread.c (unreadchar): Use SET_BUF_PT_BOTH.
1067
1068 * insdel.c (adjust_point): Use SET_BUF_PT_BOTH.
1069
1070 * intervals.c (temp_set_point_both): Use SET_BUF_PT_BOTH.
1071 (get_local_map): Use SET_BUF_BEGV_BOTH and SET_BUF_ZV_BOTH.
1072
1073 * xdisp.c (hscroll_window_tree):
1074 (reconsider_clip_changes): Use PT instead of BUF_PT.
1075
1076 2011-03-13 Eli Zaretskii <eliz@gnu.org>
1077
1078 * makefile.w32-in ($(BLD)/editfns.$(O)): Depend on
1079 $(EMACS_ROOT)/lib/intprops.h.
1080
1081 2011-03-13 Paul Eggert <eggert@cs.ucla.edu>
1082
1083 Fix more problems found by GCC 4.5.2's static checks.
1084
1085 * gtkutil.c (xg_get_pixbuf_from_pixmap): Add cast from char *
1086 to unsigned char * to avoid compiler diagnostic.
1087 (xg_free_frame_widgets): Make it clear that a local variable is
1088 needed only if USE_GTK_TOOLTIP.
1089 (gdk_window_get_screen): Make it clear that this macro is needed
1090 only if USE_GTK_TOOLTIP.
1091 (int_gtk_range_get_value): New function, which avoids a diagnostic
1092 from gcc -Wbad-function-cast.
1093 (xg_set_toolkit_scroll_bar_thumb): Use it.
1094 (xg_tool_bar_callback, xg_tool_item_stale_p): Rewrite to avoid
1095 diagnostic from gcc -Wbad-function-cast.
1096 (get_utf8_string, xg_get_file_with_chooser):
1097 Rename locals to avoid shadowing.
1098 (create_dialog): Move locals to avoid shadowing.
1099
1100 * xgselect.c (xg_select): Remove unused var.
1101
1102 * image.c (four_corners_best): Mark locals as initialized.
1103 (gif_load): Initialize transparent_p to zero (Bug#8238).
1104 Mark another local as initialized.
1105 (my_png_error, my_error_exit): Mark with NO_RETURN.
1106
1107 * image.c (clear_image_cache): Now static.
1108 (DIM, HAVE_STDLIB_H_1): Remove unused macros.
1109 (xpm_load): Redo to avoid "discards qualifiers" gcc warning.
1110 (x_edge_detection): Remove unnecessary cast that
1111 gcc -Wbad-function-cast diagnoses.
1112 (gif_load): Fix pointer signedness.
1113 (clear_image_cache, xbm_read_bitmap_data, x_detect_edges):
1114 (jpeg_load, gif_load): Rename locals to avoid shadowing.
1115
1116 2011-03-11 Paul Eggert <eggert@cs.ucla.edu>
1117
1118 Improve quality of tests for time stamp overflow.
1119 For example, without this patch (encode-time 0 0 0 1 1
1120 1152921504606846976) returns the obviously-bogus value (-948597
1121 62170) on my RHEL 5.5 x86-64 host. With the patch, it correctly
1122 reports time overflow. See
1123 <http://lists.gnu.org/archive/html/emacs-devel/2011-03/msg00470.html>.
1124 * deps.mk (editfns.o): Depend on ../lib/intprops.h.
1125 * editfns.c: Include limits.h and intprops.h.
1126 (TIME_T_MIN, TIME_T_MAX): New macros.
1127 (time_overflow): Move earlier, to before first use.
1128 (hi_time, lo_time): New functions, for an accurate test for
1129 out-of-range times.
1130 (Fcurrent_time, Fget_internal_run_time, make_time): Use them.
1131 (Fget_internal_run_time): Don't assume time_t fits in int.
1132 (make_time): Use list2 instead of Fcons twice.
1133 (Fdecode_time): More accurate test for out-of-range times.
1134 (check_tm_member): New function.
1135 (Fencode_time): Use it, to test for out-of-range times.
1136 (lisp_time_argument): Don't rely on undefined left-shift and
1137 right-shift behavior when checking for time stamp overflow.
1138
1139 * editfns.c (time_overflow): New function, refactoring common code.
1140 (Fformat_time_string, Fdecode_time, Fencode_time):
1141 (Fcurrent_time_string): Use it.
1142
1143 Move 'make_time' to be next to its inverse 'lisp_time_argument'.
1144 * dired.c (make_time): Move to ...
1145 * editfns.c (make_time): ... here.
1146 * systime.h: Note the move.
1147
1148 2011-03-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1149
1150 * fringe.c (update_window_fringes): Remove unused variables.
1151
1152 * unexmacosx.c (copy_data_segment): Also copy __got section.
1153 (Bug#8223)
1154
1155 2011-03-12 Eli Zaretskii <eliz@gnu.org>
1156
1157 * termcap.c [MSDOS]: Include "msdos.h".
1158 (find_capability, tgetnum, tgetflag, tgetstr, tputs, tgetent):
1159 Constify `char *' arguments and their references according to
1160 prototypes in tparam.h.
1161
1162 * deps.mk (termcap.o): Depend on tparam.h and msdos.h.
1163
1164 * msdos.c (XMenuAddPane): 3rd argument is `const char *' now.
1165 Adapt all references accordingly.
1166
1167 * msdos.h (XMenuAddPane): 3rd argument is `const char *' now.
1168
1169 2011-03-11 Tom Tromey <tromey@redhat.com>
1170
1171 * buffer.c (syms_of_buffer): Remove obsolete comment.
1172
1173 2011-03-11 Eli Zaretskii <eliz@gnu.org>
1174
1175 * termhooks.h (encode_terminal_code): Declare prototype.
1176
1177 * msdos.c (encode_terminal_code): Don't declare prototype.
1178
1179 * term.c (encode_terminal_code): Now external again, used by
1180 w32console.c and msdos.c.
1181
1182 * makefile.w32-in ($(BLD)/term.$(O), ($(BLD)/tparam.$(O)):
1183 Depend on $(SRC)/tparam.h, see 2011-03-11T07:24:21Z!eggert@cs.ucla.edu.
1184
1185 2011-03-11 Paul Eggert <eggert@cs.ucla.edu>
1186
1187 Fix some minor problems found by GCC 4.5.2's static checks.
1188
1189 * fringe.c (update_window_fringes): Mark locals as initialized
1190 (Bug#8227).
1191 (destroy_fringe_bitmap, init_fringe_bitmap): Now static.
1192
1193 * alloc.c (mark_fringe_data): Move decl from here ...
1194 * lisp.h (mark_fringe_data) [HAVE_WINDOW_SYSTEM]: ... to here,
1195 to check its interface.
1196 (init_fringe_once): Do not declare unless HAVE_WINDOW_SYSTEM.
1197
1198 * fontset.c (free_realized_fontset): Now static.
1199 (Fset_fontset_font): Rename local to avoid shadowing.
1200 (fontset_font): Mark local as initialized.
1201 (FONTSET_SPEC, FONTSET_REPERTORY, RFONT_DEF_REPERTORY): Remove; unused.
1202
1203 * xrdb.c: Include "xterm.h", to check x_load_resources's interface.
1204
1205 * xselect.c (x_disown_buffer_selections): Remove; not used.
1206 (TRACE3) [!defined TRACE_SELECTION]: Remove; not used.
1207 (x_own_selection, Fx_disown_selection_internal): Rename locals
1208 to avoid shadowing.
1209 (x_handle_dnd_message): Remove local to avoid shadowing.
1210
1211 * lisp.h (GCPRO1_VAR, UNGCPRO_VAR): New macros,
1212 so that the caller can use some name other than gcpro1.
1213 (GCPRO1, UNGCPRO): Reimplement in terms of the new macros.
1214 * xfns.c (Fx_create_frame, x_create_tip_frame, Fx_show_tip):
1215 (Fx_backspace_delete_keys_p):
1216 Use them to avoid shadowing, and rename vars to avoid shadowing.
1217 (x_decode_color, x_set_name, x_window): Now static.
1218 (Fx_create_frame): Add braces to silence GCC warning.
1219 (Fx_file_dialog, Fx_select_font): Fix pointer signedness.
1220 (x_real_positions, xg_set_icon_from_xpm_data, x_create_tip_frame):
1221 Remove unused locals.
1222 (Fx_create_frame, x_create_tip_frame, Fx_show_tip):
1223 (Fx_backspace_delete_keys_p): Rename locals to avoid shadowing.
1224 Some of these renamings use the new GCPRO1_VAR and UNGCPRO_VAR
1225 macros.
1226
1227 * xterm.h (x_mouse_leave): New decl.
1228
1229 * xterm.c (x_copy_dpy_color, x_focus_on_frame, x_unfocus_frame):
1230 Remove unused functions.
1231 (x_shift_glyphs_for_insert, XTflash, XTring_bell):
1232 (x_calc_absolute_position): Now static.
1233 (XTread_socket): Don't define label "out" unless it's used.
1234 Don't declare local "event" unless it's used.
1235 (x_iconify_frame, x_free_frame_resources): Don't declare locals
1236 unless they are used.
1237 (XEMBED_VERSION, xembed_set_info): Don't define unless needed.
1238 (x_fatal_error_signal): Remove; not used.
1239 (x_draw_image_foreground, redo_mouse_highlight, XTmouse_position):
1240 (x_scroll_bar_report_motion, handle_one_xevent, x_draw_bar_cursor):
1241 (x_error_catcher, x_connection_closed, x_error_handler):
1242 (x_error_quitter, xembed_send_message, x_iconify_frame):
1243 (my_log_handler): Rename locals to avoid shadowing.
1244 (x_delete_glyphs, x_ins_del_lines): Mark with NO_RETURN.
1245 (x_connection_closed): Tell GCC not to suggest NO_RETURN.
1246
1247 * xfaces.c (clear_face_cache, Fx_list_fonts, Fface_font):
1248 Rename or move locals to avoid shadowing.
1249 (tty_defined_color, merge_face_heights): Now static.
1250 (free_realized_faces_for_fontset): Remove; not used.
1251 (Fx_list_fonts): Mark variable that gcc -Wuninitialized
1252 does not deduce is never used uninitialized.
1253 (STRDUPA, LSTRDUPA, FONT_POINT_SIZE_QUANTUM): Remove; not used.
1254 (LFACEP): Define only if XASSERTS, as it's not needed otherwise.
1255
1256 * terminal.c (store_terminal_param): Now static.
1257
1258 * xmenu.c (menu_highlight_callback): Now static.
1259 (set_frame_menubar): Remove unused local.
1260 (xmenu_show): Rename parameter to avoid shadowing.
1261 (xmenu_show, xdialog_show, xmenu_show): Make local pointers "const"
1262 since they might point to immutable storage.
1263 (next_menubar_widget_id): Declare only if USE_X_TOOLKIT,
1264 since it's unused otherwise.
1265
1266 * xdisp.c (produce_glyphless_glyph): Initialize lower_xoff.
1267 Add a FIXME, since the code still doesn't look right. (Bug#8215)
1268 (Fcurrent_bidi_paragraph_direction): Simplify slightly; this
1269 avoids a gcc -Wuninitialized diagnostic.
1270 (display_line, BUILD_COMPOSITE_GLYPH_STRING, draw_glyphs):
1271 (note_mouse_highlight): Mark variables that gcc -Wuninitialized
1272 does not deduce are never used uninitialized.
1273
1274 * lisp.h (IF_LINT): New macro, copied from ../lib-src/emacsclient.c.
1275
1276 * xdisp.c (redisplay_window): Rename local to avoid shadowing.
1277 * window.c (window_loop, size_window):
1278 (run_window_configuration_change_hook, enlarge_window): Likewise.
1279
1280 * window.c (display_buffer): Now static.
1281 (size_window): Mark variables that gcc -Wuninitialized
1282 does not deduce are never used uninitialized.
1283 * window.h (check_all_windows): New decl, to forestall
1284 gcc -Wmissing-prototypes diagnostic.
1285 * dispextern.h (bidi_dump_cached_states): Likewise.
1286
1287 * charset.h (CHECK_CHARSET_GET_CHARSET): Rename locals to avoid
1288 shadowing.
1289 * charset.c (map_charset_for_dump, Fchar_charset): Likewise.
1290 Include <limits.h>.
1291 (Fsort_charsets): Redo min/max calculation to shorten the code a bit
1292 and to avoid gcc -Wuninitialized warning.
1293 (load_charset_map): Mark variables that gcc -Wuninitialized
1294 does not deduce are never used uninitialized.
1295 (load_charset): Abort instead of using uninitialized var (Bug#8229).
1296
1297 * coding.c (coding_set_source, coding_set_destination):
1298 Use "else { /* comment */ }" rather than "else /* comment */;"
1299 for clarity, and to avoid gcc -Wempty-body warning.
1300 (Fdefine_coding_system_internal): Don't redeclare 'i' inside
1301 a block, when the outer 'i' will do.
1302 (decode_coding_utf_8, decode_coding_utf_16, detect_coding_emacs_mule):
1303 (emacs_mule_char, decode_coding_emacs_mule, detect_coding_iso_2022):
1304 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5):
1305 (decode_coding_raw_text, decode_coding_charset, get_translation_table):
1306 (Fdecode_sjis_char, Fdefine_coding_system_internal):
1307 Rename locals to avoid shadowing.
1308 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
1309 * coding.c (emacs_mule_char, encode_invocation_designation):
1310 Now static, since they're not used elsewhere.
1311 (decode_coding_iso_2022): Add "default: abort ();" as a safety check.
1312 (decode_coding_object, encode_coding_object, detect_coding_system):
1313 (decode_coding_emacs_mule): Mark variables that gcc
1314 -Wuninitialized does not deduce are never used uninitialized.
1315 (detect_coding_iso_2022): Initialize a local variable that might
1316 be used uninitialized. Leave a FIXME because it's not clear that
1317 this initialization is needed. (Bug#8211)
1318 (ISO_CODE_LF, ISO_CODE_CR, CODING_ISO_FLAG_EUC_TW_SHIFT):
1319 (ONE_MORE_BYTE_NO_CHECK, UTF_BOM, UTF_16_INVALID_P):
1320 (SHIFT_OUT_OK, ENCODE_CONTROL_SEQUENCE_INTRODUCER):
1321 (ENCODE_DIRECTION_R2L, ENCODE_DIRECTION_L2R):
1322 Remove unused macros.
1323
1324 * category.c (hash_get_category_set): Remove unused local var.
1325 (copy_category_table): Now static, since it's not used elsewhere.
1326 * character.c (string_count_byte8): Likewise.
1327
1328 * ccl.c (CCL_WRITE_STRING, CCL_ENCODE_CHAR, Fccl_execute_on_string):
1329 (Fregister_code_conversion_map): Rename locals to avoid shadowing.
1330
1331 * chartab.c (copy_sub_char_table): Now static, since it's not used
1332 elsewhere.
1333 (sub_char_table_ref_and_range, char_table_ref_and_range):
1334 Rename locals to avoid shadowing.
1335 (ASET_RANGE, GET_SUB_CHAR_TABLE): Remove unused macros.
1336
1337 * bidi.c (bidi_check_type): Now static, since it's not used elsewhere.
1338 (BIDI_BOB): Remove unused macro.
1339
1340 * cm.c (cmgoto): Mark variables that gcc -Wuninitialized does not
1341 deduce are never used uninitialized.
1342 * term.c (encode_terminal_code): Likewise.
1343
1344 * term.c (encode_terminal_code): Now static. Remove unused local.
1345
1346 * tparam.h: New file.
1347 * term.c, tparam.h: Include it.
1348 * deps.mk (term.o, tparam.o): Depend on tparam.h.
1349 * term.c (tputs, tgetent, tgetflag, tgetnum, tparam, tgetstr):
1350 Move these decls to tparam.h, and make them agree with what
1351 is actually in tparam.c. The previous trick of using incompatible
1352 decls in different modules does not conform to the C standard.
1353 All callers of tparam changed to use tparam's actual API.
1354 * tparam.c (tparam1, tparam, tgoto):
1355 Use const pointers where appropriate.
1356
1357 * cm.c (calccost, cmgoto): Use const pointers where appropriate.
1358 * cm.h (struct cm): Likewise.
1359 * dispextern.h (do_line_insertion_deletion_costs): Likewise.
1360 * scroll.c (ins_del_costs, do_line_insertion_deletion_costs): Likewise.
1361 * term.c (tty_ins_del_lines, calculate_costs, struct fkey_table):
1362 (term_get_fkeys_1, append_glyphless_glyph, produce_glyphless_glyph):
1363 (turn_on_face, init_tty): Likewise.
1364 * termchar.h (struct tty_display_info): Likewise.
1365
1366 * term.c (term_mouse_position): Rename local to avoid shadowing.
1367
1368 * alloc.c (mark_ttys): Move decl from here ...
1369 * lisp.h (mark_ttys): ... to here, so that it's checked against defn.
1370
1371 2011-03-11 Andreas Schwab <schwab@linux-m68k.org>
1372
1373 * .gdbinit (pwinx, xbuffer): Fix access to buffer name.
1374
1375 2011-03-09 Juanma Barranquero <lekktu@gmail.com>
1376
1377 * search.c (compile_pattern_1): Remove argument regp, unused since
1378 revid:rms@gnu.org-19941211082627-3x1g1wyqkjmwloig.
1379 (compile_pattern): Don't pass it.
1380
1381 2011-03-08 Jan Djärv <jan.h.d@swipnet.se>
1382
1383 * xterm.h (DEFAULT_GDK_DISPLAY): New define.
1384 (GDK_WINDOW_XID, gtk_widget_get_preferred_size): New defines
1385 for ! HAVE_GTK3.
1386 (GTK_WIDGET_TO_X_WIN): Use GDK_WINDOW_XID.
1387
1388 * xmenu.c (menu_position_func): Call gtk_widget_get_preferred_size.
1389
1390 * gtkutil.c: Include gtkx.h if HAVE_GTK3. If ! HAVE_GTK3, define
1391 gdk_window_get_screen, gdk_window_get_geometry,
1392 gdk_x11_window_lookup_for_display and GDK_KEY_g.
1393 (xg_set_screen): Use DEFAULT_GDK_DISPLAY.
1394 (xg_get_pixbuf_from_pixmap): New function.
1395 (xg_get_pixbuf_from_pix_and_mask): Change parameters from GdkPixmap
1396 to Pixmap, take frame as parameter, remove GdkColormap parameter.
1397 Call xg_get_pixbuf_from_pixmap instead of
1398 gdk_pixbuf_get_from_drawable.
1399 (xg_get_image_for_pixmap): Do not make GdkPixmaps, call
1400 xg_get_pixbuf_from_pix_and_mask with Pixmap parameters instead.
1401 (xg_check_special_colors): Use GtkStyleContext and its functions
1402 for HAVE_GTK3.
1403 (xg_prepare_tooltip, xg_hide_tooltip): Call gdk_window_get_screen.
1404 (xg_prepare_tooltip, create_dialog, menubar_map_cb)
1405 (xg_update_frame_menubar, xg_tool_bar_detach_callback)
1406 (xg_tool_bar_attach_callback, xg_update_tool_bar_sizes):
1407 Call gtk_widget_get_preferred_size.
1408 (xg_frame_resized): gdk_window_get_geometry only takes 5
1409 parameters.
1410 (xg_win_to_widget, xg_event_is_for_menubar):
1411 Call gdk_x11_window_lookup_for_display.
1412 (xg_set_widget_bg): New function.
1413 (delete_cb): New function.
1414 (xg_create_frame_widgets): connect delete-event to delete_cb.
1415 Call xg_set_widget_bg. Only set backgrund pixmap for ! HAVE_GTK3
1416 (xg_set_background_color): Call xg_set_widget_bg.
1417 (xg_set_frame_icon): Call xg_get_pixbuf_from_pix_and_mask.
1418 (xg_create_scroll_bar): vadj is a GtkAdjustment for HAVE_GTK3.
1419 Only call gtk_range_set_update_policy if ! HAVE_GTK3.
1420 (xg_make_tool_item): Only connect xg_tool_bar_item_expose_callback
1421 if ! HAVE_GTK3.
1422 (update_frame_tool_bar): Call gtk_widget_hide.
1423 (xg_initialize): Use GDK_KEY_g.
1424
1425 * xsmfns.c (gdk_set_sm_client_id): Define to gdk_set_sm_client_id
1426 if ! HAVE_GTK3
1427 (x_session_initialize): Call gdk_x11_set_sm_client_id.
1428
1429 * xterm.c (XFillRectangle): Use cairo routines for HAVE_GTK3.
1430 (x_term_init): Disable Xinput(2) with GDK_CORE_DEVICE_EVENTS.
1431 Load ~/emacs.d/gtkrc only for ! HAVE_GTK3.
1432
1433 2011-03-08 Juanma Barranquero <lekktu@gmail.com>
1434
1435 * w32xfns.c (select_palette): Check success of RealizePalette against
1436 GDI_ERROR, not zero.
1437
1438 2011-03-07 Ben Key <bkey76@gmail.com>
1439
1440 * w32fns.c (FILE_NAME_COMBO_BOX, FILE_NAME_LIST): Define.
1441 (file_dialog_callback): Fix locating the window handle of the File Name
1442 text field. After disabling it, set focus on the list control.
1443 (Fx_file_dialog): If only_dir_p is non-nil, set the text of the File
1444 Name text field to "Current Directory" if it does not already have
1445 another value. (Bug#8181)
1446
1447 2011-03-07 Adrian Robert <Adrian.B.Robert@gmail.com>
1448
1449 * nsterm.m (ns_draw_window_cursor): Fix handling of "cursor_width"
1450 parameter for hbar cursors. Based on a patch by Ben Key
1451 <bkey76@gmail.com>.
1452
1453 2011-03-06 Chong Yidong <cyd@stupidchicken.com>
1454
1455 * xdisp.c (redisplay_window): Revert incorrect logic in 2011-03-06
1456 change.
1457
1458 2011-03-06 Paul Eggert <eggert@cs.ucla.edu>
1459
1460 current_column: Now returns EMACS_INT, fixing some iftc
1461 that was introduced in the 2002-06-02 change "temporarily"; see
1462 <http://lists.gnu.org/archive/html/emacs-devel/2002-06/msg00039.html>.
1463 * bytecode.c (Fbyte_code): Don't cast current_column () to int.
1464 * cmds.c (internal_self_insert): Likewise.
1465 * indent.c (Fcurrent_column): Likewise.
1466 * keymap.c (describe_command): Likewise.
1467 * minibuf.c (read_minibuf): Likewise.
1468 * indent.c (Fcurrent_indentation): Don't cast position_indentation ()
1469 to int.
1470 * xdisp.c (redisplay_internal, redisplay_window, decode_mode_spec):
1471 Likewise.
1472 * cmds.c (internal_self_insert): Declare locals to be EMACS_INT,
1473 not int or double, if they might contain a column number.
1474 * indent.c (current_column, Findent_to, indented_beyond_p):
1475 (compute_motion, vmotion): Likewise.
1476 * keymap.c (describe_command): Likewise.
1477 * xdisp.c (pint2str): Likewise.
1478 * indent.c (last_known_column): Now EMACS_INT, not int.
1479 * minibuf.c (minibuf_prompt_width): Likewise.
1480 * indent.c (current_column, current_column_1, position_indentation):
1481 Return EMACS_INT, not double.
1482 * lisp.h (current_column): Likewise.
1483 * indent.c (indented_beyond_p): Last arg is now EMACS_INT, not double.
1484 All callers changed.
1485 * lisp.h (indented_beyond_p): Likewise.
1486
1487 * minibuf.c (minibuf_prompt, minibuf_prompt_width): Move here
1488 from xdisp.c, and make static, since these are used only here.
1489 * window.h, xdisp.c (minibuf_prompt, minibuf_prompt_width):
1490 Remove decls.
1491
1492 * cmds.c (internal_self_insert): Reindent to match Emacs style.
1493 * xdisp.c (redisplay_window): Likewise.
1494
1495 * xdisp.c: Rename or move local decls to avoid shadowing.
1496 (init_iterator, handle_fontified_prop, handle_single_display_spec):
1497 (message_dolog, message_with_string, redisplay_internal):
1498 (redisplay_window, try_window_reusing_current_matrix, try_window_id):
1499 (compute_line_metrics, highlight_trailing_whitespace, cursor_row_p):
1500 (display_line, display_string, rows_from_pos_range):
1501 (mouse_face_from_buffer_pos, note_mouse_highlight, expose_frame):
1502 Rename or move local decls.
1503 * xdisp.c (BUILD_GLYPHLESS_GLYPH_STRING): Omit unused local var.
1504 (produce_glyphless_glyph): Make a pointer "const"
1505 since it might point to immutable storage.
1506 (update_window_cursor): Now static, since it's not used elsewhere.
1507 (SKIP_GLYPHS): Remove unused macro.
1508
1509 2011-03-06 Michael Shields <shields@msrl.com> (tiny change)
1510
1511 * window.c (Fnext_window): Doc fix. (Bug#5567)
1512
1513 2011-03-05 Chong Yidong <cyd@stupidchicken.com>
1514
1515 * nsterm.m (ns_draw_window_cursor): Fix typo in 2011-02-23 commit.
1516
1517 2011-03-02 Ken Brown <kbrown@cornell.edu>
1518
1519 * sheap.c (STATIC_HEAP_SIZE): Increase to 13MB.
1520
1521 2011-03-02 Paul Eggert <eggert@cs.ucla.edu>
1522
1523 Work around some portability problems with symlinks.
1524
1525 * fileio.c (Fmake_symbolic_link): Treat ENOSYS specially, and
1526 generate a special message for it. Suggested by Eli Zaretskii in
1527 <http://lists.gnu.org/archive/html/emacs-devel/2011-02/msg00995.html>.
1528 (Frename_file, Fmake_symbolic_link, Ffile_symlink_p):
1529 Simplify the code by assuming that the readlink and symlink calls
1530 exist, even if they always fail on this host.
1531 (Ffile_readable_p): Likewise, for fifos.
1532 * config.in: Regenerate.
1533
1534 2011-02-27 Chong Yidong <cyd@stupidchicken.com>
1535
1536 * frame.c (store_frame_param): Don't store value directly in
1537 buffer_list and buried_buffer_list; copy the list and remove dead
1538 buffers (Bug#7898).
1539
1540 2011-02-27 Eli Zaretskii <eliz@gnu.org>
1541
1542 * msdos.c (readlink) [DJGPP < 2.04]: New stub function.
1543
1544 * msdos.h (readlink) [DJGPP < 2.04]: Declare prototype.
1545
1546 * w32.c (symlink, readlink): New stub functions.
1547
1548 2011-02-27 Paul Eggert <eggert@cs.ucla.edu>
1549
1550 * scroll.c (CHECK_BOUNDS): #define only if GLYPH_DEBUG.
1551 This avoids a gcc warning in some configurations.
1552
1553 * frame.c (x_set_screen_gamma): Rename local to avoid shadowing.
1554
1555 * frame.h: Avoid gcc -Wmissing-prototypes diagnostics.
1556 (set_menu_bar_lines, x_get_resource_string): New decls.
1557 * msdos.c (set_menu_bar_lines): Omit decl.
1558
1559 * dispextern.h (struct glyph): Make u.img_id int, not unsigned.
1560 It's always given int values and used as an int. This suppresses
1561 a gcc "comparison of unsigned expression >= 0" warning in some
1562 configurations.
1563
1564 * dispnew.c: Rename locals to avoid shadowing.
1565 (update_text_area, scrolling_window, update_frame_1): Rename locals.
1566
1567 2011-02-26 Paul Eggert <eggert@cs.ucla.edu>
1568
1569 * dispnew.c: Fix problems uncovered by gcc -Wstrict-prototypes.
1570 (copy_glyph_row_contents): Remove; not used.
1571 (frame_row_to_window, check_current_matrix_flags):
1572 (window_change_signal): Now static, since they're not used elsewhere.
1573 (check_current_matrix_flags): Surround with "#if 0", since its
1574 only use is in a comment. Maybe both the comment and the "#if 0"
1575 stuff should be removed?
1576
1577 * dispnew.c: Fix problem uncovered by gcc -Wunused-variable.
1578 (adjust_frame_glyphs_for_window_redisplay): Make 'w' local to the
1579 contexts that actually need it.
1580
1581 2011-02-26 Eli Zaretskii <eliz@gnu.org>
1582
1583 * s/msdos.h (HAVE_LSTAT): Define for DJGPP >= 2.04.
1584 (lstat): Define for DJGPP < 2.04.
1585
1586 2011-02-25 Paul Eggert <eggert@cs.ucla.edu>
1587
1588 * dired.c (Ffile_attributes): Increase size of modes from 10 to 12
1589 as per recent filemodestring API change. Reported by Jonas Öster in
1590 <http://lists.gnu.org/archive/html/emacs-devel/2011-02/msg01069.html>.
1591
1592 2011-02-23 Ben Key <bkey76@gmail.com>
1593
1594 * nsterm.m (ns_draw_window_cursor): Obey the cursor_width argument
1595 directly, for bar cursors.
1596
1597 2011-02-23 Chong Yidong <cyd@stupidchicken.com>
1598
1599 * xdisp.c (set_frame_cursor_types): Don't write an undefined value
1600 into the frame's cursor_width.
1601
1602 2011-02-23 Stefan Monnier <monnier@iro.umontreal.ca>
1603
1604 * print.c (print_object): Never print old-style backquotes.
1605 Obey escapeflag for hash tables as well.
1606
1607 2011-02-23 Kenichi Handa <handa@m17n.org>
1608
1609 * font.c (font_open_entity): Be sure to set scaled_pixel_size.
1610 (font_find_for_lface): Check if attrs[LFACE_HEIGHT_INDEX] is integer.
1611
1612 2011-02-22 Paul Eggert <eggert@cs.ucla.edu>
1613
1614 * dired.c (Ffile_attributes): Simplify and avoid #ifdef.
1615
1616 2011-02-22 Wolfgang Jenkner <wjenkner@inode.at> (tiny change)
1617
1618 * lread.c (openp): Correct Boolean typo in last commit.
1619
1620 2011-02-22 Adrian Robert <Adrian.B.Robert@gmail.com>
1621
1622 * nsterm.m (EmacsView-keyDown:): Don't pass shift-only-modified
1623 key to Emacs, treat as unmodified (go to input manager processing).
1624
1625 2011-02-22 Paul Eggert <eggert@cs.ucla.edu>
1626
1627 Assume S_ISLNK etc. work, since gnulib supports this.
1628 * config.in: Regenerate.
1629 * dired.c (lstat): Remove.
1630 (file_name_completion): Assume S_ISDIR works.
1631 (file_name_completion_stat): Assume S_ISLNK works.
1632 Do not bother calling stat unless lstat says it's a symlink.
1633 * fileio.c (S_ISLNK, S_ISFIFO, S_ISREG, lstat): Remove.
1634 (Fcopy_file): Assume S_ISREG and S_ISLNK work.
1635 (check_writable, Ffile_writable_p, Fset_file_times):
1636 Assume S_ISDIR works.
1637 (Ffile_readable_p): Use S_IFIFO, not S_ISFIFO, to guess whether
1638 fifos exist.
1639 (Ffile_regular_p, Finsert_file_contents): Assume S_ISREG works.
1640 * filelock.c (S_ISLNK): Remove.
1641 * lread.c (openp): Assume S_ISDIR works.
1642 * xrdb.c (S_ISDIR): Remove.
1643
1644 2011-02-21 Eli Zaretskii <eliz@gnu.org>
1645
1646 * makefile.w32-in ($(BLD)/filemode.$(O)): Move recipe to
1647 lib/makefile.w32-in.
1648 ($(BLD)/dired.$(O)): Depend on $(EMACS_ROOT)/lib/filemode.h.
1649 (GLOBAL_SOURCES): Remove filemode.c.
1650 (OBJ1): Remove $(BLD)/filemode.$(O).
1651
1652 2011-02-21 Paul Eggert <eggert@cs.ucla.edu>
1653
1654 Import filemode module from gnulib.
1655 * Makefile.in (base_obj): Remove filemode.o, as it's now in ../lib.
1656 * deps.mk (dired.o): Depend on ../lib/filemode.h, too.
1657 (filemode.o): Remove; this is now in ../lib.
1658 * dired.c: Include <filemode.h>.
1659 (filemodestring): Remove now-redundant decl.
1660 * config.in: Regenerate.
1661
1662 2011-02-20 Eli Zaretskii <eliz@gnu.org>
1663
1664 * makefile.w32-in ($(BLD)/fns.$(O)): Depend on
1665 $(EMACS_ROOT)/lib/md5.h and on stamp_BLD.
1666
1667 2011-02-20 Christoph Scholtes <cschol2112@gmail.com>
1668
1669 * makefile.w32-in: Remove md5.$(O).
1670 ($(BLD)/md5.$(O)): Remove prerequisites, moved to
1671 lib/makefile.w32-in.
1672
1673 2011-02-20 Paul Eggert <eggert@cs.ucla.edu>
1674
1675 Import crypto/md5 and stdint modules from gnulib.
1676 * Makefile.in (base_obj): Remove md5.o, since this file
1677 is in lib now.
1678 * config.in: Regenerate.
1679 * md5.h, md5.h: Move to ../lib.
1680 * deps.mk (md5.o): Remove.
1681 (fns.o): Depend on ../lib/md5.h, not md5.h.
1682
1683 2011-02-19 Eli Zaretskii <eliz@gnu.org>
1684
1685 * termcap.c (tputs): Don't declare baud_rate.
1686
1687 * s/msdos.h (strtold): Define to _strtold.
1688
1689 2011-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
1690
1691 * process.c (Fstart_process, Fmake_serial_process)
1692 (Fmake_network_process, server_accept_connection):
1693 Use empty_unibyte_string.
1694
1695 * alloc.c (make_unibyte_string): Don't SET_UNIBYTE redundantly.
1696
1697 * lread.c (Qdir_ok): New constant.
1698 (syms_of_lread): Initialize it.
1699 (openp): Don't ignore directories if the predicate returns dir-ok.
1700
1701 2011-02-18 Eli Zaretskii <eliz@gnu.org>
1702
1703 * xdisp.c (display_line): Fix the change made for bug#7939.
1704
1705 * terminal.c (create_terminal): Use default-keyboard-coding-system
1706 and default-terminal-coding-system to initialize coding systems of
1707 the new terminal. (Bug#7840)
1708
1709 2011-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
1710
1711 * lisp.h (BYTE_MARK_STACK): New macro.
1712 (mark_byte_stack): Only declare if BYTE_MARK_STACK is set.
1713
1714 * bytecode.c (BYTE_MAINTAIN_TOP): New macros.
1715 (struct byte_stack): Only define `top' and `bottom' if used.
1716 (mark_byte_stack): Only define if used.
1717 (BEFORE_POTENTIAL_GC, AFTER_POTENTIAL_GC): Nullify if BYTE_MAINTAIN_TOP
1718 is not set.
1719 (Fbyte_code): Don't set `bottom' unless BYTE_MAINTAIN_TOP is set.
1720
1721 * term.c (OUTPUT_IF): Use OUTPUT.
1722
1723 * alloc.c (Fgarbage_collect): When using stack scanning, don't
1724 redundantly scan byte-code stacks, catchlist, and handlerlist.
1725
1726 2011-02-17 Jan Djärv <jan.h.d@swipnet.se>
1727
1728 * nsfns.m (Fx_create_frame, ns_set_name_as_filename)
1729 (Fns_read_file_name): Replace B_ with BVAR.
1730
1731 * nsterm.m (ns_term_init): Use KVAR.
1732
1733 2011-02-16 Eli Zaretskii <eliz@gnu.org>
1734
1735 * msdos.c (internal_terminal_init): Use KVAR.
1736
1737 * w32fns.c (Fx_create_frame): Use KVAR.
1738
1739 * w32term.c (w32_create_terminal): Use KVAR.
1740
1741 * s/ms-w32.h (MODE_LINE_BINARY_TEXT): Remove.
1742 (getloadavg): Declare prototype which was removed from lisp.h.
1743
1744 * xdisp.c (decode_mode_spec): Don't use MODE_LINE_BINARY_TEXT.
1745
1746 * fileio.c (Finsert_file_contents, Fwrite_region):
1747 Remove references to buffer_file_type.
1748 (syms_of_fileio): Don't intern and staticpro
1749 find-buffer-file-type.
1750
1751 * callproc.c (syms_of_callproc): Remove references to
1752 buffer_file_type.
1753
1754 * buffer.c (reset_buffer_local_variables): Don't set
1755 buffer_file_type.
1756 (init_buffer_once): Likewise.
1757 (syms_of_buffer): Don't define buffer-file-type.
1758
1759 * buffer.h (struct buffer): Remove buffer_file_type.
1760
1761 2011-02-16 Tom Tromey <tromey@parfait>
1762
1763 * callint.c (Fcall_interactively): Update for change to field names.
1764 * doc.c (Fsubstitute_command_keys): Update for change to field names.
1765 * cmds.c (Fself_insert_command): Update for change to field names.
1766 * keymap.c (Fcurrent_active_maps, Fkey_binding)
1767 (Fdescribe_buffer_bindings): Update for change to field names.
1768 * macros.c (Fstart_kbd_macro, end_kbd_macro, Fend_kbd_macro)
1769 (store_kbd_macro_char, Fcall_last_kbd_macro, Fexecute_kbd_macro):
1770 Update for change to field names.
1771 * keyboard.c (echo_char, echo_dash, echo_now, cancel_echoing)
1772 (echo_length, echo_truncate, cmd_error, command_loop_1)
1773 (read_char, kbd_buffer_store_event_hold, make_lispy_event)
1774 (menu_bar_items, tool_bar_items, read_char_minibuf_menu_prompt)
1775 (read_key_sequence, Fcommand_execute, Fexecute_extended_command)
1776 (Fdiscard_input, init_kboard, init_keyboard, mark_kboards):
1777 Update for change to field names.
1778 * xfns.c (Fx_create_frame): Update for change to field names.
1779 * xterm.c (x_connection_closed, x_term_init): Update for change to
1780 field names.
1781 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN, init_tty):
1782 Update for change to field names.
1783 * window.c (window_scroll_pixel_based, window_scroll_line_based):
1784 Update for change to field names.
1785 * frame.c (make_frame_without_minibuffer, Fhandle_switch_frame)
1786 (delete_frame): Update for change to field names.
1787 * lisp.h (DEFVAR_KBOARD): Update for change to field names.
1788 * keyboard.h (struct kboard): Rename all Lisp_Object fields.
1789 (KBOARD_INTERNAL_FIELD, KVAR): New macros.
1790
1791 2011-02-16 Tom Tromey <tromey@redhat.com>
1792
1793 * lisp.h (DEFVAR_BUFFER_DEFAULTS): Use BVAR.
1794
1795 2011-02-16 Tom Tromey <tromey@parfait>
1796
1797 * xfns.c (x_create_tip_frame, Fx_show_tip): Replace B_ with BVAR.
1798 * xfaces.c (compute_char_face): Replace B_ with BVAR.
1799 * xdisp.c (pos_visible_p, init_iterator, reseat_1)
1800 (message_dolog, update_echo_area, ensure_echo_area_buffers)
1801 (with_echo_area_buffer, setup_echo_area_for_printing)
1802 (set_message_1, update_menu_bar, update_tool_bar)
1803 (text_outside_line_unchanged_p, redisplay_internal)
1804 (try_scrolling, try_cursor_movement, redisplay_window)
1805 (try_window_reusing_current_matrix, row_containing_pos)
1806 (try_window_id, get_overlay_arrow_glyph_row, display_line)
1807 (Fcurrent_bidi_paragraph_direction, display_mode_lines)
1808 (decode_mode_spec_coding, decode_mode_spec, display_count_lines)
1809 (get_window_cursor_type, note_mouse_highlight): Replace B_ with
1810 BVAR.
1811 * window.c (window_display_table, unshow_buffer, window_loop)
1812 (window_min_size_2, set_window_buffer, Fset_window_buffer)
1813 (select_window, Fforce_window_update, temp_output_buffer_show)
1814 (Fset_window_configuration, save_window_save): Replace B_ with
1815 BVAR.
1816 * w32fns.c (x_create_tip_frame, Fx_show_tip, Fw32_shell_execute):
1817 Replace B_ with BVAR.
1818 * undo.c (record_point, record_insert, record_delete)
1819 (record_marker_adjustment, record_first_change)
1820 (record_property_change, Fundo_boundary, truncate_undo_list)
1821 (Fprimitive_undo): Replace B_ with BVAR.
1822 * syntax.h (Vstandard_syntax_table, CURRENT_SYNTAX_TABLE)
1823 (SETUP_BUFFER_SYNTAX_TABLE): Replace B_ with BVAR.
1824 * syntax.c (update_syntax_table, dec_bytepos, Fsyntax_table)
1825 (Fset_syntax_table, Fmodify_syntax_entry, skip_chars)
1826 (skip_syntaxes, scan_lists): Replace B_ with BVAR.
1827 * search.c (compile_pattern_1, compile_pattern, looking_at_1)
1828 (string_match_1, fast_looking_at, newline_cache_on_off)
1829 (search_command, search_buffer, simple_search, boyer_moore)
1830 (Freplace_match): Replace B_ with BVAR.
1831 * process.c (get_process, list_processes_1, Fstart_process)
1832 (Fmake_serial_process, Fmake_network_process)
1833 (read_process_output, send_process, exec_sentinel)
1834 (status_notify, setup_process_coding_systems): Replace B_ with
1835 BVAR.
1836 * print.c (PRINTDECLARE, PRINTPREPARE, PRINTFINISH, printchar)
1837 (strout, print_string, temp_output_buffer_setup, print_object):
1838 Replace B_ with BVAR.
1839 * msdos.c (IT_frame_up_to_date): Replace B_ with BVAR.
1840 * minibuf.c (read_minibuf, get_minibuffer, Fread_buffer):
1841 Replace B_ with BVAR.
1842 * marker.c (Fmarker_buffer, Fset_marker, set_marker_restricted)
1843 (set_marker_both, set_marker_restricted_both, unchain_marker):
1844 Replace B_ with BVAR.
1845 * lread.c (readchar, unreadchar, openp, readevalloop)
1846 (Feval_buffer, Feval_region): Replace B_ with BVAR.
1847 * lisp.h (DOWNCASE_TABLE, UPCASE_TABLE): Replace B_ with BVAR.
1848 * keymap.c (Flocal_key_binding, Fuse_local_map)
1849 (Fcurrent_local_map, push_key_description)
1850 (Fdescribe_buffer_bindings): Replace B_ with BVAR.
1851 * keyboard.c (command_loop_1, read_char_minibuf_menu_prompt)
1852 (read_key_sequence): Replace B_ with BVAR.
1853 * intervals.h (TEXT_PROP_MEANS_INVISIBLE): Replace B_ with BVAR.
1854 * intervals.c (set_point_both, get_local_map): Replace B_ with
1855 BVAR.
1856 * insdel.c (check_markers, insert_char, insert_1_both)
1857 (insert_from_string_1, insert_from_gap, insert_from_buffer_1)
1858 (adjust_after_replace, replace_range, del_range_2)
1859 (modify_region, prepare_to_modify_buffer)
1860 (Fcombine_after_change_execute): Replace B_ with BVAR.
1861 * indent.c (buffer_display_table, recompute_width_table)
1862 (width_run_cache_on_off, current_column, scan_for_column)
1863 (Findent_to, position_indentation, compute_motion, vmotion):
1864 Replace B_ with BVAR.
1865 * fringe.c (get_logical_cursor_bitmap)
1866 (get_logical_fringe_bitmap, update_window_fringes): Replace B_
1867 with BVAR.
1868 * frame.c (make_frame_visible_1): Replace B_ with BVAR.
1869 * font.c (font_at): Replace B_ with BVAR.
1870 * fns.c (Fbase64_encode_region, Fbase64_decode_region, Fmd5):
1871 Replace B_ with BVAR.
1872 * filelock.c (unlock_all_files, Flock_buffer, Funlock_buffer)
1873 (unlock_buffer): Replace B_ with BVAR.
1874 * fileio.c (Fexpand_file_name, Ffile_directory_p)
1875 (Ffile_regular_p, Ffile_selinux_context)
1876 (Fset_file_selinux_context, Ffile_modes, Fset_file_modes)
1877 (Fset_file_times, Ffile_newer_than_file_p, decide_coding_unwind)
1878 (Finsert_file_contents, choose_write_coding_system)
1879 (Fwrite_region, build_annotations, Fverify_visited_file_modtime)
1880 (Fset_visited_file_modtime, auto_save_error, auto_save_1)
1881 (Fdo_auto_save, Fset_buffer_auto_saved): Replace B_ with BVAR.
1882 * editfns.c (region_limit, Fmark_marker, save_excursion_save)
1883 (save_excursion_restore, Fprevious_char, Fchar_before)
1884 (general_insert_function, Finsert_char, Finsert_byte)
1885 (make_buffer_string_both, Finsert_buffer_substring)
1886 (Fcompare_buffer_substrings, subst_char_in_region_unwind)
1887 (subst_char_in_region_unwind_1, Fsubst_char_in_region)
1888 (Ftranslate_region_internal, save_restriction_restore)
1889 (Fchar_equal): Replace B_ with BVAR.
1890 * dispnew.c (Fframe_or_buffer_changed_p): Replace B_ with BVAR.
1891 * dispextern.h (WINDOW_WANTS_MODELINE_P)
1892 (WINDOW_WANTS_HEADER_LINE_P): Replace B_ with BVAR.
1893 * dired.c (directory_files_internal): Replace B_ with BVAR.
1894 * data.c (swap_in_symval_forwarding, set_internal)
1895 (Fmake_local_variable, Fkill_local_variable, Flocal_variable_p):
1896 Replace B_ with BVAR.
1897 * composite.c (fill_gstring_header)
1898 (composition_compute_stop_pos, composition_adjust_point)
1899 (Ffind_composition_internal): Replace B_ with BVAR.
1900 * coding.c (decode_coding, encode_coding)
1901 (make_conversion_work_buffer, decode_coding_gap)
1902 (decode_coding_object, encode_coding_object)
1903 (Fdetect_coding_region, Ffind_coding_systems_region_internal)
1904 (Funencodable_char_position, Fcheck_coding_systems_region):
1905 Replace B_ with BVAR.
1906 * cmds.c (Fself_insert_command, internal_self_insert): Replace B_
1907 with BVAR.
1908 * charset.c (Ffind_charset_region): Replace B_ with BVAR.
1909 * character.h (FETCH_CHAR_ADVANCE, INC_BOTH, DEC_BOTH)
1910 (ASCII_CHAR_WIDTH): Replace B_ with BVAR.
1911 * character.c (chars_in_text, Fget_byte): Replace B_ with BVAR.
1912 * category.h (Vstandard_category_table): Replace B_ with BVAR.
1913 * category.c (check_category_table, Fcategory_table)
1914 (Fset_category_table, char_category_set): Replace B_ with BVAR.
1915 * casetab.c (Fcurrent_case_table, set_case_table): Replace B_ with
1916 BVAR.
1917 * casefiddle.c (casify_object, casify_region): Replace B_ with
1918 BVAR.
1919 * callproc.c (Fcall_process, Fcall_process_region): Replace B_
1920 with BVAR.
1921 * callint.c (check_mark, Fcall_interactively): Replace B_ with
1922 BVAR.
1923 * bytecode.c (Fbyte_code): Replace B_ with BVAR.
1924 * buffer.h (FETCH_CHAR, FETCH_CHAR_AS_MULTIBYTE, BVAR): Replace B_
1925 with BVAR.
1926 * buffer.c (Fbuffer_live_p, Fget_file_buffer)
1927 (get_truename_buffer, Fget_buffer_create)
1928 (clone_per_buffer_values, Fmake_indirect_buffer, reset_buffer)
1929 (reset_buffer_local_variables, Fbuffer_name, Fbuffer_file_name)
1930 (Fbuffer_local_value, buffer_lisp_local_variables)
1931 (Fset_buffer_modified_p, Frestore_buffer_modified_p)
1932 (Frename_buffer, Fother_buffer, Fbuffer_enable_undo)
1933 (Fkill_buffer, Fset_buffer_major_mode, set_buffer_internal_1)
1934 (set_buffer_temp, Fset_buffer, set_buffer_if_live)
1935 (Fbarf_if_buffer_read_only, Fbury_buffer, Ferase_buffer)
1936 (Fbuffer_swap_text, swapfield_, Fbuffer_swap_text)
1937 (Fset_buffer_multibyte, swap_out_buffer_local_variables)
1938 (record_overlay_string, overlay_strings, init_buffer_once)
1939 (init_buffer, syms_of_buffer): Replace B_ with BVAR.
1940
1941 2011-02-16 Eli Zaretskii <eliz@gnu.org>
1942
1943 * xdisp.c (redisplay_internal): Resynchronize `w' if the selected
1944 window is changed inside calls to do_pending_window_change.
1945 (Bug#8020)
1946
1947 2011-02-16 Paul Eggert <eggert@cs.ucla.edu>
1948
1949 Remove no-longer needed getloadavg symbols.
1950 * m/alpha.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
1951 * m/amdx86-64.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
1952 * m/ia64.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
1953 * m/ibms390.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
1954 * m/macppc.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
1955 * m/sparc.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
1956 * m/template.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
1957 * m/vax.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
1958 * s/aix4-2.h (KERNEL_FILE, LDAV_SYMBOL): Remove.
1959 * s/bsd-common.h (KERNEL_FILE, LDAV_SYMBOL): Remove #undef.
1960 * s/hpux10-20.h (KERNEL_FILE, LOAD_AVE_TYPE, LOAD_AVE_CVT):
1961 (LDAV_SYMBOL): Remove.
1962 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE): Remove.
1963 * s/usg5-4-common.h (KERNEL_FILE, LDAV_SYMBOL): Remove.
1964
1965 Import getloadavg module from gnulib.
1966 * deps.mk (getloadavg.o): Remove; gnulib now does this.
1967 * lisp.h (getloadavg) [!defined HAVE_GETLOADAVG]: Remove; gnulib
1968 now does this.
1969 * src/s/freebsd.h (HAVE_GETLOADAVG): Remove; gnulib now does this.
1970 * src/s/netbsd.h (HAVE_GETLOADAVG): Likewise.
1971 * config.in: Regenerate.
1972
1973 2011-02-15 Eli Zaretskii <eliz@gnu.org>
1974
1975 * nsfns.m (ns_set_name_as_filename, Fns_read_file_name): Use B_.
1976
1977 2011-02-14 Michael Welsh Duggan <md5i@md5i.com>
1978
1979 * print.c (float_to_string): Ensure that a decimal point is
1980 printed if using dtoastr (Bug#8033).
1981
1982 2011-02-14 Eli Zaretskii <eliz@gnu.org>
1983
1984 * msdos.c (IT_frame_up_to_date):
1985 * s/msdos.h (MODE_LINE_BINARY_TEXT): Use B_ for the MS-DOS build.
1986
1987 * dired.c (directory_files_internal):
1988 * fileio.c (Finsert_file_contents):
1989 * insdel.c (prepare_to_modify_buffer):
1990 * xdisp.c (pos_visible_p):
1991 * s/ms-w32.h (MODE_LINE_BINARY_TEXT):
1992 * w32fns.c (Fw32_shell_execute, Fx_show_tip, x_create_tip_frame):
1993 Use B_ for the MS-Windows build.
1994
1995 2011-02-14 Jan Djärv <jan.h.d@swipnet.se>
1996
1997 * xrdb.c (x_load_resources): For LUCID and XFT, don't put a
1998 resource that specifies helvetica for menus and dialogs.
1999
2000 * xmenu.c (apply_systemfont_to_dialog): Apply to *dialog.font.
2001 (apply_systemfont_to_menu): Set resources *menubar*font and
2002 *popup*font. Remove defflt.
2003 (set_frame_menubar, create_and_show_popup_menu):
2004 Call apply_systemfont_to_menu before lw_create_widget.
2005
2006 2011-02-14 Tom Tromey <tromey@redhat.com>
2007
2008 * buffer.c (init_buffer_once, syms_of_buffer): Use B_ in DOS_NT case.
2009
2010 * keyboard.h: Remove obsolete comment.
2011
2012 2011-02-14 Tom Tromey <tromey@parfait>
2013
2014 * composite.c (fill_gstring_header)
2015 (composition_compute_stop_pos, composition_adjust_point)
2016 (Ffind_composition_internal): Use B_.
2017 * intervals.c (set_point_both, get_local_map): Use B_.
2018 * callproc.c (Fcall_process, Fcall_process_region): Use B_.
2019 * process.c (get_process, list_processes_1, Fstart_process)
2020 (Fmake_serial_process, Fmake_network_process)
2021 (read_process_output, send_process, exec_sentinel)
2022 (status_notify, setup_process_coding_systems): Use B_.
2023 * bytecode.c (Fbyte_code): Use B_.
2024 * syntax.c (update_syntax_table, dec_bytepos, Fsyntax_table)
2025 (Fset_syntax_table, Fmodify_syntax_entry, skip_chars)
2026 (skip_syntaxes, scan_lists): Use B_.
2027 * lread.c (readchar, unreadchar, openp, readevalloop)
2028 (Feval_buffer, Feval_region): Use B_.
2029 * print.c (printchar, strout, print_string, PRINTDECLARE)
2030 (PRINTPREPARE, PRINTFINISH, temp_output_buffer_setup)
2031 (print_object): Use B_.
2032 * font.c (font_at): Use B_.
2033 * fns.c (Fbase64_encode_region, Fbase64_decode_region, Fmd5):
2034 Use B_.
2035 * callint.c (check_mark, Fcall_interactively): Use B_.
2036 * editfns.c (region_limit, Fmark_marker, save_excursion_save)
2037 (save_excursion_restore, Fprevious_char, Fchar_before)
2038 (general_insert_function, Finsert_char, Finsert_byte)
2039 (make_buffer_string_both, Finsert_buffer_substring)
2040 (Fcompare_buffer_substrings, subst_char_in_region_unwind)
2041 (subst_char_in_region_unwind_1, Fsubst_char_in_region)
2042 (Ftranslate_region_internal, save_restriction_restore)
2043 (Fchar_equal): Use B_.
2044 * data.c (swap_in_symval_forwarding, set_internal)
2045 (Fmake_local_variable, Fkill_local_variable, Flocal_variable_p):
2046 Use B_.
2047 * undo.c (record_point, record_insert, record_delete)
2048 (record_marker_adjustment, record_first_change)
2049 (record_property_change, Fundo_boundary, truncate_undo_list)
2050 (Fprimitive_undo): Use B_.
2051 * search.c (compile_pattern_1, compile_pattern, looking_at_1)
2052 (string_match_1, fast_looking_at, newline_cache_on_off)
2053 (search_command, search_buffer, simple_search, boyer_moore)
2054 (Freplace_match): Use B_.
2055 * indent.c (buffer_display_table, recompute_width_table)
2056 (width_run_cache_on_off, current_column, scan_for_column)
2057 (Findent_to, position_indentation, compute_motion, vmotion):
2058 Use B_.
2059 * casefiddle.c (casify_object, casify_region): Use B_.
2060 * casetab.c (Fcurrent_case_table, set_case_table): Use B_.
2061 * cmds.c (Fself_insert_command, internal_self_insert): Use B_.
2062 * fileio.c (Fexpand_file_name, Ffile_directory_p)
2063 (Ffile_regular_p, Ffile_selinux_context)
2064 (Fset_file_selinux_context, Ffile_modes, Fset_file_modes)
2065 (Fset_file_times, Ffile_newer_than_file_p, decide_coding_unwind)
2066 (Finsert_file_contents, choose_write_coding_system)
2067 (Fwrite_region, build_annotations, Fverify_visited_file_modtime)
2068 (Fset_visited_file_modtime, auto_save_error, auto_save_1)
2069 (Fdo_auto_save, Fset_buffer_auto_saved): Use B_.
2070 * minibuf.c (read_minibuf, get_minibuffer, Fread_buffer): Use B_.
2071 * marker.c (Fmarker_buffer, Fset_marker, set_marker_restricted)
2072 (set_marker_both, set_marker_restricted_both, unchain_marker):
2073 Use B_.
2074 * insdel.c (check_markers, insert_char, insert_1_both)
2075 (insert_from_string_1, insert_from_gap, insert_from_buffer_1)
2076 (adjust_after_replace, replace_range, del_range_2)
2077 (modify_region, prepare_to_modify_buffer)
2078 (Fcombine_after_change_execute): Use B_.
2079 * filelock.c (unlock_all_files, Flock_buffer, Funlock_buffer)
2080 (unlock_buffer): Use B_.
2081 * keymap.c (Flocal_key_binding, Fuse_local_map)
2082 (Fcurrent_local_map, push_key_description)
2083 (Fdescribe_buffer_bindings): Use B_.
2084 * keyboard.c (command_loop_1, read_char_minibuf_menu_prompt)
2085 (read_key_sequence): Use B_.
2086 * fringe.c (get_logical_cursor_bitmap)
2087 (get_logical_fringe_bitmap, update_window_fringes): Use B_.
2088 * xfns.c (x_create_tip_frame, Fx_show_tip): Use B_.
2089 * xfaces.c (compute_char_face): Use B_.
2090 * character.c (chars_in_text, Fget_byte): Use B_.
2091 * category.c (check_category_table, Fcategory_table)
2092 (Fset_category_table, char_category_set): Use B_.
2093 * coding.c (decode_coding, encode_coding)
2094 (make_conversion_work_buffer, decode_coding_gap)
2095 (decode_coding_object, encode_coding_object)
2096 (Fdetect_coding_region, Ffind_coding_systems_region_internal)
2097 (Funencodable_char_position, Fcheck_coding_systems_region):
2098 Use B_.
2099 * charset.c (Ffind_charset_region): Use B_.
2100 * window.c (window_display_table, unshow_buffer, window_loop)
2101 (window_min_size_2, set_window_buffer, Fset_window_buffer)
2102 (select_window, Fforce_window_update, temp_output_buffer_show)
2103 (Fset_window_configuration, save_window_save): Use B_.
2104 * xdisp.c (pos_visible_p, init_iterator, reseat_1)
2105 (message_dolog, update_echo_area, ensure_echo_area_buffers)
2106 (with_echo_area_buffer, setup_echo_area_for_printing)
2107 (set_message_1, update_menu_bar, update_tool_bar)
2108 (text_outside_line_unchanged_p, redisplay_internal)
2109 (try_scrolling, try_cursor_movement, redisplay_window)
2110 (try_window_reusing_current_matrix, row_containing_pos)
2111 (try_window_id, get_overlay_arrow_glyph_row, display_line)
2112 (Fcurrent_bidi_paragraph_direction, display_mode_lines)
2113 (decode_mode_spec_coding, decode_mode_spec, display_count_lines)
2114 (get_window_cursor_type, note_mouse_highlight): Use B_.
2115 * frame.c (make_frame_visible_1): Use B_.
2116 * dispnew.c (Fframe_or_buffer_changed_p): Use B_.
2117 * dispextern.h (WINDOW_WANTS_HEADER_LINE_P)
2118 (WINDOW_WANTS_MODELINE_P): Use B_.
2119 * syntax.h (Vstandard_syntax_table): Update.
2120 (CURRENT_SYNTAX_TABLE, SETUP_BUFFER_SYNTAX_TABLE): Use B_.
2121 * intervals.h (TEXT_PROP_MEANS_INVISIBLE): Update.
2122 (TEXT_PROP_MEANS_INVISIBLE): Use B_.
2123 * character.h (FETCH_CHAR_ADVANCE): Update.
2124 (INC_BOTH, ASCII_CHAR_WIDTH, DEC_BOTH): Use B_.
2125 * category.h (Vstandard_category_table): Update.
2126 * lisp.h (DEFVAR_BUFFER_DEFAULTS): Update for change to field
2127 names.
2128 (DOWNCASE_TABLE, UPCASE_TABLE): Use B_.
2129 * buffer.c (swapfield_): New macro.
2130 (Fbuffer_swap_text): Use swapfield_ where appropriate.
2131 (Fbuffer_live_p, Fget_file_buffer, get_truename_buffer)
2132 (Fget_buffer_create, clone_per_buffer_values)
2133 (Fmake_indirect_buffer, reset_buffer)
2134 (reset_buffer_local_variables, Fbuffer_name, Fbuffer_file_name)
2135 (Fbuffer_local_value, buffer_lisp_local_variables)
2136 (Fset_buffer_modified_p, Frestore_buffer_modified_p)
2137 (Frename_buffer, Fother_buffer, Fbuffer_enable_undo)
2138 (Fkill_buffer, Fset_buffer_major_mode, set_buffer_internal_1)
2139 (set_buffer_temp, Fset_buffer, set_buffer_if_live)
2140 (Fbarf_if_buffer_read_only, Fbury_buffer, Ferase_buffer)
2141 (Fbuffer_swap_text, Fset_buffer_multibyte)
2142 (swap_out_buffer_local_variables, record_overlay_string)
2143 (overlay_strings, init_buffer_once, init_buffer, syms_of_buffer):
2144 Use B_.
2145 * buffer.h (struct buffer): Rename all Lisp_Object fields.
2146 (BUFFER_INTERNAL_FIELD, B_): New macro.
2147 (FETCH_CHAR, FETCH_CHAR_AS_MULTIBYTE): Use B_.
2148
2149 2011-02-14 Jan Djärv <jan.h.d@swipnet.se>
2150
2151 * gtkutil.c (xg_tool_bar_menu_proxy): Handle case when tool bar label
2152 is null.
2153
2154 2011-02-13 Jan Djärv <jan.h.d@swipnet.se>
2155
2156 * callproc.c (Fcall_process):
2157 * process.c (create_process): Replace Gtk with GConf in SIGPIPE
2158 comment.
2159
2160 2011-02-12 Martin Rudalics <rudalics@gmx.at>
2161
2162 * window.c (select_window): Check inhibit_point_swap argument when
2163 deciding whether to return immediately.
2164
2165 2011-02-12 Jan Djärv <jan.h.d@swipnet.se>
2166
2167 * nsterm.m (setFrame, initFrame): Make sure pixel_height doesn't become
2168 zero (Bug#7348).
2169
2170 2011-02-12 Chong Yidong <cyd@stupidchicken.com>
2171
2172 * config.in (TERMINFO): New definition.
2173
2174 * s/netbsd.h: Use it to choose between terminfo and termcap
2175 (Bug#7642).
2176
2177 2011-02-12 Paul Eggert <eggert@cs.ucla.edu>
2178
2179 * md5.c (md5_process_bytes): Use sizeof, not __alignof__.
2180 The difference doesn't matter here, in practice, and sizeof is
2181 more portable to non-GCC compilers. Also, this makes the code
2182 match the already-existing comment.
2183
2184 2011-02-12 Andreas Schwab <schwab@linux-m68k.org>
2185
2186 * process.c (create_process): Reset SIGPIPE handler in the child.
2187 * callproc.c (Fcall_process): Likewise. (Bug#5238)
2188
2189 2011-02-12 Eli Zaretskii <eliz@gnu.org>
2190
2191 * xdisp.c <this_line_min_pos>: New variable.
2192 (move_it_in_display_line_to): Record in this_line_min_pos the
2193 smallest position iterated across.
2194 (display_line): Use this_line_min_pos to record the smallest
2195 position in the line even if it is not displayed due to
2196 hscrolling. (Bug#7939)
2197
2198 2011-02-12 Paul Eggert <eggert@cs.ucla.edu>
2199
2200 Port to Sun C 5.11, which has __attribute__ ((__aligned (N))).
2201 * md5.h (ATTRIBUTE_ALIGNED): New macro.
2202 (struct md5_ctx): Use it.
2203
2204 Port to Solaris 10, which doesn't support FC_HINT_STYLE.
2205 * xftfont.c (FC_HINT_STYLE): #define to "hintstyle" if not
2206 defined.
2207 * xsettings.c (parse_settings, apply_xft_settings): Don't assume
2208 FC_HINT_STYLE is supported.
2209
2210 2011-02-11 Jan Djärv <jan.h.d@swipnet.se>
2211
2212 * xterm.c (x_set_frame_alpha): Access data before it is free:d.
2213 Make sure we don't do x_catch_errors twice.
2214
2215 2011-02-10 Glenn Morris <rgm@gnu.org>
2216
2217 * Makefile.in (really-lwlib): Depend on globals.h, for parallel builds.
2218
2219 2011-02-09 Eli Zaretskii <eliz@gnu.org>
2220
2221 * makefile.w32-in (GLOBAL_SOURCES, SOME_MACHINE_OBJECTS, obj):
2222 New macros.
2223 (globals.h, gl-stamp): New targets.
2224 (clean): Clean gl-stamp and globals.h.
2225
2226 2011-02-09 Andreas Schwab <schwab@linux-m68k.org>
2227
2228 * Makefile.in (gl-stamp): Create globals.h here.
2229 (globals.h): Don't do it here.
2230 (mostlyclean): Clean globals.h and gl-stamp.
2231
2232 2011-02-09 Paul Eggert <eggert@cs.ucla.edu>
2233
2234 * Makefile.in ($(otherobj)): Depend on globals.h.
2235 Otherwise 'make -j10' failed on my host, because the build lacked
2236 necessary dependencies, e.g., vm-limit.o depends on globals.h.
2237
2238 2011-02-08 Tom Tromey <tromey@redhat.com>
2239
2240 * Makefile.in (NS_OBJC_OBJ): New variable.
2241 (base_obj): Rename from 'obj'.
2242 (obj): New variable.
2243 (globals.h, gl-stamp, $(obj)): New targets.
2244 (GLOBAL_SOURCES): New variable.
2245 * globals.h: Remove.
2246 * nsselect.m (Vselection_alist): Define. Reverts part of
2247 2011-01-19T22:11:33Z!jan.h.d@swipnet.se.
2248 * buffer.c: Don't use "no_cell" for name of kill-buffer-hook's
2249 variable.
2250 * xselect.c (Vselection_alist): Define. Reverts part of 2011-01-19T23:32:42Z!eggert@cs.ucla.edu.
2251
2252 2011-02-08 Kenichi Handa <handa@m17n.org>
2253
2254 * font.c (Ffont_get): Do not cache :otf value.
2255
2256 2011-02-07 Paul Eggert <eggert@cs.ucla.edu>
2257
2258 conform to C89 pointer rules
2259
2260 * dired.c (scmp, file_name_completion):
2261 Change types between char * and unsigned char *, to satisfy C89
2262 rules about pointer type compatibility.
2263 * casefiddle.c (casify_object, casify_region): Likewise.
2264 * search.c (Freplace_match, Fregexp_quote): Likewise.
2265 * alloc.c (make_string, make_specified_string, make_pure_string):
2266 Likewise.
2267 * data.c (Fstring_to_number): Likewise.
2268 * print.c (float_to_string, PRINTFINISH, printchar, strout):
2269 (print_object): Likewise.
2270 * editfns.c (init_editfns, Fchar_to_string, Fbyte_to_string):
2271 (Fuser_full_name, Fsubst_char_in_region, Ftranslate_region_internal):
2272 (Fformat): Likewise.
2273 * callint.c (Fcall_interactively): Likewise.
2274 * fns.c (string_make_multibyte, string_to_multibyte):
2275 (string_make_unibyte, Fstring_as_unibyte, Fstring_to_unibyte):
2276 (Fbase64_encode_region, base64_encode_1, Fbase64_decode_region, Fmd5):
2277 Likewise.
2278 * lread.c (read1, hash_string): Likewise.
2279 * process.c (read_process_output, send_process, Fprocess_send_region):
2280 Likewise.
2281 * callproc.c (Fcall_process): Likewise.
2282 * doprnt.c (doprnt): Likewise.
2283 * indent.c (compute_motion): Likewise.
2284 * xfont.c (xfont_decode_coding_xlfd): Likewise.
2285 * ralloc.c (resize_bloc): Likewise.
2286 * image.c (tiff_load): Likewise.
2287 * xml.c (make_dom, parse_region): Likewise.
2288 * character.c (strwidth): Make its argument const char *, not const
2289 unsigned char *, since more callers prefer it that way. All callers
2290 changed.
2291
2292 2011-02-06 Paul Eggert <eggert@cs.ucla.edu>
2293
2294 * xterm.c (x_alloc_nearest_color_1): Avoid unportable int assumption.
2295 Emacs assumes two's complement elsewhere, but the assumption is
2296 easy to remove here, and this suppresses a warning with Sun C 5.8.
2297
2298 conform to C89 pointer rules
2299
2300 * xterm.c (x_draw_fringe_bitmap, handle_one_xevent, x_bitmap_icon):
2301 (same_x_server, x_term_init):
2302 Change types between char * and unsigned char *, to satisfy C89
2303 rules about pointer type compatibility.
2304 * doc.c (get_doc_string, Fsnarf_documentation):
2305 (Fsubstitute_command_keys): Likewise.
2306 * xfns.c (Fx_open_connection, Fx_window_property): Likewise.
2307 * bitmaps/gray.xbm (gray_bits): Likewise.
2308 * image.c (xbm_read_bitmap_data, xbm_load_image, xbm_load): Likewise.
2309 * keyboard.c (echo_char, MULTI_LETTER_MOD, tty_read_avail_input):
2310 Likewise.
2311 * keymap.c (Ftext_char_description): Likewise.
2312 * minibuf.c (Fread_buffer): Likewise.
2313 * fileio.c (IS_DRIVE) [defined WINDOWSNT]:
2314 (DRIVE_LETTER) [defined DOS_NT]:
2315 (report_file_error, Ffile_name_directory, Ffile_name_nondirectory):
2316 (make_temp_name, Fexpand_file_name, file_name_absolute_p):
2317 (search_embedded_absfilename, Fsubstitute_in_file_name):
2318 (barf_or_query_if_file_exists, Fmake_directory_internal):
2319 (Fdelete_directory_internal, Ffile_name_absolute_p, read_non_regular):
2320 (Finsert_file_contents, Fwrite_region):
2321 Likewise.
2322 * insdel.c (insert, insert_and_inherit, insert_before_markers):
2323 (insert_before_markers_and_inherit, insert_1, insert_1_both):
2324 Likewise. This changes these functions' signatures, which is
2325 more convenient since most callers use char *. All remaining
2326 callers changed.
2327 * editfns.c (general_insert_function): Change signature to
2328 match changes to insert functions' signatures.
2329 * keymap.c (map_keymap_char_table_item, map_keymap_internal):
2330 Use explicit cast when converting between void * and function pointer
2331 types, as C89 requires this.
2332
2333 2011-02-05 Paul Eggert <eggert@cs.ucla.edu>
2334
2335 don't ignore chdir failure
2336 * sysdep.c (sys_subshell) [!defined DOS_NT]: Diagnose chdir
2337 failure and exit.
2338 (sys_subshell) [defined DOS_NT]: Mark with a FIXME the two
2339 remaining unchecked chdir calls in this function; some DOS/NT
2340 expert needs to fix them.
2341 * emacs.c (main): Mark with a FIXME the unchecked chdir calls
2342 in this function; some NextStep expert needs to fix them.
2343
2344 2011-02-05 Glenn Morris <rgm@gnu.org>
2345
2346 * xfaces.c (Finternal_set_lisp_face_attribute):
2347 Try to clarify some error messages. (Bug#2659)
2348
2349 2011-02-05 Stefan Monnier <monnier@iro.umontreal.ca>
2350
2351 * editfns.c (save_restriction_restore): Don't forget to invalidate the
2352 current_column cache (bug#7946).
2353
2354 2011-02-05 Kenichi Handa <handa@m17n.org>
2355
2356 * ftfont.c (ftfont_open): Use FC_DUAL only when it is defined.
2357
2358 * xftfont.c (xftfont_open): Likewise.
2359
2360 2011-02-05 Andreas Schwab <schwab@linux-m68k.org>
2361
2362 * window.c (Fselect_window): Add missing return value.
2363
2364 2011-02-05 Paul Eggert <eggert@cs.ucla.edu>
2365
2366 xstrcasecmp: conform to C89 pointer rules
2367 * xfaces.c (xstrcasecmp): Change args from const unsigned char *
2368 to const char *, since they're usually low-level C strings, and
2369 this stays compatible with C89 pointer rules. All callers changed.
2370
2371 * charset.c: Conform to C89 pointer rules.
2372 (define_charset_internal): Switch between char * and unsigned char *.
2373
2374 * xmenu.c: Conform to C89 const rules.
2375 (xmenu_show, xdialog_show): Declare local var as char *, not
2376 const char *, to stay compatible with C89 const rules.
2377
2378 * xdisp.c: Conform to C89 pointer rules.
2379 (store_mode_line_noprop, display_string, reseat_to_string):
2380 (c_string_pos, number_of_chars, message_dolog):
2381 (message_log_check_duplicate, set_message_1, store_mode_line_noprop):
2382 (display_mode_element, display_string):
2383 Switch between char * and unsigned char * to stay compatible wth
2384 C89 pointer rules.
2385
2386 * regex.c: Conform to C89 pointer rules.
2387 (re_wctype): Add cast, as C89 does not allow assigning between
2388 char * and unsigned char *.
2389 (regex_compile): Likewise.
2390
2391 sync from gnulib to remove HAVE_STDBOOL_H
2392 * config.in: Regenerate.
2393
2394 2011-02-04 Eli Zaretskii <eliz@gnu.org>
2395
2396 * makefile.w32-in (LISP_H, PROCESS_H): New variables.
2397 Replace all uses of lisp.h with $(LISP_H), and all uses of
2398 process.h with $(PROCESS_H).
2399 ($(BLD)/editfns.$(O)): Depend on ../lib/strftime.h.
2400 ($(BLD)/print.$(O)): Depend on ../lib/ftoastr.h and ../lib/intprops.h.
2401
2402 * deps.mk: Update for recent changes: gnutls support, gnulib
2403 imports, addition of globals.h.
2404
2405 * makefile.w32-in ($(BLD)/sysdep.$(O)): Depend on
2406 ../lib/ignore-value.h.
2407
2408 2011-02-03 Paul Eggert <eggert@cs.ucla.edu>
2409
2410 allow C code to suppress warnings about ignored return values
2411
2412 We need to go through the code and for each such warning, either
2413 fix the code to pay attention to the returned value, or tell GCC
2414 that we really do want to ignore the returned value. Here is one
2415 example of how to do the latter.
2416 * sysdep.c: Include <ignore-value.h>.
2417 (sys_subshell): Suppress an undesirable warning about not checking
2418 the returned value of 'write', as there's nothing useful one can
2419 do with that returned value.
2420
2421 2011-02-03 Jan Djärv <jan.h.d@swipnet.se>
2422
2423 * xterm.c (x_connection_closed): Remove all calls that calls
2424 XSync (Bug#7949).
2425
2426 2011-02-01 Eli Zaretskii <eliz@gnu.org>
2427
2428 * image.c (tiff_load): Avoid compiler warning in 2nd arg to
2429 TIFFClientOpen.
2430
2431 2011-02-01 Jan Djärv <jan.h.d@swipnet.se>
2432
2433 * xsmfns.c (ice_connection_closed): Call delete_read_fd.
2434 (x_session_check_input): Change args and return type so it can be used
2435 as argument to add_read_fd. Make static. Remove call to select.
2436 Call kbd_buffer_store_event for emacs_event.
2437 (smc_save_yourself_CB): Also store initial argv to SmRestartCommand.
2438 (ice_conn_watch_CB): Call add_read_fd.
2439
2440 * xterm.c (XTread_socket): Remove HAVE_X_SM block with call to
2441 x_session_check_input.
2442 (x_session_initialized): Remove definition.
2443 (x_initialize): Remove setting of x_session_initialized.
2444
2445 * xterm.h (x_session_check_input): Remove declaration.
2446
2447 2011-02-01 Paul Eggert <eggert@cs.ucla.edu>
2448
2449 format-time-string now supports subsecond time stamp resolution
2450 * editfns.c (emacs_nmemftime): Rename from emacs_memftimeu,
2451 for consistency with its new argument and with gnulib nstrftime.
2452 All callers changed. New argument NS.
2453 (Fformat_time_string): Check that the time argument's microseconds
2454 component, if any, is in range; this avoids integer overflow and
2455 also nstrftime needs this. Document %N.
2456
2457 2011-01-31 Andreas Schwab <schwab@linux-m68k.org>
2458
2459 * image.c (DEF_IMGLIB_FN): Add parameter rettype, use it instead
2460 of int. All uses adjusted.
2461 (PNG_JMPBUF, png_load, jpeg_load, tiff_load, gif_load)
2462 (svg_load_image): Remove casts.
2463
2464 2011-01-31 Chong Yidong <cyd@stupidchicken.com>
2465
2466 * image.c (fn_png_longjmp, fn_png_set_longjmp_fn): New png
2467 function definitions for compiling with libpng-1.5.
2468 (PNG_LONGJMP, PNG_JMPBUF): New macros for libpng-1.5.
2469 (my_png_error, png_load): Use them. Suggested by Thomas Klausner
2470 (Bug#7908).
2471
2472 2011-01-31 Eli Zaretskii <eliz@gnu.org>
2473
2474 * s/ms-w32.h (HAVE_STRFTIME): Don't define.
2475
2476 * makefile.w32-in (OBJ2): Remove strftime.$(O).
2477 ($(BLD)/strftime.$(O)): Remove prerequisites.
2478
2479 2011-01-31 Paul Eggert <eggert@cs.ucla.edu>
2480
2481 src/emacs.c now gets version number from configure.in
2482 * emacs.c (emacs_version): Set to VERSION so that it
2483 is determined automatically from ../configure.in.
2484
2485 2011-01-31 Jim Meyering <meyering@redhat.com>
2486
2487 * charset.c (load_charset_map): Don't deref NULL on failed malloc.
2488 Use xmalloc rather than malloc.
2489
2490 2011-01-30 Paul Eggert <eggert@cs.ucla.edu>
2491
2492 strftime: import from gnulib
2493 * Makefile.in (obj): Remove strftime.o, as gnulib now does this for us.
2494 * deps.mk (strftime.o): Remove.
2495 * editfns.c: Include <strftime.h>, supplied by gnulib.
2496 (emacs_strftimeu): Remove decl.
2497 (emacs_memftimeu): Use nstrftime (the gnulib name) rather than
2498 emacs_strftimeu.
2499 * config.in: Regenerate.
2500 * strftime.c: Remove; we now use strftime from gnulib.
2501
2502 Use SSDATA when the context wants char *.
2503 * alloc.c, buffer.c, bytecode.c, callproc.c, dired.c:
2504 * dispnew.c, doc.c, editfns.c, emacs.c, fileio.c, filelock.c:
2505 * fns.c, font.c, frame.c, image.c, indent.c, keyboard.c:
2506 * lread.c, minibuf.c, print.c, process.c, search.c, widget.c:
2507 * xdisp.c, xfaces.c, xfns.c, xml.c, xselect.c, xterm.c:
2508 Use SSDATA (not SDATA) when the context of the expression wants
2509 char * (not unsigned char *).
2510
2511 2011-01-30 Jan Djärv <jan.h.d@swipnet.se>
2512
2513 * .gdbinit: Read global lisp variables as globals.f_V*.
2514
2515 2011-01-30 Andreas Schwab <schwab@linux-m68k.org>
2516
2517 * font.c (PROP_MATCH): Remove parameter N and use strlen instead.
2518 All uses changed.
2519 (PROP_SAVE): Likewise.
2520
2521 2011-01-29 Chong Yidong <cyd@stupidchicken.com>
2522
2523 * keyboard.c (make_lispy_position): Fix typo in last change
2524 (Bug#7935).
2525
2526 2011-01-29 Eli Zaretskii <eliz@gnu.org>
2527
2528 * s/ms-w32.h (HAVE_MKTIME): Remove.
2529
2530 * makefile.w32-in (LOCAL_FLAGS): Add -I../lib.
2531 (GNULIB): New variable.
2532 (LIBS): Add $(GNULIB).
2533 $(TEMACS): Depend on $(GNULIB).
2534 <top-level>: Fix font-lock disrupted by a lone `"'.
2535
2536 2011-01-29 Jan Djärv <jan.h.d@swipnet.se>
2537
2538 * nsselect.m (ns_string_from_pasteboard): Get length of string
2539 and use make_string instead of build_string (Bug#7934).
2540 (ns_string_to_pasteboard_internal): Use initWithBytesNoCopy
2541 instead of stringWithUTF8String (Bug#7934).
2542
2543 2011-01-29 Anders Lindgren <andlind@gmail.com> (tiny change)
2544
2545 * nsfont.m (nsfont_open): Ensure that fonts with inexact
2546 descenders would not become one pixel too tall (Bug#7887).
2547
2548 2011-01-28 Chong Yidong <cyd@stupidchicken.com>
2549
2550 * keyboard.c (make_lispy_position): For clicks on right fringe or
2551 margin, compute text position using the X coordinate relative to
2552 the left of the text area (Bug#7839).
2553
2554 2011-01-28 Kenichi Handa <handa@m17n.org>
2555
2556 * ftfont.c (ftfont_spec_pattern): Check each extra property
2557 value.
2558
2559 2011-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
2560
2561 * xdisp.c (safe_eval_handler): Distinguish symbols and strings.
2562
2563 2011-01-27 Chong Yidong <cyd@stupidchicken.com>
2564
2565 * font.c (font_parse_fcname): Undefine a temporary macro.
2566
2567 2011-01-26 Stefan Monnier <monnier@iro.umontreal.ca>
2568
2569 Let the debugger continue to the normal handler (bug#7825).
2570 * eval.c (maybe_call_debugger): Declare before new use.
2571 (find_handler_clause): Don't call debugger any more.
2572 Ignore Vstack_trace_on_error.
2573 Use XCAR/XCDR.
2574 (syms_of_eval): Remove Vstack_trace_on_error.
2575 (Fsignal): Only modify handlerlist when we know we need to do it.
2576 Call the debugger when necessary.
2577 * globals.h (Vstack_trace_on_error): Remove.
2578
2579 2011-01-26 Chong Yidong <cyd@stupidchicken.com>
2580
2581 * font.c (font_parse_fcname): Rewrite GTK font name parser.
2582
2583 2011-01-25 Stefan Monnier <monnier@iro.umontreal.ca>
2584
2585 * xdisp.c (handle_fontified_prop): Be careful with font-lock changing
2586 the buffer's point-max (bug#7876).
2587
2588 2011-01-25 Chong Yidong <cyd@stupidchicken.com>
2589
2590 * lisp.h (XPNTR): Obey DATA_SEG_BITS in all non-USE_LSB_TAG cases.
2591 Remove unused case (Bug#6811).
2592
2593 2011-01-23 Jan Djärv <jan.h.d@swipnet.se>
2594
2595 * nsterm.m (x_set_offset): Set dont_constrain to 0 so the call to
2596 setFrameTopLeftPoint is constrained.
2597
2598 2011-01-23 Paul Eggert <eggert@cs.ucla.edu>
2599
2600 Check return values of some library calls.
2601 * emacs.c (main): Check dup result.
2602 * frame.c: Include <limits.h>, for INT_MIN and INT_MAX.
2603 (frame_name_fnn_p): Check strtol result.
2604
2605 * image.c (x_create_bitmap_from_xpm_data): Add cast to fix type clash
2606 when calling XpmCreatePixmapFromData.
2607
2608 Promote SSDATA macro from gtkutil.c and xsmfns.c to lisp.h.
2609 * lisp.h (SSDATA): New macro.
2610 All uses of (char *) SDATA (x) replaced with SSDATA (x),
2611 and all uses of (unsigned char *) SDATA (x) replaced with SDATA (x).
2612 * gtkutil.c (SSDATA): Remove, as lisp.h now defines this.
2613 * xsmfns.c (SSDATA): Likewise.
2614
2615 2011-01-22 Martin Rudalics <rudalics@gmx.at>
2616
2617 * window.c (select_window): New function.
2618 (Fselect_window): Call it.
2619 (inhibit_point_swap): Variable deleted.
2620 (Fset_window_configuration): Call select_window directly.
2621
2622 2011-01-22 Jan Djärv <jan.h.d@swipnet.se>
2623
2624 * nsterm.m (constrainFrameRect): Only constrain the first time called.
2625
2626 2011-01-21 Jan Djärv <jan.h.d@swipnet.se>
2627
2628 * nsterm.m (x_set_offset, windowDidMove): When calculating y, use first
2629 screen, not the window screen.
2630 (x_set_window_size): Remove constraints.
2631 Calculate origin.y only if zooming is 0 and without referring to a
2632 screen.
2633 (windowWillResize): Don't modify frameSize.
2634 (windowDidBecomeKey, mouseDown): Set dont_constrain to 1.
2635 (initFrameFromEmacs): Initialize ns_userRect.
2636 (windowShouldZoom): Set zooming to one. Remove all other code.
2637 (windowWillUseStandardFrame): Move static ns_userRect to EmacsView.
2638 Zero it after restore.
2639 (constrainFrameRect): New method for EmacsWindow.
2640 (mouseDragged): Always post NSWindowDidResizeNotification after call to
2641 windowWillResize.
2642
2643 * nsterm.h (ns_output): Add dont_constrain and zooming.
2644 (EmacsView): Add ns_userRect.
2645
2646 * nsterm.m (keyDown): If ns_right_alternate_modifier is Qleft, check
2647 if ns_alternate_modifier is none.
2648
2649 2011-01-20 Jan Djärv <jan.h.d@swipnet.se>
2650
2651 * unexmacosx.c: Add comment about include order.
2652
2653 2011-01-20 Glenn Morris <rgm@gnu.org>
2654
2655 * minibuf.c (syms_of_minibuf) <read-expression-history>:
2656 Give it a doc string.
2657 * globals.h: Add Vread_expression_history.
2658
2659 * macros.c (syms_of_macros) <kbd-macro-termination-hook>:
2660 Give it a doc string.
2661 * globals.h: Add Vkbd_macro_termination_hook.
2662
2663 2011-01-20 Chong Yidong <cyd@stupidchicken.com>
2664
2665 * fns.c (Fyes_or_no_p): Revert 2011-01-07 change, removing ARGS.
2666
2667 2011-01-19 Paul Eggert <eggert@cs.ucla.edu>
2668
2669 Fix X11 compilation failure.
2670 * globals.h (struct emacs_globals): Document f_Vselection_alist.
2671 * xselect.c (Vselection_alist): Remove declaration, moving its
2672 documentation to globals.h. This fixes a compilation failure
2673 induced by the earlier change to globals.h today.
2674
2675 2011-01-19 Jan Djärv <jan.h.d@swipnet.se>
2676
2677 * unexmacosx.c: Include config.h before unistd.h (Bug#7859).
2678
2679 * nsterm.m (ns_input_file, ns_input_font, ns_input_fontsize)
2680 (ns_input_line, ns_input_color, ns_input_text, ns_working_text)
2681 (ns_input_spi_name, ns_input_spi_arg)
2682 (ns_alternate_modifier, ns_right_alternate_modifier)
2683 (ns_command_modifier, ns_right_command_modifier, ns_control_modifier)
2684 (ns_right_control_modifier, ns_function_modifier)
2685 (ns_antialias_text, ns_confirm_quit): Move to globals.h.
2686 (Vx_toolkit_scroll_bars, x_use_underline_position_properties)
2687 (x_underline_at_descent_line): Remove declaration.
2688 (syms_of_nsterm): Remove & from DEFVAR_LISP and DEFVAR_BOOL.
2689
2690 * nsselect.m (Vns_sent_selection_hooks, Vns_lost_selection_hooks)
2691 (Vselection_alist, Vselection_converter_alist): Move to globals.h.
2692 (syms_of_nsselect): Remove & from DEFVAR_LISP.
2693
2694 * nsmenu.m (Voverriding_local_map, Voverriding_local_map_menu_flag):
2695 Remove declaration.
2696
2697 * nsfont.m (Vns_reg_to_script, ns_antialias_text): Move to
2698 globals.h.
2699 (syms_of_nsfont): Remove & from DEFVAR_LISP.
2700
2701 * nsfns.m (Vmenu_bar_mode, Vtool_bar_mode): Remove declaration.
2702 (Vns_icon_type_alist, Vns_version_string): Move to globals.h.
2703 (syms_of_nsfns): Remove & from DEFVAR_LISP calls.
2704
2705 * globals.h (struct emacs_globals): Add f_ns_input_file,
2706 f_ns_input_font, f_ns_input_fontsize, f_ns_input_line,
2707 f_ns_input_color, f_ns_input_text, f_ns_working_text,
2708 f_ns_input_spi_name, f_ns_input_spi_arg, f_ns_alternate_modifier,
2709 f_ns_right_alternate_modifier, f_ns_command_modifier,
2710 f_ns_right_command_modifier, f_ns_control_modifier,
2711 f_ns_right_control_modifier, f_ns_function_modifier,
2712 f_ns_antialias_text, f_ns_confirm_quit, f_Vns_icon_type_alist,
2713 f_Vns_version_string, f_Vns_sent_selection_hooks,
2714 f_Vns_lost_selection_hooks, f_Vselection_alist, f_Vns_reg_to_script
2715 and corresponding defines.
2716
2717 2011-01-19 Sam Steingold <sds@gnu.org>
2718
2719 * w32.c (check_windows_init_file): Remove declarations of
2720 Vwindow_system, Vload_path, Qfile_exists_p to fix compilation.
2721 * w32fns.c: Fix an error introduced by the previous patch.
2722
2723 2011-01-19 Tom Tromey <tromey@redhat.com>
2724
2725 * window.c: Fix error introduced by previous patch.
2726
2727 2011-01-18 Tom Tromey <tromey@parfait>
2728
2729 * globals.h: New file.
2730 * xterm.h (Vx_pixel_size_width_font_regexp): Remove declaration.
2731 * window.h (Vinitial_window_system, Vminibuf_scroll_window)
2732 (Vwindow_system_version): Remove declaration.
2733 * w32term.h (Vw32_enable_palette)
2734 (Vx_pixel_size_width_font_regexp): Remove declaration.
2735 * w32menu.c (Voverriding_local_map)
2736 (Voverriding_local_map_menu_flag): Remove declaration.
2737 * w32inevt.c (Vw32_alt_is_meta, Vw32_apps_modifier)
2738 (Vw32_capslock_is_shiftlock, Vw32_enable_caps_lock)
2739 (Vw32_enable_num_lock, Vw32_lwindow_modifier)
2740 (Vw32_pass_lwindow_to_system, Vw32_pass_rwindow_to_system)
2741 (Vw32_phantom_key_code, Vw32_recognize_altgr)
2742 (Vw32_rwindow_modifier, Vw32_scroll_lock_modifier)
2743 (w32_use_full_screen_buffer): Remove declaration.
2744 * w32.c (Vsystem_configuration, Vw32_downcase_file_names)
2745 (Vw32_generate_fake_inodes, Vw32_get_true_file_attributes)
2746 (w32_num_mouse_buttons, w32_pipe_read_delay): Remove declaration.
2747 * termopts.h (Vtruncate_partial_width_windows, inverse_video)
2748 (no_redraw_on_reenter, visible_bell): Remove declaration.
2749 * sysdep.c (Vsystem_name): Remove declaration.
2750 * syntax.h (parse_sexp_lookup_properties): Remove declaration.
2751 * menu.h (Vmenu_updating_frame): Remove declaration.
2752 * macros.h (Vexecuting_kbd_macro, executing_kbd_macro_index):
2753 Remove declaration.
2754 * lisp.h (Vafter_init_time, Vafter_load_alist)
2755 (Vauto_save_list_file_name, Vbefore_init_time, Vcommand_history)
2756 (Vcompletion_regexp_list, Vcurrent_load_list)
2757 (Vcurrent_prefix_arg, Vdata_directory, Vdebug_on_error)
2758 (Vdoc_directory, Vdoc_file_name, Vdynamic_library_alist)
2759 (Vexec_directory, Vexec_path, Vexec_suffixes)
2760 (Vface_font_rescale_alist, Vface_ignored_fonts, Vfeatures)
2761 (Vhelp_form, Vhistory_length, Vinhibit_field_text_motion)
2762 (Vinhibit_quit, Vinhibit_read_only, Vinhibit_redisplay)
2763 (Vinstallation_directory, Vinvocation_directory)
2764 (Vinvocation_name, Vload_file_rep_suffixes, Vload_history)
2765 (Vload_suffixes, Vmark_even_if_inactive, Vmemory_full)
2766 (Vmessage_log_max, Vobarray, Vprint_length, Vprint_level)
2767 (Vpurify_flag, Vquit_flag, Vsaved_region_selection)
2768 (Vscalable_fonts_allowed, Vselect_active_regions)
2769 (Vshell_file_name, Vstandard_input, Vstandard_output)
2770 (Vsystem_name, Vtemporary_file_directory, Vthrow_on_input)
2771 (Vtop_level, Vtty_erase_char, Vundo_outer_limit)
2772 (Vuser_login_name, Vwindow_scroll_functions)
2773 (Vwindow_system_version, Vx_no_window_manager)
2774 (Vx_resource_class, Vx_resource_name, baud_rate)
2775 (completion_ignore_case, debug_on_next_call, gc_cons_threshold)
2776 (history_delete_duplicates, inhibit_x_resources)
2777 (last_nonmenu_event, load_in_progress, max_specpdl_size)
2778 (minibuffer_auto_raise, print_escape_newlines, scroll_margin)
2779 (use_dialog_box, use_file_dialog): Remove declaration.
2780 Include globals.h.
2781 * keymap.h (Voverriding_local_map)
2782 (Voverriding_local_map_menu_flag, meta_prefix_char):
2783 Remove declaration.
2784 * keyboard.h (Vdouble_click_time, Vfunction_key_map)
2785 (Vinput_method_function, Vkey_translation_map)
2786 (Vlucid_menu_bar_dirty_flag, Vthis_original_command)
2787 (do_mouse_tracking, extra_keyboard_modifiers)
2788 (num_nonmacro_input_events): Remove declaration.
2789 * intervals.h (Vchar_property_alias_alist)
2790 (Vdefault_text_properties, Vinhibit_point_motion_hooks)
2791 (Vtext_property_default_nonsticky): Remove declaration.
2792 * gtkutil.h (x_gtk_file_dialog_help_text)
2793 (x_gtk_show_hidden_files, x_gtk_use_old_file_dialog)
2794 (x_gtk_whole_detached_tool_bar): Remove declaration.
2795 * frame.h (Vdefault_frame_alist, Vframe_alpha_lower_limit)
2796 (Vmenu_bar_mode, Vmouse_highlight, Vterminal_frame)
2797 (Vtool_bar_mode, Vx_resource_class, Vx_resource_name)
2798 (focus_follows_mouse): Remove declaration.
2799 * fontset.h (Valternate_fontname_alist, Vfontset_alias_alist)
2800 (Vignore_relative_composition, Votf_script_alist)
2801 (Vuse_default_ascent, Vvertical_centering_font_regexp):
2802 Remove declaration.
2803 * font.h (Vfont_log): Remove declaration.
2804 * dosfns.h (Vdos_display_scancodes, Vdos_version)
2805 (Vdos_windows_version, dos_codepage, dos_country_code)
2806 (dos_decimal_point, dos_hyper_key, dos_keyboard_layout)
2807 (dos_keypad_mode, dos_super_key, dos_timezone_offset):
2808 Remove declaration.
2809 * disptab.h (Vglyph_table, Vstandard_display_table):
2810 Remove declaration.
2811 * dispextern.h (Vface_remapping_alist, Vglyphless_char_display)
2812 (Vmouse_autoselect_window, Voverflow_newline_into_fringe)
2813 (Vshow_trailing_whitespace, Vtool_bar_button_margin)
2814 (Vtool_bar_style, cursor_in_echo_area, display_hourglass_p)
2815 (inverse_video, mode_line_in_non_selected_windows)
2816 (tool_bar_button_relief, tool_bar_max_label_size)
2817 (underline_minimum_offset)
2818 (unibyte_display_via_language_environment, x_stretch_cursor_p):
2819 Remove declaration.
2820 * composite.h (Vauto_composition_function)
2821 (Vcomposition_function_table): Remove declaration.
2822 * commands.h (Vexecuting_kbd_macro)
2823 (Vminibuffer_local_completion_map)
2824 (Vminibuffer_local_filename_completion_map)
2825 (Vminibuffer_local_filename_must_match_map)
2826 (Vminibuffer_local_map, Vminibuffer_local_must_match_map)
2827 (Vminibuffer_local_ns_map, Vthis_command)
2828 (Vunread_command_events, cursor_in_echo_area)
2829 (last_command_event, last_nonmenu_event, unread_command_char):
2830 Remove declaration.
2831 * coding.h (Vcoding_system_for_read, Vcoding_system_for_write)
2832 (Vdefault_file_name_coding_system)
2833 (Vdefault_process_coding_system, Vfile_name_coding_system)
2834 (Vlast_coding_system_used, Vlocale_coding_system)
2835 (Vselect_safe_coding_system_function)
2836 (Vtranslation_table_for_input, coding_system_require_warning)
2837 (eol_mnemonic_dos, eol_mnemonic_mac, eol_mnemonic_undecided)
2838 (eol_mnemonic_unix, inherit_process_coding_system):
2839 Remove declaration.
2840 * charset.h (Vcharset_list, Vcurrent_iso639_language):
2841 Remove declaration.
2842 * character.h (Vauto_fill_chars, Vchar_direction_table)
2843 (Vchar_script_table, Vchar_width_table, Vprintable_chars)
2844 (Vscript_representative_chars, Vtranslation_table_vector)
2845 (Vunicode_category_table): Remove declaration.
2846 * ccl.h (Vfont_ccl_encoder_alist): Remove declaration.
2847 * buffer.h (Vafter_change_functions, Vbefore_change_functions)
2848 (Vdeactivate_mark, Vfirst_change_hook, Vtransient_mark_mode)
2849 (inhibit_modification_hooks): Remove declaration.
2850 * xterm.c (syms_of_xterm): Update.
2851 (Vx_alt_keysym, Vx_hyper_keysym, Vx_keysym_table)
2852 (Vx_meta_keysym, Vx_super_keysym, Vx_toolkit_scroll_bars)
2853 (x_mouse_click_focus_ignore_position)
2854 (x_underline_at_descent_line)
2855 (x_use_underline_position_properties): Remove.
2856 * xsmfns.c (syms_of_xsmfns): Update.
2857 (Vx_session_id, Vx_session_previous_id): Remove.
2858 * xsettings.c (syms_of_xsettings): Update.
2859 (Vxft_settings, use_system_font): Remove.
2860 * xselect.c (syms_of_xselect): Update.
2861 (Vselection_converter_alist, Vx_lost_selection_functions)
2862 (Vx_sent_selection_functions, x_selection_timeout): Remove.
2863 * xfns.c (syms_of_xfns): Update.
2864 (Vgtk_version_string, Vmotif_version_string)
2865 (Vx_cursor_fore_pixel, Vx_hourglass_pointer_shape)
2866 (Vx_max_tooltip_size, Vx_mode_pointer_shape)
2867 (Vx_no_window_manager, Vx_nontext_pointer_shape)
2868 (Vx_pixel_size_width_font_regexp, Vx_pointer_shape)
2869 (Vx_sensitive_text_pointer_shape)
2870 (Vx_window_horizontal_drag_shape, x_gtk_file_dialog_help_text)
2871 (x_gtk_show_hidden_files, x_gtk_use_old_file_dialog)
2872 (x_gtk_use_system_tooltips, x_gtk_whole_detached_tool_bar):
2873 Remove.
2874 * xfaces.c (syms_of_xfaces): Update.
2875 (Vface_default_stipple, Vface_font_rescale_alist)
2876 (Vface_ignored_fonts, Vface_new_frame_defaults)
2877 (Vface_remapping_alist, Vfont_list_limit)
2878 (Vscalable_fonts_allowed, Vtty_defined_color_alist): Remove.
2879 * xdisp.c (syms_of_xdisp): Update.
2880 (Vauto_resize_tool_bars, Vblink_cursor_alist)
2881 (Vdisplay_pixels_per_inch, Vfontification_functions)
2882 (Vframe_title_format, Vglobal_mode_string)
2883 (Vglyphless_char_display, Vhourglass_delay, Vhscroll_step)
2884 (Vicon_title_format, Vinhibit_redisplay)
2885 (Vline_number_display_limit, Vline_prefix)
2886 (Vmax_mini_window_height, Vmenu_bar_update_hook)
2887 (Vmenu_updating_frame, Vmessage_log_max)
2888 (Vmouse_autoselect_window, Vnobreak_char_display)
2889 (Voverlay_arrow_position, Voverlay_arrow_string)
2890 (Voverlay_arrow_variable_list, Vredisplay_end_trigger_functions)
2891 (Vresize_mini_windows, Vshow_trailing_whitespace)
2892 (Vtool_bar_border, Vtool_bar_button_margin, Vtool_bar_style)
2893 (Vtruncate_partial_width_windows, Vvoid_text_area_pointer)
2894 (Vwindow_scroll_functions, Vwindow_size_change_functions)
2895 (Vwindow_text_change_functions, Vwrap_prefix)
2896 (auto_raise_tool_bar_buttons_p, automatic_hscrolling_p)
2897 (debug_end_pos, display_hourglass_p, emacs_scroll_step)
2898 (highlight_nonselected_windows, hscroll_margin)
2899 (inhibit_eval_during_redisplay, inhibit_free_realized_faces)
2900 (inhibit_menubar_update, inhibit_try_cursor_movement)
2901 (inhibit_try_window_id, inhibit_try_window_reusing)
2902 (line_number_display_limit_width)
2903 (make_cursor_line_fully_visible_p, message_truncate_lines)
2904 (mode_line_inverse_video, multiple_frames, overline_margin)
2905 (scroll_conservatively, scroll_margin, tool_bar_button_relief)
2906 (tool_bar_max_label_size, underline_minimum_offset)
2907 (unibyte_display_via_language_environment, x_stretch_cursor_p):
2908 Remove.
2909 * window.c (syms_of_window): Update.
2910 (Vminibuf_scroll_window, Vother_window_scroll_buffer)
2911 (Vrecenter_redisplay, Vscroll_preserve_screen_position)
2912 (Vtemp_buffer_show_function, Vwindow_configuration_change_hook)
2913 (Vwindow_point_insertion_type, auto_window_vscroll_p)
2914 (mode_line_in_non_selected_windows, next_screen_context_lines)
2915 (window_min_height, window_min_width): Remove.
2916 (scroll_margin): Remove declaration.
2917 * w32term.c (syms_of_w32term): Update.
2918 (Vw32_capslock_is_shiftlock, Vw32_grab_focus_on_raise)
2919 (Vw32_recognize_altgr, Vw32_swap_mouse_buttons)
2920 (Vx_toolkit_scroll_bars, w32_num_mouse_buttons)
2921 (w32_use_visible_system_caret, x_underline_at_descent_line)
2922 (x_use_underline_position_properties): Remove.
2923 (Vcommand_line_args, Vsystem_name, extra_keyboard_modifiers):
2924 Remove declaration.
2925 * w32select.c (syms_of_w32select): Update.
2926 (Vnext_selection_coding_system, Vselection_coding_system): Remove.
2927 * w32proc.c (syms_of_ntproc): Update.
2928 (Vw32_downcase_file_names, Vw32_generate_fake_inodes)
2929 (Vw32_get_true_file_attributes, Vw32_quote_process_args)
2930 (Vw32_start_process_inherit_error_mode)
2931 (Vw32_start_process_share_console)
2932 (Vw32_start_process_show_window, w32_pipe_read_delay): Remove.
2933 (Vsystem_name): Remove declaration.
2934 * w32font.c (syms_of_w32font): Update.
2935 (Vw32_charset_info_alist): Remove.
2936 * w32fns.c (globals_of_w32fns, syms_of_w32fns): Update.
2937 (Vw32_alt_is_meta, Vw32_apps_modifier, Vw32_bdf_filename_alist)
2938 (Vw32_color_map, Vw32_enable_caps_lock, Vw32_enable_num_lock)
2939 (Vw32_enable_palette, Vw32_lwindow_modifier)
2940 (Vw32_pass_alt_to_system, Vw32_pass_lwindow_to_system)
2941 (Vw32_pass_rwindow_to_system, Vw32_phantom_key_code)
2942 (Vw32_rwindow_modifier, Vw32_scroll_lock_modifier)
2943 (Vx_cursor_fore_pixel, Vx_hourglass_pointer_shape)
2944 (Vx_max_tooltip_size, Vx_mode_pointer_shape)
2945 (Vx_no_window_manager, Vx_nontext_pointer_shape)
2946 (Vx_pixel_size_width_font_regexp, Vx_pointer_shape)
2947 (Vx_sensitive_text_pointer_shape)
2948 (Vx_window_horizontal_drag_shape, w32_ansi_code_page)
2949 (w32_enable_synthesized_fonts, w32_mouse_button_tolerance)
2950 (w32_mouse_move_interval)
2951 (w32_pass_extra_mouse_buttons_to_system)
2952 (w32_pass_multimedia_buttons_to_system, w32_quit_key)
2953 (w32_strict_fontnames, w32_strict_painting): Remove.
2954 (Vhourglass_delay, Vmenu_bar_mode, Vtool_bar_mode)
2955 (Vw32_recognize_altgr, Vwindow_system_version)
2956 (w32_num_mouse_buttons, w32_use_visible_system_caret):
2957 Remove declaration.
2958 * w32console.c (syms_of_ntterm): Update.
2959 (w32_use_full_screen_buffer): Remove.
2960 (Vtty_defined_color_alist): Remove declaration.
2961 * w16select.c (syms_of_win16select): Update.
2962 (Vnext_selection_coding_system, Vselection_coding_system): Remove.
2963 * undo.c (syms_of_undo): Update.
2964 (Vundo_outer_limit, Vundo_outer_limit_function)
2965 (undo_inhibit_record_point, undo_limit, undo_strong_limit):
2966 Remove.
2967 * textprop.c (syms_of_textprop): Update.
2968 (Vchar_property_alias_alist, Vdefault_text_properties)
2969 (Vinhibit_point_motion_hooks, Vtext_property_default_nonsticky):
2970 Remove.
2971 * terminal.c (syms_of_terminal): Update.
2972 (Vdelete_terminal_functions, Vring_bell_function): Remove.
2973 * term.c (syms_of_term): Update.
2974 (Vresume_tty_functions, Vsuspend_tty_functions)
2975 (no_redraw_on_reenter, system_uses_terminfo, visible_cursor):
2976 Remove.
2977 * syntax.c (syms_of_syntax): Update.
2978 (Vfind_word_boundary_function_table, multibyte_syntax_as_symbol)
2979 (open_paren_in_column_0_is_defun_start)
2980 (parse_sexp_ignore_comments, parse_sexp_lookup_properties)
2981 (words_include_escapes): Remove.
2982 * search.c (syms_of_search): Update.
2983 (Vinhibit_changing_match_data, Vsearch_spaces_regexp): Remove.
2984 * process.c (syms_of_process): Update.
2985 (Vprocess_adaptive_read_buffering, Vprocess_connection_type)
2986 (delete_exited_processes): Remove.
2987 * print.c (syms_of_print): Update.
2988 (Vfloat_output_format, Vprint_charset_text_property)
2989 (Vprint_circle, Vprint_continuous_numbering, Vprint_gensym)
2990 (Vprint_length, Vprint_level, Vprint_number_table)
2991 (Vstandard_output, print_escape_multibyte)
2992 (print_escape_newlines, print_escape_nonascii, print_quoted):
2993 Remove.
2994 * msdos.c (syms_of_msdos): Update.
2995 (Vdos_unsupported_char_glyph): Remove.
2996 (unibyte_display_via_language_environment): Remove declaration.
2997 * minibuf.c (syms_of_minibuf): Update.
2998 (Vcompletion_regexp_list, Vhistory_add_new_input)
2999 (Vhistory_length, Vminibuffer_completing_file_name)
3000 (Vminibuffer_completion_confirm)
3001 (Vminibuffer_completion_predicate, Vminibuffer_completion_table)
3002 (Vminibuffer_exit_hook, Vminibuffer_help_form)
3003 (Vminibuffer_history_position, Vminibuffer_history_variable)
3004 (Vminibuffer_prompt_properties, Vminibuffer_setup_hook)
3005 (Vread_buffer_function, Vread_expression_map)
3006 (completion_ignore_case, enable_recursive_minibuffers)
3007 (history_delete_duplicates, minibuffer_allow_text_properties)
3008 (minibuffer_auto_raise, read_buffer_completion_ignore_case):
3009 Remove.
3010 * marker.c (syms_of_marker): Update.
3011 (byte_debug_flag): Remove.
3012 * macros.c (syms_of_macros): Update.
3013 (Vexecuting_kbd_macro, executing_kbd_macro_index): Remove.
3014 * lread.c (syms_of_lread): Update.
3015 (Vafter_load_alist, Vbyte_boolean_vars)
3016 (Vbytecomp_version_regexp, Vcurrent_load_list)
3017 (Veval_buffer_list, Vload_file_name, Vload_file_rep_suffixes)
3018 (Vload_history, Vload_path, Vload_read_function)
3019 (Vload_source_file_function, Vload_suffixes, Vobarray)
3020 (Vold_style_backquotes, Vpreloaded_file_list, Vread_circle)
3021 (Vread_symbol_positions_list, Vread_with_symbol_positions)
3022 (Vsource_directory, Vstandard_input, Vuser_init_file, Vvalues)
3023 (force_load_messages, load_convert_to_unibyte)
3024 (load_dangerous_libraries, load_force_doc_strings)
3025 (load_in_progress): Remove.
3026 * keymap.c (syms_of_keymap): Update.
3027 (Vdefine_key_rebound_commands, Vemulation_mode_map_alists)
3028 (Vminibuffer_local_completion_map)
3029 (Vminibuffer_local_filename_completion_map)
3030 (Vminibuffer_local_filename_must_match_map)
3031 (Vminibuffer_local_map, Vminibuffer_local_must_match_map)
3032 (Vminibuffer_local_ns_map, Vminor_mode_map_alist)
3033 (Vminor_mode_overriding_map_alist, Vwhere_is_preferred_modifier):
3034 Remove.
3035 * keyboard.c (syms_of_keyboard): Update.
3036 (Vauto_save_timeout, Vcommand_error_function)
3037 (Vcommand_hook_internal, Vdeactivate_mark)
3038 (Vdeferred_action_function, Vdeferred_action_list)
3039 (Vdisable_point_adjustment, Vdouble_click_time)
3040 (Vecho_keystrokes, Venable_disabled_menus_and_buttons)
3041 (Vfunction_key_map, Vglobal_disable_point_adjustment)
3042 (Vhelp_char, Vhelp_event_list, Vhelp_form)
3043 (Vinput_method_function, Vinput_method_previous_message)
3044 (Vkey_translation_map, Vlast_event_frame)
3045 (Vlucid_menu_bar_dirty_flag, Vmenu_bar_final_items)
3046 (Vminibuffer_message_timeout, Voverriding_local_map)
3047 (Voverriding_local_map_menu_flag, Vpost_command_hook)
3048 (Vpre_command_hook, Vprefix_help_command)
3049 (Vsaved_region_selection, Vselect_active_regions)
3050 (Vshow_help_function, Vspecial_event_map, Vsuggest_key_bindings)
3051 (Vthis_command, Vthis_command_keys_shift_translated)
3052 (Vthis_original_command, Vthrow_on_input, Vtimer_idle_list)
3053 (Vtimer_list, Vtool_bar_separator_image_expression, Vtop_level)
3054 (Vtty_erase_char, Vunread_command_events)
3055 (Vunread_input_method_events, Vunread_post_input_method_events)
3056 (auto_save_interval, cannot_suspend, do_mouse_tracking)
3057 (double_click_fuzz, extra_keyboard_modifiers)
3058 (inhibit_local_menu_bar_menus, last_command_event)
3059 (last_input_event, last_nonmenu_event, menu_prompt_more_char)
3060 (menu_prompting, meta_prefix_char, num_input_keys)
3061 (num_nonmacro_input_events, polling_period, unread_command_char):
3062 Remove.
3063 * insdel.c (syms_of_insdel): Update.
3064 (Vcombine_after_change_calls, check_markers_debug_flag): Remove.
3065 * indent.c (syms_of_indent): Update.
3066 (indent_tabs_mode): Remove.
3067 * image.c (syms_of_image): Update.
3068 (Vimage_cache_eviction_delay, Vimage_types)
3069 (Vimagemagick_render_type, Vmax_image_size, Vx_bitmap_file_path)
3070 (cross_disabled_images): Remove.
3071 * fringe.c (syms_of_fringe): Update.
3072 (Vfringe_bitmaps, Voverflow_newline_into_fringe): Remove.
3073 * frame.c (syms_of_frame): Update.
3074 (Vdefault_frame_alist, Vdefault_frame_scroll_bars)
3075 (Vdelete_frame_functions, Vframe_alpha_lower_limit)
3076 (Vmake_pointer_invisible, Vmenu_bar_mode, Vmouse_highlight)
3077 (Vmouse_position_function, Vterminal_frame, Vtool_bar_mode)
3078 (Vx_resource_class, Vx_resource_name, focus_follows_mouse):
3079 Remove.
3080 * fontset.c (syms_of_fontset): Update.
3081 (Valternate_fontname_alist, Vfont_encoding_charset_alist)
3082 (Vfontset_alias_alist, Vignore_relative_composition)
3083 (Votf_script_alist, Vuse_default_ascent)
3084 (Vvertical_centering_font_regexp): Remove.
3085 * font.c (syms_of_font): Update.
3086 (Vfont_encoding_alist, Vfont_log, Vfont_slant_table)
3087 (Vfont_weight_table, Vfont_width_table): Remove.
3088 * fns.c (syms_of_fns): Update.
3089 (Vfeatures, use_dialog_box, use_file_dialog): Remove.
3090 * filelock.c (syms_of_filelock): Update.
3091 (Vtemporary_file_directory): Remove.
3092 * fileio.c (syms_of_fileio): Update.
3093 (Vafter_insert_file_functions, Vauto_save_include_big_deletions)
3094 (Vauto_save_list_file_name, Vauto_save_visited_file_name)
3095 (Vdefault_file_name_coding_system, Vfile_name_coding_system)
3096 (Vfile_name_handler_alist, Vinhibit_file_name_handlers)
3097 (Vinhibit_file_name_operation, Vset_auto_coding_function)
3098 (Vwrite_region_annotate_functions)
3099 (Vwrite_region_annotations_so_far)
3100 (Vwrite_region_post_annotation_function)
3101 (delete_by_moving_to_trash, write_region_inhibit_fsync): Remove.
3102 (Vw32_get_true_file_attributes): Remove declaration.
3103 * eval.c (syms_of_eval): Update.
3104 (Vdebug_ignored_errors, Vdebug_on_error, Vdebug_on_signal)
3105 (Vdebugger, Vinhibit_quit, Vmacro_declaration_function)
3106 (Vquit_flag, Vsignal_hook_function, Vstack_trace_on_error)
3107 (debug_on_next_call, debug_on_quit, debugger_may_continue)
3108 (max_lisp_eval_depth, max_specpdl_size): Remove.
3109 * emacs.c (syms_of_emacs): Update.
3110 (Vafter_init_time, Vbefore_init_time, Vcommand_line_args)
3111 (Vdynamic_library_alist, Vemacs_copyright, Vemacs_version)
3112 (Vinstallation_directory, Vinvocation_directory)
3113 (Vinvocation_name, Vkill_emacs_hook, Vpath_separator)
3114 (Vprevious_system_messages_locale, Vprevious_system_time_locale)
3115 (Vsystem_configuration, Vsystem_configuration_options)
3116 (Vsystem_messages_locale, Vsystem_time_locale, Vsystem_type)
3117 (inhibit_x_resources, noninteractive1): Remove.
3118 * editfns.c (syms_of_editfns): Update.
3119 (Vbuffer_access_fontified_property)
3120 (Vbuffer_access_fontify_functions, Vinhibit_field_text_motion)
3121 (Voperating_system_release, Vsystem_name, Vuser_full_name)
3122 (Vuser_login_name, Vuser_real_login_name): Remove.
3123 * dosfns.c (syms_of_dosfns): Update.
3124 (Vdos_display_scancodes, Vdos_version, Vdos_windows_version)
3125 (dos_codepage, dos_country_code, dos_decimal_point)
3126 (dos_hyper_key, dos_keyboard_layout, dos_keypad_mode)
3127 (dos_super_key, dos_timezone_offset): Remove.
3128 * doc.c (syms_of_doc): Update.
3129 (Vbuild_files, Vdoc_file_name): Remove.
3130 * dispnew.c (syms_of_display): Update.
3131 (Vglyph_table, Vinitial_window_system)
3132 (Vredisplay_preemption_period, Vstandard_display_table)
3133 (Vwindow_system_version, baud_rate, cursor_in_echo_area)
3134 (inverse_video, redisplay_dont_pause, visible_bell): Remove.
3135 * dired.c (syms_of_dired): Update.
3136 (Vcompletion_ignored_extensions): Remove.
3137 (Vw32_get_true_file_attributes): Remove declaration.
3138 * dbusbind.c (syms_of_dbusbind): Update.
3139 (Vdbus_debug, Vdbus_registered_buses)
3140 (Vdbus_registered_objects_table): Remove.
3141 * data.c (syms_of_data): Update.
3142 (Vmost_negative_fixnum, Vmost_positive_fixnum): Remove.
3143 * composite.c (syms_of_composite): Update.
3144 (Vauto_composition_function, Vauto_composition_mode)
3145 (Vcompose_chars_after_function, Vcomposition_function_table):
3146 Remove.
3147 * coding.c (syms_of_coding): Update.
3148 (Vcharset_revision_table, Vcoding_category_list)
3149 (Vcoding_system_alist, Vcoding_system_for_read)
3150 (Vcoding_system_for_write, Vcoding_system_list)
3151 (Vdefault_process_coding_system, Venable_character_translation)
3152 (Vfile_coding_system_alist, Vlast_code_conversion_error)
3153 (Vlast_coding_system_used, Vlatin_extra_code_table)
3154 (Vlocale_coding_system, Vnetwork_coding_system_alist)
3155 (Vprocess_coding_system_alist)
3156 (Vselect_safe_coding_system_function)
3157 (Vstandard_translation_table_for_decode)
3158 (Vstandard_translation_table_for_encode)
3159 (Vtranslation_table_for_input, coding_system_require_warning)
3160 (eol_mnemonic_dos, eol_mnemonic_mac, eol_mnemonic_undecided)
3161 (eol_mnemonic_unix, inherit_process_coding_system)
3162 (inhibit_eol_conversion, inhibit_iso_escape_detection)
3163 (inhibit_null_byte_detection): Remove.
3164 * cmds.c (syms_of_cmds): Update.
3165 (Vpost_self_insert_hook): Remove.
3166 * charset.c (syms_of_charset): Update.
3167 (Vcharset_list, Vcharset_map_path, Vcurrent_iso639_language)
3168 (inhibit_load_charset_map): Remove.
3169 * character.c (syms_of_character): Update.
3170 (Vauto_fill_chars, Vchar_direction_table, Vchar_script_table)
3171 (Vchar_width_table, Vprintable_chars)
3172 (Vscript_representative_chars, Vtranslation_table_vector)
3173 (Vunicode_category_table): Remove.
3174 * ccl.c (syms_of_ccl): Update.
3175 (Vcode_conversion_map_vector, Vfont_ccl_encoder_alist)
3176 (Vtranslation_hash_table_vector): Remove.
3177 * category.c (syms_of_category): Update.
3178 (Vword_combining_categories, Vword_separating_categories): Remove.
3179 * callproc.c (syms_of_callproc): Update.
3180 (Vconfigure_info_directory, Vdata_directory, Vdoc_directory)
3181 (Vexec_directory, Vexec_path, Vexec_suffixes)
3182 (Vinitial_environment, Vprocess_environment)
3183 (Vshared_game_score_directory, Vshell_file_name): Remove.
3184 * callint.c (syms_of_callint): Update.
3185 (Vcommand_debug_status, Vcommand_history, Vcurrent_prefix_arg)
3186 (Vmark_even_if_inactive, Vmouse_leave_buffer_hook): Remove.
3187 * bytecode.c (syms_of_bytecode): Update.
3188 (Vbyte_code_meter, byte_metering_on): Remove.
3189 * buffer.c (syms_of_buffer): Update.
3190 (Vafter_change_functions, Vbefore_change_functions)
3191 (Vchange_major_mode_hook, Vfirst_change_hook)
3192 (Vinhibit_read_only, Vkill_buffer_query_functions)
3193 (Vtransient_mark_mode, inhibit_modification_hooks): Remove.
3194 * alloc.c (syms_of_alloc): Update.
3195 (Vgc_cons_percentage, Vgc_elapsed, Vmemory_full)
3196 (Vmemory_signal_data, Vpost_gc_hook, Vpurify_flag)
3197 (cons_cells_consed, floats_consed, garbage_collection_messages)
3198 (gc_cons_threshold, gcs_done, intervals_consed)
3199 (misc_objects_consed, pure_bytes_used, string_chars_consed)
3200 (strings_consed, symbols_consed, vector_cells_consed): Remove.
3201
3202 * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
3203 (DEFVAR_INT): Assume global is in `globals'.
3204 * alloc.c (globals): Define.
3205
3206 2011-01-18 Tom Tromey <tromey@redhat.com>
3207
3208 * image.c (Vimagemagick_render_type): Remove redundant
3209 definition.
3210
3211 2011-01-18 Tom Tromey <tromey@redhat.com>
3212
3213 * xdisp.c (emacs_scroll_step): Rename from scroll_step.
3214 (try_scrolling): Rename argument to 'arg_scroll_conservatively'.
3215 (redisplay_window): Update.
3216 (syms_of_xdisp): Update.
3217
3218 2011-01-18 Tom Tromey <tromey@redhat.com>
3219
3220 * gtkutil.h (x_gtk_use_old_file_dialog, x_gtk_show_hidden_files)
3221 (x_gtk_file_dialog_help_text, x_gtk_whole_detached_tool_bar):
3222 Declare.
3223 * gtkutil.c (xg_uses_old_file_dialog):
3224 (xg_get_file_with_chooser):
3225 (xg_tool_bar_detach_callback): Don't redeclare globals.
3226
3227 2011-01-18 Tom Tromey <tromey@redhat.com>
3228
3229 * lisp.h (DEFVAR_BUFFER_DEFAULTS): New macro.
3230 * buffer.c (syms_of_buffer): Use DEFVAR_BUFFER_DEFAULTS.
3231
3232 2011-01-18 Paul Eggert <eggert@cs.ucla.edu>
3233
3234 * lisp.h (DECL_ALIGN): Define if HAVE_ATTRIBUTE_ALIGNED, not if
3235 defined __GNUC__. ../configure now checks for this GCC feature,
3236 which is now also supported by IBM and Oracle compilers.
3237 (USE_LSB_TAG) [defined DECL_ALIGN]: Also define if defined __sun,
3238 since Solaris malloc returns mult-of-8.
3239
3240 2011-01-18 Stefan Monnier <monnier@iro.umontreal.ca>
3241
3242 * image.c (syms_of_image): Don't access XSYMBOL's internals directly.
3243
3244 2011-01-17 Paul Eggert <eggert@cs.ucla.edu>
3245
3246 Give a name FLOAT_TO_STRING_BUFSIZE to the constant 350.
3247 * lisp.h (FLOAT_TO_STRING_BUFSIZE): New macro.
3248 * data.c (Fnumber_to_string): Use it.
3249 * print.c (float_to_string, print_object): Likewise.
3250
3251 Include <unistd.h> unilaterally.
3252 * alloc.c, atimer.c, buffer.c, callproc.c, dired.c, dispnew.c, doc.c:
3253 * doprnt.c, editfns.c, emacs.c, fileio.c, filelock.c, fns.c:
3254 * getloadavg.c, getpagesize.h, gmalloc.c, image.c, keyboard.c:
3255 * lread.c, process.c, process.h, ralloc.c, regex.c, sysdep.c:
3256 * systty.h, term.c, termcap.c, xfns.c, xrdb.c, xselect.c, xsmfns.c:
3257 * xterm.c:
3258 Include <unistd.h> without worrying about HAVE_UNISTD_H, since
3259 unistd.h is always present now, possibly supplied by gnulib.
3260
3261 * mktime.c: Remove; moving to ../lib.
3262
3263 Use gnulib's mktime module.
3264 * deps.mk (mktime.o): Remove rule.
3265
3266 Use gnulib's ftoastr module.
3267 * print.c: Include ftoastr.h.
3268 (FLT_RADIX, DBL_MANT_DIG, DBL_DIG, DBL_MIN, DOUBLE_DIGITS_BOUND):
3269 Remove; no longer needed.
3270 (float_to_string): Use dtoastr rather than rolling our own code,
3271 which had an off-by-one bug on non-IEEE hosts.
3272
3273 Automate syncing from gnulib.
3274 * Makefile.in (lib): New macro.
3275 (ALL_CFLAGS): Add -I$(lib) -I$(srcdir)/../lib.
3276 ($(lib)/libgnu.a): New rule.
3277 (temacs$(EXEEXT)): Also link $(lib)/libgnu.a.
3278
3279 * xfns.c (x_real_positions): Fix signedness of local var 'ign'.
3280 XGetGeometry wants unsigned int *, not int *, for its last 4 args,
3281 so change the type of 'ign' to unsigned int from int.
3282
3283 * regex.c (analyse_first): Remove unreachable 'continue' statement.
3284
3285 * xterm.h (struct x_display_info): Remove stray semicolon.
3286 The extra semicolon didn't conform to the C standard.
3287 Problem reported by Sun cc.
3288
3289 * lisp.h: Redo flags and XSET slightly to avoid overflow diagnostics.
3290 These changes make compilation easier to follow with Sun cc.
3291 (ARRAY_MARK_FLAG): Make it signed, so that it can be assigned to
3292 EMACS_INT values without provoking overflow diagnostics.
3293 (PSEUDOVECTOR_FLAG): Likewise, for consistency.
3294 (XSET) [! USE_LSB_TAG]: Use unsigned left shift to avoid overflow
3295 diagnostic with signed left shift.
3296
3297 * fileio.c (make_temp_name): Remove unreachable code.
3298
3299 * fontset.c (free_realized_fontset): Mark unreachable code with if (0).
3300 Previously it was marked by preceding it with "return;", but
3301 Sun cc complains about this.
3302
3303 * coding.c (decode_coding_emacs_mule): Remove unreachable code.
3304 This is a typo left over from 2009-03-06T07:51:52Z!handa@m17n.org,
3305 which fixed Bug#2370. Caught by Sun cc.
3306
3307 2011-01-15 Martin Rudalics <rudalics@gmx.at>
3308
3309 * window.c (inhibit_point_swap): New variable.
3310 (Fselect_window): If inhibit_point_swap is nonzero, avoid swapping
3311 point this time.
3312 (Fset_window_configuration): Set inhibit_point_swap to 1 instead
3313 of setting selected_window to nil (Bug#7728).
3314
3315 2011-01-11 Tassilo Horn <tassilo@member.fsf.org>
3316
3317 * image.c (imagemagick_load_image, Finit_image_library):
3318 Free intermediate image after creating a MagickWand from it.
3319 Terminate MagickWand environment after image loading.
3320
3321 2011-01-10 Michael Albinus <michael.albinus@gmx.de>
3322
3323 * dbusbind.c (Fdbus_register_service): Raise an error in case of
3324 unexpected return values.
3325 (Fdbus_register_method): Remove connection initialization.
3326
3327 2011-01-10 Jan Moringen <jan.moringen@uni-bielefeld.de>
3328
3329 * dbusbind.c (QCdbus_request_name_allow_replacement): New symbol;
3330 used by Fdbus_register_service.
3331 (QCdbus_request_name_replace_existing): Likewise.
3332 (QCdbus_request_name_do_not_queue): Likewise.
3333 (QCdbus_request_name_reply_primary_owner): Likewise.
3334 (QCdbus_request_name_reply_in_queue): Likewise.
3335 (QCdbus_request_name_reply_exists): Likewise.
3336 (QCdbus_request_name_reply_already_owner): Likewise.
3337 (Fdbus_register_service): New function.
3338 (Fdbus_register_method): Use Fdbus_register_service to do the name
3339 registration.
3340 (syms_of_dbusbind): Add symbols dbus-register-service,
3341 :allow-replacement, :replace-existing, :do-not-queue,
3342 :primary-owner, :existing, :in-queue and :already-owner.
3343
3344 2011-01-09 Chong Yidong <cyd@stupidchicken.com>
3345
3346 * gtkutil.c (update_frame_tool_bar): Don't advance tool-bar index
3347 when removing extra buttons.
3348
3349 2011-01-08 Chong Yidong <cyd@stupidchicken.com>
3350
3351 * fns.c (Fyes_or_no_p): Doc fix.
3352
3353 2011-01-08 Andreas Schwab <schwab@linux-m68k.org>
3354
3355 * fns.c (Fyes_or_no_p): Add usage.
3356
3357 2011-01-08 Glenn Morris <rgm@gnu.org>
3358
3359 * makefile.w32-in ($(EMACS)):
3360 * Makefile.in (emacs$(EXEEXT)): -batch implies -q.
3361
3362 * xdisp.c (syms_of_xdisp) <Qrisky_local_variable>: Move from here...
3363 * emacs.c (syms_of_emacs) <Qrisky_local_variable>: ...to here.
3364
3365 2011-01-07 Andreas Schwab <schwab@linux-m68k.org>
3366
3367 * image.c (imagemagick_load_image): Fix some resource leaks and
3368 error handling.
3369
3370 2011-01-07 Chong Yidong <cyd@stupidchicken.com>
3371
3372 * fns.c (Fyes_or_no_p): Accept format string args.
3373
3374 2011-01-07 Glenn Morris <rgm@gnu.org>
3375
3376 * emacs.c (no_site_lisp): New int.
3377 (USAGE1): Add --no-site-lisp, mention -Q uses it.
3378 (main): Set no_site_lisp.
3379 (standard_args): Add --no-site-lisp.
3380 * lisp.h (no_site_lisp): New int.
3381 * lread.c (init_lread): If no_site_lisp, don't re-add site-lisp
3382 directories to Vload_path.
3383
3384 2011-01-05 Andreas Schwab <schwab@linux-m68k.org>
3385
3386 * alloc.c (mark_stack): Use __builtin_unwind_init if available.
3387
3388 2011-01-04 Jan Moringen <jan.moringen@uni-bielefeld.de>
3389
3390 * dbusbind.c (Fdbus_register_method): Add optional parameter
3391 dont_register_service. Updated docstring accordingly.
3392
3393 2011-01-04 Glenn Morris <rgm@gnu.org>
3394
3395 * emacs.c (emacs_copyright): Update short copyright year to 2011.
3396
3397 2011-01-03 Eli Zaretskii <eliz@gnu.org>
3398
3399 * image.c (png_jmpbuf): Remove definition.
3400 (my_png_error, png_load): Don't use png_jmpbuf.
3401
3402 2011-01-02 Eli Zaretskii <eliz@gnu.org>
3403
3404 * keyboard.c (Vselect_active_regions): Doc fix. (Bug#7702)
3405
3406 2011-01-02 Eli Zaretskii <eliz@gnu.org>
3407
3408 * image.c <Qlibpng_version>: New variable.
3409 (syms_of_image): Intern and staticpro it. Set its value to the
3410 version of PNG library we were compiled with.
3411 (my_png_error, png_load): Avoid GCC warnings about direct access
3412 to png_ptr->jmpbuf. (Bug#7716)
3413 (png_jmpbuf): New macro.
3414 (my_png_error, png_load): Use it instead of #ifdef'ing according
3415 to PNG_LIBPNG_VER_MAJOR and PNG_LIBPNG_VER_MINOR.
3416
3417 2011-01-02 Stefan Monnier <monnier@iro.umontreal.ca>
3418
3419 * .gdbinit (xgetptr): Fix the union+lsb case.
3420 (xbacktrace): Fix the union case.
3421
3422 2011-01-02 Stefan Monnier <monnier@iro.umontreal.ca>
3423
3424 * window.c (Fmove_to_window_line): Avoid abort when called in a buffer
3425 different from selected-window's.
3426
3427 2011-01-02 Eli Zaretskii <eliz@gnu.org>
3428
3429 * keyboard.c (parse_menu_item): Prepend " " to the key sequence
3430 equivalent of a menu item when the key sequence is given by the
3431 `:keys' attribute. (Bug#7662)
3432
3433 * xdisp.c (Fformat_mode_line): Doc fix: no need to state that only
3434 the basic faces are supported.
3435
3436 2011-01-02 Jan Djärv <jan.h.d@swipnet.se>
3437
3438 * xterm.c (x_check_fullscreen): Fix pixel/character mixup.
3439
3440 2011-01-02 Eli Zaretskii <eliz@gnu.org>
3441
3442 * xdisp.c (Fformat_mode_line): Fix last change.
3443
3444 2011-01-02 Chong Yidong <cyd@stupidchicken.com>
3445
3446 * xdisp.c (Fformat_mode_line): Restrict the FACE argument to basic
3447 faces (Bug#7587).
3448
3449 2011-01-02 Eli Zaretskii <eliz@gnu.org>
3450
3451 * fileio.c (Fexpand_file_name): One more doc fix.
3452
3453 2011-01-01 Chong Yidong <cyd@stupidchicken.com>
3454
3455 * gtkutil.c (xg_get_tool_bar_widgets): Use NULL for a missing
3456 image or label in the container.
3457 (xg_make_tool_item): Replace VERT_ONLY arg with HORIZ, TEXT_IMAGE.
3458 (xg_show_toolbar_item): Function deleted.
3459 (xg_tool_item_stale_p): New function.
3460 (update_frame_tool_bar): Calculate tool-bar style once per call.
3461 Instead of hiding text labels, omit them. Don't use
3462 xg_show_toolbar_item; create new GtkToolItems from scratch if
3463 necessary, instead of trying to re-use them. This avoids an
3464 annoying animation when changing tool-bars.
3465
3466 2010-12-31 Jan Djärv <jan.h.d@swipnet.se>
3467
3468 * nsfns.m (ns_set_name_as_filename): Always use buffer name for
3469 title and buffer filename only for RepresentedFilename.
3470 Handle bad UTF-8 in buffer name (Bug#7517).
3471
3472 2010-12-30 Jan Djärv <jan.h.d@swipnet.se>
3473
3474 * coding.h (ENCODE_UTF_8): Remove "Used by ..." comment.
3475
3476 * nsfns.m (ns_set_name_iconic): Remove.
3477 (ns_set_name_internal): New function (Bug#7517).
3478 (Vicon_title_format): Extern declare.
3479 (ns_set_name): Call ns_set_name_internal.
3480 (x_explicitly_set_name): Remove call to ns_set_name_iconic.
3481 (x_implicitly_set_name): Ditto.
3482 (x_set_title): Remove commet about EXPLICIT. Call ns_set_name_internal.
3483 (ns_set_name_as_filename): Encode name with ENCODE_UTF_8 (Bug#7517).
3484
3485 2010-12-29 Štěpán Němec <stepnem@gmail.com> (tiny change)
3486
3487 * window.c (syms_of_window): Add missing defsubr for
3488 window-use-time.
3489
3490 2010-12-28 Andreas Schwab <schwab@linux-m68k.org>
3491
3492 * xterm.h (x_alloc_lighter_color_for_widget): Restore declaration.
3493 * xterm.c (x_alloc_lighter_color_for_widget): Restore.
3494
3495 2010-12-27 Andreas Schwab <schwab@linux-m68k.org>
3496
3497 * buffer.c: Remove unused declarations.
3498 * buffer.h: Likewise.
3499 * charset.h: Likewise.
3500 * composite.h: Likewise.
3501 * dispextern.h: Likewise.
3502 * dispnew.c: Likewise.
3503 * font.h: Likewise.
3504 * fontset.c: Likewise.
3505 * fontset.h: Likewise.
3506 * intervals.h: Likewise.
3507 * keymap.h: Likewise.
3508 * lisp.h: Likewise.
3509 * syntax.c: Likewise.
3510 * syntax.h: Likewise.
3511 * termhooks.h: Likewise.
3512 * window.h: Likewise.
3513 * xsettings.h: Likewise.
3514 * xterm.c: Likewise.
3515 * xterm.h: Likewise.
3516
3517 * chartab.c (sub_char_table_ref): Make static.
3518 * dispnew.c (line_hash_code, required_matrix_height)
3519 (required_matrix_width): Likewise.
3520 * eval.c (interactive_p, apply_lambda): Likewise.
3521 * fns.c (string_make_multibyte, copy_hash_table, hash_clear):
3522 Likewise.
3523 * font.c (QCadstyle, QCregistry, font_make_spec)
3524 (font_parse_fcname, font_encode_char, font_at): Likewise.
3525 * frame.c (x_frame_get_arg): Likewise.
3526 * keymap.c (get_keyelt): Likewise.
3527 * lread.c (read_filtered_event): Likewise.
3528 * print.c (write_string_1): Likewise.
3529 * window.c (delete_window, window_height, window_width)
3530 (foreach_window): Likewise.
3531 * xrdb.c (x_get_customization_string, x_get_resource): Likewise.
3532 * xterm.c (x_scroll_bar_clear, xembed_set_info)
3533 (xembed_send_message): Likewise.
3534
3535 * eval.c (run_hook_list_with_args): Delete.
3536 * font.c (font_unparse_gtkname, font_update_lface): Likewise.
3537 * terminal.c (get_terminal_param): Likewise.
3538 * xterm.c (x_alloc_lighter_color_for_widget): Likewise.
3539
3540 * scroll.c: Fix comment.
3541
3542 * dispnew.c (add_window_display_history)
3543 (add_frame_display_history, glyph_row_slice_p)
3544 (find_glyph_row_slice, flush_stdout)
3545 (check_matrix_pointer_lossage, matrix_row)
3546 (check_matrix_invariants, check_window_matrix_pointers)
3547 (check_matrix_pointers, window_to_frame_vpos)
3548 (window_to_frame_hpos): Prototize.
3549 * textprop.c (erase_properties): Likewise.
3550
3551 2010-12-22 Stefan Monnier <monnier@iro.umontreal.ca>
3552
3553 * print.c (PRINT_NUMBER_OBJECT, PRINT_NUMBER_STATUS): Remove.
3554 (print_preprocess): Fix handling of uninterned symbols in last change.
3555
3556 * print.c (print, print_preprocess, print_object): Use a hash table
3557 rather than a linear table for Vprint_number_table.
3558
3559 2010-12-20 Chong Yidong <cyd@stupidchicken.com>
3560
3561 * frame.c (focus_follows_mouse): Default to 0 (Bug#7269).
3562
3563 2010-12-20 Chong Yidong <cyd@stupidchicken.com>
3564
3565 * keyboard.c (Vtool_bar_separator_image_expression): New variable.
3566 (parse_tool_bar_item): Use it to obtain image separators for
3567 displays not using native tool-bar separators.
3568
3569 * xdisp.c (build_desired_tool_bar_string): Don't handle separators
3570 specially, since this is now done in parse_tool_bar_item.
3571
3572 2010-12-19 Stefan Monnier <monnier@iro.umontreal.ca>
3573
3574 Minor clean up to silence some gcc warnings.
3575 * window.c (Fset_window_buffer):
3576 * xterm.c (x_set_frame_alpha): Restructure code to silence
3577 compiler warning.
3578 (handle_one_xevent): Remove unused var `p'.
3579 (do_ewmh_fullscreen): Remove unused var `lval'.
3580 (xembed_set_info): Remove unused var `atom'.
3581 * textprop.c (Fremove_list_of_text_properties): Add braces to silence
3582 compiler warning.
3583 * fontset.c (fontset_id_valid_p, dump_fontset):
3584 * ftfont.c (ftfont_drive_otf): Modernize k&r declaration.
3585 * eval.c (Feval, Ffuncall): Avoid unneeded gotos.
3586 * dispnew.c (update_frame, update_frame_1): Compile the `do_pause'
3587 label only when it's used.
3588 * image.c (x_create_bitmap_from_xpm_data):
3589 * dispextern.h (x_create_bitmap_from_xpm_data): Use const char** like
3590 its callers.
3591 * coding.c (detect_coding_utf_16): Remove unused vars `src_base' and
3592 `consumed_chars'.
3593 (DECODE_EMACS_MULE_21_COMPOSITION): Remove unused var `charbuf_base'.
3594 (decode_coding_emacs_mule): Remove unused label `retry'.
3595 (detect_eol): Add parens to silence compiler warning.
3596 * alloc.c (bytes_used_when_reconsidered): Move to the #ifdef where
3597 it's used to silence the compiler.
3598 (make_number): Modernize k&r declaration.
3599 (mark_char_table): Add parens to silence compiler warning.
3600
3601 2010-12-17 Chong Yidong <cyd@stupidchicken.com>
3602
3603 * keyboard.c (parse_tool_bar_item): Allow menu separators in
3604 tool-bar maps.
3605 (menu_separator_name_p): New function, from gtkutil.c.
3606 (separator_names): Move from gtkutil.c.
3607
3608 * keyboard.h (menu_separator_name_p): Add prototype.
3609
3610 * gtkutil.c (XG_BIN_CHILD): New macro.
3611 (xg_get_menu_item_label, xg_update_menubar)
3612 (xg_update_menu_item, xg_tool_bar_menu_proxy)
3613 (xg_show_toolbar_item, update_frame_tool_bar): Use it.
3614 (separator_names, xg_separator_p): Move to keyboard.c.
3615 (create_menus, xg_update_submenu, update_frame_tool_bar):
3616 Use menu_separator_name_p.
3617
3618 * nsmenu.m (name_is_separator): Function deleted.
3619 (addItemWithWidgetValue): Use menu_separator_name_p.
3620
3621 * w32menu.c (name_is_separator): Function deleted.
3622 (add_menu_item): Use menu_separator_name_p.
3623
3624 2010-12-16 Jan Djärv <jan.h.d@swipnet.se>
3625
3626 * nsterm.m (ns_draw_window_cursor): If the cursor color is the
3627 same as the background, use the face forground as cursor.
3628
3629 2010-12-13 Eli Zaretskii <eliz@gnu.org>
3630
3631 * fileio.c (Fexpand_file_name): Doc fix. (Bug#7617)
3632
3633 2010-12-13 Eli Zaretskii <eliz@gnu.org>
3634
3635 * xdisp.c (string_pos_nchars_ahead, c_string_pos)
3636 (face_before_or_after_it_pos, next_element_from_string)
3637 (next_element_from_c_string, produce_stretch_glyph): Remove unused
3638 calculations of maximum string length before calling
3639 string_char_and_length and STRING_CHAR_AND_LENGTH.
3640 (string_char_and_length): Update commentary: MAXLEN is no longer
3641 needed.
3642
3643 2010-12-13 Jan Djärv <jan.h.d@swipnet.se>
3644
3645 * keyboard.c (kbd_buffer_get_event): Construct SAVE_SESSION_EVENT
3646 as (Qsave_session arg).
3647
3648 * xsmfns.c (smc_interact_CB): Set arg to Qnil.
3649 (smc_die_CB): Make an event with arg Qt.
3650 (Fhandle_save_session): If event has Qt as argument,
3651 call Fkill_emacs (Bug#7552).
3652
3653 2010-12-13 Chong Yidong <cyd@stupidchicken.com>
3654
3655 * buffer.c (transient-mark-mode): Doc fix (Bug#7465).
3656
3657 2010-12-13 Jan Djärv <jan.h.d@swipnet.se>
3658
3659 * xsmfns.c (smc_die_CB): Call Fkill_emacs (Bug#7552).
3660
3661 2010-12-13 Chong Yidong <cyd@stupidchicken.com>
3662
3663 * dispextern.h (struct it): New member overlay_strings_charpos.
3664
3665 * xdisp.c (next_overlay_string, load_overlay_strings): Record the
3666 charpos where we computed n_overlay_strings.
3667 (next_overlay_string): Load overlay strings at recorded position,
3668 which may not be the same as the iterator's charpos (Bug#7016).
3669
3670 2010-12-13 Chong Yidong <cyd@stupidchicken.com>
3671
3672 * xdisp.c (try_scrolling): Avoid infloop if the first line is
3673 obscured due to a vscroll (Bug#7537).
3674
3675 2010-12-13 Jan Djärv <jhd@zeplinf.localdomain>
3676
3677 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
3678
3679 * nsterm.m (x_set_window_size, windowWillResize, initFrameFromEmacs):
3680 Use FRAME_TOOLBAR_HEIGHT.
3681 (x_set_offset): Handle XNegative and YNegative in
3682 f->size_hint_flags (Bug#7510).
3683
3684 2010-12-11 Eli Zaretskii <eliz@gnu.org>
3685
3686 * w32fns.c (Fx_show_tip): Call try_window with last argument
3687 TRY_WINDOW_IGNORE_FONTS_CHANGE. Delete the TODO ifdef: problem
3688 solved. Round up the tip height to an integral multiple of the
3689 frame's line height. Add FRAME_COLUMN_WIDTH to the tip width.
3690 (Bug#7398)
3691
3692 2010-12-08 Glenn Morris <rgm@gnu.org>
3693
3694 * fileio.c (Fverify_visited_file_modtime): Default to current buffer.
3695
3696 2010-12-06 Lars Magne Ingebrigtsen <larsi@gnus.org>
3697
3698 * xml.c (parse_region): Ignore blank HTML nodes.
3699 (make_dom): Return CDATA sections (like <style>foo</style>) as
3700 text nodes.
3701
3702 2010-12-06 Stefan Monnier <monnier@iro.umontreal.ca>
3703
3704 * lread.c (read1): Allow newstyle unquote outside of backquote.
3705 Disallow old-style backquotes inside new-style backquotes.
3706 Don't count unquotes to figure out when we're "syntactically inside
3707 but semantically outside of a backquote" any more.
3708 Extend the restriction no-unescaped-commas-and-backquotes-in-symbols
3709 to all contexts.
3710
3711 2010-12-05 Chong Yidong <cyd@stupidchicken.com>
3712
3713 * process.c: Remove checks for HAVE_SYS_IOCTL_H (Bug#7484).
3714
3715 2010-12-04 Andreas Schwab <schwab@linux-m68k.org>
3716
3717 * Makefile.in (M_FILE): Substitute @M_FILE@ instead of @machfile@.
3718 (S_FILE): Substitute @S_FILE@ instead of @opsysfile@.
3719 * m/arm.h, m/sh3.h, m/xtensa.h: Remove files.
3720
3721 2010-12-03 Andreas Schwab <schwab@linux-m68k.org>
3722
3723 * lisp.h (union Lisp_Object): Explicitly declare signedness of
3724 bit-field.
3725 (XINT): Remove variant for EXPLICIT_SIGN_EXTEND.
3726 * m/alpha.h (EXPLICIT_SIGN_EXTEND): Don't define.
3727 * m/amdx86-64.h (EXPLICIT_SIGN_EXTEND): Likewise.
3728 * m/ia64.h (EXPLICIT_SIGN_EXTEND): Likewise.
3729 * m/ibms390.h (EXPLICIT_SIGN_EXTEND): Likewise.
3730 * m/ibms390x.h (EXPLICIT_SIGN_EXTEND): Likewise.
3731 * m/iris4d.h (EXPLICIT_SIGN_EXTEND): Likewise.
3732 * m/m68k.h (EXPLICIT_SIGN_EXTEND): Likewise.
3733 * m/sparc.h (EXPLICIT_SIGN_EXTEND): Likewise.
3734 * m/template.h (EXPLICIT_SIGN_EXTEND): Likewise.
3735 * m/hp800.h: Remove file.
3736 * m/mips.h: Remove file.
3737
3738 2010-12-03 Jan Djärv <jan.h.d@swipnet.se>
3739
3740 * nsterm.m (ns_dumpglyphs_image): If drawing cursor, fill background
3741 with cursor color and draw a rectangle around the image (Bug#7412).
3742
3743 2010-12-03 Andreas Schwab <schwab@linux-m68k.org>
3744
3745 * frame.c (x_set_font): Remove unused variable.
3746
3747 2010-12-02 Jan Djärv <jan.h.d@swipnet.se>
3748
3749 * nsmenu.m (update_frame_tool_bar): Remove NSLog on invalid image.
3750
3751 * nsterm.m (ns_draw_glyph_string): Switch fore- and background if
3752 drawing text under filled box cursor (Bug#7479).
3753
3754 2010-11-27 Kenichi Handa <handa@m17n.org>
3755
3756 * charset.c (emacs_mule_charset): Make it an array of charset ID;
3757 i.e. integer.
3758 (Fdefine_charset_internal): Adjust for the above change.
3759 (init_charset_once): Likewise.
3760
3761 * charset.h (emacs_mule_charset): Adjust the prototype.
3762 Delete duplicated extern.
3763
3764 * coding.c (emacs_mule_char): Adjust for the change of
3765 emacs_mule_charset.
3766
3767 * lread.c (read_emacs_mule_char): Adjust for the change of
3768 emacs_mule_charset.
3769
3770 2010-11-27 Eli Zaretskii <eliz@gnu.org>
3771
3772 * w32.c (_PROCESS_MEMORY_COUNTERS_EX): Don't define with versions
3773 of w32api >= 3.15. (Bug#6989) (Bug#7452)
3774
3775 2010-11-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3776
3777 * alloc.c (mark_terminals): Ensure that the image cache is marked
3778 even if the terminal object was marked earlier (Bug#6301).
3779
3780 2010-11-21 Chong Yidong <cyd@stupidchicken.com>
3781
3782 * editfns.c (Fbyte_to_string): Signal an error arg is not a byte.
3783
3784 2010-11-27 Jan Djärv <jan.h.d@swipnet.se>
3785
3786 * gtkutil.c (menubar_map_cb): New function (Bug#7425).
3787 (xg_update_frame_menubar): Connect signal map to menubar_map_cb.
3788 Use 23 as menubar height if 0. (Bug#7425).
3789
3790 2010-11-26 Eli Zaretskii <eliz@gnu.org>
3791
3792 * xdisp.c (set_message_1): Force paragraph direction in echo area
3793 be left-to-right.
3794
3795 * keyboard.c (make_lispy_position): Put a meaningful value in yret
3796 when the click is on the header or mode line.
3797
3798 2010-11-25 Eli Zaretskii <eliz@gnu.org>
3799
3800 * xdisp.c (set_cursor_from_row): Don't forget to consider the
3801 `cursor' property of the first character in overlay strings.
3802 (Bug#7474) (Bug#7481)
3803
3804 2010-11-24 Jan Djärv <jan.h.d@swipnet.se>
3805
3806 * nsterm.m (NSLeftControlKeyMask, NSLeftCommandKeyMask)
3807 (NSLeftAlternateKeyMask): New defines.
3808 (keyDown): Parse left and right keys separately (Bug#7458).
3809 Compare Left key masks exactly (Bug#7458).
3810
3811 2010-11-23 Eli Zaretskii <eliz@gnu.org>
3812
3813 * intervals.c (temp_set_point_both): Define before calling, to
3814 avoid GCC warnings.
3815
3816 2010-11-23 Dan Nicolaescu <dann@ics.uci.edu>
3817
3818 * nsmenu.m: Use #include <config.h> instead of "config.h".
3819
3820 * term.c (Qglyphless_char,last_glyphless_glyph_frame)
3821 (last_glyphless_glyph_face_id, last_glyphless_glyph_merged_face_id):
3822 Move declarations ...
3823 * lisp.h (Qglyphless_char,last_glyphless_glyph_frame)
3824 (last_glyphless_glyph_face_id, last_glyphless_glyph_merged_face_id):
3825 ... here.
3826
3827 * emacs.c (gdb_use_union, gdb_valbits,gdb_gctypebits)
3828 (gdb_data_seg_bits, gdb_array_mark_flag, PVEC_FLAG)
3829 (gdb_pvec_type):
3830 * print.c (print_output_debug_flag):
3831 * lisp.h (debug_print): Mark as EXTERNALLY_VISIBLE.
3832 (safe_debug_print): New declaration.
3833
3834 * xterm.c:
3835 * systty.h:
3836 * sound.c: Include <sys/ioctl.h> unconditionally.
3837
3838 2010-11-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3839
3840 * alloc.c (mark_maybe_object): Return early if given a Lisp
3841 integer (Bug#6301).
3842
3843 2010-11-21 Ken Brown <kbrown@cornell.edu>
3844
3845 * sheap.c (STATIC_HEAP_SIZE): Revert previous change.
3846
3847 2010-11-21 Jan Djärv <jan.h.d@swipnet.se>
3848
3849 * nsterm.m (ns_right_command_modifier, ns_right_control_modifier):
3850 Define (Bug#7458).
3851 (NSRightCommandKeyMask, NSRightControlKeyMask): Define (Bug#7458).
3852 (EV_MODIFIERS): Check for NSRightCommandKeyMask and
3853 NSRightControlKeyMask also (Bug#7458).
3854 (keyDown): Ditto (Bug#7458).
3855 (syms_of_nsterm): Defvar ns-right-command-modifier and
3856 ns-right-control-modifier (Bug#7458).
3857
3858 2010-11-21 Dan Nicolaescu <dann@ics.uci.edu>
3859
3860 * sysdep.c (sys_subshell): Remove SET_EMACS_PRIORITY.
3861 * emacs.c (emacs_priority, syms_of_emacs): Remove emacs_priority.
3862
3863 * intervals.h (temp_set_point, temp_set_point_both):
3864 * buffer.h (offset_intervals, copy_intervals): Remove INLINE.
3865
3866 2010-11-20 Ken Brown <kbrown@cornell.edu>
3867
3868 * sheap.c (STATIC_HEAP_SIZE): Increase to 13MB.
3869
3870 2010-11-20 Eli Zaretskii <eliz@gnu.org>
3871
3872 * term.c (produce_glyphless_glyph): Use \uNNNN, \UNNNNNN, or
3873 \xNNNNNN for hex-code display of glyphless characters.
3874
3875 2010-11-20 Jan Djärv <jan.h.d@swipnet.se>
3876
3877 * gtkutil.c (xg_make_tool_item): Take vert_only as argument.
3878 Set important to ! vert_only.
3879 (xg_show_toolbar_item): Don't show label horizontally if
3880 tool item isn't important.
3881 (update_frame_tool_bar): Get TOOL_BAR_ITEM_VERT_ONLY and pass it to
3882 xg_make_tool_item, or update important on existing tool item.
3883
3884 * keyboard.c (QCvert_only): New variable.
3885 (parse_tool_bar_item): Check for QCvert_only.
3886 (syms_of_keyboard): Initialize QCvert_only.
3887
3888 * dispextern.h (tool_bar_item_idx): Add TOOL_BAR_ITEM_VERT_ONLY.
3889
3890 2010-11-20 Eli Zaretskii <eliz@gnu.org>
3891
3892 * msdos.c (dos_rawgetc): Use gen_help_event, instead of doing the
3893 same in-line.
3894
3895 2010-11-20 Andreas Schwab <schwab@linux-m68k.org>
3896
3897 * xfaces.c (lookup_face): Make static.
3898 * dispnew.c (copy_row_except_pointers): Likewise.
3899 * syntax.c (dec_bytepos): Likewise.
3900 (inc_bytepos): Remove.
3901 * dispextern.h (lookup_face): Remove declaration.
3902
3903 2010-11-19 Eli Zaretskii <eliz@gnu.org>
3904
3905 * xdisp.c (set_cursor_from_row): Display cursor after all the
3906 glyphs that come from an overlay. Don't overstep the last glyph
3907 when skipping glyphs from an overlay. (Bug#6687)
3908
3909 2010-11-18 Dan Nicolaescu <dann@ics.uci.edu>
3910
3911 * alloc.c (refill_memory_reserve): Move declaration ...
3912 * lisp.h (refill_memory_reserve): ... here.
3913
3914 * strftime.c (_strftime_copytm): Add declaration.
3915
3916 * callproc.c (syms_of_callproc): Use intern_c_string.
3917
3918 Move declarations from .c files to .h files.
3919 * process.c (timers_run):
3920 * minibuf.c (quit_char):
3921 * lread.c (read_emacs_mule_char):
3922 * keyboard.c (minibuf_level, message_enable_multibyte)
3923 (pending_malloc_warning):
3924 * insdel.c (Vselect_active_regions, Vsaved_region_selection)
3925 (Qonly): Remove declarations.
3926 * lisp.h (pending_malloc_warning, Vsaved_region_selection)
3927 (Vselect_active_regions):
3928 * keyboard.h (timers_run): Add declarations.
3929
3930 * strftime.c (my_strftime_gmtime_r, my_strftime_localtime_r)
3931 (tm_diff): Convert definitions to standard C.
3932 (extra_args_spec_iso): Remove, unused.
3933
3934 2010-11-18 Jan Djärv <jan.h.d@swipnet.se>
3935
3936 * xsettings.c (init_gconf): Check HAVE_G_TYPE_INIT.
3937
3938 * config.in (HAVE_G_TYPE_INIT): New symbol.
3939
3940 2010-11-18 Eli Zaretskii <eliz@gnu.org>
3941
3942 * lread.c (Fload): Mention `load-in-progress' and
3943 `load-file-name'. (Bug#7346)
3944
3945 * keyboard.c (kbd_buffer_nr_stored): Define only ifdef subprocesses.
3946 (kbd_buffer_store_event_hold, kbd_buffer_get_event)
3947 (tty_read_avail_input): Call kbd_buffer_nr_stored only ifdef
3948 subprocesses. Use buffer_free only ifdef subprocesses.
3949
3950 * process.c (init_process) [subprocesses]: Init kbd_is_on_hold in
3951 the subprocesses version, not in the non-subprocesses one.
3952
3953 * Makefile.in: Don't use ## comment, it breaks the MSDOS build.
3954
3955 2010-11-17 Eli Zaretskii <eliz@gnu.org>
3956
3957 * xdisp.c (set_cursor_from_row): Fix cursor positioning in empty
3958 lines on text-mode terminals. (bug#7417)
3959
3960 2010-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
3961
3962 * xterm.c (get_current_wm_state): Rename from get_current_vm_state.
3963 (do_ewmh_fullscreen, x_handle_net_wm_state): Update callers.
3964
3965 2010-11-17 Kenichi Handa <handa@m17n.org>
3966
3967 * coding.c (Fset_terminal_coding_system_internal): Fix previous
3968 change (set charset-ID list instead of charset-symbol list).
3969
3970 2010-11-16 Chong Yidong <cyd@stupidchicken.com>
3971
3972 * keyboard.c (make_lispy_position): For text area clicks, record Y
3973 pixel position relative to the text area, excluding header line.
3974 Also change X and Y to Lisp_Objects, not pointers; don't return
3975 coordinate values via pointers. Pass ON_TEXT_AREA coordinate to
3976 buffer_posn_from_coords counting from the start of the text area.
3977 (Fposn_at_x_y, make_lispy_event): Callers changed.
3978
3979 * window.c (coordinates_in_window): Change X and Y to ints rather
3980 than pointers; don't return coordinates via pointers.
3981 (struct check_window_data): Change X and Y from pointers to ints.
3982 (window_from_coordinates): Remove args WX and WY; don't return
3983 coordinates via pointers.
3984 (Fcoordinates_in_window_p, window_from_coordinates):
3985 (check_window_containing, Fwindow_at): Callers changed.
3986 (window_relative_x_coord): New function.
3987
3988 * window.h (window_from_coordinates, window_relative_x_coord):
3989 Update prototypes.
3990
3991 * dispnew.c (buffer_posn_from_coords): Assume that X counts from
3992 the start of the text area.
3993
3994 * xdisp.c (remember_mouse_glyph): Change window_from_coordinates
3995 call. Use window_relative_x_coord.
3996 (note_mouse_highlight): Change window_from_coordinates call.
3997
3998 * w32term.c (w32_read_socket):
3999 * msdos.c (dos_rawgetc):
4000 * xterm.c (handle_one_xevent): Likewise.
4001
4002 2010-11-16 Dan Nicolaescu <dann@ics.uci.edu>
4003
4004 * strftime.c (LOCALE_PARAM_DECL): Update for standard C.
4005 (LOCALE_PARAM, LOCALE_PARAM_PROTO): Remove, unused.
4006 (memcpy_lowcase, so_week_days, extra_args_spec, emacs_strftimeu):
4007 Convert definitions to standard C.
4008 * regex.c: Do not include <stdlib.h>, config.h does it.
4009 Include unistd.h.
4010 (xrealloc, init_syntax_once, re_match, regcomp, regexec)
4011 (regerror, regfree): Convert definitions to standard C.
4012 * mktime.c (my_mktime_localtime_r, ydhms_tm_diff, ranged_convert)
4013 (__mktime_internal): Convert definitions to standard C.
4014
4015 2010-11-15 Dan Nicolaescu <dann@ics.uci.edu>
4016
4017 * w32proc.c:
4018 * w32inevt.c:
4019 * w32heap.c:
4020 * w32.c: Remove config.h include guards.
4021
4022 * callproc.c (child_setup): Reorder code to simplify #ifdefs.
4023 No code changes.
4024
4025 * process.c: Include <sys/ioctl.h> unconditionally,
4026 keyboard.c already does it.
4027
4028 * keyboard.c (pending_malloc_warning): Add const to match
4029 definition in alloc.c.
4030 (Fset_input_interrupt_mode): Simplify #ifdefs.
4031
4032 2010-11-15 Dan Nicolaescu <dann@ics.uci.edu>
4033
4034 Clean up systty.h macros.
4035 * systty.h (EMACS_GET_TTY_PGRP, EMACS_SET_TTY_PGRP, EMACS_GET_TTY)
4036 (EMACS_SET_TTY): Remove unneeded abstraction, instead inline the
4037 definition in all uses.
4038 (EMACS_TTY_TABS_OK): Remove, it has a single user.
4039 * sysdep.c (discard_tty_input, child_setup_tty)
4040 (init_sys_modes, tabs_safe_p, reset_sys_modes):
4041 * emacs.c (shut_down_emacs):
4042 * callproc.c (child_setup):
4043 * term.c (dissociate_if_controlling_tty): Inline removed macros.
4044
4045 * data.c (sign_extend_temp, sign_extend_lisp_int): Remove, unused.
4046
4047 2010-11-14 Chong Yidong <cyd@stupidchicken.com>
4048
4049 * w32fns.c (Fx_create_frame):
4050 * nsfns.m (Fx_create_frame): Don't check for the cursorColor
4051 resource here; it's now done at startup.
4052
4053 2010-11-14 Jan Djärv <jan.h.d@swipnet.se>
4054
4055 * xterm.c (set_wm_state): Add Qnil to final cons.
4056
4057 * xselect.c (x_send_client_event): Remove unused variables cons and
4058 size.
4059
4060 2010-11-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4061
4062 * keyboard.c (modify_event_symbol): Add const to array elements of
4063 arg NAME_TABLE.
4064 (lispy_accent_keys, lispy_function_keys, lispy_multimedia_keys)
4065 (lispy_kana_keys, iso_lispy_function_keys, lispy_wheel_names)
4066 (lispy_wheel_names, lispy_drag_n_drop_names, modifier_names):
4067 Add const to array elements.
4068 (scroll_bar_parts): Make static. Fix position of const.
4069
4070 * w32fns.c (lispy_function_keys): Add const to extern.
4071
4072 * w32inevt.c (lispy_function_keys): Likewise.
4073
4074 2010-11-14 Chong Yidong <cyd@stupidchicken.com>
4075
4076 * xfns.c (Fx_create_frame): Don't check for the cursorColor
4077 resource here; it's now done at startup.
4078
4079 2010-11-13 Dan Nicolaescu <dann@ics.uci.edu>
4080
4081 * xmenu.c: Make it clear that ../lwlib/lwlib.h is only needed for Motif.
4082
4083 Fix compilation on Solaris.
4084 * sysdep.c: Do not #include <term.h>.
4085 (tputs): Add declaration, similar to what cm.c does. (Bug#7178)
4086
4087 * s/ms-w32.h (HAVE_TERMIOS_H): Do not undef, not used anymore.
4088
4089 2010-11-13 Jan Djärv <jan.h.d@swipnet.se>
4090
4091 * xterm.c (set_wm_state): Don't put Atom in cons, call
4092 make_fixnum_or_float on them first.
4093 (x_term_init): Initialize Xatom_net_supporting_wm_check and
4094 Xatom_net_supported correctly.
4095
4096 * xselect.c (x_send_client_event): Move CHECK_STRING ...
4097 (Fx_send_client_event): to here.
4098
4099 2010-11-13 Martin Rudalics <rudalics@gmx.at>
4100
4101 * window.c (Fwindow_use_time): New function.
4102
4103 2010-11-13 Eli Zaretskii <eliz@gnu.org>
4104
4105 * xdisp.c (set_cursor_from_row): Fix cursor positioning on
4106 zero-width characters.
4107
4108 * .gdbinit (pgx): Adapt to latest changes in `struct glyph'.
4109
4110 * w32term.c (x_draw_glyphless_glyph_string_foreground): Draw the
4111 box before drawing the glyphs inside it.
4112
4113 * xdisp.c (syms_of_xdisp) <glyphless-char-display>: Doc fix.
4114
4115 * dispextern.h (enum glyphless_display_method):
4116 Rename GLYPHLESS_DISPLAY_HEXA_CODE to GLYPHLESS_DISPLAY_HEX_CODE.
4117 All users changed.
4118
4119 * term.c (append_glyphless_glyph, produce_glyphless_glyph):
4120 Fix comments.
4121 (produce_glyphless_glyph): Enclose "U+nnnn" and "empty box"
4122 whitespace in "[]", to simulate a box. Don't use uninitialized
4123 variable `width'.
4124
4125 2010-11-11 Julien Danjou <julien@danjou.info>
4126
4127 * xsettings.c (init_xsettings): Use already fetch atoms.
4128
4129 * xsmfns.c (create_client_leader_window): Use SM_CLIENT_ID atom
4130 from dpyinfo.
4131
4132 * xselect.c (Fx_send_client_event): Split and create
4133 x_send_client_event.
4134
4135 * lisp.h: Do not EXFUN Fx_send_client_event.
4136
4137 * xterm.c (x_set_frame_alpha): Use _NET_WM_WINDOW_OPACITY atom
4138 from dpyinfo.
4139 (wm_supports): Use atoms from dpyinfo.
4140 (do_ewmh_fullscreen): Use atoms from dpyinfo.
4141 (x_ewmh_activate_frame): Use atoms from dpyinfo.
4142 (xembed_set_info): Use atoms from dpyinfo.
4143 (x_term_init): Fetch _XEMBED_INFO, _NET_SUPPORTED,
4144 _NET_SUPPORTING_WM_CHECK, _NET_WM_WINDOW_OPACITY and
4145 _NET_ACTIVE_WINDOW, XSETTINGS atoms.
4146 Get all atoms in one round-trip.
4147 (set_wm_state): Use x_send_client_event rather than
4148 Fx_send_client_event, using Atom directly.
4149 (x_ewmh_activate_frame): Ditto.
4150 (x_set_sticky): Pass atoms to set_wm_state.
4151 (do_ewmh_fullscreen): Ditto.
4152
4153 * xterm.h (x_display_info): Add Xatom_net_supported,
4154 Xatom_net_supporting_wm_check, Xatom_net_active_window,
4155 Xatom_net_wm_window_opacity, Xatom_XEMBED_INFO, SM_CLIENT_ID.
4156
4157 * xfns.c (Fx_show_tip): Fix typo in docstring.
4158
4159 2010-11-11 Stefan Monnier <monnier@iro.umontreal.ca>
4160
4161 * cmds.c (Fself_insert_command): Don't call XFASTINT without checking
4162 it's not negative.
4163
4164 2010-11-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4165
4166 * font.c (font_filter_properties): Add const to array elements of
4167 properties args.
4168
4169 * font.h (font_filter_properties): Likewise.
4170
4171 * ftfont.c (ftfont_booleans, ftfont_non_booleans): Add const to array
4172 elements.
4173
4174 * w32font.c (w32font_booleans, w32font_non_booleans): Likewise.
4175
4176 2010-11-10 Michael Albinus <michael.albinus@gmx.de>
4177
4178 * dbusbind.c (QCdbus_type_unix_fd): New Lisp object.
4179 (XD_BASIC_DBUS_TYPE, xd_symbol_to_dbus_type, xd_signature)
4180 (xd_append_arg, xd_retrieve_arg): Support DBUS_TYPE_UNIX_FD.
4181 (Fdbus_call_method): Add DBUS_TYPE_UNIX_FD type mapping to doc string.
4182 (syms_of_dbusbind): Initialize QCdbus_type_unix_fd).
4183
4184 2010-11-10 Glenn Morris <rgm@gnu.org>
4185
4186 * emacs.c (syms_of_emacs) <system-type>: Doc fix.
4187
4188 2010-11-09 Eli Zaretskii <eliz@gnu.org>
4189
4190 * xfns.c (x_real_positions): Fix declaration-after-statement problem.
4191
4192 2010-11-09 Chong Yidong <cyd@stupidchicken.com>
4193
4194 * image.c (free_image): Don't garbage the frame here, since this
4195 function can be called while redisplaying (Bug#7210).
4196 (uncache_image): Garbage the frame here (Bug#6426).
4197
4198 2010-11-09 Jan Djärv <jan.h.d@swipnet.se>
4199
4200 * xfns.c (x_real_positions): Only use _NET_FRAME_EXTENTS if our
4201 parent is the root window. Check this after traversing window tree.
4202
4203 * xterm.c (x_term_init): Initialize Xatom_net_frame_extents.
4204
4205 * xterm.h (struct x_display_info): Xatom_net_frame_extents is new.
4206
4207 * xfns.c (x_real_positions): Try to get _NET_FRAME_EXTENTS first
4208 before traversing window tree (Bug#5721).
4209
4210 2010-11-07 Jan Djärv <jan.h.d@swipnet.se>
4211
4212 * xfns.c (set_machine_and_pid_properties): Let X set WM_CLIENT_MACHINE.
4213
4214 * xdisp.c (note_mode_line_or_margin_highlight):
4215 Initialize Cursor to No_Cursor for HAVE_WINDOW_SYSTEM also.
4216
4217 2010-11-06 Eli Zaretskii <eliz@gnu.org>
4218
4219 * xfns.c (Fx_show_tip): If any of the tool-tip text lines is R2L,
4220 adjust width of tool-tip frame to the width of text, excluding the
4221 stretch glyph at the beginning of R2L glyph rows.
4222
4223 * w32fns.c (Fx_show_tip): Likewise.
4224
4225 2010-11-06 Jan Djärv <jan.h.d@swipnet.se>
4226
4227 * nsfont.m: Include termchar for new mouse-highlight.
4228 (nsfont_draw): Use MOUSE_HL_INFO.
4229
4230 2010-11-05 Eli Zaretskii <eliz@gnu.org>
4231
4232 Unify mouse-highlight code for all GUI and TTY sessions.
4233
4234 * term.c: Remove static mouse_face_* variables. All users
4235 changed.
4236 (term_show_mouse_face, term_clear_mouse_face)
4237 (fast_find_position, term_mouse_highlight): Functions deleted.
4238 (tty_draw_row_with_mouse_face): New function.
4239 (term_mouse_movement): Call note_mouse_highlight instead of
4240 term_mouse_highlight.
4241
4242 * nsterm.m (ns_update_window_begin, ns_update_window_end)
4243 (ns_update_end, x_destroy_window, ns_frame_up_to_date)
4244 (ns_dumpglyphs_box_or_relief, ns_maybe_dumpglyphs_background)
4245 (ns_dumpglyphs_image, ns_dumpglyphs_stretch)
4246 (ns_initialize_display_info, keyDown, mouseMoved, mouseExited):
4247 Replace Display_Info with Mouse_HLInfo everywhere where
4248 mouse_face_* members were accessed for mouse highlight purposes.
4249
4250 * xterm.c (x_update_window_begin, x_update_window_end)
4251 (x_update_end, XTframe_up_to_date, x_set_mouse_face_gc)
4252 (handle_one_xevent, x_free_frame_resources, x_term_init):
4253 Replace Display_Info with Mouse_HLInfo everywhere where mouse_face_*
4254 members were accessed for mouse highlight purposes.
4255
4256 * w32term.c (x_update_window_begin, x_update_window_end)
4257 (x_update_end, w32_read_socket, x_free_frame_resources)
4258 (w32_initialize_display_info): Replace Display_Info with
4259 Mouse_HLInfo everywhere where mouse_face_* members were accessed
4260 for mouse highlight purposes.
4261
4262 * xdisp.c (show_mouse_face, note_mode_line_or_margin_highlight)
4263 (note_mouse_highlight) [HAVE_WINDOW_SYSTEM]: Don't run GUI code
4264 unless the frame is on a window-system.
4265 (get_tool_bar_item, handle_tool_bar_click)
4266 (note_tool_bar_highlight, draw_glyphs, erase_phys_cursor)
4267 (show_mouse_face, clear_mouse_face, coords_in_mouse_face_p)
4268 (note_mode_line_or_margin_highlight, note_mouse_highlight)
4269 (x_clear_window_mouse_face, cancel_mouse_face, expose_frame):
4270 Replace Display_Info with Mouse_HLInfo everywhere where
4271 mouse_face_* members were accessed for mouse highlight purposes.
4272 (coords_in_mouse_face_p): Move prototype out of the
4273 HAVE_WINDOW_SYSTEM conditional.
4274 (x_y_to_hpos_vpos, frame_to_window_pixel_xy): Move out of the
4275 HAVE_WINDOW_SYSTEM block.
4276 (try_window_id) [HAVE_GPM || MSDOS]:
4277 Call x_clear_window_mouse_face.
4278 (draw_row_with_mouse_face): Implementation for HAVE_WINDOW_SYSTEM
4279 systems. Call tty_draw_row_with_mouse_face for TTY systems.
4280 (show_mouse_face): Call draw_row_with_mouse_face, instead of
4281 calling draw_glyphs directly.
4282 (show_mouse_face, clear_mouse_face, coords_in_mouse_face_p)
4283 (cursor_in_mouse_face_p, rows_from_pos_range)
4284 (mouse_face_from_buffer_pos, mouse_face_from_string_pos)
4285 (note_mode_line_or_margin_highlight, note_mouse_highlight)
4286 (x_clear_window_mouse_face, cancel_mouse_face): Move out of the
4287 HAVE_WINDOW_SYSTEM block. Ifdef away window-system specific
4288 fragments.
4289 (note_mouse_highlight): Call popup_activated for MSDOS as well.
4290 Clear mouse highlight if pointer is over glyphs whose OBJECT is an
4291 integer.
4292 (mouse_face_from_buffer_pos): Add parentheses around && within ||.
4293 (x_consider_frame_title, tool_bar_lines_needed):
4294 Move prototypes to HAVE_WINDOW_SYSTEM-only part.
4295 (get_window_cursor_type): Move inside a HAVE_WINDOW_SYSTEM-only
4296 part. Remove "#ifdef HAVE_WINDOW_SYSTEM" from body of function.
4297 (null_glyph_slice): Move declaration into HAVE_WINDOW_SYSTEM-only
4298 part.
4299
4300 * dispnew.c (mirror_make_current): Set Y coordinate of the
4301 mode-line and header-line rows.
4302 (init_display): Setup initial frame's output_data for text
4303 terminal frames.
4304
4305 * xmenu.c (popup_activated): Don't define on MSDOS, which now has
4306 its own definition on msdos.c.
4307
4308 * msdos.c (show_mouse_face, clear_mouse_face)
4309 (fast_find_position, IT_note_mode_line_highlight)
4310 (IT_note_mouse_highlight): Functions deleted.
4311 (IT_frame_up_to_date, dos_rawgetc): Call note_mouse_highlight
4312 instead of IT_note_mouse_highlight.
4313 (draw_row_with_mouse_face, popup_activated): New functions.
4314 (dos_set_window_size, draw_row_with_mouse_face, IT_update_begin)
4315 (IT_update_end, IT_frame_up_to_date, internal_terminal_init)
4316 (dos_rawgetc): Replace Display_Info with Mouse_HLInfo everywhere
4317 where mouse_face_* members were accessed for mouse highlight
4318 purposes.
4319
4320 * msdos.h (initialize_msdos_display): Add prototype.
4321
4322 * frame.h (MOUSE_HL_INFO): New macro.
4323
4324 * lisp.h (Mouse_HLInfo): New data type.
4325
4326 * xterm.h (struct x_display_info):
4327 * w32term.h (struct w32_display_info):
4328 * nsterm.h (struct ns_display_info):
4329 * termchar.h (struct tty_display_info): Use it instead of
4330 mouse_face_* members.
4331
4332 * dispextern.h (show_mouse_face, clear_mouse_face): Update type of
4333 1st argument.
4334 (frame_to_window_pixel_xy, note_mouse_highlight)
4335 (x_clear_window_mouse_face, cancel_mouse_face, clear_mouse_face)
4336 (show_mouse_face, cursor_in_mouse_face_p): Move prototypes out of
4337 HAVE_WINDOW_SYSTEM conditional.
4338 (draw_row_with_mouse_face): Declare prototype.
4339 (tty_draw_row_with_mouse_face): Declare prototype.
4340
4341 2010-11-05 Eli Zaretskii <eliz@gnu.org>
4342
4343 * term.c (append_glyphless_glyph, produce_glyphless_glyph):
4344 Remove unused variables.
4345
4346 2010-11-05 Adrian Robert <Adrian.B.Robert@gmail.com>
4347
4348 * nsterm.m (EmacsView-mouseExited:): Correct error in conditional
4349 logic pointed out by Eli Zaretskii.
4350
4351 2010-11-04 Lars Magne Ingebrigtsen <larsi@gnus.org>
4352
4353 * coding.c (coding-category-list): Refer to set-coding-system-priority
4354 instead of the obsolete set-coding-priority in the doc string.
4355
4356 2010-11-04 Adrian Robert <Adrian.B.Robert@gmail.com>
4357
4358 * nsfont.m (nsfont_draw): Correct previous patch to return
4359 correct value.
4360 * nsimage.m (EmacsImage-setXBMColor:): Correct previous patch:
4361 don't change the method signature, change the return.
4362
4363 2010-11-04 Ismail Donmez <ismail@namtrac.org> (tiny change)
4364
4365 * nsfont.m (nsfont_draw)
4366 * nsimage.m (EmacsImage-setXBMColor:)
4367 * nsterm.m (EmacsView-performDragOperation:): Correct empty return.
4368
4369 2010-11-03 Julien Danjou <julien@danjou.info>
4370
4371 * image.c (gif_load): Add support for transparency and specified
4372 :background.
4373
4374 2010-11-01 Kenichi Handa <handa@m17n.org>
4375
4376 * dispextern.h (lookup_glyphless_char_display): Extern it.
4377
4378 * termhooks.h (struct terminal): New member charset_list.
4379
4380 * coding.c (Fset_terminal_coding_system_internal): Set the
4381 `charset_list' member of struct terminal.
4382
4383 * term.c (produce_glyphs): Handle the case it->what == IT_GLYPHLESS.
4384 (append_glyphless_glyph, produce_glyphless_glyph): New functions.
4385
4386 * xdisp.c (lookup_glyphless_char_display): Make it non-static.
4387 (lookup_glyphless_char_display): Set it->what at the end.
4388 (last_glyphless_glyph_frame, last_glyphless_glyph_face_id)
4389 (last_glyphless_glyph_merged_face_id): Make them non-static.
4390
4391 * w32term.c (x_draw_glyphless_glyph_string_foreground):
4392 Fix the arg with_background for font->driver->draw.
4393
4394 2010-11-01 Kenichi Handa <handa@m17n.org>
4395
4396 * w32gui.h (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2):
4397 Surround chp by parentheses.
4398
4399 2010-11-01 Kenichi Handa <handa@m17n.org>
4400
4401 Implement various display methods for glyphless characters.
4402
4403 * xdisp.c (Qglyphless_char, Vglyphless_char_display)
4404 (Qglyphless_char_display, Qhexa_code, Qempty_box, Qthin_space)
4405 (Qzero_width): New variables.
4406 (THIN_SPACE_WIDTH): New macro.
4407 (lookup_glyphless_char_display): New function.
4408 (last_glyphless_glyph_frame, last_glyphless_glyph_face_id)
4409 (last_glyphless_glyph_merged_face_id): New variables.
4410 (get_next_display_element): Check glyphless characters.
4411 (redisplay_internal): Initialize last_glyphless_glyph_frame and
4412 last_glyphless_glyph_face_id.
4413 (fill_glyphless_glyph_string): New function.
4414 (BUILD_GLYPHLESS_GLYPH_STRING): New macro.
4415 (BUILD_GLYPH_STRINGS): Handle the case GLYPHLESS_GLYPH.
4416 (append_glyphless_glyph, produce_glyphless_glyph): New functions.
4417 (x_produce_glyphs): If a suitable font is not found, produce a
4418 glyphless glyph. Handle the case it->what == IT_GLYPHLESS.
4419 (syms_of_xdisp): Intern and staticpro Qglyphless_char,
4420 Qglyphless_char_display, Qhexa_code, Qempty_box, Qthin_space, and
4421 Qzero_width.
4422 (Vglyphless_char_display): Declare it as a Lisp variable.
4423
4424 * dispextern.h (enum glyph_type): Add GLYPHLESS_GLYPH.
4425 (struct glyph): Change the size of the member "type" to 3.
4426 Add glyphless to the union slice and u.
4427 (enum display_element_type): Add IT_GLYPHLESS.
4428 (enum glyphless_display_method): New enum.
4429 (struct it): New member glyphless_method.
4430 (Vglyphless_char_display): Extern it.
4431
4432 * xterm.c (x_draw_glyphless_glyph_string_foreground): New function.
4433 (x_draw_glyph_string): Handle the case GLYPHLESS_GLYPH.
4434
4435 * w32term.c (x_draw_glyphless_glyph_string_foreground): New function.
4436 (x_draw_glyph_string): Handle the case GLYPHLESS_GLYPH.
4437
4438 * nsterm.m (ns_draw_glyph_string): Handle the case
4439 GLYPHLESS_GLYPH (the detail is not yet implemented).
4440
4441 2010-10-31 Glenn Morris <rgm@gnu.org>
4442
4443 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]: Fix merge, maybe.
4444
4445 * frame.c (syms_of_frame) <tool-bar-mode>:
4446 Default to nil if !HAVE_WINDOW_SYSTEM. (Bug#7299)
4447
4448 2010-10-31 Chong Yidong <cyd@stupidchicken.com>
4449
4450 * xterm.c (x_connection_closed): Print informative error message
4451 when aborting on GTK. This requires using shut_down_emacs
4452 directly instead of Fkill_emacs.
4453
4454 2010-10-29 Eli Zaretskii <eliz@gnu.org>
4455
4456 * emacs.c (main): Call syms_of_filelock unconditionally.
4457
4458 * filelock.c (syms_of_filelock): Move out of #ifdef CLASH_DETECTION
4459 clause, but keep part of it conditioned on CLASH_DETECTION.
4460
4461 2010-10-29 Glenn Morris <rgm@gnu.org>
4462
4463 * nsfns.m (Fx-display-save-under, Fx-open-connection)
4464 (Fxw-color-defined-p, Fxw-display-color-p, Fx-show-tip):
4465 * w32fns.c (Fxw_color_defined_p, Fx_open_connection):
4466 * xfns.c (Fxw_color_defined_p, Fx_open_connection):
4467 Sync docs between X, W32, NS.
4468
4469 * buffer.c (syms_of_buffer) <abbrev-mode, transient-mark-mode>:
4470 * frame.c (syms_of_frame) <tool-bar-mode>: Move doc here from Lisp.
4471
4472 2010-10-26 Juanma Barranquero <lekktu@gmail.com>
4473
4474 * eval.c (init_eval_once): Set max_lisp_eval_depth to 600;
4475 otherwise, bootstrapping on Windows fails to compile macroexp.el.
4476
4477 2010-10-26 Eli Zaretskii <eliz@gnu.org>
4478
4479 * cmds.c (internal_self_insert): Don't insert if argument N is
4480 zero or negative. (Bug#7281)
4481
4482 2010-10-26 Jan Djärv <jan.h.d@swipnet.se>
4483
4484 * gtkutil.c (qttip_cb): Set title to empty for ATK (Bug#7278).
4485
4486 2010-10-25 Glenn Morris <rgm@gnu.org>
4487
4488 * Makefile.in (SOME_MACHINE_LISP): Remove easymenu.elc.
4489
4490 2010-10-24 Glenn Morris <rgm@gnu.org>
4491
4492 * w32fns.c (Fx_synchronize, Fx_change_window_property)
4493 (Fx_window_property, Fx_file_dialog):
4494 * xfns.c (Fx_synchronize, Fx_change_window_property)
4495 (Fx_window_property, Fx_file_dialog): Sync docs between w32 and X.
4496
4497 2010-10-24 Chong Yidong <cyd@stupidchicken.com>
4498
4499 * xterm.c (x_connection_closed): Kill Emacs unconditionally.
4500
4501 2010-10-24 Eli Zaretskii <eliz@gnu.org>
4502
4503 * frame.c (Fframep, Fwindow_system): Deprecate use as a predicate.
4504
4505 * dispnew.c (syms_of_display) <initial-window-system, window-system>:
4506 Deprecate use as a boolean flag.
4507
4508 2010-10-24 Jim Meyering <jim@meyering.net>
4509
4510 * emacs.c (argmatch): Don't treat "--" as "--chdir".
4511
4512 2010-10-24 Glenn Morris <rgm@gnu.org>
4513
4514 * w16select.c (syms_of_win16select) <selection-coding-system>:
4515 <next-selection-coding-system>:
4516 * w32select.c (syms_of_w32select) <selection-coding-system>:
4517 <next-selection-coding-system>:
4518 Sync docs with select.el.
4519
4520 * xfaces.c (syms_of_xfaces) <tty-defined-color-alist>: Sync doc with
4521 Lisp version.
4522
4523 * w32term.c (syms_of_w32term) <x-use-underline-position-properties>:
4524 Sync doc with the xterm.c version.
4525
4526 * w32term.c (syms_of_w32term) <x-toolkit-scroll-bars>:
4527 * xterm.c (syms_of_xterm) <x-toolkit-scroll-bars>: Sync docs.
4528
4529 2010-10-23 Glenn Morris <rgm@gnu.org>
4530
4531 * buffer.c (syms_of_buffer) <cursor-in-non-selected-windows>:
4532 * frame.c (syms_of_frame) <menu-bar-mode>:
4533 * xdisp.c (syms_of_xdisp) <auto-hscroll-mode, display-hourglass>:
4534 <hourglass-delay>: Sync docs with Lisp.
4535
4536 2010-10-23 Eli Zaretskii <eliz@gnu.org>
4537
4538 Implement mouse highlight for bidi-reordered lines.
4539
4540 * xdisp.c (fast_find_string_pos): #ifdef away, not used anymore.
4541 (mouse_face_from_string_pos): New function, replaces
4542 fast_find_string_pos.
4543 (note_mouse_highlight): Call it instead of fast_find_string_pos.
4544 (note_mode_line_or_margin_highlight): Support bidi-reordered
4545 strings and R2L glyph rows. Fix comments.
4546 (note_mouse_highlight): When bidi reordering is turned on in a
4547 buffer, call next-single-property-change and
4548 previous-single-property-change with last argument nil.
4549 Clear mouse highlight when mouse pointer is in a R2L row on the stretch
4550 glyph that stands for no text beyond the line end.
4551 (row_containing_pos): Don't return too early when CHARPOS is in a
4552 bidi-reordered continued line. Return immediately when the first
4553 hit is found in a line that is not continued, or when an exact
4554 match for CHARPOS is found.
4555 (rows_from_pos_range): New function.
4556 (mouse_face_from_buffer_pos): Use it instead of calling
4557 row_containing_pos for START_CHARPOS and END_CHARPOS. Rewrite the
4558 function to support mouse highlight in bidi-reordered lines and
4559 not to assume that START_CHARPOS is always in mouse_face_beg_row.
4560 If necessary, swap mouse_face_beg_row and mouse_face_end_row so
4561 that the former is always above the latter or identical to it.
4562 (show_mouse_face): Support drawing highlighted R2L lines.
4563 (coords_in_mouse_face_p): New function, bidi-aware.
4564 (cursor_in_mouse_face_p, note_mouse_highlight, erase_phys_cursor):
4565 Call it instead of comparing with mouse-face members of dpyinfo.
4566 (note_mode_line_or_margin_highlight): Fix confusingly swapped
4567 usage of hpos and vpos.
4568
4569 2010-10-22 Jan Djärv <jan.h.d@swipnet.se>
4570
4571 * xrdb.c: Include keyboard.h for MOTIF.
4572
4573 * xmenu.c: Revert 2010-07-27 change: lwlib.h is needed for
4574 MOTIF (Bug#7263).
4575
4576 * xfns.c: Include Xm/TextF and Xm/List.
4577 (file_dialog_cb, file_dialog_unmap_cb, clean_up_file_dialog):
4578 Make ANSI prototypes.
4579
4580 2010-10-22 Glenn Morris <rgm@gnu.org>
4581
4582 * Makefile.in (SOME_MACHINE_LISP): Add w32-vars.
4583 Remove ccl and duplicate mouse.
4584
4585 2010-10-21 Chong Yidong <cyd@stupidchicken.com>
4586
4587 * insdel.c (prepare_to_modify_buffer): Don't set
4588 saved-region-selection if modification hooks are disabled.
4589
4590 2010-10-19 Chong Yidong <cyd@stupidchicken.com>
4591
4592 * cmds.c (Fdelete_char): Doc fix.
4593
4594 2010-10-19 Ken Brown <kbrown@cornell.edu>
4595
4596 * s/cygwin.h (SIGNALS_VIA_CHARACTERS): New define (bug#7225).
4597
4598 2010-10-19 Kenichi Handa <handa@m17n.org>
4599
4600 Fix incorrect font metrics when the same font is opened with
4601 different pixelsizes.
4602
4603 * xftfont.c: Include composite.h.
4604 (xftfont_shape): New function.
4605 (syms_of_xftfont): Set xftfont_driver.shape.
4606
4607 2010-10-18 Julien Danjou <julien@danjou.info>
4608
4609 * frame.c (Fframe_pointer_visible_p):
4610 Add `frame-pointer-visible-p' to get the pointer visibility.
4611
4612 2010-10-18 Lars Magne Ingebrigtsen <larsi@gnus.org>
4613
4614 * gnutls.c (emacs_gnutls_read): Return 0 if we get a
4615 non-"EAGAIN"-like error to signal to Emacs that the socket should
4616 be closed.
4617
4618 2010-10-15 Eli Zaretskii <eliz@gnu.org>
4619
4620 * unexcoff.c (make_hdr): Fix prototype according to changes in
4621 2010-10-03T13:59:56Z!dann@ics.uci.edu.
4622
4623 * image.c (tiff_load): Cast 3rd argument to avoid compiler warning.
4624
4625 2010-10-15 Tassilo Horn <tassilo@member.fsf.org>
4626
4627 * Makefile.in (really-oldXMenu): Fix typo in variable name that
4628 made building the X menu fail.
4629 (really-oldXMenu): Fix my previous fix.
4630
4631 2010-10-14 Damyan Pepper <damyanp@gmail.com>
4632
4633 Fix handling of font properties on Windows (bug#6303).
4634 * font.c (font_filter_properties): New function, refactored from
4635 ftfont_filter_properties.
4636 * font.h (font_filter_properties): Declare.
4637 * ftfont.c (ftfont_filter_properties): Use font_filter_properties.
4638 * w32font.c (w32font_booleans, w32font_non_booleans): New variables.
4639 (w32font_filter_properties): New function.
4640 (w32font_driver): Add w32font_filter_properties.
4641
4642 2010-10-14 Juanma Barranquero <lekktu@gmail.com>
4643
4644 * font.c (Ffont_variation_glyphs):
4645 * ccl.c (Fccl_execute_on_string): Fix typo in docstring.
4646
4647 2010-10-14 Juanma Barranquero <lekktu@gmail.com>
4648
4649 * w32fns.c (w32_wnd_proc, file_dialog_callback):
4650 * w32font.c (w32_generic_family):
4651 * w32inevt.c (key_event):
4652 * w32menu.c (fill_in_menu):
4653 * w32proc.c (reader_thread, w32_executable_type, compare_env)
4654 (merge_and_sort_env, int_from_hex, enum_locale_fn, enum_codepage_fn):
4655 * w32term.c (w32_read_socket): Make static.
4656
4657 2010-10-13 Juanma Barranquero <lekktu@gmail.com>
4658
4659 * image.c (DEF_IMGLIB_FN): Add argument to adapt to strict
4660 prototypes; all callers changed.
4661
4662 2010-10-13 Juanma Barranquero <lekktu@gmail.com>
4663
4664 * makefile.w32-in (TLIB2): Rename from TLIBW32.
4665 (OBJ2): New macro.
4666 (WIN32OBJ, FONTOBJ): Remove.
4667 (OBJ1): Redistribute object files with OBJ2.
4668 (LIBS, $(TEMACS)): Use TLIB2.
4669 (make-buildobj-CMD, make-buildobj-SH): Use OBJ2.
4670 ($(TLIB2), TAGS, TAGS-LISP, TAGS-gmake): Depend on OBJ2.
4671
4672 2010-10-13 Juanma Barranquero <lekktu@gmail.com>
4673
4674 * emacs.c (Vdynamic_library_alist)
4675 (syms_of_emacs) <dynamic-library-alist>: Move from image.c and rename.
4676 Doc fix.
4677
4678 * lisp.h (Vdynamic_library_alist): Declare extern.
4679
4680 * image.c (Vimage_library_alist)
4681 (syms_of_image) <image-library-alist>: Move to emacs.c and rename.
4682 (lookup_image_type): Use Vdynamic_library_alist.
4683 (Finit_image_library): Doc fix.
4684
4685 2010-10-12 Dan Nicolaescu <dann@ics.uci.edu>
4686
4687 * Makefile.in (lispsource, libsrc, etc, oldxmenudir, lwlibdir)
4688 (lispdir): Remove trailing /, update all uses.
4689
4690 2010-10-12 Jan Djärv <jan.h.d@swipnet.se>
4691
4692 * nsterm.m (Qleft): Declare.
4693 (ns_right_alternate_modifier): New variable.
4694 (NSRightAlternateKeyMask): New define.
4695 (EV_MODIFIERS): Parse NSRightAlternateKeyMask if
4696 ns_right_alternate_modifier isn't Qleft.
4697 (keyDown): If ns_right_alternate_modifier isn't Qleft, use it
4698 as emacs modifier for NSRightAlternateKeyMask.
4699 (syms_of_nsterm): DEFVAR_LISP ns-right-alternate-modifier.
4700
4701 2010-10-10 Lars Magne Ingebrigtsen <larsi@gnus.org>
4702
4703 * gnutls.c (emacs_gnutls_write): If we're trying to write before
4704 gnutls is ready, return EAGAIN as the errno.
4705
4706 2010-10-10 Dan Nicolaescu <dann@ics.uci.edu>
4707
4708 * vm-limit.c:
4709 * unexhp9k800.c:
4710 * unexelf.c:
4711 * unexaix.c:
4712 * termcap.c: Remove #ifdef emacs / #ifndef emacs code, unused.
4713
4714 * Makefile.in (temacs): Use $(ALL_CFLAGS) on the link line.
4715 (PROFILING_LDFLAGS): Remove, not needed anymore.
4716
4717 * Makefile.in: Use $(...) everywhere instead of ${...}.
4718 (CRT_DIR): Move near potential user.
4719 (START_FILE): Move near CRT_DIR, it might use it.
4720
4721 * sysdep.c (LPASS8): Remove, unused.
4722 (emacs_ospeed): Change from being a global to a local in the only
4723 user: init_baud_rate.
4724
4725 2010-10-09 Lars Magne Ingebrigtsen <larsi@gnus.org>
4726
4727 * gnutls.c (syms_of_gnutls): All the bootprops are keywords.
4728 (emacs_gnutls_write): Remove the debuggin fsync call.
4729 (emacs_gnutls_read): Return -1 if we got an error from
4730 gnutls_read. This allows us to actually read lots of data from
4731 the GnuTLS stream.
4732 (emacs_gnutls_write): Check for GNUTLS_E_AGAIN and not EINTR.
4733 According to the documentation, this is correct, and it seems to
4734 make things work.
4735
4736 2010-10-09 Chong Yidong <cyd@stupidchicken.com>
4737
4738 * xterm.c (x_draw_relief_rect): Clear corner pixels.
4739
4740 2010-10-08 Michael Albinus <michael.albinus@gmx.de>
4741
4742 * keyboard.c: Revert last change; it was not intended to be
4743 synchronized with the trunk.
4744
4745 2010-10-08 Kenichi Handa <handa@m17n.org>
4746
4747 * coding.c (complement_process_encoding_system): Fix previous change.
4748
4749 2010-10-08 Michael Albinus <michael.albinus@gmx.de>
4750
4751 * dbusbind.c (syms_of_dbusbind): Move putenv call ...
4752 (Fdbus_init_bus): ... here. (Bug#7113)
4753
4754 2010-10-08 Glenn Morris <rgm@gnu.org>
4755
4756 * buffer.c (before-change-functions, after-change-functions):
4757 Three-year overdue doc fix following 2007-08-13 change.
4758
4759 2010-10-08 Kenichi Handa <handa@m17n.org>
4760
4761 * coding.c (coding_inherit_eol_type): If parent doesn't specify
4762 eol-format, inherit from the system's default.
4763 (complement_process_encoding_system): Make a new coding system
4764 inherit the original eol-format.
4765
4766 2010-10-08 Kenichi Handa <handa@m17n.org>
4767
4768 * coding.c (complement_process_encoding_system): New function.
4769
4770 * coding.h (complement_process_encoding_system): Extern it.
4771
4772 * callproc.c (Fcall_process): Complement the coding system for
4773 encoding arguments.
4774 (Fcall_process_region): Complement the coding system for encoding
4775 the input to the process.
4776
4777 * process.c (Fstart_process): Complement the coding system for
4778 encoding arguments.
4779 (send_process): Complement the coding system for encoding what
4780 sent to the process.
4781
4782 2010-10-08 Kenichi Handa <handa@m17n.org>
4783
4784 * xfont.c (xfont_open): Fix setting of font->average_width from
4785 :avgwidth property (Bug#7123).
4786
4787 2010-10-08 Michael Albinus <michael.albinus@gmx.de>
4788
4789 * dbusbind.c (syms_of_dbusbind): Use putenv instead of setenv, it
4790 is more portable.
4791
4792 * keyboard.c (gobble_input): Move call of xd_read_queued_messages ...
4793 (kbd_buffer_get_event): ... here. This is needed for cygwin, which
4794 has not defined SIGIO.
4795
4796 2010-10-08 Chong Yidong <cyd@stupidchicken.com>
4797
4798 * xterm.c (x_draw_relief_rect): If box width is larger than 1,
4799 draw the outermost line using the black relief, for legibility.
4800 Omit drawing the four corner pixels.
4801
4802 2010-10-04 Chong Yidong <cyd@stupidchicken.com>
4803
4804 * keyboard.c (echo_prompt): Function moved into read_key_sequence.
4805 (read_key_sequence): Inline echo_prompt.
4806 (echo_dash): Add a dash only if key is continued (Bug#7137).
4807
4808 2010-10-04 Dan Nicolaescu <dann@ics.uci.edu>
4809
4810 Remove O_RDONLY, O_WRONLY definitions, not needed.
4811 * unexcoff.c:
4812 * lread.c:
4813 * fileio.c:
4814 * doc.c:
4815 * callproc.c:
4816 * alloc.c:
4817 * termcap.c: Remove O_RDONLY O_WRONLY definitions.
4818
4819 2010-10-03 Teodor Zlatanov <tzz@lifelogs.com>
4820
4821 * gnutls.h (GNUTLS_LOG2): Convenience macro.
4822
4823 * gnutls.c: Add property list symbol holders.
4824 (emacs_gnutls_handshake): Clarify how sockets are passed to
4825 GnuTLS.
4826 (gnutls_log_function2): Convenience function using GNUTLS_LOG2.
4827 (Fgnutls_boot): Get all parameters from a plist. Require trustfiles
4828 and keyfiles to be a list of file names. Default to "NORMAL" for
4829 the priority string. Improve logging.
4830
4831 2010-10-03 Glenn Morris <rgm@gnu.org>
4832
4833 * fileio.c (Vdirectory_sep_char): Remove.
4834
4835 2010-10-03 Dan Nicolaescu <dann@ics.uci.edu>
4836
4837 * termhooks.h: Remove #ifdef CONSP.
4838
4839 * xterm.c (NO_INLINE, noinline): Move definitions to ../configure.in.
4840
4841 Include <fcntl.h> unconditionally.
4842 * termcap.c:
4843 * sysdep.c:
4844 * lread.c:
4845 * keyboard.c:
4846 * filelock.c:
4847 * fileio.c:
4848 * doc.c:
4849 * callproc.c:
4850 * alloc.c: Remove include guards for <fcntl.h>, process.c already
4851 does it.
4852
4853 * process.c: Do not include <sys/wait.h>, syswait.h does it.
4854
4855 * sysdep.c (flush_pending_output): Remove code, does not do
4856 anything on any platform.
4857
4858 Remove unused code.
4859 * sysdep.c (select_alarm, sys_select, read_input_waiting):
4860 Remove select emulation, all systems support select.
4861 (set_exclusive_use): Remove, the only user is in an #if 0 block.
4862 * process.c (create_process): Remove #if 0 code.
4863
4864 Remove unused arguments for unexec.
4865 The third one is never used, and the last two are always passed as zero.
4866 * emacs.c (unexec): Add declaration.
4867 (Fdump_emacs): Only pass the first two arguments to unexec.
4868 Simplify #ifdef.
4869 * unexw32.c (unexec):
4870 * unexsol.c (unexec):
4871 * unexhp9k800.c (unexec):
4872 * unexcw.c (unexec): Remove the last 3 arguments, unused.
4873 * unexelf.c (unexec): Remove the last 3 arguments, unused.
4874 (find_section): Use const.
4875 * unexmacosx.c (unexec): Remove the last 3 arguments, unused.
4876 (unexec_error): Declare it NO_RETURN.
4877 * unexcoff.c (make_hdr): Assume bss_start is always zero, remove
4878 it as an argument, remove data_start and entry_address arguments, unused.
4879 (unexec): Remove bss_start, data_start and
4880 entry_address arguments.
4881 * unexaix.c (make_hdr): Assume bss_start is always zero, remove
4882 it as an argument, remove data_start and entry_address arguments, unused.
4883 (unexec): Remove bss_start, data_start and
4884 entry_address arguments.
4885
4886 2010-10-03 Juanma Barranquero <lekktu@gmail.com>
4887
4888 * makefile.w32-in (TAGS, TAGS-LISP, TAGS-gmake): Add $(FONTOBJ).
4889
4890 * gnutls.c (emacs_gnutls_handshake, gnutls_make_error)
4891 (gnutls_emacs_global_init, gnutls_emacs_global_deinit): Make static.
4892 (Fgnutls_get_initstage, Fgnutls_deinit, Fgnutls_boot, Fgnutls_bye):
4893 Fix typos in docstrings.
4894 (Fgnutls_error_fatalp, Fgnutls_error_string): Doc fixes.
4895 (Fgnutls_errorp): Doc fix; use ERR for the argument name.
4896
4897 2010-10-03 Chong Yidong <cyd@stupidchicken.com>
4898
4899 * keyboard.c (command_loop_1): Make sure the mark is really alive
4900 before using it (Bug#7044).
4901
4902 2010-10-02 Juanma Barranquero <lekktu@gmail.com>
4903
4904 * makefile.w32-in (tags): Rename target to full-tags.
4905
4906 2010-10-02 Eli Zaretskii <eliz@gnu.org>
4907
4908 * emacs.c (main): Remove !WINDOWSNT conditional.
4909 (Fkill_emacs): Don't mention exemption on MS-Windows.
4910
4911 2010-10-02 Glenn Morris <rgm@gnu.org>
4912
4913 * character.c (Fchar_bytes): Remove obsolete function.
4914 (syms_of_character): Remove Schar_bytes.
4915
4916 * emacs.c (fatal_error_signal): Also run Fkill_emacs on SIGINT.
4917 (main) [!WINDOWSNT]: Handle SIGINT with fatal_error_signal
4918 in batch-mode.
4919 (Fkill_emacs): Doc fix. Also run the hook in batch mode.
4920 (kill-emacs-hook): Doc fix.
4921
4922 2010-10-02 Lars Magne Ingebrigtsen <larsi@gnus.org>
4923
4924 * xml.c (Flibxml_parse_xml_region, Flibxml_parse_html_region)
4925 (parse_region): Rework to take regions instead of strings, and
4926 renamed to reflect that these are the libxml functions.
4927
4928 2010-10-01 Eli Zaretskii <eliz@gnu.org>
4929
4930 * term.c (init_tty) [DOS_NT]: Don't call Wcm_clear after setting
4931 screen dimensions in tty->Wcm.
4932
4933 * xdisp.c (set_cursor_from_row): When the row is truncated and
4934 point is outside the range of displayed characters, position the
4935 cursor inside the scroll margin. (Bug#6349)
4936
4937 2010-10-01 Dan Nicolaescu <dann@ics.uci.edu>
4938
4939 Do not include stdlib.h and string.h, config.h does it.
4940 * xfont.c:
4941 * w32term.c:
4942 * w32reg.c:
4943 * w32inevt.c:
4944 * w32heap.c:
4945 * w32console.c:
4946 * w16select.c:
4947 * unexsol.c:
4948 * term.c:
4949 * sound.c:
4950 * scroll.c (m):
4951 * gtkutil.c:
4952 * font.c:
4953 * filelock.c:
4954 * fileio.c:
4955 * dosfns.c:
4956 * dbusbind.c:
4957 * bidi.c:
4958 * callproc.c:
4959 * process.c:
4960 * msdos.c:
4961 * charset.c: Do not include stdlib.h and string.h, config.h does it.
4962
4963 * callproc.c (SIGCHLD): Remove conditional definition, syssignal.h
4964 defines it.
4965
4966 * process.c: Move #include <pty.h> earlier.
4967 (SIGCHLD): Remove conditional definition, syssignal.h defines it.
4968 (pty_name): Move definition later.
4969
4970 * nsselect.m (syms_of_nsselect):
4971 * nsmenu.m (syms_of_nsmenu):
4972 * nsfns.m (syms_of_nsfns):
4973 * msdos.c (syms_of_msdos):
4974
4975 * image.c (syms_of_image):
4976 * charset.c (syms_of_charset): Use intern_c_string instead of intern.
4977
4978 * point.h: Remove, unused.
4979
4980 2010-10-01 Eli Zaretskii <eliz@gnu.org>
4981
4982 * makefile.w32-in (TAGS, frc, TAGS-LISP, ../nt/TAGS, tags)
4983 (TAGS-gmake, TAGS-nmake, TAGS-LISP-gmake, TAGS-LISP-nmake)
4984 (nt-TAGS-gmake, nt-TAGS-nmake): New targets.
4985
4986 2010-09-30 Dan Nicolaescu <dann@ics.uci.edu>
4987
4988 * xml.c (parse_string): Use const.
4989
4990 2010-09-30 Lars Magne Ingebrigtsen <larsi@gnus.org>
4991
4992 * eval.c (Fbacktrace): Don't overwrite print-level on exit.
4993 Also only override Vprint_level if it isn't already bound, and increase
4994 the level to 8 to produce more useful backtraces for bug reports.
4995
4996 2010-09-30 Dan Nicolaescu <dann@ics.uci.edu>
4997
4998 * Makefile.in: ecrt0.c does not exist anymore, do not mention it.
4999
5000 2010-09-30 Juanma Barranquero <lekktu@gmail.com>
5001
5002 * w32console.c (vga_stdcolor_name): Remove unused function;
5003 presumed dead after 2007-11-30T13:57:21Z!jasonr@gnu.org.
5004
5005 2010-09-29 Lars Magne Ingebrigtsen <larsi@gnus.org>
5006
5007 * gnutls.c (emacs_gnutls_handshake): Made into internal function.
5008 (Fgnutls_boot): Start the handshake.
5009 (emacs_gnutls_read): Perform the handshake from the reader loop.
5010 (Fgnutls_boot): Remove some debugging messages.
5011 Change indentation throughout to use the Emacs style.
5012 (emacs_gnutls_handshake): Cast the fds to something that's
5013 possibly the expected length.
5014 (emacs_gnutls_write): Return -1 if we try to write before handshake.
5015
5016 * process.h (Lisp_Process): Add a gnutls_p field to Lisp_Process.
5017
5018 * process.c (make_process): Set the gnutls_p field to zero by
5019 default.
5020 (read_process_output): Always call the gnutls_read function if the
5021 stream is a gnutls stream.
5022 (send_process): Ditto for writes.
5023
5024 * gnutls.c (emacs_gnutls_write, emacs_gnutls_read): Refuse to read
5025 or write anything until the state is GNUTLS_STAGE_READY.
5026 (Fgnutls_boot): Mark the stream as being a gnutls stream.
5027
5028 2010-09-29 Eli Zaretskii <eliz@gnu.org>
5029
5030 * xdisp.c (reseat_1): Initialize bidi_it.paragraph_dir to
5031 NEUTRAL_DIR.
5032 (handle_invisible_prop, iterate_out_of_display_property)
5033 (next_element_from_buffer): If bidi_it.first_elt is set, call
5034 bidi_paragraph_init with NO_DEFAULT_P argument non-zero.
5035 (Bug#7128)
5036
5037 * print.c (print_object): Fix format string and argument types for
5038 printing a Lisp_Misc_Marker.
5039
5040 * xdisp.c (pos_visible_p, c_string_pos, number_of_chars)
5041 (load_overlay_strings, get_overlay_strings_1)
5042 (get_overlay_strings, forward_to_next_line_start)
5043 (back_to_previous_visible_line_start, reseat, reseat_to_string)
5044 (get_next_display_element, next_element_from_string)
5045 (next_element_from_c_string, next_element_from_buffer)
5046 (move_it_vertically_backward, move_it_by_lines, add_to_log)
5047 (message_dolog, message_log_check_duplicate, message2_nolog)
5048 (message3, message3_nolog, vmessage, set_message, set_message_1)
5049 (hscroll_window_tree, text_outside_line_unchanged_p)
5050 (set_cursor_from_row, set_vertical_scroll_bar, redisplay_window)
5051 (find_last_unchanged_at_beg_row)
5052 (find_first_unchanged_at_end_row, row_containing_pos)
5053 (trailing_whitespace_p, display_mode_element, decode_mode_spec)
5054 (display_count_lines, x_produce_glyphs, note_mouse_highlight):
5055 Use EMACS_INT for buffer and string positions.
5056
5057 * dispextern.h (struct it) <string_nchars>: Declare EMACS_INT.
5058 (row_containing_pos): Adjust prototype.
5059
5060 * lisp.h (pos_visible_p, message2, message2_nolog, message3)
5061 (message2_nolog, set_message): Adjust prototypes.
5062
5063 2010-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
5064
5065 * gnutls.c (Fgnutls_boot): Remove unused vars `data' and `srp_cred'.
5066 (Fgnutls_boot): Use SDATA.
5067 (Fgnutls_handshake): Remove unused var `max_log_level'.
5068
5069 2010-09-27 Michael Albinus <michael.albinus@gmx.de>
5070
5071 * dbusbind.c (syms_of_dbusbind): Set $DBUS_FATAL_WARNINGS to "0".
5072 (Bug#7113)
5073
5074 2010-09-27 Jan Djärv <jan.h.d@swipnet.se>
5075
5076 * xgselect.c (xg_select): Clear file descriptors not set from
5077 rfds and wfds.
5078
5079 * process.c (wait_reading_process_output): Add missing FD_CLR
5080 for write_mask (must mirror connect_wait_mask).
5081
5082 2010-09-27 Teodor Zlatanov <tzz@lifelogs.com>
5083
5084 * gnutls.c (gnutls_log_function): Show level and "gnutls.c"
5085 prefix.
5086 (Fgnutls_boot): Use changed process members. Use log level with a
5087 function parameter to set it. Bring back Emacs-level debugging
5088 messages at log level 1 and 2.
5089
5090 * process.c (make_process): Initialize gnutls_log_level.
5091
5092 * process.h: Add gnutls_log_level and rename x509_cred and
5093 anon_cred to have the gnutls_ prefix for consistency.
5094
5095 * gnutls.h (GNUTLS_LOG): Add convenience macro.
5096
5097 2010-09-27 Juanma Barranquero <lekktu@gmail.com>
5098
5099 * w32.c (g_b_init_get_sid_identifier_authority)
5100 (GetSidIdentifierAuthority_Proc, get_sid_identifier_authority):
5101 Remove, not used.
5102 (globals_of_w32): Don't set g_b_init_get_sid_identifier_authority.
5103 (init_winsock): Remove useless assignment.
5104 (open_process_token, get_token_information, lookup_account_sid)
5105 (get_sid_sub_authority, get_sid_sub_authority_count, get_file_security)
5106 (get_security_descriptor_owner, get_security_descriptor_group)
5107 (is_valid_sid, equal_sid, get_length_sid, copy_sid)
5108 (get_native_system_info, get_system_times, init_user_info, crlf_to_lf)
5109 (is_unc_volume, GetCachedVolumeInformation, get_volume_info)
5110 (is_fat_volume, open_unc_volume, read_unc_volume, close_unc_volume)
5111 (unc_volume_file_attributes, convert_from_time_t)
5112 (create_toolhelp32_snapshot, process32_first, process32_next)
5113 (open_thread_token, impersonate_self, revert_to_self)
5114 (get_process_memory_info, get_process_working_set_size)
5115 (global_memory_status, global_memory_status_ex, socket_to_fd)
5116 (shutdown_handler): Make static.
5117
5118 2010-09-27 Michael Albinus <michael.albinus@gmx.de>
5119
5120 * dbusbind.c (dbus_fd_cb, xd_get_dispatch_status)
5121 (xd_pending_messages): Functions removed.
5122 (xd_read_queued_messages): Add parameters fd, *data, for_read in
5123 order to be compatible with add_read_fd. Determine bus from data,
5124 and call xd_read_message just for this bus.
5125 (xd_add_watch): Use xd_read_queued_messages as callback function.
5126 Add data.
5127
5128 * lisp.h (xd_pending_messages, xd_read_queued_messages): Remove.
5129
5130 2010-09-27 Lars Magne Ingebrigtsen <larsi@gnus.org>
5131
5132 * gnutls.c (gnutls_log_function): Add more debugging.
5133 (emacs_gnutls_read): Don't infloop while reading.
5134
5135 2010-09-27 Kenichi Handa <handa@m17n.org>
5136
5137 These changes are to remove restriction on the number of glyphs in
5138 one composition.
5139
5140 * dispextern.h (struct glyph): Change the member "slice" to union.
5141 Remove u.cmp.from and u.cmp.to. Give more bits to u.cmp.id.
5142 (GLYPH_SLICE_EQUAL_P): Adjust for the above change.
5143
5144 * dispnew.c (buffer_posn_from_coords): Use glyph->slice.img
5145 instead of glyph->slice.
5146 (marginal_area_string): Likewise.
5147
5148 * term.c (encode_terminal_code): Use glyph->slice.cmp instead of
5149 glyph->u.cmp.
5150 (append_composite_glyph): Likewise.
5151
5152 * xdisp.c (dump_glyph): Use glyph->slice.cmp instead of
5153 glyph->u.cmp.
5154 (fill_gstring_glyph_string, x_get_glyph_overhangs)
5155 (append_composite_glyph): Likewise.
5156 (fill_image_glyph_string): Use glyph->slice.img instead of
5157 glyph->slice.
5158 (append_glyph, produce_image_glyph, append_stretch_glyph)
5159 (note_mouse_highlight): Likewise.
5160
5161 2010-09-26 Jan Djärv <jan.h.d@swipnet.se>
5162
5163 * process.c (add_keyboard_wait_descriptor)
5164 (delete_keyboard_wait_descriptor): Reinstate ifdef subprocesses.
5165 (wait_reading_process_output): Don't pass write_mask to select
5166 if SELECT_CANT_DO_WRITE_MASK is defined.
5167 (SELECT_CANT_DO_WRITE_MASK): Define if SELECT_CANT_DO_WRITE_MASK.
5168
5169 * process.h (add_read_fd, delete_read_fd, add_write_fd)
5170 (delete_write_fd): Declare.
5171
5172 * process.c (gpm_wait_mask, max_gpm_desc): Remove.
5173 (write_mask): New variable.
5174 (max_input_desc): Rename from max_keyboard_desc.
5175 (fd_callback_info): New variable.
5176 (add_read_fd, delete_read_fd, add_write_fd, delete_write_fd):
5177 New functions.
5178 (Fmake_network_process): FD_SET write_mask.
5179 (deactivate_process): FD_CLR write_mask.
5180 (wait_reading_process_output): Connecting renamed to Writeok.
5181 check_connect removed. check_write is new. Remove references to gpm.
5182 Use Writeok/check_write unconditionally (i.e. no #ifdef
5183 NON_BLOCKING_CONNECT) instead of Connecting.
5184 Loop over file descriptors and call callbacks in fd_callback_info
5185 if file descriptor is ready for I/O.
5186 (add_gpm_wait_descriptor): Just call add_keyboard_wait_descriptor.
5187 (delete_gpm_wait_descriptor): Just call delete_keyboard_wait_descriptor.
5188 (keyboard_bit_set): Use max_input_desc.
5189 (add_keyboard_wait_descriptor, delete_keyboard_wait_descriptor):
5190 Remove #ifdef subprocesses. Use max_input_desc.
5191 (init_process): Initialize write_mask and fd_callback_info.
5192
5193 * keyboard.c (readable_events, gobble_input): Remove DBUS code.
5194
5195 * dbusbind.c: Include process.h.
5196 (dbus_fd_cb, xd_find_watch_fd, xd_toggle_watch)
5197 (xd_read_message_1): New functions.
5198 (xd_add_watch, xd_remove_watch): Call xd_find_watch_fd.
5199 Handle watch for both read and write.
5200 (Fdbus_init_bus): Also register xd_toggle_watch.
5201 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
5202 (Fdbus_method_error_internal, Fdbus_send_signal): Remove call
5203 to dbus_connection_flush.
5204 (xd_read_message): Move most of the code to xd_read_message_1.
5205 Call xd_read_message_1 until status is COMPLETE.
5206
5207 2010-09-26 Dan Nicolaescu <dann@ics.uci.edu>
5208
5209 * term.c: Do not include sys/ioctl.h, not needed.
5210 (init_tty): Reorder code to reduce the number of #ifdefs.
5211 No code changes.
5212
5213 2010-09-26 Teodor Zlatanov <tzz@lifelogs.com>
5214
5215 * process.h: Set up GnuTLS support.
5216
5217 * process.c (make_process, Fstart_process)
5218 (read_process_output, send_process): Set up GnuTLS support for
5219 process input/output file descriptors.
5220
5221 * gnutls.h: The GnuTLS glue for Emacs, macros and enums.
5222
5223 * gnutls.c: The source code for GnuTLS support in Emacs.
5224
5225 * emacs.c: Set up GnuTLS support and call syms_of_gnutls.
5226
5227 * config.in: Set up GnuTLS support.
5228
5229 * Makefile.in (LIBGNUTLS_LIBS, LIBGNUTLS_CFLAGS, ALL_CFLAGS)
5230 (obj, LIBES): Set up GnuTLS support.
5231
5232 2010-09-26 Juanma Barranquero <lekktu@gmail.com>
5233
5234 * w32.c (get_emacs_configuration_options): Fix previous change.
5235
5236 2010-09-25 Chong Yidong <cyd@stupidchicken.com>
5237
5238 * insdel.c (prepare_to_modify_buffer): Ensure the mark marker is
5239 alive before using it (Bug#6977).
5240
5241 2010-09-25 Lars Magne Ingebrigtsen <larsi@gnus.org>
5242
5243 * xdisp.c (face_before_or_after_it_pos): EMACS_INT/int fixup.
5244
5245 * dispextern.h: EMACS_INT/int fixup.
5246
5247 * xdisp.c (string_pos_nchars_ahead, init_iterator): EMACS_INT/int
5248 fixup.
5249
5250 * xrdb.c (magic_file_p): EMACS_INT/int fixup.
5251
5252 2010-09-25 Eli Zaretskii <eliz@gnu.org>
5253
5254 * window.c (Fpos_visible_in_window_p, Fdelete_other_windows)
5255 (Fselect_window, window_scroll_pixel_based)
5256 (window_scroll_line_based, Frecenter, Fset_window_configuration):
5257 Use EMACS_INT for buffer positions.
5258
5259 * textprop.c (validate_interval_range, interval_of)
5260 (property_change_between_p, Fadd_text_properties)
5261 (set_text_properties_1, Fremove_text_properties)
5262 (Fremove_list_of_text_properties, Ftext_property_any)
5263 (Ftext_property_not_all, copy_text_properties)
5264 (text_property_list, extend_property_ranges)
5265 (verify_interval_modification): Use EMACS_INT for buffer
5266 positions.
5267
5268 * term.c (fast_find_position, term_mouse_highlight): Use EMACS_INT
5269 for buffer positions.
5270
5271 * process.c (read_process_output, send_process)
5272 (Fprocess_send_region, status_notify): Use EMACS_INT for buffer
5273 and string positions and size.
5274
5275 * print.c (print_object, print_string, strout): Use EMACS_INT for
5276 string indices.
5277
5278 * minibuf.c (string_to_object): Use EMACS_INT for string position
5279 and size.
5280
5281 * marker.c (verify_bytepos): Use EMACS_INT for buffer positions.
5282
5283 * lread.c <read_from_string_index, read_from_string_index_byte>
5284 <read_from_string_limit, readchar_count>: Define EMACS_INT.
5285 (readchar, unreadchar, read_internal_start): Use EMACS_INT for
5286 buffer positions and string length.
5287
5288 * keyboard.c <last_point_position, last_non_minibuf_size>: Declare
5289 EMACS_INT.
5290 (echo_truncate, adjust_point_for_property, read_char)
5291 (gen_help_event, make_lispy_event, modify_event_symbol)
5292 (Fexecute_extended_command, stuff_buffered_input): Use EMACS_INT
5293 for buffer positions and string length.
5294
5295 * keyboard.h (gen_help_event): Adjust prototype.
5296
5297 * termhooks.h <struct input_event>: Make `code' member EMACS_INT.
5298
5299 * commands.h <last_point_position>: Declare EMACS_INT.
5300
5301 * xdisp.c <help_echo_pos>: Define as EMACS_INT.
5302 (truncate_echo_area): Accept EMACS_INT argument.
5303
5304 * dispextern.h <help_echo_pos>: Declare EMACS_INT.
5305
5306 * lisp.h (truncate_echo_area): Adjust prototype.
5307
5308 * composite.c (composition_adjust_point): Return EMACS_INT.
5309
5310 * composite.h (composition_adjust_point): Adjust prototype.
5311
5312 2010-09-25 Juanma Barranquero <lekktu@gmail.com>
5313
5314 * process.c (Fmake_network_process): When arg :host is 'local,
5315 use address 127.0.0.1, not name "localhost". (Bug#6781)
5316
5317 2010-09-24 Eli Zaretskii <eliz@gnu.org>
5318
5319 * indent.c (Fcurrent_indentation, indented_beyond_p)
5320 (compute_motion): Use EMACS_INT for buffer position variables.
5321
5322 * lisp.h (indented_beyond_p): Adjust prototype.
5323
5324 * buffer.c (overlay_strings): Return EMACS_INT.
5325
5326 * buffer.h (overlay_strings): Adjust prototype.
5327
5328 * region-cache.c (pp_cache): Adjust format to arguments.
5329
5330 * eval.c <specpdl_size, lisp_eval_depth>: Declare EMACS_INT.
5331 (call_debugger): Use EMACS_INT for specpdl_size related variables.
5332 (verror): Use EMACS_INT for size of allocated buffer.
5333
5334 * keyboard.c (make_lispy_position): Use EMACS_INT for buffer
5335 positions.
5336
5337 * xdisp.c (redisplay_internal, try_window_id)
5338 (set_cursor_from_row, find_first_unchanged_at_end_row):
5339 Use EMACS_INT for buffer positions.
5340
5341 * dispextern.h (set_cursor_from_row): Adjust prototype.
5342
5343 * dispnew.c (increment_matrix_positions)
5344 (increment_row_positions, copy_glyph_row_contents)
5345 (mode_line_string, marginal_area_string): Use EMACS_INT for buffer
5346 positions.
5347
5348 * dispextern.h (mode_line_string, marginal_area_string)
5349 (increment_matrix_positions, increment_row_positions):
5350 Adjust prototypes.
5351
5352 * data.c (Faref, Faset): Use EMACS_INT for string length and
5353 positions.
5354
5355 * cmds.c (internal_self_insert): Use EMACS_INT for the count of
5356 characters to insert.
5357
5358 * ccl.c (Fccl_execute_on_string): Use EMACS_INT for string
5359 position and size.
5360
5361 * syntax.c (scan_words, update_syntax_table)
5362 (prev_char_comend_first, back_comment, skip_chars)
5363 (skip_syntaxes, Fforward_comment, Fbackward_prefix_chars):
5364 Use EMACS_INT for buffer and string positions.
5365
5366 * syntax.h (scan_words, update_syntax_table): Adjust prototypes.
5367
5368 * casefiddle.c (operate_on_word): Use EMACS_INT for buffer
5369 positions.
5370
5371 2010-09-24 Lars Magne Ingebrigtsen <larsi@gnus.org>
5372
5373 * scroll.c (calculate_scrolling, line_ins_del)
5374 (calculate_direct_scrolling, scroll_cost): Fix EMACS_INT/int
5375 conversion.
5376
5377 * region-cache.c (move_cache_gap, set_cache_region, pp_cache)
5378 (region_cache_backward, region_cache_forward)
5379 (revalidate_region_cache, set_cache_region): FIX EMACS_INT/int
5380 conversion.
5381
5382 * xdisp.c (message_dolog): Fix EMACS_INT/int conversion.
5383
5384 * eval.c (verror): Fix EMACS_INT/int conversion.
5385
5386 * print.c (PRINTDECLARE, PRINTPREPARE, strout, print_string)
5387 (print_preprocess, print_check_string_charset_prop)
5388 (print_object): Fix EMACS_INT/int conversion.
5389
5390 * xdisp.c (message_dolog): Fix EMACS_INT/int conversion.
5391
5392 2010-09-24 Eli Zaretskii <eliz@gnu.org>
5393
5394 * callproc.c (Fcall_process): Use EMACS_INT for count of
5395 characters read from the subprocess.
5396
5397 * bidi.c (struct bidi_paragraph_info): Use EMACS_INT for buffer
5398 positions.
5399 (bidi_cache_search, bidi_cache_find): Use EMACS_INT for buffer
5400 positions.
5401
5402 * buffer.c (struct sortvec): Use EMACS_INT for buffer positions.
5403 (struct sortstrlist, overlay_str_len): Use EMACS_INT for string
5404 length.
5405 (advance_to_char_boundary, Fset_buffer_multibyte)
5406 (overlays_at, overlays_in, mouse_face_overlay_overlaps)
5407 (overlay_touches_p, record_overlay_string, overlay_strings)
5408 (recenter_overlay_lists, fix_start_end_in_overlays)
5409 (modify_overlay, Fmove_overlay, report_overlay_modification)
5410 (evaporate_overlays): Use EMACS_INT for buffer positions.
5411
5412 * lisp.h (fix_start_end_in_overlays, overlay_touches_p):
5413 Adjust prototypes.
5414
5415 * dispextern.h (struct bidi_saved_info): Use EMACS_INT for buffer
5416 positions.
5417
5418 * fns.c (Fcompare_strings, Fstring_lessp, concat)
5419 (string_make_unibyte, Fstring_as_unibyte, Fsubstring)
5420 (Fsubstring_no_properties, substring_both, Ffillarray)
5421 (Fclear_string, mapcar1, Fmapconcat, Fmapcar, Fmapc)
5422 (Fbase64_encode_region, Fbase64_encode_string, base64_encode_1)
5423 (Fbase64_decode_region, Fbase64_decode_string, base64_decode_1)
5424 (Fmd5): Use EMACS_INT for buffer and string positions and length
5425 variables and arguments.
5426
5427 * lisp.h (substring_both): Adjust prototype.
5428
5429 2010-09-24 Juanma Barranquero <lekktu@gmail.com>
5430
5431 Remove W32 API function pointer unused since 2005-02-15 (revno 2005-02-15T23:19:26Z!jasonr@gnu.org).
5432 * w32fns.c (clipboard_sequence_fn): Don't declare.
5433 (globals_of_w32fns): Don't initialize it.
5434
5435 2010-09-23 Stefan Monnier <monnier@iro.umontreal.ca>
5436
5437 * syntax.c (back_comment): Detect the case where a 1-char comment
5438 starter is also the 2nd char of a 2-char comment ender.
5439
5440 2010-09-23 Jan Djärv <jan.h.d@swipnet.se>
5441
5442 * gtkutil.c (xg_tool_bar_menu_proxy): Set gtk-menu-items to TRUE.
5443
5444 2010-09-23 Lars Magne Ingebrigtsen <larsi@gnus.org>
5445
5446 * eval.c (verror): EMACS_INT/int cleanup.
5447
5448 * lisp.h (SPECPDL_INDEX): Cast to int, since we're not going to
5449 unwind_protect more than 2GB worth of functions.
5450
5451 * editfns.c (Finsert_char): EMACS_INT/int cleanup.
5452
5453 * lisp.h: Have oblookup take EMACS_INT to allow interning big
5454 string and avoid compiler warnings.
5455 (USE_SAFE_ALLOCA): Cast to int to avoid compilation warnings in
5456 all users.
5457
5458 * lread.c (oblookup): EMACS_INT/int cleanup.
5459
5460 * cmds.c (Fforward_line, Fdelete_char): EMACS_INT/int cleanup.
5461
5462 2010-09-23 Eli Zaretskii <eliz@gnu.org>
5463
5464 * editfns.c (clip_to_bounds): Return an EMACS_INT value.
5465
5466 * lisp.h (clip_to_bounds): Adjust prototype.
5467
5468 * intervals.c (adjust_for_invis_intang): Return EMACS_INT value.
5469
5470 2010-09-23 Lars Magne Ingebrigtsen <larsi@gnus.org>
5471
5472 * lisp.h: doprnt.c EMACS_INT/int cleanup.
5473
5474 * doprnt.c (doprnt): EMACS_INT/int cleanup.
5475
5476 * doc.c (Fsnarf_documentation, get_doc_string): EMACS_INT/int
5477 cleanup.
5478
5479 * lisp.h: Change the definition of all marker.c functions that
5480 take and return buffer stuff to be EMACS_INT instead of int.
5481
5482 * marker.c (buf_charpos_to_bytepos, CONSIDER, set_marker_both)
5483 (buf_charpos_to_bytepos, bytepos_to_charpos)
5484 (buf_bytepos_to_charpos, Fbuffer_has_markers_at)
5485 (set_marker_restricted, set_marker_both): Convert int to EMACS_INT
5486 for all buffer positions.
5487
5488 2010-09-23 Chong Yidong <cyd@stupidchicken.com>
5489
5490 * intervals.c (traverse_intervals, rotate_right, rotate_left)
5491 (split_interval_right, find_interval, next_interval)
5492 (delete_node, delete_interval, interval_deletion_adjustment)
5493 (adjust_intervals_for_deletion, merge_interval_right)
5494 (merge_interval_left, graft_intervals_into_buffer)
5495 (copy_intervals): Convert EMACS_UINTs to EMACS_INT.
5496
5497 * intervals.h (traverse_intervals): Update prototype.
5498
5499 2010-09-23 Eli Zaretskii <eliz@gnu.org>
5500
5501 * indent.c (compute_motion): Use EMACS_INT for arguments to
5502 region_cache_forward.
5503
5504 * region-cache.c (struct boundary, struct region_cache):
5505 Use EMACS_INT for positions.
5506 (find_cache_boundary, move_cache_gap, insert_cache_boundary)
5507 (delete_cache_boundaries, set_cache_region)
5508 (invalidate_region_cache, know_region_cache)
5509 (region_cache_forward, region_cache_backward, pp_cache):
5510 Use EMACS_INT for buffer positions.
5511
5512 * region-cache.h (know_region_cache, invalidate_region_cache)
5513 (region_cache_forward, region_cache_backward): Adjust prototypes.
5514
5515 * search.c (string_match_1, fast_c_string_match_ignore_case)
5516 (looking_at_1, scan_buffer, scan_newline)
5517 (find_next_newline_no_quit, find_before_next_newline)
5518 (search_command, trivial_regexp_p, search_buffer, simple_search)
5519 (boyer_moore, wordify, Freplace_match): Use EMACS_INT for buffer
5520 and string positions and length.
5521
5522 * lisp.h (scan_buffer, scan_newline, find_next_newline_no_quit)
5523 (find_before_next_newline): Adjust prototypes.
5524
5525 * editfns.c (transpose_markers, update_buffer_properties)
5526 (buildmark, clip_to_bounds, Fgoto_char, overlays_around)
5527 (get_pos_property, Fconstrain_to_field)
5528 (Fline_beginning_position, Fline_end_position, Fprevious_char)
5529 (Fchar_after, Fchar_before, Finsert_char)
5530 (Finsert_buffer_substring, Fcompare_buffer_substrings)
5531 (Fsubst_char_in_region, Fformat, Ftranspose_regions):
5532 Use EMACS_INT for buffer and string position variables.
5533 (Finsert_char): Protect against too large insertions.
5534
5535 * lisp.h (clip_to_bounds): Adjust prototype.
5536
5537 * intervals.c (traverse_intervals, rotate_right, rotate_left)
5538 (balance_an_interval, split_interval_right, split_interval_left)
5539 (find_interval, next_interval, update_interval)
5540 (adjust_intervals_for_insertion, delete_node, delete_interval)
5541 (interval_deletion_adjustment, adjust_intervals_for_deletion)
5542 (offset_intervals, merge_interval_right, merge_interval_left)
5543 (graft_intervals_into_buffer, adjust_for_invis_intang)
5544 (move_if_not_intangible, get_local_map, copy_intervals)
5545 (copy_intervals_to_string, compare_string_intervals)
5546 (set_intervals_multibyte_1): Use EMACS_INT for buffer positions
5547 and for interval tree size.
5548
5549 * intervals.h (traverse_intervals, split_interval_right)
5550 (split_interval_left, find_interval, offset_intervals)
5551 (graft_intervals_into_buffer, copy_intervals)
5552 (copy_intervals_to_string, move_if_not_intangible, get_local_map)
5553 (update_interval): Adjust prototypes.
5554
5555 * xdisp.c (check_point_in_composition, reconsider_clip_changes):
5556 Use EMACS_INT for buffer position variables and arguments.
5557
5558 * composite.c (get_composition_id, find_composition)
5559 (run_composition_function, compose_text)
5560 (composition_gstring_width, autocmp_chars)
5561 (composition_update_it, Ffind_composition_internal): Use EMACS_INT
5562 for buffer positions and string length variables and arguments.
5563
5564 * composite.h (get_composition_id, find_composition, compose_text)
5565 (composition_gstring_width): Adjust prototypes.
5566
5567 * editfns.c (Fformat): Use EMACS_INT for string size variables.
5568
5569 * xdisp.c (store_mode_line_noprop, display_mode_element):
5570 Use EMACS_INT for string positions.
5571
5572 * intervals.c (get_property_and_range): Use EMACS_INT for buffer
5573 position arguments.
5574
5575 * intervals.h (get_property_and_range): Adjust prototype.
5576
5577 * character.c (parse_str_as_multibyte, str_as_multibyte)
5578 (parse_str_to_multibyte, str_to_multibyte, str_as_unibyte)
5579 (string_count_byte8, string_escape_byte8, c_string_width)
5580 (strwidth, lisp_string_width, multibyte_chars_in_text):
5581 Use EMACS_INT for string length variables and arguments.
5582
5583 * character.h (parse_str_as_multibyte, str_as_multibyte)
5584 (parse_str_to_multibyte, str_to_multibyte, str_as_unibyte)
5585 (c_string_width, strwidth, lisp_string_width):
5586 Adjust prototypes.
5587
5588 * font.c (font_intern_prop): Use EMACS_INT for string length
5589 variables.
5590
5591 * font.c (font_intern_prop): Use EMACS_INT for string length
5592 variables.
5593
5594 * fns.c (Fstring_as_multibyte): Use EMACS_INT for string length
5595 variables.
5596
5597 * alloc.c <total_string_size>: Declare as EMACS_INT, not int.
5598 (Fmake_string): Protect against too large strings.
5599 (live_string_p, live_cons_p, live_symbol_p, live_float_p)
5600 (live_misc_p): Use ptrdiff_t instead of int for pointer
5601 differences.
5602 (string_bytes, check_sblock, check_string_free_list)
5603 (allocate_string_data, compact_small_strings, Fmake_string)
5604 (Fmake_bool_vector, make_string, make_unibyte_string)
5605 (make_multibyte_string, make_string_from_bytes)
5606 (make_specified_string_string, Fmake_list, Fmake_vector):
5607 Use EMACS_INT for string length variables and arguments.
5608 (find_string_data_in_pure, make_pure_string, make_pure_c_string)
5609 (Fpurecopy): Use EMACS_INT for string size.
5610 (mark_vectorlike, mark_char_table, mark_object): Use EMACS_UINT
5611 for vector size.
5612
5613 * lisp.h (make_string, make_unibyte_string, make_multibyte_string)
5614 (make_string_from_bytes, make_specified_string_string)
5615 (make_pure_string, string_bytes, check_point_in_composition):
5616 Adjust prototypes.
5617
5618 2010-09-22 Eli Zaretskii <eliz@gnu.org>
5619
5620 * editfns.c (Fsubst_char_in_region, Ftranslate_region_internal)
5621 (check_translation): Use EMACS_INT for buffer positions and
5622 length.
5623
5624 * undo.c (record_marker_adjustment, record_delete)
5625 (record_change, record_point, record_insert)
5626 (record_property_change, Fprimitive_undo): Use EMACS_INT for
5627 buffer positions.
5628
5629 * lisp.h (record_marker_adjustment, record_delete)
5630 (record_change, record_point, record_insert)
5631 (record_property_change, Fprimitive_undo): Adjust prototypes.
5632
5633 2010-09-22 Juanma Barranquero <lekktu@gmail.com>
5634 Eli Zaretskii <eliz@gnu.org>
5635
5636 * w32.c (get_emacs_configuration_options): Fix buffer overrun.
5637
5638 2010-09-22 Eli Zaretskii <eliz@gnu.org>
5639
5640 * minibuf.c (Fminibuffer_contents)
5641 (Fminibuffer_contents_no_properties)
5642 (Fminibuffer_completion_contents): Use EMACS_INT for minibuffer
5643 positions.
5644
5645 * keyboard.c (command_loop_1): Use EMACS_INT to compare point with
5646 mark.
5647
5648 * alloc.c (make_uninit_string, make_uninit_multibyte_string)
5649 (allocate_string_data): Accept EMACS_INT for string length.
5650
5651 * editfns.c (Ffield_string, Ffield_string_no_properties)
5652 (make_buffer_string, make_buffer_string_both, Fbuffer_substring)
5653 (Fbuffer_substring_no_properties, find_field, Fdelete_field)
5654 (Ffield_string, Ffield_string_no_properties, Ffield_beginning)
5655 (Ffield_end): Use EMACS_INT for buffer positions.
5656
5657 * insdel.c (prepare_to_modify_buffer): Use EMACS_INT to compare
5658 point with mark.
5659
5660 * lisp.h (allocate_string_data, make_uninit_string)
5661 (make_uninit_multibyte_string, make_buffer_string)
5662 (make_buffer_string_both): Adjust prototypes.
5663
5664 2010-09-22 Chong Yidong <cyd@stupidchicken.com>
5665
5666 * xml.c: Switch to GNU indentation.
5667 (make_dom): Change parse tree format to match xml.el.
5668 (Fxml_parse_html_string_internal): Rename from html-parse-string.
5669 (Fxml_parse_string_internal): Rename from xml-parse-string.
5670
5671 2010-09-22 Kenichi Handa <handa@m17n.org>
5672
5673 * xdisp.c (compute_stop_pos): Call composition_compute_stop_pos
5674 only if we are not at a composition.
5675 (set_iterator_to_next): Give it->end_charpos to
5676 composition_compute_stop_pos.
5677 (set_iterator_to_next, next_element_from_buffer): Likewise.
5678
5679 * dispnew.c (buffer_posn_from_coords): Fix position when the
5680 current display element is a grapheme cluster in bidi-reordered
5681 region.
5682
5683 2010-09-21 Ari Roponen <ari.roponen@gmail.com> (tiny change)
5684
5685 * doc.c (Fsnarf_documentation): Use memmove instead of memcpy as
5686 the regions may overlap.
5687
5688 2010-09-21 Juanma Barranquero <lekktu@gmail.com>
5689
5690 * makefile.w32-in ($(BLD)/sysdep.$(O)): Update dependencies.
5691
5692 2010-09-21 Dan Nicolaescu <dann@ics.uci.edu>
5693
5694 * emacs.c: Do not include sys/ioctl.h, not needed.
5695
5696 * doprnt.c: Do not include stdlib.h, config.h does it.
5697 Move #include before macro definition.
5698
5699 2010-09-20 Dan Nicolaescu <dann@ics.uci.edu>
5700
5701 * Makefile.in (temacs): Link using $(CC) not $(LD).
5702 (LD_FIRSTFLAG): Define using autoconf.
5703 (LD): Remove.
5704
5705 Remove HAVE_TERMIOS definitions.
5706 * s/usg5-4-common.h (HAVE_TERMIOS):
5707 * s/template.h (HAVE_TERMIOS):
5708 * s/gnu-linux.h (HAVE_TERMIOS):
5709 * s/darwin.h (HAVE_TERMIOS):
5710 * s/cygwin.h (HAVE_TERMIOS):
5711 * s/bsd-common.h (HAVE_TERMIOS):
5712 * s/aix4-2.h (HAVE_TERMIOS):
5713 * s/hpux10-20.h (HAVE_TERMIOS): Do not define, it is assumed
5714 defined on all non-MS platforms.
5715 (HAVE_PSTAT_GETDYNAMIC): Do not define, autoconf does it.
5716
5717 * xterm.c (xt_action_hook): Use const.
5718
5719 2010-09-20 Juanma Barranquero <lekktu@gmail.com>
5720
5721 Don't make W32 code conditional on HAVE_SOCKETS, it's always defined.
5722 * w32.c: Remove top-level uses of #ifdef HAVE_SOCKETS.
5723 (gethostname) [!HAVE_SOCKETS]: Remove.
5724 (SOCK_REPLACE_HANDLE): Remove macro.
5725 (socket_to_fd, sys_close, _sys_read_ahead, sys_read, sys_write)
5726 (term_ntproc, init_ntproc): Don't conditionalize on HAVE_SOCKETS.
5727 * w32proc.c: Remove top-level uses of #ifdef HAVE_SOCKETS.
5728 (syms_of_ntproc): Don't conditionalize on HAVE_SOCKETS.
5729
5730 2010-09-18 Eli Zaretskii <eliz@gnu.org>
5731
5732 * deps.mk (xml.o): Add dependencies.
5733
5734 * xdisp.c (Fcurrent_bidi_paragraph_direction):
5735 Call bidi_paragraph_init with NO_DEFAULT_P non-zero. (Bug#7038)
5736
5737 * bidi.c (bidi_paragraph_init): Accept an additional argument
5738 NO_DEFAULT_P; all callers changed. If NO_DEFAULT_P is non-zero,
5739 search back until a paragraph with a strong directional character
5740 is found, and use that to determine paragraph's base direction.
5741
5742 * dispextern.h (bidi_paragraph_init): Update prototype.
5743
5744 2010-09-17 Eli Zaretskii <eliz@gnu.org>
5745
5746 * w32.c (_PROCESS_MEMORY_COUNTERS_EX): Don't define with versions
5747 of w32api >= 3.15. (Bug#6989)
5748
5749 2010-09-17 Lars Magne Ingebrigtsen <larsi@gnus.org>
5750
5751 * process.c (wait_reading_process_output): Don't message about
5752 accept-process-output unless the time limit really is zero.
5753
5754 2010-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
5755
5756 * frame.c (Ftool_bar_pixel_width): YAILOM (Yet another
5757 int/Lisp_Object mixup).
5758
5759 2010-09-17 Jan Djärv <jan.h.d@swipnet.se>
5760
5761 * keyboard.c (parse_tool_bar_item): For QClabel, set TOOL_BAR_ITEM_LABEL
5762 not HELP.
5763
5764 2010-09-17 Stephen Berman <stephen.berman@gmx.net>
5765
5766 * frame.c (Ftool_bar_pixel_width): New function to expose tool
5767 bar's pixel width to Lisp (Bug#7048).
5768
5769 2010-09-14 Juanma Barranquero <lekktu@gmail.com>
5770
5771 * cmds.c (syms_of_cmds) <post-self-insert-hook>: Fix typos in docstring.
5772
5773 2010-09-17 Jan Djärv <jan.h.d@swipnet.se>
5774
5775 * gtkutil.c (xg_pack_tool_bar): Call gtk_handle_box_set_handle_position
5776 with argument top/left if tool bar is vertical/horizontal (Bug#7051).
5777
5778 2010-09-17 Kenichi Handa <handa@m17n.org>
5779
5780 * ftfont.c (ftfont_check_otf): Fix previous change.
5781
5782 2010-09-14 Kenichi Handa <handa@m17n.org>
5783
5784 * ftfont.c (ftfont_check_otf): Fix the case of checking just
5785 existence of GSUB or GPOS.
5786
5787 2010-09-14 Juanma Barranquero <lekktu@gmail.com>
5788
5789 * cmds.c (syms_of_cmds) <post-self-insert-hook>: Fix typos in docstring.
5790
5791 2010-09-14 Lars Magne Ingebrigtsen <larsi@gnus.org>
5792
5793 * xml.c (parse_buffer): Rename to parse_string(), since that's
5794 what it does.
5795 (parse_string): Return nil when the document can't be parsed.
5796
5797 2010-09-14 Jan Djärv <jan.h.d@swipnet.se>
5798
5799 * xterm.c (get_current_vm_state): New function.
5800 (do_ewmh_fullscreen): Call get_current_vm_state and compare with
5801 want_fullscreen so set_wm_state calls are few (Bug#7013).
5802 (x_handle_net_wm_state): Move code to get_current_vm_state and
5803 call that function.
5804
5805 2010-09-14 Courtney Bane <emacs-bugs-7626@cbane.org> (tiny change)
5806
5807 * term.c (tty_set_terminal_modes): Don't initialize twice (bug#7002).
5808
5809 2010-09-14 Kenichi Handa <handa@m17n.org>
5810
5811 * coding.c (encode_coding_iso_2022): Don't optimize for ASCII if
5812 we may use designation or locking-shift.
5813
5814 2010-09-14 Kenichi Handa <handa@m17n.org>
5815
5816 * coding.c (detect_coding_emacs_mule): Fix checking of multibyte
5817 sequence when the source is multibyte.
5818
5819 2010-09-14 Andreas Schwab <schwab@linux-m68k.org>
5820
5821 * xml.c (Fxml_parse_string, Fxml_parse_string): Revert last change.
5822 Don't make first argument optional. Doc fix.
5823
5824 2010-09-14 Leo <sdl.web@gmail.com> (tiny change)
5825
5826 * xml.c (Fxml_parse_string, Fhtml_parse_string): Fix up the
5827 parameters for the doc string.
5828
5829 2010-09-12 Lars Magne Ingebrigtsen <larsi@gnus.org>
5830
5831 * xml.c (Fhtml_parse_string, Fxml_parse_string): Mention BASE-URL.
5832
5833 2010-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
5834
5835 * fns.c (Fy_or_n_p): Move to lisp/subr.el.
5836 (syms_of_fns): Don't defsubr Sy_or_n_p.
5837 * lisp.h: Don't declare Fy_or_n_p.
5838 * fileio.c (barf_or_query_if_file_exists): Fy_or_n_p -> y-or-n-p.
5839
5840 2010-09-09 Lars Magne Ingebrigtsen <larsi@gnus.org>
5841
5842 * xml.c (Fxml_parse_buffer): New function to parse XML files.
5843
5844 2010-09-08 Lars Magne Ingebrigtsen <larsi@gnus.org>
5845
5846 * xml.c: New file.
5847 (Fhtml_parse_buffer): New function to interface to the libxml2
5848 html parsing function.
5849
5850 2010-09-05 Juanma Barranquero <lekktu@gmail.com>
5851
5852 * biditype.h: Regenerate.
5853
5854 2010-09-04 Andreas Schwab <schwab@linux-m68k.org>
5855
5856 * nsimage.m (ns_load_image): Check argument types.
5857
5858 * image.c: Remove all uses of gcpro.
5859 (xpm_load): Check all lisp types.
5860 (pbm_load): Likewise.
5861 (png_load): Likewise.
5862 (jpeg_load): Likewise.
5863 (tiff_load): Likewise.
5864 (gif_load): Likewise.
5865 (imagemagick_load_image): Likewise.
5866 (imagemagick_load): Likewise.
5867 (svg_load): Likewise.
5868 (gs_load): Likewise.
5869
5870 2010-09-04 Eli Zaretskii <eliz@gnu.org>
5871
5872 * w32uniscribe.c (uniscribe_shape): Update commentary.
5873 Don't try to reorder grapheme clusters, since LGSTRING should always
5874 hold them in the logical order.
5875 (uniscribe_encode_char, uniscribe_shape): Force ScriptShape to
5876 return glyph codes in the logical order.
5877
5878 2010-09-04 Andreas Schwab <schwab@linux-m68k.org>
5879
5880 * image.c (imagemagick_image_p): Replace bcopy by memcpy.
5881 (imagemagick_load_image): Fix type mismatch.
5882 (Fimagemagick_types): Likewise. Doc fix.
5883
5884 2010-09-02 Jan Djärv <jan.h.d@swipnet.se>
5885
5886 * xterm.h (struct dpyinfo): Remove cut_buffers_initialized.
5887
5888 * xterm.c (x_term_init): Don't set dpyinfo->cut_buffers_initialized.
5889
5890 * xselect.c: Remove declaration of cut-buffer objects and functions.
5891 (symbol_to_x_atom): Remove mapping to XA_CUT_BUFFERn.
5892 (x_atom_to_symbol): Remove mapping to QCUT_BUFFERn.
5893 (Fx_get_cut_buffer_internal, Fx_store_cut_buffer_internal)
5894 (Fx_rotate_cut_buffers_internal): Remove.
5895 (syms_of_xselect): Remove defsubr of above.
5896 Remove intern of QCUT_BUFFERn.
5897
5898 2010-09-01 Stefan Monnier <monnier@iro.umontreal.ca>
5899
5900 * cmds.c (Vblink_paren_function): Remove.
5901 (internal_self_insert): Make it insert N chars at a time.
5902 Don't call blink-paren-function.
5903 (Fself_insert_command): Adjust accordingly.
5904 (syms_of_cmds): Don't declare blink-paren-function.
5905
5906 2010-08-31 Kenichi Handa <handa@m17n.org>
5907
5908 * dispextern.h (FACE_FOR_CHAR): Use an ASCII face for 8-bit
5909 characters.
5910
5911 * term.c (encode_terminal_code): Fix the previous change.
5912 (produce_glyphs): Don't set it->char_to_display here.
5913 Don't handle unibyte-display-via-language-environment here.
5914 (produce_special_glyphs): Set temp_it.char_to_display before
5915 calling produce_glyphs.
5916
5917 * xdisp.c (get_next_display_element): Set it->char_to_display
5918 here. Convert all 8-bit bytes from unibyte buffer/string to 8-bit
5919 characters.
5920 (get_overlay_arrow_glyph_row): Set it.char_to_display too before
5921 calling PRODUCE_GLYPHS.
5922 (append_space_for_newline): Save and store it->char_to_display.
5923 Set it->char_to_display before calling PRODUCE_GLYPHS.
5924 (extend_face_to_end_of_line): Set it->char_to_display before
5925 calling PRODUCE_GLYPHS.
5926 (get_glyph_face_and_encoding): Set the glyph code an 8-bit
5927 character to its byte value.
5928 (get_char_glyph_code): New function.
5929 (produce_stretch_glyph): Set it2.char_to_display too before
5930 calling x_produce_glyphs.
5931 (x_produce_glyphs): Simplify by using the same code for ASCII and
5932 non-ASCII characters. Don't set it->char_to_display here.
5933 Don't handle unibyte-display-via-language-environment here. For a
5934 character of no glyph, use font->space_width instead of FONT_WIDTH.
5935
5936 2010-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
5937
5938 * keyboard.c (Fwindow_system): Fix compilation for USE_LISP_UNION_TYPE.
5939
5940 2010-08-31 Chong Yidong <cyd@stupidchicken.com>
5941
5942 * keyboard.c (command_loop_1): Don't call x-set-selection on tty.
5943
5944 2010-08-30 Stefan Monnier <monnier@iro.umontreal.ca>
5945
5946 * marker.c (Fcopy_marker): Make the first arg optional.
5947
5948 2010-08-30 Kenichi Handa <handa@m17n.org>
5949
5950 * composite.c (composition_update_it): Fix computing of
5951 cmp_it->width.
5952
5953 2010-08-29 Kenichi Handa <handa@m17n.org>
5954
5955 * term.c (encode_terminal_code): Encode byte chars to the
5956 corresponding bytes.
5957
5958 2010-08-29 Jan Djärv <jan.h.d@swipnet.se>
5959
5960 * nsterm.m (ns_draw_window_cursor): Draw BAR_CURSOR correct for R2L.
5961
5962 2010-08-26 Kenichi Handa <handa@m17n.org>
5963
5964 * xdisp.c (compute_stop_pos): Pay attention to bidi scan direction
5965 on calling composition_compute_stop_pos.
5966
5967 2010-08-25 Kenichi Handa <handa@m17n.org>
5968
5969 * fontset.c (reorder_font_vector): Prefer a font-spec specifying
5970 :otf.
5971
5972 * composite.c (composition_compute_stop_pos): Don't break
5973 composition at PT.
5974 (composition_reseat_it): Likewise. Fix calculation of character
5975 position starting a composition.
5976 (Fcomposition_get_gstring): Don't limit the number of components
5977 for automatic composition.
5978
5979 2010-08-25 Kenichi Handa <handa@m17n.org>
5980
5981 * composite.c (composition_compute_stop_pos): In forward search,
5982 pay attention to the possibility that some character after ENDPOS
5983 will be composed with charactrs before ENDPOS.
5984
5985 2010-08-24 Chong Yidong <cyd@stupidchicken.com>
5986
5987 * keyboard.c (command_loop_1): Don't clobber primary selection
5988 during handle-switch-frame (Bug#6872).
5989
5990 2010-08-23 Michael Albinus <michael.albinus@gmx.de>
5991
5992 * dbusbind.c: Accept UNIX domain sockets as bus address.
5993 (Fdbus_close_bus): New function.
5994 (Vdbus_registered_buses): New variable.
5995 (xd_initialize): Implement string as bus address.
5996 (Fdbus_init_bus): Add bus to Vdbus_registered_buses).
5997 (Fdbus_get_unique_name, Fdbus_call_method)
5998 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
5999 (Fdbus_method_error_internal, Fdbus_send_signal)
6000 (Fdbus_register_signal, Fdbus_register_method): Remove bus type
6001 check. This is done in xd_initialize_bus. Adapt doc string, if
6002 necessary.
6003 (xd_pending_messages, xd_read_queued_messages): Loop over buses in
6004 Vdbus_registered_buses.
6005 (Vdbus_registered_objects_table): Create hash.
6006
6007 2010-08-22 Juri Linkov <juri@jurta.org>
6008
6009 * keyboard.c (Fexecute_extended_command): Move reading a command name
6010 with `completing-read' to a new Elisp function `read-extended-command'.
6011 Call it to read a command to `function' (bug#5364, bug#5214).
6012
6013 2010-08-22 Chong Yidong <cyd@stupidchicken.com>
6014
6015 * emacs.c (main): Remove handling of --unibyte arg (Bug#6886).
6016
6017 2010-08-22 Andreas Schwab <schwab@linux-m68k.org>
6018
6019 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA_LISP
6020 instead of SAFE_ALLOCA.
6021
6022 2010-08-22 Chong Yidong <cyd@stupidchicken.com>
6023
6024 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA
6025 (Bug#6214).
6026
6027 2010-08-22 Jan Djärv <jan.h.d@swipnet.se>
6028
6029 * doc.c (Fsnarf_documentation): Set skip_file only if p[1] is S.
6030
6031 2010-08-22 Jan Djärv <jan.h.d@swipnet.se>
6032
6033 * doc.c (Fsnarf_documentation): Initialize skip_file before
6034 build-files test.
6035
6036 2010-08-22 Peter O'Gorman <pogma@thewrittenword.com> (tiny change)
6037
6038 * s/hpux10-20.h (HAVE_TERMIOS, NO_TERMIO, ORDINARY_LINK):
6039 New definitions.
6040 (HAVE_TERMIO): Remove.
6041
6042 2010-08-22 Eli Zaretskii <eliz@gnu.org>
6043
6044 * deps.mk (sysdep.o, msdos.o): Depend on sysselect.h.
6045
6046 * sysselect.h [WINDOWSNT]: Don't define the FD_* and select stuff
6047 for w32.
6048
6049 * s/ms-w32.h (HAVE_SYS_TIMEB_H): Don't #undef HAVE_SYS_SELECT_H,
6050 it's done in nt/config.nt.
6051
6052 * makefile.w32-in ($(BLD)/sysdep.$(O)): Depend on sysselect.h.
6053
6054 * unexcoff.c (report_error, make_hdr, write_segment)
6055 (copy_text_and_data, copy_sym, mark_x, adjust_lnnoptrs, unexec):
6056 Convert argument lists and prototypes to ANSI C.
6057 (make_hdr, write_segment): Remove unused variables.
6058 (unexec): Remove commented-out line. Initialize `new' to shut up
6059 compiler warnings.
6060
6061 2010-08-22 Dan Nicolaescu <dann@ics.uci.edu>
6062
6063 Simplify termio code.
6064 All non-MSDOS non-WINDOWSNT platforms define HAVE_TERMIOS, so
6065 HAVE_TERMIO code is obsolete.
6066 Replace HAVE_TERMIOS conditionals with !DOS_NT.
6067 * systty.h: Do not define HAVE_TCATTR.
6068 Remove HAVE_TERMIO, HAVE_LTCHARS and HAVE_TCHARS code.
6069 Do not define EMACS_HAVE_TTY_PGRP. Only define
6070 EMACS_GET_TTY_PGRP for !DOS_NT.
6071 * sysdep.c: Include sysselect.h unconditionally. Do not include
6072 sys/ioctl.h and termios.h, systty.h does it.
6073 Use HAVE_SYS_UTSNAME_H instead of USG as an include guard.
6074 (init_baud_rate): Remove HAVE_TERMIO code.
6075 (child_setup_tty): Remove HAVE_TERMIO code.
6076 (emacs_get_tty, emacs_set_tty): Remove HAVE_TERMIO, HAVE_TCHARS
6077 and HAVE_LTCHARS code. Use !DOS_NT instead of HAVE_TCATTR.
6078 (new_ltchars, new_tchars): Remove, unused.
6079 (init_sys_modes): Remove HAVE_TERMIO, HAVE_TCHARS and HAVE_LTCHARS
6080 code. Remove special casing for __mips__, it was a no-op.
6081 Remove HAVE_TCATTR conditional, it is implied by HAVE_TERMIOS.
6082 (init_sys_modes): Remove HPUX special case.
6083 * process.c: Include stdlib.h unconditionally. Do not include
6084 fcntl.h, systty.h does it. Remove conditional code for
6085 HAVE_SERIAL, it is always true.
6086 (process_send_signal): Remove HAVE_TERMIOS conditional, it's
6087 always true when SIGNALS_VIA_CHARACTERS is true.
6088 (Fcontinue_process, Fprocess_send_eof): Simplify conditionals:
6089 !WINDOWSNT means HAVE_TERMIOS.
6090 (create_process): Remove HAVE_TERMIOS, it's inside a HAVE_PTYS
6091 conditional, which is true for all HAVE_TERMIOS systems.
6092 * keyboard.c (init_keyboard): Do not use HAVE_TERMIO, use !DOS_NT
6093 instead of HAVE_TERMIOS.
6094 * emacs.c (shut_down_emacs): Use !defined DOS_NT instead of
6095 EMACS_HAVE_TTY_PGRP.
6096 * callproc.c (child_setup): Move EMACS_SET_TTY_PGRP use to the
6097 non-MSDOS, non-WINDOWSNT code, it's only defined for such systems
6098 anyway.
6099
6100 2010-08-21 Eli Zaretskii <eliz@gnu.org>
6101
6102 * dispnew.c (buffer_posn_from_coords): Fix off-by-one error in
6103 mirroring pixel positions.
6104
6105 2010-08-20 Dan Nicolaescu <dann@ics.uci.edu>
6106
6107 * alloc.c (malloc_sbrk_used, malloc_sbrk_unused): Remove,
6108 write only.
6109 (init_alloc_once): Remove writes to malloc_sbrk_unused, and
6110 malloc_sbrk_used, nothing uses them.
6111
6112 * puresize.h: Remove code assuming PNTR_COMPARISON_TYPE is not
6113 defined, unconditionally defined in lisp.h.
6114
6115 * term.c: Do not include <termios.h>, systty.h does it.
6116
6117 * s/unixware.h (HAVE_TCATTR):
6118 * s/aix4-2.h (HAVE_TCATTR): Remove definitions, not needed.
6119 systty.h defines it when HAVE_TERMIOS is defined.
6120
6121 2010-08-20 Eli Zaretskii <eliz@gnu.org>
6122
6123 * dispnew.c (buffer_posn_from_coords): Fix last change for text
6124 terminals: add one-character offset for R2L lines.
6125
6126 * emacs.c <emacs_version>: Add a comment regarding
6127 msdos/mainmake.v2's dependency on the syntax of this declaration.
6128
6129 2010-08-20 Eli Zaretskii <eliz@gnu.org>
6130
6131 * dispnew.c (buffer_posn_from_coords): Fix calculation of buffer
6132 position for R2L lines by mirroring the pixel position wrt the
6133 text are box. Improve commentary.
6134
6135 2010-08-20 Andreas Schwab <schwab@linux-m68k.org>
6136
6137 * image.c (imagemagick_clear_image): Remove debugging output.
6138
6139 2010-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
6140
6141 * cmds.c (Vself_insert_face, Vself_insert_face_command): Remove.
6142 (Qpost_self_insert_hook, Vpost_self_insert_hook): New vars.
6143 (internal_self_insert): Run Qpost_self_insert_hook rather than handle
6144 self-insert-face.
6145 (syms_of_cmds): Initialize the new vars.
6146
6147 2010-08-19 Jason Rumney <jasonr@gnu.org>
6148
6149 * w32menu.c (set_frame_menubar): Remove call to undefined function.
6150
6151 * w32fns.c (w32_wnd_proc): Don't check context before initializing.
6152
6153 2010-08-19 Jan Djärv <jan.h.d@swipnet.se>
6154
6155 * nsselect.m (nxatoms_of_nsselect): Use "Selection" and "Secondary".
6156
6157 2010-08-18 Eli Zaretskii <eliz@gnu.org>
6158
6159 * xterm.c (x_draw_bar_cursor):
6160 * w32term.c (x_draw_bar_cursor): If the character under cursor is
6161 R2L, draw the bar cursor on its right rather than on its left.
6162
6163 2010-08-18 Stefan Monnier <monnier@iro.umontreal.ca>
6164
6165 * eval.c (Fdefmacro): Only obey one declaration.
6166
6167 * casefiddle.c (casify_region): Setup gl_state.
6168
6169 2010-08-18 Jan Djärv <jan.h.d@swipnet.se>
6170
6171 * nsterm.m (ns_define_frame_cursor): Call x_update_cursor (Bug#6868).
6172
6173 2010-08-18 Jan Djärv <jan.h.d@swipnet.se>
6174
6175 * gtkutil.c (update_frame_tool_bar): Literal strings are const char*.
6176
6177 2010-08-18 David De La Harpe Golden <david@harpegolden.net>
6178
6179 * nsselect.m (QCLIPBOARD, NXPrimaryPboard): Define.
6180 (symbol_to_nsstring): Map QCLIPBOARD => NSGeneralPboard,
6181 QPRIMARY => NXPrimaryPboard.
6182 (ns_string_to_symbol): NSGeneralPboard => QCLIPBOARD,
6183 NXPrimaryPboard => QPRIMARY.
6184 (nxatoms_of_nsselect): NXPrimaryPboard = PrimarySelection,
6185 NXSecondaryPboard = SecondarySelection.
6186 (syms_of_nsselect): Intern QCLIPBOARD (Bug#6677).
6187
6188 2010-08-18 Joakim Verona <joakim@verona.se>
6189
6190 * image.c: Add support for ImageMagick. When HAVE_IMAGEMAGICK is
6191 defined:
6192 (imagemagick_image_p): New function to test for ImageMagic image.
6193 (imagemagick_load): New function to load ImageMagick image.
6194 (imagemagick_load_image): New function, helper for imagemagick_load.
6195 (imagemagick-types): New function.
6196 (Qimagemagick): New Lisp_object.
6197 (imagemagick-render-type): New variable, decides which renderer to use.
6198
6199 2010-08-17 Stefan Monnier <monnier@iro.umontreal.ca>
6200
6201 * gtkutil.c (update_frame_tool_bar): Don't assume TOOL_BAR_ITEM_LABEL
6202 is a string.
6203
6204 2010-08-17 Jan Djärv <jan.h.d@swipnet.se>
6205
6206 * nsfns.m (ns_frame_parm_handlers): Add a slot for the
6207 x_set_tool_bar_position handler.
6208
6209 2010-08-17 Eli Zaretskii <eliz@gnu.org>
6210
6211 * w32fns.c <w32_frame_parm_handlers>: Add a slot for the
6212 x_set_tool_bar_position handler, needed to support changes from
6213 2010-07-29T16:49:59Z!jan.h.d@swipnet.se for positioning the tool bar. (Bug#6796)
6214
6215 2010-08-16 Jan Djärv <jan.h.d@swipnet.se>
6216
6217 * nsselect.m: Include keyboard.h for QPRIMARY, remove its
6218 declaration (Bug#6863).
6219 (syms_of_nsselect): Don't intern QPRIMARY.
6220
6221 * xselect.c: Remove declaration of QPRIMARY (Bug#6864).
6222
6223 * keyboard.h (QPRIMARY): Declare (Bug#6864).
6224
6225 2010-08-16 Chong Yidong <cyd@stupidchicken.com>
6226
6227 * keyboard.c (command_loop_1): Avoid setting selection twice,
6228 since it's done in deactivate-mark as well.
6229 (Vselect_active_regions): Change default to t. Replace `lazy'
6230 with non-default value `only', meaning only set PRIMARY for
6231 temporarily active regions.
6232
6233 * insdel.c (prepare_to_modify_buffer): Handle `only' value of
6234 select-active-regions.
6235
6236 2010-08-15 Jan Djärv <jan.h.d@swipnet.se>
6237
6238 * keyboard.c (parse_tool_bar_item): Put in a bad label if :label
6239 isn't a string.
6240
6241 2010-08-15 Andreas Schwab <schwab@linux-m68k.org>
6242
6243 * keyboard.c (parse_tool_bar_item): Avoid excessive use of strlen.
6244
6245 2010-08-15 Jan Djärv <jan.h.d@swipnet.se>
6246
6247 * keyboard.c (parse_tool_bar_item): malloc buf.
6248 Set TOOL_BAR_ITEM_LABEL to empty string if not set to
6249 new_lbl (Bug#6855).
6250
6251 2010-08-14 Eli Zaretskii <eliz@gnu.org>
6252
6253 * xterm.c (x_draw_stretch_glyph_string):
6254 * w32term.c (x_draw_stretch_glyph_string): In R2L rows, display
6255 the cursor on the right edge of the stretch glyph.
6256
6257 * xdisp.c (window_box_right_offset, window_box_right):
6258 Fix commentary.
6259
6260 * xdisp.c (Fcurrent_bidi_paragraph_direction): Fix paragraph
6261 direction when point is inside a run of whitespace characters.
6262
6263 * bidi.c (bidi_at_paragraph_end): Remove obsolete comment.
6264
6265 2010-08-14 Jason Rumney <jasonr@gnu.org>
6266
6267 * keyboard.c (lispy_function_keys): Do not define VK_PACKET (bug#4836)
6268
6269 2010-08-14 Chong Yidong <cyd@stupidchicken.com>
6270
6271 * fns.c (Fmake_hash_table): Doc fix (Bug#6851).
6272
6273 2010-08-13 Jason Rumney <jasonr@gnu.org>
6274
6275 * w32menu.c (simple_dialog_show): Use unicode message box if available.
6276 (MessageBoxW_Proc): New function typedef.
6277 (unicode-message-box): New function pointer.
6278 (globals_of_w32menu): Import it from user32.dll. (Bug#5629)
6279
6280 2010-08-13 Jan Djärv <jan.h.d@swipnet.se>
6281
6282 * frame.h (Qtool_bar_position): Declare.
6283
6284 * xfns.c (Fx_create_frame): Call x_default_parameter for
6285 Qtool_bar_position.
6286
6287 2010-08-13 Eli Zaretskii <eliz@gnu.org>
6288
6289 * unexcoff.c: Remove the parts used when "emacs" is not defined.
6290 (report_error, report_error_1): Ditto.
6291 (write_segment): Remove "#if 0" unused code.
6292 (make_hdr): Remove code that was "#ifndef NO_REMAP" before
6293 NO_REMAP was removed (in 2010-07-29T03:25:08Z!dann@ics.uci.edu).
6294 (start_of_text): Remove unused function (was used only if NO_REMAP
6295 was NOT defined).
6296
6297 * msdos.c (IT_set_face): Fix format string to match argument
6298 types.
6299 (IT_write_glyphs, IT_note_mode_line_highlight)
6300 (IT_set_frame_parameters): Remove unused variables.
6301 (x_set_menu_bar_lines): Declare set_menu_bar_lines.
6302 (IT_set_terminal_modes): Disambiguate expression in if clause.
6303 (Fmsdos_remember_default_colors): Return Qnil.
6304 (IT_set_frame_parameters): Add parens to disambiguate boolean
6305 expression for logging the cursor type to termscript.
6306 (keyboard_layout_list, keypad_translate_map)
6307 (grey_key_translate_map): Add braces in inner initializers.
6308 (dos_rawgetc): Add parens in condition for mouse-3 button-press.
6309 (dos_rawgetc): Remove unused label.
6310 (XMenuActivate): Add braces to remove ambiguous `else'.
6311 (dos_ttraw): Always return a value.
6312 (spawnve): Declare.
6313 (run_msdos_command): Cast 3rd arg of spawnve to "char **".
6314
6315 * dosfns.h (x_set_title): Declare.
6316
6317 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
6318 Remove unused variables.
6319
6320 * dosfns.c (Fint86, Fdos_memget, Fdos_memput): Remove unused
6321 variables.
6322 (init_dosfns): Declare get_lim_data.
6323 (system_process_attributes): Declare Fget_internal_run_time.
6324
6325 * xmenu.c (xmenu_show) [!USE_X_TOOLKIT && !USE_GTK]: Fix argument
6326 list to be consistent with menu.h.
6327
6328 * w32menu.c (add_menu_item, name_is_separator): Shut up compiler
6329 warnings due to mixing of "char *" and "const char *".
6330
6331 2010-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
6332
6333 Introduce a new comment style "c" flag.
6334 * syntax.c (SYNTAX_FLAGS_COMMENT_STYLEB)
6335 (SYNTAX_FLAGS_COMMENT_STYLEC): New macros.
6336 (SYNTAX_FLAGS_COMMENT_STYLE): Use them, add an argument.
6337 (syntax_prefix_flag_p): New function.
6338 (Fstring_to_syntax): Understand new "c" flag.
6339 (Finternal_describe_syntax_value): Recognize new flag; use the
6340 SYNTAX_FLAGS_* macros.
6341 (scan_sexps_forward, Fparse_partial_sexp): Change representation of
6342 comment style to accomodate the new styles.
6343 (back_comment, forw_comment, Fforward_comment, scan_lists)
6344 (scan_sexps_forward): Update code to obey the new comment style flag.
6345
6346 * syntax.h: Move SYNTAX_FLAGS_FOO() macros to syntax.c.
6347
6348 * casefiddle.c (casify_region): Use the new syntax_prefix_flag_p.
6349
6350 2010-08-11 Jan Djärv <jan.h.d@swipnet.se>
6351
6352 * xfns.c (x_defined_color): If USE_GTK, call xg_check_special_colors
6353 first.
6354 (Fx_hide_tip): Check FRAME_LIVE_P (f) before calling xg_hide_tooltip.
6355
6356 * gtkutil.h (xg_check_special_colors): Declare.
6357
6358 * gtkutil.c (xg_check_special_colors, style_changed_cb): New functions.
6359 (xg_create_frame_widgets): Connect theme name changes to
6360 style_changed_cb.
6361
6362 * xterm.c (emacs_class): New char[] for EMACS_CLASS.
6363 (xim_open_dpy, xim_initialize, xim_close_dpy): Use emacs_class.
6364 (x_term_init): Use char[] display_opt and name_opt instead of
6365 string literal. file is const char*.
6366
6367 * xsmfns.c (NOSPLASH_OPT): Change to char[].
6368 (smc_save_yourself_CB): Do xstrdup on all ->type and ->name for
6369 props. Free them at the end.
6370
6371 * xselect.c (Fx_get_atom_name): Use char empty[] instead of literal "".
6372
6373 * xrdb.c (get_system_app): Make path const and use char *p for
6374 non-const char.
6375
6376 * xmenu.c (Fx_popup_dialog): error_name is const char*.
6377 (xmenu_show): error parameter is const char **. pane_string is const
6378 char *.
6379 (button_names): Is const char *.
6380 (xdialog_show): error_name and pane_string is const.
6381
6382 * process.h (synch_process_death): Is const char*.
6383
6384 * w32menu.c (w32_menu_show):
6385 * nsmenu.m (ns_menu_show): error parameter is const char **.
6386
6387 * menu.h (w32_menu_show, ns_menu_show, xmenu_show): error parameter
6388 is const char **.
6389
6390 * menu.c (Fx_popup_menu): error_name is const.
6391
6392 * keyboard.h (_widget_value): Add defined USE_GTK. Replace Boolean
6393 with unsigned char and XtPointer with void *.
6394
6395 * gtkutil.h: Replace widget_value with struct _widget_value.
6396 (enum button_type, struct _widget_value): Remove and use the one from
6397 keyboard.h.
6398
6399 * gtkutil.c (get_utf8_string): Always return an allocated string.
6400 Parameter is const.
6401 (create_dialog, xg_create_one_menuitem, create_menus)
6402 (xg_item_label_same_p, xg_update_menu_item): Free result from
6403 get_utf8_string.
6404 (xg_separator_p, xg_item_label_same_p): label is const.
6405
6406 * font.h (font_open_by_name): Make name const.
6407
6408 * font.c (font_open_by_name): Make name const.
6409
6410 * floatfns.c (matherr): Use a const char* variable for x->name.
6411
6412 * emacs.c (main): Pass char[] to putenv instead of literal.
6413
6414 * callproc.c (synch_process_death): Make const.
6415 (Fcall_process): Make signame const.
6416
6417 * nsterm.h (parseKeyEquiv, addSubmenuWithTitle)
6418 (addDisplayItemWithImage): Use const char*.
6419
6420 * nsmenu.m (parseKeyEquiv, addSubmenuWithTitle)
6421 (addDisplayItemWithImage, update_frame_tool_bar): Use const char*.
6422
6423 * nsfont.m (ns_descriptor_to_entity): Use const char*.
6424
6425 * keyboard.h (_widget_value): name, value and key are const char*.
6426
6427 * unexmacosx.c (unexec_error): Use const char *.
6428
6429 2010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
6430
6431 * font.h (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
6432 (font_parse_name, font_open_by_name):
6433 * font.c (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
6434 (font_parse_name, font_open_by_name): Remove const.
6435
6436 2010-08-09 Andreas Schwab <schwab@linux-m68k.org>
6437
6438 Use autoconf determined WORDS_BIGENDIAN instead of hardcoded
6439 definition.
6440
6441 * m/alpha.h: Don't define/undef WORDS_BIG_ENDIAN.
6442 * m/amdx86-64.h: Likewise.
6443 * m/arm.h: Likewise.
6444 * m/hp800.h: Likewise.
6445 * m/ia64.h: Likewise.
6446 * m/ibmrs6000.h: Likewise.
6447 * m/ibms390.h: Likewise.
6448 * m/intel386.h: Likewise.
6449 * m/iris4d.h: Likewise.
6450 * m/m68k.h: Likewise.
6451 * m/macppc.h: Likewise.
6452 * m/mips.h: Likewise.
6453 * m/sh3.h: Likewise.
6454 * m/sparc.h: Likewise.
6455 * m/template.h: Likewise.
6456 * m/vax.h: Likewise.
6457 * m/xtensa.h: Likewise.
6458 * fringe.c (init_fringe_bitmap): Test WORDS_BIGENDIAN instead of
6459 WORDS_BIG_ENDIAN.
6460 * lisp.h: Likewise.
6461 * md5.c: Likewise.
6462 * sound.c (le2hl, le2hs, be2hl, be2hs): Likewise.
6463
6464 2010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
6465
6466 Use const char* instead of char*.
6467 Reduce the number of warnings with -Wwrite-strings.
6468 * xrdb.c (get_environ_db, get_system_name):
6469 * unexelf.c (find_section):
6470 * term.c (string_cost, string_cost_one_line, per_line_cost)
6471 (get_named_tty, init_tty):
6472 * sysdep.c (sys_subshell):
6473 * sound.c (sound_perror, sound_warning, vox_open, vox_init)
6474 (alsa_sound_perror, alsa_open, alsa_configure, alsa_init):
6475 * search.c (Freplace_match):
6476 * process.c (Fmake_network_process, send_process, init_process):
6477 * lread.c (Fload, init_lread):
6478 * keymap.c (Fdescribe_buffer_bindings, describe_map_tree):
6479 * keyboard.c (parse_tool_bar_item, struct event_head):
6480 * gtkutil.h (xg_get_font_name):
6481 * gtkutil.c (get_dialog_title, create_dialog, xg_get_font_name)
6482 (make_widget_for_menu_item, make_menu_item, create_menus)
6483 (xg_make_tool_item):
6484 * font.c (parse_matrix, font_parse_name):
6485 * floatfns.c (rounding_driver, float_error_fn_name):
6486 * filelock.c (get_boot_time_1, lock_file_1):
6487 * fileio.c (barf_or_query_if_file_exists, check_writable):
6488 * editfns.c (get_system_name, get_operating_system_release)
6489 (Fencode_time, Fset_time_zone_rule):
6490 * dispextern.h (string_cost, per_line_cost, get_named_tty, init_tty):
6491 * buffer.c (defvar_per_buffer): Use const.
6492
6493 2010-08-08 Kenichi Handa <handa@m17n.org>
6494
6495 * charset.c: Include <stdlib.h>.
6496 (struct charset_sort_data): New struct.
6497 (charset_compare): New function.
6498 (Fsort_charsets): New function.
6499 (syms_of_charset): Declare Fsort_charsets as a Lisp function.
6500
6501 * coding.c (decode_coding_iso_2022): Fix checking of dimension
6502 number in CTEXT extended segment.
6503
6504 2010-08-08 Juanma Barranquero <lekktu@gmail.com>
6505
6506 * w32fns.c (syms_of_w32fns) <x-max-tooltip-size>: Fix typo in docstring.
6507 * xfns.c (syms_of_xfns) <x-max-tooltip-size>: Reflow docstring.
6508
6509 2010-08-08 Juanma Barranquero <lekktu@gmail.com>
6510
6511 * fns.c (Fsubstring_no_properties, Fnthcdr, Ffeaturep)
6512 (Fhash_table_size): Fix typos in docstrings.
6513 (Fmake_hash_table): Doc fix.
6514
6515 2010-08-08 Juanma Barranquero <lekktu@gmail.com>
6516
6517 * minibuf.c (syms_of_minibuf) <read-buffer-function>:
6518 Doc fix (bug#5625).
6519
6520 2010-08-08 Ken Brown <kbrown@cornell.edu>
6521
6522 * dired.c (DIRENTRY_NONEMPTY) [cygwin]: Use d_ino instead of
6523 the MSDOS definition.
6524
6525 2010-08-08 Dan Nicolaescu <dann@ics.uci.edu>
6526
6527 Use const char* instead of char*.
6528 * xterm.c (x_create_toolkit_scroll_bar):
6529 * xfont.c (xfont_list_pattern):
6530 * xfns.c (x_default_scroll_bar_color_parameter)
6531 (xic_create_fontsetname, x_default_font_parameter)
6532 (x_screen_planes):
6533 * xdisp.c (c_string_pos, number_of_chars, reseat_to_string)
6534 (store_mode_line_string, decode_mode_spec, display_string):
6535 * menu.c (digest_single_submenu):
6536 * keymap.h (initial_define_key, initial_define_lispy_key):
6537 * keymap.c (initial_define_key, initial_define_lispy_key):
6538 * image.c (image_error, image_keyword):
6539 * gtkutil.h (xg_create_widget, xg_create_scroll_bar):
6540 * gtkutil.c (xg_create_widget, xg_create_scroll_bar):
6541 * ftfont.c (struct fc_charset_table, ftfont_spec_pattern)
6542 (ftfont_list, ftfont_match):
6543 * frame.c (frame_parm_table):
6544 * font.h (font_intern_prop, font_parse_xlfd, font_parse_fcname)
6545 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
6546 (font_add_log, font_deferred_log):
6547 * font.c (font_intern_prop, font_parse_xlfd, font_parse_fcname)
6548 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
6549 (font_add_log, font_deferred_log):
6550 * emacs.c (argmatch):
6551 * dispextern.h (struct it):
6552 * coding.c (ENCODE_DESIGNATION):
6553 * charset.c (define_charset_internal): Use const.
6554
6555 * s/freebsd.h (DECLARE_GETPWUID_WITH_UID_T): Remove, unused.
6556
6557 * xrdb.c: Remove include guard.
6558 Remove DECLARE_GETPWUID_WITH_UID_T conditional it had no effect.
6559 Remove #if 0 code. Replace malloc->xmalloc, free->xfree,
6560 realloc->xrealloc instead of using #defines.
6561
6562 2010-08-08 Eli Zaretskii <eliz@gnu.org>
6563
6564 * cmds.c (Fforward_line, Fbeginning_of_line, Fend_of_line):
6565 * editfns.c (Fline_beginning_position, Fline_end_position):
6566 State in the doc strings that start and end of line are in the
6567 logical order.
6568
6569 * xdisp.c (display_line): Move the handling of overlay arrow after
6570 the call to find_row_edges. (Bug#6699)
6571
6572 2010-08-07 Chong Yidong <cyd@stupidchicken.com>
6573
6574 * keyboard.c (command_loop_1):
6575 * insdel.c (prepare_to_modify_buffer): Don't call validate_region.
6576
6577 2010-08-07 Chong Yidong <cyd@stupidchicken.com>
6578
6579 * insdel.c (prepare_to_modify_buffer): Save active region text to
6580 Vsaved_region_selection.
6581
6582 * xselect.c (QPRIMARY): Move to keyboard.c.
6583
6584 * keyboard.c (Vselect_active_regions): Move from simple.el.
6585 (Vsaved_region_selection, Qx_set_selection, QPRIMARY, Qlazy): New vars.
6586 (command_loop_1): Set window selection prior to deactivating the mark.
6587
6588 2010-08-07 Juanma Barranquero <lekktu@gmail.com>
6589
6590 * alloc.c (lisp_malloc):
6591 * buffer.c (set_buffer_internal, set_buffer_internal_1):
6592 * charset.h (emacs_mule_charset):
6593 * dispextern.h (inhibit_free_realized_faces, redraw_frame)
6594 (redraw_garbaged_frames, scroll_cost, update_frame, scrolling)
6595 (bitch_at_user):
6596 * lisp.h (Fcheck_coding_system, Fget_text_property)
6597 (Qfunction, Qcompletion_ignore_case, QCwidth, QCsize):
6598 Remove duplicate declarations.
6599
6600 2010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
6601
6602 * process.c: Simplify include logic.
6603
6604 * keyboard.h (quit_char): Add declaration.
6605 * process.h (QCport, QCspeed, QCprocess, QCbytesize, QCstopbits)
6606 (QCparity, Qodd, Qeven, QCflowcontrol, Qhw, Qsw, QCsummary):
6607 Add declarations.
6608 * sysdep.c:
6609 * w32.c: Remove the above declarations.
6610
6611 Remove extern declarations in .c files, .h files have them.
6612 * xterm.c:
6613 * xdisp.c:
6614 * msdos.c:
6615 * image.c:
6616 * gtkutil.c:
6617 * fileio.c:
6618 * eval.c: Remove declarations.
6619
6620 * frame.c (frame_params): Make const.
6621
6622 * lisp.h (fatal_error_signal, emacs_root_dir): Add declaration.
6623
6624 * emacs.c (emacs_copyright, emacs_version): Make static.
6625 (Vinitial_window_system, Vauto_save_list_file_name)
6626 (Vinhibit_redisplay): Remove declarations.
6627 (main): Remove HAVE_SHM code, unused. Remove _I386 conditional
6628 for AIX.
6629
6630 Use const for some arrays and functions.
6631 * xterm.h (xg_set_icon_from_xpm_data):
6632 * xfns.c (xg_set_icon_from_xpm_data):
6633 * term.c (fkeys):
6634 * keyboard.c (lispy_accent_keys, lispy_function_keys)
6635 (lispy_multimedia_keys, lispy_kana_keys, iso_lispy_function_keys)
6636 (lispy_drag_n_drop_names, scroll_bar_parts, modify_event_symbol)
6637 (frame.c frame_parms):
6638 * emacs-icon.h (gnu_xpm_bits):
6639 * callint.c (callint_argfuns): Use const.
6640
6641 2010-08-06 Jan Djärv <jan.h.d@swipnet.se>
6642
6643 * sysdep.c: Move include term.h last of includes (Bug#6812).
6644
6645 2010-08-06 Eli Zaretskii <eliz@gnu.org>
6646
6647 * dispnew.c (realloc_glyph_pool): Zero out newly allocated glyphs.
6648
6649 * msdos.c (IT_display_cursor): Log cursor position on termscript.
6650
6651 * .gdbinit (pgx): Display the avoid_cursor_p flag.
6652
6653 2010-08-06 Juanma Barranquero <lekktu@gmail.com>
6654
6655 * makefile.w32-in ($(BLD)/xdisp.$(O)): Update dependencies.
6656
6657 2010-08-06 Jan Djärv <jan.h.d@swipnet.se>
6658
6659 * xterm.h (x_get_focus_frame): Declare.
6660
6661 * keyboard.h (poll_for_input_1): Unconditionally declare.
6662
6663 * nsterm.h (x_set_menu_bar_lines): Declare.
6664
6665 * window.c: Don't include menu.h, it depends on lots of other .h-files.
6666
6667 * xfaces.c (x_create_gc, x_free_gc): Convert to ANSI C prototypes.
6668
6669 * window.c: Include menu.h.
6670
6671 * unexmacosx.c (print_region_list, print_regions)
6672 (build_region_list, find_emacs_zone_regions)
6673 (unexec_regions_merge, read_load_commands, dump_it)
6674 (unexec_init_emacs_zone): Convert to ANSI C prototypes.
6675
6676 * term.c: Check HAVE_SYS_IOCTL_H.
6677
6678 * sysdep.c: Check HAVE_TERM_H.
6679
6680 * process.c: Check HAVE_UTIL_H. Include nsterm.h if HAVE_NS.
6681
6682 * nsterm.m (ns_init_paths, ns_alloc_autorelease_pool)
6683 (ns_ring_bell, ns_defined_color, hide_hourglass)
6684 (x_display_pixel_height, x_display_pixel_width, syms_of_nsterm):
6685 Convert to ANSI C prototypes.
6686 (x_set_window_size, ns_draw_fringe_bitmap, judge): Move declarations
6687 before code.
6688
6689 * nsterm.h : Include sysselect.h.
6690 (x_sync, x_get_focus_frame, x_set_mouse_position)
6691 (x_set_mouse_pixel_position, x_make_frame_visible)
6692 (x_make_frame_invisible, x_iconify_frame, x_char_width, x_char_height)
6693 (x_pixel_width, x_pixel_height, x_set_frame_alpha, x_set_tool_bar_lines)
6694 (x_activate_menubar, free_frame_menubar, ns_init_paths, ns_select)
6695 (syms_of_nsterm, syms_of_nsfns, syms_of_nsmenu, syms_of_nsselect):
6696 Declare.
6697
6698 * nsmenu.m (popup_activated, name_is_separator)
6699 (syms_of_nsmenu): Convert to ANSI C prototypes.
6700 (runMenuAt): Prototypes and move declarations before code.
6701
6702 * nsimage.m (ns_load_image): Move NSTRACE after declarations.
6703
6704 * nsfont.m (ns_fallback_entity, syms_of_nsfont): Convert to ANSI C
6705 prototypes.
6706
6707 * nsfns.m (have_menus_p, ns_display_info_for_name)
6708 (x_set_cursor_type, ns_appkit_version_str)
6709 (ns_appkit_version_int, ns_do_applescript)
6710 (x_set_scroll_bar_default_width, x_sync, compute_tip_xy)
6711 (syms_of_nsfns): Convert to ANSI C prototypes.
6712
6713 * menu.h (x_set_menu_bar_line): Declare.
6714 (free_menubar_widget_value_tree et.al): Add HAVE_NS for these functions.
6715
6716 * lisp.h (fmod_float): Declare.
6717
6718 * image.c (xpm_scan, xpm_make_color_table_v)
6719 (xpm_put_color_table_v, xpm_get_color_table_v)
6720 (xpm_make_color_table_h, xpm_put_color_table_h)
6721 (xpm_get_color_table_h, xpm_str_to_color_key, xpm_load_image)
6722 (xpm_load): Convert to ANSI C prototypes.
6723
6724 * emacs.c: Include nsterm.h if HAVE_NS.
6725
6726 * bidi.c (bidi_dump_cached_states): Fix fprintf warning.
6727
6728 2010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
6729
6730 * process.c: Remove HAVE_SOCKETS #ifdefs inside #ifdef
6731 subprocesses, only MSDOS does not define HAVE_SOCKETS.
6732 (socket_options): Use const char* for name.
6733
6734 2010-08-06 Juanma Barranquero <lekktu@gmail.com>
6735
6736 Fix changes in 2010-08-05T23:15:24Z!dann@ics.uci.edu..2010-08-05T23:34:12Z!dann@ics.uci.edu for Windows build.
6737
6738 * xmenu.c [USE_X_TOOLKIT || USE_GTK]:
6739 Don't declare xmalloc_widget_value and digest_single_submenu.
6740
6741 * w32font.c (Qlatin): Remove declaration.
6742
6743 * menu.h (xmalloc_widget_value, digest_single_submenu): Declare.
6744
6745 * dired.c (compile_pattern): Restore declaration.
6746
6747 2010-08-05 Dan Nicolaescu <dann@ics.uci.edu>
6748
6749 Remove extern declarations in .c files, .h files have them.
6750 * data.c:
6751 * dired.c:
6752 * editfns.c:
6753 * filelock.c:
6754 * fns.c:
6755 * font.c:
6756 * fontset.c:
6757 * frame.c:
6758 * fringe.c:
6759 * ftfont.c:
6760 * gtkutil.c:
6761 * indent.c:
6762 * keyboard.c:
6763 * keymap.c:
6764 * lread.c:
6765 * menu.c:
6766 * print.c:
6767 * search.c:
6768 * sound.c:
6769 * window.c:
6770 * xdisp.c:
6771 * xfaces.c:
6772 * xfns.c:
6773 * xfont.c:
6774 * xftfont.c:
6775 * xmenu.c:
6776 * xterm.c: Remove declarations.
6777
6778 Cleanup syssignal.h.
6779 * syssignal.h (sighold, sigrelse, RETSIGTYPE): Remove, unused.
6780 (main_thread): Move down to remove #ifdef.
6781 (SIGMASKTYPE, SIGEMPTYMASK, SIGFULLMASK, sigmask, sigunblock):
6782 Remove conditional definition following unconditional ones.
6783
6784 * lisp.h: Remove HAVE_SHM code, unused.
6785 (QCmap, QCrehash_size, QCrehash_threshold, QCsize, QCtest)
6786 (QCweakness, Qabove_handle, Qbackquote, Qbar, Qbelow_handle)
6787 (Qborder, Qbottom, Qbox, Qcircular_list, Qcomma, Qcomma_at)
6788 (Qcomma_dot, Qcursor, Qdefault, Qdown, Qend_scroll, Qeq, Qeql)
6789 (Qequal, Qfile_exists_p, Qfont_param, Qfringe, Qfunction)
6790 (Qfunction_documentation, Qhandle, Qhbar, Qheader_line, Qhollow)
6791 (Qidentity, Qleft_margin, Qmenu, Qmenu_bar_update_hook)
6792 (Qmode_line_inactive, Qmouse, Qoverriding_local_map)
6793 (Qoverriding_terminal_local_map, Qratio, Qregion, Qright_margin)
6794 (Qscroll_bar, Qtool_bar, Qtop, Qup, Qvertical_border, Qwhen)
6795 (Qwindow_scroll_functions, Vafter_load_alist)
6796 (Vauto_save_list_file_name, Vface_alternative_font_family_alist)
6797 (Vface_alternative_font_registry_alist, Vface_font_rescale_alist)
6798 (Vface_ignored_fonts, Vinhibit_redisplay, Vminibuffer_list)
6799 (Vprint_length, Vprint_level, Vscalable_fonts_allowed)
6800 (Vshell_file_name, Vsystem_name, Vwindow_scroll_functions)
6801 (Vwindow_system_version, Vx_no_window_manager, initial_argc)
6802 (initial_argv, last_nonmenu_event, load_in_progress)
6803 (noninteractive_need_newline, scroll_margin): Add declarations.
6804
6805 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
6806 Remove declarations, menu.h has them.
6807 (QCbutton, QCtoggle, QCradio, QClabel, extra_keyboard_modifiers)
6808 (Vinput_method_function, Qinput_method_function)
6809 (Qevent_symbol_element_mask, last_event_timestamp):
6810 * dispextern.h (Voverflow_newline_into_fringe):
6811 * font.h (QCantialias, Qp, syms_of_ftfont, syms_of_xfns)
6812 (syms_of_ftxfont, syms_of_xftfont, syms_of_bdffont)
6813 (syms_of_w32font, syms_of_nsfont):
6814 * fontset.h (find_font_encoding, Qlatin):
6815 * frame.h (Qtooltip, Qrun_hook_with_args, Vmenu_bar_mode)
6816 (Vtool_bar_mode, set_frame_menubar):
6817 * ftfont.h (ftfont_font_format, ftfont_get_fc_charset):
6818 * xterm.h (Qx_gtk_map_stock):
6819 * keymap.h (meta_prefix_char): Add declarations.
6820
6821 * term.c: Remove dead code.
6822
6823 Fix emacs -Q -f server-start & emacsclient -t on GNU/Linux.
6824 * term.c (dissociate_if_controlling_tty): Use USG5 instead of
6825 USG. This is equivalent to defined (USG) && !defined (BSD_PGRPS),
6826 which is what was there before BSD_PGRPS was removed.
6827
6828 2010-08-05 Eli Zaretskii <eliz@gnu.org>
6829
6830 * deps.mk (unexcoff.o): Rename unexec.[co] => unexcoff.[co].
6831
6832 * unexcoff.c: Renamed from unexec.c.
6833
6834 2010-08-04 Stefan Monnier <monnier@iro.umontreal.ca>
6835
6836 * sysdep.c (child_setup_tty): Comment-out left-over non-ICANON code.
6837
6838 2010-08-03 Johan Bockgård <bojohan@gnu.org>
6839
6840 * data.c (Flocal_variable_p): Handle variable aliases correctly.
6841 (Bug#6744)
6842
6843 2010-08-02 Jan Djärv <jan.h.d@swipnet.se>
6844
6845 * xterm.c (x_create_toolkit_scroll_bar): Only set XtNbeNiceToColormap
6846 to TRUE if depth of screen is < 16.
6847
6848 * gtkutil.c (hierarchy_ch_cb, qttip_cb): Do not define unless
6849 USE_GTK_TOOLTIP.
6850 (xg_prepare_tooltip): Return 0 unless USE_GTK_TOOLTIP.
6851 (xg_show_tooltip, xg_hide_tooltip): Do nothing unless USE_GTK_TOOLTIP.
6852 (xg_create_frame_widgets): Surround tooltip-related code with ifdef
6853 USE_GTK_TOOLTIP.
6854 (xg_free_frame_widgets): Don't delete ttip_* unless USE_GTK_TOOLTIP.
6855
6856 * xterm.h (USE_GTK_TOOLTIP): New define.
6857 (struct x_output): Put ttip_* inside ifdef USE_GTK_TOOLTIP.
6858
6859 * sysdep.c (child_setup_tty): Enable ICANON in lflags and set VEOF
6860 to Control-D (Bug#6771).
6861
6862 2010-08-02 Juanma Barranquero <lekktu@gmail.com>
6863
6864 * editfns.c (Fregion_beginning, Fregion_end): Doc fixes (bug#6493).
6865 Wording by Drew Adams <drew.adams@oracle.com>.
6866
6867 2010-08-01 Jan Djärv <jan.h.d@swipnet.se>
6868
6869 * xterm.h (struct x_output): Add ttip_widget, ttip_window and
6870 ttip_lbl.
6871
6872 * xterm.c (x_clear_frame): Check FRAME_GTK_WIDGET (f) before
6873 calling gtk_widget_queue_draw.
6874 (x_free_frame_resources): Call xg_free_frame_widgets.
6875
6876 * xfns.c (x_gtk_use_system_tooltips): New variable.
6877 (Fx_show_tip): If USE_GTK and x_gtk_use_system_tooltips, call
6878 new gtkutil tooltip functions to show the tooltip.
6879 (Fx_hide_tip): Call xg_hide_tooltip.
6880 (syms_of_xfns): Defvar x-gtk-use-system-tooltips.
6881
6882 * gtkutil.h (xg_free_frame_widgets, xg_prepare_tooltip)
6883 (xg_show_tooltip, xg_hide_tooltip): Declare.
6884
6885 * gtkutil.c (hierarchy_ch_cb, qttip_cb, xg_prepare_tooltip)
6886 (xg_show_tooltip, xg_hide_tooltip, xg_free_frame_widgets):
6887 New functions.
6888 (xg_create_frame_widgets): Set ttip_* to 0. Set a dummy tooltip
6889 text so qttip_cb is called. Connect query-tooltip to qttip_cb.
6890 Remove code that is commented out.
6891
6892 2010-08-01 Stefan Monnier <monnier@iro.umontreal.ca>
6893
6894 * keymap.c (Fdefine_key, Flookup_key): Say what event is invalid.
6895
6896 2010-07-31 Chong Yidong <cyd@stupidchicken.com>
6897
6898 * xselect.c (x_own_selection): Use list4.
6899
6900 2010-07-30 Dan Nicolaescu <dann@ics.uci.edu>
6901
6902 * buffer.c (Qwindow): Do not define, already defined in data.c.
6903 (syms_of_buffer): Do not intern and staticpro Qwindow. (Bug#6760)
6904
6905 2010-07-29 Chad Brown <yandros@mit.edu>
6906
6907 Replace tests for SYSV_SYSTEM_DIR with HAVE_DIRENT_H, set via autoconf.
6908 * dired.c, sysdep.c: Test HAVE_DIRENT_H instead of SYSV_SYSTEM_DIR.
6909 * config.in: Undef HAVE_DIRENT_H.
6910 * s/aix4-2.h, s/bsd-common.h, s/cygwin.h, s/gnu-linux.h,
6911 * s/msdos.h, s/usg5-4.h: Don't define SYSV_SYSTEM_DIR.
6912
6913 2010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
6914
6915 Rename s/usg5-4.h -> s/usg5-4-common.h.
6916 * s/usg5-4.h: Rename file to ...
6917 * s/usg5-4-common.h: ... this for consistency with what we do for BSD.
6918 * s/unixware.h:
6919 * s/sol2-6.h:
6920 * s/irix6-5.h: Update includes accordingly.
6921
6922 2010-07-29 Jan Djärv <jan.h.d@swipnet.se>
6923
6924 * xfns.c (x_set_tool_bar_position): Remove debug fprintf.
6925
6926 * xterm.h (struct x_output): Add toolbar_top_height,
6927 toolbar_bottom_height, toolbar_left_width, toolbar_right_width.
6928 Remove toolbar_height.
6929 If USE_GTK: Add hbox_widget and toolbar_in_hbox.
6930 (FRAME_TOOLBAR_TOP_HEIGHT, FRAME_TOOLBAR_BOTTOM_HEIGHT)
6931 (FRAME_TOOLBAR_LEFT_WIDTH, FRAME_TOOLBAR_RIGHT_WIDTH): New macros.
6932 (FRAME_TOOLBAR_HEIGHT): Is now TOP_HEIGHT + BOTTOM_HEIGHT.
6933
6934 * xterm.c (x_set_window_size_1): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
6935
6936 * xfns.c (x_set_tool_bar_position): New function.
6937 (xic_set_statusarea): Use FRAME_TOOLBAR_TOP_HEIGHT.
6938 (x_frame_parm_handlers): Add x_set_tool_bar_position.
6939 (syms_of_xfns): If USE_GTK, provide move-toolbar.
6940
6941 * window.c (calc_absolute_offset): Check for FRAME_TOOLBAR_TOP_HEIGHT
6942 and FRAME_TOOLBAR_LEFT_WIDTH.
6943
6944 * gtkutil.h (xg_change_toolbar_position): Declare.
6945
6946 * gtkutil.c (FRAME_TOTAL_PIXEL_WIDTH): New macro.
6947 (xg_frame_set_char_size): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
6948 (xg_height_or_width_changed): Use FRAME_TOTAL_PIXEL_WIDTH.
6949 (xg_create_frame_widgets): Create a hobox for placing widgets
6950 vertically. Use gtk_box_pack_start.
6951 (xg_height_or_width_changed): Rename from xg_height_changed.
6952 (x_wm_set_size_hint): Add FRAME_TOOLBAR_WIDTH to base_width.
6953 (xg_update_frame_menubar, free_frame_menubar): Change to
6954 xg_height_or_width_changed.
6955 (xg_tool_bar_detach_callback): Update left/right/top/bottom tool bar
6956 size correctly. Remove hardcoded 4, instead use handlebox size -
6957 toolbar size.
6958 (xg_tool_bar_attach_callback): Update left/right/top/bottom tool bar
6959 size correctly. Use handlebox size + toolbar size as additional size.
6960 (xg_pack_tool_bar): POS is a new parameter.
6961 Set orientation of tool bar based on pos.
6962 Only make handlebox_widget if NULL.
6963 Check if tool bar goes to vbox or hbox depending on pos.
6964 (xg_update_tool_bar_sizes): New function.
6965 (update_frame_tool_bar): Remove old_req, new_req. Do not get tool bar
6966 height, call xg_update_tool_bar_sizes instead.
6967 (free_frame_tool_bar): Remove from hbox or vbox depending on
6968 toolbar_in_hbox, Set all FRAME_TOOLBAR_*_(WIDTH|HEIGHT) to zero.
6969 (xg_change_toolbar_position): New function.
6970
6971 * frame.h (struct frame): Add tool_bar_position.
6972 (Qbottom): Declare.
6973
6974 * frame.c (Qtool_bar_position): New variable.
6975 (make_frame): Set tool_bar_position to Qtop.
6976 (frame_parms): Add tool-bar-position.
6977 (x_report_frame_params): Store tool_bar_position.
6978 (x_set_fringe_width): Reset wm size hint after fringe changes.
6979
6980 2010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
6981
6982 Make lisp_time_argument declaration work on all systems.
6983 * lisp.h (lisp_time_argument): Move declaration ...
6984 * systime.h (lisp_time_argument): ... here
6985 * editfns.c (lisp_time_argument): Remove declaration. (Bug#6751)
6986
6987 2010-07-29 Jan Djärv <jan.h.d@swipnet.se>
6988
6989 * vm-limit.c (POINTER): Add typedef for it.
6990 (start_of_data): Change return type from POINTER to char *.
6991
6992 * frame.h (Qtty_color_mode): Move declaration out of ifdef
6993 HAVE_WINDOW_SYSTEM.
6994
6995 2010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
6996
6997 * vm-limit.c: Do not include sys/resource.h, mem-limits.h does it.
6998 Remove reference to __osf__, unused.
6999
7000 * mem-limits.h: Remove duplicated includes.
7001 (NULL): Remove definition, unused.
7002 (POINTER): Remove definition.
7003 (start_of_data): Use char* in prototype, as the function
7004 definition does.
7005
7006 Remove extern declarations from .c files, and them to .h files.
7007 * keyboard.h (Qhelp_echo, waiting_for_input)
7008 (input_available_clear_time, ignore_mouse_drag_p)
7009 (Vdouble_click_time, real_this_command, Vthis_original_command):
7010 * keymap.h (Qremap, Qmenu_item, Voverriding_local_map)
7011 (Voverriding_local_map_menu_flag):
7012 * lisp.h (Qinteractive_form, use_file_dialog)
7013 (Qcursor_in_echo_area, QCascent, QCmargin, QCrelief, Qcount)
7014 (Qextension_data, QCconversion, QCcolor_symbols, QCheuristic_mask)
7015 (QCindex, QCmatrix, QCcolor_adjustment, QCmask)
7016 (Qrisky_local_variable, map_char_table_for_charset, Vprint_level)
7017 (Qfunction, debug_on_next_call, Qfield)
7018 (Vinhibit_field_text_motion, Vuser_login_name, lisp_time_argument)
7019 (Qpriority, Qwindow, Qevaporate, Qbefore_string, Qafter_string)
7020 (Qfile_directory_p, Qinsert_file_contents)
7021 (Qcompletion_ignore_case, Qcompletion_ignore_case)
7022 (Vcompletion_regexp_list, Vhistory_length, completion_ignore_case)
7023 (history_delete_duplicates, minibuffer_auto_raise, Qonly)
7024 (Qfile_name_handler_alist, Qfront_sticky, Qrear_nonsticky)
7025 (Qminibuffer_prompt)
7026 (Vtemporary_file_directory,char_ins_del_vector, Qface):
7027 * xterm.h (gray_bitmap_width, gray_bitmap_height)
7028 (gray_bitmap_bits, xic_create_fontsetname):
7029 * coding.h (Vtranslation_table_for_input): Add extern declarations.
7030
7031 * xsmfns.c (Vuser_login_name):
7032 * xrdb.c (Vdouble_click_time):
7033 * xfaces.c (xic_create_fontsetname):
7034 * w32select.c (waiting_for_input):
7035 * print.c (minibuffer_auto_raise):
7036 * msdos.c (Qhelp_echo):
7037 * macros.c (real_this_command):
7038 * keymap.c (Voverriding_local_map):
7039 * xterm.c (poll_for_input_1, gray_bitmap_width)
7040 (gray_bitmap_height, gray_bitmap_bits;
7041 * xmenu.c ( Voverriding_local_map)
7042 (Voverriding_local_map_menu_flag; Qmenu_item; use_dialog_box)
7043 (use_file_dialog, Xt_app_con):
7044 * xdisp.c (minibuffer_auto_raise, Voverriding_local_map)
7045 (Voverriding_local_map_menu_flag, Qmenu_item, Qface, Qinvisible)
7046 (Qwidth, Qinvisible, Qwindow, Qpriority, Qtool_bar_lines)
7047 (Qtool_bar_lines, ignore_mouse_drag_p):
7048 * minibuf.c (Voverriding_local_map, Qfield, Qfront_sticky)
7049 (Qrear_nonsticky, nconc2):
7050 * keyboard.c (current_global_map, minibuf_level, Qmenu_item)
7051 (Vhistory_length, Vtranslation_table_for_input, Qcomposition)
7052 (Qdisplay, Qafter_string, Qbefore_string, Qundefined):
7053 * fileio.c (use_dialog_box, use_file_dialog, Vuser_login_name)
7054 (minibuf_level, minibuffer_auto_raise, lisp_time_argument):
7055 * eval.c (Qinteractive_form, Qrisky_local_variable, Qfunction)
7056 (gc_in_progress):
7057 * doc.c (Voverriding_local_map, Qremap):
7058 * dired.c (completion_ignore_case, Qcompletion_ignore_case)
7059 (Vcompletion_regexp_list):
7060 * coding.c (Qmac, Qinsert_file_contents, Qwrite_region)
7061 (Qcompletion_ignore_case):
7062 * callint.c (Qcursor_in_echo_area, Qfile_directory_p, Qonly)
7063 (Vhistory_length, Vthis_original_command, real_this_command)
7064 (Qface, Qminibuffer_prompt, history_delete_duplicates):
7065 * image.c (Qrisky_local_variable):
7066 * fontset.c (QCname):
7067 * fns.c (minibuffer_auto_raise, QCname):
7068 * dispnew.c (char_ins_del_cost):
7069 * composite.c (font_fill_lglyph_metrics):
7070 * cmds.c (Qface, Vtranslation_table_for_input):
7071 * charset.c (map_char_table_for_charset, Qfile_name_handler_alist):
7072 * ccl.c (charset_unicode):
7073 * callproc.c (Vtemporary_file_directory):
7074 * buffer.c (emacs_strerror): Remove extern declarations.
7075
7076 * data.c (Qwindow): Make non-static, used from other files too.
7077 * frame.c (validate_x_resource_name): Remove shadow definition for i.
7078
7079 * unexec.c (make_hdr): Remove references to NO_REMAP, COFF,
7080 SEGMENT_MASK, SECTION_ALIGNMENT, ADJUST_EXEC_HEADER.
7081 * s/usg5-4.h (COFF):
7082 * s/template.h:
7083 * s/msdos.h (COFF, NO_REMAP):
7084 * s/ms-w32.h (NO_REMAP):
7085 * s/hpux10-20.h (NO_REMAP):
7086 * m/sparc.h (SEGMENT_MASK):
7087 * m/m68k.h (NO_REMAP):
7088 * m/intel386.h (SEGMENT_MASK):
7089 * m/arm.h (NO_REMAP):
7090 * m/alpha.h (COFF):
7091 * m/template.h: Remove references to unused defines.
7092
7093 2010-07-28 Jan Djärv <jan.h.d@swipnet.se>
7094
7095 * xsettings.c (Ftool_bar_get_system_style): Also check for
7096 Qtext_image_horiz.
7097
7098 * xdisp.c (Qtext_image_horiz): Define.
7099 (syms_of_xdisp): Initialize Qtext_image_horiz. Add text-image-horiz
7100 to documentation of tool-bar-style.
7101
7102 * lisp.h (Qtext_image_horiz): Declare.
7103
7104 * gtkutil.c (xg_make_tool_item, xg_show_toolbar_item): Handle tool bar
7105 style text_image_horiz.
7106
7107 2010-07-27 Dan Nicolaescu <dann@ics.uci.edu>
7108
7109 * emacs.c (Fkill_emacs): Remove return statement.
7110
7111 * term.c (Qspace, QCalign_to, QCwidth): Remove declarations.
7112 (encode_terminal_code, produce_composite_glyph): Remove unused variables.
7113 (set_tty_color_mode, term_mouse_highlight, term_get_fkeys):
7114 Remove local extern declarations.
7115
7116 * xmenu.c: Do not included lwlib.h, not needed.
7117
7118 * m/iris4d.h (XUINT, XSET): Remove, not needed.
7119
7120 * process.c: Move definitions earlier to minimize #ifdefs.
7121
7122 * xterm.h (x_get_customization_string, x_load_resources)
7123 (x_get_resource, x_text_icon, x_text_icon, x_check_errors)
7124 (x_check_errors, x_property_data_to_lisp, defined_color)
7125 (xic_set_xfontset, x_defined_color): Use const.
7126
7127 * xterm.c (xlwmenu_window_p, xlwmenu_redisplay): Remove declarations.
7128 (x_text_icon, x_check_errors, x_connection_closed): Use const.
7129
7130 * xselect.c (selection_data_to_lisp_data)
7131 (x_property_data_to_lisp):
7132 * xrdb.c (x_get_string_resource, file_p)
7133 (x_get_customization_string, magic_file_p, search_magic_path)
7134 (get_system_app, get_user_app, x_load_resources, x_get_resource)
7135 (x_get_string_resource): Use const.
7136
7137 * xfns.c: Include xlwmenu.h when USE_LUCID.
7138 (x_defined_color, xic_set_xfontset): Use const.
7139 (Fx_hide_tip): Remove local extern declaration.
7140
7141 * xfaces.c (Qmouse_face): Remove declaration.
7142 (face_color_gray_p, tty_defined_color, defined_color)
7143 (face_color_gray_p, face_color_supported_p): Add const.
7144
7145 * xdisp.c (do_mouse_tracking): Remove declaration.
7146 (add_to_log): Use const.
7147
7148 * minibuf.c (Qmouse_face): Remove declaration.
7149
7150 * msdos.c (IT_note_mouse_highlight): Remove local extern declaration.
7151
7152 * keyboard.h (do_mouse_tracking): Add declaration.
7153
7154 * image.c (QCwidth, QCheight, QCforeground, QCbackground, QCfile)
7155 (QCdata, QCtype, Qcenter): Remove declarations.
7156
7157 * frame.c (x_get_resource_string, x_get_string_resource)
7158 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
7159 (x_default_parameter): Use const.
7160
7161 * font.c (Qnormal, QCtype, QCfamily, QCweight, QCslant, QCwidth)
7162 (QCheight, QCsize, QCname): Remove declarations.
7163
7164 * emacs.c (main): Remove local extern declaration.
7165
7166 * editfns.c (region_limit, syms_of_editfns): Remove local extern
7167 declarations.
7168
7169 * dispnew.c: Remove duplicate #include <unistd.h>.
7170 (update_window, update_frame_1, init_display): Remove local extern
7171 declarations.
7172
7173 * dispextern.h (add_to_log): Remove declaration.
7174 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
7175 (x_frame_get_and_record_arg, x_default_parameter): Add const.
7176
7177 * dired.c (scmp): Add const.
7178 (directory_files_internal): Remove local extern declaration.
7179
7180 * data.c (Finteractive_form): Use const.
7181
7182 * composite.c (syms_of_composite): Remove local extern declarations.
7183
7184 * charset.c (add_to_log): Remove declaration.
7185
7186 * character.c (strwidth, parse_str_to_multibyte): Add const.
7187
7188 * character.h (strwidth, parse_str_to_multibyte): Likewise.
7189
7190 * buffer.c (Fset_buffer_multibyte): Remove local extern declaration.
7191
7192 * lisp.h (Fkill_emacs): Mark as NO_RETURN.
7193 (Lisp_Subr): Make doc and intspec constant.
7194 (QCsize, Qspace, Qcenter, QCalign_to, QCdata, QCfile, QCtype)
7195 (Qlocal, Qapply, Qnormal, QCfamily, QCweight, QCslant, QCwidth)
7196 (QCheight, QCsize, QCname, QCwidth, QCforeground)
7197 (QCbackground, add_to_log, stack_base, Vmark_even_if_inactive)
7198 (display_arg): Add declarations.
7199
7200 2010-07-27 Christoph Scholtes <cschol2112@gmail.com>
7201
7202 * minibuf.c (Fread_buffer): Doc fix (bug#6528).
7203
7204 * window.c (Fwindow_height): Doc fix (bug#6518).
7205
7206 2010-07-27 Juanma Barranquero <lekktu@gmail.com>
7207
7208 * buffer.c (syms_of_buffer) <fringe-indicator-alist>: Doc fix.
7209
7210 2010-07-26 Dan Nicolaescu <dann@ics.uci.edu>
7211
7212 * keyboard.c (Ftop_level, Fexit_recursive_edit)
7213 (Fabort_recursive_edit): Remove return statements in NO_RETURN
7214 functions.
7215
7216 * frame.h (Qtty_color_mode): Add declaration.
7217
7218 * lisp.h (Ftop_level, Fexit_recursive_edit)
7219 (Fabort_recursive_edit): Mark as NO_RETURN.
7220
7221 2010-07-26 Kenichi Handa <handa@m17n.org>
7222
7223 * font.c (Ffont_shape_gstring): Terminate GSTRING by nil if the
7224 number of glyphs gets smaller than the original length. (Bug#6621)
7225
7226 2010-07-26 Juanma Barranquero <lekktu@gmail.com>
7227
7228 * lread.c (unreadpure, mapatoms_1): Make static.
7229
7230 2010-07-25 Juanma Barranquero <lekktu@gmail.com>
7231
7232 * terminfo.c (tparam): Fix prototype of tparm.
7233
7234 2010-07-25 Andreas Schwab <schwab@linux-m68k.org>
7235
7236 * emacs.c (main) [PROFILING]: Use __executable_start if defined to
7237 find start of text segment.
7238 * dispnew.c (safe_bcopy): Don't define if HAVE___EXECUTABLE_START
7239 is defined.
7240
7241 * callproc.c (set_initial_environment): Avoid unbalanced braces.
7242
7243 2010-07-25 Ken Brown <kbrown@cornell.edu>
7244
7245 * vm-limit.c (check_memory_limits): Fix previous change;
7246 accidentally reverted an earlier change.
7247
7248 2010-07-25 Ken Brown <kbrown@cornell.edu>
7249
7250 * mem-limits.h (BSD4_2) [cygwin]: Don't define here; instead...
7251 * vm-limit.c: ...add 'defined (CYGWIN)' here (Bug#6715).
7252
7253 2010-07-25 Juanma Barranquero <lekktu@gmail.com>
7254
7255 * callproc.c (relocate_fd): Set inside #ifndef WINDOWSNT.
7256 * dired.c (opendir, readdir): Fix prototypes.
7257 * editfns.c (w32_get_internal_run_time): Fix prototypes.
7258 * keyboard.c (input_available_signal): Declare inside #ifdef SIGIO.
7259 * ndir.h (opendir, readdir, seekdir, closedir): Fix prototypes.
7260 (telldir): Remove declaration.
7261 * ralloc.c (real_morecore, __morecore): Fix prototypes.
7262 * sound.c (alsa_sound_perror): Declare inside #ifdef HAVE_ALSA.
7263 * syssignal.h (strsignal): Fix prototype.
7264 * term.c (tparam): Fix prototype.
7265 (term_get_fkeys_address, term_get_fkeys_kboard, term_get_fkeys_1)
7266 (term_get_fkeys): Set inside "#ifndef DOS_NT".
7267 * vm-limit.c (check_memory_limits): Fix prototypes of real_morecore
7268 and __morecore.
7269 * w32gui.h (XParseGeometry): Fix prototype.
7270 * w32heap.h (get_data_start, get_data_end, init_heap): Fix prototypes.
7271 * w32term.c (my_set_focus): Declare inside #if 0.
7272 * w32term.h (x_window_to_frame, x_display_info_for_name, w32_term_init)
7273 (w32_fill_rect, w32_clear_window, init_crit, delete_crit, signal_quit)
7274 (drain_message_queue, get_next_msg, post_msg, parse_button)
7275 (ClipboardSequence_Proc): Fix prototypes.
7276 (wait_for_sync): Remove declaration.
7277
7278 2010-07-24 Juanma Barranquero <lekktu@gmail.com>
7279
7280 * w32fns.c (w32_to_x_color): Remove, unused.
7281
7282 2010-07-24 Andreas Schwab <schwab@linux-m68k.org>
7283
7284 * lisp.h: Remove leftover P_.
7285
7286 2010-07-24 Dan Nicolaescu <dann@ics.uci.edu>
7287
7288 * ecrt0.c, unexalpha.c: Remove files, unused.
7289
7290 2010-07-24 Andreas Schwab <schwab@linux-m68k.org>
7291
7292 * cmds.c (internal_self_insert): Make static.
7293 * lisp.h (internal_self_insert): Remove declaration.
7294
7295 2010-07-23 Juanma Barranquero <lekktu@gmail.com>
7296
7297 * alloc.c (free_float):
7298 * font.c [ENABLE_CHECKING] (font_match_xlfd, font_check_xlfd_parse):
7299 * frame.c (delete_frame_handler):
7300 * ralloc.c (reorder_bloc):
7301 * w32menu.c (menubar_id_to_frame, add_left_right_boundary):
7302 Remove unused static functions.
7303
7304 * menu.c (cleanup_popup_menu): Set inside "#ifdef HAVE_NS";
7305 it is called only from NS code.
7306
7307 * w32term.c (my_set_focus): #ifdef away; it is called only from
7308 "#ifdef 0" code.
7309
7310 * w32fns.c (x_edge_detection):
7311 * xfaces.c (may_use_scalable_font_p):
7312 Remove obsolete static declarations.
7313
7314 2010-07-20 Juanma Barranquero <lekktu@gmail.com>
7315
7316 * alloc.c (emacs_blocked_free, emacs_blocked_malloc)
7317 (emacs_blocked_realloc, uninterrupt_malloc):
7318 * fringe.c (w32_reset_fringes):
7319 * image.c (convert_mono_to_color_image, lookup_rgb_color)
7320 (init_color_table, XPutPixel, jpeg_resync_to_restart_wrapper):
7321 * sound.c (be2hs, do_play_sound):
7322 * vm-limit.c (get_lim_data, ret_lim_data):
7323 * w32term.c (x_free_frame_resources):
7324 * xfaces.c (x_create_gc, x_free_gc):
7325 Convert definitions to standard C.
7326
7327 2010-07-20 Stefan Monnier <monnier@iro.umontreal.ca>
7328
7329 * eval.c (Feval, Ffuncall): Use the new names.
7330
7331 * lisp.h (struct Lisp_Subr): Rename `am' to aMANY and add aUNEVALLED.
7332 (DEFUN): Add braces around the union initialisation and use ## to
7333 specify the right union alternative and avoid a cast.
7334
7335 2010-07-18 Juanma Barranquero <lekktu@gmail.com>
7336
7337 * makefile.w32-in ($(BLD)/keyboard.$(O)): Update dependencies.
7338
7339 2010-07-17 Chong Yidong <cyd@stupidchicken.com>
7340
7341 * frame.c (make_initial_frame): Use set_menu_bar_lines (Bug#6660).
7342
7343 2010-07-17 Jan Djärv <jan.h.d@swipnet.se>
7344
7345 * gtkutil.c (xg_event_is_for_menubar): Also check that event window
7346 is related to the menu bar (Bug#6499).
7347 (xg_frame_resized): GTK_IS_MAPPED => gtk_widget_get_mapped, for Gtk 3.0.
7348
7349 2010-07-16 Jan Djärv <jan.h.d@swipnet.se>
7350
7351 * xterm.h (x_menubar_window_to_frame): Second parameter is XEvent*.
7352
7353 * xterm.c (handle_one_xevent): Pass event to x_menubar_window_to_frame.
7354
7355 * xmenu.c (x_activate_menubar): Revert previous fix for Bug#6499,
7356 i.e. don't put back ButtonRelease (Bug#6608).
7357
7358 * xfns.c (x_menubar_window_to_frame): Take XEvent as second parameter
7359 instead of Window. Call xg_event_is_for_menubar when
7360 USE_GTK (Bug#6499).
7361
7362 * gtkutil.h (xg_event_is_for_menubar): Declare.
7363
7364 * gtkutil.c (xg_event_is_for_menubar): New function (Bug#6499).
7365
7366 2010-07-16 Eli Zaretskii <eliz@gnu.org>
7367
7368 * w32fns.c (x_set_foreground_color): Fix setting the cursor color
7369 when it's the same as the old foreground. (Bug#6609)
7370
7371 2010-07-16 Jan Djärv <jan.h.d@swipnet.se>
7372
7373 * xmenu.c (free_frame_menubar): Only call x_set_window_size if
7374 widget is non-null (Bug#6645).
7375
7376 2010-07-15 Andreas Schwab <schwab@linux-m68k.org>
7377
7378 * xterm.c (x_fully_uncatch_errors, x_trace_wire, x_check_font):
7379 Convert old-style definition.
7380
7381 * xmenu.c (create_and_show_popup_menu, xmenu_show): Fix type of
7382 timestamp argument.
7383
7384 2010-07-15 Eli Zaretskii <eliz@gnu.org>
7385
7386 * fringe.c (update_window_fringes): Restore mistakenly reverted
7387 code from 2010-04-17T12:33:05Z!eliz@gnu.org merged in 2010-04-20T13:31:28Z!eliz@gnu.org.
7388
7389 2010-07-14 Jan Djärv <jan.h.d@swipnet.se>
7390
7391 * xterm.c (xm_scroll_callback, x_process_timeouts): K&R => prototype.
7392 (SET_SAVED_KEY_EVENT): Remove (not used).
7393 (SET_SAVED_MENU_EVENT): Rename to SET_SAVED_BUTTON_EVENT and
7394 remove size parameter.
7395 (handle_one_xevent): Check popup_activated () for menu for Xt also.
7396 Remove #ifdef USE_GTK around finish = X_EVENT_DROP.
7397 Remove #ifdef USE_MOTIF code that did SET_SAVED_BUTTON_EVENT for
7398 ButtonRelease.
7399 (x_set_window_size_1): scroll_bar_actual_width is always
7400 SCROLL_BAR_COLS * COLUMN_WIDTH for the purpose of frame sizing.
7401
7402 * xdisp.c (pending_menu_activation): Remove extern declaration.
7403 (prepare_menu_bars): Remove setting of pending_menu_activation.
7404
7405 * xmenu.c (pending_menu_activation): Remove.
7406 (x_activate_menubar): Set popup_activated_flag for Xt also.
7407 Remove setting of pending_menu_activation.
7408 (set_frame_menubar): Remove check of pending_menu_activation.
7409 Declare menubar_size before code. Correct spelling in comment.
7410
7411 2010-07-14 Kenichi Handa <handa@m17n.org>
7412
7413 * font.c (font_open_entity): Cancel previous change.
7414 (Ffont_get): Don't check FONT_ENTITY_INDEX of a font-object.
7415
7416 2010-07-13 Eli Zaretskii <eliz@gnu.org>
7417
7418 Remove subprocesses #ifdefs.
7419 * process.c <inhibit_sentinels>: Move to the common part.
7420 (Fwaiting_for_user_input_p): Move to the common part; return nil
7421 if async subprocesses aren't supported.
7422 * sysdep.c (wait_for_termination) [!MSDOS]: Don't compile on
7423 MS-DOS. Remove "#ifdef subprocesses".
7424 (sys_subshell, sys_select): Remove "#ifdef subprocesses".
7425 (gettimeofday): Remove "#ifdef subprocesses".
7426 (wait_without_blocking): Remove function.
7427 (flush_pending_output, child_setup_tty): Don't compile on MS-DOS.
7428 Remove "#ifdef subprocesses".
7429 (child_setup_tty): Use WINDOWSNT instead of DOS_NT, since not
7430 compiled on MS-DOS.
7431 * callproc.c (Fcall_process) [!MSDOS]: Don't call
7432 wait_for_termination on MS-DOS.
7433 * emacs.c (shut_down_emacs): Remove "#ifndef subprocesses" from
7434 initialization of inhibit_sentinels.
7435 * keyboard.c (record_asynch_buffer_change): Remove "#ifdef
7436 subprocesses" conditional.
7437 * callproc.c (Fcall_process) [!subprocesses]: Don't call
7438 wait_for_termination, since `buffer' cannot be an integer when
7439 async subprocesses are not supported
7440 * xdisp.c (decode_mode_spec): Use `MSDOS' instead of `subprocesses'
7441 for ifdefing away the call to Fprocess_status.
7442
7443 * process.c (add_keyboard_wait_descriptor) [!subprocesses]: Ifdef
7444 away the entire body of the function.
7445
7446 2010-07-13 Dan Nicolaescu <dann@ics.uci.edu>
7447
7448 Remove subprocesses #ifdefs from term.c.
7449 * process.c (add_keyboard_wait_descriptor)
7450 (delete_keyboard_wait_descriptor): Move to common section, do
7451 nothing when subprocesses is not defined.
7452 * term.c (Fsuspend_tty, Fresume_tty, init_tty):
7453 Remove subprocesses #ifdefs.
7454
7455 Convert maybe_fatal to standard C.
7456 * lisp.h (verror): Declare.
7457 * eval.c (verror): New function containing the code from ...
7458 (error): ... this. Call verror.
7459 * term.c (vfatal): New function containing the code from ...
7460 (fatal): ... this. Call vfatal.
7461 (maybe_fatal): Convert to standard C, use variable number of
7462 arguments. Declare as non-return.
7463 (init_tty): Fix maybe_fatal call.
7464
7465 2010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
7466
7467 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_expose)
7468 (_scroll_bar_note_movement): Convert definitions to standard C.
7469 * xmenu.c (menu_help_callback, pop_down_menu, xmenu_show):
7470 * xfns.c (hack_wm_protocols, x_window, x_window): Likewise.
7471
7472 2010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
7473
7474 * xterm.c (x_frame_of_widget, x_alloc_nearest_color_for_widget)
7475 (x_alloc_lighter_color_for_widget, cvt_string_to_pixel)
7476 (cvt_pixel_dtor, x_window_to_menu_bar, xt_action_hook)
7477 (xaw_jump_callback, xaw_scroll_callback)
7478 (x_create_toolkit_scroll_bar, x_set_toolkit_scroll_bar_thumb)
7479 (x_wm_set_size_hint, x_activate_timeout_atimer):
7480 Convert definitions to standard C.
7481 * xmenu.c (menubar_id_to_frame, popup_get_selection)
7482 (popup_activate_callback, popup_deactivate_callback)
7483 (menu_highlight_callback, menubar_selection_callback)
7484 (apply_systemfont_to_dialog, apply_systemfont_to_menu)
7485 (free_frame_menubar, popup_selection_callback, as)
7486 (create_and_show_popup_menu, dialog_selection_callback)
7487 (create_and_show_dialog):
7488 * xfns.c (hack_wm_protocols, x_window):
7489 * xfaces.c (x_update_menu_appearance):
7490 * widget.c (get_default_char_pixel_size, pixel_to_char_size)
7491 (char_to_pixel_size, round_size_to_char, get_wm_shell)
7492 (set_frame_size, update_wm_hints, setup_frame_gcs)
7493 (update_various_frame_slots, update_from_various_frame_slots)
7494 (EmacsFrameInitialize, EmacsFrameRealize, EmacsFrameResize)
7495 (EmacsFrameSetValues, EmacsFrameQueryGeometry)
7496 (EmacsFrameSetCharSize, widget_store_internal_border): Likewise.
7497
7498 2010-07-12 Andreas Schwab <schwab@linux-m68k.org>
7499
7500 * dbusbind.c (xd_initialize): Don't compare boolean with a constant.
7501
7502 2010-07-12 Eli Zaretskii <eliz@gnu.org>
7503
7504 * process.c (setup_process_coding_systems): Move to the part
7505 shared by non-subprocesses systems, and make its body empty when
7506 subprocesses is not defined.
7507 (close_process_descs): Move to the part shared by non-subprocesses
7508 systems.
7509 (wait_reading_process_output) [!subprocesses]: Convert arg list to
7510 ANSI C.
7511
7512 2010-07-12 Andreas Schwab <schwab@linux-m68k.org>
7513
7514 * editfns.c (transpose_markers): Convert old-style definition.
7515 * emacs.c (abort, shut_down_emacs, fixup_locale)
7516 (synchronize_system_time_locale)
7517 (synchronize_system_messages_locale, syms_of_emacs): Likewise.
7518 * floatfns.c (extract_float, matherr, init_floatfns)
7519 (syms_of_floatfns): Likewise.
7520 * fns.c (make_hash_table): Likewise.
7521 * ftfont.c (ftfont_get_otf, ftfont_otf_features)
7522 (ftfont_otf_capability, ftfont_get_glyph_id, ftfont_get_metrics)
7523 (ftfont_drive_otf, ftfont_shape_by_flt, ftfont_shape)
7524 (ftfont_variation_glyphs): Likewise.
7525 * gtkutil.c (xg_create_widget, xg_modify_menubar_widgets): Likewise.
7526 * keymap.c (describe_map_tree, describe_map, describe_vector): Likewise.
7527 * lread.c (read_filtered_event): Likewise.
7528 * minibuf.c (read_minibuf_noninteractive, read_minibuf): Likewise.
7529 * process.c (wait_reading_process_output): Likewise.
7530 * scroll.c (do_line_insertion_deletion_costs): Likewise.
7531 * search.c (search_buffer, boyer_moore): Likewise.
7532 * syntax.c (scan_sexps_forward): Likewise.
7533 * xdisp.c (try_scrolling): Likewise.
7534 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
7535 (face_at_string_position): Likewise.
7536 * xfns.c (x_default_scroll_bar_color_parameter): Likewise.
7537 * xselect.c (x_get_window_property, receive_incremental_selection)
7538 (x_get_window_property_as_lisp_data, lisp_data_to_selection_data):
7539 Likewise.
7540 * xterm.c (x_draw_relief_rect, x_draw_box_rect): Likewise.
7541
7542 2010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
7543
7544 * callproc.c (child_setup): Remove subprocesses conditional.
7545 Remove code dealing with SET_EMACS_PRIORITY, unused.
7546
7547 * buffer.c (Fset_buffer_multibyte): Remove subprocesses conditional.
7548 * process.c (close_process_descs): Use DOS_NT instead of WINDOWSNT.
7549
7550 * emacs.c (__do_global_ctors, __do_global_ctors_aux)
7551 (__do_global_dtors, __main): Use void in definition.
7552 (main): Remove code dealing with SET_EMACS_PRIORITY, unused.
7553 Remove SYMS_MACHINE code, unused. Remove SYMS_SYSTEM, inline
7554 the only users from ...
7555 * s/ms-w32.h (SYMS_SYSTEM): ... here and ...
7556 * s/msdos.h (SYMS_SYSTEM): ... here. Remove.
7557 (HAVE_VOLATILE): Remove, unused.
7558
7559 Convert more function definitions to standard C.
7560 * xdisp.c (window_box_edges, handle_single_display_spec)
7561 (display_string): Convert definition to standard C.
7562 * scroll.c (do_direct_scrolling, scrolling_1):
7563 * dispnew.c (allocate_matrices_for_frame_redisplay)
7564 (mirrored_line_dance):
7565 * coding.c (code_convert_string):
7566 * charset.c (map_charset_chars):
7567 * ccl.c (Fccl_program_p, Fccl_execute, Fccl_execute_on_string)
7568 (Fregister_ccl_program, Fregister_code_conversion_map):
7569 * keyboard.c (kbd_buffer_nr_stored): Likewise.
7570 (head_table): Make static and const.
7571
7572 2010-07-12 Andreas Schwab <schwab@linux-m68k.org>
7573
7574 * Makefile.in (C_WARNINGS_SWITCH, PROFILING_CFLAGS)
7575 (PROFILING_LDFLAGS): Set from substitution.
7576 (ALL_CFLAGS): Add C_WARNINGS_SWITCH and PROFILING_CFLAGS, put
7577 CFLAGS last.
7578
7579 2010-07-12 Kenichi Handa <handa@m17n.org>
7580
7581 * Makefile.in (lisp): Change hebrew.el to hebrew.elc.
7582 (shortlisp): Likewise.
7583
7584 * font.h (enum font_property_index): New member FONT_ENTITY_INDEX.
7585
7586 * font.c (font_open_entity): Record ENTITY in FONT_OBJECT's slot
7587 of FONT_ENTITY_INDEX.
7588 (Ffont_get): If KEY is :otf and the font-object doesn't have the
7589 property, get the property value dynamically.
7590 (Ffont_put): Accept font-entity and font-object too.
7591 (Ffont_get_glyhphs): Rename from Fget_font_glyphs. Arguments and
7592 return value changed.
7593 (syms_of_font): Adjust for the above change.
7594
7595 2010-07-11 Andreas Schwab <schwab@linux-m68k.org>
7596
7597 * blockinput.h: Remove obsolete comment.
7598
7599 * lisp.h: Include <stddef.h>.
7600 (OFFSETOF): Don't define.
7601 (VECSIZE): Use offsetof instead of OFFSETOF.
7602 (PSEUDOVECSIZE): Likewise.
7603 * process.c (conv_sockaddr_to_lisp): Likewise.
7604 * alloc.c: Don't include <stddef.h>.
7605 * buffer.h (PER_BUFFER_VAR_OFFSET): Use offsetof.
7606
7607 * process.c: Remove obsolete comment.
7608
7609 2010-07-11 Chong Yidong <cyd@stupidchicken.com>
7610
7611 * xfaces.c (Vface_remapping_alist): Doc fix (Bug#6091).
7612
7613 2010-07-11 Andreas Schwab <schwab@linux-m68k.org>
7614
7615 * callint.c (Fcall_interactively): Use strchr, strrchr instead of
7616 index, rindex.
7617 * doc.c (get_doc_string, Fsnarf_documentation): Likewise.
7618 * editfns.c (Fuser_full_name, Fformat): Likewise.
7619 * emacs.c (argmatch, sort_args, decode_env_path): Likewise.
7620 * fileio.c (Ffile_symlink_p): Likewise.
7621 * filelock.c (current_lock_owner): Likewise.
7622 * font.c (font_parse_name, font_parse_family_registry): Likewise.
7623 * fontset.c (fontset_pattern_regexp): Likewise.
7624 * lread.c (read1): Likewise.
7625 * sysdep.c (init_system_name): Likewise.
7626 * xfns.c (select_visual): Likewise.
7627 * s/hpux10-20.h (index, rindex): Don't define.
7628 * s/ms-w32.h (index): Likewise.
7629 * s/usg5-4.h: Likewise.
7630
7631 * callproc.c (relocate_fd): Use F_DUPFD if defined.
7632
7633 * alloc.c (pending_malloc_warning, malloc_warning): Add const.
7634 * callproc.c (relocate_fd, getenv_internal_1, getenv_internal)
7635 (egetenv): Likewise.
7636 * doprnt.c (doprnt): Likewise.
7637 * editfns.c (set_time_zone_rule, format2): Likewise.
7638 * emacs.c (decode_env_path): Likewise.
7639 * eval.c (signal_error, error): Likewise.
7640 * insdel.c (replace_range_2): Likewise.
7641 * keyboard.c (cmd_error_internal): Likewise.
7642 * lread.c (isfloat_string, make_symbol, dir_warning): Likewise.
7643 * print.c (write_string, write_string_1, print_error_message):
7644 Likewise.
7645 * vm-limit.c (warn_function, memory_warnings): Likewise.
7646 * xdisp.c (message1, message1_nolog, message_with_string)
7647 (vmessage, message, message_nolog): Likewise.
7648 * emacs.c: Remove duplicate declaration.
7649 * keyboard.h: Likewise.
7650 * lisp.h: Update prototypes.
7651
7652 * eval.c: Fix indentation problem.
7653
7654 * keyboard.c: Include "process.h".
7655
7656 * eval.c: Remove obsolete noinline declaration.
7657 * fns.c: Likewise.
7658
7659 2010-07-11 Ken Raeburn <raeburn@raeburn.org>
7660
7661 * doprnt.c (doprnt): Take a va_list argument instead of count and
7662 pointer.
7663 * eval.c (error): Change to a standard-C variadic function.
7664 * xdisp.c (vmessage): Rename from message, made static, and
7665 changed to take a va_list argument.
7666 (message): New variadic wrapper.
7667 (message_nolog): Now a variadic function, calling vmessage.
7668 * lisp.h: Include stdarg.h for va_list.
7669 (doprnt, error, message, message_nolog): Decls updated.
7670
7671 2010-07-11 Eli Zaretskii <eliz@gnu.org>
7672
7673 * process.c (syms_of_process) <delete-exited-processes>: Define
7674 even if !subprocesses.
7675 (delete_exited_processes): Ditto.
7676
7677 * msdos.c (syms_of_msdos) <delete-exited-processes>: Remove DEFVAR.
7678 (delete_exited_processes): Don't define.
7679
7680 2010-07-10 Chong Yidong <cyd@stupidchicken.com>
7681
7682 * frame.c (make_frame): Initialize menu_bar_lines and
7683 tool_bar_lines members.
7684 (make_initial_frame, make_terminal_frame):
7685 Initialize menu_bar_lines using value of menu-bar-mode.
7686
7687 * msdos.c (IT_set_frame_parameters): Don't set menu-bar-lines.
7688
7689 2010-07-10 Eli Zaretskii <eliz@gnu.org>
7690
7691 * process.c: Reshuffle #include's. Condition some of the global
7692 and static variables on `subprocesses'.
7693 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
7694 Leave only one implementation.
7695 (Fget_buffer_process, Fprocess_inherit_coding_system_flag)
7696 (kill_buffer_processes, Flist_system_processes)
7697 (Fprocess_attributes, init_process, syms_of_process): Unify the
7698 implementations for with subprocesses and without them.
7699
7700 2010-07-09 Jan Djärv <jan.h.d@swipnet.se>
7701
7702 * xmenu.c (set_frame_menubar): Must realize menubar_widget to get the
7703 correct size for Motif.
7704 (free_frame_menubar): Call x_set_window_size to update frame size.
7705
7706 * xfns.c (x_window): Set borderWidth to 0 for pane and
7707 EmacsFrame. Frame size calculation is wrong otherwise.
7708
7709 2010-07-09 Michael Albinus <michael.albinus@gmx.de>
7710
7711 * dbusbind.c (xd_initialize): Add new argument RAISE_ERROR, which
7712 allows to suppress errors when polling in Emacs' main loop.
7713 (Fdbus_init_bus, Fdbus_get_unique_name, Fdbus_call_method)
7714 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
7715 (Fdbus_method_error_internal, Fdbus_send_signal)
7716 (xd_get_dispatch_status, xd_read_message, Fdbus_register_signal)
7717 (Fdbus_register_method): Use it. (Bug#6579)
7718
7719 2010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
7720
7721 * alloc.c: Convert DEFUNs to standard C.
7722 * buffer.c:
7723 * bytecode.c:
7724 * callint.c:
7725 * callproc.c:
7726 * casefiddle.c:
7727 * casetab.c:
7728 * category.c:
7729 * character.c:
7730 * charset.c:
7731 * chartab.c:
7732 * cmds.c:
7733 * coding.c:
7734 * composite.c:
7735 * data.c:
7736 * dbusbind.c:
7737 * dired.c:
7738 * dispnew.c:
7739 * doc.c:
7740 * dosfns.c:
7741 * editfns.c:
7742 * emacs.c:
7743 * eval.c:
7744 * fileio.c:
7745 * filelock.c:
7746 * floatfns.c:
7747 * fns.c:
7748 * font.c:
7749 * fontset.c:
7750 * frame.c:
7751 * fringe.c:
7752 * image.c:
7753 * indent.c:
7754 * insdel.c:
7755 * keyboard.c:
7756 * keymap.c:
7757 * lread.c:
7758 * macros.c:
7759 * marker.c:
7760 * menu.c:
7761 * minibuf.c:
7762 * msdos.c:
7763 * nsfns.m:
7764 * nsmenu.m:
7765 * nsselect.m:
7766 * print.c:
7767 * process.c:
7768 * search.c:
7769 * sound.c:
7770 * syntax.c:
7771 * term.c:
7772 * terminal.c:
7773 * textprop.c:
7774 * undo.c:
7775 * w16select.c:
7776 * w32console.c:
7777 * w32fns.c:
7778 * w32font.c:
7779 * w32menu.c:
7780 * w32proc.c:
7781 * w32select.c:
7782 * window.c:
7783 * xdisp.c:
7784 * xfaces.c:
7785 * xfns.c:
7786 * xmenu.c:
7787 * xselect.c:
7788 * xsettings.c:
7789 * xsmfns.c: Likewise.
7790
7791 2010-07-08 Eli Zaretskii <eliz@gnu.org>
7792
7793 * process.c (kbd_is_on_hold, hold_keyboard_input)
7794 (unhold_keyboard_input, kbd_on_hold_p) [!subprocesses]: Define.
7795
7796 2010-07-08 Jan Djärv <jan.h.d@swipnet.se>
7797
7798 * xmenu.c (set_frame_menubar, create_and_show_popup_menu)
7799 (create_and_show_dialog): Don't call apply_systemfont_to_(menu|dialog)
7800 unless USE_LUCID.
7801
7802 2010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
7803
7804 * xdisp.c (store_mode_line_noprop_char): Remove K&R alternative
7805 declaration.
7806
7807 Clean up include guards.
7808 * tparam.c: Remove include guards for config.h, string.h and code
7809 that assumes #ifndef emacs.
7810 * termcap.c:
7811 * unexalpha.c:
7812 * sysdep.c:
7813 * filemode.c:
7814 * filelock.c:
7815 * bidi.c: Likewise.
7816
7817 Remove prefix-args.c
7818 * prefix-args.c: Remove file.
7819 * autodeps.mk (ALLOBJS): Remove reference to prefix-args.
7820 * Makefile.in (temacs${EXEEXT}): Remove references to
7821 PRE_EDIT_LDFLAGS and POST_EDIT_LDFLAGS.
7822 (mostlyclean): Remove reference to prefix-args.
7823 (prefix-args): Remove.
7824
7825 Simplify cstart_of_data, start_of_code and related code.
7826 * mem-limits.h: Remove !emacs and _LIBC conditional code.
7827 (start_of_data): Merge into start_of_data function.
7828 * sysdep.c (start_of_text): Remove. Move simplified versions of
7829 it in the only users: unexaix.c and unexec.c.
7830 (read_input_waiting): Remove local declaration of quit_char.
7831 (start, etext): Remove declarations.
7832 (start_of_data): Merge with the version in mem-limits.h and move
7833 to vm-limits.c.
7834 * vm-limit.c (start_of_data): Merged and simplified version of the
7835 code formerly in mem-limits.h and sysdep.c.
7836 * unexec.c (start): New declaration, moved from sysdep.c.
7837 (start_of_text): Simplified version of the code formerly in sysdep.c.
7838 * unexaix.c (start_of_text): Simplified version of the code
7839 formerly in sysdep.c.
7840 * m/alpha.h (HAVE_TEXT_START): Remove.
7841 (TEXT_START): Move ...
7842 * unexalpha.c (TEXT_START): ... here.
7843 * s/hpux10-20.h (TEXT_START): Remove.
7844 * s/darwin.h (TEXT_START):
7845 * m/mips.h (TEXT_START):
7846 * m/macppc.h (HAVE_TEXT_START):
7847 * m/m68k.h (TEXT_START):
7848 * m/iris4d.h (TEXT_START):
7849 * m/intel386.h (TEXT_START):
7850 * m/ibmrs6000.h (TEXT_START):
7851 * m/ia64.h (HAVE_TEXT_START):
7852 * s/msdos.h (TEXT_START): Likewise.
7853
7854 2010-07-07 Andreas Schwab <schwab@linux-m68k.org>
7855
7856 * alloc.c (overrun_check_malloc, overrun_check_realloc)
7857 (overrun_check_free, xstrdup, allocate_string)
7858 (allocate_string_data, compact_small_strings, Fmake_string)
7859 (make_unibyte_string, make_multibyte_string)
7860 (make_string_from_bytes, make_specified_string, make_float)
7861 (Fcons, allocate_terminal, allocate_frame, make_pure_string)
7862 (Fgarbage_collect): Replace bcopy, safe_bcopy, bzero, bcmp by
7863 memcpy, memmove, memset, memcmp.
7864 * atimer.c (start_atimer, set_alarm): Likewise.
7865 * buffer.c (clone_per_buffer_values, report_overlay_modification)
7866 (mmap_realloc, init_buffer_once): Likewise.
7867 * callint.c (Fcall_interactively): Likewise.
7868 * callproc.c (Fcall_process, Fcall_process_region, child_setup)
7869 (getenv_internal_1): Likewise.
7870 * casefiddle.c (casify_object): Likewise.
7871 * ccl.c (ccl_driver): Likewise.
7872 * character.c (str_as_multibyte, str_to_multibyte): Likewise.
7873 * charset.c (load_charset_map_from_file)
7874 (load_charset_map_from_file, load_charset_map_from_vector)
7875 (Fdefine_charset_internal): Likewise.
7876 * cm.c (Wcm_clear): Likewise.
7877 * coding.c (decode_eol, decode_coding_object)
7878 (Fset_coding_system_priority, make_subsidiaries): Likewise.
7879 * data.c (Faset): Likewise.
7880 * dired.c (directory_files_internal, file_name_completion_stat):
7881 Likewise.
7882 * dispnew.c (new_glyph_matrix, adjust_glyph_matrix)
7883 (clear_glyph_row, copy_row_except_pointers)
7884 (copy_glyph_row_contents, new_glyph_pool, realloc_glyph_pool)
7885 (save_current_matrix, restore_current_matrix)
7886 (build_frame_matrix_from_leaf_window, mirrored_line_dance)
7887 (mirror_line_dance, scrolling_window): Likewise.
7888 * doc.c (Fsnarf_documentation, Fsubstitute_command_keys):
7889 Likewise.
7890 * doprnt.c (doprnt): Likewise.
7891 * editfns.c (Fuser_full_name, make_buffer_string_both)
7892 (Fmessage_box, Fformat, Ftranspose_regions): Likewise.
7893 * emacs.c (sort_args): Likewise.
7894 * eval.c (Fapply, Ffuncall): Likewise.
7895 * fileio.c (Ffile_name_directory, make_temp_name)
7896 (Fexpand_file_name, search_embedded_absfilename)
7897 (Fsubstitute_in_file_name, Ffile_symlink_p, Finsert_file_contents)
7898 (auto_save_error): Likewise.
7899 * fns.c (Fstring_equal, Fcopy_sequence, concat)
7900 (string_to_multibyte, Fstring_as_unibyte, Fstring_as_multibyte)
7901 (internal_equal, Fclear_string, larger_vector, copy_hash_table)
7902 (Fmake_hash_table): Likewise.
7903 * fringe.c (Fdefine_fringe_bitmap): Likewise.
7904 * ftfont.c (ftfont_text_extents): Likewise.
7905 * getloadavg.c (getloadavg): Likewise.
7906 * image.c (define_image_type, make_image, make_image_cache)
7907 (x_create_x_image_and_pixmap, xbm_image_p)
7908 (w32_create_pixmap_from_bitmap_data, xbm_load, xpm_lookup_color)
7909 (xpm_image_p, x_create_bitmap_from_xpm_data, xpm_load)
7910 (init_color_table, x_build_heuristic_mask, pbm_image_p, pbm_load)
7911 (png_image_p, png_read_from_memory, png_load, jpeg_image_p)
7912 (tiff_image_p, tiff_read_from_memory, gif_image_p)
7913 (gif_read_from_memory, gif_load, svg_image_p, gs_image_p):
7914 Likewise.
7915 * indent.c (scan_for_column, compute_motion): Likewise.
7916 * insdel.c (gap_left, gap_right, make_gap_smaller, copy_text)
7917 (insert_1_both, insert_from_gap, replace_range_2): Likewise.
7918 * intervals.c (reproduce_tree, reproduce_tree_obj): Likewise.
7919 * keyboard.c (echo_char, save_getcjmp, restore_getcjmp)
7920 (kbd_buffer_store_event_hold, apply_modifiers_uncached)
7921 (store_user_signal_events, menu_bar_items, tool_bar_items)
7922 (process_tool_bar_item, append_tool_bar_item)
7923 (read_char_minibuf_menu_prompt, read_key_sequence)
7924 (Fread_key_sequence, Fread_key_sequence_vector, Frecent_keys):
7925 Likewise.
7926 * keymap.c (current_minor_maps, Fdescribe_buffer_bindings):
7927 Likewise.
7928 * lisp.h (STRING_COPYIN): Likewise.
7929 * lread.c (Fload, read1, oblookup): Likewise.
7930 * msdos.c (Frecent_doskeys): Likewise.
7931 * nsfns.m (Fx_create_frame): Likewise.
7932 * nsfont.m (nsfont_open, nsfont_text_extents, ns_glyph_metrics):
7933 Likewise.
7934 * nsimage.m (EmacsImage-initFromSkipXBM:width:height:)
7935 (EmacsImage-initForXPMWithDepth:width:height:flip:length:):
7936 Likewise.
7937 * nsmenu.m (ns_update_menubar): Likewise.
7938 * nsterm.m (ns_draw_fringe_bitmap, ns_term_init): Likewise.
7939 * print.c (print_unwind, printchar, strout, print_string)
7940 (print_error_message): Likewise.
7941 * process.c (conv_lisp_to_sockaddr, set_socket_option)
7942 (Fmake_network_process, Fnetwork_interface_list)
7943 (Fnetwork_interface_info, read_process_output, Fprocess_send_eof)
7944 (init_process): Likewise.
7945 * ralloc.c (resize_bloc, r_alloc_sbrk, r_alloc_init): Likewise.
7946 * regex.c (init_syntax_once, regex_compile, re_compile_fastmap):
7947 Likewise.
7948 * scroll.c (do_scrolling, do_direct_scrolling)
7949 (scrolling_max_lines_saved): Likewise.
7950 * search.c (search_buffer, wordify, Freplace_match): Likewise.
7951 * sound.c (wav_init, au_init, Fplay_sound_internal): Likewise.
7952 * syntax.c (skip_chars, skip_syntaxes): Likewise.
7953 * sysdep.c (child_setup_tty, sys_subshell, emacs_get_tty)
7954 (emacs_set_tty): Likewise.
7955 * term.c (encode_terminal_code, calculate_costs)
7956 (produce_special_glyphs, create_tty_output, init_tty, delete_tty):
7957 Likewise.
7958 * termcap.c (tgetst1, gobble_line): Likewise.
7959 * termhooks.h (EVENT_INIT): Likewise.
7960 * tparam.c (tparam1): Likewise.
7961 * unexalpha.c (unexec): Likewise.
7962 * unexec.c (write_segment): Likewise.
7963 * unexmacosx.c (unexec_write_zero): Likewise.
7964 * w32fns.c (w32_wnd_proc, Fx_create_frame, x_create_tip_frame)
7965 (Fx_file_dialog, Fsystem_move_file_to_trash): Likewise.
7966 * w32font.c (w32font_list_family, w32font_text_extents)
7967 (w32font_list_internal, w32font_match_internal)
7968 (w32font_open_internal, compute_metrics, Fx_select_font):
7969 Likewise.
7970 * w32menu.c (set_frame_menubar, add_menu_item)
7971 (w32_menu_display_help, w32_free_submenu_strings): Likewise.
7972 * w32term.c (XCreateGC, w32_initialize_display_info): Likewise.
7973 * w32uniscribe.c (uniscribe_list_family): Likewise.
7974 * w32xfns.c (get_next_msg, post_msg, prepend_msg): Likewise.
7975 * window.c (make_window, replace_window, set_window_buffer)
7976 (Fsplit_window): Likewise.
7977 * xdisp.c (init_iterator, RECORD_OVERLAY_STRING, reseat_to_string)
7978 (add_to_log, message3, x_consider_frame_title)
7979 (append_space_for_newline, extend_face_to_end_of_line)
7980 (decode_mode_spec_coding, init_glyph_string): Likewise.
7981 * xfaces.c (x_create_gc, get_lface_attributes_no_remap)
7982 (Finternal_copy_lisp_face, Finternal_merge_in_global_face)
7983 (face_attr_equal_p, make_realized_face, make_face_cache)
7984 (free_realized_faces, lookup_named_face, smaller_face)
7985 (face_with_height, lookup_derived_face)
7986 (x_supports_face_attributes_p, Finternal_set_font_selection_order)
7987 (Finternal_set_font_selection_order, realize_default_face)
7988 (compute_char_face, face_at_buffer_position)
7989 (face_for_overlay_string, face_at_string_position, merge_faces):
7990 Likewise.
7991 * xfns.c (xic_create_fontsetname, Fx_create_frame)
7992 (Fx_window_property, x_create_tip_frame)
7993 (Fx_backspace_delete_keys_p): Likewise.
7994 * xfont.c (xfont_list, xfont_match, xfont_list_family)
7995 (xfont_text_extents): Likewise.
7996 * xmenu.c (set_frame_menubar, xmenu_show): Likewise.
7997 * xrdb.c (magic_file_p, x_get_resource): Likewise.
7998 * xselect.c (x_queue_event, x_get_window_property)
7999 (receive_incremental_selection): Likewise.
8000 * xsmfns.c (x_session_check_input): Likewise.
8001 * xterm.c (x_send_scroll_bar_event, SET_SAVED_MENU_EVENT)
8002 (handle_one_xevent, x_check_errors, xim_initialize, x_term_init):
8003 Likewise.
8004 * character.h (BCOPY_SHORT): Remove.
8005 * config.in: Regenerate.
8006 * dispnew.c (safe_bcopy): Only define as dummy if PROFILING.
8007 * emacs.c (main) [PROFILING]: Don't declare
8008 dump_opcode_frequencies.
8009 * lisp.h (safe_bcopy): Remove declaration.
8010 (memset) [!HAVE_MEMSET]: Declare.
8011 (memcpy) [!HAVE_MEMCPY]: Likewise.
8012 (memmove) [!HAVE_MEMMOVE]: Likewise.
8013 (memcmp) [!HAVE_MEMCMP]: Likewise.
8014 * s/ms-w32.h (bzero, bcopy, bcmp, GAP_USE_BCOPY)
8015 (BCOPY_UPWARD_SAFE, BCOPY_DOWNWARD_SAFE, HAVE_BCOPY, HAVE_BCMP):
8016 Don't define.
8017 (HAVE_MEMCMP, HAVE_MEMCPY, HAVE_MEMMOVE, HAVE_MEMSET): Define.
8018 * s/msdos.h (GAP_USE_BCOPY, BCOPY_UPWARD_SAFE)
8019 (BCOPY_DOWNWARD_SAFE): Don't define.
8020 * sysdep.c (memset) [!HAVE_MEMSET]: Define.
8021 (memcpy) [!HAVE_MEMCPY]: Define.
8022 (memmove) [!HAVE_MEMMOVE]: Define.
8023 (memcmp) [!HAVE_MEMCMP]: Define.
8024
8025 2010-07-07 Jan Djärv <jan.h.d@swipnet.se>
8026
8027 * process.c (kbd_is_on_hold): New variable.
8028 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
8029 New functions.
8030 (wait_reading_process_output): If kbd_on_hold_p returns non-zero,
8031 select on empty input mask.
8032 (init_process): Initialize kbd_is_on_hold to 0.
8033
8034 * process.h (hold_keyboard_input, unhold_keyboard_input)
8035 (kbd_on_hold_p): Declare.
8036
8037 * keyboard.c (input_available_signal): Declare.
8038 (kbd_buffer_nr_stored): New function.
8039 (kbd_buffer_store_event_hold): If kbd_buffer_nr_stored returns
8040 more than KBD_BUFFER_SIZE/2, stop reding input (Bug#6571).
8041 (kbd_buffer_get_event): If input is suspended and kbd_buffer_nr_stored
8042 returns less than KBD_BUFFER_SIZE/4, resume reding input (Bug#6571).
8043 (tty_read_avail_input): If input is on hold, return.
8044 Don't read more that free slots in kbd_buffer (Bug#6571).
8045
8046 2010-07-07 Eli Zaretskii <eliz@gnu.org>
8047
8048 * msdos.h:
8049 * msdos.c:
8050 * dosfns.c:
8051 * w16select.c: Convert function definitions to ANSI C.
8052
8053 * msdos.h (ctrl_break_func, install_ctrl_break_check):
8054 Remove unused prototypes.
8055
8056 2010-07-07 Juanma Barranquero <lekktu@gmail.com>
8057
8058 * coding.c, sysdep.c: Convert some more functions to standard C.
8059
8060 2010-07-07 Juanma Barranquero <lekktu@gmail.com>
8061
8062 * coding.c (decode_coding_gap, encode_coding_gap, decode_coding_object)
8063 (encode_coding_object): Use SPECPDL_INDEX.
8064 (syms_of_coding): Use DOS_NT.
8065
8066 2010-07-07 Dan Nicolaescu <dann@ics.uci.edu>
8067
8068 * intervals.h (interval): Use EMACS_UINT instead of unsigned EMACS_INT.
8069
8070 Make the function member of Lisp_Subr use standard C prototypes.
8071 * lisp.h (struct Lisp_Subr): Use a union for the function member.
8072 (DECL_ALIGN): Add a cast for the function.
8073 * eval.c (Feval, Ffuncall): Use the proper type for each type
8074 function call.
8075
8076 2010-07-06 Chong Yidong <cyd@stupidchicken.com>
8077
8078 * fringe.c (draw_fringe_bitmap_1): Use lookup_named_face to get
8079 fringe face id, so face-remapping-alist works (Bug#6091).
8080
8081 2010-07-06 Juanma Barranquero <lekktu@gmail.com>
8082
8083 * w32.c, w32console.c, w32fns.c, w32font.c, w32heap.c, w32inevt.c
8084 * w32menu.c, w32proc.c, w32reg.c, w32select.c, w32term.c
8085 * w32uniscribe.c, w32xfns.c: Convert function definitions to standard C.
8086
8087 2010-07-06 Andreas Schwab <schwab@linux-m68k.org>
8088
8089 * xterm.c (x_get_keysym_name): Change type of parameter to int.
8090 * lisp.h: Declare x_get_keysym_name.
8091 * keyboard.c (modify_event_symbol): Don't declare
8092 x_get_keysym_name here.
8093
8094 2010-07-06 Dan Nicolaescu <dann@ics.uci.edu>
8095
8096 * ecrt0.c: Revert conversion to standard C.
8097
8098 2010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
8099
8100 * vm-limit.c (memory_warnings):
8101 * keyboard.c (modify_event_symbol):
8102 * floatfns.c (rounding_driver, ceiling2, floor2, truncate2)
8103 (round2, emacs_rint):
8104 * process.c (send_process, old_sigpipe): Convert function
8105 definitions and declarations to standard C.
8106
8107 2010-07-05 Juanma Barranquero <lekktu@gmail.com>
8108
8109 * buffer.c, cm.c, eval.c, keyboard.c, process.c, term.c, vm-limit.c,
8110 * xdisp.c: Convert function definitions to standard C.
8111
8112 * cm.c (cmputc): Arg C is now int, not char.
8113 * process.c (Fmake_network_process): Cast sockaddr_in* to sockaddr*.
8114
8115 2010-07-05 James Cloos <cloos@jhcloos.com>
8116
8117 * xterm.h (Xatom_net_wm_name, Xatom_net_wm_icon_name): New.
8118
8119 * xterm.c (x_term_init): Intern the _NET_WM_NAME and
8120 _NET_WM_ICON_NAME atoms.
8121
8122 * xfns.c (x_set_name_internal): Set the EWMH _NET_WM_NAME
8123 and _NET_WM_ICON_NAME properties, too, matching what is
8124 done in the Gtk+ case.
8125
8126 2010-07-05 Jan Djärv <jan.h.d@swipnet.se>
8127
8128 * xterm.c (XTring_bell, XTset_terminal_window): Fix wrong prototype.
8129
8130 * xsmfns.c (SSDATA): New macro.
8131 (smc_save_yourself_CB, x_session_initialize): Use SSDATA for strings
8132 passed to strlen/strcpy/strcat.
8133 (create_client_leader_window): Surround with #ifndef USE_GTK.
8134 Cast 7:th arg to XChangeProperty to (unsigned char *).
8135
8136 * xsettings.c (something_changedCB, parse_settings)
8137 (apply_xft_settings): Reformat prototype.
8138 (something_changedCB, init_gconf): Remove unused variable i.
8139 (read_settings): Remove unused variable long_len.
8140
8141 * gtkutil.c (xg_get_pixbuf_from_pix_and_mask)
8142 (xg_get_image_for_pixmap, create_dialog)
8143 (xg_get_file_with_selection, xg_get_file_name, update_cl_data)
8144 (menuitem_highlight_callback, make_menu_item)
8145 (xg_create_one_menuitem, create_menus, xg_update_menu_item)
8146 (xg_create_scroll_bar, xg_update_scrollbar_pos)
8147 (xg_set_toolkit_scroll_bar_thumb, xg_tool_bar_button_cb)
8148 (xg_tool_bar_proxy_help_callback, xg_tool_bar_detach_callback)
8149 (xg_tool_bar_attach_callback, xg_tool_bar_help_callback)
8150 (xg_tool_bar_item_expose_callback): Reformat prototype.
8151 (xg_update_menubar): GList *group => GSList *group.
8152 (xg_modify_menubar_widgets): Initialize witem to 0, check witem != 0
8153 before use.
8154 (update_frame_tool_bar): 4:th param to xg_get_image_for_pixmap changed
8155 to GTK_IMAGE (wimage).
8156
8157 2010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
8158
8159 * atimer.c: Use "" instead of <> for local includes for
8160 consistency with the rest of the code.
8161
8162 * xsmfns.c (smc_save_yourself_CB, smc_error_handler):
8163 * xrdb.c (get_system_name):
8164 * window.c (shrink_windows):
8165 * syntax.c (forw_comment):
8166 * scroll.c (calculate_scrolling, calculate_direct_scrolling)
8167 (ins_del_costs):
8168 * mem-limits.h (start_of_data):
8169 * lread.c (readevalloop):
8170 * gtkutil.c (xg_dialog_response_cb, xg_get_file_with_chooser)
8171 (xg_get_file_with_selection, xg_update_menubar, xg_update_submenu):
8172 * frame.c (x_get_focus_frame):
8173 * floatfns.c (fmod_float):
8174 * fileio.c (choose_write_coding_system):
8175 * emacs.c (fatal_error_signal, init_cmdargs, argmatch)
8176 (malloc_initialize_hook, sort_args, synchronize_locale):
8177 * doprnt.c (doprnt):
8178 * dired.c (compile_pattern):
8179 * data.c (fmod_float):
8180 * chartab.c (map_sub_char_table, map_sub_char_table_for_charset)
8181 (map_char_table_for_charset):
8182 * charset.c (define_charset_internal):
8183 * alloc.c (Fgarbage_collect): Convert declarations or definitions
8184 to standard C.
8185
8186 2010-07-04 Tetsurou Okazaki <okazaki@be.to> (tiny change)
8187 Stefan Monnier <monnier@iro.umontreal.ca>
8188
8189 * lread.c (read1): Fix up last change to not mess up `c'.
8190
8191 2010-07-04 Juanma Barranquero <lekktu@gmail.com>
8192
8193 * strftime.c: Revert conversion to standard C (2010-07-04T07:50:25Z!dann@ics.uci.edu).
8194
8195 2010-07-04 Juanma Barranquero <lekktu@gmail.com>
8196
8197 Fix prototypes.
8198
8199 * atimer.c (start_atimer): Use EMACS_TIME, not struct timeval.
8200 * dired.c (file_name_completion_stat): Use DIRENTRY, not struct dirent.
8201 * fileio.c (read_non_regular, read_non_regular_quit): Add Lisp_Object
8202 arg, as required by internal_condition_case_1.
8203 * print.c (strout): Use const char* for arg PTR.
8204 * regex.c (bcmp_translate): Use RE_TRANSLATE_TYPE, not Lisp_Object.
8205 (analyse_first): Fix "const const".
8206 * sysdep.c (set_file_times): Use EMACS_TIME, not struct timeval.
8207 * unexelf.c (round_up, find_section): Use ElfW macro for arguments.
8208 * xgselect.c (xg_select): Use SELECT_TYPE, EMACS_TIME.
8209
8210 2010-07-04 Dan Nicolaescu <dann@ics.uci.edu>
8211
8212 * alloc.c: Convert function definitions to standard C.
8213 * atimer.c:
8214 * bidi.c:
8215 * bytecode.c:
8216 * callint.c:
8217 * callproc.c:
8218 * casefiddle.c:
8219 * casetab.c:
8220 * category.c:
8221 * ccl.c:
8222 * character.c:
8223 * charset.c:
8224 * chartab.c:
8225 * cmds.c:
8226 * coding.c:
8227 * composite.c:
8228 * data.c:
8229 * dbusbind.c:
8230 * dired.c:
8231 * dispnew.c:
8232 * doc.c:
8233 * doprnt.c:
8234 * ecrt0.c:
8235 * editfns.c:
8236 * fileio.c:
8237 * filelock.c:
8238 * filemode.c:
8239 * fns.c:
8240 * font.c:
8241 * fontset.c:
8242 * frame.c:
8243 * fringe.c:
8244 * ftfont.c:
8245 * ftxfont.c:
8246 * gtkutil.c:
8247 * indent.c:
8248 * insdel.c:
8249 * intervals.c:
8250 * keymap.c:
8251 * lread.c:
8252 * macros.c:
8253 * marker.c:
8254 * md5.c:
8255 * menu.c:
8256 * minibuf.c:
8257 * prefix-args.c:
8258 * print.c:
8259 * ralloc.c:
8260 * regex.c:
8261 * region-cache.c:
8262 * scroll.c:
8263 * search.c:
8264 * sound.c:
8265 * strftime.c:
8266 * syntax.c:
8267 * sysdep.c:
8268 * termcap.c:
8269 * terminal.c:
8270 * terminfo.c:
8271 * textprop.c:
8272 * tparam.c:
8273 * undo.c:
8274 * unexelf.c:
8275 * window.c:
8276 * xfaces.c:
8277 * xfns.c:
8278 * xfont.c:
8279 * xftfont.c:
8280 * xgselect.c:
8281 * xmenu.c:
8282 * xrdb.c:
8283 * xselect.c:
8284 * xsettings.c:
8285 * xsmfns.c:
8286 * xterm.c: Likewise.
8287
8288 2010-07-03 Eli Zaretskii <eliz@gnu.org>
8289
8290 * msdos.c (IT_set_frame_parameters): Fix setting of colors in
8291 frames other than the initial one. Fix reversal of colors when
8292 `reverse' is specified in the frame parameters.
8293 Call update_face_from_frame_parameter instead of
8294 internal-set-lisp-face-attribute. Initialize screen colors from
8295 initial_screen_colors[] when f->default_face_done_p is zero,
8296 instead of depending on being called with default-frame-alist as
8297 the alist argument.
8298
8299 * xfaces.c (update_face_from_frame_parameter): Move out of
8300 HAVE_WINDOW_SYSTEM portion. Condition window-system only parts
8301 with HAVE_WINDOW_SYSTEM.
8302
8303 * msdos.c (IT_set_frame_parameters): Set menu-bar-lines according
8304 to menu-bar-mode, if not set in the frame parameters or in
8305 default-frame-alist.
8306
8307 * w32console.c (sys_tputs): Adjust argument list to prototype in
8308 term.c.
8309
8310 2010-07-03 Juanma Barranquero <lekktu@gmail.com>
8311
8312 * lisp.h (memory_warnings): Fix prototype.
8313
8314 * cm.h (evalcost): Fix prototype.
8315
8316 * cm.c (evalcost): Fix arg type.
8317
8318 2010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
8319
8320 * term.c (term_clear_mouse_face, Fidentity):
8321 * syssignal.h (signal_handler_t):
8322 * lisp.h (memory_warnings):
8323 * coding.h (preferred_coding_system):
8324 * cm.h (evalcost):
8325 * blockinput.h (reinvoke_input_signal): Convert to standard C prototypes.
8326
8327 2010-07-02 Eli Zaretskii <eliz@gnu.org>
8328
8329 * dosfns.h (msdos_stdcolor_idx, msdos_stdcolor_name): Remove P_
8330 from prototypes.
8331
8332 * msdos.h (load_pixmap): Don't define away.
8333
8334 2010-07-02 Jan Djärv <jan.h.d@swipnet.se>
8335
8336 * lisp.h:
8337 * atimer.h: Remove define for P_.
8338
8339 * alloc.c: Remove __P and P_ from .c and .m files.
8340 * atimer.c:
8341 * buffer.c:
8342 * callint.c:
8343 * category.c:
8344 * charset.c:
8345 * chartab.c:
8346 * cm.c:
8347 * coding.c:
8348 * composite.c:
8349 * data.c:
8350 * dired.c:
8351 * dispnew.c:
8352 * doc.c:
8353 * editfns.c:
8354 * emacs.c:
8355 * eval.c:
8356 * fileio.c:
8357 * filelock.c:
8358 * fns.c:
8359 * font.c:
8360 * fontset.c:
8361 * frame.c:
8362 * ftfont.c:
8363 * ftxfont.c:
8364 * gmalloc.c:
8365 * gtkutil.c:
8366 * image.c:
8367 * indent.c:
8368 * intervals.c:
8369 * keyboard.c:
8370 * keymap.c:
8371 * lread.c:
8372 * marker.c:
8373 * menu.c:
8374 * minibuf.c:
8375 * print.c:
8376 * process.c:
8377 * scroll.c:
8378 * search.c:
8379 * sound.c:
8380 * strftime.c:
8381 * syntax.c:
8382 * sysdep.c:
8383 * term.c:
8384 * terminal.c:
8385 * textprop.c:
8386 * unexalpha.c:
8387 * w32console.c:
8388 * w32fns.c:
8389 * w32font.c:
8390 * w32menu.c:
8391 * w32term.c:
8392 * w32uniscribe.c:
8393 * window.c:
8394 * xdisp.c:
8395 * xfaces.c:
8396 * xfns.c:
8397 * xfont.c:
8398 * xftfont.c:
8399 * xmenu.c:
8400 * xselect.c:
8401 * xterm.c: Likewise.
8402
8403 Remove P_ and __P macros.
8404 * atimer.h: Remove P_ and __P macros.
8405 * buffer.h:
8406 * category.h:
8407 * ccl.h:
8408 * character.h:
8409 * charset.h:
8410 * cm.h:
8411 * coding.h:
8412 * composite.h:
8413 * dispextern.h:
8414 * disptab.h:
8415 * dosfns.h:
8416 * font.h:
8417 * fontset.h:
8418 * frame.h:
8419 * gtkutil.h:
8420 * indent.h:
8421 * intervals.h:
8422 * keyboard.h:
8423 * keymap.h:
8424 * lisp.h:
8425 * macros.h:
8426 * md5.h:
8427 * menu.h:
8428 * msdos.h:
8429 * nsterm.h:
8430 * puresize.h:
8431 * region-cache.h:
8432 * syntax.h:
8433 * syssignal.h:
8434 * systime.h:
8435 * termhooks.h:
8436 * w32font.h:
8437 * w32term.h:
8438 * widget.h:
8439 * window.h:
8440 * xgselect.h:
8441 * xsettings.h:
8442 * xterm.h: Likewise.
8443
8444 2010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
8445
8446 * lisp.h: Document that USE_LISP_UNION_TYPE is now enabled using autoconf.
8447
8448 Cleanup old code.
8449 * dired.c (BSD4_3): Remove all uses, redundant with BSD4_2.
8450 * syssignal.h: Remove code for Lynx, not supported anymore.
8451 * vm-limit.c: Remove unused code the depends on emacs not being
8452 defined and NO_LIM_DATA being defined.
8453 * mem-limits.h: Remove dead code.
8454
8455 2010-07-01 Jan Djärv <jan.h.d@swipnet.se>
8456
8457 * window.c (Fwindow_absolute_pixel_edges): Doc fix.
8458
8459 * window.c (calc_absolute_offset, Fwindow_absolute_pixel_edges)
8460 (Fwindow_inside_absolute_pixel_edges): New functions (bug#5721).
8461
8462 * nsfns.m (compute_tip_xy): Do not convert coordinates from frame
8463 parameters, they are already absolute.
8464
8465 * nsterm.m (x_set_window_size, initFrameFromEmacs):
8466 Rename FRAME_NS_TOOLBAR_HEIGHT to FRAME_TOOLBAR_HEIGHT.
8467
8468 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
8469
8470 * nsmenu.m (update_frame_tool_bar, free_frame_tool_bar):
8471 Update FRAME_TOOLBAR_HEIGHT.
8472
8473 * nsmenu.m (free_frame_tool_bar, update_frame_tool_bar):
8474 Add BLOCK/UNBLOCK_INPUT so asserts don't trigger.
8475
8476 2010-06-30 Chong Yidong <cyd@stupidchicken.com>
8477
8478 * frame.c (get_future_frame_param, Fmake_terminal_frame):
8479 Don't check default-frame-alist.
8480
8481 2010-06-30 Andreas Schwab <schwab@linux-m68k.org>
8482
8483 * process.c (create_process): Avoid using invalid file descriptors.
8484
8485 * callproc.c (child_setup): Avoid closing a file descriptor twice.
8486
8487 2010-06-30 Jan Djärv <jan.h.d@swipnet.se>
8488
8489 * xsettings.c (Ffont_get_system_normal_font, Ffont_get_system_font):
8490 Improve documentation. Return font regardless of use_system_font.
8491 (syms_of_xsettings): Improve documentation for font-use-system-font.
8492
8493 2010-07-10 Chong Yidong <cyd@stupidchicken.com>
8494
8495 * xfaces.c (realize_face): Garbage the frame if a face is removed
8496 (Bug#6593).
8497
8498 2010-07-05 Andreas Schwab <schwab@linux-m68k.org>
8499
8500 * keyboard.c: Remove duplicate <setjmp.h>.
8501 (read_key_sequence): Remove volatile qualifiers.
8502
8503 2010-07-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8504
8505 * dispextern.h (FRINGE_HEIGHT_BITS): New define.
8506 (struct glyph_row): New members left_fringe_offset and
8507 right_fringe_offset.
8508
8509 * xterm.c (x_draw_fringe_bitmap): Don't clip bottom aligned bitmap
8510 specially.
8511 * w32term.c (w32_draw_fringe_bitmap): Likewise.
8512 * nsterm.m (ns_draw_fringe_bitmap): Likewise.
8513
8514 * fringe.c (draw_fringe_bitmap_1): Don't clip bitmap here.
8515 Take account of bitmap offset.
8516 (draw_window_fringes): Take account of window vscroll.
8517 (update_window_fringes): Likewise. Extend top-aligned top indicator
8518 or bottom-aligned bottom indicator to adjacent rows if it doesn't fit
8519 in one row. Don't set redraw_fringe_bitmaps_p outside row comparison.
8520 Set left_fringe_offset and right_fringe_offset (Bug#5634, Bug#6325).
8521
8522 2010-07-04 Juanma Barranquero <lekktu@gmail.com>
8523
8524 * w32fns.c (Qtooltip): Declare.
8525 Suggested by Andy Moreton <andrewjmoreton@gmail.com>.
8526
8527 2010-07-03 Jan Djärv <jan.h.d@swipnet.se>
8528
8529 * xmenu.c (x_activate_menubar): Send Press/Release for Gtk+ to avoid
8530 grab on just Press (Bug#6499).
8531
8532 2010-07-02 Chong Yidong <cyd@stupidchicken.com>
8533
8534 * frame.c (Qtooltip): New var.
8535 (delete_frame): Use it. Fix faulty if statement. Don't update
8536 mode line for tooltip frames. Suggested by Martin Rudalics.
8537
8538 * xfns.c (x_create_tip_frame):
8539 * w32fns.c (x_create_tip_frame): Use it.
8540
8541 2010-06-17 Naohiro Aota <naota@elisp.net> (tiny change)
8542
8543 * xftfont.c (xftfont_open): Check font width one by one also when
8544 spacing is dual.
8545
8546 * ftfont.c (ftfont_open): Ditto.
8547
8548 2010-06-30 Glenn Morris <rgm@gnu.org>
8549
8550 * s/sol2-6.h (INHIBIT_X11R6_XIM): Remove, handled by configure now.
8551
8552 * Makefile.in (CANNOT_DUMP): Update for configure name change.
8553
8554 * s/freebsd.h (USE_MMAP_FOR_BUFFERS):
8555 * s/irix6-5.h (USE_MMAP_FOR_BUFFERS):
8556 * s/darwin.h (SYSTEM_MALLOC):
8557 * s/sol2-10.h (SYSTEM_MALLOC): Move to configure.
8558
8559 2010-06-29 Jan Djärv <jan.h.d@swipnet.se>
8560
8561 * nsfns.m: extern declare Vmenu_bar_mode, Vtool_bar_mode.
8562 (ns_get_screen): Don't assign integer to f.
8563 (Fx_display_color_cells): Declarations before statements.
8564
8565 2010-06-28 Jan Djärv <jan.h.d@swipnet.se>
8566
8567 * xfns.c (x_default_font_parameter): Remove got_from_system
8568 (Bug#6526).
8569
8570 * xterm.h (gtk_widget_get_window, gtk_widget_get_mapped)
8571 (gtk_adjustment_get_page_size, gtk_adjustment_get_upper):
8572 New defines based on what configure finds.
8573
8574 * xterm.c (XTflash): Use gtk_widget_get_window.
8575 (xg_scroll_callback): Use gtk_adjustment_get_upper and
8576 gtk_adjustment_get_page_size.
8577 (handle_one_xevent): Use gtk_widget_get_mapped.
8578 (x_term_init): Remove HAVE_GTK_MULTIDISPLAY and associated error
8579 messages.
8580
8581 * xmenu.c (create_and_show_popup_menu): Call gtk_widget_get_mapped.
8582
8583 * gtkutil.h: Replace HAVE_GTK_FILE_BOTH with
8584 HAVE_GTK_FILE_SELECTION_NEW.
8585
8586 * gtkutil.c (xg_display_open, xg_display_close):
8587 Remove HAVE_GTK_MULTIDISPLAY, it is always defined.
8588 (xg_display_open): Return type is void.
8589 (gtk_widget_set_has_window)
8590 (gtk_dialog_get_action_area, gtk_dialog_get_content_area)
8591 (gtk_widget_get_sensitive, gtk_adjustment_set_page_size)
8592 (gtk_adjustment_set_page_increment)
8593 (gtk_adjustment_get_step_increment): #define these if not found
8594 by configure.
8595 (remove_submenu): New define based on Gtk+ version.
8596 (xg_set_cursor, xg_frame_resized, xg_event_is_for_scrollbar):
8597 Use gtk_widget_get_window.
8598 (xg_frame_resized, xg_update_frame_menubar): Use gtk_widget_get_mapped.
8599 (xg_create_frame_widgets): Use gtk_widget_set_has_window.
8600 (create_dialog): Use gtk_dialog_get_action_area and
8601 gtk_dialog_get_content_area.
8602 (xg_uses_old_file_dialog, xg_get_file_name): Remove HAVE_GTK_FILE_BOTH
8603 and HAVE_GTK_FILE_CHOOSER_DIALOG_NEW. File chooser is always
8604 available, so checking for HAVE_GTK_FILE_SELECTION_NEW is enough.
8605 (xg_update_menubar, xg_update_submenu, xg_show_toolbar_item):
8606 Use g_object_ref and g_object_unref.
8607 (xg_update_menu_item, xg_tool_bar_menu_proxy):
8608 Use gtk_widget_get_sensitive.
8609 (xg_update_submenu): Use remove_submenu.
8610 (xg_update_scrollbar_pos): Don't use GtkFixedChild, use child
8611 properties instead to get old x and y position.
8612 (xg_set_toolkit_scroll_bar_thumb): Use gtk_adjustment_get_page_size,
8613 gtk_adjustment_get_step_increment, gtk_adjustment_set_page_size,
8614 gtk_adjustment_set_step_increment and gtk_adjustment_set_page_increment.
8615 (xg_get_tool_bar_widgets): New function.
8616 (xg_tool_bar_menu_proxy, xg_show_toolbar_item)
8617 (update_frame_tool_bar): Call xg_get_tool_bar_widgets.
8618 (toolbar_set_orientation): New #define based on if configure
8619 finds gtk_orientable_set_orientation.
8620 (xg_create_tool_bar): Call toolbar_set_orientation.
8621 (xg_make_tool_item, xg_show_toolbar_item): Call gtk_box_pack_start
8622 instead of gtk_box_pack_start_defaults.
8623
8624 2010-06-28 Chong Yidong <cyd@stupidchicken.com>
8625
8626 * cmds.c (Fdelete_backward_char): Move into Lisp.
8627
8628 2010-06-27 Dan Nicolaescu <dann@ics.uci.edu>
8629
8630 * s/freebsd.h (BSD4_2): Remove redundant definition.
8631 bsd-common.h defines it already.
8632
8633 2010-06-27 Chong Yidong <cyd@stupidchicken.com>
8634
8635 * xfns.c (Fx_create_frame): Don't consult X resouces when setting
8636 menu-bar-lines and tool-bar-lines. Use menu-bar-mode and
8637 tool-bar-mode, which are now set using these X resources at
8638 startup, to determine the defaults (Bug#2249).
8639
8640 * w32fns.c (Fx_create_frame):
8641 * nsfns.m (Fx_create_frame): Likewise.
8642
8643 * frame.c (Vmenu_bar_mode, Vtool_bar_mode): New vars.
8644
8645 2010-06-24 Juanma Barranquero <lekktu@gmail.com>
8646
8647 * gtkutil.c (xg_update_scrollbar_pos):
8648 Avoid C99 mid-block variable declaration.
8649
8650 2010-06-22 Jan Djärv <jan.h.d@swipnet.se>
8651
8652 * xterm.c (x_scroll_bar_create): Remove call to xg_show_scroll_bar.
8653
8654 * gtkutil.h (xg_show_scroll_bar): Remove.
8655
8656 * gtkutil.c (xg_update_scrollbar_pos): Show/hide scroll bar as needed
8657 if height is less than scroll bar min size.
8658 (xg_show_scroll_bar): Remove, show moved to xg_update_scrollbar_pos.
8659
8660 * xfns.c (x_default_font_parameter): Try to open font from system
8661 before using it (bug#6478). Rename got_from_gconf to got_from_system.
8662
8663 2010-06-22 Keith Packard <keithp@keithp.com> (tiny change)
8664
8665 * font.c (font_parse_fcname): Allow . for sizes like 7.5 (bug#6437).
8666
8667 2010-06-20 Eli Zaretskii <eliz@gnu.org>
8668
8669 * xdisp.c (try_scrolling): When scroll-conservatively is set to
8670 most-positive-fixnum, be extra accurate when scrolling window
8671 start, to avoid missing the cursor line.
8672
8673 2010-06-19 Eli Zaretskii <eliz@gnu.org>
8674
8675 * xdisp.c (try_scrolling): Compute the limit for searching point
8676 in forward scroll from scroll_max, instead of an arbitrary limit
8677 of 10 screen lines.
8678 See http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00766.html
8679 and
8680 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00773.html
8681 for details.
8682
8683 2010-06-16 Glenn Morris <rgm@gnu.org>
8684
8685 * editfns.c (Fbyte_to_string): Pacify compiler.
8686
8687 2010-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
8688
8689 * lread.c (read1): Phase out old-style backquotes a bit more.
8690
8691 2010-06-12 Eli Zaretskii <eliz@gnu.org>
8692
8693 * makefile.w32-in ($(BLD)/bidi.$(O)): Depend on biditype.h and
8694 bidimirror.h.
8695
8696 * deps.mk (bidi.o): Depend on biditype.h and bidimirror.h.
8697
8698 * bidi.c (bidi_initialize): Remove explicit initialization of
8699 bidi_type_table; include biditype.h instead. Don't support
8700 entries whose second codepoint is zero. Initialize bidi_mirror_table.
8701 (bidi_mirror_char): Use bidi_mirror_table.
8702
8703 * biditype.h: New file.
8704
8705 * bidimirror.h: New file.
8706
8707 * window.c (syms_of_window): Doc fix (bug#6409).
8708
8709 2010-06-12 Romain Francoise <romain@orebokech.com>
8710
8711 * Makefile.in (lisp, shortlisp): Use new location of vc-hooks and
8712 ediff-hook.
8713
8714 2010-06-10 Glenn Morris <rgm@gnu.org>
8715
8716 * editfns.c (Fbyte_to_string): Pacify compiler.
8717
8718 * m/ibms390x.h: Rather than duplicating ibms390.h, just include it.
8719
8720 2010-06-26 Andreas Schwab <schwab@linux-m68k.org>
8721
8722 * alloc.c (Fmake_byte_code): Don't access undefined argument
8723 (Bug#6517).
8724
8725 2010-06-25 Chong Yidong <cyd@stupidchicken.com>
8726
8727 * xdisp.c (next_element_from_image): Ensure that after-strings are
8728 read the next time we hit handle_stop (Bug#1336).
8729
8730 2010-06-23 Andreas Schwab <schwab@linux-m68k.org>
8731
8732 * lread.c (read1): Signal error if #s is not followed by paren.
8733
8734 2010-06-19 Chong Yidong <cyd@stupidchicken.com>
8735
8736 * image.c (free_image): Mark frame as garbaged (Bug#6426).
8737
8738 * keymap.c (Fdefine_key): Doc fix (Bug#6460).
8739
8740 2010-06-15 Glenn Morris <rgm@gnu.org>
8741
8742 * editfns.c (Fbyte_to_string): Pacify compiler.
8743
8744 2010-06-09 Stefan Monnier <monnier@iro.umontreal.ca>
8745
8746 * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
8747 Check `object's type before accessing its guts.
8748
8749 2010-06-09 Dan Nicolaescu <dann@ics.uci.edu>
8750
8751 * s/usg5-4.h: Fix previous change.
8752 Suggested by Lawrence Mitchell <wence@gmx.li>
8753
8754 2010-06-08 Andreas Schwab <schwab@linux-m68k.org>
8755
8756 * minibuf.c (Fall_completions): Add more checks.
8757
8758 2010-06-08 Juanma Barranquero <lekktu@gmail.com>
8759
8760 * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
8761
8762 2010-06-08 Dan Nicolaescu <dann@ics.uci.edu>
8763
8764 * lread.c (X_OK): Remove, unused.
8765
8766 * dispnew.c: Remove obsolete comment.
8767
8768 Remove INCLUDED_FCNTL.
8769 * xterm.c (INCLUDED_FCNTL):
8770 * callproc.c (INCLUDED_FCNTL):
8771 * alloc.c (INCLUDED_FCNTL):
8772 * systty.h (INCLUDED_FCNTL): Remove all uses, not needed anymore.
8773 (emacs_get_tty, emacs_set_tty): Declare unconditionally.
8774
8775 2010-06-07 Martin Rudalics <rudalics@gmx.at>
8776
8777 * window.c (Fselect_window): Move `record_buffer' up to the
8778 beginning of this function, so the buffer gets recorded
8779 even if the selected window does not change.
8780 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00137.html
8781
8782 2010-06-07 Juanma Barranquero <lekktu@gmail.com>
8783
8784 * cmds.c (Fforward_char, Fbackward_char): Fix typos in docstrings.
8785 (Fforward_line, Fbeginning_of_line): Reflow docstrings.
8786
8787 2010-06-06 Dan Nicolaescu <dann@ics.uci.edu>
8788
8789 Remove BSTRING related code, all platforms define it.
8790 * s/usg5-4.h (BSTRING): Remove definition.
8791 * s/template.h (BSTRING):
8792 * s/msdos.h (BSTRING):
8793 * s/ms-w32.h (BSTRING):
8794 * s/hpux10-20.h (BSTRING):
8795 * s/gnu-linux.h (BSTRING):
8796 * s/darwin.h (BSTRING):
8797 * s/cygwin.h (BSTRING):
8798 * s/bsd-common.h (BSTRING):
8799 * s/aix4-2.h (BSTRING): Likewise.
8800 * sysdep.c: Remove code depending on BSTRING not being defined.
8801
8802 2010-06-05 Juanma Barranquero <lekktu@gmail.com>
8803
8804 Remove obsolete macro BASE_LEADING_CODE_P.
8805 * character.h (BASE_LEADING_CODE_P): Remove.
8806 * regex.c [!emacs] (BASE_LEADING_CODE_P): Remove.
8807 * buffer.c (Fset_buffer_multibyte):
8808 * indent.c (scan_for_column, compute_motion):
8809 * insdel.c (count_combining_before, count_combining_after):
8810 Use LEADING_CODE_P instead of BASE_LEADING_CODE_P.
8811
8812 2010-06-04 Juanma Barranquero <lekktu@gmail.com>
8813
8814 Turn `directory-sep-char' into a noop.
8815
8816 * lisp.h [WINDOWSNT] (Vdirectory_sep_char): Don't declare.
8817 (DIRECTORY_SEP): Define unconditionally.
8818
8819 * s/ms-w32.h (DIRECTORY_SEP): Remove.
8820
8821 * emacs.c (decode_env_path): Don't check DIRECTORY_SEP,
8822 call dostounix_filename directly.
8823
8824 * fileio.c (CORRECT_DIR_SEPS): Remove.
8825 (Ffile_name_directory, directory_file_name, Fexpand_file_name)
8826 (Fsubstitute_in_file_name): Use dostounix_filename instead.
8827 (file_name_as_directory): Use dostounix_filename, DIRECTORY_SEP.
8828 (syms_of_fileio) <directory-sep-char>: Move to subr.el.
8829
8830 * w32proc.c (CORRECT_DIR_SEPS): Remove.
8831 (Fw32_short_file_name, Fw32_long_file_name): Use dostounix_filename.
8832
8833 2010-06-03 Andreas Schwab <schwab@linux-m68k.org>
8834
8835 * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4 address.
8836 (Bug#6346)
8837
8838 2010-06-03 Juanma Barranquero <lekktu@gmail.com>
8839
8840 * ccl.c (Fccl_program_p): Fix typo in docstring.
8841
8842 2010-06-03 Dan Nicolaescu <dann@ics.uci.edu>
8843
8844 Move UNEXEC definition to autoconf.
8845 * s/usg5-4.h (UNEXEC): Remove, move to configure.in.
8846 * s/sol2-10.h (UNEXEC):
8847 * s/irix6-5.h (UNEXEC):
8848 * s/hpux10-20.h (UNEXEC):
8849 * s/gnu-linux.h (UNEXEC):
8850 * s/darwin.h (UNEXEC):
8851 * s/cygwin.h (UNEXEC):
8852 * s/bsd-common.h (UNEXEC):
8853 * s/aix4-2.h (UNEXEC):
8854 * m/alpha.h (UNEXEC): Likewise.
8855 * Makefile.in (UNEXEC_OBJ): Define using @UNEXEC_OBJ@.
8856
8857 2010-06-03 Juanma Barranquero <lekktu@gmail.com>
8858
8859 Remove obsolete pre-unicode2 macros.
8860 * character.h (MULTIBYTE_FORM_LENGTH, PARSE_MULTIBYTE_SEQ): Remove.
8861 * composite.c (composition_reseat_it):
8862 * data.c (Faset):
8863 * fns.c (Ffillarray):
8864 * regex.c (re_search_2): Use BYTES_BY_CHAR_HEAD.
8865 [!emacs] (BYTES_BY_CHAR_HEAD): Define instead of MULTIBYTE_FORM_LENGTH.
8866
8867 2010-06-03 Juri Linkov <juri@jurta.org>
8868
8869 * buffer.c (Fother_buffer): Add CHECK_FRAME.
8870 (Fswitch_to_buffer): Remove unused variable `err'.
8871
8872 2010-06-03 Glenn Morris <rgm@gnu.org>
8873
8874 * m/template.h (NO_SOCK_SIGIO): Remove, no longer used.
8875
8876 * m/hp800.h (alloca) [__NetBSD__ && __GNUC__]: No need to define it,
8877 now that AH_BOTTOM does it.
8878
8879 * m/hp800.h (HAVE_ALLOCA):
8880 * m/ibms390x.h (HAVE_ALLOCA): Do not define, no longer needed.
8881
8882 * m/ia64.h, s/gnu-linux.h, s/gnu.h, s/netbsd.h, s/usg5-4.h:
8883 Remove NOT_C_CODE tests, it is always true now.
8884
8885 2010-06-02 Dan Nicolaescu <dann@ics.uci.edu>
8886
8887 Fix config.h includes.
8888 * xsettings.c:
8889 * xgselect.c:
8890 * nsterm.m:
8891 * nsselect.m:
8892 * nsimage.m:
8893 * nsfont.m:
8894 * nsfns.m:
8895 * dbusbind.c: Use #include <config.h> instead of "config.h" as all
8896 other files do.
8897
8898 * gmalloc.c: Remove BROKEN_PROTOTYPES reference, unused.
8899
8900 * s/sol2-6.h: Remove obsolete comments.
8901
8902 Remove unnecessary alloca.h includes.
8903 * keymap.c: Do not include alloca.h, config.h does that.
8904 * sysdep.c: Likewise. Do not define fwrite, not used.
8905
8906 2010-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
8907
8908 * sysdep.c (child_setup_tty): Move the non-canonical initialization to
8909 the HAVE_TERMIO where it belongs (bug#6149).
8910
8911 2010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
8912
8913 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
8914 of bug#6305).
8915
8916 2010-05-30 Eli Zaretskii <eliz@gnu.org>
8917
8918 * bidi.c (bidi_move_to_visually_next): Make sure the sentinel
8919 state is always cached (bug#6306).
8920
8921 2010-05-29 Eli Zaretskii <eliz@gnu.org>
8922
8923 Fix cursor motion in bidi-reordered continued lines.
8924 * xdisp.c (try_cursor_movement): Backup to non-continuation line
8925 only after finding point's row. Fix the logic. Rewrite the loop
8926 over continuation lines in bidi-reordered buffers.
8927 Return CURSOR_MOVEMENT_MUST_SCROLL upon failure to find a suitable row,
8928 rather than CURSOR_MOVEMENT_CANNOT_BE_USED.
8929
8930 2010-05-28 Michael Albinus <michael.albinus@gmx.de>
8931
8932 * fileio.c (Fdelete_file): Pass TRASH arg to handler call.
8933
8934 2010-05-28 Kenichi Handa <handa@m17n.org>
8935
8936 * font.c (font_delete_unmatched): Check Vface_ignored_fonts.
8937 Don't sheck SPEC if it is nil.
8938 (font_list_entities): Call font_delete_unmatched if
8939 Vface_ignored_fonts is non-nil. (Bug#6287)
8940
8941 2010-05-28 Glenn Morris <rgm@gnu.org>
8942
8943 * Makefile.in (LIBES): Remove $LOADLIBES, it is never set.
8944
8945 2010-05-27 Chong Yidong <cyd@stupidchicken.com>
8946
8947 * fileio.c (Fdelete_file): Change meaning of optional arg to mean
8948 whether to trash.
8949 (internal_delete_file, Frename_file): Callers changed.
8950 (delete_by_moving_to_trash): Doc fix.
8951 (Fdelete_directory_internal): Don't move to trash.
8952
8953 * callproc.c (delete_temp_file):
8954 * buffer.c (Fkill_buffer): Callers changed.
8955
8956 * lisp.h: Update prototype.
8957
8958 2010-05-27 Chong Yidong <cyd@stupidchicken.com>
8959
8960 * xdisp.c (redisplay_window): After redisplay, check if point is
8961 still valid before setting it (Bug#6177).
8962
8963 2010-05-27 Glenn Morris <rgm@gnu.org>
8964
8965 * Makefile.in, autodeps.mk, deps.mk, ns.mk:
8966 Convert comments to Makefile format.
8967
8968 * Makefile.in (bootstrap-clean): No more Makefile.c.
8969
8970 2010-05-26 Glenn Morris <rgm@gnu.org>
8971
8972 * Makefile.in (YMF_PASS_LDFLAGS): Remove.
8973 (temacs${EXEEXT}): Use PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS.
8974
8975 * Makefile.in (NS_IMPL_GNUSTEP_INC, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
8976 Remove.
8977 (TEMACS_LDFLAGS): Do not use NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
8978
8979 2010-05-26 Kenichi Handa <handa@m17n.org>
8980
8981 * composite.c (composition_compute_stop_pos): Fix condition for
8982 backward scanning.
8983
8984 2010-05-25 Glenn Morris <rgm@gnu.org>
8985
8986 * Makefile.in (@NS_IMPL_GNUSTEP_INC@, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
8987 Move before TEMACS_LDFLAGS.
8988 (TEMACS_LDFLAGS): Use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
8989 (temacs${EXEEXT}): Do not use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
8990
8991 * Makefile.in (NOT_C_CODE): No longer define.
8992 (config.h): No longer include.
8993
8994 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): Move definition after some
8995 variables it may reference.
8996
8997 * Makefile.in (LD_SWITCH_SYSTEM_EXTRA): Remove.
8998 (TEMACS_LDFLAGS): Remove LD_SWITCH_SYSTEM_EXTRA.
8999
9000 2010-05-25 Kenichi Handa <handa@m17n.org>
9001
9002 * dispextern.h (struct composition_it): New members rule_idx and
9003 charpos.
9004
9005 * xdisp.c (set_iterator_to_next): While scanning backward, assume
9006 that the character positions of IT point the last character of the
9007 current grapheme cluster.
9008 (next_element_from_composition): Don't change character positions
9009 of IT.
9010 (append_composite_glyph): Set glyph->charpos to
9011 it->cmp_it.charpos.
9012
9013 * composite.c (autocmp_chars): Change the first argument to RULE,
9014 and try composition with RULE only.
9015 (composition_compute_stop_pos): Record the index number of the
9016 composition rule in CMP_IT->rule_idx.
9017 (composition_reseat_it): Call autocmp_chars repeatedly until the
9018 correct rule of the composition is found.
9019 (composition_update_it): Set CMP_IT->charpos. Assume the CHARPOS
9020 is at the last character of the current grapheme cluster when
9021 CMP_IT->reversed_p is nonzero.
9022
9023 2010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
9024
9025 * editfns.c (Fbyte_to_string): New function.
9026
9027 2010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
9028
9029 * process.c (Fmake_network_process): Set :host to nil if it's not used.
9030 Suggested by Masatake YAMATO <yamato@redhat.com>.
9031
9032 2010-05-23 Eli Zaretskii <eliz@gnu.org>
9033
9034 * dispextern.h (init_iterator): Sync prototype with changed definition.
9035
9036 2010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
9037
9038 * s/netbsd.h: If terminfo is found, use it in preference to
9039 termcap. (Bug#6190) [Backport from trunk]
9040
9041 2010-05-19 Eli Zaretskii <eliz@gnu.org>
9042
9043 Redesign and reimplement bidi-aware edge positions of glyph rows.
9044
9045 * dispextern.h (struct glyph_row): New members minpos and maxpos.
9046 (MATRIX_ROW_START_CHARPOS, MATRIX_ROW_START_BYTEPOS)
9047 (MATRIX_ROW_END_CHARPOS, MATRIX_ROW_END_BYTEPOS): Reference minpos
9048 and maxpos members instead of start.pos and end.pos, respectively.
9049
9050 * xdisp.c (display_line): Compare IT_CHARPOS with the position in
9051 row->start.pos, rather than with MATRIX_ROW_START_CHARPOS.
9052 (cursor_row_p): Use row->end.pos rather than MATRIX_ROW_END_CHARPOS.
9053 (try_window_reusing_current_matrix, try_window_id):
9054 Use ROW->minpos rather than ROW->start.pos.
9055 (init_from_display_pos, init_iterator): Use EMACS_INT for
9056 character and byte positions.
9057 (find_row_edges): Rename from find_row_end. Accept additional
9058 arguments for minimum and maximum buffer positions seen by
9059 display_line for this row. Don't use iterator to find the
9060 position following the maximum one; instead, increment the
9061 position found by display_line directly. Fix logic; eol_pos
9062 should be tested before the rest. Handle the case of characters
9063 delivered from display vector (bug#6036). Fix tests related to
9064 it->method. Handle the truncated_on_right_p rows.
9065 (RECORD_MAX_MIN_POS): New macro.
9066 (display_line): Use it to record the minimum and maximum buffer
9067 positions for glyphs in the row being assembled. Record the
9068 position of the newline that terminates the line. If word wrap is
9069 in effect, restore minimum and maximum positions seen up to the
9070 wrap point, when iterator returns to it.
9071 (try_window_reusing_current_matrix): Give up if in bidi-reordered
9072 row and cursor not already at point. Restore original pre-bidi
9073 code for unidirectional buffers.
9074
9075 * dispnew.c (increment_row_positions, check_matrix_invariants):
9076 Increment and check row->start.pos and row->end.pos, in addition
9077 to MATRIX_ROW_START_CHARPOS and MATRIX_ROW_END_CHARPOS.
9078
9079 * .gdbinit (prowlims): Display row->minpos and row->maxpos.
9080 Display truncated_on_left_p and truncated_on_right_p flags.
9081 Formatting fixes.
9082 (pmtxrows): Display the ordinal number of each row. Don't display
9083 rows beyond the last one.
9084
9085 * bidi.c (bidi_cache_iterator_state): Don't zero out new_paragraph:
9086 it is not copied by bidi_copy_it.
9087
9088 2010-05-22 Eli Zaretskii <eliz@gnu.org>
9089
9090 * w32.c (sys_write): Break writes into chunks smaller than 32MB.
9091 (Bug#6237)
9092
9093 2010-05-22 Chong Yidong <cyd@stupidchicken.com>
9094
9095 * image.c (Fimage_flush): Rename from image-refresh.
9096
9097 2010-05-21 Chong Yidong <cyd@stupidchicken.com>
9098
9099 * xdisp.c (redisplay_internal): Clear caches even if redisplaying
9100 just one window.
9101
9102 * image.c (Vimage_cache_eviction_delay): Decrease to 300.
9103 (clear_image_cache): If the number of cached images is unusually
9104 large, decrease the cache eviction delay (Bug#6230).
9105
9106 2010-05-21 Glenn Morris <rgm@gnu.org>
9107
9108 * Makefile.in (${ns_appdir}, ${ns_appbindir}Emacs, ns-app):
9109 Move these rules to ns.mk.
9110 * ns.mk: New file.
9111
9112 * Makefile.in (../src/$(OLDXMENU), $(OLDXMENU)): Always define rules.
9113
9114 * Makefile.in (CANNOT_DUMP): New, set by configure.
9115 (emacs${EXEEXT}, bootstrap-emacs${EXEEXT}): Use $CANNOT_DUMP.
9116
9117 2010-05-20 Juri Linkov <juri@jurta.org>
9118
9119 * fileio.c (Fdelete_file): Change interative spec to use
9120 `read-file-name' like in `find-file-read-args' where the default
9121 value is `default-directory' instead of `buffer-file-name'.
9122 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00533.html
9123
9124 2010-05-20 Kevin Ryde <user42@zip.com.au>
9125
9126 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
9127 (Voverriding_terminal_local_map, Vsystem_key_alist)
9128 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
9129
9130 2010-05-20 Glenn Morris <rgm@gnu.org>
9131
9132 * Makefile.in (DEPDIR): New constant.
9133 (DEPFLAGS): Set with configure, not cpp.
9134 (MKDEPDIR): New, set by configure.
9135 (.c.o, .m.o, ecrt0.o): Use $MKDEPDIR.
9136 (clean): Use $DEPDIR.
9137 (deps_frag): Include from configure.
9138 Move static/dynamic dependency stuff to deps.mk/autodeps.mk.
9139 * deps.mk, autodeps.mk: New files, extracted from Makefile.in.
9140
9141 * bidi.c (bidi_cache_shrink, bidi_cache_iterator_state):
9142 Fix reallocation of the cache. (Bug#6210)
9143
9144 2010-05-19 Glenn Morris <rgm@gnu.org>
9145
9146 * s/msdos.h (ORDINARY_LINK): Move to sed2v2.inp.
9147
9148 * Makefile.in (LD, YMF_PASS_LDFLAGS): Set with configure, not cpp.
9149 (GNULIB_VAR): Remove.
9150 (LIBES): Use LIB_GCC instead of GNULIB_VAR.
9151
9152 * m/ibms390x.h (LINKER):
9153 * m/macppc.h (LINKER) [GNU_LINUX]:
9154 * s/aix4-2.h (ORDINARY_LINK):
9155 * s/cygwin.h (LINKER):
9156 * s/darwin.h (ORDINARY_LINK):
9157 * s/gnu.h (ORDINARY_LINK):
9158 * s/netbsd.h (LINKER):
9159 * s/usg5-4.h (ORDINARY_LINK):
9160 Move to configure.
9161
9162 * s/aix4-2.h (LINKER): Remove; this file sets ORDINARY_LINK.
9163
9164 2010-05-18 Chong Yidong <cyd@stupidchicken.com>
9165
9166 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
9167 prevent stack overflow if number of arguments is too large
9168 (Bug#6214).
9169
9170 2010-05-18 Juanma Barranquero <lekktu@gmail.com>
9171
9172 * charset.c (load_charset_map_from_file): Don't call close after fclose.
9173
9174 2010-05-18 Glenn Morris <rgm@gnu.org>
9175
9176 * s/gnu-linux.h: Combine two conditionals.
9177
9178 * Makefile.in (otherobj): Include $(VMLIMIT_OBJ) separately from
9179 $(POST_ALLOC_OBJ).
9180
9181 * Makefile.in (RALLOC_OBJ): New, set by configure.
9182 (rallocobj): Replace with the previous variable.
9183 (otherobj): Use $RALLOC_OBJ.
9184
9185 * s/gnu.h (REL_ALLOC) [DOUG_LEA_MALLOC]:
9186 * s/gnu-linux.h (REL_ALLOC) [DOUG_LEA_MALLOC]: Move undef to configure.
9187
9188 * Makefile.in (GMALLOC_OBJ, VMLIMIT_OBJ): New, set by configure.
9189 (gmallocobj, vmlimitobj): Replace with previous two variables.
9190 (otherobj): Use $GMALLOC_OBJ, $VMLIMIT_OBJ.
9191
9192 2010-05-17 Glenn Morris <rgm@gnu.org>
9193
9194 * Makefile.in (OLDXMENU_DEPS): New, set by configure.
9195 (stamp-oldxmenu): Use $OLDXMENU_DEPS.
9196
9197 2010-05-16 Glenn Morris <rgm@gnu.org>
9198
9199 * Makefile.in (${ns_appbindir}Emacs, ns-app): Always define these rules.
9200
9201 * Makefile.in (clean): Get rid of HAVE_NS conditional.
9202
9203 * Makefile.in (ns_appdir, ns_appbindir): Now configure adds the
9204 trailing "/".
9205
9206 * Makefile.in (TEMACS_LDFLAGS2): New, set by configure.
9207 (temacs${EXEEXT}): Combine the NS_IMPL_GNUSTEP case with the default.
9208
9209 * Makefile.in (GNUSTEP_SYSTEM_LIBRARIES): Remove, unused.
9210 (NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): New, set by configure.
9211 (LD) [NS_IMPL_GNUSTEP]: Set to $(CC) -rdynamic.
9212 (temacs${EXEEXT}): Remove $LOCALCPP, never defined or referenced.
9213 Make most of the NS_IMPL_GNUSTEP case the same as the default case.
9214
9215 * Makefile.in (temacs${EXEEXT}) [!NS_IMPL_GNUSTEP]:
9216 Remove ${STARTFLAGS}, nothing ever sets it.
9217
9218 2010-05-16 Dan Nicolaescu <dann@ics.uci.edu>
9219
9220 * m/ia64.h (UNEXEC): Remove, set in s/*.h.
9221
9222 2010-05-16 Glenn Morris <rgm@gnu.org>
9223
9224 * Makefile.in (LIBX_BASE): Always define.
9225
9226 * Makefile.in (LIBX_OTHER): Move out of cpp section.
9227
9228 * Makefile.in (LIBXT): Always define.
9229
9230 2010-05-15 Glenn Morris <rgm@gnu.org>
9231
9232 * Makefile.in (OLDXMENU, LIBXMENU, LIBX_OTHER): Always define.
9233
9234 * Makefile.in (FONT_DRIVERS): Remove, replace with $FONT_OBJ.
9235 (obj, SOME_MACHINE_OBJECTS): Use $FONT_OBJ.
9236
9237 2010-05-15 Ken Raeburn <raeburn@raeburn.org>
9238
9239 * lisp.h (XFLOAT_DATA): Use "0?x:x" to generate an rvalue. (Bug#5916)
9240 (LISP_MAKE_RVALUE) [!USE_LISP_UNION_TYPE && !__GNUC__]: Likewise.
9241
9242 * emacs.c (main): Initialize initial-environment and
9243 process-environment before generating from env, not after.
9244
9245 Handle --version reasonably in CANNOT_DUMP configuration.
9246 * emacs.c (emacs_version, emacs_copyright): New string variables.
9247 (Vemacs_version, Vemacs_copyright): New Lisp_Object variables.
9248 (syms_of_emacs): Defvar them, and initialize them from the C
9249 string variables.
9250 (main): If initialization hasn't been done, print initial version
9251 info from the C strings, instead of starting an interactive session.
9252
9253 2010-05-15 Eli Zaretskii <eliz@gnu.org>
9254
9255 * bidi.c (bidi_paragraph_init): Don't leave alone garbage values
9256 of bidi_it->paragraph_dir. Call bidi_initialize if needed.
9257 (bidi_paragraph_init): Remove redundant assertion that we are at
9258 the beginning of a line after call to bidi_find_paragraph_start.
9259
9260 * xdisp.c (Fcurrent_bidi_paragraph_direction): New function.
9261 (syms_of_xdisp): Defsubr it.
9262
9263 * cmds.c (Fforward_char, Fbackward_char): Doc fix.
9264
9265 * Makefile.in: Fix MSDOS-related comments.
9266
9267 2010-05-15 Glenn Morris <rgm@gnu.org>
9268
9269 * Makefile.in (OLDXMENU_TARGET): New, set by configure.
9270 (really-lwlib, really-oldXMenu): Always define.
9271 ($OLDXMENU): Depend on $OLDXMENU_TARGET.
9272
9273 * Makefile.in: Simplify cpp conditional.
9274
9275 * Makefile.in (${ns_appdir}): Simplify using umask.
9276
9277 * Makefile.in (${ns_appdir}): Remove references to CVS-related files.
9278
9279 2010-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
9280
9281 * eval.c (specbind): Remove left-over duplicate test.
9282 Disallow let-binding frame-local vars. Add comment.
9283
9284 2010-05-14 Eli Zaretskii <eliz@gnu.org>
9285
9286 Make the cache of bidi iterator states dynamically allocated.
9287 * bidi.c (bidi_cache_shrink): New function.
9288 (bidi_init_it): Call it.
9289 (bidi_cache_iterator_state): Enlarge the cache if needed.
9290
9291 * bidi.c (bidi_move_to_visually_next): Rename from
9292 bidi_get_next_char_visually. All callers changed.
9293
9294 2010-05-14 Kenichi Handa <handa@m17n.org>
9295
9296 * dispextern.h (struct composition_it): New member reversed_p.
9297
9298 * composite.c (composition_compute_stop_pos): Search backward if
9299 ENDPOS < CHARPOS.
9300 (composition_reseat_it): Handle the case that ENDPOS < CHARPOS.
9301 Set CMP_IT->reversed_p.
9302 (composition_update_it): Pay attention to CMP_IT->reversed_p.
9303
9304 * xdisp.c (set_iterator_to_next):
9305 Call composition_compute_stop_pos with negative ENDPOS if we are
9306 scanning backward. Call composition_compute_stop_pos if scan
9307 direction is changed.
9308 (next_element_from_buffer): Call composition_compute_stop_pos with
9309 negative ENDPOS if we are scanning backward.
9310 (next_element_from_composition): Pay attention to
9311 IT->cmp_it.reversed_p.
9312
9313 2010-05-14 Kenichi Handa <handa@m17n.org>
9314
9315 * font.c (font_range): Return the range for the font found at first.
9316
9317 2010-05-14 Glenn Morris <rgm@gnu.org>
9318
9319 * Makefile.in (ns_appdir, ns_appbindir, ns_appsrc): Always define.
9320
9321 * Makefile.in (mktime, X11, register): Move undefs to configure.
9322
9323 * Makefile.in (MSDOS_OBJ): Default to empty, let msdos scripts set it.
9324 (MSDOS_X_OBJ): New variable.
9325 (MSDOS_SUPPORT_REAL): New constant.
9326 (MSDOS_SUPPORT): Set as a variable, not with cpp.
9327 (obj): Use MSDOS_X_OBJ.
9328 (lisp): Use MSDOS_SUPPORT as a variable.
9329
9330 * Makefile.in (REAL_MOUSE_SUPPORT): New constant.
9331 (GPM_MOUSE_SUPPORT): Now it's a constant.
9332 (MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): Set with configure,
9333 not cpp.
9334
9335 * Makefile.in (@NS_IMPL_GNUSTEP_INC@): Use in place of #ifdef.
9336 (ns_appresdir): Remove, unused.
9337
9338 * Makefile.in (SHELL): Move outside cpp section.
9339
9340 * s/netbsd.h (AMPERSAND_FULL_NAME): Remove (defined in AH_BOTTOM).
9341
9342 2010-05-13 Glenn Morris <rgm@gnu.org>
9343
9344 * Makefile.in (FONT_DRIVERS): Place with other HAVE_X_WINDOWS stuff.
9345 (TOOLTIP_SUPPORT): Place with other HAVE_WINDOW_SYSTEM stuff.
9346
9347 * Makefile.in (FONT_DRIVERS): If HAVE_X_WINDOWS is defined,
9348 HAVE_WINDOW_SYSTEM must be too.
9349
9350 * Makefile.in (WINNT_SUPPORT): Remove, nt build does not use this file.
9351 (lisp): Remove WINNT_SUPPORT.
9352
9353 * Makefile.in (OLDXMENU, LIBXMENU) [!HAVE_MENUS]:
9354 Let configure set these variables (to empty) in this case as well.
9355
9356 * Makefile.in (LD_SWITCH_X_SITE): Define as a variable, not via cpp.
9357 (LIBX_BASE): Use $LD_SWITCH_X_SITE.
9358
9359 * Makefile.in (C_SWITCH_X_SYSTEM, C_SWITCH_X_SITE, LIB_STANDARD)
9360 (LIB_MATH, FONTCONFIG_CFLAGS, FONTCONFIG_LIBS, FREETYPE_CFLAGS)
9361 (FREETYPE_LIBS, LIBOTF_CFLAGS, LIBOTF_LIBS, M17N_FLT_CFLAGS)
9362 (M17N_FLT_LIBS, GNU_OBJC_CFLAGS, GNUSTEP_SYSTEM_LIBRARIES, LIBGPM)
9363 (LIBRESOLV, UNEXEC_OBJ): For clarity, define variables to hold
9364 the values output by configure.
9365 (ALL_CFLAGS, obj, LIBES, temacs${EXEEXT}): Use the above variables.
9366
9367 2010-05-12 Glenn Morris <rgm@gnu.org>
9368
9369 * Makefile.in (YMF_PASS_LDFLAGS, LD, LINKER): Simplify the logic.
9370 (LINKER_WAS_SPECIFIED): Remove.
9371
9372 * Makefile.in (LIB_GCC): Set using configure, not cpp.
9373 (GNULIB_VAR) [!ORDINARY_LINK]: Always set to $LIB_GCC.
9374 * m/arm.h (LIB_GCC) [GNU_LINUX]:
9375 * s/cygwin.h (LIB_GCC):
9376 * s/freebsd.h (LIB_GCC):
9377 * s/gnu-linux.h (LIB_GCC):
9378 * s/msdos.h (LIB_GCC):
9379 * s/netbsd.h (LIB_GCC):
9380 Move to configure.
9381
9382 2010-05-11 Karel Klíč <kklic@redhat.com>
9383
9384 * ftfont.c: Fix incorrect parentheses of #if condition for
9385 definining M17N_FLT_USE_NEW_FEATURE.
9386
9387 2010-05-11 Glenn Morris <rgm@gnu.org>
9388
9389 * Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset.
9390 * s/msdos.h (MSDOS_LIBS_SYSTEM): Remove.
9391
9392 2010-05-10 Eli Zaretskii <eliz@gnu.org>
9393
9394 * xdisp.c (init_iterator): Don't turn on bidi reordering in
9395 unibyte buffers. See
9396 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00263.html.
9397
9398 2010-05-10 Glenn Morris <rgm@gnu.org>
9399
9400 * Makefile.in (LIBS_SYSTEM): Set using configure, not cpp.
9401 (LIBS_SYSTEM) [MSDOS]: Reset with MSDOS_LIBS_SYSTEM.
9402 (LIBES): Use LIBS_SYSTEM as a variable.
9403 * s/msdos.h (LIBS_SYSTEM): Rename to MSDOS_LIBS_SYSTEM. Always define.
9404 * s/aix4-2.h (LIBS_SYSTEM):
9405 * s/freebsd.h (LIBS_SYSTEM):
9406 * s/hpux10-20.h (LIBS_SYSTEM):
9407 * s/sol2-6.h (LIBS_SYSTEM):
9408 * s/unixware.h (LIBS_SYSTEM):
9409 Move to configure.
9410
9411 * s/aix4-2.h (MAIL_USE_LOCKF):
9412 * s/bsd-common.h (MAIL_USE_FLOCK):
9413 * s/darwin.h (MAIL_USE_FLOCK):
9414 * s/gnu-linux.h (MAIL_USE_FLOCK):
9415 * s/irix6-5.h (MAIL_USE_FLOCK):
9416 * s/template.h (MAIL_USE_FLOCK):
9417 Move to configure.
9418
9419 2010-05-08 Chong Yidong <cyd@stupidchicken.com>
9420
9421 * Version 23.2 released.
9422
9423 2010-05-08 Andreas Schwab <schwab@linux-m68k.org>
9424
9425 * composite.c (autocmp_chars): Save point as marker before calling
9426 auto-composition-function (Bug#5984).
9427
9428 * lisp.h (restore_point_unwind): Add prototype.
9429
9430 * fileio.c (restore_point_unwind): Remove static attribute.
9431
9432 2010-05-08 Kenichi Handa <handa@m17n.org>
9433
9434 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
9435 new feature of libotf and m17n-flt.
9436 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
9437 Call OTF_check_features even if no specific feature is given.
9438 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
9439 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
9440 that OUT is NULL. Use OTF_drive_gsub_with_log and
9441 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
9442 OTF_drive_gpos.
9443 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
9444 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
9445 Setup mflt_enable_new_feature and mflt_try_otf.
9446
9447 2010-05-08 Jan Djärv <jan.h.d@swipnet.se>
9448
9449 * xsettings.c (Ftool_bar_get_system_style): Correct comment.
9450
9451 * gtkutil.c (xg_pack_tool_bar): Change show_all to show for handle
9452 box and toolbar (Bug #6139).
9453 (xg_create_tool_bar): Remove comment (Bug #6139).
9454 (xg_make_tool_item): Remove gtk_widget_show_all (Bug #6139).
9455 (xg_show_toolbar_item): Add gtk_widget_show for weventbox (Bug #6139).
9456
9457 2010-05-08 Juanma Barranquero <lekktu@gmail.com>
9458
9459 * makefile.w32-in ($(BLD)/eval.$(O), $(BLD)/w32fns.$(O)):
9460 Update dependencies.
9461
9462 2010-05-08 Eli Zaretskii <eliz@gnu.org>
9463
9464 * fringe.c (update_window_fringes): Set up truncation bitmaps for
9465 R2L lines.
9466
9467 2010-05-08 Glenn Morris <rgm@gnu.org>
9468
9469 * Makefile.in (THIS_IS_MAKEFILE): Remove, unused.
9470
9471 * Makefile.in (LIBS_TERMCAP): Set with configure, not cpp.
9472 (TERMCAP_OBJ): New, set by configure, replacing termcapobj.
9473 (termcapobj): Replace with TERMCAP_OBJ.
9474 (otherobj): Use $TERMCAP_OBJ instead of $termcapobj.
9475 (LIBES): Use LIBS_TERMCAP as a variable.
9476
9477 * s/freebsd.h (osreldate.h): No longer include, since this file
9478 does not use __FreeBSD_version any more.
9479
9480 * s/aix4-2.h (TERMINFO):
9481 * s/cygwin.h (TERMINFO):
9482 * s/darwin.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
9483 * s/freebsd.h (TERMINFO, LIBS_TERMCAP):
9484 * s/gnu-linux.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
9485 * s/gnu.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
9486 * s/hpux10-20.h (TERMINFO, LIBS_TERMCAP):
9487 * s/irix6-5.h (TERMINFO):
9488 * s/netbsd.h (LIBS_TERMCAP):
9489 * s/openbsd.h (TERMINFO, LIBS_TERMCAP):
9490 * s/sol2-6.h (LIBS_TERMCAP) [!TERMINFO]:
9491 * s/usg5-4.h (TERMINFO):
9492 Move to configure.
9493
9494 2010-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
9495
9496 * eval.c (unbind_to): Don't unbind a local binding into the global
9497 binding when the local binding disappeared. Inversely, don't unbind
9498 a global binding into a newly created local binding.
9499 * data.c (set_internal): Make its `buf' arg into a `where' arg so we
9500 can specify the frame to use, when applicable. Adjust callers.
9501
9502 2010-05-07 Vincent Belaïche <vincent.belaiche@gmail.com>
9503 Stefan Monnier <monnier@iro.umontreal.ca>
9504
9505 * floatfns.c (Fisnan, Fcopysign, Ffrexp, Fldexp): New functions.
9506
9507 2010-05-07 Eli Zaretskii <eliz@gnu.org>
9508
9509 * w32fns.c: Include w32.h.
9510 (Fw32_shell_execute): Decode the error message before passing it
9511 to `error'. (Bug#6126)
9512
9513 * msdos.c (dos_set_window_size):
9514 * w16select.c (Fx_selection_exists_p): Use `Fsymbol_value (foo)'
9515 instead of `XSYMBOL (foo)->value'.
9516
9517 2010-05-07 Eli Zaretskii <eliz@gnu.org>
9518
9519 Fix the MS-DOS build, broken by autoconfiscation.
9520
9521 * Makefile.in: Don't use Make-style comments past the "start of
9522 cpp stuff" line.
9523 (MSDOS_OBJ): Remove xmenu.o (it is now defined by XMENU_OBJ).
9524
9525 * s/msdos.h (UNEXEC): Don't define (@unexec@ in Makefile.in is
9526 edited directly by msdos/sed1v2.inp).
9527
9528 2010-05-07 Glenn Morris <rgm@gnu.org>
9529
9530 * Makefile.in (LD_SWITCH_SYSTEM): Set with configure, not cpp.
9531 (LD_SWITCH_SYSTEM_EXTRA): New variable, set by configure.
9532 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM and $LD_SWITCH_SYSTEM_EXTRA,
9533 move out of cpp section.
9534 * s/freebsd.h (LD_SWITCH_SYSTEM):
9535 * s/gnu-linux.h (LD_SWITCH_SYSTEM):
9536 * s/netbsd.h (LD_SWITCH_SYSTEM):
9537 * s/openbsd.h (LD_SWITCH_SYSTEM): Move to configure.in.
9538
9539 2010-05-07 Dan Nicolaescu <dann@ics.uci.edu>
9540
9541 Define LIB_STANDARD and START_FILES using autoconf.
9542 * s/usg5-4.h (LIB_STANDARD):
9543 * s/netbsd.h (START_FILES):
9544 * s/irix6-5.h (LIB_STANDARD):
9545 * s/hpux10-20.h (LIB_STANDARD, START_FILES):
9546 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
9547 * s/freebsd.h (START_FILES):
9548 * s/darwin.h (START_FILES):
9549 * s/cygwin.h (START_FILES):
9550 * s/aix4-2.h (LIB_STANDARD):
9551 * m/ibmrs6000.h (START_FILES): Remove, move logic to configure.in.
9552 * Makefile.in (STARTFILES): Rename to START_FILES, define using
9553 autoconf, not cpp.
9554
9555 2010-05-06 Dan Nicolaescu <dann@ics.uci.edu>
9556
9557 Remove NEED_BSDTTY and NEED_UNISTD_H.
9558 * s/hpux10-20.h (NEED_BSDTTY): Remove.
9559 * s/aix4-2.h (NEED_UNISTD_H): Remove.
9560 * systty.h: Simplify conditionals for including <sys/bsdtty.h>,
9561 <sys/ptyio.h> and <unistd.h>.
9562
9563 * emacs.c (main): Remove NO_DIR_LIBRARY conditional, unused.
9564
9565 * Makefile.in (STARTFILES): Conditionally define to make the usage clear.
9566 * s/gnu.h (START_FILES): Remove empty definition.
9567
9568 2010-05-06 Jan Djärv <jan.h.d@swipnet.se>
9569
9570 * xterm.c (x_draw_image_relief): Move declaration of extra to beginning.
9571
9572 2010-05-06 Glenn Morris <rgm@gnu.org>
9573
9574 * Makefile.in (CPP, LN_S): Remove unused variables.
9575
9576 2010-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
9577
9578 * syntax.c (Fchar_syntax): Check the arg is a character (bug#6080).
9579
9580 2010-05-05 Lawrence Mitchell <wence@gmx.li>
9581
9582 * m/sparc.h: Fix typo in earlier change.
9583
9584 2010-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
9585
9586 Misc tweaks.
9587 * eval.c (Fdefvaralias): Remove unintended nested if.
9588 (internal_condition_case_2, internal_condition_case_n): Use ANSI type.
9589
9590 2010-05-04 Bernhard Herzog <bh@intevation.de> (tiny change)
9591
9592 * xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
9593
9594 2010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
9595
9596 Remove BSD_PGRPS.
9597 * s/bsd-common.h (BSD_PGRPS): Remove undef.
9598 * s/gnu-linux.h (BSD_PGRPS): Remove.
9599 * term.c (dissociate_if_controlling_tty):
9600 * sysdep.c (narrow_foreground_group, widen_foreground_group)
9601 (init_sys_modes, reset_sys_modes):
9602 * emacs.c (main):
9603 * callproc.c (Fcall_process, child_setup): Remove code depending
9604 on BSD_PGRPS.
9605
9606 Remove POSIX_SIGNALS.
9607 * s/usg5-4.h (POSIX_SIGNALS):
9608 * s/netbsd.h (POSIX_SIGNALS):
9609 * s/msdos.h (POSIX_SIGNALS):
9610 * s/ms-w32.h (POSIX_SIGNALS):
9611 * s/hpux11.h (POSIX_SIGNALS):
9612 * s/gnu.h (POSIX_SIGNALS):
9613 * s/gnu-linux.h (POSIX_SIGNALS):
9614 * s/freebsd.h (POSIX_SIGNALS):
9615 * s/darwin.h (POSIX_SIGNALS):
9616 * s/cygwin.h (POSIX_SIGNALS):
9617 * s/aix4-2.h (POSIX_SIGNALS): Remove definition.
9618 * s/unixware.h:
9619 * s/sol2-6.h: Remove comments on POSIX_SIGNALS.
9620 * process.c (create_process):
9621 * syssignal.h:
9622 * sysdep.c (wait_for_termination, init_signals):
9623 * process.c (create_process):
9624 * msdos.c: POSIX_SIGNALS is always defined on all platforms,
9625 remove all code that assumes the contrary.
9626
9627 2010-05-04 Glenn Morris <rgm@gnu.org>
9628
9629 * s/gnu-linux.h (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX as a shell
9630 variable.
9631 * s/netbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
9632 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH.
9633 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
9634 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH instead of
9635 LD_SWITCH_SYSTEM_tmp.
9636 * Makefile.in (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH):
9637 New variables, set by configure.
9638
9639 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
9640 * s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
9641 (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
9642 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
9643 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.
9644
9645 * s/aix4-2.h (C_SWITCH_SYSTEM):
9646 * m/alpha.h (C_SWITCH_MACHINE):
9647 Move to configure.in.
9648 * Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
9649 New variables, set by configure.
9650 (ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
9651 $c_switch_machine and $c_switch_system.
9652
9653 2010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
9654
9655 * s/hpux10-20.h (LIB_STANDARD): New definition.
9656 * Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
9657 on it, not used anymore.
9658
9659 2010-05-03 Chong Yidong <cyd@stupidchicken.com>
9660
9661 * eval.c (internal_condition_case_n): Rename from
9662 internal_condition_case_2.
9663 (internal_condition_case_2): New function.
9664
9665 * xdisp.c (safe_call): Use internal_condition_case_n.
9666
9667 * fileio.c (Fdelete_file, internal_delete_file): New arg FORCE.
9668 (internal_delete_file, Frename_file): Callers changed.
9669
9670 * buffer.c (Fkill_buffer):
9671 * callproc.c (delete_temp_file): Callers changed (Bug#6070).
9672
9673 * lisp.h: Update prototypes.
9674
9675 2010-05-03 Glenn Morris <rgm@gnu.org>
9676
9677 * Makefile.in (LIBX_EXTRA, LIBX_BASE): New variables.
9678 (LIBXT_OTHER, LIBX_OTHER): New, set by configure.
9679 (LIBXT): Set with configure, not cpp.
9680 (LIBX): Remove.
9681 (LIBES): Replace $LIBX with $LIBX_BASE and $LIBX_OTHER.
9682
9683 2010-05-02 Dan Nicolaescu <dann@ics.uci.edu>
9684
9685 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove.
9686 The FreeBSD is not needed, the default works, Solaris version is
9687 not needed, and the remaining case is not supported by configure.
9688
9689 2010-05-02 Jan Djärv <jan.h.d@swipnet.se>
9690
9691 * xsmfns.c (CHDIR_OPT): New define.
9692 (smc_save_yourself_CB): Add CHDIR_OPT to options to use when
9693 restarting emacs.
9694
9695 * xterm.c (x_connection_closed): Call Fkill_emacs instead of
9696 shut_down_emacs.
9697
9698 * emacs.c (USAGE1): Mention --chdir.
9699 (main): Handle --chdir.
9700 (standard_args): Add --chdir.
9701 (fatal_error_signal): Call Fkill_emacs for SIGTERM and SIGHUP (Bug
9702 #5552).
9703
9704 2010-05-01 Dan Nicolaescu <dann@ics.uci.edu>
9705
9706 Remove LD_SWITCH_MACHINE.
9707 * Makefile.in (LD_SWITCH_MACHINE): Remove definition, unused.
9708 (TEMACS_LDFLAGS): Do not use LD_SWITCH_MACHINE.
9709
9710 Clean up IRIX code.
9711 * m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
9712 * s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.
9713
9714 Clean up AIX code.
9715 * m/ibmrs6000.inp: Remove file, unused.
9716 * m/ibmrs6000.h (IBMR2AIX): Remove, unused.
9717 (LD_SWITCH_MACHINE): Rename to LD_SWITCH_SYSTEM_TEMACS, and move
9718 definition ...
9719 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): ... here.
9720
9721 * sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code,
9722 unused.
9723
9724 2010-05-01 Eli Zaretskii <eliz@gnu.org>
9725
9726 Emulate POSIX_SIGNALS on MS-Windows.
9727
9728 * s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
9729 (SIG_SETMASK, SIG_UNBLOCK): Define.
9730
9731 * sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
9732 (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
9733 from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
9734
9735 * w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask):
9736 New stubs.
9737
9738 Miscellaneous fixes of bidi display.
9739
9740 * xdisp.c (find_row_end): New function, refactored from display_line.
9741 (display_line): Use it.
9742 (extend_face_to_end_of_line): In almost-filled rows, extend only
9743 if the row is R2L and not continued.
9744 (display_line): Fix prepending of truncation glyphs to R2L rows.
9745 Preserve overlay and string info in row->end.
9746 (insert_left_trunc_glyphs): Support addition of left truncation
9747 glyphs to R2L rows.
9748 (set_cursor_from_row): Don't place cursor on the vertical border
9749 glyph between adjacent windows. Fix a crash when a display string
9750 is continued to the next line. Don't return zero if cursor was
9751 found by `cursor' property of a display string.
9752 (try_cursor_movement): Don't assume that row->end == (row+1)->start,
9753 test for that explicitly.
9754
9755 2010-05-01 Glenn Morris <rgm@gnu.org>
9756
9757 * Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null,
9758 for clarity.
9759 (OTHER_OBJ): Remove.
9760 (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure.
9761 (otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ.
9762
9763 2010-05-01 Karel Klíč <kklic@redhat.com>
9764
9765 * fileio.c (Ffile_selinux_context): Context functions may return null.
9766
9767 2010-04-30 Dan Nicolaescu <dann@ics.uci.edu>
9768
9769 * s/gnu.h (POSIX_SIGNALS, START_FILES): New definitions.
9770
9771 2010-04-30 Glenn Morris <rgm@gnu.org>
9772
9773 * Makefile.in (vmlimitobj) [!SYSTEM_MALLOC]: New variable. (Bug#6065)
9774 (OTHER_OBJ): Define as a separate variable, for clarity.
9775
9776 2010-04-30 Jan Djärv <jan.h.d@swipnet.se>
9777
9778 * xsettings.c: Include limits.h and update file comment.
9779
9780 2010-04-30 Glenn Morris <rgm@gnu.org>
9781
9782 * Makefile.in (OLDXMENU, LIBXMENU) [HAVE_MENUS]:
9783 Set with configure, not cpp.
9784 (LIBW): Remove, replace with $TOOLKIT_LIBW.
9785
9786 * Makefile.in (mallocobj): Remove.
9787 (otherobj): Simplify using @OTHER_OBJ@.
9788
9789 * Makefile.in (dispnew.o, frame.o, fringe.o, font.o, fontset.o)
9790 (keyboard.o, window.o, xdisp.o, xfaces.o, menu.o):
9791 Don't bother making nsgui.h dependency platform-specific.
9792
9793 * Makefile.in (nsfns.o): Remove duplicate nsgui.h dependency.
9794
9795 2010-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
9796
9797 * process.c (read_process_output, exec_sentinel): Don't burp if the
9798 sentinel/filter kills the current buffer (bug#6060).
9799
9800 Fix wrong-docstring problem introduced with hash-consing. (Bug#6008)
9801 * eval.c (Fautoload): Set doc to a unique number rather than to 0.
9802 Remove unused var `args'.
9803 * lisp.h (XSETCARFASTINT, XSETCDRFASTINT): Remove.
9804 (LOADHIST_ATTACH): Wrap with do...while to avoid surprises for callers.
9805 * doc.c (store_function_docstring): Use XSETCAR.
9806
9807 2010-04-28 Glenn Morris <rgm@gnu.org>
9808
9809 * Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
9810 (WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.
9811
9812 * Makefile.in (CYGWIN_OBJ): Set with configure, not cpp.
9813
9814 * Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure.
9815 (MOUSE_SUPPORT) [!HAVE_MOUSE]: Use $GPM_MOUSE_SUPPORT.
9816
9817 * Makefile.in (FONT_OBJ): New, set by configure.
9818 (FONT_DRIVERS): Use $FONT_OBJ.
9819
9820 * Makefile.in (LIBXMU): Set with configure, not cpp.
9821 * s/aix4-2.h (LIBXMU):
9822 * s/hpux10-20.h (LIBXMU):
9823 Remove definition, now set in configure.
9824
9825 * Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.
9826
9827 * m/amdx86-64.h [i386]: Move this test to configure.in.
9828
9829 2010-04-27 Glenn Morris <rgm@gnu.org>
9830
9831 * Makefile.in (LIBXTR6): Set with configure, not cpp.
9832 * s/unixware.h (NEED_LIBW): Remove definition.
9833
9834 * Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
9835 (TOOLKIT_LIBW): New, set by configure.
9836 (@X_TOOLKIT_TYPE@): No longer define it.
9837
9838 * Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
9839 (MOTIF_LIBW): Set with configure, not cpp.
9840 * s/aix4-2.h (LIB_MOTIF):
9841 * s/gnu-linux.h (LIB_MOTIF):
9842 * s/unixware.h (LIB_MOTIF): Move to configure.in.
9843
9844 2010-04-27 Dan Nicolaescu <dann@ics.uci.edu>
9845
9846 Reduce CPP usage.
9847 * Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
9848 (obj): Use autoconf for unexec instead of cpp.
9849 (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE):
9850 Remove definitions and undefs. Inline definitions in the only user.
9851 (ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.
9852
9853 2010-04-27 Glenn Morris <rgm@gnu.org>
9854
9855 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
9856 since the defaults (set by the system file) are fine in most cases.
9857 [GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
9858 * m/ibms390x.h (START_FILES, LIB_STANDARD):
9859 * m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
9860 * m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
9861 Remove definitions, since they are set correctly in s/gnu-linux.h.
9862 * s/freebsd.h (START_FILES, LIB_STANDARD):
9863 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
9864 * s/hpux10-20.h (START_FILES):
9865 * s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
9866 Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
9867
9868 * Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
9869 (MOTIF_LIBW): Use $LIBXP.
9870 (otherobj): Use $WIDGET_OBJ.
9871
9872 2010-04-26 Dan Nicolaescu <dann@ics.uci.edu>
9873
9874 * Makefile.in (LIBS_MACHINE): Remove, unused.
9875
9876 Use autoconf instead of cpp for LIB_MATH.
9877 * s/darwin.h (LIB_MATH): Do not define here, move to configure.
9878 * s/cygwin.h (LIB_MATH): Likewise.
9879 * Makefile.in (LIB_MATH): Do not define with cpp.
9880 (LIBES): Use autoconf for LIB_MATH.
9881
9882 2010-04-26 Kenichi Handa <handa@m17n.org>
9883
9884 * composite.c (Ffind_composition_internal): Fix the return value
9885 for an automatic composition.
9886
9887 2010-04-25 Dan Nicolaescu <dann@ics.uci.edu>
9888
9889 Remove all NO_ARG_ARRAY uses.
9890 * fns.c (concat2, concat3, nconc2):
9891 * eval.c (apply1, call1, call2, call3, call4, call5, call6)
9892 (call7): Remove NO_ARG_ARRAY usage, assume it's always true.
9893 * m/xtensa.h (NO_ARG_ARRAY):
9894 * m/template.h (NO_ARG_ARRAY):
9895 * m/sparc.h (NO_ARG_ARRAY):
9896 * m/sh3.h (NO_ARG_ARRAY):
9897 * m/mips.h (NO_ARG_ARRAY):
9898 * m/macppc.h (NO_ARG_ARRAY):
9899 * m/iris4d.h (NO_ARG_ARRAY):
9900 * m/intel386.h (NO_ARG_ARRAY):
9901 * m/ibms390x.h (NO_ARG_ARRAY):
9902 * m/ibms390.h (NO_ARG_ARRAY):
9903 * m/ibmrs6000.h (NO_ARG_ARRAY):
9904 * m/ia64.h (NO_ARG_ARRAY):
9905 * m/hp800.h (NO_ARG_ARRAY):
9906 * m/arm.h (NO_ARG_ARRAY):
9907 * m/amdx86-64.h (NO_ARG_ARRAY):
9908 * m/alpha.h (NO_ARG_ARRAY): Remove definition.
9909
9910 2010-04-25 Eli Zaretskii <eliz@gnu.org>
9911
9912 * xdisp.c (display_line): Don't assume 2nd call to
9913 get_next_display_element cannot return zero. (Bug#6030)
9914 (iterate_out_of_display_property): New function, body from pop_it.
9915 (pop_it): Use it.
9916
9917 2010-04-24 Glenn Morris <rgm@gnu.org>
9918
9919 * m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]:
9920 For clarity, revert to using fixed /usr/lib rather than $CRT_DIR.
9921 (START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case,
9922 since CRT_DIR defaults to /usr/lib. Suggested by Dan Nicolaescu.
9923
9924 2010-04-24 Eli Zaretskii <eliz@gnu.org>
9925
9926 * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
9927 use `get_next_display_element' and `set_iterator_to_next' to
9928 advance to the next character, when looking for the character that
9929 begins the next row.
9930
9931 * .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
9932 definition of "struct Lisp_Symbol".
9933
9934 2010-04-24 Glenn Morris <rgm@gnu.org>
9935
9936 * Makefile.in (CRT_DIR): New variable, set by configure.
9937 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
9938 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
9939
9940 2010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
9941
9942 * Makefile.in: Remove C_SWITCH_X_MACHINE, unused.
9943
9944 * s/cygwin.h (LIBS_DEBUG): Remove, unused.
9945
9946 Remove redundant flags.
9947 * s/freebsd.h (C_SWITCH_SYSTEM):
9948 * s/hpux10-20.h (C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
9949 * s/netbsd.h (C_SWITCH_SYSTEM):
9950 * s/openbsd.h (LD_SWITCH_X_DEFAULT): Remove, configure takes care
9951 of these.
9952
9953 Simplify m/intel386.h.
9954 * m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
9955 user: ecrt0.c.
9956 (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
9957 (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
9958 the only user: s/unixware.h.
9959 * ecrt0.c: Remove #ifndef static. Inline CRT0_DUMMIES definition
9960 from m/intel386.h.
9961 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE):
9962 Definitions moved here from m/intel386.h.
9963
9964 * m/mips.h: Remove #if 0 code.
9965
9966 2010-04-23 Eli Zaretskii <eliz@gnu.org>
9967
9968 Fix display of composed characters from L2R scripts in bidi buffers.
9969 * xdisp.c (set_iterator_to_next, next_element_from_composition):
9970 After advancing IT past the composition, resync the bidi iterator
9971 with IT's position. (Bug#5977)
9972
9973 2010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
9974
9975 * Makefile.in (LD_SWITCH_MACHINE_TEMACS): Remove, unused.
9976 (TEMACS_LDFLAGS): Don't use LD_SWITCH_SYSTEM_TEMACS.
9977
9978 2010-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
9979
9980 * gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.
9981
9982 2010-04-23 Eli Zaretskii <eliz@gnu.org>
9983
9984 Support `display' text properties and overlay strings in bidi buffers.
9985 * xdisp.c (pop_it): When the stack is popped after displaying
9986 from a string, bidi-iterate to exit from the text portion covered
9987 by the `display' property or overlay. (Bug#5988, bug#5920)
9988
9989 2010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
9990
9991 * m/macppc.h (LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
9992 (LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.
9993
9994 * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
9995 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
9996
9997 Simplify STARTFILES definition.
9998 * s/hpux10-20.h (START_FILES): Explicitly define here instead of
9999 relying on Makefile.in to define it.
10000 * s/cygwin.h (START_FILES): Likewise.
10001 * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
10002
10003 Clean up Solaris code.
10004 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
10005 (LIB_MOTIF): Remove, configure takes care of this.
10006 (NOT_USING_MOTIF): Remove, unused.
10007 * xrdb.c: Remove #if 0-ed #include.
10008 (SYSV): Remove conditional for old SysV.
10009 * sysdep.c (closedir): Remove conditional code for Solaris,
10010 Solaris has closedir.
10011
10012 2010-04-22 Jan Djärv <jan.h.d@swipnet.se>
10013
10014 * xsettings.c (read_and_apply_settings): Check if current_font is
10015 NULL before strcmp (Bug#6001).
10016
10017 2010-04-21 Dan Nicolaescu <dann@ics.uci.edu>
10018
10019 Clean up HP-UX files.
10020 * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
10021 (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
10022 (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
10023 * s/hpux10-20.h: ... to the only user, here.
10024
10025 2010-04-21 Eli Zaretskii <eliz@gnu.org>
10026
10027 * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
10028 use buffer-local values of paragraph-start and paragraph-separate.
10029 <paragraph_start_re, paragraph_separate_re>: Rename from
10030 fallback_paragraph_start_re and fallback_paragraph_separate_re.
10031 (Bug#5992)
10032
10033 2010-04-21 Jan Djärv <jan.h.d@swipnet.se>
10034
10035 * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
10036 current_tool_bar_style are new.
10037 (store_config_changed_event): Rename from store_font_changed_event.
10038 (XSETTINGS_TOOL_BAR_STYLE): New define.
10039 (SEEN_FONT, SEEN_TB_STYLE): New enum values.
10040 (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
10041 HAVE_XFT.
10042 (something_changedCB): store_font_changed_event is now
10043 store_config_changed_event.
10044 (parse_settings): Rename from parse_xft_settings.
10045 Read non-xft xsettings outside #ifdef HAVE_XFT.
10046 (read_settings): Rename from read_xft_settings.
10047 (apply_xft_settings): Take current settings as parameter. Do not
10048 call read_(xft)_settings.
10049 (read_and_apply_settings): New function.
10050 (xft_settings_event): Do non-xft stuff out of HAVE_XFT.
10051 Call read_and_apply_settings if there are settings to be read.
10052 (init_xsettings): Rename from init_xfd_settings.
10053 Call read_and_apply_settings unconditionally.
10054 (xsettings_initialize): Call init_xsettings.
10055 (Ftool_bar_get_system_style): New function.
10056 (syms_of_xsettings): Define Qmonospace_font_name and
10057 Qtool_bar_style. Initialize current_tool_bar_style to nil.
10058 defsubr Stool_bar_get_system_style. Fprovide on
10059 dynamic-setting.
10060 Move misplaced HAVE_GCONF.
10061
10062 * xsettings.h (Ftool_bar_get_system_style): Declare.
10063
10064 * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
10065 Qtext, Qboth, Qboth_horiz are new.
10066 (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
10067 Vtool_bar_style, tool_bar_max_label_size.
10068
10069 * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
10070
10071 * keyboard.c: QClabel is new.
10072 (parse_tool_bar_item): Take out QClabel from tool bar items.
10073 Try to construct a label if ther is no QClabel.
10074 (syms_of_keyboard): Intern :label as QClabel.
10075
10076 * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
10077 (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
10078 New.
10079
10080 * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
10081 dynamic-setting.el.
10082
10083 * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
10084 (xg_make_tool_item, xg_show_toolbar_item): New function.
10085 (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
10086 Call xg_make_tool_item to make a tool bar item.
10087 Call xg_show_toolbar_item. Use wtoolbar instead of x->toolbar_widget.
10088
10089 * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
10090 into account for toolbars.
10091
10092 2010-04-21 Jan Djärv <jan.h.d@swipnet.se>
10093
10094 * data.c (make_blv): Declarations before code (Bug#5993).
10095
10096 2010-04-21 Glenn Morris <rgm@gnu.org>
10097
10098 * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
10099 Define using autoconf, not cpp.
10100 (LIBXSM): New variable, set by autoconf.
10101 (LIBXT): Use $LIBXSM.
10102
10103 2010-04-21 Dan Nicolaescu <local_user@dannlt>
10104
10105 Remove NOMULTIPLEJOBS, unused.
10106 * s/template.h (NOMULTIPLEJOBS):
10107 * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
10108
10109 Simplify LD_SWITCH_SYSTEM_TEMACS usage.
10110 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
10111 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
10112 detects -znocombreloc and passes it to the linker
10113 * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
10114
10115 2010-04-21 Glenn Morris <rgm@gnu.org>
10116
10117 * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
10118
10119 2010-04-21 Karel Klíč <kklic@redhat.com>
10120
10121 * Makefile.in (LIBSELINUX_LIBS): New.
10122 (LIBES): Add $LIBSELINUX_LIBS.
10123 * eval.c, lisp.h (call7): New function.
10124 * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
10125 (Ffile_selinux_context, Fset_file_selinux_context):
10126 New functions.
10127 (Fcopy_file): New parameter preserve-selinux-context.
10128 (Frename_file): Preserve selinux context when renaming by copy-file.
10129
10130 2010-04-21 Juanma Barranquero <lekktu@gmail.com>
10131 Eli Zaretskii <eliz@gnu.org>
10132
10133 Don't depend on cm.c or termcap.c on Windows, use stubs.
10134 * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
10135 ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
10136 * w32console.c (current_tty, cost): New vars; lifted from cm.c.
10137 (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
10138 (sys_tputs, sys_tgetstr): New stubs.
10139 * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
10140 (tputs, tgetstr): New; define to sys_*.
10141
10142 2010-04-20 Juanma Barranquero <lekktu@gmail.com>
10143
10144 * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
10145
10146 2010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
10147
10148 * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
10149 Just signal a warning rather than an error when inside a let.
10150 (Fmake_variable_frame_local): Add the same test.
10151
10152 * font.c (syms_of_font): Make the style table vars read-only.
10153
10154 * buffer.h (struct buffer): Remove unused var `direction_reversed'.
10155 * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
10156
10157 * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
10158
10159 2010-04-20 Eli Zaretskii <eliz@gnu.org>
10160
10161 Fix R2L paragraph display on TTY.
10162
10163 * xdisp.c (unproduce_glyphs): New function.
10164 (display_line): Use it when produced glyphs are discarded from R2L
10165 glyph rows.
10166 (append_composite_glyph): In R2L rows, prepend the glyph rather
10167 than appending it.
10168
10169 * term.c (append_composite_glyph): In R2L rows, prepend the glyph
10170 rather than append it. Set up the resolved_level and bidi_type
10171 attributes of the appended glyph.
10172 (produce_special_glyphs): Mirror the backslash continuation
10173 character in R2L lines.
10174
10175 Implement display of R2L paragraphs in GUI sessions.
10176
10177 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
10178 append_stretch_glyph.
10179 (set_cursor_from_row) <cursor_x>: Remove unused variable.
10180 Fix off-by-one error in computing x at end of text in the row.
10181 (append_stretch_glyph): In reversed row, prepend the glyph rather
10182 than append it. Set resolved_level and bidi_type of the glyph.
10183 (extend_face_to_end_of_line): If the row is reversed, prepend a
10184 stretch glyph whose width is such that the rightmost glyph will be
10185 drawn at the right margin of the window. Fix off-by-one error on
10186 TTY frames in testing whether a line needs face extension.
10187 Fix face extension at ZV. If this is the last glyph row, use
10188 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
10189 region face.
10190 (set_cursor_from_row, display_line):
10191 Use MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
10192 row->continuation_lines_width.
10193 (next_element_from_buffer): Don't call bidi_paragraph_init if we
10194 are at ZV. Fixes a crash when reseated to ZV by
10195 try_window_reusing_current_matrix.
10196 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
10197 which happens with R2L glyph rows. Fixes a crash when inserting a
10198 character at end of an R2L line.
10199 (set_cursor_from_row): Don't be fooled by truncated rows: don't
10200 treat them as having zero-width characters. Improve comments.
10201 Don't reverse pos_before and pos_after for reversed glyph rows.
10202 Set cursor.x to negative value when the cursor might be on the
10203 left fringe.
10204 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
10205 left fringe, not the right one.
10206 (notice_overwritten_cursor, draw_phys_cursor_glyph)
10207 (erase_phys_cursor): For reversed cursor_row, support cursor on
10208 the left fringe.
10209
10210 * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
10211 of continuation indicators on the fringes.
10212 (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
10213 left fringe.
10214
10215 * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
10216 draw cursor on the left fringe.
10217
10218 * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
10219 cursor on the left fringe.
10220
10221 * dispnew.c (update_text_area): Handle reversed desired rows when
10222 the cursor is on the left fringe.
10223 (set_window_cursor_after_update): Limit cursor's hpos by -1 from
10224 below, not by 0, for when the cursor is on the left fringe.
10225
10226 2010-04-20 Jan Djärv <jan.h.d@swipnet.se>
10227
10228 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
10229 widget is a scrollbar.
10230
10231 2010-04-20 Kenichi Handa <handa@m17n.org>
10232
10233 * charset.c (char_charset): Consider Vcharset_non_preferred_head
10234 only when the arg CHARSET_LIST is nil.
10235
10236 2010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
10237
10238 Make variable forwarding explicit rather the using special values.
10239 Basically, this makes the structure of buffer-local values and object
10240 forwarding explicit in the type of Lisp_Symbols rather than use
10241 special Lisp_Objects for that. This tends to lead to slightly more
10242 verbose code, but is more C-like, simpler, and makes it easier to make
10243 sure we handled all cases, among other things by letting the compiler
10244 help us check it.
10245 * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
10246 Removing forwarding objects.
10247 (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
10248 (struct Lisp_Symbol): Make the various forms of variable-forwarding
10249 explicit rather than hiding them inside Lisp_Object "values".
10250 (XFWDTYPE): New macro.
10251 (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
10252 (XBUFFER_LOCAL_VALUE): Remove.
10253 (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
10254 (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
10255 (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
10256 (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
10257 (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
10258 Remove the Lisp_Misc_* header.
10259 (struct Lisp_Buffer_Local_Value): Redefine.
10260 (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
10261 (struct Lisp_Misc_Any): Add filler to get the right size.
10262 (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
10263 Lisp_Intfwd.
10264 (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
10265 (DEFVAR_KBOARD): Allocate a forwarding object.
10266 * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
10267 (let_shadows_global_binding_p): New function.
10268 (union Lisp_Val_Fwd): New type.
10269 (make_blv): New function.
10270 (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
10271 (store_symval_forwarding, swap_in_global_binding, Fboundp)
10272 (swap_in_symval_forwarding, find_symbol_value, Fset)
10273 (let_shadows_buffer_binding_p, set_internal, default_value)
10274 (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
10275 (Fkill_local_variable, Fmake_variable_frame_local)
10276 (Flocal_variable_p, Flocal_variable_if_set_p)
10277 (Fvariable_binding_locus):
10278 * xdisp.c (select_frame_for_redisplay):
10279 * lread.c (Fintern, Funintern, init_obarray, defvar_int)
10280 (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
10281 * frame.c (store_frame_param):
10282 * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
10283 * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
10284 value structure.
10285 * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
10286 (clone_per_buffer_values): Only adjust markers into the current buffer.
10287 (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
10288 (Fbuffer_local_value, set_buffer_internal_1)
10289 (swap_out_buffer_local_variables):
10290 Adapt to the new symbol value structure.
10291 (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
10292 (defvar_per_buffer): Take a new arg for the fwd object.
10293 (buffer_lisp_local_variables): Return a proper alist (different fix
10294 for bug#4138).
10295 * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
10296 (Fgarbage_collect): Don't handle buffer_defaults specially.
10297 (mark_object): Handle new symbol value structure rather than the old
10298 special Lisp_Misc_* objects.
10299 (gc_sweep) <symbols>: Free also the buffer-local-value objects.
10300 * term.c (set_tty_color_mode):
10301 * bidi.c (bidi_initialize): Don't access the ->value field directly.
10302 * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
10303 a buffer_local_flags.
10304 * print.c (print_object): Get rid of impossible forwarding objects.
10305
10306 2010-04-19 Eli Zaretskii <eliz@gnu.org>
10307
10308 * bidi.c (bidi_get_type, bidi_get_category)
10309 (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
10310 (bidi_type_of_next_char, bidi_level_of_next_char):
10311 Declare static. Use `INLINE' rather than `inline'.
10312
10313 2010-04-19 Juanma Barranquero <lekktu@gmail.com>
10314
10315 * dired.c (Ffile_attributes): Fix typo in docstring.
10316
10317 2010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
10318
10319 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
10320 NSInteger (Bug#5811).
10321
10322 2010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10323
10324 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
10325 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
10326
10327 2010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10328
10329 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
10330
10331 2010-04-19 Chong Yidong <cyd@stupidchicken.com>
10332
10333 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
10334 terminal frames (Bug#5837).
10335
10336 2010-04-19 Eli Zaretskii <eliz@gnu.org>
10337
10338 * .gdbinit (xsubchartable): New command.
10339
10340 2010-04-19 Eli Zaretskii <eliz@gnu.org>
10341
10342 * xdisp.c (display_line): Don't write beyond the last glyph row in
10343 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
10344 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
10345 and
10346 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
10347
10348 2010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
10349
10350 * alloc.c (Fpurecopy): Hash-cons if requested.
10351 (syms_of_alloc): Update purify-flag docstring.
10352
10353 2010-04-18 Jan Djärv <jan.h.d@swipnet.se>
10354
10355 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
10356 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
10357
10358 2010-04-17 Eli Zaretskii <eliz@gnu.org>
10359
10360 Fix a crash when an NSM character is inserted at BEGV.
10361
10362 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
10363 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
10364 NEUTRAL_B or UNKNOWN_BT.
10365
10366 2010-04-16 Eli Zaretskii <eliz@gnu.org>
10367
10368 * xdisp.c (set_cursor_from_row): Don't consider possibility of
10369 other rows with cursor unless they are different from this row and
10370 this row is part of a continued line. (Bug#5943)
10371
10372 2010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
10373
10374 * s/freebsd.h: Restore osreldate.h include.
10375 Suggested by Naohiro Aota.
10376
10377 2010-04-16 Jan Djärv <jan.h.d@swipnet.se>
10378
10379 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
10380
10381 2010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
10382
10383 * s/cygwin.h: Avoid linking against static libgcc.
10384
10385 2010-04-15 Juri Linkov <juri@jurta.org>
10386
10387 * window.c: Add Qscroll_command.
10388 Remove Vscroll_preserve_screen_position_commands.
10389 (window_scroll_pixel_based, window_scroll_line_based): Check the
10390 `scroll-command' property on the last command instead of searching
10391 the last command in Vscroll_preserve_screen_position_commands.
10392 (syms_of_window): Initialize and staticpro `Qscroll_command'.
10393 Put Qscroll_command property on Qscroll_up and Qscroll_down.
10394 (scroll-preserve-screen-position): Doc fix.
10395 (Vscroll_preserve_screen_position_commands): Remove variable.
10396
10397 2010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
10398
10399 * xdisp.c (message): Do not use NO_ARG_ARRAY.
10400
10401 2010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
10402
10403 Reduce cpp use in Makefile.in.
10404 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
10405 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
10406 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
10407 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
10408 (CRT0_COMPILE): Remove, inline it in the only user.
10409
10410 2010-04-14 Juri Linkov <juri@jurta.org>
10411
10412 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
10413 `scroll-up-command' and `M-v' from `scroll-down' to
10414 `scroll-down-command'.
10415
10416 2010-04-14 Juri Linkov <juri@jurta.org>
10417
10418 * window.c (Vscroll_preserve_screen_position_commands): New variable
10419 with the default value as the list of Qscroll_down and Qscroll_up.
10420 (window_scroll_pixel_based, window_scroll_line_based): Search the
10421 last command in the list Vscroll_preserve_screen_position_commands
10422 instead of comparing with Qscroll_up and Qscroll_down.
10423
10424 2010-04-13 Jan Djärv <jan.h.d@swipnet.se>
10425
10426 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
10427 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
10428 does that.
10429
10430 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
10431 to zero.
10432
10433 2010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
10434
10435 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
10436
10437 Try to solve the problem of spurious EOF chars in long lines of text
10438 sent to interactive subprocesses.
10439 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
10440 (system_process_attributes): Remove unused var `ttotal'.
10441 * process.c (send_process): Don't bother breaking long line with EOF
10442 chars when talking to ttys any more.
10443 (wait_reading_process_output): Output a warning when called in such
10444 a way that it could block without being interruptible.
10445
10446 Try to detect file modification within the same second.
10447 * buffer.h (struct buffer): New field modtime_size.
10448 * buffer.c (reset_buffer): Initialize it.
10449 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
10450 (Fverify_visited_file_modtime): Check it.
10451 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
10452 (Fset_visited_file_modtime): Set (or clear) it.
10453
10454 2010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
10455
10456 * process.c (status_notify): Remove unused var `ro'.
10457
10458 2010-04-12 Jan Djärv <jan.h.d@swipnet.se>
10459
10460 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
10461 more than one visual (Bug#5938).
10462
10463 2010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
10464
10465 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
10466 Undefine.
10467
10468 2010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
10469
10470 Remove C_SWITCH_SYSTEM_TEMACS.
10471 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
10472 (malloc, realloc, free): Use emacs, not temacs for conditional
10473 definition.
10474
10475 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
10476 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
10477
10478 Use autoconf, not cpp for some variables.
10479 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
10480 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
10481 (ALL_CFLAGS): Use them as make variables.
10482 (really-lwlib, really-oldXMenu): Do not pass them.
10483
10484 2010-04-11 Jan Djärv <jan.h.d@swipnet.se>
10485
10486 * xmenu.c (apply_systemfont_to_dialog): New.
10487 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
10488
10489 2010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
10490
10491 * process.c (exec_sentinel): Preserve current-buffer.
10492
10493 * process.c (read_process_output): Move the save-current-buffer to
10494 apply to both the filter and the non-filter branches.
10495
10496 2010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
10497
10498 * s/msdos.h (UNEXEC): New definition.
10499
10500 2010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10501
10502 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
10503 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
10504
10505 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
10506 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
10507 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
10508 TRY_WINDOW_CHECK_MARGINS.
10509
10510 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
10511 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
10512 width only when it is for padding.
10513
10514 2010-04-09 Jan Djärv <jan.h.d@swipnet.se>
10515
10516 * xfns.c (Fx_show_tip): Call try_window in a loop until
10517 fonts_changed_p is zero (Bug#2423).
10518
10519 2010-04-08 Eli Zaretskii <eliz@gnu.org>
10520
10521 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
10522 the end of TEXT_AREA. (Bug#5856)
10523
10524 2010-04-08 Jan Djärv <jan.h.d@swipnet.se>
10525
10526 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
10527 HAVE_GCONF.
10528
10529 2010-04-08 Eli Zaretskii <eliz@gnu.org>
10530
10531 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
10532 prev.orig_type, for resolving type of NSM. (Bug#5858)
10533
10534 2010-04-08 Jan Djärv <jan.h.d@swipnet.se>
10535
10536 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
10537 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
10538 in current_font.
10539 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
10540 (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
10541 New functions.
10542 (syms_of_xsettings): Initialize current_font.
10543 defsubr Sfont_get_system_normal_font.
10544
10545 * xsettings.h (Ffont_get_system_normal_font)
10546 (xsettings_get_system_normal_font): Declare.
10547
10548 * xfns.c (extern xlwmenu_default_font): Remove.
10549 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
10550 to xlwmenu.c.
10551
10552 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
10553 menu items in UTF-8.
10554
10555 * xmenu.c: Include xsettings.h and xlwmenu.h if USE_LUCID.
10556 (apply_systemfont_to_menu): New function.
10557 (set_frame_menubar, create_and_show_popup_menu):
10558 Call apply_systemfont_to_menu.
10559
10560 2010-04-07 Jan Djärv <jan.h.d@swipnet.se>
10561
10562 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
10563 FRAME_LINE_TO_PIXEL_Y.
10564
10565 * xterm.c (x_set_window_size_1): Don't add border_width/height to
10566 pixelwidth/height.
10567
10568 2010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
10569
10570 Simplify code for HP machines.
10571 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
10572 for GNU_LINUX, not needed.
10573 (UNEXEC, NEED_BSDTTY): Move definitions...
10574 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
10575
10576 * m/iris4d.h (UNEXEC): Move definition ...
10577 * s/irix6-5.h (UNEXEC): ... here.
10578
10579 2010-04-04 Jan Djärv <jan.h.d@swipnet.se>
10580
10581 * xfns.c (set_machine_and_pid_properties): New function.
10582 (Fx_create_frame): Call set_machine_and_pid_properties.
10583
10584 2010-04-03 Eli Zaretskii <eliz@gnu.org>
10585
10586 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char):
10587 Check bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
10588 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
10589
10590 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
10591 in this function. (Bug#5703)
10592
10593 2010-04-03 Chong Yidong <cyd@stupidchicken.com>
10594
10595 * nsterm.h: Fix last change.
10596
10597 2010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
10598
10599 * m/intel386.h (NO_REMAP): Move definition ...
10600 * s/msdos.h (NO_REMAP): ... here.
10601
10602 * m/vax.h (CRT0_DUMMIES): Remove, unused.
10603
10604 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
10605 used on those platforms.
10606
10607 2010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
10608
10609 Remove extern errno declarations.
10610 * xterm.c:
10611 * xrdb.c:
10612 * w32term.c:
10613 * unexec.c:
10614 * unexaix.c:
10615 * sysdep.c:
10616 * process.c:
10617 * lread.c:
10618 * keyboard.c:
10619 * floatfns.c:
10620 * filelock.c:
10621 * fileio.c:
10622 * emacs.c (main):
10623 * ecrt0.c:
10624 * dispnew.c:
10625 * callproc.c:
10626 * buffer.c: Remove errno extern declarations.
10627 * s/netbsd.h (NEED_ERRNO): Remove.
10628
10629 2010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
10630
10631 Remove all uses of LIBX11_SYSTEM.
10632 * Makefile.in (LIBX11_SYSTEM): Remove.
10633 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
10634 instead.
10635
10636 2010-04-01 Eli Zaretskii <eliz@gnu.org>
10637
10638 Remove support for DJGPP v1.x (bug#5813).
10639
10640 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
10641 * s/msdos.h:
10642 * unexec.c (make_hdr, copy_text_and_data):
10643 * sysdep.c (wait_for_termination, sys_subshell):
10644 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
10645 (IT_set_terminal_modes, __write, _rename, gethostname)
10646 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
10647 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
10648 the value of __DJGPP__.
10649 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
10650 compatibility code.
10651 * lread.c:
10652 * gmalloc.c (memalign):
10653 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
10654 * emacs.c (main):
10655 * dosfns.c (init_dosfns):
10656 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
10657
10658 2010-04-01 Eli Zaretskii <eliz@gnu.org>
10659
10660 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
10661 string with `cursor' property comes from an `after-string'
10662 overlay. (Bug#5816)
10663
10664 2010-04-01 Glenn Morris <rgm@gnu.org>
10665
10666 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
10667 Define as Makefile variables.
10668 (LIBX): Use above variables rather than directly using autoconf.
10669
10670 2010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
10671
10672 Clean up BSD_SYSTEM use.
10673 * xterm.c:
10674 * process.c:
10675 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
10676 for including <sys/ioctl.h>.
10677 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
10678 code is only used for MSDOS.
10679
10680 2010-03-31 Juri Linkov <juri@jurta.org>
10681
10682 * image.c: Add `Qextension_data'.
10683 (syms_of_image): Initialize and staticpro `Qextension_data'.
10684 (Fimage_metadata): Rename from `Fimage_extension_data'.
10685 (gif_load): Put GIF extension data to the property
10686 `Qextension_data'.
10687
10688 2010-03-31 Chong Yidong <cyd@stupidchicken.com>
10689
10690 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
10691 * nsterm.h: Fix prototype.
10692
10693 2010-03-31 Eli Zaretskii <eliz@gnu.org>
10694
10695 * xdisp.c (highlight_trailing_whitespace): Support highlight of
10696 trailing whitespace in right-to-left rows.
10697
10698 2010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
10699
10700 Get rid of the direct_output optimizations.
10701 * keyboard.c (nonundocount): Remove extern declaration.
10702 (command_loop_1): Remove brittle optimisation for cheap and
10703 common operations.
10704 * xdisp.c (redisplay_internal): Don't bother checking
10705 redisplay_performed_directly_p any more.
10706 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
10707 any more.
10708 * dispnew.c (redisplay_performed_directly_p)
10709 (direct_output_for_insert, direct_output_forward_char):
10710 * dispextern.h (redisplay_performed_directly_p)
10711 (direct_output_for_insert, direct_output_forward_char): Remove.
10712 * cmds.c (nonundocount): Make it static.
10713
10714 2010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
10715
10716 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
10717
10718 2010-03-31 Jan Djärv <jan.h.d@swipnet.se>
10719
10720 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
10721 invisible (Bug#5766).
10722
10723 2010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
10724
10725 * xdisp.c (x_consider_frame_title, update_window_cursor):
10726 Remove HAVE_NS conditionals.
10727 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
10728
10729 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
10730 filename for the title.
10731 (ns_set_doc_edited): Do nothing if the selected window is a
10732 minibuffer window.
10733
10734 * nsterm.h: Add prototypes for ns_set_name_as_filename and
10735 ns_set_doc_edited.
10736
10737 * nsterm.m: Remove unneeded prototype.
10738
10739 2010-03-31 Glenn Morris <rgm@gnu.org>
10740
10741 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
10742 in the DOC file. (Bug#5336)
10743
10744 2010-03-31 Chong Yidong <cyd@stupidchicken.com>
10745
10746 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
10747
10748 2010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
10749
10750 * window.c (keys_of_window): Remove redundant/overridden bindings.
10751
10752 2010-03-30 Eli Zaretskii <eliz@gnu.org>
10753
10754 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
10755 Restore original behavior when the iterator is not bidi_p.
10756
10757 2010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
10758
10759 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
10760
10761 2010-03-30 Eli Zaretskii <eliz@gnu.org>
10762
10763 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
10764 are outside the range of cached character positions.
10765
10766 2010-03-30 Juanma Barranquero <lekktu@gmail.com>
10767
10768 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
10769
10770 2010-03-30 Eli Zaretskii <eliz@gnu.org>
10771
10772 Initial support for bidirectional editing.
10773
10774 * Makefile.in (obj): Include bidi.o.
10775 (bidi.o): New target.
10776
10777 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
10778 ($(BLD)/bidi.$(O)): New target.
10779
10780 * bidi.c: New file.
10781
10782 * buffer.h (struct buffer): New members bidi_display_reordering
10783 and bidi_paragraph_direction.
10784
10785 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
10786 and bidi_paragraph_direction.
10787 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
10788 and bidi-paragraph-direction.
10789 (Fbuffer_swap_text): Swap the values of
10790 bidi_display_reordering and bidi_paragraph_direction.
10791
10792 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
10793 (bidi_type_t, bidi_dir_t): New types.
10794 (bidi_saved_info, bidi_stack, bidi_it): New structures.
10795 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
10796 prev_stop, base_level_stop, and eol_pos.
10797 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
10798 (IT_STACK_SIZE): Enlarge to 5.
10799 (struct glyph_row): New member reversed_p.
10800 <string_buffer_position>: Update prototype.
10801 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
10802 glyph_row if bidi_it.paragraph_dir == R2L.
10803 (struct glyph): New members resolved_level and bidi_type.
10804
10805 * dispnew.c (direct_output_forward_char): Give up if we need bidi
10806 processing or buffer's direction is right-to-left.
10807 (prepare_desired_row): Preserve the reversed_p flag.
10808 (row_equal_p): Compare the reversed_p attributes as well.
10809
10810 * xdisp.c (init_iterator): Initialize it->bidi_p.
10811 Call bidi_init_it and set it->paragraph_embedding from the current
10812 buffer's value of bidi_paragraph_direction.
10813 (reseat_1): Initialize bidi_it.first_elt.
10814 (set_iterator_to_next, next_element_from_buffer): Use the value of
10815 paragraph_embedding to determine the paragraph direction.
10816 (set_iterator_to_next): Under bidi reordering, call
10817 bidi_get_next_char_visually. Call bidi_paragraph_init if the
10818 new_paragraph flag is set in the bidi iterator.
10819 (next_element_from_buffer): If bidi_it.first_elt is set,
10820 initialize paragraph direction and find the first character to
10821 display in the visual order. If reseated to a middle of a line,
10822 prime the bidi iterator starting at the line's beginning.
10823 Handle the situation where we overstepped stop_charpos due to
10824 non-linearity of the bidi iteration. Likewise for when we back up
10825 beyond the previous stop_charpos. When moving across stop_charpos,
10826 record it in prev_stop.
10827 (display_line): Set row->end and it->start for the next row to the
10828 next character in logical order. Always extend reversed_p rows to
10829 the end of line, even if they end at ZV. Copy the reversed_p flag
10830 to the next glyph row. Keep calling set_cursor_from_row for
10831 bidi-reordered rows even if we already have a possible candidate
10832 for cursor position. Set row_end after all the row's glyphs have
10833 been produced, by looping over the glyphs. Record the position
10834 after EOL in it->eol_pos, and use it to set end_pos of the last
10835 row produced for a continued line.
10836 <Qright_to_left, Qleft_to_right>: New variables.
10837 (syms_of_xdisp): Initialize and staticpro them.
10838 (string_buffer_position_lim): New function.
10839 (string_buffer_position): Most of code moved to
10840 string_buffer_position_lim. Last argument and return value are
10841 now EMACS_INT; all callers changed.
10842 (set_cursor_from_row): Rewritten to support bidirectional text and
10843 reversed glyph rows.
10844 (text_outside_line_unchanged_p, try_window_id):
10845 Disable optimizations if we are reordering bidirectional text and the
10846 paragraph direction can be affected by the change.
10847 (append_glyph, append_composite_glyph)
10848 (produce_image_glyph, append_stretch_glyph): Set the
10849 resolved_level and bidi_type members of each glyph.
10850 (append_glyph): If the glyph row is reversed, prepend the glyph
10851 rather than appending it.
10852 (handle_stop_backwards): New function.
10853 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
10854 (reseat): Call handle_stop_backwards to recompute prev_stop and
10855 base_level_stop for the new position.
10856 (handle_invisible_prop): Under bidi iteration, skip invisible text
10857 using bidi_get_next_char_visually. If we are `reseat'ed, init the
10858 paragraph direction. Update IT->prev_stop after skipping
10859 invisible text.
10860 (move_it_in_display_line_to): New variables prev_method
10861 and prev_pos. Compare for strict equality in
10862 BUFFER_POS_REACHED_P.
10863 (try_cursor_movement): Examine all the candidate rows that occlude
10864 point, to return the best match. If rows are bidi-reordered
10865 and point moved backwards, back up to the row that is not a
10866 continuation line, and start looking for a suitable row from
10867 there.
10868
10869 * term.c (append_glyph): Reverse glyphs by pre-pending them,
10870 rather than appending, if the glyph_row's reversed_p flag is set.
10871 Set the resolved_level and bidi_type members of each glyph.
10872
10873 * .gdbinit (pbiditype): New command.
10874 (pgx): Use it to display bidi level and type of the glyph.
10875 (pitx): Display some bidi information about the iterator.
10876 (prowlims, pmtxrows): New commands.
10877
10878 2010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
10879
10880 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
10881 * s/usg5-4.h (LIBS_DEBUG):
10882 * s/irix6-5.h (C_DEBUG_SWITCH):
10883 * s/gnu-linux.h (LIBS_DEBUG):
10884 * s/darwin.h (LIBS_DEBUG):
10885 * s/bsd-common.h (LIBS_DEBUG):
10886 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
10887 * m/iris4d.h (LIBS_DEBUG):
10888 * m/hp800.h (LIBS_DEBUG): Remove definitions.
10889
10890 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
10891 (LIBS_DEBUG): Remove definition.
10892
10893 2010-03-27 Chong Yidong <cyd@stupidchicken.com>
10894
10895 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
10896 Windows.
10897
10898 2010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10899
10900 * process.c (Fmake_network_process): Don't call turn_on_atimers around
10901 `connect' (Bug#5723).
10902
10903 2010-03-25 Helmut Eller <eller.helmut@gmail.com>
10904
10905 * process.c (Fmake_network_process): Call `select' for interrupted
10906 `connect' rather than creating new socket (Bug#5173).
10907
10908 2010-03-24 Jan Djärv <jan.h.d@swipnet.se>
10909
10910 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
10911
10912 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
10913
10914 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
10915
10916 2010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10917
10918 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
10919 XLoadQueryFont.
10920
10921 2010-03-24 Kenichi Handa <handa@m17n.org>
10922
10923 * coding.c (decode_coding_ccl): Fix previous change for the
10924 multibyte case.
10925 (encode_coding_ccl): Don't setup ccl program here. Fix for the
10926 case that the output buffer is fullfilled.
10927 (encode_coding): Setup ccl program here.
10928
10929 2010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
10930
10931 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
10932
10933 Simplify LIBS_MACHINE definitions.
10934 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
10935 * m/iris4d.h (LIBS_MACHINE): Likewise.
10936 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
10937 * s/aix4-2.h (LIBS_SYSTEM): ... here.
10938 * s/netbsd.h: Remove commented out code.
10939
10940 2010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
10941
10942 Remove dead code dealing with POSIX_SIGNALS.
10943 * atimer.c (set_alarm): Remove dead code, all USG systems define
10944 POSIX_SIGNALS.
10945 * data.c (arith_error): Likewise.
10946 * keyboard.c (input_available_signal, handle_user_signal)
10947 (interrupt_signal): Likewise.
10948 * process.c (sigchld_handler): Likewise.
10949 (create_process): Remove if 0 code. Remove HPUX conditional when
10950 !defined (POSIX_SIGNALS), it cannot be true.
10951 * syssignal.h: Remove USG5_4 and USG conditionals when
10952 !POSIX_SIGNALS, they cannot be true.
10953
10954 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
10955 NO_SOCK_SIGIO, not used anymore.
10956
10957 2010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
10958
10959 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
10960 support vax on BSDs.
10961
10962 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
10963 * s/aix4-2.h (ORDINARY_LINK): ... here.
10964
10965 2010-03-21 Andreas Schwab <schwab@linux-m68k.org>
10966
10967 * Makefile.in (abs_builddir): Define.
10968 (bootstrap_exe): Use it.
10969 (VPATH): Use $(srcdir) instead of @srcdir@.
10970
10971 2010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
10972
10973 * Makefile.in (bootstrap_exe): Use an absolute name.
10974
10975 2010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
10976
10977 Remove support for old GNU/Linux using libc version 5.
10978 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
10979 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
10980
10981 Consolidate redundant definitions in s/bsd-common.h.
10982 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
10983 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
10984 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
10985 doing it in all files that include this one.
10986 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
10987 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
10988 (LDAV_SYMBOL, KERNEL_FILE): Remove.
10989 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
10990 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
10991 (LDAV_SYMBOL, KERNEL_FILE): Remove.
10992 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
10993 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
10994 (LDAV_SYMBOL, KERNEL_FILE): Remove.
10995
10996 Consolidate redundant definitions.
10997 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
10998 it's undefined in all files that include this one.
10999 (POSIX_SIGNALS): Define here instead of doing it in all files that
11000 include this one.
11001 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
11002 (POSIX_SIGNALS): Do not define.
11003 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
11004 (POSIX_SIGNALS): Do not define.
11005 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
11006 (POSIX_SIGNALS): Do not define.
11007
11008 Remove support for old UNIX System V systems.
11009 * s/unixware.h: Add the contents of s/usg5-4-2.h.
11010 * s/usg5-4-2.h: Remove.
11011
11012 Remove support for Solaris on PPC and for old versions.
11013 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
11014 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
11015 that cancel each other.
11016 * s/sol2-3.h:
11017 * s/sol2-4.h:
11018 * s/sol2-5.h: Remove.
11019 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
11020 (NO_REMAP): Remove, unused.
11021 (UNEXEC): Move definition ...
11022 * s/aix4-2.h (UNEXEC): ... here.
11023
11024 * s/openbsd.h: Remove support for non-ELF and for systems that do
11025 not support shared libraries.
11026 * s/netbsd.h:
11027 * s/freebsd.h: Likewise.
11028
11029 2010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
11030
11031 Remove non-working support for lynxos 3.0.
11032 * s/lynxos.h: Remove file.
11033
11034 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
11035 COFF_BSD_SYMBOLS, nothing defines it anymore.
11036
11037 2010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
11038
11039 Remove obsolete uses of HAVE_SHM.
11040 * emacs.c (standard_args):
11041 (Fdump_emacs):
11042 (syms_of_emacs): Remove code depending on HAVE_SHM.
11043
11044 * alloc.c: Remove HAVE_SHM dependent definition.
11045
11046 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
11047
11048 2010-03-18 Glenn Morris <rgm@gnu.org>
11049
11050 * emacs.c (USAGE4): Hard-code bug address.
11051 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
11052 (bug_reporting_address): Remove.
11053 (main): Don't call bug_reporting_address.
11054
11055 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
11056 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
11057
11058 2010-03-15 Chong Yidong <cyd@stupidchicken.com>
11059
11060 * xfns.c (Fx_create_frame):
11061 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
11062 on left.
11063
11064 2010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
11065
11066 * editfns.c (Fformat): Account for string precision when computing
11067 field width (Bug#5710).
11068
11069 2010-03-12 Chong Yidong <cyd@stupidchicken.com>
11070
11071 * xfns.c (Fx_create_frame): Set default to Qright.
11072
11073 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
11074 all window systems.
11075
11076 2010-03-12 Eli Zaretskii <eliz@gnu.org>
11077
11078 These changes remove termcap.c from the build on Posix platforms.
11079 * Makefile.in (termcapobj): Move termcap.o from here...
11080 (MSDOS_OBJ): ...to here.
11081 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
11082 now identical to when LIBS_TERMCAP is defined.
11083
11084 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
11085
11086 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
11087
11088 * config.in: Regenerated. (See top-level ChangeLog.)
11089
11090 2010-03-10 Chong Yidong <cyd@stupidchicken.com>
11091
11092 * Branch for 23.2.
11093
11094 2010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
11095
11096 Cleanup setup of gl_state in various parts of the code.
11097 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
11098 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
11099 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
11100 (skip_chars):
11101 * regex.c (regex_compile): Use it.
11102 (re_compile_pattern): Don't set gl_state.current_syntax_table since
11103 it's now set in regex_compile when/if we need it.
11104
11105 2010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
11106
11107 Make it possible to C-g in a tight bytecode loop again (bug#5680).
11108 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
11109 (QUIT): Use it to consolidate code and remove redundancy.
11110 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
11111
11112 * regex.c (regex_compile): Setup gl_state as well.
11113
11114 * syntax.c (skip_chars): Setup gl_state (bug#3823).
11115 (in_classes): Use CONSP before XCAR/XCDR.
11116
11117 2010-03-03 Chong Yidong <cyd@stupidchicken.com>
11118
11119 * keymap.c (Fwhere_is_internal): Use Fequal to compare
11120 definitions, so that keyboard macros are correctly handled
11121 (Bug#5481).
11122
11123 2010-03-02 Eli Zaretskii <eliz@gnu.org>
11124
11125 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
11126 text that could be relocated inside the call to emacs_mule_char.
11127 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
11128 (CODING_DECODE_CHAR): Add a comment describing its purpose.
11129
11130 2010-03-02 Kenichi Handa <handa@m17n.org>
11131
11132 * character.c (parse_str_as_multibyte): Fix handling of the
11133 multibyte form of raw-bytes.
11134 (str_as_multibyte): Likewise.
11135
11136 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
11137 form of raw-bytes.
11138
11139 2010-02-28 Chong Yidong <cyd@stupidchicken.com>
11140
11141 * charset.c (load_charset_map_from_file)
11142 (load_charset_map_from_vector): Zero out allocated
11143 charset_map_entries before using them.
11144
11145 2010-02-27 Andreas Schwab <schwab@linux-m68k.org>
11146
11147 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
11148
11149 2010-02-27 Chong Yidong <cyd@stupidchicken.com>
11150
11151 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
11152 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
11153
11154 2010-02-26 Kenichi Handa <handa@m17n.org>
11155
11156 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
11157
11158 * xdisp.c (reseat_to_string): Fix previous change.
11159
11160 2010-02-26 David Reitter <david.reitter@gmail.com>
11161
11162 * nsfont.m (nsfont_draw): ns_antialias_text should be a
11163 Lisp_Object (Bug#4736).
11164
11165 2010-02-25 Kenichi Handa <handa@m17n.org>
11166
11167 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
11168
11169 2010-02-24 Jan Djärv <jan.h.d@swipnet.se>
11170
11171 * xterm.c (XTflash): Move declarations before statements.
11172
11173 * gtkutil.c (xg_get_gdk_display): Remove (unused).
11174 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
11175 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
11176 (xg_create_tool_bar): Remove unused variables.
11177 (x_wm_set_size_hint): Move declarations before statements.
11178 (xg_create_frame_widgets): Remove variable grav.
11179
11180 2010-02-21 Chong Yidong <cyd@stupidchicken.com>
11181
11182 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
11183
11184 2010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
11185
11186 * term.c (fatal): Add a final \n if needed (bug#5596).
11187
11188 2010-02-18 Chong Yidong <cyd@stupidchicken.com>
11189
11190 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
11191
11192 2010-02-18 Glenn Morris <rgm@gnu.org>
11193
11194 * callint.c (Finteractive): Doc fix.
11195
11196 2010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
11197
11198 * coding.c (record_conversion_result):
11199 Handle CODING_RESULT_INSUFFICIENT_DST.
11200 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
11201 memory allocation error.
11202
11203 2010-02-17 Kenichi Handa <handa@m17n.org>
11204
11205 * coding.c (decode_coding_ccl): Don't setup ccl program here.
11206 Fix for the case that the output buffer is fullfilled.
11207 (decode_coding): Setup ccl program here. Keep looping when the
11208 decoder stopped because the output buffer is
11209 fullfilled (bug#5534).
11210
11211 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
11212
11213 2010-02-13 Jan Djärv <jan.h.d@swipnet.se>
11214
11215 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
11216 bug #5571.
11217 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
11218 overdrawn.
11219
11220 2010-02-10 Jan Djärv <jan.h.d@swipnet.se>
11221
11222 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
11223 doing_interact here.
11224 (ice_connection_closed): New function.
11225 (x_session_check_input, smc_die_CB, ice_io_error_handler)
11226 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
11227 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
11228 returns I/O error.
11229 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
11230 bug #5512.
11231
11232 2010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
11233
11234 * nsfont.m (nsfont_open): The system's value for the font descent
11235 is negative, so round it down to avoid clipping.
11236
11237 2010-02-06 Chong Yidong <cyd@stupidchicken.com>
11238
11239 * charset.c (load_charset_map_from_file)
11240 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
11241 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
11242
11243 2010-02-05 Chong Yidong <cyd@stupidchicken.com>
11244
11245 * charset.c (load_charset_map_from_file): Allocate large
11246 charset_map_entries structure on the heap rather than the stack.
11247 (Bug#5526).
11248
11249 2010-01-31 Kenichi Handa <handa@m17n.org>
11250
11251 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
11252 size in NAME is invalid, return -1 (Bug#5396).
11253
11254 2010-01-31 Chong Yidong <cyd@stupidchicken.com>
11255
11256 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
11257 <deactivated@gmail.com> (Bug#3605).
11258
11259 2010-01-31 David De La Harpe Golden <david@harpegolden.net>
11260
11261 * fileio.c (Frename_file): Correctly rename symlinks to
11262 directories (Bug#5496).
11263
11264 2010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
11265
11266 * nsterm.m (ns_ring_bell): Handle visible bell like X.
11267
11268 2010-01-30 Andreas Schwab <schwab@linux-m68k.org>
11269
11270 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
11271
11272 2010-01-29 Chong Yidong <cyd@stupidchicken.com>
11273
11274 * frame.c (DEFAULT_ROWS): Change default to 35.
11275
11276 * xfns.c (x_default_font_parameter): Change default XFT font to
11277 monospace-10 (Bug#3643).
11278
11279 2010-01-29 Eli Zaretskii <eliz@gnu.org>
11280
11281 * w32inevt.c (key_event): Remove unnecessary comparison of
11282 event->uChar.AsciiChar with 128.
11283
11284 2010-01-28 Chong Yidong <cyd@stupidchicken.com>
11285
11286 * fileio.c (Frename_file): Fix last change (Bug#5487).
11287
11288 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
11289
11290 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
11291
11292 2010-01-28 Jan Djärv <jan.h.d@swipnet.se>
11293
11294 * xfns.c (Fx_create_frame): Remove window size matching code from
11295 2010-01-15.
11296 (x_get_current_desktop, x_get_desktop_workarea): Remove.
11297
11298 2010-01-27 Jason Rumney <jasonr@gnu.org>
11299
11300 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
11301 (key_event): Use unicode for characters 128 and higher (Bug#4567).
11302
11303 2010-01-27 Kenichi Handa <handa@m17n.org>
11304
11305 * regex.c (analyse_first): Fix setting of fastmap for unibyte
11306 pattern string (Bug#4209).
11307
11308 2010-01-27 David De La Harpe Golden <david@harpegolden.net>
11309
11310 * fileio.c (Frename_file): Call copy-directory and
11311 delete-directory for directories, in order to handle cross-device
11312 renaming (Bug#3353).
11313
11314 2010-01-25 Jan Djärv <jan.h.d@swipnet.se>
11315
11316 * xfns.c (Fx_create_frame): If frame height is too big, try
11317 sizes 24 and 10. Bug #3643.
11318
11319 2010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
11320
11321 Try and fix bug#788, hopefully for real this time.
11322 * keymap.c (shadow_lookup): Add `remap' arg.
11323 (describe_map, describe_vector): Update calls to shadow_lookup.
11324 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
11325 `remapped' so this flag is applicable to `sequence'. Be careful to
11326 perform remapping during shadow_lookup check of remapped_sequences.
11327
11328 2010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
11329
11330 * image.c (png_load): Use png_sig_cmp instead of the obsolete
11331 png_check_sig, which has been removed in libpng 1.4.
11332
11333 2010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
11334
11335 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
11336 lacks this header file).
11337
11338 2010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11339
11340 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
11341 as in Emacs 22.
11342
11343 2010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11344
11345 * lisp.h (make_pure_string): String pointer arg now points to const.
11346
11347 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
11348 args now point to const.
11349
11350 2010-01-22 Eli Zaretskii <eliz@gnu.org>
11351
11352 * lread.c (Fload): Don't treat files without .elc extension as
11353 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
11354 them. (bug#5303)
11355
11356 2010-01-20 Kenichi Handa <handa@m17n.org>
11357
11358 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
11359 treat the source as actual byte sequence.
11360
11361 2010-01-19 Alan Mackenzie <acm@muc.de>
11362
11363 Fix spurious before-change-functions invocation from (insert ?\n).
11364 * textprop.c (set_text_properties): Rename parameter
11365 `signal_after_change_p' to `coherent_change_p', and make the
11366 invocation of `modify_region' conditional on it.
11367
11368 2010-01-19 Jan Djärv <jan.h.d@swipnet.se>
11369
11370 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
11371 for debug purpose.
11372 (syms_of_xsettings): Declare xft-settings.
11373
11374 2010-01-18 Chong Yidong <cyd@stupidchicken.com>
11375
11376 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
11377
11378 2010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
11379
11380 * xterm.c (event_handler_gdk): Block input (Bug#5037).
11381
11382 2010-01-16 Chong Yidong <cyd@stupidchicken.com>
11383
11384 * emacs.c (standard_args): Adjust arg priorities to reflect how
11385 they are processed in startup.el.
11386
11387 2010-01-16 Andreas Schwab <schwab@linux-m68k.org>
11388
11389 * Makefile.in (lisp, shortlisp): Update.
11390
11391 2010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
11392
11393 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
11394 code, link the new kboard into all_kboard before running Lisp code,
11395 and protect the new terminal with GCPRO (Bug#5365).
11396 (x_term_init): Remove unused var `atom'.
11397 (x_delete_display, x_delete_terminal): Remove unused var `i'.
11398
11399 2010-01-15 Jan Djärv <jan.h.d@swipnet.se>
11400
11401 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
11402 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
11403 to find out usable size of the desktop. Don't make frames larger than
11404 this. Bug #3643.
11405
11406 2010-01-15 Kenichi Handa <handa@m17n.org>
11407
11408 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
11409
11410 2010-01-15 Chong Yidong <cyd@stupidchicken.com>
11411
11412 * nsterm.m (Qnone): Define.
11413
11414 * nsfns.m (Qnone): Move definition to nsterm.m.
11415
11416 2010-01-14 Kenichi Handa <handa@m17n.org>
11417
11418 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
11419 systems.
11420
11421 2010-01-14 Kenichi Handa <handa@m17n.org>
11422
11423 Make auto-composition work on all buffers even if they are
11424 fundamental mode.
11425
11426 * composite.c (Vauto_composition_mode): New variable.
11427 (composition_compute_stop_pos): Check Vauto_composition_mode
11428 instead of Vauto_composition_function.
11429 (composition_adjust_point, Ffind_composition_internal): Likewise.
11430 (syms_of_composite): Declare Lisp variable
11431 "auto-composition-mode" here.
11432
11433 2010-01-13 Chong Yidong <cyd@stupidchicken.com>
11434
11435 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
11436 during call to vendor-specific-keysyms (Bug#5365).
11437
11438 2010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11439
11440 * keyboard.c (input_available_signal) [SYNC_INPUT]:
11441 Call SIGNAL_THREAD_CHECK (Bug#5333).
11442
11443 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
11444 Call SIGNAL_THREAD_CHECK.
11445
11446 2010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
11447
11448 Try to fix bug#5314. This is probably not the final word, tho.
11449 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
11450 recent-auto-save-p as a side-effect.
11451 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
11452 * buffer.c (Fkill_buffer, reset_buffer):
11453 * editfns.c (Fsubst_char_in_region):
11454 * fileio.c (Finsert_file_contents, Fdo_auto_save)
11455 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
11456
11457 2010-01-13 Kenichi Handa <handa@m17n.org>
11458
11459 Display buffer name, etc. in mode line by composing correctly.
11460
11461 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
11462 STRING is not nil.
11463 (display_mode_element): Adjust for the change of
11464 decode_mode_spec and display_line.
11465 (decode_mode_spec): Change arg MULTIBYTE to STRING.
11466 (display_string): Handle the case that STRING is non-null and
11467 LISP_STRING is not nil.
11468
11469 * xterm.c (x_draw_composite_glyph_string_foreground):
11470 Pay attention to s->face->overstrike.
11471
11472 * composite.c (composition_reseat_it): Don't check PT if STRING is
11473 non nil.
11474
11475 2010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11476
11477 * keyboard.c (read_char): Don't apply previous change when current
11478 buffer is unchanged by command execution.
11479
11480 2010-01-12 Jan Djärv <jan.h.d@swipnet.se>
11481
11482 * keyboard.c (read_char): Return after executing from special map.
11483
11484 2010-01-12 Glenn Morris <rgm@gnu.org>
11485
11486 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
11487 bug-gnu-emacs rather than emacs-pretest-bug.
11488
11489 2010-01-11 Chong Yidong <cyd@stupidchicken.com>
11490
11491 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
11492 initializing the Lisp variables that depend on them.
11493
11494 2010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11495
11496 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
11497 Clear areas that will not be updated after change of menu bar lines.
11498 Clear the menu bar window's current matrix when the window gets empty.
11499
11500 2010-01-09 Chong Yidong <cyd@stupidchicken.com>
11501
11502 * intervals.h, textprop.c (extend_property_ranges): Return value
11503 and args changed. Discard properties that begin at or after the
11504 new end (Bug#5306).
11505
11506 * editfns.c (Fformat): Caller changed.
11507
11508 * nsterm.m (ns_set_default_prefs): Delete function.
11509 (syms_of_nsterm): Initialize ns_command_modifier,
11510 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
11511 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
11512
11513 * xdisp.c (pos_visible_p): Check for invisible text at the correct
11514 position (Bug#4040).
11515
11516 2010-01-09 Eli Zaretskii <eliz@gnu.org>
11517
11518 * editfns.c (Ffloat_time): Doc fix.
11519
11520 2010-01-09 Jan Djärv <jan.h.d@swipnet.se>
11521
11522 * xfns.c (Fx_create_frame): Don't create frame larger than display
11523 by default bug#3643.
11524
11525 2010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11526
11527 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
11528 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
11529 windows above internal border.
11530
11531 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
11532 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
11533 windows above internal border.
11534
11535 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
11536 tool bar windows specially.
11537
11538 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
11539
11540 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
11541 specially.
11542 (XTflash): Take account of menu bar height.
11543
11544 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
11545 specially.
11546
11547 2010-01-08 Jan Djärv <jan.h.d@swipnet.se>
11548
11549 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
11550 also be true before we can return early (bug #5339).
11551
11552 2010-01-06 David Reitter <david.reitter@gmail.com>
11553
11554 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
11555 (Fns_display_usable_bounds): Rewrite, computing bounds properly
11556 (Bug#3233).
11557
11558 2010-01-06 Jan Djärv <jan.h.d@swipnet.se>
11559
11560 * font.c (font_open_entity): Enable chache and call cached_font_ok
11561 for the driver if defined.
11562 (QCuser_spec): New symbol.
11563 (font_spec_from_name): Save name as user-spec.
11564 (font_load_for_lface): Keep user-spec instead of name.
11565 (font_open_by_name): Save name as user-spec.
11566 (syms_of_font): Initialize QCuser_spec.
11567 (font_clear_prop): Clear name if it exists in font (bug#5157).
11568
11569 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
11570 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
11571 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
11572
11573 * font.h (struct font_driver): Add cached_font_ok.
11574
11575 * xterm.c (x_clear_frame): Queue draw for scroll bars.
11576
11577 2010-01-05 Jan Djärv <jan.h.d@swipnet.se>
11578
11579 * xterm.c (x_new_font): Move code for setting rows/cols before
11580 resizing ...
11581 (x_set_window_size): ... to here. Bug #2568.
11582
11583 * gtkutil.c (xg_clear_under_internal_border): New function.
11584 (xg_frame_resized, xg_frame_set_char_size):
11585 Call xg_clear_under_internal_border.
11586 (xg_update_scrollbar_pos): Clear under old scroll bar position.
11587
11588 2010-01-05 Chong Yidong <cyd@stupidchicken.com>
11589
11590 * keyboard.c (read_key_sequence): Catch keyboard switch after
11591 making a new tty frame (Bug#5095).
11592
11593 2010-01-05 Kenichi Handa <handa@m17n.org>
11594
11595 * fontset.c (fontset_find_font): Fix getting the frame pointer.
11596
11597 2010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
11598
11599 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
11600 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
11601 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
11602
11603 2010-01-03 Michael Albinus <michael.albinus@gmx.de>
11604
11605 * dbusbind.c (xd_add_watch): Improve debug message.
11606 (xd_remove_watch): Improve debug message. If DATA is the session
11607 bus, unset D-Bus session environment.
11608 (Fdbus_init_bus): Pass the bus as argument to
11609 dbus_connection_set_watch_functions. (Bug#5283)
11610
11611 2010-01-01 Chong Yidong <cyd@stupidchicken.com>
11612
11613 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
11614
11615 * lread.c (syms_of_lread): Make it clearer that these are the
11616 names of loaded files (Bug#5068).
11617
11618 * eval.c (run_hook_with_args): Handle the case where the global
11619 value has the obsolete single-function form (Bug#5026).
11620
11621 2009-12-27 Chong Yidong <cyd@stupidchicken.com>
11622
11623 * minibuf.c (Fall_completions): Minor optimization.
11624
11625 2009-12-26 Eli Zaretskii <eliz@gnu.org>
11626
11627 * .gdbinit (pgx): Fix display of composite glyphs.
11628 Display cmp.from and cmp.to as well.
11629 (pitx): Fix last change.
11630
11631 2009-12-25 Kenichi Handa <handa@m17n.org>
11632
11633 * composite.h (composition_adjust_point): Update prototype.
11634
11635 * composite.c (composition_reseat_it): Don't make a composition
11636 spanning over point.
11637 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
11638 composable characters.
11639 (composition_adjust_point): New arg NEW_PT. Callers changed.
11640
11641 * keyboard.c (command_loop_1): Force redisplay if the last point
11642 was within a composition.
11643 (adjust_point_for_property): Don't adjust point for automatic
11644 composition when called after buffer modification.
11645
11646 2009-12-19 Eli Zaretskii <eliz@gnu.org>
11647
11648 * .gdbinit (pitx): Don't use enum names, use their values.
11649 Remove reference to non-existing value GET_FROM_COMPOSITION.
11650 (pgx): Don't use enum names, use their values.
11651 (pitmethod): New helper command.
11652 (pitx): Use it to display iteration method.
11653 (pgrowit): New command.
11654
11655 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
11656
11657 Update dependencies in Makefile.in.
11658
11659 * Makefile.in (alloc.o): Depend on termhooks.h.
11660 (atimer.o): Depend on blockinput.h.
11661 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
11662 and frame.h.
11663 (callint.o): Depend on systime.h, coding.h, and composite.h.
11664 (callproc.o): Depend on buffer.h.
11665 (casefiddle.o): Don't depend on charset.h.
11666 (casetab.o): Depend on character.h.
11667 (ccl.o): Depend on composite.h.
11668 (chartab.o): Depend on ccl.h.
11669 (cm.o): Depend on dispextern.h.
11670 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
11671 (coding.o): Don't depend on $(INTERVALS_H).
11672 (composite.o): Don't depend on dispextern.h explicitly (it's in
11673 $(INTERVALS_H)). Depend on ccl.h.
11674 (data.o): Depend on systime.h, coding.h, composite.h,
11675 dispextern.h, font.h, and ccl.h.
11676 (dired.o): Depend on composite.h.
11677 (dispnew.o): Depend on coding.h. Don't depend explicitly on
11678 composite.h (it's in $(INTERVALS_H)).
11679 (doc.o): Depend on systime.h, coding.h, and composite.h.
11680 (editfns.o): Don't depend explicitly on dispextern.h.
11681 (emacs.o): Depend on frame.h and coding.h.
11682 (eval.o): Depend on coding.h, composite.h, and xterm.h.
11683 (fileio.o): Depend on frame.h and commands.h. Don't depend
11684 explicitly on dispextern.h.
11685 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
11686 composite.h.
11687 (fns.o): Don't depend on termhooks.h.
11688 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
11689 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
11690 coding.h, $(INTERVALS_H), window.h, xterm.h.
11691 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
11692 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
11693 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
11694 fontset.h, ccl.h, and ftfont.h.
11695 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
11696 (gtkutil.o): Depend on dispextern.h and composite.h.
11697 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
11698 termhooks.h, and ccl.h.
11699 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
11700 (intervals.o): Depend on systime.h and coding.h.
11701 (keyboard.o): Depend on composite.h and coding.h.
11702 (keymap.o): Depend on coding.h and frame.h.
11703 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
11704 (macros.o): Depend on systime.h, coding.h, and composite.h.
11705 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
11706 and atimer.h.
11707 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
11708 dispextern.h explicitly.
11709 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
11710 Don't depend explicitly on dispextern.h and composite.h.
11711 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
11712 (regex.o): Don't depend on charset.h.
11713 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
11714 (search.o): Don't depend explicitly on composite.h.
11715 (sound.o): Depend on atimer.h and systime.h.
11716 (syntax.o): Don't depend explicitly on composite.h.
11717 (sysdep.o): Depend on coding.h and composite.h.
11718 (term.o): Depend on xterm.h and buffer.h.
11719 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
11720 (textprop.o): Don't depend on dispextern.h explicitly.
11721 (undo.o): Depend on dispextern.h.
11722 (window.o): Depend on coding.h and termhooks.h. Don't depend on
11723 dispextern.h and composite.h explicitly.
11724 (xdisp.o): Depend on ccl.h.
11725 (xfaces.o): Depend on coding.h and ccl.h.
11726 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
11727 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
11728 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
11729 ftfont.h.
11730 (xgselect.o): New dependency.
11731 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
11732 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
11733 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
11734 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
11735 (xsmfns.o): Depend on frame.h and dispextern.h.
11736 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
11737 sysselect.h.
11738
11739 2009-12-19 Andreas Schwab <schwab@linux-m68k.org>
11740
11741 * font.c (Fclear_font_cache): Pass correct cache argument to
11742 font_clear_cache.
11743
11744 2009-12-16 Andreas Schwab <schwab@linux-m68k.org>
11745
11746 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
11747 twice.
11748
11749 2009-12-15 Chong Yidong <cyd@stupidchicken.com>
11750
11751 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
11752 calling file-remote-p. Reported by Jim Meyering.
11753
11754 2009-12-15 Michael Albinus <michael.albinus@gmx.de>
11755
11756 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
11757 avoid compiler warnings. (Bug #5217)
11758
11759 2009-12-14 Kenichi Handa <handa@m17n.org>
11760
11761 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
11762 in 8-bit encoding.
11763
11764 2009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
11765
11766 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
11767 tooltip windows.
11768
11769 2009-12-13 Jan Djärv <jan.h.d@swipnet.se>
11770
11771 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
11772 Xatom_net_window_type.
11773
11774 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
11775 Xatom_net_window_type.
11776
11777 * xterm.c (my_log_handler): New function.
11778 (x_term_init): Set my_log_handler as log handler during gtk_init
11779 so we can filter out buggy messages. (Bug #5120).
11780
11781 * xterm.c (xg_scroll_callback): Parameter list changed,
11782 use parameter GtkScrollType to determine scroll/line/page.
11783 Only allow dragging if a button < 4 is grabbed (bug #5177).
11784 (xg_end_scroll_callback): New function.
11785 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
11786 xg_create_scroll_bar.
11787
11788 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
11789 (scroll_end_callback): Remove.
11790 (xg_create_scroll_bar): Add parameter end_callback, bind it to
11791 button-release-event. Replace value-changed event with change-value,
11792 bug #5177.
11793 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
11794 bug #5177.
11795
11796 * gtkutil.h (XG_LAST_SB_DATA): Remove.
11797 (xg_create_scroll_bar): Add GCallback end_callback.
11798
11799 * xftfont.c (QClcdfilter): New variable.
11800 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
11801 (syms_of_xftfont): Initialize QClcdfilter.
11802
11803 2009-12-12 Jan Djärv <jan.h.d@swipnet.se>
11804
11805 * xsettings.c (struct xsettings): Add member seen.
11806 (parse_xft_settings): Update member seen with what we have read.
11807 Return non-zero if Xft-settings have been parsed, 0 otherwise.
11808 (apply_xft_settings): Only update Xft settings with what member seen
11809 indicates as new.
11810
11811 2009-12-12 Eli Zaretskii <eliz@gnu.org>
11812
11813 * dispextern.h (struct text_pos): Use EMACS_INT.
11814 (struct glyph): Use EMACS_INT for charpos.
11815 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
11816 region_beg_charpos, region_end_charpos,
11817 redisplay_end_trigger_charpos, and also for
11818 iterator_stack_entry.end_charpos and
11819 iterator_stack_entry.stop_charpos.
11820
11821 2009-12-12 Jan Djärv <jan.h.d@swipnet.se>
11822
11823 * gtkutil.c (scroll_end_callback): New function (bug #5177).
11824 (xg_create_scroll_bar): Call scroll_end_callback on button release
11825 event (bug #5177).
11826 (xg_event_is_for_scrollbar): != replaced with ==.
11827
11828 2009-12-12 Kenichi Handa <handa@m17n.org>
11829
11830 * ftfont.c (struct ftfont_info): New member matrix.
11831 (ftfont_open): Setup xftfont_info->matrix.
11832 (MFLTFontFT): New member matrix.
11833 (FLOOR, CEIL, ROUND): New macros.
11834 (ftfont_get_metrics): Handle matrix transformation.
11835 (ftfont_shape_by_flt): New arg matrix. Callers changed.
11836
11837 * xftfont.c (struct xftfont_info): New member matrix.
11838 (xftfont_open): Setup xftfont_info->matrix.
11839
11840 2009-12-10 Kenichi Handa <handa@m17n.org>
11841
11842 * xdisp.c (append_space_for_newline): Consider face-remapping.
11843
11844 2009-12-09 Andreas Schwab <schwab@linux-m68k.org>
11845
11846 * xsettings.c: Include "keyboard.h".
11847
11848 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
11849
11850 Fix implicit function declarations.
11851 * cmds.c: Include "frame.h".
11852 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
11853 * frame.h: Move declaration of delete_frame outside of
11854 HAVE_WINDOW_SYSTEM.
11855
11856 2009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
11857
11858 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
11859
11860 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
11861 GTK builds.
11862
11863 2009-12-07 Andreas Schwab <schwab@linux-m68k.org>
11864
11865 * unexelf.c (unexec): Don't search for .data twice.
11866
11867 2009-12-05 Chong Yidong <cyd@stupidchicken.com>
11868
11869 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
11870 if push failed.
11871 (handle_line_prefix): Set avoid_cursor_p here. Check return value
11872 of push_display_prop (Bug#5000).
11873
11874 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
11875 value of font_list_entities (Bug#5085).
11876
11877 2009-12-04 Juanma Barranquero <lekktu@gmail.com>
11878
11879 Fix `string-to-number' to deal consistently with integers and floats.
11880 * lread.c (isfloat_string): New argument ignore_trailing to accept all
11881 trailing characters, not just whitespace.
11882 (read1): Pass new arg 0 to keep old behavior.
11883 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
11884 trailing chars, as it is already done for integers. Doc fixes.
11885 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
11886
11887 2009-12-04 Eli Zaretskii <eliz@gnu.org>
11888
11889 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
11890 Delete unused enumeration value.
11891
11892 2009-12-03 Eli Zaretskii <eliz@gnu.org>
11893
11894 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
11895
11896 2009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
11897
11898 * process.c (Fmake_network_process): Fix up the tests for
11899 "connectionless socket", so they DTRT for seqpacket sockets as well.
11900
11901 2009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
11902
11903 * process.c (Qseqpacket): New symbol.
11904 (HAVE_SEQPACKET): New macro.
11905 (Fmake_network_process): Accept new :type `seqpacket'.
11906 (init_process): Add `seqpacket' feature when applicable.
11907 (syms_of_process): Initialize Qseqpacket.
11908
11909 2009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11910
11911 * font.c (font_load_for_lface, font_open_by_name): Don't store name
11912 if entity is Qnil.
11913
11914 2009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
11915
11916 * print.c (print_preprocess): Preprocess the key_and_value table of
11917 hashtables, even tho they're "hidden" (bug#5082).
11918
11919 2009-11-29 Jan Djärv <jan.h.d@swipnet.se>
11920
11921 * frame.c (frame_make_pointer_invisible)
11922 (frame_make_pointer_visible): Declare f before statements.
11923
11924 2009-11-28 Eli Zaretskii <eliz@gnu.org>
11925
11926 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
11927 omitted dependencies on lisp.h.
11928
11929 2009-11-27 Jan Djärv <jan.h.d@swipnet.se>
11930
11931 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
11932 is NULL.
11933
11934 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
11935
11936 * frame.c (frame_make_pointer_invisible)
11937 (frame_make_pointer_visible): Just return if there isn't any selected
11938 frame.
11939
11940 * search.c (simple_search): Remove warning by making *p const.
11941
11942 2009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
11943
11944 * xdisp.c (power_letter): Remove duplicate const.
11945
11946 2009-11-25 Jan Djärv <jan.h.d@swipnet.se>
11947
11948 * term.c (delete_tty): Remove check for last terminal (bug#4970).
11949
11950 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
11951 defaults (bug #5025).
11952
11953 2009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
11954
11955 * insdel.c (adjust_markers_for_delete): Move it in the
11956 right direction! (bug#4803)
11957
11958 2009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11959
11960 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
11961
11962 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
11963
11964 2009-11-24 Glenn Morris <rgm@gnu.org>
11965
11966 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
11967
11968 2009-11-23 Jan Djärv <jan.h.d@swipnet.se>
11969
11970 * Makefile.in: Must create deps for ecrt0.o in its rule.
11971
11972 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
11973 because that is what Gtk+ font dialog understands.
11974
11975 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
11976 of Fcopy_sequence.
11977 (font_open_by_name): Put name given into QCname for font-object returned.
11978
11979 * frame.c (x_set_font): Save original font name as frame parameter
11980 font-parameter.
11981
11982 * xsettings.c (set_default_xft_settings): New function.
11983 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
11984 is found.
11985
11986 2009-11-22 Andreas Schwab <schwab@linux-m68k.org>
11987
11988 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
11989 searching backwards through multibyte buffer.
11990
11991 2009-11-21 Jan Djärv <jan.h.d@swipnet.se>
11992
11993 * xterm.c: #include xgselect.h.
11994 (x_initialize): Call xgselect_initialize.
11995
11996 * xsettings.c (something_changedCB): C++ comments => C comments.
11997 (init_gconf): Do not deal with any GLib file descriptors, xg_select
11998 does that now.
11999
12000 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
12001 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
12002 (scroll_bar_button_cb): Remove.
12003 (create_menus): C++ comments => C comments. Don't bind grab-notify
12004 event.
12005 (xg_create_scroll_bar): Don't bind button-press-event and
12006 button-release-event.
12007
12008 * process.c: Include xgselect.h if defined (USE_GTK) ||
12009 defined (HAVE_GCONF).
12010 (wait_reading_process_output): Call xg_select for the same condition.
12011
12012 * xgselect.c (xg_select): New function to better integrate with
12013 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
12014
12015 * xgselect.h: New file, declare xg_select, xgselect_initialize.
12016
12017 * Makefile.in (XOBJ): Add xgselect.o.
12018
12019 2009-11-21 Andreas Schwab <schwab@linux-m68k.org>
12020
12021 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
12022 Remove ignored second argument. All callers changed.
12023 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
12024 (RE_STRING_CHAR_AND_LENGTH): Likewise.
12025 * xdisp.c (string_char_and_length): Likewise.
12026
12027 2009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
12028
12029 * xterm.c (x_new_font):
12030 * print.c (print_object):
12031 * cmds.c (Fself_insert_command): Move declarations before statements.
12032
12033 2009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
12034
12035 * s/cygwin.h: Remove unneeded linker flags.
12036
12037 2009-11-20 Jan Djärv <jan.h.d@swipnet.se>
12038
12039 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
12040
12041 * xsettings.h: Declare xsettings_get_system_font.
12042
12043 * xsettings.c (xsettings_get_system_font): New function.
12044 (init_gconf): No use initiating gconf unless we have Xft also.
12045 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
12046 HAVE_GCONF.
12047
12048 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
12049 add a blank entry so it doesn't collapse into nothing.
12050
12051 2009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
12052
12053 * lread.c (Funintern): Comment out last change.
12054
12055 2009-11-19 Richard Stallman <rms@gnu.org>
12056
12057 * lread.c (Funintern): Error if symbol is t or nil.
12058
12059 2009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
12060
12061 * insdel.c (make_gap_larger): Don't make as many assumptions about the
12062 representation of Lisp integers.
12063 Reported by MJ Chan <mjchan.inbox@gmail.com>.
12064
12065 2009-11-17 Andreas Schwab <schwab@linux-m68k.org>
12066
12067 * lisp.h: Remove declaration of Ffont_get_system_font.
12068 * xfns.c: Move include of "xsettings.h".
12069 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
12070
12071 2009-11-17 Jan Djärv <jan.h.d@swipnet.se>
12072
12073 * xsettings.c (something_changedCB, Ffont_get_system_font):
12074 Check use_system_font.
12075 (syms_of_xsettings): DEFVAR font-use-system-font.
12076
12077 2009-11-17 Andreas Schwab <schwab@linux-m68k.org>
12078
12079 * xfns.c (x_default_font_parameter): Remove dead assignment.
12080
12081 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
12082
12083 2009-11-17 Jan Djärv <jan.h.d@swipnet.se>
12084
12085 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
12086 not have FC_LCD_*. #define them if not there.
12087
12088 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
12089
12090 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
12091
12092 * xterm.c (handle_one_xevent): Call xft_settings_event for
12093 ClientMessage, PropertyNotify and DestroyNotify.
12094 (x_term_init): If we have XFT, get DPI from Xft.dpi.
12095 Call xsettings_initialize.
12096
12097 * xftfont.c (xftfont_fix_match): New function.
12098 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
12099 Call xftfont_fix_match after XftFontMatch.
12100
12101 * xfont.c (xfont_driver): Initialize all members.
12102
12103 * xfns.c (x_default_font_parameter):
12104 Try font from Ffont_get_system_font.
12105 Do not get font from x_default_parameter if we got one from
12106 Ffont_get_system_font.
12107 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
12108
12109 * w32font.c (w32font_driver): Initialize all members.
12110
12111 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
12112
12113 * lisp.h: Declare syms_of_xsettings.
12114
12115 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
12116 Handle CONFIG_CHANGED_EVENT.
12117
12118 * ftfont.c (ftfont_filter_properties): New function.
12119
12120 * frame.c (x_set_font): Remove unused variable lval.
12121
12122 * font.h (struct font_driver): Add filter_properties.
12123
12124 * font.c (font_put_extra): Don't return if val is nil, it means
12125 boolean option is off.
12126 (font_parse_fcname): Collect all extra properties in extra_props
12127 and call filter_properties for all drivers with extra_props and
12128 font as parameter.
12129 (font_open_entity): Do not use cache, it does not pick up new
12130 fontconfig settings like hinting.
12131 (font_load_for_lface): If spec had a name in it, store it in entity.
12132
12133 * emacs.c (main): Call syms_of_xsettings.
12134
12135 * config.in: HAVE_GCONF is new.
12136
12137 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
12138 xsettings.o is new.
12139
12140 2009-11-17 Kenichi Handa <handa@m17n.org>
12141
12142 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
12143 back to the default font in case that no suitable font is found.
12144
12145 2009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
12146
12147 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
12148 Suggested by Chad Brown <yandros@mit.edu>.
12149 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
12150
12151 2009-11-16 Jan Djärv <jan.h.d@swipnet.se>
12152
12153 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
12154
12155 2009-11-14 Andreas Schwab <schwab@linux-m68k.org>
12156
12157 * Makefile.in: Ignore errors from mkdir when creating deps directory.
12158
12159 2009-11-14 Jan Djärv <jan.h.d@swipnet.se>
12160
12161 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
12162 has a parent.
12163
12164 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
12165 dependency files in deps/. Include those files into Makefile.
12166
12167 * config.in: Generated (AUTO_DEPEND).
12168
12169 2009-11-13 Michael Albinus <michael.albinus@gmx.de>
12170
12171 * dbusbind.c (Vdbus_registered_objects_table): Rename from
12172 Vdbus_registered_functions_table, because it contains also
12173 properties. Fix docstring.
12174 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
12175
12176 2009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
12177
12178 * alloc.c (mark_object): Don't reprocess marked strings.
12179 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
12180 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
12181
12182 2009-11-13 Kenichi Handa <handa@m17n.org>
12183
12184 * category.c (word_boundary_p): Adjust for the change of the
12185 semantics of Vword_combining_categories.
12186 (Vword_combining_categories): Describe the slight change of the
12187 semantics.
12188
12189 2009-11-13 Eli Zaretskii <eliz@gnu.org>
12190
12191 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
12192
12193 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
12194
12195 2009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
12196
12197 * xdisp.c (syms_of_xdisp): Fix typo in last change.
12198
12199 2009-11-12 Juanma Barranquero <lekktu@gmail.com>
12200
12201 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
12202
12203 2009-11-11 David Reitter <david.reitter@gmail.com>
12204
12205 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
12206 variables to fix 2009-11-09 change.
12207
12208 2009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
12209
12210 * process.c (ifflag_def): Make flag_sym constant.
12211 (Fnetwork_interface_info): Use a constant pointer.
12212 (ifflag_table):
12213 * xfns.c (cursor_bits):
12214 * xdisp.c (power_letter):
12215 * termcap.c (speeds, esctab):
12216 * sysdep.c (baud_convert):
12217 * keyboard.c (lispy_accent_codes, modifier_names):
12218 * image.c (xbm_format, xpm_format, pbm_format, png_format)
12219 (jpeg_format, tiff_format, gif_format, svg_format)
12220 (interlace_start, interlace_increment, gs_format):
12221 * gtkutil.c (separator_names):
12222 * fringe.c (swap_nibble):
12223 * fns.c (base64_value_to_char, base64_char_to_value):
12224 * fileio.c (make_temp_name_tbl):
12225 * coding.c (suffixes): Make constant.
12226
12227 * frame.c (make_initial_frame):
12228 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
12229 build_string.
12230 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
12231
12232 * s/freebsd.h:
12233 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
12234
12235 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
12236 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
12237
12238 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
12239 * xterm.c (syms_of_xterm):
12240 * xfaces.c (syms_of_xfaces):
12241 * xdisp.c (syms_of_xdisp):
12242 * lread.c (syms_of_lread):
12243 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
12244 build_string.
12245
12246 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
12247
12248 2009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
12249
12250 * fns.c (Fplist_get): Merge the active and the commented out code.
12251
12252 2009-11-10 Jan Djärv <jan.h.d@swipnet.se>
12253
12254 * keyboard.h: Declare timer_check.
12255
12256 * keyboard.c (timer_check_2): New function that does what the old
12257 timer_check did.
12258 (timer_check): Call timer_check_2 until -1 or a non-zero time is
12259 returned, i.e. don't return -1 with timers pending.
12260
12261 * process.c: Remove extern declaration of timer_check.
12262
12263 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
12264 even if timer_check returned -1.
12265
12266 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
12267 xg_dialog_data.
12268 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
12269 the event loop.
12270 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
12271 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
12272 Destroy the dialog after xg_dialog_run.
12273
12274 2009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
12275
12276 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
12277
12278 2009-11-10 Jan Djärv <jan.h.d@swipnet.se>
12279
12280 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
12281
12282 2009-11-09 Juanma Barranquero <lekktu@gmail.com>
12283
12284 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
12285
12286 2009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
12287
12288 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
12289 w32menu.c, and nsmenu.m.
12290 Simplify the obsolete case where position is nil.
12291 (cleanup_popup_menu): New function, moved from nsmenu.m.
12292 (struct skp): Remove slot `notreal'.
12293 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
12294 adjust callers.
12295 (single_menu_item): Adjust call to parse_menu_item.
12296 (syms_of_menu): Defsubr x-popup-menu.
12297 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
12298 (keymap_panes): Don't export any more.
12299 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
12300 (xmenu_show): Declare.
12301 * keyboard.c (parse_menu_item): Remove arg `notreal'.
12302 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
12303 * keyboard.h (parse_menu_item): Update declaration.
12304 * xmenu.c (Fx_popup_menu): Remove.
12305 (syms_of_xmenu): Don't defsubr x-popup-menu.
12306 * w32menu.c (Fx_popup_menu): Remove.
12307 (syms_of_w32menu): Don't defsubr x-popup-menu.
12308 * nsmenu.m (cleanup_popup_menu): Remove.
12309 (ns_menu_show): Rename from ns_popup_menu and remove all the code
12310 moved to menu.c's Fx_popup_menu.
12311 (Fx_popup_menu): Remove.
12312 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
12313 menu_items (it's done in menu.c already).
12314
12315 2009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
12316
12317 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
12318 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
12319
12320 2009-11-08 Chong Yidong <cyd@stupidchicken.com>
12321
12322 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
12323 xmenu_show. Hide any tooltip before opening a menu.
12324 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
12325 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
12326
12327 2009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
12328
12329 Let integers use up 2 tags to give them one extra bit and thus double
12330 their range.
12331 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
12332 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
12333 New macros.
12334 (enum Lisp_Type): Use them. Give explicit values.
12335 (Lisp_Type_Limit): Remove.
12336 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
12337 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
12338 Pay attention to USE_2_TAGS_FOR_INTS.
12339 (INTEGERP): Use LISP_INT_TAG_P.
12340 * fns.c (internal_equal): Simplify the default case.
12341 (sxhash): Use case_Lisp_Int.
12342 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
12343 any more.
12344 (Ftype_of): Use case_Lisp_Int.
12345 (store_symval_forwarding): Take into account the fact that Ints can
12346 now have more than one tag.
12347 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
12348 (buffer_slot_type_mismatch):
12349 * xfaces.c (face_attr_equal_p):
12350 * print.c (print_object):
12351 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
12352 Use case_Lisp_Int.
12353
12354 2009-11-06 Eli Zaretskii <eliz@gnu.org>
12355
12356 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
12357
12358 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
12359 warning.
12360
12361 2009-11-06 Jan Djärv <jan.h.d@swipnet.se>
12362
12363 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
12364
12365 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
12366
12367 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
12368 ButtonPressRelease and MotionNotify (bug#4870).
12369
12370 2009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
12371
12372 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
12373
12374 * xterm.c (syms_of_xterm):
12375 * xselect.c (syms_of_xselect):
12376 * xmenu.c (syms_of_xmenu):
12377 * xfns.c (syms_of_xfns):
12378 * xfaces.c (syms_of_xfaces):
12379 * xdisp.c (syms_of_xdisp):
12380 * window.c (syms_of_window):
12381 * w32fns.c (syms_of_w32fns):
12382 * undo.c (syms_of_undo):
12383 * textprop.c (syms_of_textprop):
12384 * terminal.c (syms_of_terminal):
12385 * syntax.c (syms_of_syntax):
12386 * sound.c (syms_of_sound):
12387 * search.c (syms_of_search):
12388 * print.c (syms_of_print):
12389 * minibuf.c (syms_of_minibuf):
12390 * macros.c (syms_of_macros):
12391 * keymap.c (syms_of_keymap, initial_define_key)
12392 (initial_define_lispy_key):
12393 * keyboard.c (syms_of_keyboard):
12394 * insdel.c (syms_of_insdel):
12395 * image.c (syms_of_image):
12396 * fringe.c (syms_of_fringe):
12397 * frame.c (syms_of_frame):
12398 * fontset.c (syms_of_fontset):
12399 * fns.c (syms_of_fns):
12400 * fns.c (syms_of_fns):
12401 * fileio.c (syms_of_fileio):
12402 * fileio.c (syms_of_fileio):
12403 * eval.c (syms_of_eval):
12404 * doc.c (syms_of_doc):
12405 * dispnew.c (syms_of_display):
12406 * dired.c (syms_of_dired):
12407 * dbusbind.c (syms_of_dbusbind):
12408 * data.c (syms_of_data):
12409 * composite.c (syms_of_composite):
12410 * coding.c (syms_of_coding):
12411 * cmds.c (syms_of_cmds):
12412 * charset.c (define_charset_internal, syms_of_character):
12413 * ccl.c (syms_of_ccl):
12414 * category.c (syms_of_category, init_category_once):
12415 * casetab.c (syms_of_casetab):
12416 * casefiddle.c (syms_of_casefiddle):
12417 * callint.c (syms_of_callint):
12418 * bytecode.c (syms_of_bytecode):
12419 * buffer.c (keys_of_buffer, syms_of_buffer):
12420 * alloc.c (syms_of_alloc):
12421 * process.c (syms_of_process, init_process):
12422 * lread.c (syms_of_lread, init_obarray):
12423 * font.c (build_style_table):
12424 * emacs.c (syms_of_emacs, main): Replace calls to intern with
12425 intern_c_string, calls to make_pure_string with
12426 make_pure_c_string. Use pure_cons instead of Fcons.
12427
12428 * process.c (socket_options): Make it const.
12429 (set_socket_option, init_process): Use a const pointer.
12430
12431 * lread.c (intern_c_string): New function.
12432 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
12433 (defvar_int): Uset it. Make the name const char*.
12434
12435 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
12436 (defvar_int): Update prototypes.
12437 (DEFUN, EXFUN): Support for prototypes is now required.
12438 (intern_c_string): New prototype.
12439 (struct Lisp_Subr): Make symbol_name constant.
12440
12441 * font.c (struct table_entry): Remove unused member. Make NAMES
12442 constant.
12443 (weight_table, slant_table, width_table): Make constant.
12444
12445 * emacs.c (struct standard_args): Make name and longname constant.
12446
12447 * character.h (DEFSYM): Use intern_c_string.
12448
12449 2009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
12450
12451 * alloc.c (make_pure_c_string): New function.
12452
12453 * eval.c (Fautoload): Purecopy all arguments.
12454
12455 2009-11-05 Kenichi Handa <handa@m17n.org>
12456
12457 * fileio.c (Finsert_file_contents): Be sure set coding-system of
12458 the buffer in case of replace.
12459
12460 2009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
12461
12462 * puresize.h (BASE_PURESIZE): Increase to 1620000.
12463
12464 2009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
12465
12466 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
12467 when applicable (bug#4851).
12468
12469 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
12470 (P_): Support for prototypes is now required.
12471
12472 2009-10-31 Chong Yidong <cyd@stupidchicken.com>
12473
12474 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
12475 (Bug#4827).
12476
12477 2009-10-30 Eli Zaretskii <eliz@gnu.org>
12478
12479 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
12480
12481 2009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
12482
12483 * puresize.h (BASE_PURESIZE): Increase to 1470000.
12484
12485 * lread.c (Fload): Purecopy the file name when building
12486 Vpreloaded_file_list.
12487
12488 2009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
12489
12490 * w32fns.c (syms_of_w32fns): Change default value of
12491 w32-scroll-lock-modifier to nil. (Bug#2827)
12492
12493 2009-10-26 Juanma Barranquero <lekktu@gmail.com>
12494
12495 * minibuf.c (Fall_completions): Fix typos in docstring.
12496
12497 2009-10-26 Andreas Schwab <schwab@redhat.com>
12498
12499 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
12500
12501 2009-10-26 Juanma Barranquero <lekktu@gmail.com>
12502
12503 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
12504 For delta < 0, skip check that only makes sense when the mini-window
12505 is going to be enlarged. (Bug#4534)
12506
12507 2009-10-25 Chong Yidong <cyd@stupidchicken.com>
12508
12509 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
12510 string in menu maps (Bug#4471).
12511
12512 2009-10-24 Chong Yidong <cyd@stupidchicken.com>
12513
12514 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
12515 FRAME_NS_VIEW on terminal frames (Bug#4765).
12516
12517 2009-10-24 Andreas Schwab <schwab@linux-m68k.org>
12518
12519 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
12520 DBUS_TYPE_UINTnn separately to get proper sign extension.
12521
12522 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
12523 can properly handle unsigned types.
12524 (make_uid, make_gid): Remove.
12525
12526 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
12527 types again.
12528
12529 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
12530 (system_process_attributes): Likewise.
12531
12532 2009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
12533
12534 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
12535
12536 * eval.c (Fautoload): Purecopy the filename. Simplify.
12537
12538 * category.c (Fdefine_category): Purecopy docstring.
12539
12540 2009-10-23 Andreas Schwab <schwab@linux-m68k.org>
12541
12542 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
12543
12544 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
12545
12546 2009-10-23 Chong Yidong <cyd@stupidchicken.com>
12547
12548 * window.c (Fwindow_edges, Fwindow_pixel_edges)
12549 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
12550 (Bug#4775).
12551
12552 2009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
12553
12554 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
12555 (init_fileio_once):
12556 * lisp.h (init_fileio_once): Remove.
12557 * emacs.c (main): Don't call init_fileio_once.
12558
12559 2009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
12560
12561 * puresize.h (BASE_PURESIZE): Increase to 1430000.
12562
12563 2009-10-21 Andreas Schwab <schwab@linux-m68k.org>
12564
12565 * doprnt.c (doprnt): Fix overflow check.
12566
12567 2009-10-21 Jan Djärv <jan.h.d@swipnet.se>
12568
12569 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
12570
12571 * xterm.h (x_wait_for_event): Declare it.
12572
12573 * xterm.c (pending_event_wait): New variable.
12574 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
12575 see pending_event_wait.eventtype.
12576 (handle_one_xevent): Don't change gravity when parent changes.
12577 (x_new_font): Call change_frame_size with new rows/columns before we
12578 try to resize the frame.
12579 (x_wait_for_event): New function.
12580 (x_set_window_size_1): Don't change gravity unless change_gravity
12581 is set.
12582 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
12583 don't change frame size, instead wait for the ConfigureNotify.
12584 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
12585 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
12586 (x_initialize): Initialize pending_event_wait.
12587
12588 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
12589 size.
12590
12591 * widget.c (EmacsFrameSetValues): Add comment.
12592 (EmacsFrameSetCharSize): Just call x_set_window_size.
12593
12594 * gtkutil.c (xg_frame_set_char_size): Flush events and call
12595 x_wait_for_event.
12596 (flush_and_sync): Remove again.
12597 (xg_get_font_name): Suggest monospace if no previous font is known.
12598
12599 2009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
12600
12601 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
12602 8th bit, since that only made sense in the ASCII world (bug#4751).
12603
12604 2009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12605
12606 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
12607 processing pending events when event is filtered for input method.
12608 (Bug#3681)
12609
12610 2009-10-20 Juanma Barranquero <lekktu@gmail.com>
12611
12612 * fns.c: Add #endif accidentally removed in previous change.
12613
12614 2009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
12615
12616 * fns.c: Remove code for unsupported system: MAC_OS.
12617 * image.c: Likewise. Include setjmp.h.
12618
12619 2009-10-19 Jan Djärv <jan.h.d@swipnet.se>
12620
12621 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
12622 pixel -1 (bug #4742).
12623
12624 2009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
12625
12626 * process.c (create_pty): Remove conditionals for no longer
12627 supported systems: UNIPLUS and RTU.
12628
12629 * xterm.c:
12630 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
12631
12632 * alloc.c: Do not define struct catchtag.
12633 * eval.c: Move struct catchtag definition ...
12634 * lisp.h: ... here.
12635
12636 * image.c: Move png.h #include earlier to avoid warnings.
12637
12638 * xterm.c:
12639 * xsmfns.c:
12640 * xselect.c:
12641 * xrdb.c:
12642 * xmenu.c:
12643 * xftfont.c:
12644 * xfont.c:
12645 * xfns.c:
12646 * xfaces.c:
12647 * xdisp.c:
12648 * window.c:
12649 * widget.c:
12650 * w32xfns.c:
12651 * w32uniscribe.c:
12652 * w32term.c:
12653 * w32select.c:
12654 * w32reg.c:
12655 * w32proc.c:
12656 * w32menu.c:
12657 * w32inevt.c:
12658 * w32heap.c:
12659 * w32font.c:
12660 * w32fns.c:
12661 * w32console.c:
12662 * w32.c:
12663 * w16select.c:
12664 * vm-limit.c:
12665 * unexsol.c:
12666 * unexec.c:
12667 * unexcw.c:
12668 * unexaix.c:
12669 * undo.c:
12670 * tparam.c:
12671 * textprop.c:
12672 * terminfo.c:
12673 * terminal.c:
12674 * termcap.c:
12675 * term.c:
12676 * syntax.c:
12677 * sound.c:
12678 * sheap.c:
12679 * search.c:
12680 * scroll.c:
12681 * region-cache.c:
12682 * regex.c:
12683 * ralloc.c:
12684 * process.c:
12685 * print.c:
12686 * nsterm.m:
12687 * nsselect.m:
12688 * nsmenu.m:
12689 * nsimage.m:
12690 * nsfont.m:
12691 * nsfns.m:
12692 * msdos.c:
12693 * minibuf.c:
12694 * menu.c:
12695 * marker.c:
12696 * macros.c:
12697 * keymap.c:
12698 * keyboard.c:
12699 * intervals.c:
12700 * insdel.c:
12701 * indent.c:
12702 * gtkutil.c:
12703 * ftxfont.c:
12704 * ftfont.c:
12705 * fringe.c:
12706 * frame.c:
12707 * fontset.c:
12708 * font.c:
12709 * fns.c:
12710 * floatfns.c:
12711 * filelock.c:
12712 * fileio.c:
12713 * emacs.c:
12714 * editfns.c:
12715 * dosfns.c:
12716 * doprnt.c:
12717 * doc.c:
12718 * dispnew.c:
12719 * dired.c:
12720 * dbusbind.c:
12721 * data.c:
12722 * composite.c:
12723 * coding.c:
12724 * cmds.c:
12725 * cm.c:
12726 * chartab.c:
12727 * charset.c:
12728 * character.c:
12729 * ccl.c:
12730 * category.c:
12731 * casetab.c:
12732 * casefiddle.c:
12733 * callproc.c:
12734 * callint.c:
12735 * bytecode.c:
12736 * buffer.c:
12737 * atimer.c: Include setjmp.h. (Bug#4643)
12738
12739 2009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
12740
12741 Remove leftover table unibyte_to_multibyte_table.
12742 * character.c (unibyte_to_multibyte_table): Remove.
12743 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
12744 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
12745 * character.h (UNIBYTE_TO_CHAR): New macro.
12746 (MAKE_CHAR_MULTIBYTE): Use it.
12747 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
12748 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
12749 (message_dolog, set_message_1):
12750 * search.c (Freplace_match):
12751 * editfns.c (Fcompare_buffer_substrings):
12752 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
12753 (concat):
12754 * insdel.c (copy_text, count_size_as_multibyte):
12755 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
12756 * term.c (produce_glyphs):
12757 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
12758 * regex.c (RE_CHAR_TO_MULTIBYTE):
12759 * cmds.c (internal_self_insert):
12760 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
12761
12762 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
12763
12764 2009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
12765
12766 * puresize.h (BASE_PURESIZE): Increase to 1310000.
12767
12768 2009-10-16 Juanma Barranquero <lekktu@gmail.com>
12769
12770 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
12771
12772 2009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
12773
12774 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
12775 still needed under Tiger.
12776
12777 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
12778
12779 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
12780 __Apple__.
12781
12782 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
12783
12784 2009-10-15 Kenichi Handa <handa@m17n.org>
12785
12786 * print.c (print_object): Escape a symbol like "2E10" too.
12787
12788 2009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
12789
12790 Cleanups and changes for 64-bit compile under Snow Leopard.
12791 Based on suggestions by Erik Charlebois.
12792
12793 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
12794
12795 * nsfont.m (ns_char_width): Replace deprecated call.
12796 (ns_findfonts, nsfont_list_family): Use long format in printf, and
12797 cast argument.
12798 (nsfont_open): Use ns_char_width() everywhere.
12799 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
12800
12801 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
12802
12803 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
12804 where appropriate.
12805
12806 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
12807 where appropriate.
12808 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
12809 Use stringWithUTF8String.
12810 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
12811
12812 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
12813 Add formal protocol mention to inheritance.
12814 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
12815
12816 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
12817 Fix printf format.
12818 (ns_query_color): Use CGFloat where appropriate.
12819 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
12820 (EmacsScroller-mouseDown:): Use long format in printf, and cast
12821 argument.
12822
12823 * config.in (NS_HAVE_NSINTEGER): Drop.
12824
12825 * dbusbind.c (dbus-method-return-internal)
12826 (dbus-method-error-internal): Use long format in printf, and cast
12827 argument.
12828
12829 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
12830 in printf, and cast argument.
12831
12832 * process.c (list_processes_1): Use long format in printf, and
12833 cast argument.
12834
12835 2009-10-11 Glenn Morris <rgm@gnu.org>
12836
12837 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
12838
12839 2009-10-08 Jan Djärv <jan.h.d@swipnet.se>
12840
12841 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
12842 menu bar with a small width so it doesn't enlarge the frame.
12843
12844 2009-10-08 Juanma Barranquero <lekktu@gmail.com>
12845
12846 * fontset.c (Fset_fontset_font): Fix typos in error messages.
12847
12848 2009-10-06 Glenn Morris <rgm@gnu.org>
12849
12850 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
12851 SOME_MACHINE_LISP (this enters indirectly via DOC).
12852
12853 2009-10-05 Eli Zaretskii <eliz@gnu.org>
12854
12855 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
12856
12857 2009-10-04 Eli Zaretskii <eliz@gnu.org>
12858
12859 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
12860 Doc fix.
12861
12862 2009-10-03 Martin Rudalics <rudalics@gmx.at>
12863
12864 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
12865
12866 2009-10-02 Michael Albinus <michael.albinus@gmx.de>
12867
12868 * lisp.h (Qdelete_directory_internal): Remove, because it is not
12869 used anymore outside fileio.c.
12870
12871 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
12872
12873 2009-10-01 Juanma Barranquero <lekktu@gmail.com>
12874
12875 * lisp.h (Qdelete_directory_internal):
12876 Declare, instead of Qdelete_directory.
12877
12878 * w32fns.c (Fsystem_move_file_to_trash): Use it.
12879
12880 2009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
12881
12882 * eval.c (Fcalled_interactively_p): Add `kind' argument.
12883
12884 2009-10-01 Michael Albinus <michael.albinus@gmx.de>
12885
12886 * fileio.c (Fdelete_directory_internal): Rename from
12887 Fdelete_directory. It is not a command anymore. It has no file
12888 name handler.
12889
12890 2009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
12891
12892 * xdisp.c (get_next_display_element): Use an enum in last change.
12893
12894 2009-09-28 Kenichi Handa <handa@m17n.org>
12895
12896 * xdisp.c (get_next_display_element): Pay attention to
12897 unibyte_display_via_language_environment in handling
12898 Vnobreak_char_display.
12899
12900 2009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
12901
12902 * nsterm.h (ns_app_name): New extern variable.
12903
12904 * nsterm.m (ns_app_name): New variable.
12905 (ns_term_init): Set and use it.
12906 (ns_term_shutdown): Use it.
12907
12908 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
12909 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
12910
12911 * nsfns.m (ns_set_name_iconic, ns_set_name)
12912 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
12913 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
12914
12915 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
12916 Remove double-casting in client_data comparison.
12917
12918 2009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12919
12920 * keyboard.c (make_lispy_event): Remember last wheel direction.
12921 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
12922
12923 2009-09-26 Glenn Morris <rgm@gnu.org>
12924
12925 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
12926 internal.elc. Add term/pc-win.elc.
12927 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
12928 term/x-win.elc.
12929 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
12930 term/w32-win.elc.
12931 (NS_SUPPORT): New.
12932 (lisp): Add NS_SUPPORT.
12933 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
12934
12935 2009-09-25 David Reitter <david.reitter@gmail.com>
12936
12937 * nsmenu.m (EmacsMenu-clear): Recognize application menu
12938 on Mac OS X 10.6+ (bug#4513).
12939
12940 2009-09-24 Juanma Barranquero <lekktu@gmail.com>
12941
12942 * frame.c (xrdb_get_resource): Return nil for empty string resources;
12943 some parts of Emacs code (like font selection) don't grok them.
12944 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
12945
12946 2009-09-24 Andreas Schwab <schwab@redhat.com>
12947
12948 * coding.c (decode_coding_iso_2022): Fix operator precedence.
12949
12950 2009-09-24 Juanma Barranquero <lekktu@gmail.com>
12951
12952 * dired.c (Fdirectory_files): Fix typo in docstring.
12953
12954 2009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
12955
12956 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
12957 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
12958 (EmacsScroller-setPosition:portion:whole:): Remove -display call
12959 under GNUstep.
12960 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
12961
12962 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
12963 glyph advancement.
12964
12965 2009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
12966
12967 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
12968 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
12969
12970 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
12971 deleted (bug #4492).
12972
12973 * nsfont.m (Vns_reg_to_script): New lisp variable.
12974 (syms_of_nsfont): Declare it.
12975 (ns_registry_to_script): New function.
12976 (ns_get_req_script): Call it.
12977 (ns_findfonts): Don't give up on non-unicode registry.
12978
12979 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
12980
12981 2009-09-20 Tom Tromey <tromey@redhat.com>
12982
12983 * eval.c (find_handler_clause): Make stack-trace-on-error work in
12984 batch mode (bug#4228).
12985
12986 2009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
12987
12988 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
12989 carefully. (Bug #4339)
12990
12991 2009-09-18 Chong Yidong <cyd@stupidchicken.com>
12992
12993 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
12994
12995 2009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
12996
12997 * emacs.c (inhibit_x_resources): Update doc string for NS.
12998 (main) [HAVE_NS]: Don't process --no-init-file option.
12999 Remove legacy code for -NXHost. Fix error printf in daemon case.
13000
13001 * nsterm.h (ns_no_defaults): Remove.
13002
13003 * nsterm.m (ns_no_defaults): Remove.
13004 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
13005 (ns_use_qd_smoothing): Remove legacy variable.
13006 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
13007 don't update the NSWindow itself.
13008 (EmacsView-windowWillUseStandardFrame:defaultFrame:):
13009 Improve state detection and store user rect ourselves. (Bug #3581)
13010
13011 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
13012 ns_use_qd_smoothing.
13013
13014 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
13015 platform versions. Drop support for emacs-20-style face specs.
13016 (x-close-connection): Drop PSFlush() under OS X.
13017 (x-focus-frame): Activate the app first. (Bug #4180)
13018
13019 2009-09-17 Juanma Barranquero <lekktu@gmail.com>
13020
13021 * emacs.c (inhibit_x_resources): New variable.
13022 (main) [HAVE_NS]: Don't process --quick command line option.
13023 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
13024
13025 * lisp.h (inhibit_x_resources): Declare it extern.
13026
13027 * w32reg.c (x_get_string_resource):
13028 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
13029
13030 2009-09-17 Eli Zaretskii <eliz@gnu.org>
13031
13032 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
13033 Add lisp/term/internal.elc.
13034
13035 2009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
13036
13037 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
13038 (bug#4461).
13039
13040 2009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
13041
13042 * puresize.h (BASE_PURESIZE): Increase to 1290000.
13043
13044 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
13045 (OBJECTS_MACHINE): Remove, unused.
13046
13047 2009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
13048
13049 * frame.c (x_get_resource_string): Remove unused.
13050
13051 2009-09-15 Jan Djärv <jan.h.d@swipnet.se>
13052
13053 * xterm.c (x_new_font): Call change_frame_size before calling
13054 x_set_window_size, in case frame size won't change.
13055
13056 * frame.c (x_set_font): Remove dead code.
13057
13058 2009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
13059
13060 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
13061
13062 2009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
13063
13064 * lread.c (Fload): Don't output a message after loading an obsolete
13065 package any more (done in Lisp now).
13066
13067 2009-09-12 Chong Yidong <cyd@stupidchicken.com>
13068
13069 * fns.c (syms_of_fns): Doc fix (Bug#4227).
13070
13071 2009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
13072
13073 * keymap.c (Fwhere_is_internal): Use nconc2.
13074
13075 2009-09-11 Alan Mackenzie <acm@muc.de>
13076
13077 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
13078 batch mode.
13079
13080 2009-09-11 Andreas Schwab <schwab@linux-m68k.org>
13081
13082 * xdisp.c (display_mode_element): Detect cycles.
13083
13084 2009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
13085
13086 * keymap.c (where_is_internal): Don't erroneously return nil right after
13087 filling the cache.
13088 (where_is_internal_1): Fix up typo.
13089
13090 2009-09-11 Glenn Morris <rgm@gnu.org>
13091
13092 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
13093 share a common doc-string.
13094
13095 2009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
13096
13097 * keymap.c (get_keymap): Return the actual keymap symbol rather than
13098 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
13099
13100 * keymap.c (QCadvertised_binding): New constant.
13101 (syms_of_keymap): Initialize it.
13102 (Fwhere_is_internal): Try and use bindings from :advertised-binding
13103 if applicable.
13104
13105 2009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
13106
13107 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
13108 (parse_menu_item): Streamline since bindings are recomputed all the
13109 time anyway. Don't bother checking Vdefine_key_rebound_commands any
13110 more and don't support lmenu's menu-alias any more either.
13111
13112 * keymap.c (where_is_internal_data): Make noindirect a boolean.
13113 (where_is_internal): Strip it down to only traverse the keymaps.
13114 Move the cache handling from Fwhere_is_internal to here.
13115 (Fwhere_is_internal): Move the handling of remapping and the choice of
13116 the best binding from where_is_internal to here.
13117 Unify the cached/noncached paths, so remapping is also handled
13118 correctly when the cache is used, and so the cache can be used to
13119 speed up remap-handling when applicable.
13120 Give preference to non-remapped bindings.
13121 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
13122 non-remapped bindings.
13123 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
13124 command remapping.
13125
13126 * xdisp.c (display_mode_element): Move list length limit from 50 to
13127 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
13128
13129 2009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
13130
13131 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
13132
13133 2009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
13134
13135 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
13136 (Bug#4334)
13137
13138 * keymap.c (where_is_internal): Filter out shadowed remappings.
13139 Assume that where_is_internal returns unshadowed bindings to simplify
13140 the code and get rid of the gotos. Use ASIZE.
13141
13142 2009-09-04 Jan Djärv <jan.h.d@swipnet.se>
13143
13144 * xterm.c (x_focus_changed): If we get a focusout and pointer
13145 is invisible, make it visible.
13146
13147 * xterm.h: Remove condition for declaration of
13148 x_*_window_to_frame.
13149
13150 2009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
13151
13152 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
13153 initial terminal as well.
13154
13155 2009-09-02 Jan Djärv <jan.h.d@swipnet.se>
13156
13157 * xterm.h: Rename x_non_menubar_window_to_frame to
13158 x_menubar_window_to_frame.
13159
13160 * xterm.c: Remove declarations also in xterm.h.
13161 (XTmouse_position): Do not return valid positions
13162 for clicks in the menubar and the toolbar for Gtk+.
13163
13164 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
13165 if the widget for the event has the same top level as a frame,
13166 return the frame.
13167 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
13168 internal windows, bug #4122.
13169 (x_non_menubar_window_to_frame): Remove.
13170
13171 2009-09-02 Glenn Morris <rgm@gnu.org>
13172
13173 * buffer.c (default-major-mode): Move most of the doc from here...
13174 (major-mode): ... to here.
13175
13176 2009-08-30 Nick Roberts <nickrob@snap.net.nz>
13177
13178 * process.c (wait_reading_process_output): Keep the descriptor
13179 when pty is used by a non-child process, e.g., in I/O buffer of
13180 GDB this allows inferior to be restarted.
13181
13182 2009-08-29 Eli Zaretskii <eliz@gnu.org>
13183
13184 * xdisp.c (redisplay_internal): Remove redundant test and collapse
13185 both branches into one.
13186
13187 2009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
13188
13189 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
13190 (main): Use enable-multibyte-characters rather than
13191 default-enable-multibyte-characters. Output a warning message when
13192 running a unibyte session.
13193
13194 2009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13195
13196 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
13197 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
13198 (copy_data_segment): Also copy __program_vars section.
13199 (copy_dyld_info) [LC_DYLD_INFO]: New function.
13200 (dump_it) [LC_DYLD_INFO]: Use it.
13201
13202 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
13203
13204 2009-08-28 Eli Zaretskii <eliz@gnu.org>
13205
13206 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
13207 $(SRC)/buildobj.h.
13208 (buildobj.h): Rename from $(SRC)/buildobj.h.
13209 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
13210 $(SRC)/buildobj.h.
13211 (clean): Add buildobj.h.
13212
13213 2009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
13214
13215 * print.c (print_object): Set escapeflag to 1 when printing
13216 hashtable keys and values.
13217
13218 2009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
13219
13220 * lread.c (read_integer): Use doubles (and potentially return a float
13221 number) as we do in string-to-number.
13222 (read1): Use strtol to read integers, signal errors on strtol's
13223 overflow and use floats if strtol's output is too large for
13224 Elisp integers.
13225
13226 2009-08-27 Eli Zaretskii <eliz@gnu.org>
13227
13228 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
13229 (make-buildobj-SH): Fix last change.
13230 (SRC): Move to before where it's first used.
13231
13232 2009-08-27 Kenichi Handa <handa@m17n.org>
13233
13234 * process.c (send_process): Use encode_coding_object instead of
13235 encode_coding_string to perform eol-conversion even if the string
13236 is unibyte.
13237
13238 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
13239 character.
13240
13241 * cmds.c (Fself_insert_command): Avoid unnecessay
13242 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
13243
13244 2009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
13245
13246 * callproc.c (Fcall_process): Remove always true #if.
13247
13248 * lisp.h: Replace #if 0 code for checking with text pointing to
13249 the --enable-checking configure flag.
13250
13251 * emacs.c (main): Mention the --enable-profiling configure flag
13252 instead of using CFLAGS.
13253
13254 2009-08-26 Ken Raeburn <raeburn@raeburn.org>
13255
13256 * Makefile.in (buildobj.h): New target.
13257 (doc.o): Depend on it.
13258 (temacs${EXEEXT}): Don't generate buildobj.lst.
13259 (mostlyclean): Delete buildobj.h, not buildobj.lst.
13260 * makefile.w32-in ($(SRC)/buildobj.h): New target.
13261 ($(BLD)/doc.$(O)): Depend on it.
13262 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
13263 provided by Eli Zaretskii.)
13264 ($(TEMACS)): Don't generate buildobj.lst.
13265 * doc.c: Include buildobj.h.
13266 (buildobj): New static variable.
13267 (Fsnarf_documentation): Use it, instead of opening and reading
13268 buildobj.lst.
13269
13270 2009-08-25 Michael Albinus <michael.albinus@gmx.de>
13271
13272 * dbusbind.c (Fdbus_call_method)
13273 (Fdbus_call_method_asynchronously): Use English numeric format for
13274 timeout values in doc string.
13275
13276 2009-08-25 Kenichi Handa <handa@m17n.org>
13277
13278 * alloc.c (mark_char_table): New function.
13279 (mark_object): Use mark_char_table for a char-table.
13280
13281 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
13282 (CHAR_TABLE_REF): Use it.
13283
13284 2009-08-23 Ken Raeburn <raeburn@raeburn.org>
13285
13286 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
13287 before invoking the newly build emacs to check for load-path
13288 shadowing.
13289
13290 2009-08-22 Glenn Morris <rgm@gnu.org>
13291
13292 * Makefile.in (bootstrap_exe): New variable.
13293 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
13294 Use ${bootstrap_exe}.
13295
13296 2009-08-22 Eli Zaretskii <eliz@gnu.org>
13297
13298 * coding.h (encode_coding_string): Don't encode unibyte strings.
13299 (Bug#4047)
13300
13301 2009-08-22 Michael Albinus <michael.albinus@gmx.de>
13302
13303 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
13304
13305 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
13306 intended as hotfix only.
13307 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
13308
13309 2009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
13310
13311 * nsterm.m (ns_get_color): Update documentation properly for last
13312 change, and clean up loose ends in the code left by it.
13313 Fix longstanding bug with 16-bit hex parsing, and add support for
13314 yet another X11 format (rgb:r/g/b) for compatibility.
13315 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
13316 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
13317
13318 2009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
13319
13320 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
13321
13322 2009-08-20 Michael Albinus <michael.albinus@gmx.de>
13323
13324 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
13325 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
13326 (xd_initialize, xd_pending_messages): Check, whether
13327 $DBUS_SESSION_BUS_ADDRESS is set.
13328
13329 2009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13330
13331 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
13332
13333 * nsterm.m (ns_get_color): Remove incompatible color formats again.
13334
13335 2009-08-20 Glenn Morris <rgm@gnu.org>
13336
13337 * emacs.c (system-type): Doc fix.
13338
13339 2009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
13340
13341 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
13342 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
13343
13344 2009-08-18 Michael Albinus <michael.albinus@gmx.de>
13345
13346 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
13347 New functions.
13348 (xd_initialize): Revert change from 2009-08-16.
13349
13350 2009-08-18 Kenichi Handa <handa@m17n.org>
13351
13352 * fontset.c (Ffontset_font): If a nil element is found in a
13353 font-group vector, return nil.
13354
13355 2009-08-17 Chong Yidong <cyd@stupidchicken.com>
13356
13357 * process.c (status_notify): Don't perform redisplay.
13358 (Fdelete_process, list_processes_1, process_send_signal):
13359 Expliticly perform redisplay.
13360 (wait_reading_process_output): Always check process status, but
13361 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
13362
13363 2009-08-17 Ken Raeburn <raeburn@raeburn.org>
13364
13365 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
13366 (XFLOAT_INIT): New macro for storing a float value.
13367 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
13368 * fns.c (sxhash): Copy out the value of a float in order to
13369 examine its bytes.
13370 * dbusbind.c (xd_append_arg): Likewise.
13371
13372 * emacs.c (main): Don't call syms_of_data twice.
13373
13374 2009-08-16 Michael Albinus <michael.albinus@gmx.de>
13375
13376 * dbusbind.c (xd_initialize): Add connection file descriptor to
13377 input_wait_mask, in order to let select() detect, whether a new
13378 message has been arrived.
13379 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
13380
13381 2009-08-15 Michael Albinus <michael.albinus@gmx.de>
13382
13383 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
13384 New functions.
13385
13386 * lisp.h (xd_pending_messages): Declare.
13387
13388 * keyboard.c (readable_events): Call xd_pending_messages.
13389
13390 2009-08-15 Chong Yidong <cyd@stupidchicken.com>
13391
13392 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
13393
13394 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
13395
13396 * buffer.c (set_buffer_internal_1)
13397 (swap_out_buffer_local_variables): Check for unbound local
13398 variables (Bug#4138).
13399
13400 2009-08-14 Eli Zaretskii <eliz@gnu.org>
13401
13402 * process.c (create_pty): Fix last change.
13403
13404 2009-08-13 Chong Yidong <cyd@stupidchicken.com>
13405
13406 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
13407 (xbm_load_image): Caller changed.
13408 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
13409
13410 2009-08-13 Nick Roberts <nickrob@snap.net.nz>
13411
13412 * process.c (create_pty): New function.
13413 (Fstart_process): Use it to allow Emacs to just associate a pty
13414 with the buffer. See associated change in gdb-mi.el.
13415 (list_processes_1): Deal with no program name.
13416 (start_process_unwind): Use pid == -2 to mean no process.
13417
13418 2009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
13419
13420 * cmds.c (nonundocount): New global variable.
13421 (keys_of_cmds): Initialize it.
13422 (Fself_insert_command): Use it to combine upto 20 sequential chars
13423 into a single undo entry, just like the Qself_insert_command code in
13424 keyboard.c does.
13425 Call frame_make_pointer_invisible, also like the Qself_insert_command
13426 code in keyboard.c does.
13427 * keyboard.c (command_loop_1): Use the new global nonundocount rather
13428 than its own local replacement for it.
13429
13430 2009-08-10 Ken Raeburn <raeburn@raeburn.org>
13431
13432 * fns.c (concat): Don't re-set string length to its current value.
13433
13434 * coding.h (decode_coding_string, encode_coding_string):
13435 Use SBYTES macro.
13436
13437 * doprnt.c (doprnt_lisp): Delete unused function.
13438 (doprnt): Merge with doprnt1, discarding lispstrings code.
13439 * lisp.h (doprnt_lisp): Don't declare.
13440
13441 2009-08-07 Juri Linkov <juri@jurta.org>
13442
13443 * puresize.h (BASE_PURESIZE): Increase to 1270000.
13444
13445 2009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
13446
13447 * print.c (syms_of_print): Undo previous change.
13448
13449 2009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
13450
13451 * lread.c (read1, syms_of_lread): Read hashtables back from the
13452 readable format.
13453
13454 * print.c (print_preprocess, print_object): Print hashtables fully
13455 and readably.
13456 (syms_of_print): Provide 'hashtable-print-readable.
13457
13458 2009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
13459
13460 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
13461 no family set.
13462 (nsfont_open): Handle case when entity has no family.
13463
13464 2009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
13465
13466 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
13467 element, not a list, for match case.
13468
13469 2009-07-28 Kenichi Handa <handa@m17n.org>
13470
13471 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
13472 rigidly.
13473
13474 * xfont.c (xfont_list_pattern): Don't ignore the return value of
13475 font_parse_xlfd. Check font properties more rigidly.
13476
13477 2009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
13478
13479 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
13480 bsd-common.h.
13481
13482 2009-07-27 Kenichi Handa <handa@m17n.org>
13483
13484 * xfaces.c (face_with_height): Call font_clear_prop.
13485
13486 2009-07-26 Chong Yidong <cyd@stupidchicken.com>
13487
13488 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
13489
13490 * xterm.c (x_term_init): Use Qx.
13491
13492 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
13493
13494 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
13495 (ns_get_color): Revert 2009-07-16 change.
13496
13497 2009-07-25 Eli Zaretskii <eliz@gnu.org>
13498
13499 * lread.c (syms_of_lread) <force_load_messages>: New variable.
13500 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
13501
13502 2009-07-25 Ken Raeburn <raeburn@raeburn.org>
13503
13504 * coding.h (decode_coding_string, encode_coding_string):
13505 Use SCHARS macro.
13506
13507 * lread.c: Rewrite 2009-07-21 changes.
13508 (load_depth): Delete.
13509 (Qload_in_progress): New variable.
13510 (load_unwind): Don't reference load_depth or load_in_progress.
13511 (Fload): Likewise; specbind Qload_in_progress instead.
13512 (init_lread): Don't initialize load_depth.
13513 (syms_of_lread): Initialize and protect Qload_in_progress.
13514
13515 2009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
13516
13517 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
13518
13519 2009-07-23 Yavor Doganov <yavor@gnu.org>
13520
13521 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
13522
13523 2009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
13524
13525 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
13526 Bugs 3792, 3720, 2402.
13527 (ns_lookup_indexed_color): Check for bad index.
13528 (ns_index_color): Init unused slot to 0.
13529 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
13530 Bug 3714, possibly 3082.
13531
13532 2009-07-22 Jason Rumney <jasonr@gnu.org>
13533
13534 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
13535 Position IME window at cursor (Bug#2570).
13536 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
13537 (globals_of_w32fns): Dynamically load functions required above.
13538
13539 * w32term.c (w32_draw_window_cursor): Send message to reposition
13540 any IME window.
13541
13542 2009-07-21 Chong Yidong <cyd@stupidchicken.com>
13543
13544 * fileio.c: Revert 2009-07-16 changes.
13545 (Vauto_save_include_big_deletions): New variable.
13546 (Fdo_auto_save): Disable auto-save only if
13547 auto-save-include-big-deletions is nil.
13548
13549 2009-07-21 Chong Yidong <cyd@stupidchicken.com>
13550
13551 * xdisp.c (move_it_to): For continued lines ending in a tab, take
13552 the overflowed pixels into account (Bug#3879).
13553
13554 2009-07-21 Ken Raeburn <raeburn@raeburn.org>
13555
13556 * lread.c (load_depth): New variable.
13557 (Fload, load_unwind, init_lread): Set it to the load recursion
13558 depth; set load_in_progress as a simple boolean based on the
13559 current load_depth. (Bug#3892)
13560
13561 2009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
13562
13563 * nsfont.m (ns_has_attribute): Remove.
13564 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
13565
13566 2009-07-18 Juri Linkov <juri@jurta.org>
13567
13568 * process.c (Fset_process_query_on_exit_flag): Mention killing
13569 a buffer in docstring.
13570
13571 2009-07-17 Kenichi Handa <handa@m17n.org>
13572
13573 * casetab.c (shuffle): Fix the logic of setting up the cycle.
13574
13575 2009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13576
13577 * nsfns.m (Fns_set_alpha): Remove function.
13578 (syms_of_nsfns): Don't defsubr it.
13579
13580 * nsterm.m (ns_get_color): Remove incompatible color formats.
13581 (ns_color_to_lisp): Generate #rrggbb color format string.
13582
13583 2009-07-16 Richard Stallman <rms@gnu.org>
13584
13585 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
13586 (Fset_buffer_auto_saved): Handle save_length = -2.
13587
13588 2009-07-16 Chong Yidong <cyd@stupidchicken.com>
13589
13590 * xterm.c (Qx_gtk_map_stock): New var.
13591
13592 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
13593 of calling intern each time.
13594
13595 2009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13596
13597 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
13598 does tiling.
13599
13600 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
13601
13602 2009-07-14 Kenichi Handa <handa@m17n.org>
13603
13604 * font.c (font_vconcat_entity_vectors): New function.
13605 (struct font_sort_data): New member font_driver_preference.
13606 (font_compare): Check font_driver_preference.
13607 (font_sort_entities): The format of the first argument changed.
13608 (font_delete_unmatched): Likewise.
13609 (font_list_entities): The return type changed.
13610 (font_select_entity): The format of the second argument changed.
13611 (font_find_for_lface): Adjuste for the above changes.
13612 Don't suppress the checking of C even if the repertory supports it.
13613 (Flist_fonts): Adjust for the above changes.
13614
13615 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
13616 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
13617 Reject a font who has adstyle property that is different from a
13618 langname derived from registry property.
13619 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
13620
13621 2009-07-13 Eli Zaretskii <eliz@gnu.org>
13622
13623 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
13624 local copy of dirfilename.
13625
13626 2009-07-13 Kenichi Handa <handa@m17n.org>
13627
13628 * chartab.c (sub_char_table_ref_and_range): Fix the range check
13629 against max_char.
13630
13631 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
13632 calling XSYMBOL (sym).
13633
13634 2009-07-11 Eli Zaretskii <eliz@gnu.org>
13635
13636 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
13637 New function.
13638 (directory_files_internal) [WINDOWSNT]:
13639 Bind w32-get-true-file-attributes to either t or nil, depending whether
13640 the filesystem of the directory is fast or slow.
13641
13642 * w32.c (logon_network_drive): Don't assume PATH is an absolute
13643 file name.
13644 (is_slow_fs): New function.
13645 (stat): Use it to determine whether to issue more system calls to
13646 get accurate file attributes, when w32-get-true-file-attributes is
13647 `local'.
13648
13649 2009-07-10 Jan Djärv <jan.h.d@swipnet.se>
13650
13651 * xfns.c (Fx_select_font): Remember last font selected in
13652 x_last_font_name and use that the next time. Also try the frame
13653 parameter font-parameter as default to the font dialog.
13654
13655 2009-07-10 Kenichi Handa <handa@m17n.org>
13656
13657 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
13658
13659 2009-07-09 Eli Zaretskii <eliz@gnu.org>
13660
13661 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
13662
13663 * w32.c (stat): Treat UNC file names as residing on remote
13664 drives. (Bug#3542)
13665
13666 2009-07-09 Kenichi Handa <handa@m17n.org>
13667
13668 * fontset.c (fontset_find_font): Fix previous change.
13669
13670 2009-07-08 Michael Albinus <michael.albinus@gmx.de>
13671
13672 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
13673 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
13674 error flag.
13675
13676 2009-07-08 Kenichi Handa <handa@m17n.org>
13677
13678 * fontset.c (fontset_find_font): Fix the logic of handling
13679 charset_matched.
13680 (font_for_char): Delete unused var.
13681 (generate_ascii_font_name): Delete it.
13682
13683 * coding.h (JIS_TO_SJIS2): Fix the code range check.
13684
13685 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
13686 (encode_coding_sjis): Fix the code range check.
13687
13688 2009-07-07 Chong Yidong <cyd@stupidchicken.com>
13689
13690 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
13691 (Fexpand_file_name): Copy string data properly (Bug#3772).
13692
13693 2009-07-07 Jan Djärv <jan.h.d@swipnet.se>
13694
13695 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
13696 first MapNotify.
13697
13698 2009-07-07 Kenichi Handa <handa@m17n.org>
13699
13700 * character.h (unibyte_has_multibyte_table): Delete extern.
13701 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
13702
13703 * charset.c (Fset_charset_priority): Update charset_unibyte.
13704 (syms_of_charset): Initialize charset_unibyte.
13705
13706 * character.c (unibyte_has_multibyte_table): Delete it.
13707 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
13708 charset_unibyte.
13709 (multibyte_char_to_unibyte_safe): Likewise.
13710 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
13711
13712 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
13713 (x_produce_glyphs): Likewise.
13714
13715 * .gdbinit (xcharset): Fix the treating $arg0.
13716
13717 2009-07-04 Eli Zaretskii <eliz@gnu.org>
13718
13719 Emulation of `getloadavg' on MS-Windows.
13720 * w32.c: Include float.h.
13721 (g_b_init_get_native_system_info, g_b_init_get_system_times)
13722 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
13723 (get_native_system_info, get_system_times): New functions.
13724 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
13725 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
13726 (globals_of_w32): Initialize g_b_init_get_native_system_info,
13727 g_b_init_get_system_times, and num_of_processors.
13728
13729 2009-07-03 Jason Rumney <jasonr@gnu.org>
13730
13731 * w32term.c (w32_initialize): Use standard types.
13732
13733 2009-07-03 Eli Zaretskii <eliz@gnu.org>
13734
13735 * dired.c (Ffile_attributes): Decode user and group names by the
13736 locale's encoding. (Bug#3443)
13737
13738 2009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
13739
13740 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
13741 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
13742
13743 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
13744
13745 * term.c (init_tty): Remove spurious #ifdef.
13746
13747 * m/mips.h: Mention this file is also used for netbsd.
13748 * m/pmax.h: Remove file.
13749
13750 2009-07-03 Jan Djärv <jan.h.d@swipnet.se>
13751
13752 * xterm.h (struct x_display_info): Add invisible_cursor.
13753 (struct x_output): Add current_cursor.
13754
13755 * xterm.c (XTtoggle_invisible_pointer): New function.
13756 (x_define_frame_cursor): Don't define cursor if invisible or the
13757 same as before. Set current_cursor.
13758 (x_create_terminal): Set toggle_invisible_pointer_hook.
13759
13760 * xfns.c (make_invisible_cursor): New function.
13761 (x_set_mouse_color): Call make_invisible_cursor.
13762 Set current_cursor.
13763 (x_window): Set current_cursor.
13764
13765 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
13766
13767 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
13768 inserting a character.
13769 (read_avail_input): Call frame_make_pointer_visible.
13770
13771 * frame.c (Vmake_pointer_invisible): New variable.
13772 (frame_make_pointer_invisible, frame_make_pointer_visible):
13773 New functions.
13774 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
13775
13776 * frame.h: Declare frame_make_pointer_invisible and
13777 frame_make_pointer_visible.
13778 (struct frame): Add pointer_invisible.
13779
13780 2009-07-02 Jan Djärv <jan.h.d@swipnet.se>
13781
13782 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
13783 frame isn't visible.
13784 (xg_frame_resized): If width/height is -1, get size of window
13785 from X server.
13786
13787 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
13788 for MapNotify.
13789
13790 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
13791 here or call change_frame_size. Just call flush_and_sync.
13792 (flush_and_sync): Reintroduce.
13793
13794 2009-07-01 Jan Djärv <jan.h.d@swipnet.se>
13795
13796 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
13797
13798 * xterm.c (x_handle_net_wm_state): Also look for sticky.
13799 (x_term_init): Initialize Xatom_net_wm_state_sticky.
13800
13801 * frame.h: Declare Qsticky.
13802
13803 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
13804
13805 * nsfns.m (ns_frame_parm_handlers): Ditto.
13806
13807 * frame.c: Declare Qsticky.
13808 (frame_parms): Add sticky.
13809
13810 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
13811
13812 * xterm.h: Declare x_set_sticky.
13813
13814 * xterm.c (x_set_sticky): New function.
13815
13816 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
13817 (xg_tool_bar_menu_proxy): Attach enter/leave events to
13818 xg_tool_bar_proxy_help_callback.
13819
13820 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
13821
13822 * frame.c: Qmaximized is new.
13823 (x_set_frame_parameters): Do not handle fullscreen specially.
13824 Only set width and height if explicitly set.
13825 (x_set_fullscreen): Handle Qmaximized.
13826 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
13827 (syms_of_frame): Initialize Qmaximized.
13828
13829 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
13830 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
13831
13832 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
13833 for Expose event. Add call to x_check_fullscreen for MapNotify event.
13834 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
13835 set gravity to NorthWestGravity when USE_GTK.
13836 (set_wm_state): New function.
13837 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
13838 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
13839 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
13840 or the case when no window manager is running. That means remove calls
13841 to x_real_positions and x_fullscreen_adjust.
13842
13843 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
13844 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
13845 flush_and_sync.
13846 (xg_height_changed): New function.
13847 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
13848 and gtk_window_set_policy. Set frame gravity after parsing the
13849 geometry string.
13850 (xg_update_frame_menubar, free_frame_menubar)
13851 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
13852 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
13853 Remove calls to xg_frame_set_char_size.
13854
13855 2009-07-01 Kenichi Handa <handa@m17n.org>
13856
13857 * keyboard.c (decode_keyboard_code): New function.
13858 (tty_read_avail_input): Decode the input bytes if necessary.
13859
13860 * coding.c (setup_coding_system):
13861 Initialize coding->carryover_bytes to 0.
13862 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
13863 use Qno_conversion.
13864
13865 2009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13866
13867 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
13868
13869 2009-06-30 Chong Yidong <cyd@stupidchicken.com>
13870
13871 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
13872
13873 2009-06-30 Jason Rumney <jasonr@gnu.org>
13874
13875 * w32term.c (w32_initialize): Use GetModuleHandle for library that
13876 is already loaded.
13877 Set user model ID if supported (bug#1849).
13878
13879 2009-06-29 Jim Meyering <meyering@redhat.com>
13880
13881 Remove useless if-before-xfree test.
13882 * nsfont.m (nsfont_close): Remove useless test.
13883 * term.c (delete_tty): Likewise.
13884 * w32.c (system_process_attributes): Likewise.
13885 * w32font.c (w32font_close): Likewise.
13886 * xfaces.c (x_free_gc): Likewise.
13887 * xselect.c (buffer): Likewise.
13888
13889 2009-06-28 Andreas Schwab <schwab@linux-m68k.org>
13890
13891 * process.c (send_process): Keep decoded string in a local
13892 variable and protect it from GC. (Bug#3521)
13893
13894 2009-06-28 Eli Zaretskii <eliz@gnu.org>
13895
13896 * term.c (create_tty_output) [MSDOS]: #ifdef away.
13897 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
13898
13899 2009-06-28 Chong Yidong <cyd@stupidchicken.com>
13900
13901 * xdisp.c (start_display, handle_face_prop)
13902 (move_it_vertically_backward, cursor_row_fully_visible_p)
13903 (redisplay_window, try_window_id, produce_image_glyph):
13904 Delete some #ifdef-ed out code chunks that are now obsolete.
13905
13906 * xterm.c (x_update_window_begin, x_new_focus_frame)
13907 (x_scroll_bar_handle_click, handle_one_xevent)
13908 (handle_one_xevent, XTread_socket, x_focus_on_frame)
13909 (x_make_frame_visible, x_make_frame_invisible)
13910 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
13911 code chunks that are now obsolete.
13912
13913 2009-06-28 Michael Albinus <michael.albinus@gmx.de>
13914
13915 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
13916 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
13917 for hours, when optimzation is enabled.
13918 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
13919 (xd_read_message): Make them static.
13920
13921 2009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
13922
13923 * term.c (turn_on_face): Allow simultaneously bold and dim
13924 terminal faces (Bug#3530).
13925
13926 2009-06-27 Chong Yidong <cyd@stupidchicken.com>
13927
13928 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
13929
13930 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
13931 truncation glyphs (Bug#3686).
13932
13933 2009-06-27 Glenn Morris <rgm@gnu.org>
13934
13935 * m/pmax.h: Restore file, with only netbsd portions.
13936
13937 2009-06-26 David Reitter <david.reitter@gmail.com>
13938
13939 * nsterm.m (keydown): Avoid infinite loop.
13940
13941 2009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
13942
13943 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
13944 the arg FORCE_SYMBOL.
13945
13946 2009-06-25 Kenichi Handa <handa@m17n.org>
13947
13948 * fontset.c (fontset_find_font): When a usable rfont_def is found
13949 in a fallback font-group, make it the first element of the group.
13950
13951 2009-06-24 Chong Yidong <cyd@stupidchicken.com>
13952
13953 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
13954
13955 2009-06-24 Kenichi Handa <handa@m17n.org>
13956
13957 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
13958 set for C.
13959 (fontset_font): Record the availability of a font for C both in
13960 the realized fontsets of the current one and the default one.
13961
13962 2009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
13963
13964 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
13965 conditional, it is always defined on AIX.
13966
13967 2009-06-23 Miles Bader <miles@gnu.org>
13968
13969 * window.c (Vrecenter_redisplay): New variable.
13970 (syms_of_window): Initialize it.
13971 (Qtty): New extern declaration.
13972 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
13973
13974 2009-06-23 Jim Meyering <meyering@redhat.com>
13975
13976 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
13977 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
13978 pointer dereferences are guaranteed to be valid.
13979
13980 2009-06-23 Kenichi Handa <handa@m17n.org>
13981
13982 * emacs.c (main): Call init_font ().
13983
13984 * font.h (Vfont_log): Extern it.
13985 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
13986
13987 * font.c (font_sort_entities, font_list_entities)
13988 (font_matching_entity, font_open_entity)
13989 (font_close_object): Change font_add_log to FONT_ADD_LOG.
13990 (Vfont_log): Delete static.
13991 (font_log_env_checked): Delete this variable.
13992 (font_add_log): Don't check font_log_env_checked.
13993 (font_deferred_log): Check Vfont_log.
13994 (init_font): New function.
13995
13996 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
13997
13998 * w32font.c: Change font_add_log to FONT_ADD_LOG.
13999
14000 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
14001
14002 * xfont.c: Change font_add_log to FONT_ADD_LOG.
14003
14004 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
14005 (face_for_char): Don't call font_deferred_log here.
14006 (font_for_char): Likewise.
14007
14008 2009-06-22 Chong Yidong <cyd@stupidchicken.com>
14009
14010 * w32term.c (x_draw_glyph_string): Use the glyph string's width
14011 rather than its background_width for drawing the overline and
14012 underline (Bug#489).
14013
14014 * xterm.c (x_draw_glyph_string): Use the glyph string's width
14015 rather than its background_width for drawing the overline and
14016 underline (Bug#489).
14017 (xg_default_icon_file): New variable.
14018 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
14019 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
14020
14021 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
14022 (load_overlay_strings): Remove externs.
14023 (fast_find_position): Function deleted.
14024 (mouse_face_from_buffer_pos): New function, based on
14025 fast_find_position. Correctly handle before-strings,
14026 display-strings, and after-strings (Bug#1220).
14027 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
14028
14029 2009-06-21 Chong Yidong <cyd@stupidchicken.com>
14030
14031 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
14032 (move_it_in_display_line_to, move_it_in_display_line_to)
14033 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
14034
14035 2009-06-21 Chong Yidong <cyd@stupidchicken.com>
14036
14037 * Branch for 23.1.
14038
14039 2009-06-21 Jason Rumney <jasonr@gnu.org>
14040
14041 * w32term.c (keyboard_codepage): New static variable.
14042 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
14043 (w32_read_socket) [WM_CHAR]: Use it to decode character
14044 input (bug#3237).
14045 (w32_initialize): Initialize it.
14046 (codepage_for_locale): New function.
14047
14048 2009-06-20 Ken Raeburn <raeburn@raeburn.org>
14049
14050 * process.c (status_message): Pass Faset index argument as a lisp
14051 object, so as to work with USE_LISP_UNION_TYPE.
14052
14053 2009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14054
14055 * coding.c (Ffind_coding_systems_region_internal):
14056 Cache checked characters.
14057
14058 2009-06-18 Kenichi Handa <handa@m17n.org>
14059
14060 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
14061
14062 2009-06-18 Andreas Schwab <aschwab@redhat.com>
14063
14064 * xdisp.c (redisplay_internal): Check that the frame is still
14065 live after redisplay of its windows.
14066 (redisplay_windows): Check that the window is still live.
14067
14068 2009-06-17 Andreas Schwab <schwab@linux-m68k.org>
14069
14070 * coding.c (detect_coding_utf_16): Fix previous change.
14071
14072 2009-06-16 Kenichi Handa <handa@m17n.org>
14073
14074 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
14075 UTF-16 by checking the dispersion of Eth and Oth bytes.
14076
14077 2009-06-15 Andreas Schwab <schwab@linux-m68k.org>
14078
14079 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
14080
14081 2009-06-15 Kenichi Handa <handa@m17n.org>
14082
14083 * process.c (status_message): Fix previous change. Be sure to
14084 decode a localized string.
14085
14086 2009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14087
14088 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
14089 add comment explaining why.
14090
14091 2009-06-14 Sidney Markowitz <sidney@sidney.com>
14092
14093 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
14094
14095 2009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
14096
14097 * nsfont.m (ns_attribute_value): Remove.
14098 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
14099 (ns_has_attribute): Shrink the normal range.
14100 (ns_findfonts): Don't worry about requested spec in determining
14101 need for synthItal.
14102 (ns_get_covering_families): Retain scriptToFamilies.
14103
14104 2009-06-14 Seiji Zenitani <zenitani@mac.com>
14105
14106 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
14107
14108 2009-06-11 Kenichi Handa <handa@m17n.org>
14109
14110 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
14111 overhang for the static composition case.
14112
14113 2009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14114
14115 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
14116 overhang for the automatic composition case.
14117
14118 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
14119 composition case.
14120
14121 2009-06-10 Chong Yidong <cyd@stupidchicken.com>
14122
14123 * xdisp.c (get_next_display_element): When handling wrap-prefix
14124 and line-prefix, treat \n as a control character (bug#3502).
14125
14126 2009-06-10 Kenichi Handa <handa@m17n.org>
14127
14128 * font.c (font_parse_family_registry): Fix for one-char foundry.
14129 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
14130
14131 2009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
14132
14133 * process.c (status_message): Fix handling of multibyte signal
14134 string (Bug#3499).
14135
14136 2009-06-09 Jim Meyering <meyering@redhat.com>
14137
14138 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
14139 color name is missing.
14140
14141 2009-06-09 Kenichi Handa <handa@m17n.org>
14142
14143 * charset.c (Fmap_charset_chars): In docstring, state clearly that
14144 FROM-CODE and TO-CODE are codepoints of CHARSET.
14145
14146 2009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
14147
14148 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
14149
14150 2009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
14151
14152 Changes to support :script/:lang/:otf in NS font driver.
14153 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
14154 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
14155 indicate not part of font driver interface, and change callers.
14156 (ns_get_family): Remove pointless null check.
14157 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
14158 ns_spec_to_descriptor, ns_descriptor_to_entity.
14159 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
14160 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
14161 (ns_spec_to_descriptor, ns_descriptor_to_entity)
14162 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
14163 (ns_get_req_script, ns_accumulate_script_ranges)
14164 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
14165 New functions.
14166 (nsfont_list, nsfont_match): Use ns_findfonts.
14167 (nsfont_open): Use font descriptor instead of traits.
14168 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
14169 (dump_glyphstring): Rename to ns_dump_glyphstring.
14170
14171 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
14172
14173 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
14174
14175 * fontset.c (fontset_from_font): Remove NS-specific code.
14176
14177 2009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
14178
14179 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
14180 nonactive windows.
14181
14182 2009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
14183
14184 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
14185
14186 2009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
14187
14188 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
14189
14190 2009-06-07 Chong Yidong <cyd@stupidchicken.com>
14191
14192 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
14193 account for the overflowing of newlines into the last glyph on the
14194 display line (Bug#3482).
14195
14196 2009-06-05 David Reitter <david.reitter@gmail.com>
14197
14198 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
14199 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
14200 Fns_selection_exists_p, Fns_selection_owner_p.
14201
14202 2009-06-03 Jason Rumney <jasonr@gnu.org>
14203
14204 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
14205 available. (Bug#3379)
14206
14207 2009-05-29 Kenichi Handa <handa@m17n.org>
14208
14209 * coding.c (get_translation_table):
14210 Check Venable_character_translation.
14211
14212 2009-05-26 David Reitter <david.reitter@gmail.com>
14213
14214 * nsterm.m (ns_raise_frame): Only raise frame if visible.
14215 (x_make_frame_visible): Move frame to front rather than calling
14216 ns_raise_frame().
14217 (keyDown:): Do not swallow events that aren't re-sent if frame
14218 isn't key window.
14219 (drawRect:): Do not set visibility/iconified flags because
14220 drawRect may be called by NSView even if the frame is hidden.
14221
14222 * nsfns.m (Fx_create_frame): Follow other ports in
14223 determining visibility; default to t. Ensure async_visible is set.
14224
14225 2009-05-23 Eli Zaretskii <eliz@gnu.org>
14226
14227 * dired.c (Ffile_attributes): Doc fix.
14228
14229 2009-05-22 Chong Yidong <cyd@stupidchicken.com>
14230
14231 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
14232
14233 2009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
14234
14235 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
14236 and xfont_scratch_props.
14237 (syms_of_xfont): Do it here instead.
14238 (xfont_find_ccl_program): Delete, unused.
14239 (xfont_open): Delete unused var `i'.
14240
14241 2009-05-21 Kenichi Handa <handa@m17n.org>
14242
14243 * fontset.c (Qlatin): Don't make it static.
14244
14245 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
14246 New functions.
14247 (xfont_scripts_cache, xfont_scratch_props): New variables.
14248 (Qlatin, Vscalable_fonts_allowed): Extern it.
14249 (xfont_list_pattern): Argument changed. Callers changed.
14250 Check Vscalable_fonts_allowed. Check the support of a script.
14251 (xfont_list): Don't reject a font spec with :script property.
14252 (xfont_has_char): Fix setting of encoding.
14253 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
14254 xfont_scratch_props.
14255
14256 2009-05-19 Kenichi Handa <handa@m17n.org>
14257
14258 * font.c (font_sort_entities): Rename from font_sort_entites.
14259 Callers changed.
14260
14261 2009-05-18 Kenichi Handa <handa@m17n.org>
14262
14263 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
14264
14265 2009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
14266
14267 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
14268 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
14269
14270 2009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14271
14272 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
14273 (x_delete_terminal): Dissociate resource database from display and
14274 then call XrmDestroyDatabase before closing display.
14275
14276 2009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
14277
14278 * nsterm.m (ns_read_socket): Remove unused variable.
14279 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
14280 whether selected frame is viable before raising it (based on patch
14281 by David Reitter), and improve commentary.
14282 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
14283
14284 2009-05-15 Kenichi Handa <handa@m17n.org>
14285
14286 * font.c (Ffont_spec): Check arguments.
14287
14288 2009-05-14 Chong Yidong <cyd@stupidchicken.com>
14289
14290 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
14291 weight when testing attributes (Bug#3282).
14292
14293 2009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14294
14295 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
14296 what we expect to get in the next ConfigureNotify event.
14297
14298 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
14299 before Xft one (Bug#1696).
14300
14301 2009-05-07 David Reitter <david.reitter@gmail.com>
14302
14303 * nsfns.m (Fx_display_planes): Compute bitplanes using
14304 NSBitsPerPixelFromDepth (Bug#3207).
14305
14306 2009-05-10 Chong Yidong <cyd@stupidchicken.com>
14307
14308 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
14309
14310 2009-05-10 Ulrich Mueller <ulm@gentoo.org>
14311
14312 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
14313
14314 2009-05-07 David Reitter <david.reitter@gmail.com>
14315
14316 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
14317 Respect mouse face background.
14318
14319 2009-05-07 David Reitter <david.reitter@gmail.com>
14320
14321 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
14322 Mouse movement/highlight: bracket drawing operations
14323 in ns_update_begin and ns_update_end.
14324
14325 2009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
14326
14327 * nsfns.m (ns_get_screen): Rewrite.
14328 Don't presume selected-frame is of type `ns'.
14329
14330 * font.c (font_update_drivers): Sanity fallback to avoid disabling
14331 all drivers.
14332
14333 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
14334
14335 2009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14336
14337 * keyboard.h (add_user_signal): Fix typo in extern.
14338
14339 * lisp.h (add_user_signal): Remove extern.
14340
14341 * unexelf.c (unexec): Consider a section to precede the .bss section
14342 if its addresses overlap that of .bss.
14343 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
14344 instead of dumping process.
14345
14346 2009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
14347
14348 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
14349
14350 2009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
14351
14352 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
14353
14354 2009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
14355
14356 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
14357 any statements.
14358
14359 2009-05-02 Andreas Schwab <schwab@linux-m68k.org>
14360
14361 * process.c (read_process_output): Make sure the current buffer is
14362 always restored.
14363
14364 * coding.c (record_conversion_result): Don't modify
14365 Vlast_code_conversion_error for successful result.
14366 (alloc_destination): Don't clobber conversion result. (Bug#1650)
14367
14368 2009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
14369
14370 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
14371 (load_charset_map): Remove unnecessary code.
14372
14373 2009-04-30 David Reitter <david.reitter@gmail.com>
14374
14375 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
14376 through f24.
14377
14378 2009-04-30 Chong Yidong <cyd@stupidchicken.com>
14379
14380 * xfaces.c (face_at_buffer_position): New arg base_face_id.
14381
14382 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
14383 face_at_buffer_position.
14384 (face_before_or_after_it_pos, get_next_display_element)
14385 (note_mouse_highlight): Update face_at_buffer_position call.
14386
14387 * term.c (term_mouse_highlight):
14388 * msdos.c (IT_note_mouse_highlight):
14389 * fontset.c (Finternal_char_font):
14390 * font.c (font_at, font_range): Update face_at_buffer_position call.
14391
14392 * dispextern.h (face_at_buffer_position): Update prototype.
14393
14394 2009-04-30 Kenichi Handa <handa@m17n.org>
14395
14396 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
14397
14398 2009-04-29 Andreas Schwab <schwab@linux-m68k.org>
14399
14400 * callproc.c (Fcall_process): Fix GC protection. Make sure
14401 current buffer is always restored.
14402
14403 2009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14404
14405 * atimer.c (init_atimer): Also clear stopped_atimers.
14406
14407 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
14408
14409 * process.c (create_process): Clean up merger residues of
14410 2008-07-17 change.
14411
14412 2009-04-29 Ulrich Mueller <ulm@gentoo.org>
14413
14414 * lread.c (Vread_circle): New variable.
14415 (read1): Disable recursive read if Vread_circle is nil.
14416
14417 2009-04-29 Kenichi Handa <handa@m17n.org>
14418
14419 * fontset.h (set_default_ascii_font): Delete extern.
14420
14421 * fontset.c (set_default_ascii_font): Delete this unused function.
14422
14423 * frame.c (x_set_font): When ARG is a font-object, check if the
14424 font-object matches with the ASCII font-spec of the frame's
14425 fontset. If not, create a new fontset for the frame. (Bug #3075)
14426
14427 2009-04-28 Andreas Schwab <schwab@linux-m68k.org>
14428
14429 * fns.c (Flocale_info): Protect vector from GC during decoding.
14430
14431 * process.c (Fstart_process): Protect argv strings from GC during
14432 encoding.
14433
14434 2009-04-27 Andreas Schwab <schwab@linux-m68k.org>
14435
14436 * sysdep.c: Include <ctype.h>.
14437
14438 2009-04-27 David Reitter <david.reitter@gmail.com>
14439
14440 * nsfont.m (nsfont_open): Remove unused variable shrink.
14441 Remove commented-out code.
14442
14443 2009-04-26 Johan Bockgård <bojohan@gnu.org>
14444
14445 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
14446
14447 2009-04-25 Jason Rumney <jasonr@gnu.org>
14448
14449 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
14450
14451 2009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14452
14453 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
14454 Swap bytes in short integer if fringe bitmap width > 8.
14455
14456 2009-04-23 Kenichi Handa <handa@m17n.org>
14457
14458 * xfaces.c (Fx_list_fonts): If a font size is specified in
14459 PATTERN, set it in returned scalable fonts.
14460
14461 2009-04-22 Chong Yidong <cyd@stupidchicken.com>
14462
14463 * keyboard.c (Fset_input_meta_mode): Doc fix.
14464
14465 * dispnew.c (Fsend_string_to_terminal): Doc fix.
14466
14467 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
14468
14469 * coding.c (Fterminal_coding_system): Doc fix.
14470
14471 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
14472 (Fx_display_pixel_height, Fx_display_planes)
14473 (Fx_display_color_cells, Fx_server_max_request_size)
14474 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
14475 (Fx_display_mm_height, Fx_display_mm_width)
14476 (Fx_display_backing_store, Fx_display_visual_class)
14477 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
14478 Doc fixes, replacing "terminal id" with "terminal object".
14479 (check_x_display_info): Handle terminal objects instead of
14480 terminal ids.
14481
14482 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
14483 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
14484 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
14485 Doc fixes, replacing "terminal id" with "terminal object".
14486
14487 2009-04-21 Kenichi Handa <handa@m17n.org>
14488
14489 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
14490 (font_score): Check AVGWIDTH too.
14491
14492 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
14493 worst case.
14494 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
14495 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
14496
14497 2009-04-19 Jason Rumney <jasonr@gnu.org>
14498
14499 The following changes fix Bug#3005 for wide glyphs on each platform,
14500 without reintroducing Bug#1258 for stretch glyphs.
14501
14502 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
14503 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
14504 get_phys_cursor_geometry.
14505
14506 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
14507 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
14508 using get_phys_cursor_geometry.
14509
14510 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
14511 correctly calculated.
14512
14513 2009-04-19 Jan Djärv <jan.h.d@swipnet.se>
14514
14515 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
14516 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
14517 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
14518 is deprecated.
14519
14520 2009-04-18 Andreas Schwab <schwab@linux-m68k.org>
14521
14522 * font.c (font_put_frame_data): Use xfree instead of free.
14523
14524 2009-04-17 Juanma Barranquero <lekktu@gmail.com>
14525
14526 * w32font.c (Qja, Qko): Remove declarations.
14527 (syms_of_w32font): Don't DEFSYM them.
14528
14529 2009-04-17 Chong Yidong <cyd@stupidchicken.com>
14530
14531 * font.c (Qja, Qko): Move definitions here from ftfont.c.
14532
14533 * font.h (Qja, Qko): Extern them.
14534
14535 * ftfont.c (Qja, Qko): Remove declarations.
14536
14537 * xfont.c (Qja, Qko): Remove declarations.
14538
14539 2009-04-17 Kenichi Handa <handa@m17n.org>
14540
14541 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
14542 string from a vector to handle Latin-1 characters correctly.
14543
14544 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
14545 entity even if the cache hits.
14546
14547 2009-04-16 Andreas Schwab <schwab@linux-m68k.org>
14548
14549 * search.c (boyer_moore): Use zero as marker value for a possible
14550 match instead of depending on overflow behavior. (Bug#2844)
14551
14552 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
14553 * lisp.h: Adjust prototypes.
14554
14555 2009-04-16 Chong Yidong <cyd@stupidchicken.com>
14556
14557 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
14558 change (Bug#3003).
14559
14560 2009-04-16 Kenichi Handa <handa@m17n.org>
14561
14562 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
14563
14564 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
14565 adstyle.
14566
14567 * ftfont.c (Qja, Qko): Don't make them static.
14568 (enum ftfont_cache_for): New enum.
14569 (fc_charset_table): Undo the previous change.
14570 (ftfont_get_latin1_charset): Delete it.
14571 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
14572 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
14573 non-scarable font, try to get AVERAGE_WIDTH.
14574 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
14575 Change ft_face_cache from a list of a hash-table. Don't check
14576 `ja' and `ko' adstyle here.
14577 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
14578 FTFONT_CACHE_FOR_CHARET.
14579 (ftfont_get_charset): Undo the previous change.
14580 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
14581 (ftfont_close): Likewise.
14582 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
14583
14584 * font.c (font_sort_entites): Change the meaning of the arg
14585 BEST-ONLY. Don't optimize for VEC of lenght 1.
14586 (font_select_entity): Just return the value of font_sort_entites.
14587
14588 * xfaces.c (merge_face_vectors): Reflect font properties in
14589 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
14590 font_clear_prop if a face attribute doesn't change.
14591
14592 * charset.h (charset_ksc5601): Extern it.
14593
14594 * charset.c (charset_ksc5601): New variable.
14595 (Fdefine_charset_internal): Set charset_ksc5601.
14596 (init_charset_once): Initialize charset_ksc5601 to -1.
14597
14598 2009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
14599
14600 * fileio.c (history_delete_duplicates): Remove unused declaration.
14601
14602 * callint.c (history_delete_duplicates): New declaration.
14603 (Fcall_interactively): Remove command history duplicates when
14604 history_delete_duplicates is true.
14605
14606 2009-04-14 Eli Zaretskii <eliz@gnu.org>
14607
14608 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
14609
14610 2009-04-14 Kenichi Handa <handa@m17n.org>
14611
14612 * font.c (Ffont_info): Fix docstring. Fix the second element of
14613 the returned value (bug#2949).
14614
14615 2009-04-14 Chong Yidong <cyd@stupidchicken.com>
14616
14617 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
14618
14619 2009-04-14 Kenichi Handa <handa@m17n.org>
14620
14621 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
14622 encoding charset is ascii_compatible.
14623
14624 * charset.c (Fdefine_charset_internal): Make charset
14625 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
14626 code_offset is 0, and covers all ASCII characters.
14627
14628 2009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
14629
14630 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
14631 (ns_string_to_pasteboard_internal):
14632 * nsmenu.m (process_dialog):
14633 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
14634 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
14635 * lisp.h (Fx_load_color_file): Declare.
14636
14637 2009-04-13 Kenichi Handa <handa@m17n.org>
14638
14639 * font.c (font_delete_unmatched): Preserve the order of list elements.
14640 (font_select_entity): Suppress the code to optimize for the same
14641 kind of fonts.
14642 (font_load_for_lface): Get a font that supports at least ASCII
14643 characters.
14644
14645 * ftfont.c (Qja, Qko): New variables.
14646 (fc_charset_table): Delete uniquifier data for iso8859-1.
14647 (ftfont_get_latin1_charset): New function.
14648 (get_adstyle_property): New function.
14649 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
14650 bitmap fonts.
14651 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
14652 Delete iso-8859-1 range from the charset of fonts whose adstyle is
14653 `ko' or `ja'.
14654 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
14655 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
14656 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
14657 property.
14658 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
14659 (syms_of_ftfont): DEFSYM Qja and Qko.
14660
14661 2009-04-09 Kenichi Handa <handa@m17n.org>
14662
14663 * charset.c (map_charset_chars): For a charset of `superset'
14664 method, fix calculation of code range.
14665
14666 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
14667 from the list of extra properties.
14668 (font_clear_prop): Be sure to delete `:name' font property.
14669
14670 2009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14671
14672 * dispnew.c (redraw_overlapping_rows): Fix detection of
14673 overlapping for topmost and bottommost rows.
14674
14675 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
14676
14677 2009-04-06 Jason Rumney <jasonr@gnu.org>
14678
14679 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
14680
14681 2009-04-06 Kenichi Handa <handa@m17n.org>
14682
14683 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
14684
14685 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
14686
14687 2009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14688
14689 * ftfont.c (ftfont_open): Fix checking of the return value of
14690 FT_Load_Char. Fix setting font->underline_thickness.
14691
14692 2009-04-04 Chong Yidong <cyd@stupidchicken.com>
14693
14694 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
14695 (Fterminal_parameters, Fterminal_parameter)
14696 (Fset_terminal_parameter): In doc string, refer to terminal
14697 objects rather than terminal ids.
14698
14699 2009-04-04 Eli Zaretskii <eliz@gnu.org>
14700
14701 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
14702 ret_lim_data. (Bug#2867)
14703
14704 2009-04-03 Chong Yidong <cyd@stupidchicken.com>
14705
14706 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
14707 so they don't get wider than the window, matching 2006-01-23
14708 change to the partner function in xdisp.c (Bug#2800).
14709
14710 2009-04-03 Kenichi Handa <handa@m17n.org>
14711
14712 * print.c (print_object): Make each lowest sub_char_table start a
14713 new line (Bug#2866).
14714
14715 2009-04-02 Kenichi Handa <handa@m17n.org>
14716
14717 * fontset.c (fontset_font): Record no-font when a fontset
14718 explicitly tells not to try another font-specs.
14719
14720 2009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
14721
14722 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
14723
14724 2009-03-30 Kenichi Handa <handa@m17n.org>
14725
14726 * fontset.c (fontset_from_font): Specify only registry in a
14727 font-spec for all characters supported by that registry.
14728
14729 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
14730 even if HAVE_M17N_FLT is not defined.
14731
14732 2009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
14733
14734 * ftfont.c: Conditionalize prototyping and use of
14735 ftfont_variation_glyphs.
14736
14737 2009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
14738
14739 * frame.c (delete_frame): Work around compiler bug.
14740
14741 * editfns.c (general_insert_function): Adjust to insdel.c changes.
14742 * insdel.c (prepare_to_modify_buffer, signal_before_change):
14743 Some more EMACS_INT.
14744 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
14745
14746 * xdisp.c (dump_glyph): Fix typo.
14747
14748 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
14749 (adjust_markers_gap_motion, adjust_markers_for_delete)
14750 (adjust_markers_for_insert, adjust_point)
14751 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
14752 (make_gap, copy_text, count_size_as_multibyte, insert)
14753 (insert_and_inherit, insert_before_markers)
14754 (insert_before_markers_and_inherit, insert_1)
14755 (count_combining_before, count_combining_after, insert_1_both)
14756 (insert_from_string, insert_from_string_before_markers)
14757 (insert_from_string_1, insert_from_gap, insert_from_buffer)
14758 (insert_from_buffer_1, adjust_after_replace)
14759 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
14760 (replace_range_2, del_range, del_range_1, del_range_byte)
14761 (del_range_both, del_range_2, modify_region)
14762 (prepare_to_modify_buffer, signal_before_change)
14763 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
14764 for buffer positions and sizes.
14765 * lisp.h: Adjust prototypes accordingly.
14766
14767 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
14768 (non_regular_inserted, non_regular_nbytes, read_non_regular)
14769 (Finsert_file_contents): Use EMACS_INT for buffer positions.
14770
14771 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
14772
14773 2009-03-27 Jan Djärv <jan.h.d@swipnet.se>
14774
14775 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
14776 lines and columns so we keep the same pixel height and width.
14777
14778 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
14779 the property _NET_WM_STATE has changed.
14780 (x_handle_net_wm_state): New function to update frame parameter
14781 fullscreen.
14782 (x_term_init): Initialize atoms for _NET_WM_STATE.
14783
14784 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
14785
14786 2009-03-27 Kevin Ryde <user42@zip.com.au>
14787
14788 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
14789 Gpm_GetEvent as an error that justifies closing the filedescriptor.
14790 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
14791 (Fgpm_mouse_stop): Pass that new parameter.
14792 * termhooks.h (close_gpm): Adjust prototype.
14793
14794 2009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
14795
14796 * lisp.h (Fx_focus_frame): Declare.
14797
14798 * callint.c (Fcall_interactively): For '^' just delegate the work to
14799 handle-shift-selection.
14800 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
14801
14802 2009-03-24 Chong Yidong <cyd@stupidchicken.com>
14803
14804 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
14805
14806 * data.c (Qinteractive_form): New variable.
14807 (Finteractive_form): Use it.
14808
14809 * eval.c (Fcommandp): Use Qinteractive_form.
14810
14811 2009-03-24 Jason Rumney <jasonr@gnu.org>
14812
14813 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
14814 Calculate total size precisely. Decode environment variables
14815 before substituting. (Bug#38)
14816
14817 2009-03-24 Kenichi Handa <handa@m17n.org>
14818
14819 * font.c (find_font_encoding): Return Qnil for unsupported
14820 encoding (Bug#2722).
14821
14822 2009-03-23 Jan Djärv <jan.h.d@swipnet.se>
14823
14824 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
14825 that gdpy is set.
14826
14827 2009-03-22 Alan Mackenzie <acm@muc.de>
14828
14829 * callint.c (Finteractive): Clarify the doc string - even
14830 promptless elements need \n separators.
14831
14832 2009-03-22 Jason Rumney <jasonr@gnu.org>
14833
14834 * w32term.c (syms_of_w32term): Doc fix for
14835 x-use-underline-position-properties.
14836
14837 2009-03-21 Eli Zaretskii <eliz@gnu.org>
14838
14839 * w32.c (getpwuid): Change argument type to unsigned.
14840 (struct w32_id): Change type of `rid' member to unsigned.
14841 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
14842 argument ID to unsigned. All callers changed.
14843 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
14844
14845 2009-03-20 Eli Zaretskii <eliz@gnu.org>
14846
14847 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
14848 negative, produce a float value.
14849
14850 * dired.c (make_uid, make_gid): New functions.
14851 (Ffile_attributes): Use them to avoid negative UID and GID.
14852
14853 2009-03-20 Juanma Barranquero <lekktu@gmail.com>
14854
14855 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
14856 (syms_of_keyboard) <command-hook-internal, input-method-function>:
14857 Fix typos in docstrings.
14858
14859 2009-03-19 Kenichi Handa <handa@m17n.org>
14860
14861 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
14862 changed, use font_load_for_lface to get a new font object.
14863 Call free_realized_fontset after handling ASCII font change.
14864
14865 * frame.c (x_set_font): Handle the case that ARG is a cons.
14866
14867 2009-03-19 Glenn Morris <rgm@gnu.org>
14868
14869 * fileio.c (Fsubstitute_in_file_name): Doc fix.
14870
14871 2009-03-19 Chong Yidong <cyd@stupidchicken.com>
14872
14873 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
14874
14875 2009-03-19 Kenichi Handa <handa@m17n.org>
14876
14877 * charset.c (load_charset_map_from_file): When a mapfile can't be
14878 loaded, signal an error.
14879
14880 2009-03-18 Eli Zaretskii <eliz@gnu.org>
14881
14882 * dired.c (Ffile_attributes): Make sure UID and GID are always
14883 positive, even if the value is too large for a positive EMACS_INT.
14884 Doc fix.
14885
14886 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
14887
14888 2009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14889
14890 * xmenu.c (xdialog_show): Move Fredisplay call ...
14891 (Fx_popup_dialog): ... here.
14892
14893 2009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
14894
14895 * dired.c (file_name_completion): Disable the first optimization just
14896 installed, since it is not implemented correctly.
14897
14898 2009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
14899
14900 * dired.c (file_name_completion): Check completion-ignored-extensions
14901 only if the entry can affect bestmatch.
14902 Stop the search early, as Ftry_completion already does.
14903
14904 2009-03-17 Chong Yidong <cyd@stupidchicken.com>
14905
14906 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
14907
14908 2009-03-15 Chong Yidong <cyd@stupidchicken.com>
14909
14910 * keyboard.c (parse_menu_item): Don't display remappings as menu
14911 equivalent bindings (Bug#788).
14912
14913 2009-03-15 Jason Rumney <jasonr@gnu.org>
14914
14915 * w32term.h (WM_EMACS_PAINT): New message.
14916 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
14917 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
14918 before passing to lisp thread. (Bug#950)
14919
14920 2009-03-14 David Reitter <david.reitter@gmail.com>
14921
14922 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
14923 variable as it was never reset.
14924 (ns_term_init): Remove initialization of Lisp-settable defaults
14925 and ns_expand_space.
14926 (-setPanelFromDefaultValues): Remove ns_expand_space.
14927 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
14928 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
14929 i.e. no additional spacing, similar to Carbon port.
14930
14931 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
14932 * nsfns.m (ns-popup-prefs-panel): Remove.
14933
14934 2009-03-14 Jan Djärv <jan.h.d@swipnet.se>
14935
14936 * sound.c (alsa_configure): Remove call to deprecated
14937 snd_pcm_sw_params_set_xfer_align.
14938
14939 2009-03-14 Stephen Berman <stephen.berman@gmx.net>
14940
14941 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
14942 after clicking in a detached tool bar.
14943 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
14944
14945 2009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
14946
14947 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
14948 int/Lisp_Object mixup).
14949
14950 2009-03-13 Kenichi Handa <handa@m17n.org>
14951
14952 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
14953 Handle NAME nil and t correctly. Callers changed.
14954 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
14955 (set_fontset_font): Change ARG to a vector. Handle range_list in
14956 ARG correctly.
14957 (Fset_fontset_font): Fix the case that TARGET is both a script
14958 name and charset name. Adjust the arg to set_fontset_font for
14959 the above change.
14960 (fontset_from_font): Fix previous change.
14961 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
14962 entry. If FONTSET is the default fontset, don't set the extra
14963 slot of the returning char-table.
14964
14965 2009-03-12 Juanma Barranquero <lekktu@gmail.com>
14966
14967 * nsfns.m (Fx_close_connection): Doc fix.
14968 (Fns_do_applescript): Reflow docstring.
14969 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
14970 (Fx_display_pixel_width, Fx_display_pixel_height)
14971 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
14972 Fix typos in docstrings.
14973 (Fns_set_alpha): Fix typos in error messages.
14974
14975 2009-03-12 David Reitter <david.reitter@gmail.com>
14976
14977 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
14978 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
14979 were used for such events.
14980
14981 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
14982 (toggleToolbar, performDragOperation, runHelp): Use it.
14983
14984 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
14985 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
14986
14987 2009-03-11 Kenichi Handa <handa@m17n.org>
14988
14989 * font.h (font_open_by_spec): Extern it.
14990
14991 * font.c (font_open_by_spec): New function.
14992 (font_open_by_name): Use font_open_by_spec.
14993
14994 * frame.c (x_set_font): When ARG is a font-object, don't alter the
14995 fontset of the frame.
14996
14997 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
14998 modify the default font of frames that use this fontset.
14999 (num_auto_fontsets): New variable.
15000 (fontset_from_font): Use num_auto_fontsets to decide a fontset
15001 name. Be sure to set FONTSET_ASCII to the correct font name.
15002 (update_auto_fontset_alist): New function.
15003
15004 2009-03-11 Juanma Barranquero <lekktu@gmail.com>
15005
15006 * makefile.w32-in: Update dependencies.
15007
15008 2009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
15009
15010 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
15011
15012 2009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
15013
15014 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
15015
15016 2009-03-10 Chong Yidong <cyd@stupidchicken.com>
15017
15018 * lread.c (Feval_buffer): Doc fix.
15019
15020 2009-03-09 Kenichi Handa <handa@m17n.org>
15021
15022 * charset.c (Qfile_name_handler_alist): Extern it.
15023 (load_charset_map_from_file): Temporarily bind
15024 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
15025
15026 2009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
15027
15028 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
15029 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
15030
15031 2009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
15032
15033 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
15034 (x_set_window_size): Change back to calculated method of setting
15035 toolbar height under Cocoa. (Bug#2546)
15036 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
15037 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
15038
15039 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
15040
15041 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
15042 accelerator in parens under GNUstep.
15043
15044 2009-03-06 Kenichi Handa <handa@m17n.org>
15045
15046 These changes are to detect incorrect composition sequence without
15047 looking ahead the source. (Bug#2370)
15048
15049 * coding.h: Include "composite.h".
15050 (enum compisition_state): New enum.
15051 (struct compisition_status): New struct.
15052 (struct iso_2022_spec): New member cmp_status.
15053 (struct emacs_mule_spec): New struct.
15054 (struct coding_system): New members ctext_extended_segment_len and
15055 embedded_utf_8. Change the union member
15056 spec.emacs_mule_full_support to spec.emacs_mule.
15057
15058 * coding.c (CODING_ISO_CMP_STATUS): New macro.
15059 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
15060 (MAX_ANNOTATION_LENGTH): Define to 5.
15061 (ADD_COMPOSITION_DATA): New arg nbytes.
15062 (emacs_mule_char): New arg cmp_status.
15063 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
15064 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
15065 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
15066 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
15067 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
15068 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
15069 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
15070 (EMACS_MULE_COMPOSITION_END): New macro.
15071 (emacs_mule_finish_composition): New function.
15072 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
15073 (decode_coding_emacs_mule): Avoid long looking ahead while
15074 handling composition.
15075 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
15076 (ENCODE_COMPOSITION_RULE): New macro.
15077 (finish_composition): New function.
15078 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
15079 (DECODE_COMPOSITION_START): New implementation.
15080 (DECODE_COMPOSITION_END): Likewise.
15081 (STORE_COMPOSITION_RULE): New macro.
15082 (decode_coding_iso_2022): Avoid long looking ahead while handling
15083 composition, CTEXT extended segment, and embedded UTF-8.
15084 (setup_coding_system): For a coding of type iso-2022, reset
15085 CODING_ISO_EXTSEGMENT_LEN (coding) and
15086 CODING_ISO_EMBEDDED_UTF_8 (coding).
15087 (get_translation): Delete arguments last_block, from_nchars,
15088 to_nchars. Callers changed.
15089 (produce_chars): Don't modify charbuf. Adjusted for the change of
15090 get_translation.
15091 (produce_composition): Adjust for the new annotation sequence.
15092 (handle_composition_annotation): Likewise.
15093 (consume_chars): Adjust for the change of get_translation.
15094
15095 2009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
15096
15097 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
15098
15099 2009-03-05 Kenichi Handa <handa@m17n.org>
15100
15101 * font.c (font_select_entity): New function.
15102 (font_find_for_lface): Use font_select_entity to select a font.
15103
15104 * fontset.c (fontset_find_font): If a font found without
15105 restricting to the characters C doesn't support C, try to find a
15106 font with C restriction.
15107
15108 2009-03-04 Nikolaj Schumacher <me@nschum.de>
15109
15110 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
15111
15112 2009-03-04 Jason Rumney <jasonr@gnu.org>
15113
15114 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
15115 characters that have already been read. (Bug#2569)
15116
15117 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
15118 Log an error message if check_image_size failed.
15119 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
15120 (gs_load): Mention max-image-size in size error message. (Bug#2560)
15121
15122 2009-03-02 Eli Zaretskii <eliz@gnu.org>
15123
15124 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
15125 when decoding process output.
15126
15127 2009-03-01 Richard M Stallman <rms@gnu.org>
15128
15129 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
15130
15131 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
15132
15133 2009-02-28 Eli Zaretskii <eliz@gnu.org>
15134
15135 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
15136 (decode_coding_emacs_mule, decode_coding_iso_2022)
15137 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
15138 (decode_coding_raw_text, decode_coding_charset)
15139 (setup_coding_system, decode_eol, decode_coding, consume_chars):
15140 Honor inhibit-eol-conversion. (Bug #2186)
15141
15142 2009-02-28 Jason Rumney <jasonr@gnu.org>
15143
15144 * coding.c (detect_coding_charset): If not checking latin extra,
15145 fail on characters between 0x80 and 0xA0. (Bug#2354)
15146
15147 2009-02-28 Eli Zaretskii <eliz@gnu.org>
15148
15149 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
15150 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
15151
15152 2009-02-27 Glenn Morris <rgm@gnu.org>
15153
15154 * callint.c (Finteractive): Doc fix.
15155
15156 2009-02-27 Kenichi Handa <handa@m17n.org>
15157
15158 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
15159
15160 2009-02-27 Chong Yidong <cyd@stupidchicken.com>
15161
15162 * font.c (font_style_to_value): Set value for unknown symbols to
15163 100 instead of 255.
15164 (weight_table, slant_table, width_table): Treat "unspecified" as
15165 the default value.
15166
15167 2009-02-26 Juanma Barranquero <lekktu@gmail.com>
15168
15169 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
15170
15171 2009-02-25 Juanma Barranquero <lekktu@gmail.com>
15172
15173 * lread.c (Fload): Stop checking Vloads_in_progress and signal
15174 error as soon as a recursive load is detected.
15175
15176 2009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
15177
15178 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
15179 before caching.
15180
15181 2009-02-24 Kenichi Handa <handa@m17n.org>
15182
15183 * fontset.c (fontset_find_font): Fix the condition for checking
15184 unavailable font.
15185
15186 2009-02-24 Glenn Morris <rgm@gnu.org>
15187
15188 * xfaces.c (Finternal_set_font_selection_order): Remove leading
15189 whitespace that confuses documentation.
15190
15191 2009-02-23 Miles Bader <miles@gnu.org>
15192
15193 * process.c (Flist_system_processes, Fprocess_attributes)
15194 (syms_of_process): Rename `system-process-attributes' to
15195 `process-attributes'.
15196
15197 2009-02-22 Andreas Schwab <schwab@linux-m68k.org>
15198
15199 * coding.h (struct coding_system): Make safe_charsets a pointer to
15200 unsigned char.
15201 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
15202 being 255.
15203 (SAFE_CHARSET_P): Likewise.
15204 (setup_iso_safe_charsets): Properly setup safe_charsets.
15205 (Fdefine_coding_system_internal): Likewise.
15206 (setup_coding_system): Likewise. Remove unneeded casts.
15207 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
15208 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS.
15209 Remove unneeded casts.
15210
15211 * insdel.c (del_range_2): Don't modify gap contents when called
15212 from decode_coding_object. (Bug#1809)
15213
15214 2009-02-21 Chong Yidong <cyd@stupidchicken.com>
15215
15216 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
15217 Qfont_object.
15218 (Ftype_of): Recognize font objects.
15219
15220 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
15221
15222 * font.c (Qfont_spec, Qfont_entity, Qfont_object):
15223 Definitions moved to data.c.
15224
15225 2009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
15226
15227 * nsterm.m (x_make_frame_invisible): Unset async_visible,
15228 async_iconified. Based on a patch by Christian Lynbech
15229 <christian.lynbech@tieto.com>.
15230 (EmacsView-windowDidMiniaturize:): Unset async_visible.
15231
15232 2009-02-20 Glenn Morris <rgm@gnu.org>
15233
15234 * syntax.c (Fskip_chars_forward): Fix doc typo.
15235
15236 2009-02-20 Chong Yidong <cyd@stupidchicken.com>
15237
15238 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
15239
15240 2009-02-19 Chong Yidong <cyd@stupidchicken.com>
15241
15242 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
15243
15244 2009-02-19 Kenichi Handa <handa@m17n.org>
15245
15246 * coding.c (detect_coding): Preserve coding->mode.
15247 Don't overflow coding->carryover. (Bug#2370)
15248
15249 2009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
15250
15251 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
15252
15253 2009-02-18 Kenichi Handa <handa@m17n.org>
15254
15255 * font.c (font_check_otf_features): Fix handling of `nil' element.
15256 (Ffont_spec): Describe :lang and :otf in the docstring.
15257
15258 2009-02-16 Andreas Schwab <schwab@suse.de>
15259
15260 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
15261 string.
15262
15263 2009-02-16 Kenichi Handa <handa@m17n.org>
15264
15265 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
15266 (Bug#1723)
15267
15268 2009-02-14 Chong Yidong <cyd@stupidchicken.com>
15269
15270 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
15271
15272 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
15273 (handle_line_prefix): Suppress wrapping of wrap prefixes.
15274
15275 2009-02-14 Eli Zaretskii <eliz@gnu.org>
15276
15277 * msdos.c (MAX_SCREEN_BUF): New macro.
15278 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
15279 Encode the entire run of glyphs sharing the same face, instead of
15280 doing that one glyph at a time (fixes a bug with displaying
15281 double-size characters).
15282
15283 2009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
15284
15285 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
15286
15287 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
15288 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
15289 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
15290
15291 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
15292 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
15293
15294 2009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
15295
15296 * keyboard.c (adjust_point_for_property): Allow stopping between two
15297 invisible areas.
15298
15299 2009-02-12 Jason Rumney <jasonr@gnu.org>
15300
15301 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
15302 (add_font_entity_to_list): Call check_face_name even when family
15303 is unspecified.
15304
15305 * w32term.c (x_display_pixel_height, x_display_pixel_width):
15306 Release DC when finished. Use NULL window to refer to desktop.
15307 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
15308
15309 * w32font.c (add_font_entity_to_list): Fix check for substituted
15310 raster fonts. (Bug#2219)
15311
15312 2009-02-12 Kenichi Handa <handa@m17n.org>
15313
15314 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
15315 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
15316 (autocmp_chars): Use fast_looking_at. Don't compose more
15317 characters than MAX_COMPOSITION_COMPONENTS.
15318 (find_automatic_composition): While looking forward and backward,
15319 check static composition. Fix where to stop looking forward.
15320 (composition_adjust_point): Fix checking of static composition.
15321 (Fcomposition_get_gstring): Pay attention to
15322 MAX_COMPOSITION_COMPONENTS.
15323
15324 * lisp.h (fast_looking_at): Extern it.
15325
15326 * search.c (fast_looking_at): New function.
15327
15328 * term.c (encode_terminal_code): Adjust for the change of
15329 <struct glyph>.u.cmp.to.
15330 (append_composite_glyph): Likewise.
15331
15332 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
15333 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
15334 composition.
15335 (append_composite_glyph): Adjust for the change of
15336 <strcut glyph>.u.cmp.to.
15337
15338 2009-02-11 Juanma Barranquero <lekktu@gmail.com>
15339
15340 * casetab.c (init_casetab_once):
15341 * coding.c (ALLOC_CONVERSION_WORK_AREA):
15342 * font.c (font_update_lface):
15343 * fontset.c (Fnew_fontset):
15344 * ftfont.c (ftfont_drive_otf):
15345 * xfont.c (xfont_open):
15346 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
15347
15348 2009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
15349
15350 * fileio.c (Fwrite_region): !NILP -> CONSP.
15351
15352 2009-02-10 Andreas Schwab <schwab@suse.de>
15353
15354 * process.c (send_process): Properly relocate pointer into data
15355 when using encoded data. (Bug#2272)
15356
15357 2009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
15358
15359 * coding.c (detect_coding_charset): Fix previous change.
15360
15361 2009-02-08 Jason Rumney <jasonr@gnu.org>
15362
15363 * w32fns.c (w32_hide_hourglass): Handle case where frame
15364 disappeared while hourglass was displayed. (Bug #2193)
15365
15366 2009-02-07 Andreas Schwab <schwab@suse.de>
15367
15368 * unexelf.c (unexec): Fix error message.
15369
15370 2009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
15371
15372 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
15373 when modal window is active. (Bug #2152)
15374 (applicationShouldTerminate:): Remove now-unneeded while loop
15375 around NSRunAlertPanel.
15376
15377 * nsmenu.m (popupSession): New file-global variable.
15378 (pop_down_menu): End the popupSession before closing dialog.
15379 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
15380 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
15381 don't query NSApp for events (just sleep instead).
15382
15383 2009-02-07 Eli Zaretskii <eliz@gnu.org>
15384
15385 * coding.c (syms_of_coding) <translation-table-for-input>:
15386 Modify doc string to discourage use for character code unification.
15387
15388 2009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15389
15390 * atimer.c (run_timers): Update pending_atimers.
15391
15392 2009-02-06 Chong Yidong <cyd@stupidchicken.com>
15393
15394 * image.c (svg_load_image): Fix last change.
15395
15396 * xfns.c (Fx_create_frame): Signal an error if no font is
15397 found (Bug#2147).
15398
15399 2009-02-05 Juanma Barranquero <lekktu@gmail.com>
15400
15401 * character.c (syms_of_character) <script-representative-chars>:
15402 Fix typo in docstring.
15403
15404 2009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
15405
15406 * nsmenu.m (pop_down_menu): New function.
15407 (ns_popup_dialog): Call it on unwind.
15408 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
15409 call timer_check() (Bug#2154).
15410 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
15411 handling_signal is set.
15412 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
15413
15414 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
15415
15416 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
15417
15418 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
15419
15420 * keyboard.c (poll_for_input_1, handle_async_input):
15421 Set handling_signal under HAVE_NS.
15422
15423 2009-02-04 Glenn Morris <rgm@gnu.org>
15424
15425 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
15426
15427 2009-02-04 Kenichi Handa <handa@m17n.org>
15428
15429 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
15430
15431 * charset.c (Fchar_charset): New optional arg restriction.
15432
15433 * coding.h (coding_system_charset_list): Extern it.
15434
15435 * coding.c (coding_system_charset_list): New function.
15436
15437 * composite.c: Include coding.h and termhooks.h.
15438 (composition_gstring_p): Fix for the terminal case.
15439 (composition_gstring_width): Likewise.
15440 (fill_gstring_body): Likewise.
15441 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
15442 the frame.
15443 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
15444 is within a composition.
15445 (Fcomposition_get_gstring): Fix the terminal case.
15446
15447 * term.c (encode_terminal_code): Fix handling of composition.
15448 (produce_composite_glyph): For static composition, get pixel_width
15449 from struct composition.
15450
15451 2009-02-02 Andreas Schwab <schwab@suse.de>
15452
15453 * unexelf.c (unexec): Handle unaligned bss offset.
15454
15455 2009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
15456
15457 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
15458 XT,w32read_socket changes to ns_read_socket.
15459
15460 * keyboard.c (handle_interrupt): Don't call
15461 quit_throw_to_read_char() under NS.
15462
15463 * blockinput.h: Remove NS-specific code.
15464
15465 2009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
15466
15467 * dispnew.c (window_change_signal): Don't try to get the size of a
15468 suspended tty frame.
15469 * term.c (Fresume_tty): Resize if the size has changed while the
15470 tty was suspended.
15471
15472 * alloc.c (mark_stack): Properly conditionalize previous change.
15473
15474 2009-01-30 Juanma Barranquero <lekktu@gmail.com>
15475
15476 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
15477 * w32term.c (w32_read_socket) [SYNC_INPUT]:
15478 Remove; this code is not used on Windows.
15479
15480 2009-01-30 Eli Zaretskii <eliz@gnu.org>
15481
15482 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
15483 EOLs that also has stray ^M characters.
15484
15485 2009-01-30 Juanma Barranquero <lekktu@gmail.com>
15486
15487 * atimer.c (run_timers, alarm_signal_handler):
15488 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
15489 * w32inevt.c (w32_console_read_socket):
15490 * w32term.c (w32_read_socket):
15491 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
15492
15493 2009-01-30 Chong Yidong <cyd@stupidchicken.com>
15494
15495 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
15496 Initialize it as a relative filename pattern.
15497 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
15498 (Fcall_process_region): Simplify temp file creation using
15499 temporary-file-directory.
15500
15501 2009-01-29 Eli Zaretskii <eliz@gnu.org>
15502
15503 * msdos.c: Rename pending_signals to msdos_pending_signals.
15504 (sig_suspender, sigprocmask): Adjust.
15505
15506 2009-01-29 Chong Yidong <cyd@stupidchicken.com>
15507
15508 * keyboard.c (pending_signals): New var.
15509 (poll_for_input, input_available_signal, init_keyboard): Set it.
15510 (process_pending_signals): New function.
15511
15512 * lisp.h (QUIT): Check pending_signals instead of
15513 interrupt_input_pending. Use process_pending_signals.
15514
15515 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
15516
15517 * process.c (wait_reading_process_output): Use process_pending_signals.
15518
15519 * sysdep.c (emacs_write): Use process_pending_signals.
15520
15521 * xterm.c (XTread_socket): Update pending_signals.
15522
15523 * w32term.c (w32_read_socket): Update pending_signals.
15524
15525 * w32inevt.c (w32_console_read_socket): Update pending_signals.
15526
15527 2009-01-29 Kenichi Handa <handa@m17n.org>
15528
15529 * xftfont.c (xftfont_has_char): New function.
15530 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
15531
15532 2009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
15533
15534 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
15535 under GNUstep.
15536 (ns_query_color): New declaration.
15537
15538 * nsterm.m (ns_confirm_quit): New variable.
15539 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
15540 (EmacsApp-applicationShouldTerminate:): Use it.
15541 (EmacsPrefsController): Let user set it.
15542 (ns_query_color): New function.
15543 (ns_defined_color): Use it.
15544 (ns_initialize): Drop.
15545 (ns_term_init): Add two lines from ns_initialize(), and set
15546 input_interrupt_mode to nil.
15547
15548 * image.c (svg_load_image): Don't right-shift background RGB when
15549 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
15550
15551 2009-01-28 Kenichi Handa <handa@m17n.org>
15552
15553 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
15554 (fontset_get_font_group): Remember that no font-group is specified
15555 for C.
15556
15557 2009-01-27 Chong Yidong <cyd@stupidchicken.com>
15558
15559 * fns.c (concat): Check for string overflow (bug#1787).
15560
15561 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
15562 Quadruple undo limits (bug#1501).
15563
15564 2009-01-27 Kenichi Handa <handa@m17n.org>
15565
15566 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
15567 directly use GT_Get_Char_index.
15568
15569 * xftfont.c (struct xftfont_info): New member `index'.
15570
15571 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
15572 (Ffontset_font): Adjust for the change of fontset entry.
15573
15574 2009-01-26 Kenichi Handa <handa@m17n.org>
15575
15576 * fontset.c (fontset_find_font): Fix handling of non-cons return
15577 value of fontset_get_font_group.
15578 (fontset_font): Revert last change.
15579
15580 2009-01-26 Jason Rumney <jasonr@gnu.org>
15581
15582 * w32font.c (w32font_list_internal): Return quickly if registry is
15583 unknown. Simplify final return.
15584 (add_font_entity_to_list): Break complex logic down into more
15585 manageable chunks. Move unknown registry check to
15586 w32font_list_internal.
15587
15588 2009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
15589
15590 Changes to remove Feval calls from GUI under NS.
15591
15592 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
15593 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
15594 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
15595
15596 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
15597 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
15598 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
15599 instead of NON_ASCII_KEYSTROKE_EVENT.
15600 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
15601 (EmacsApp-applicationShouldTerminate:): Query user.
15602 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
15603 instead of Feval.
15604
15605 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
15606
15607 * keyboard.c (kbd_buffer_get_event): Check for it.
15608 (keys_of_keyboard): Define lispy keys for
15609 ns-put/unput-working-text.
15610
15611 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
15612 versions.
15613 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
15614
15615 2009-01-25 Chong Yidong <cyd@stupidchicken.com>
15616
15617 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
15618 setting current_buffer directly. (Bug#2044)
15619
15620 2009-01-24 Chong Yidong <cyd@stupidchicken.com>
15621
15622 * fontset.c (fontset_font): If we know there is no font, don't do
15623 any work. (Bug#1952, bug#1990).
15624
15625 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
15626
15627 2009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
15628
15629 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
15630 (ns_no_defaults): New declaration.
15631 (main): Use it.
15632
15633 * nsterm.h (ns_no_defaults): New declaration.
15634
15635 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
15636
15637 * nsterm.m (ns_no_defaults): New variable.
15638 (ns_initialize): Don't read defaults when ns_no_defaults.
15639 (EmacsView-readSelectionFromPasteboard:)
15640 (writeSelectionToPasteboard:types:): New stubbed-out methods for
15641 NSServicesRequests protocol. (Bug#1435)
15642 (ns_dumpglyphs_stretch): New function.
15643 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
15644 of 2008-11-15 to other terms. (Bug#615)
15645
15646 * nsimage.m (setPixmapData:): Set to ignore image DPI.
15647
15648 2009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
15649
15650 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
15651 call for Sparc64.
15652
15653 2009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
15654
15655 * nsfns.m:
15656 * nsgui.h:
15657 * nsmenu.m:
15658 * nsselect.m:
15659 * nsterm.h:
15660 * nsterm.m: Remove '23' comments that indicated code added during
15661 update from emacs-20 -> emacs-23.
15662
15663 2009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
15664
15665 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
15666 ns_alternate_modifier. (Bug#1217)
15667
15668 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
15669 Display all shortcuts, including those w/o super modifier.
15670
15671 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
15672
15673 2009-01-22 Chong Yidong <cyd@stupidchicken.com>
15674
15675 * fileio.c (Vwrite_region_post_annotation_function)
15676 (Vwrite_region_annotation_buffers): New vars.
15677 (build_annotations_unwind): Just reset
15678 Vwrite_region_annotation_buffers.
15679 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
15680 Call write-region-post-annotation-function.
15681 (build_annotations): Add to Vwrite_region_annotation_buffers if
15682 buffer changes.
15683
15684 2009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
15685
15686 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
15687 Tiger.
15688 * nsfns.m (ns_do_applescript):
15689 Conditionalize typeUTF16ExternalRepresentation on Tiger.
15690
15691 2009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
15692
15693 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
15694
15695 2009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
15696
15697 * nsmenu.m (NSMENUPROFILE): Change #if style.
15698
15699 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
15700
15701 * nsterm.m (x_set_frame_alpha): Add prototype.
15702 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
15703 handle Ctrl-tab. (Bug#1841)
15704 (ns_get_color): Use unsigned long long for scanned hex string value.
15705 (ns_term_shutdown): Abort on non SIGTERM signals.
15706 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
15707 (EmacsPrefsController-setPanelFromDefaultValues): New function.
15708 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
15709 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
15710 (ns_defined_color): Fix settings of the XColor variable fields:
15711 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
15712
15713 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
15714 DPI. (Bug#1316)
15715 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
15716 values in onTiger section.
15717
15718 2009-01-19 Chong Yidong <cyd@stupidchicken.com>
15719
15720 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
15721 Check return value of font_spec_from_name.
15722 (Fx_list_fonts): Doc fix. (Bug#1951)
15723
15724 * font.c (font_spec_from_name): Return Qnil if font name could not
15725 be parsed.
15726 (font_parse_name): Treat a `?' character as part of an XLFD.
15727
15728 * fns.c (Fsubstring): Doc fix.
15729
15730 2009-01-19 Kenichi Handa <handa@m17n.org>
15731
15732 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
15733 (ftfont_list): Likewise.
15734
15735 2009-01-18 Juanma Barranquero <lekktu@gmail.com>
15736
15737 * dbusbind.c (Fdbus_register_signal):
15738 * process.c (conv_sockaddr_to_lisp):
15739 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
15740
15741 * callproc.c (Fgetenv_internal): Doc fix.
15742
15743 2009-01-16 Chong Yidong <cyd@stupidchicken.com>
15744
15745 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
15746 it is not even used.
15747
15748 2009-01-16 Glenn Morris <rgm@gnu.org>
15749
15750 * font.c (Ffont_variation_glyphs): Silence compiler.
15751
15752 2009-01-15 Juanma Barranquero <lekktu@gmail.com>
15753
15754 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
15755 Reported by David Robinow <drobinow@gmail.com>.
15756
15757 2009-01-15 Kenichi Handa <handa@m17n.org>
15758
15759 * coding.c (detect_coding_system): Fix handling of null_byte_found.
15760
15761 2009-01-14 Jason Rumney <jasonr@gnu.org>
15762
15763 * frame.c (x_set_font): Always store a font to the font parameter,
15764 never a fontset. (Bug#1562)
15765
15766 2009-01-14 Kenichi Handa <handa@m17n.org>
15767
15768 * coding.c (TWO_MORE_BYTES): New macro.
15769 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
15770
15771 2009-01-13 Chong Yidong <cyd@stupidchicken.com>
15772
15773 * font.c (font_clear_prop): If clearing the family, clear the font
15774 width index too.
15775
15776 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
15777
15778 2009-01-12 Juanma Barranquero <lekktu@gmail.com>
15779
15780 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
15781 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
15782 functions, use sizeof.
15783
15784 2009-01-12 Martin Rudalics <rudalics@gmx.at>
15785
15786 * keyboard.c (read_char): Fix case where last_nonmenu_event
15787 returned a bad value with submenus. (Bug#447)
15788
15789 2009-01-12 Chong Yidong <cyd@stupidchicken.com>
15790
15791 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
15792 family, clear the font width index too.
15793
15794 2009-01-11 Jason Rumney <jasonr@gnu.org>
15795
15796 * keyboard.c (cmd_error_internal): Exit when errors occur before
15797 frame creation and not in daemon mode. (Bug#1836)
15798
15799 2009-01-10 Chong Yidong <cyd@stupidchicken.com>
15800
15801 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
15802 of a display vector, backtrack.
15803 (try_window_reusing_current_matrix): Check glyph type before
15804 referencing charpos member.
15805
15806 2009-01-10 Eli Zaretskii <eliz@gnu.org>
15807
15808 Fix Bug #876:
15809
15810 * coding.c (inhibit_null_byte_detection): New variable.
15811 (detect_coding, detect_coding_system): Don't pay attention to null
15812 bytes if inhibit_null_byte_detection is non-zero.
15813 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
15814 <inhibit-iso-escape-detection>: Doc fix.
15815
15816 2009-01-09 Jason Rumney <jasonr@gnu.org>
15817
15818 * w32font.c (add_font_entity_to_list): Don't report unknown
15819 Windows charset as any unrecognized registry. (Bug#1548)
15820 Only report Unicode Plane 2 fonts as unicode-sip.
15821
15822 2009-01-09 Chong Yidong <cyd@stupidchicken.com>
15823
15824 * xfaces.c (Fx_font_family_list): Delete function.
15825 Move compatibility version to faces.el.
15826
15827 * font.c (Ffont_family_list): Return a list of strings, not symbols.
15828
15829 2009-01-09 Martin Rudalics <rudalics@gmx.at>
15830
15831 * frame.c (x_set_frame_parameters): Remember requested value for
15832 fullscreen before it's reset by the parameter handler.
15833
15834 2009-01-09 Glenn Morris <rgm@gnu.org>
15835
15836 * keyboard.c (last_command_char): For clarity, rename to...
15837 (last_command_event): ... and update all users.
15838 (last_input_char): For clarity, rename to...
15839 (last_input_event): ... and update all users.
15840 (last-command-char, last-input-char): Move to subr.el as aliases.
15841 * cmds.c, commands.h: Update for last_command_char rename.
15842
15843 2009-01-08 Chong Yidong <cyd@stupidchicken.com>
15844
15845 * font.c (font_open_for_lface): Handle unspecified height attribute.
15846
15847 2009-01-08 Jason Rumney <jasonr@gnu.org>
15848
15849 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
15850 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
15851 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
15852 Don't declare.
15853 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
15854 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
15855
15856 2009-01-07 Kenichi Handa <handa@m17n.org>
15857
15858 * fileio.c (Finsert_file_contents): In the case of replace,
15859 remember the coding system used for decoding in
15860 coding_system (Bug#1039).
15861
15862 * coding.c (decode_coding_utf_8): Check byte_after_cr before
15863 breaking the loop. (Bug#870)
15864 (decode_coding_utf_16, decode_coding_emacs_mule)
15865 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
15866 (decode_coding_charset): Likewise.
15867
15868 2009-01-05 Martin Rudalics <rudalics@gmx.at>
15869
15870 * frame.c (x_set_frame_parameters): Make sure height (width) get
15871 applied when fullwidth (fullheight) is set. (Bug#1522)
15872
15873 2009-01-04 Juanma Barranquero <lekktu@gmail.com>
15874
15875 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
15876 (utc_base): Declare as ULONGLONG, not long double.
15877 (convert_time_raw): Delete.
15878 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
15879 (initialize_utc_base): New function.
15880 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
15881 (convert_from_time_t): Use initialize_utc_base; compute result with
15882 64-bit arithmetic.
15883 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
15884
15885 2009-01-03 Eli Zaretskii <eliz@gnu.org>
15886
15887 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
15888 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
15889 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
15890 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
15891 [!subprocesses]: Define.
15892 (syms_of_process) [!subprocesses]: Intern and staticpro them.
15893 (Flist_system_processes, Fsystem_process_attributes)
15894 [!subprocesses]: Call list_system_processes and
15895 system_process_attributes instead of returning Qnil.
15896
15897 * dosfns.c (system_process_attributes, list_system_processes):
15898 New functions.
15899
15900 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
15901
15902 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
15903 Don't use the default (no-op) implementation.
15904
15905 2009-01-03 Jason Rumney <jasonr@gnu.org>
15906
15907 * keyboard.c (parse_modifiers_uncached): Wheel events are
15908 clicks (bug#687).
15909
15910 * w32term.c (x_query_colors, x_query_color): New functions.
15911
15912 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
15913 (svg_load_image): Cast returned pointers from dynamically loaded
15914 functions. Eliminate W32 specific code.
15915
15916 2009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
15917
15918 * nsfns.m (x_set_foreground_color, x_set_background_color)
15919 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
15920 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
15921 x_ prefix instead of ns_. Update references.
15922 (syms_of_nsfns): Add a FIXME comment.
15923
15924 * nsterm.m (x_set_cursor_type): New prototype.
15925 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
15926
15927 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
15928 for Solaris instead of incorrectly providing Qutime and Qcutime.
15929
15930 2009-01-02 Eli Zaretskii <eliz@gnu.org>
15931
15932 * w32.c (process_times): Compute sum of utime and stime.
15933 (system_process_attributes): Add Qtime to the alist.
15934
15935 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
15936 and add them to the alist.
15937
15938 * process.c (top level) <Qtime, Qctime>: New variables.
15939 (syms_of_process): staticpro them.
15940 (Fsystem_process_attributes): Add their documentation to the doc
15941 string.
15942
15943 * process.h: Declare Qtime and Qctime.
15944
15945 2009-01-02 Jason Rumney <jasonr@gnu.org>
15946
15947 * image.c (Qgobject): New symbol.
15948 (syms_of_image): Initialize it.
15949 (init_svg_functions): Load some functions from gobject library.
15950
15951 2009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
15952
15953 * frame.c (make_terminal_frame): Remove redundant code and useless
15954 block.
15955
15956 2009-01-01 Andreas Schwab <schwab@suse.de>
15957
15958 * process.c (conv_sockaddr_to_lisp): Add workaround for
15959 getsockname bug on BSD.
15960
15961 2009-01-01 Chong Yidong <cyd@stupidchicken.com>
15962
15963 * xfns.c (x_create_tip_frame): Set border width of the X window.
15964
15965 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
15966
15967 2009-01-01 Jason Rumney <jasonr@gnu.org>
15968
15969 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
15970 Don't block input, as per earlier xterm.c changes.
15971
15972 2008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
15973
15974 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
15975 (ns_appkit_version_int): New function.
15976 (x-server-version): Use ns_appkit_version_int and follow 21+
15977 convention of returning 3 integers.
15978
15979 2008-12-30 Kenichi Handa <handa@m17n.org>
15980
15981 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
15982 (CHAR_SURROGATE_PAIR_P): New macro.
15983
15984 * font.h (struct font_driver): New member get_variation_glyphs.
15985
15986 * font.c (font_range): Don't require a font for a variation selector.
15987 (Ffont_variation_glyphs): New function.
15988 (syms_of_font): Defsubr it.
15989
15990 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
15991 ftfont_variation_glyphs.
15992 (setup_otf_gstring): New function.
15993 (ftfont_drive_otf): Use it.
15994 (ftfont_shape_by_flt): Handle variation selector.
15995 (ftfont_variation_glyphs): New function.
15996
15997 2008-12-30 Martin Rudalics <rudalics@gmx.at>
15998
15999 * frame.c (Vemacs_iconified): Remove.
16000
16001 2008-12-30 Jason Rumney <jasonr@gnu.org>
16002
16003 * frame.c (store_frame_param, x_get_arg): Enable newer code on
16004 WINDOWSNT too, as related changes have already been synced. (Bug#117)
16005
16006 2008-12-30 Chong Yidong <cyd@stupidchicken.com>
16007
16008 * indent.c (Fvertical_motion): Don't advance iterator if we have
16009 reseated to the desired position.
16010
16011 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
16012 checking for pos match.
16013
16014 2008-12-30 Kenichi Handa <handa@m17n.org>
16015
16016 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
16017 just get the low 8-bit of the code.
16018
16019 * font.c (font_intern_prop): Validate str as multibyte.
16020
16021 2008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
16022
16023 * dispextern.h (struct face): Move lface and hash from the middle
16024 of bitfields.
16025
16026 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
16027
16028 2008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
16029
16030 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
16031 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
16032 instead of intervals.h.
16033
16034 2008-12-26 Andreas Schwab <schwab@suse.de>
16035
16036 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
16037 cons.
16038
16039 2008-12-26 Martin Rudalics <rudalics@gmx.at>
16040
16041 * textprop.c (Qminibuffer_prompt): New variable.
16042 (syms_of_textprop): Initialize it.
16043 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
16044 in minibuffer-prompt face. (Bug#1662)
16045
16046 2008-12-25 Jason Rumney <jasonr@gnu.org>
16047
16048 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
16049
16050 2008-12-24 Jason Rumney <jasonr@gnu.org>
16051
16052 * ralloc.c (r_alloc_reset_variable): New function.
16053
16054 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
16055 record of what points where. (Bug#716)
16056
16057 2008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
16058
16059 * minibuf.c (read_minibuf): Follow the non-interactive case when
16060 running as a daemon, before detaching.
16061
16062 2008-12-22 Andreas Schwab <schwab@suse.de>
16063
16064 * buffer.c (init_buffer): Use realloc instead of xrealloc.
16065 * gtkutil.c (free_widget_value): Use xfree instead of free.
16066
16067 2008-12-22 Martin Rudalics <rudalics@gmx.at>
16068
16069 * frame.c (delete_frame): New function derived from
16070 Fdelete_frame to handle Qnoelisp value for FORCE argument.
16071 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
16072 (Fdelete_frame): Call delete_frame. Remove line from doc-string
16073 saying that FORCE non-nil doesn't run `delete-frame-functions'.
16074 * frame.h: Extern delete_frame.
16075 * window.c (window_loop):
16076 * terminal.c (delete_terminal):
16077 * xterm.c (x_connection_closed):
16078 * xfns.c (Fx_hide_tip):
16079 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
16080
16081 2008-12-21 Jason Rumney <jasonr@gnu.org>
16082
16083 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
16084 when character maps to .notdef character.
16085
16086 2008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
16087
16088 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
16089
16090 2008-12-20 Jason Rumney <jasonr@gnu.org>
16091
16092 * frame.c (Fmake_terminal_frame): Raise an error when called from
16093 a graphical frame on Windows. (Bug#1325)
16094
16095 2008-12-20 Jan Djärv <jan.h.d@swipnet.se>
16096
16097 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
16098
16099 2008-12-20 Chong Yidong <cyd@stupidchicken.com>
16100
16101 * minibuf.c (Fread_buffer): Doc fix.
16102
16103 2008-12-20 Jason Rumney <jasonr@gnu.org>
16104
16105 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
16106 server name in UNC paths. (Bug#719)
16107
16108 * coding.c (decode_coding): Clear chars_at_source flag when using
16109 charbuf. (Bug#1035)
16110
16111 2008-12-19 Daniel Engeler <engeler@gmail.com>
16112
16113 * sysdep.c (serial_configure): Fix typo.
16114
16115 2008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
16116
16117 * sysdep.c: Include alloca.h.
16118 (system_process_attributes): Add implementation for Solaris.
16119
16120 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
16121
16122 2008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
16123
16124 Reorganize implementation of Flist_system_processes and
16125 Fsystem_process_attributes. No functional changes.
16126 * process.c: Don't #include pwd.h, grp.h and limits.h.
16127 (Flist_system_processes): Just call list_system_processes.
16128 (Fsystem_process_attributes): Just call system_process_attributes.
16129 (procfs_list_system_processes, time_from_jiffies)
16130 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
16131 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
16132
16133 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
16134 (list_system_processes): Rename from
16135 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
16136 Provide a do nothing implementation.
16137 (system_process_attributes): Rename from
16138 procfs_list_system_processes.
16139 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
16140 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
16141
16142 * w32.c (list_system_processes): Rename from
16143 w32_list_system_processes.
16144 (system_process_attributes): Rename from
16145 w32_system_process_attributes.
16146
16147 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
16148
16149 * process.h (w32_list_system_processes)
16150 (w32_system_process_attributes): Remove.
16151 (list_system_processes, system_process_attributes):
16152 New prototypes.
16153
16154 2008-12-19 Kenichi Handa <handa@m17n.org>
16155
16156 * xfont.c (xfont_decode_coding_xlfd): New function.
16157 (xfont_encode_coding_xlfd): New function.
16158 (xfont_list_pattern): Decode XLFD by iso-8859-1.
16159 (xfont_list): Decode and encode XLFD by iso-8859-1.
16160 (xfont_match): Likewise.
16161 (xfont_list_family): Likewise.
16162 (xfont_open): Likewise.
16163
16164 * ftfont.c (ftfont_open): Generate a multibyte string if given
16165 names are utf-8.
16166
16167 * xftfont.c (xftfont_open): Generate a multibyte string if given
16168 names are utf-8.
16169
16170 2008-12-18 Jan Djärv <jan.h.d@swipnet.se>
16171
16172 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
16173 changed.
16174 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
16175 clicked on a detached tool bar button.
16176
16177 2008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
16178
16179 * emacs.c (main): Print and error and exit when no data is read
16180 from the pipe.
16181
16182 2008-12-17 Jason Rumney <jasonr@gnu.org>
16183
16184 * w32font.c (w32font_has_char): Always return -1.
16185
16186 2008-12-16 Kenichi Handa <handa@m17n.org>
16187
16188 * font.c (font_open_entity): Fix previous change.
16189
16190 2008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
16191
16192 * process.c: Include <limits.h>.
16193
16194 2008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
16195
16196 * font.c (font_update_drivers): Fix mistake in reconstructing the
16197 driver list.
16198
16199 2008-12-16 Chong Yidong <cyd@stupidchicken.com>
16200
16201 * font.c (font_clear_cache): Fix format of font cache data.
16202
16203 2008-12-15 Chong Yidong <cyd@stupidchicken.com>
16204
16205 * xftfont.c (xftfont_open): Free Xft font pattern if
16206 XftFontOpenPattern fails.
16207
16208 * xterm.c (x_free_frame_resources): Remove extraneous call to
16209 free_frame_faces.
16210
16211 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
16212
16213 * xterm.c (x_delete_display): Move xim_close_dpy call to
16214 x_delete_terminal.
16215 (x_delete_terminal): Call xim_close_dpy.
16216
16217 2008-12-13 Jason Rumney <jasonr@gnu.org>
16218
16219 * w32font.c (intern_font_name): New function.
16220 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
16221 (w32font_open_internal, Fx_select_font): Decode font name.
16222 (fill_in_logfont, list_all_matching_fonts): Encode font name.
16223
16224 * w32font.h (intern_font_name): Declare new function.
16225
16226 * w32uniscribe.c (add_opentype_font_name_to_list):
16227 Use intern_font_name.
16228
16229 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
16230
16231 * frame.c (Fdelete_frame): Call free_font_driver_list.
16232
16233 * font.c (free_font_driver_list): Implement missing function.
16234
16235 * w32term.c (w32_term_init): Don't initialize the image cache
16236 here; it will be done in init_frame_faces.
16237
16238 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
16239 (struct x_display_info): Remove unused member null_pixel.
16240 New member xim_callback_data.
16241
16242 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
16243 (xim_initialize): Save pointer to callback function data.
16244 (xim_close_dpy): Free callback function data. Call XCloseIM,
16245 reverting 2008-11-04 change by David Smith.
16246 (x_term_init): Don't initialize the image cache here; it will be
16247 done in init_frame_faces. Remove ancient "null_pixel" cruft.
16248 (x_delete_display): Free x_dnd_atoms member.
16249
16250 2008-12-13 Kenichi Handa <handa@m17n.org>
16251
16252 * font.c (font_rescale_ratio): Move from xfaces.c.
16253 Argument type changed. Handle a font-spec too.
16254 (font_score): Check Vface_font_rescale_alist.
16255 (font_open_entity): Likewise. (Bug#1547)
16256
16257 * xfaces.c (font_rescale_ratio): Move to font.c.
16258
16259 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
16260
16261 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
16262
16263 2008-12-12 Jason Rumney <jasonr@gnu.org>
16264
16265 * w32fns.c (x_display_info_for_name, Fx_open_connection):
16266 Set Vwindow_system_version to the real w32 major version.
16267
16268 2008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
16269
16270 * term.c (init_tty): Move setting the terminal name before the
16271 potential user: maybe_fatal.
16272
16273 2008-12-11 Chong Yidong <cyd@stupidchicken.com>
16274
16275 * term.c (tty_free_frame_resources): Rename from delete_tty_output;
16276 all callers changed. Call free_frame_faces to free the face cache.
16277
16278 2008-12-11 Jason Rumney <jasonr@gnu.org>
16279
16280 * w32font.c (fill_in_logfont): Don't assume symbol script means
16281 SYMBOL_CHARSET. (Bug#547)
16282
16283 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
16284 size for surrogates. (Bug#1096, bug#872)
16285
16286 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
16287
16288 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
16289
16290 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
16291
16292 * process.c (Fsystem_process_attributes, syms_of_process):
16293 Fix typo in name of Ssystem_process_attributes.
16294 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
16295
16296 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
16297
16298 * syntax.c (Fmodify_syntax_entry): Doc fix.
16299
16300 2008-12-10 Juanma Barranquero <lekktu@gmail.com>
16301
16302 * font.c (Ffont_spec): Move usage to end of docstring.
16303
16304 2008-12-10 Jason Rumney <jasonr@gnu.org>
16305
16306 * w32font.c (Qcham): New symbol.
16307 (font_supported_scripts): Add cham, and comments for other new
16308 scripts in bitfield from OpenType spec.
16309 (add_font_entity_to_list): Limit unicode-sip fonts to those that
16310 contain characters beyond the bmp.
16311
16312 2008-12-10 Kenichi Handa <handa@m17n.org>
16313
16314 * ftfont.c (fc_charset_table): Add "unicode-sip".
16315 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
16316 Qunicode_sip.
16317
16318 2008-12-10 Juanma Barranquero <lekktu@gmail.com>
16319
16320 * coding.c (QCdefault_char): Rename from QCdefalut_char.
16321 (Fcoding_system_put): Use QCdefault_char.
16322 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
16323
16324 2008-12-09 Chong Yidong <cyd@stupidchicken.com>
16325
16326 * xftfont.c (syms_of_xftfont): Fix typo.
16327
16328 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
16329
16330 2008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
16331
16332 * emacs.c (main): Close daemon_pipe on exec.
16333
16334 2008-12-08 Chong Yidong <cyd@stupidchicken.com>
16335
16336 * termchar.h (struct tty): New members termcap_term_buffer and
16337 termcap_strings_buffer.
16338
16339 * term.c (encode_terminal_code): Free any previous memory blocks
16340 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
16341 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
16342 All callers changed.
16343 (init_tty): Store termcap data and string buffers in new struct
16344 tty members termcap_term_buffer and termcap_strings_buffer.
16345 (delete_tty): Free them.
16346 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
16347
16348 2008-12-07 Seiji Zenitani <zenitani@mac.com>
16349
16350 * nsfns.m (ns_set_background_color): Remove code duplication.
16351 It was a substitute for face-transparency on OS X 10.3.
16352
16353 2008-12-06 Chong Yidong <cyd@stupidchicken.com>
16354
16355 * coding.c (make_conversion_work_buffer): Disable buffer
16356 modification hooks in the work buffer.
16357
16358 2008-12-05 Eli Zaretskii <eliz@gnu.org>
16359
16360 * process.c (procfs_system_process_attributes): If `nread' has a
16361 negative value, assign zero to it.
16362
16363 2008-12-05 Chong Yidong <cyd@stupidchicken.com>
16364
16365 * eval.c (Vdebug_on_error): Doc fix.
16366
16367 2008-12-05 Kenichi Handa <handa@m17n.org>
16368
16369 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
16370 second character is a combining character.
16371
16372 2008-12-05 Eli Zaretskii <eliz@gnu.org>
16373
16374 * process.c (procfs_system_process_attributes): Don't use cmd,
16375 cmdsize, and q without initializing them first.
16376
16377 2008-12-04 Jason Rumney <jasonr@gnu.org>
16378
16379 * w32font.c (w32font_draw): Initialize orig_clip before getting
16380 it, and delete it when finished.
16381
16382 2008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
16383
16384 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
16385 case when running as a daemon before detaching.
16386
16387 2008-12-03 Juanma Barranquero <lekktu@gmail.com>
16388
16389 * w32.c (init_environment): Don't unload library shell32.dll.
16390
16391 2008-12-03 Kenichi Handa <handa@m17n.org>
16392
16393 * font.c (font_at): Set `multibyte' at first.
16394
16395 * coding.c (decode_coding_charset): Check type of an element of
16396 vector VALIDS.
16397 (encode_coding_emacs_mule): Be sure to set `code'.
16398
16399 * fontset.c (face_for_char): Handle invalid charset property correctly.
16400 (font_for_char): Likewise.
16401
16402 2008-12-03 Chong Yidong <cyd@stupidchicken.com>
16403
16404 * font.c (Fopen_font): Compute pixel size correctly.
16405 (font_update_lface): Handle fonts with corrupted size specs,
16406 i.e. non-int and non-float.
16407
16408 * ftfont.c (ftfont_match): Initialize entity variable.
16409 (ftfont_resolve_generic_family): Avoid using uninitialized var.
16410 (ftfont_list_family): Initialize list var earlier.
16411
16412 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
16413
16414 * xterm.c (x_draw_glyph_string): Fall back on
16415 underline_minimum_offset for underline position.
16416
16417 2008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
16418
16419 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
16420
16421 * character.c (c_string_width): Specify the type for LEN.
16422
16423 2008-12-03 Kenichi Handa <handa@m17n.org>
16424
16425 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
16426 (decode_coding_utf_8): Likewise.
16427 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
16428 (produce_chars): Initialize consumed_chars to 0.
16429
16430 2008-12-02 Chong Yidong <cyd@stupidchicken.com>
16431
16432 * keyboard.c (make_lispy_position): Only use PT if the selected
16433 window is current.
16434
16435 2008-12-02 Andreas Schwab <schwab@suse.de>
16436
16437 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
16438
16439 * doprnt.c (doprnt1): Fix size of charbuf.
16440
16441 2008-12-02 Chong Yidong <cyd@stupidchicken.com>
16442
16443 * keyboard.c (timer_check): Revert last change.
16444
16445 2008-12-02 Juanma Barranquero <lekktu@gmail.com>
16446
16447 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
16448
16449 2008-12-01 Juanma Barranquero <lekktu@gmail.com>
16450
16451 * makefile.w32-in: Update dependencies.
16452 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
16453
16454 2008-12-01 Andreas Schwab <schwab@suse.de>
16455
16456 * font.c (register_font_driver): Use xmalloc.
16457 (font_put_frame_data): Likewise.
16458
16459 2008-12-01 Chong Yidong <cyd@stupidchicken.com>
16460
16461 * xfaces.c (realize_x_face): Make abort condition clearer.
16462
16463 * gtkutil.c (update_frame_tool_bar): Initialize variable.
16464
16465 2008-11-30 Chong Yidong <cyd@stupidchicken.com>
16466
16467 * keyboard.c (timer_check): After a timer runs, ensure that the
16468 selected window's buffer is current.
16469
16470 2008-11-30 Juanma Barranquero <lekktu@gmail.com>
16471
16472 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
16473 It was accidentally restored by the Unicode merge.
16474
16475 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
16476
16477 2008-11-29 Juanma Barranquero <lekktu@gmail.com>
16478
16479 * w32proc.c: Include "coding.h".
16480 (Fw32_short_file_name): Encode filename passed to Windows API.
16481 (Fw32_long_file_name): Encode filename passed to Windows API and
16482 decode back the result. (Bug#1433)
16483
16484 2008-11-29 Kenichi Handa <handa@m17n.org>
16485
16486 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
16487 not before accessing it.
16488
16489 * charset.c (Fdefine_charset_internal): After calculating
16490 min_char, max_char, and fastmap, copy the charset structure again.
16491 (encode_char): Fix the previous change.
16492
16493 2008-11-28 Seiji Zenitani <zenitani@mac.com>
16494
16495 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
16496
16497 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
16498
16499 * nsterm.m (x_set_frame_alpha): New function.
16500
16501 2008-11-27 Eli Zaretskii <eliz@gnu.org>
16502
16503 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
16504
16505 2008-11-27 Juanma Barranquero <lekktu@gmail.com>
16506
16507 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
16508 pointer to check_face_name.
16509
16510 2008-11-27 Kenichi Handa <handa@m17n.org>
16511
16512 * category.h (SET_CATEGORY_SET): Call set_category_set.
16513 (set_category_set): Extern it.
16514
16515 * category.c (hash_get_category_set): New function.
16516 (Fmodify_category_entry): Adjust for the change of
16517 char_table_ref_and_range. Call hash_get_category_set to get a
16518 category set to store in the table.
16519
16520 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
16521 Funify_charset.
16522
16523 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
16524 (DECODE_CHAR): Check if the decoder vector is ready.
16525 (ENCODE_CHAR): Check if the encoder char-table is ready.
16526 (maybe_unify_char): Extern it.
16527
16528 * charset.c (Vchar_unified_charset_table): Delete it.
16529 (inhibit_load_charset_map): New variable.
16530 (temp_charset_work): New variable.
16531 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
16532 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
16533 New macros.
16534 (load_charset_map): Meaning of control_flag changed.
16535 If inhibit_load_charset_map is nonzero, setup a table in
16536 temp_charset_work.
16537 (load_charset): New argument control_flag.
16538 (map_charset_for_dump): New function.
16539 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
16540 map_charset_for_dump.
16541 (Fdefine_charset_internal): If the charset method is MAP, load
16542 mapping tables by calling load_charset.
16543 (Funify_charset): Don't load a mapping table but directly set
16544 Vchar_unify_table.
16545 (maybe_unify_char): New function.
16546 (decode_char): Don't handle the deleted method MAP_DEFERRED.
16547 Handle the case of inhibit_load_charset_map being nonzero.
16548 (encode_char): Don't handle the deleted method MAP_DEFERRED.
16549 Handle the case of inhibit_load_charset_map being nonzero.
16550 (Fclear_charset_maps): Just free temp_charset_work.
16551 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
16552 variable.
16553
16554 * chartab.c (sub_char_table_ref_and_range): Adjust for the
16555 change of char_table_ref_and_range.
16556 (char_table_ref_and_range): Change the meaning of argument FROM
16557 and TO. Now the caller must provide initial values for *FROM
16558 and *TO.
16559
16560 * fontset.c (fontset_add): Adjust for the change of
16561 char_table_ref_and_range.
16562 (fontset_get_font_group): Likewise.
16563 (Ffontset_info): Likewise.
16564
16565 * keymap.c (describe_vector): Adjust for the change of
16566 char_table_ref_and_range. For char-table, put boundary between
16567 non-ASCII and 8-bit characters.
16568
16569 * print.c (print_object): For bool-vector, delete unnecessary
16570 check of ASCII_BYTE_P.
16571
16572 2008-11-26 Jason Rumney <jasonr@gnu.org>
16573
16574 * w32font.c (w32font_open_internal): Don't include external
16575 leading in font height. (Bug#879)
16576
16577 2008-11-26 Glenn Morris <rgm@gnu.org>
16578
16579 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
16580 redefinition with ifdef. (Bug#1383)
16581
16582 2008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
16583
16584 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
16585
16586 2008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
16587
16588 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
16589 New EmacsView methods.
16590 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
16591 Fixes bug #1048,1357,1414.
16592
16593 2008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
16594
16595 Fix bug #1362.
16596 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
16597 is not an indexed color.
16598 * nsterm.m (free_indexed_color): Add argument checking.
16599 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
16600
16601 2008-11-24 Chong Yidong <cyd@stupidchicken.com>
16602
16603 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
16604 Document confirm-after-completion value for
16605 minibuffer-completion-confirm.
16606
16607 2008-11-24 Jason Rumney <jasonr@gnu.org>
16608
16609 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
16610 warning.
16611
16612 2008-11-23 Jason Rumney <jasonr@gnu.org>
16613
16614 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
16615 restored before returning.
16616
16617 * w32font.c (check_face_name): New function.
16618 (add_font_entity_to_list): Use it to filter out common substituted
16619 fonts. (Bug#642)
16620
16621 2008-11-22 Martin Rudalics <rudalics@gmx.at>
16622
16623 * buffer.c (Fswitch_to_buffer): Reword and mention new option
16624 confirm-nonexistent-file-or-buffer in doc-string.
16625
16626 2008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
16627
16628 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
16629 Fix copy/paste typo. Add checks.
16630
16631 2008-11-21 Kenichi Handa <handa@m17n.org>
16632
16633 * coding.c (detect_coding_iso_2022): Reject invalid composition
16634 sequence.
16635 (DECODE_COMPOSITION_START): If the current source is the last
16636 block, and the current composition doesn't end, regard this
16637 sequence as invalid.
16638 (decode_coding_iso_2022): Handle invalid composition sequence.
16639
16640 2008-11-20 Martin Rudalics <rudalics@gmx.at>
16641
16642 * window.c (coordinates_in_window): Don't return
16643 ON_VERTICAL_BORDER for the rightmost position of a mode/header
16644 line when the window is not the rightmost one. (Bug#1372)
16645
16646 2008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
16647
16648 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
16649
16650 2008-11-15 Eli Zaretskii <eliz@gnu.org>
16651
16652 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
16653 and bright_bg if noninteractive is non-zero.
16654
16655 2008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16656
16657 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
16658 x_draw_glyph_string_background.
16659
16660 * w32term.c (x_draw_glyph_string): Likewise.
16661
16662 2008-11-15 Chong Yidong <cyd@stupidchicken.com>
16663
16664 * xterm.c (x_draw_glyph_string): Stop drawing the background of
16665 the next glyph string once past the overhang width.
16666
16667 * nsterm.m (ns_draw_glyph_string): Likewise.
16668
16669 * w32term.c (x_draw_glyph_string): Likewise.
16670
16671 2008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
16672
16673 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
16674 double file close.
16675
16676 2008-11-14 Martin Rudalics <rudalics@gmx.at>
16677
16678 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
16679 dedicated status of window before attempting to display another
16680 buffer in it.
16681
16682 2008-11-14 Juanma Barranquero <lekktu@gmail.com>
16683
16684 * msdos.c (Fmsdos_long_file_names):
16685 (syms_of_msdos) <dos-unsupported-char-glyph>:
16686 * dosfns.c (Fint86): Fix typos in docstrings.
16687
16688 2008-11-14 Eli Zaretskii <eliz@gnu.org>
16689
16690 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
16691
16692 2008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
16693
16694 * puresize.h (BASE_PURESIZE): Increase to 1260000.
16695
16696 2008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
16697
16698 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
16699
16700 * frame.h: Negative alpha means "don't touch".
16701
16702 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
16703
16704 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
16705
16706 2008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
16707
16708 * hftctl.c:
16709 * chpdef.h:
16710 * acldef.h: Remove files used only for systems no longer supported.
16711
16712 * Makefile.in: Fix .o alphabetical ordering.
16713 (hftctl.o): Remove dependency, file removed.
16714 (keymap.o, print.o): Depend on charset.h.
16715
16716 2008-11-10 Kenichi Handa <handa@m17n.org>
16717
16718 * character.c (Fget_byte): Fix and make it faster for unibyte target.
16719
16720 2008-11-08 Chong Yidong <cyd@stupidchicken.com>
16721
16722 * dired.c (file_name_completion): If completion_ignore_case is
16723 enabled, ignore case when checking completion-regexp-list.
16724
16725 2008-11-08 Eli Zaretskii <eliz@gnu.org>
16726
16727 * vm-limit.c (get_lim_data): Fix last change.
16728
16729 2008-11-08 Kenichi Handa <handa@m17n.org>
16730
16731 * character.c (Fget_byte): New function.
16732 (syms_of_character): Defsubr Fget_byte.
16733
16734 2008-11-07 Chong Yidong <cyd@stupidchicken.com>
16735
16736 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
16737 cursor position is valid after scrolling.
16738
16739 2008-11-06 Juanma Barranquero <lekktu@gmail.com>
16740
16741 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
16742
16743 2008-11-06 Glenn Morris <rgm@gnu.org>
16744
16745 * xterm.c (handle_one_xevent): Don't let popup menus cause
16746 mouse-autoselect-window related window switching. (Bug#1261)
16747
16748 2008-11-04 David Smith <davidsmith@acm.org> (tiny change)
16749
16750 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
16751
16752 2008-11-04 Andreas Schwab <schwab@suse.de>
16753
16754 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
16755
16756 2008-11-03 Chong Yidong <cyd@stupidchicken.com>
16757
16758 * xfns.c (Fx_wm_set_size_hint): New function.
16759
16760 2008-11-03 Martin Rudalics <rudalics@gmx.at>
16761
16762 * textprop.c (Fprevious_single_char_property_change): Return 0
16763 when there's no change in a string. (Bug#1301)
16764
16765 2008-11-02 Martin Rudalics <rudalics@gmx.at>
16766
16767 * frame.c (do_switch_frame): New argument NORECORD passed to
16768 Fselect_window.
16769 (Fselect_frame): New argument NORECORD passed to
16770 do_switch_frame.
16771 (Fset_frame_selected_window): New argument NORECORD passed to
16772 Fselect_frame.
16773 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
16774 in call of do_switch_frame.
16775 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
16776 Handle NORECORD argument in call of Fselect_frame.
16777 * lisp.h (do_switch_frame, Fselect_frame)
16778 (Fset_frame_selected_window): Adjust declarations.
16779 * window.c (select_frame_norecord): New function.
16780 (run_window_configuration_change_hook): Use it and call
16781 Fselect_frame with NORECORD set.
16782 (Fselect_window): Pass NORECORD to Fselect_frame.
16783 (Fset_window_configuration): Handle NORECORD argument in call of
16784 do_switch_frame.
16785 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
16786 Fset_frame_selected_window.
16787 * keyboard.c (command_loop_1): Handle NORECORD in call of
16788 Fselect_frame (currently ifdefd).
16789
16790 2008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
16791
16792 * emacs.c (USAGE2): Untabify.
16793
16794 2008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
16795
16796 * composite.c (fill_gstring_header): Fix copy/paste typo.
16797
16798 2008-10-31 Martin Rudalics <rudalics@gmx.at>
16799
16800 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
16801 (Fother_window): Rename argument and rewrite doc-string.
16802 (select_window_norecord): Fix return value. (Bug#1276)
16803
16804 2008-10-30 Juanma Barranquero <lekktu@gmail.com>
16805
16806 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
16807 new frames overriding foreground for tooltips. Based on similar patch
16808 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
16809
16810 2008-10-29 Chong Yidong <cyd@stupidchicken.com>
16811
16812 * emacs.c (Fdaemon_initialized): Initialize nfd.
16813
16814 2008-10-29 Martin Rudalics <rudalics@gmx.at>
16815
16816 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
16817 (Fwindow_text_height): Clarify doc-strings.
16818 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
16819 doc-string of window-scroll-functions.
16820
16821 2008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
16822
16823 * category.c (syms_of_category): Fix typo in docstring.
16824
16825 2008-10-28 Juanma Barranquero <lekktu@gmail.com>
16826
16827 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
16828 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
16829 Fix typos in docstrings.
16830
16831 2008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
16832
16833 * emacs.c (daemon_pipe): Make non-static.
16834 (IS_DAEMON): Move definition ...
16835 * lisp.h (IS_DAEMON): ... here.
16836 (daemon_pipe): Declare.
16837 (is_daemon): Remove.
16838 * dispnew.c (init_display): Use IS_DAEMON.
16839
16840 2008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
16841
16842 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
16843 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
16844
16845 * emacs.c (is_daemon): Remove.
16846 (main): Don't set is_daemon.
16847 (IS_DAEMON): New macro.
16848 (Fdaemonp, Fdaemon_initialized): Use it.
16849 (Fdaemon_initialized): Write a char into the pipe to make sure the
16850 parent exits.
16851 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
16852
16853 2008-10-27 Chong Yidong <cyd@stupidchicken.com>
16854
16855 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
16856 over-sized glyph, draw it with the default glyph width.
16857
16858 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
16859 glyph, draw it with the default glyph width.
16860
16861 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
16862 glyph, draw it with the default glyph width.
16863
16864 * xdisp.c (try_scrolling): When computing the distance from the
16865 scroll margin to PT, try moving some distance past the window
16866 bottom before giving up.
16867
16868 2008-10-27 Martin Rudalics <rudalics@gmx.at>
16869
16870 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
16871 (Fset_window_buffer): Explain in doc-string that a window can be
16872 "strongly" dedicated to its buffer.
16873
16874 2008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
16875
16876 * emacs.c (daemon_name): New variable.
16877 (main): Deal with --daemon=SERVER_NAME.
16878 (Fdaemonp): Return a name if one was passed to --daemon.
16879
16880 2008-10-26 Romain Francoise <romain@orebokech.com>
16881
16882 * emacs.c (daemon_pipe): New variable.
16883 (main): Create a pipe before forking, make the parent exit only after
16884 the child has closed its end of the pipe. Move closing the
16885 descriptors ...
16886 (Fdaemon_initialized): ... here. New function.
16887
16888 2008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
16889
16890 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
16891 the previous unoptimized table.
16892
16893 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
16894 the distinction between non-nil and non-t value of `dedicated'.
16895
16896 2008-10-25 Chong Yidong <cyd@stupidchicken.com>
16897
16898 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
16899 read_char_minibuf_menu_text is large enough to hold the menu string.
16900
16901 2008-10-25 Martin Rudalics <rudalics@gmx.at>
16902
16903 * window.c (Fget_buffer_window, Fdelete_windows_on)
16904 (Freplace_buffer_in_windows): Make buffer argument optional and
16905 rename to buffer_or_name.
16906
16907 2008-10-24 Chong Yidong <cyd@stupidchicken.com>
16908
16909 * xdisp.c (handle_single_display_spec, handle_display_prop):
16910 Undo 2005-05-16 change.
16911 (handle_stop): Pop iterator if it's loaded with an empty string.
16912 (get_overlay_strings_1): Don't save iterator if it's loaded with
16913 an empty string (bug#1201).
16914
16915 2008-10-24 Kenichi Handa <handa@m17n.org>
16916
16917 * ftfont.c (ftfont_otf_features): Fix previous change.
16918 (ftfont_otf_capability): Check FeatureList.FeatureCount before
16919 calling ftfont_otf_features.
16920
16921 2008-10-24 Kenichi Handa <handa@m17n.org>
16922
16923 * font.c (font_match_p): Fix for the case that a vector of
16924 characters is in script-representative-chars.
16925
16926 2008-10-24 Michael Albinus <michael.albinus@gmx.de>
16927
16928 * dbusbind.c (xd_in_read_queued_messages): New variable.
16929 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
16930 (xd_read_queued_messages): Catch Qdbus_error from the macros.
16931 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
16932 macro. (Bug#1186)
16933
16934 2008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
16935
16936 * s/sol2-10.h: New file.
16937
16938 2008-10-23 Juanma Barranquero <lekktu@gmail.com>
16939
16940 * xdisp.c (fill_glyph_string): Fix typo in source (though the
16941 poor beast has survived 9+ years and the jump from xterm.c!).
16942
16943 2008-10-23 Martin Rudalics <rudalics@gmx.at>
16944
16945 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
16946 Reword doc-string.
16947 (Fbury_buffer): In doc-string say what happens to the buffer's window.
16948
16949 2008-10-23 Juanma Barranquero <lekktu@gmail.com>
16950
16951 * character.c (syms_of_character) <script-representative-chars>:
16952 <unicode-category-table>: Doc fixes.
16953
16954 2008-10-23 Noah Friedman <friedman@splode.com>
16955
16956 * coding.c (make_conversion_work_buffer): Check that
16957 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
16958 Fget_buffer_create.
16959
16960 2008-10-23 Kenichi Handa <handa@m17n.org>
16961
16962 * font.c (font_add_log): Check the values of extra properties.
16963
16964 2008-10-22 Martin Rudalics <rudalics@gmx.at>
16965
16966 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
16967 Reword doc-string.
16968 (Fset_window_parameter): Use NILP.
16969 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
16970 (Frecenter): Use "selected" instead of "current" window in doc-strings.
16971
16972 2008-10-22 Juanma Barranquero <lekktu@gmail.com>
16973
16974 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
16975
16976 2008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
16977
16978 * nsfns.m (ns_appkit_version): New function.
16979 (x-server-version): Use it.
16980 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
16981 (x-server-vendor): Don't check_ns().
16982
16983 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
16984
16985 2008-10-22 Juanma Barranquero <lekktu@gmail.com>
16986
16987 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
16988 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
16989
16990 2008-10-22 Kenichi Handa <handa@m17n.org>
16991
16992 * syntax.c (scan_words): Call word_boundary_p instead of comparing
16993 scripts.
16994
16995 * category.c (word_boundary_p): Check scripts instead of charset.
16996 Handle nil value in word-separating-categories and
16997 word-combining-categories.
16998 (syms_of_category): Fix docstrings of word-separating-categories
16999 and word-combining-categories.
17000
17001 2008-10-21 Eli Zaretskii <eliz@gnu.org>
17002
17003 * coding.c (Fencode_coding_region, Fdecode_coding_region)
17004 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
17005
17006 2008-10-21 Martin Rudalics <rudalics@gmx.at>
17007
17008 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
17009 Rename arg "buffer" to "buffer_or_name".
17010 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
17011 it optional.
17012 (no_switch_window): Remove since the return value is not used.
17013 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
17014 Consider window as dedicated when Fwindow_dedicated_p returns a
17015 non-nil value.
17016 * lisp.h: Remove prototype for no_switch_window.
17017
17018 2008-10-21 Jan Djärv <jan.h.d@swipnet.se>
17019
17020 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
17021 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
17022
17023 2008-10-21 Kenichi Handa <handa@m17n.org>
17024
17025 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
17026 check Vlatin_extra_code_table.
17027
17028 2008-10-20 Eli Zaretskii <eliz@gnu.org>
17029
17030 * fileio.c (Fset_file_modes): Doc fix.
17031
17032 2008-10-19 Michael Albinus <michael.albinus@gmx.de>
17033
17034 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
17035 in arrays.
17036
17037 2008-10-19 Martin Rudalics <rudalics@gmx.at>
17038
17039 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
17040 Mention kill-buffer in doc-string.
17041 (Fset_window_buffer): Reinsert tem check removed in last commit.
17042 (Fenlarge_window, Fshrink_window): Have argument names and
17043 doc-string follow Elisp manual more closely.
17044
17045 2008-10-18 Eli Zaretskii <eliz@gnu.org>
17046
17047 * fileio.c (Fset_file_modes): Doc fix.
17048
17049 2008-10-18 Martin Rudalics <rudalics@gmx.at>
17050
17051 * window.c (Fwindow_width, Fset_window_start)
17052 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
17053 (Fdelete_windows_on, Freplace_buffer_in_windows):
17054 Make doc-strings follow code and Elisp manual more closely.
17055 (Fwindow_dedicated_p): Make window argument optional.
17056 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
17057 (Fset_window_buffer): Respect any non-nil dedicated value for
17058 window. Rename "buffer" argument to "buffer_or_name".
17059
17060 2008-10-18 Ulrich Mueller <ulm@gentoo.org>
17061
17062 * m/sh3.h: New file, machine description for SuperH.
17063
17064 2008-10-17 Martin Rudalics <rudalics@gmx.at>
17065
17066 * window.c (Fsplit_window): Rename arg horflag to horizontal.
17067
17068 2008-10-17 Kenichi Handa <handa@m17n.org>
17069
17070 * ftfont.c (ftfont_otf_features): Fix indexing
17071 gsub_gpos->FeatureList.Feature. Check the validity of indices.
17072
17073 2008-10-16 Magnus Henoch <mange@freemail.hu>
17074
17075 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
17076 (Fdbus_call_method_asynchronously): Ditto.
17077 This change makes C-h f display the argument list.
17078
17079 2008-10-16 Chong Yidong <cyd@stupidchicken.com>
17080
17081 * fileio.c (Fexpand_file_name): Doc fix.
17082
17083 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
17084 of :foreground and :background equivalent to unspecified (20.x
17085 compatibility).
17086
17087 2008-10-15 Eli Zaretskii <eliz@gnu.org>
17088
17089 * buffer.c (syms_of_buffer): Doc fix.
17090
17091 2008-10-14 Kenichi Handa <handa@m17n.org>
17092
17093 * font.c (font_clear_prop): When clearing font width, clear the
17094 average width field too.
17095
17096 2008-10-12 Andreas Schwab <schwab@suse.de>
17097
17098 * ftfont.c (ftfont_shape_by_flt): Make static.
17099 * ftfont.h (ftfont_shape_by_flt): Don't declare.
17100
17101 * font.c: Don't include <m17n-flt.h>.
17102
17103 2008-10-10 Eli Zaretskii <eliz@gnu.org>
17104
17105 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
17106
17107 2008-10-09 Eli Zaretskii <eliz@gnu.org>
17108
17109 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
17110 away code.
17111
17112 2008-10-09 Chong Yidong <cyd@stupidchicken.com>
17113
17114 * dispnew.c (update_text_area): Avoid looping due to large glyph
17115 overhangs (bug#1070).
17116
17117 2008-10-09 Kenichi Handa <handa@m17n.org>
17118
17119 * fontset.c (face_for_char): If face->fontset is negative, just
17120 return ascii_face.
17121
17122 * font.c (font_delete_unmatched): Fix previous change.
17123 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
17124
17125 2008-10-09 Martin Rudalics <rudalics@gmx.at>
17126
17127 * frame.c (Fraise_frame): On text-only terminals select frame in
17128 order to make it visible. (Bug#1061)
17129
17130 2008-10-08 Chong Yidong <cyd@stupidchicken.com>
17131
17132 * fontset.c (fontset_find_font): Check frame validity.
17133
17134 2008-10-07 Chong Yidong <cyd@stupidchicken.com>
17135
17136 * gtkutil.c (xg_display_open): Reset default display if none exists.
17137 (xg_display_close): Allow Emacs to close all displays (bug#985).
17138
17139 2008-10-06 Andreas Schwab <schwab@suse.de>
17140
17141 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
17142
17143 2008-10-06 Chong Yidong <cyd@stupidchicken.com>
17144
17145 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
17146
17147 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
17148
17149 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
17150 during initialization.
17151
17152 2008-10-04 Eli Zaretskii <eliz@gnu.org>
17153
17154 * xdisp.c (redisplay_internal): If frame switched, redisplay the
17155 whole thing on MSDOS frames as well as on a TTY.
17156
17157 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
17158 well as for TTY.
17159 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
17160 well as on a TTY.
17161
17162 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
17163 as well as for TTY.
17164
17165 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
17166
17167 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
17168 MSDOS frames as well.
17169
17170 2008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
17171
17172 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
17173 correct arguments.
17174 * menu.c (find_and_return_menu_selection): Add cast.
17175
17176 2008-10-03 Glenn Morris <rgm@gnu.org>
17177
17178 * emacs.c (USAGE1): Add --daemon.
17179
17180 2008-10-02 Eli Zaretskii <eliz@gnu.org>
17181
17182 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
17183 100, so it's in percents as advertised.
17184
17185 2008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
17186
17187 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
17188 (ns_output.current_cursor, ns_output.desired_cursor)
17189 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
17190 (FRAME_NEW_CURSOR_COLOR): Remove.
17191
17192 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
17193 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
17194 enumeration (HOLLOW_BOX_CURSOR, etc.).
17195
17196 * nsterm.m (ns_frame_rehighlight): Remove commented code.
17197 (draw_window_cursor): Simplify code.
17198 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
17199 Don't change cursor type. In latter, call rehighlight instead of doing
17200 updates manually.
17201 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
17202 Use core Emacs cursor types.
17203
17204 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
17205
17206 2008-10-02 Martin Rudalics <rudalics@gmx.at>
17207
17208 * process.c (Faccept_process_output): Fix doc-string.
17209
17210 2008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
17211
17212 * gmalloc.c (__sbrk): Also define for uClibc.
17213
17214 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
17215 for uClibc.
17216
17217 2008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
17218
17219 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
17220 styles.
17221 (nsfont_open): Reenable the cache.
17222
17223 2008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
17224
17225 * font.c (font_matching_entity): Reflect ATTRS in font selection.
17226 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
17227
17228 2008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
17229
17230 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
17231 a suspended terminal.
17232
17233 2008-09-30 Michael Albinus <michael.albinus@gmx.de>
17234
17235 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
17236
17237 2008-09-30 Eli Zaretskii <eliz@gnu.org>
17238
17239 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
17240
17241 2008-09-30 Chong Yidong <cyd@stupidchicken.com>
17242
17243 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
17244 in a continued line coincides with a line beginning.
17245
17246 2008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
17247
17248 * nsfont.m (nsfont_trait_distance): Fix bug.
17249 (nsfont_list): Return a list rather than a vector (syncs with Handa
17250 changes of 2008-05-14).
17251 (nsfont_open): Improve logging.
17252
17253 2008-09-29 Andreas Schwab <schwab@suse.de>
17254
17255 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
17256
17257 2008-09-28 Martin Rudalics <rudalics@gmx.at>
17258
17259 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
17260 name as char-resolve-modifiers.
17261 Reported by: Markus Triska <markus.triska@gmx.at>
17262
17263 2008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
17264
17265 * dispnew.c (init_display): Return earlier when running as a daemon.
17266
17267 2008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
17268
17269 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
17270
17271 2008-09-27 Eli Zaretskii <eliz@gnu.org>
17272
17273 * composite.c (Fcomposition_get_gstring)
17274 (Fcompose_region_internal, Fcompose_string_internal)
17275 (Ffind_composition_internal): Doc fix.
17276 (syms_of_composite) <compose-chars-after-function>: Doc fix.
17277 (syms_of_composite) <auto-composition-function>: Doc fix.
17278 (syms_of_composite) <composition-function-table>: Doc fix.
17279
17280 2008-09-25 Chong Yidong <cyd@stupidchicken.com>
17281
17282 * search.c (wordify): New argument for lax word-ends.
17283 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
17284
17285 2008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
17286
17287 * lisp.h (is_daemon): Declare.
17288 * dispnew.c (init_display): Do not try to initialize the terminal
17289 when running as a daemon.
17290
17291 2008-09-22 Chong Yidong <cyd@stupidchicken.com>
17292
17293 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
17294 x_display_pixel_height.
17295
17296 2008-09-22 Martin Rudalics <rudalics@gmx.at>
17297
17298 * undo.c (record_point): Don't call Fundo_boundary for first
17299 change. (Bug#731)
17300
17301 2008-09-22 Juanma Barranquero <lekktu@gmail.com>
17302
17303 * emacs.c (Fdaemonp): Doc fix.
17304
17305 2008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
17306
17307 * emacs.c (main): Place #ifdef in the proper place.
17308
17309 2008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
17310
17311 * emacs.c (standard_args): Add --daemon.
17312 (main): Disconnect from the terminal when --daemon is passed.
17313 (is_daemon): New variable.
17314 (Fdaemonp): New function.
17315 (syms_of_emacs): Defsubr it.
17316
17317 2008-09-20 Chong Yidong <cyd@stupidchicken.com>
17318
17319 * xdisp.c (get_next_display_element): Handle string display
17320 correctly when checking for the end of a box run.
17321
17322 2008-09-20 Glenn Morris <rgm@gnu.org>
17323
17324 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
17325 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
17326 (Frename_file): Avoid copying to trash if a rename involves
17327 a delete. (Bug#964).
17328
17329 2008-09-20 Eli Zaretskii <eliz@gnu.org>
17330
17331 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
17332 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
17333 frames as well as termcap frames.
17334 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
17335 get_named_tty.
17336
17337 2008-09-19 Eli Zaretskii <eliz@gnu.org>
17338
17339 * process.c (procfs_system_process_attributes): Fix cmdline in
17340 case /proc/PID/cmdline is empty.
17341
17342 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
17343 x_display_pixel_height.
17344
17345 2008-09-19 Juanma Barranquero <lekktu@gmail.com>
17346
17347 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
17348
17349 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
17350 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
17351
17352 2008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
17353
17354 * dispextern.h (struct it): Move line_wrap away from the middle of
17355 bitfields. Move voffset in struct iterator_stack_entry after the
17356 bitfields. Move tab_width near after another short.
17357
17358 2008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
17359
17360 * frame.h (struct frame): Move alpha from the middle of bitfields.
17361
17362 * window.h (struct window): Move frozen_window_start_p after the
17363 rest of the bitfields to reduce padding.
17364
17365 2008-09-18 Chong Yidong <cyd@stupidchicken.com>
17366
17367 * xterm.h (x_display_info): Remove `height' and `width' members.
17368
17369 * nsterm.h (ns_display_info): Remove `height' and `width' members.
17370
17371 * w32term.h (w32_display_info): Remove `height', `width',
17372 `height_in', and `width_in' members.
17373
17374 * xterm.c (x_display_pixel_height, x_display_pixel_width):
17375 New functions.
17376 (x_calc_absolute_position): Use them.
17377 (x_term_init): Omit removed `height' and `width' members.
17378
17379 * w32term.c (x_display_pixel_height, x_display_pixel_width):
17380 New functions.
17381 (w32_read_socket, x_calc_absolute_position): Use them.
17382 (w32_initialize_display_info, w32_term_init): Omit removed members
17383 of w32_display_info.
17384
17385 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
17386 New functions.
17387 (ns_initialize_display_info): Omit removed members of ns_display_info.
17388
17389 * xterm.c (x_display_pixel_height, x_display_pixel_width):
17390 New functions.
17391 (x_calc_absolute_position): Use them.
17392 (x_term_init): Omit removed `height' and `width' members.
17393
17394 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
17395 (compute_tip_xy):
17396 * frame.c (x_fullscreen_adjust):
17397 * xmenu.c (menu_position_func): Use x_display_pixel_height and
17398 x_display_pixel_width.
17399
17400 2008-09-18 Kenichi Handa <handa@m17n.org>
17401
17402 * composite.c (fill_gstring_header): Don't check FROM and TO here.
17403 (composition_compute_stop_pos): Fix handling of static composition.
17404 (Fcomposition_get_gstring): Check FROM and TO at first.
17405
17406 2008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
17407
17408 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
17409 mixup (YAILOM).
17410
17411 2008-09-17 Chong Yidong <cyd@stupidchicken.com>
17412
17413 * indent.c (Fvertical_motion): Use position reported by iterator
17414 instead of PT for determining screen motion (bug#943).
17415
17416 2008-09-17 Romain Francoise <romain@orebokech.com>
17417
17418 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
17419
17420 2008-09-17 Kenichi Handa <handa@m17n.org>
17421
17422 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
17423
17424 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
17425 if necessary.
17426
17427 2008-09-16 Kenichi Handa <handa@m17n.org>
17428
17429 * coding.c (make_conversion_work_buffer): Avoid calling
17430 Fget_buffer_create if it is not necessary.
17431
17432 2008-09-15 Martin Rudalics <rudalics@gmx.at>
17433
17434 * window.c (Fselect_window): Don't update window_select_count and
17435 use_time when norecord is not nil.
17436
17437 2008-09-14 Kenichi Handa <handa@m17n.org>
17438
17439 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
17440 specpdl_ptr.
17441
17442 2008-09-12 Kenichi Handa <handa@m17n.org>
17443
17444 * indent.c (scan_for_column): Don't handle automatic composition
17445 if the current buffer is not associated with a window.
17446
17447 * composite.c (composition_reseat_it): If the current buffer is
17448 not associated with a window, ignore the automatic composition.
17449 (find_automatic_composition): Likewise.
17450
17451 2008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
17452
17453 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
17454 (Fgpm_mouse_stop): Use it.
17455 * termhooks.h (close_gpm): Declare.
17456 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
17457 connection if Gpm_GetEvent fails.
17458
17459 * window.c (set_window_buffer): Always preserve current-buffer.
17460
17461 2008-09-12 Glenn Morris <rgm@gnu.org>
17462
17463 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
17464
17465 2008-09-11 Glenn Morris <rgm@gnu.org>
17466
17467 * charset.c (charset-map-path): Doc fix.
17468
17469 2008-09-10 Kenichi Handa <handa@m17n.org>
17470
17471 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
17472
17473 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
17474 compose a grapheme cluster with the preceding base glyph.
17475
17476 * composite.c (composition_compute_stop_pos): Fix previous change.
17477 Reset cmp_it->id to -1 at first.
17478
17479 2008-09-10 Glenn Morris <rgm@gnu.org>
17480
17481 * Makefile.in (character.o, chartab.o): Fix config.h typo.
17482
17483 2008-09-09 Chong Yidong <cyd@stupidchicken.com>
17484
17485 * keyboard.c (read_key_sequence): Reapply translation maps when
17486 switching keyboards.
17487
17488 2008-09-09 Kenichi Handa <handa@m17n.org>
17489
17490 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
17491 characters.
17492
17493 * composite.c (FORWARD_CHAR): Fix calculation
17494 of (POSITION).pos_byte.
17495 (composition_compute_stop_pos): Limit the search of composition to
17496 at most 500 characters ahead. If we reach the limit or find a
17497 newline, set cmp_it->ch to -2 and return 0.
17498 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
17499
17500 2008-09-08 Kenichi Handa <handa@m17n.org>
17501
17502 * indent.c (Fvertical_motion): Be sure to set
17503 it_overshoot_expected if it.cmp_it.id is non-negative.
17504
17505 2008-09-07 Andreas Schwab <schwab@suse.de>
17506
17507 * callproc.c (Fcall_process): Don't hold references to string data
17508 across garbage collection. Move initialisation of new_argv down
17509 to avoid compiler bug.
17510
17511 2008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
17512
17513 * process.c (Fsystem_process_attributes): Doc fix.
17514
17515 2008-09-07 Chong Yidong <cyd@stupidchicken.com>
17516
17517 * callproc.c (Fcall_process): Canonicalize current directory name.
17518
17519 * xdisp.c (move_it_to): When moving by vpos, ensure that the
17520 iterator advances to the next line if the current line ends in a
17521 continued tab.
17522
17523 2008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
17524
17525 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
17526 member to point to cmp_from.
17527
17528 * xdisp.c: Doc fix for references to gidx data member.
17529
17530 2008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
17531
17532 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
17533
17534 2008-09-07 Kenichi Handa <handa@m17n.org>
17535
17536 * composite.c (FORWARD_CHAR): Check STOP after
17537 incrementing (POSITION).pos.
17538
17539 2008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
17540
17541 * process.c (Fsystem_process_attributes): Doc fix.
17542
17543 2008-09-06 Chong Yidong <cyd@stupidchicken.com>
17544
17545 * keyboard.c (Ftop_level): Doc fix.
17546
17547 2008-09-06 Eli Zaretskii <eliz@gnu.org>
17548
17549 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
17550 minibuffer, don't let lower part of menu invade the echo area.
17551
17552 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
17553 "char *q" to access menu text and advance through it. Revert the
17554 change that displayed ">" instead of ASCII character 0x10.
17555
17556 2008-09-05 Eli Zaretskii <eliz@gnu.org>
17557
17558 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
17559 toggle boxes and radio buttons on MS-DOS as well.
17560
17561 2008-09-05 Kenichi Handa <handa@m17n.org>
17562
17563 * composite.c (autocmp_chars): Check lookback count.
17564 (composition_compute_stop_pos): Set cmp_it->lookback.
17565 (composition_reseat_it): Check lookback count.
17566 (struct position_record): New struct.
17567 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
17568 (find_automatic_composition): New function.
17569 (composition_adjust_point): Use find_automatic_composition.
17570
17571 * dispextern.h (struct composition_it): New member lookback.
17572
17573 2008-09-02 Chong Yidong <cyd@stupidchicken.com>
17574
17575 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
17576 if moving by a single line.
17577
17578 2008-09-02 Andreas Schwab <schwab@suse.de>
17579
17580 * xterm.c (x_delete_display): Fix merge error.
17581
17582 * fileio.c (Fexpand_file_name): Remove unused variables.
17583
17584 2008-09-02 Eli Zaretskii <eliz@gnu.org>
17585
17586 * fileio.c (Fexpand_file_name): Copy argument `name' into local
17587 storage on all platforms, not just on DOS_NT.
17588
17589 2008-09-02 Jason Rumney <jasonr@gnu.org>
17590
17591 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
17592 Ensure mouse is not grabbed after menu is finished.
17593
17594 2008-09-01 Chong Yidong <cyd@stupidchicken.com>
17595
17596 * xfaces.c (Finternal_set_alternative_font_family_alist)
17597 (Finternal_set_alternative_font_registry_alist): Properly copy
17598 entire alist structure.
17599
17600 2008-09-01 Kenichi Handa <handa@m17n.org>
17601
17602 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
17603 representative chars of the script is a vector.
17604 (ftfont_list): Handle the case where the representative chars of
17605 the script is a vector.
17606
17607 * character.c (syms_of_character): Docstring of
17608 script-representative-chars fixed.
17609
17610 2008-08-31 Eli Zaretskii <eliz@gnu.org>
17611
17612 * msdos.c (BUILD_CHAR_GLYPH): New macro.
17613 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
17614 the menu. Allocate larger buffer for `text', to account for
17615 possible ^C characters.
17616
17617 2008-08-31 Martin Rudalics <rudalics@gmx.at>
17618
17619 * xdisp.c (prepare_menu_bars): Don't call
17620 Vwindow_size_change_functions with arg Qt.
17621
17622 2008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
17623
17624 * font.h (font_range):
17625 * fileio.c (report_file_error):
17626 * composite.c (composition_update_it): Yet another int/Lisp_Object
17627 mixup (YAILOM).
17628
17629 2008-08-30 Glenn Morris <rgm@gnu.org>
17630
17631 * data.c (Fmake_variable_frame_local): Doc fix.
17632
17633 * frame.c (Fmodify_frame_parameters): Doc fix.
17634
17635 2008-08-30 Eli Zaretskii <eliz@gnu.org>
17636
17637 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
17638 needed by GetTokenInformation.
17639 (w32_system_process_attributes): Check return values of all system
17640 APIs.
17641
17642 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
17643 only when the state changes.
17644 (IT_update_begin, IT_update_end): Add termscript trace.
17645
17646 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
17647 clipboard is unavailable. Set dst to NULL if it doesn't point to
17648 malloc'ed data.
17649 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
17650 passing random values to xfree.
17651
17652 * dispnew.c (init_display): Set `tty's association in frame's
17653 parameters alist to the name of the terminal device, if that is known.
17654
17655 2008-08-29 Jason Rumney <jasonr@gnu.org>
17656
17657 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
17658
17659 2008-08-29 Eli Zaretskii <eliz@gnu.org>
17660
17661 * composite.c (fill_gstring_body): Avoid compiler warnings.
17662
17663 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
17664 LGLYPH_SET_CODE to avoid compiler warnings.
17665
17666 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
17667
17668 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
17669
17670 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
17671 LGLYPH_SET_CODE.
17672
17673 2008-08-29 Kenichi Handa <handa@m17n.org>
17674
17675 * fileio.c (report_file_error): Don't downcase the first character
17676 of errstring if it is still unibyte.
17677
17678 2008-08-29 Kenichi Handa <handa@m17n.org>
17679
17680 These changes are to re-implement the automatic composition so
17681 that it doesn't use text properties.
17682
17683 * Makefile.in (ftfont.o): Depend on composite.h.
17684 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
17685
17686 * character.h (Vunicode_category_table): Extern it.
17687
17688 * character.c (Vunicode_category_table): New variable.
17689 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
17690
17691 * chartab.c (optimize_sub_char_table): Perform more greedy
17692 optimization.
17693
17694 * composite.h (enum composition_method):
17695 Delete COMPOSITION_WITH_GLYPH_STRING.
17696 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
17697 (Vcomposition_function_table): Extern it.
17698 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
17699 (composition_gstring_put_cache, composition_gstring_from_id)
17700 (composition_gstring_p, composition_gstring_width)
17701 (composition_compute_stop_pos, composition_reseat_it)
17702 (composition_update_it, composition_adjust_point): Extern them.
17703 (Fcomposition_get_gstring): EXFUN it.
17704
17705 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
17706 (Vcomposition_function_table)
17707 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
17708 (gstring_hash_table, gstring_work, gstring_work_headers):
17709 New variables.
17710 (gstring_lookup_cache, composition_gstring_put_cache)
17711 (composition_gstring_from_id, composition_gstring_p)
17712 (composition_gstring_width, fill_gstring_header)
17713 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
17714 (composition_reseat_it, composition_update_it)
17715 (composition_adjust_point, Fcomposition_get_gstring): New functions.
17716 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
17717 and gstring_work_headers. DEFVAR_LISP composition-function-table.
17718 Defsubr composition_get_gstring.
17719
17720 * dispextern.h (struct glyph): New union u.cmp. Delete the member
17721 cmp_id.
17722 (struct glyph_string): Delete the member gidx. New members
17723 cmp_id, cmp_from, and cmp_to.
17724 (enum it_method): Delete GET_FROM_COMPOSITION.
17725 (struct composition_it): New struct.
17726 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
17727 Delete c, len, cmp_id, cmp_len in u.comp.
17728
17729 * font.h (enum lgstring_indices): Delete it.
17730 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
17731 (enum lglyph_indices): Likewise.
17732 (font_range): Adjust extern.
17733 (font_fill_lglyph_metrics): Extern it.
17734
17735 * font.c (QCf): New variable.
17736 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
17737 (font_prepare_composition): Delete this function.
17738 (font_range): Type and arguments changed.
17739 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
17740 (font_fill_lglyph_metrics): New function.
17741 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
17742 (syms_of_font): DEFSYM QCf. Delete defsubr for
17743 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
17744 Defsubr Sfont_shape_gstring.
17745
17746 * fontset.h (font_for_char): Extern it.
17747
17748 * fontset.c (font_for_char): New function.
17749
17750 * ftfont.c: Include composite.h.
17751 (ftfont_resolve_generic_family): Add langset "en" to pattern.
17752 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
17753
17754 * indent.c: Include composite.h and dispextern.h.
17755 (check_composition): Delete this function.
17756 (scan_for_column): Handle composition by
17757 composition_compute_stop_pos, composition_reseat_it, and
17758 composition_update_it.
17759 (compute_motion): Likewise.
17760 (Fvertical_motion): Fix checking of composition.
17761
17762 * keyboard.c (adjust_point_for_property): Check composition by
17763 composition_adjust_point.
17764
17765 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
17766 struct glyph_string.
17767
17768 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
17769 (append_composite_glyph): Adjust for the change of struct it and
17770 struct glyph.
17771 (produce_composite_glyph): Likewise.
17772
17773 * w32term.c (x_draw_composite_glyph_string_foreground):
17774 Adjust for the change of struct glyph_string.
17775 (x_draw_glyph_string): Likewise.
17776
17777 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
17778 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
17779
17780 * xdisp.c: Include font.h.
17781 (it_props): Delete the entry for Qauto_composed.
17782 (init_iterator): Initialize it->cmp_it.id to -1.
17783 (compute_stop_pos): Call composition_compute_stop_pos.
17784 (face_before_or_after_it_pos): Adjust for the change of struct it.
17785 (handle_auto_composed_prop): Delete it.
17786 (handle_composition_prop): Handle only static composition.
17787 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
17788 from xassert. Initialize it->cmp_it.stop_pos.
17789 (push_it): Adjust for the change of struct it.
17790 (pop_it): Likewise.
17791 (get_next_element): Delete next_element_from_composition.
17792 (CHAR_COMPOSED_P): New macro.
17793 (get_next_display_element): For automatic composition, get a face
17794 from the font in the glyph-string.
17795 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
17796 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
17797 (next_element_from_string): Check if the character at the current
17798 position is composed by CHAR_COMPOSED_P.
17799 (next_element_from_buffer): Likewise.
17800 (next_element_from_composition): Adjust for the change of struct it.
17801 Update it->cmp_it.
17802 (dump_glyph): Adjust for the change of struct glyph.
17803 (fill_composite_glyph_string): Adjust for the change of struct
17804 it and struct glyph. Don't handle automatic composition here.
17805 (fill_gstring_glyph_string): New function.
17806 (x_get_glyph_overhangs): Handle automatic composition.
17807 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
17808 (BUILD_GSTRING_GLYPH_STRING): New macro.
17809 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
17810 automatic composition.
17811 (append_composite_glyph): Adjust for the change of struct it and
17812 struct glyph.
17813 (x_produce_glyphs): Adjust for the change of struct it.
17814
17815 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
17816 the change of struct glyph_string.
17817 (x_draw_glyph_string): Likewise.
17818
17819 2008-08-29 Glenn Morris <rgm@gnu.org>
17820
17821 * buffer.c (word-wrap): Doc fix.
17822 * xdisp.c (truncate-partial-width-windows): Doc fix.
17823 Increase default to 50.
17824
17825 2008-08-29 Chong Yidong <cyd@stupidchicken.com>
17826
17827 * xdisp.c (update_tool_bar_unwind): New function.
17828 (update_tool_bar): Temporarily set selected frame before building
17829 tool-bar items.
17830
17831 2008-08-28 Michael Albinus <michael.albinus@gmx.de>
17832
17833 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
17834 snprintf, respectively.
17835 (xd_append_arg): Convert strings with Fstring_make_unibyte.
17836
17837 2008-08-28 Chong Yidong <cyd@stupidchicken.com>
17838
17839 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
17840 LDFLAGS to GNUstep CC invocation.
17841
17842 2008-08-27 Chong Yidong <cyd@stupidchicken.com>
17843
17844 * indent.c (Fvertical_motion): Revert last change. Handle the
17845 general case where we are moving forward, and PT spans multiple
17846 screen lines.
17847
17848 * eval.c (find_handler_clause): Temporarily increase
17849 max-lisp-eval-depth while printing the backtrace buffer, to
17850 guarantee that help-mode code can run.
17851
17852 2008-08-27 Eli Zaretskii <eliz@gnu.org>
17853
17854 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
17855 colors under -rv.
17856 (IT_set_frame_parameters): Don't swap foreground and background
17857 colors if `(reverse . t)' is present in the frame properties.
17858 (internal_terminal_init): Call init_frame_faces only for the
17859 initial frame.
17860
17861 2008-08-27 Andreas Schwab <schwab@suse.de>
17862
17863 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
17864
17865 2008-08-27 Andreas Schwab <schwab@suse.de>
17866
17867 * search.c (search_buffer): Set char_base to zero only at the end.
17868
17869 2008-08-27 Kenichi Handa <handa@m17n.org>
17870
17871 * fileio.c (report_file_error): Fix handling of multibyte error string.
17872
17873 2008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
17874
17875 * xterm.c (x_term_init): Temporarily hide the partially
17876 initialized terminal while calling vendor-specific-keysyms.
17877
17878 2008-08-26 Eli Zaretskii <eliz@gnu.org>
17879
17880 * msdos.c (internal_terminal_init): Most initializations done only
17881 once, especially initial_screen_colors[] and termscript open.
17882
17883 2008-08-26 Chong Yidong <cyd@stupidchicken.com>
17884
17885 * eval.c (Fcondition_case): Doc fix.
17886
17887 * widgetprv.h (EmacsFramePart): Change font member to the new font
17888 struct.
17889
17890 * widget.c: Include character.h and font.h for XSETFONT.
17891 (setup_frame_gcs): Compute X font id from font struct, just once.
17892
17893 2008-08-26 Eli Zaretskii <eliz@gnu.org>
17894
17895 * term.c (get_named_tty): Fix last change.
17896
17897 2008-08-26 Chong Yidong <cyd@stupidchicken.com>
17898
17899 * indent.c (Fvertical_motion): If moving forward starting from a
17900 multi-line string, move the iterator to the last line of that string.
17901
17902 2008-08-25 Eli Zaretskii <eliz@gnu.org>
17903
17904 * frame.c (do_switch_frame): Mark previously displayed frame as
17905 obscured for FRAME_MSDOS_P frames as well.
17906
17907 2008-08-24 Eli Zaretskii <eliz@gnu.org>
17908
17909 * frame.c (make_terminal_frame): Initialize f->terminal,
17910 f->terminal->reference_count, and scroll bars on MS-DOS as well.
17911 Set the top frame to newly created frame.
17912 (Fmake_terminal_frame): Reuse the_only_display_info.
17913
17914 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
17915 estimating available memory.
17916
17917 2008-08-23 David Reitter <david.reitter@gmail.com>
17918
17919 * nsterm.m (ns_draw_window_cursor): Don't call
17920 NSDisableScreenUpdates and NSEnableScreenUpdates on
17921 non-NS_IMPL_COCOA systems.
17922
17923 2008-08-23 Andreas Schwab <schwab@suse.de>
17924
17925 * process.c (procfs_system_process_attributes): Fix use of
17926 uninitialized variables.
17927
17928 2008-08-23 Eli Zaretskii <eliz@gnu.org>
17929
17930 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
17931
17932 * dispnew.c (init_display): Remove MS-DOS specific conditions for
17933 calling tty-set-up-initial-frame-faces.
17934
17935 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
17936 Allow MSDOS frames along with X frames.
17937
17938 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
17939 addition to output_termcap.
17940
17941 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
17942
17943 * termchar.h (FRAME_TTY): Support output_msdos_raw.
17944 (struct tty_display_info) [MSDOS]: Add fields related to mouse
17945 highlight.
17946
17947 * process.c [!subprocesses]: Define QCname.
17948 (syms_of_process): Intern and staticpro it.
17949
17950 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
17951 Adjust for changes in encoding/decoding routines.
17952 Use encode_coding_object and decode_coding_object instead of
17953 encode_coding and decode_coding.
17954
17955 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
17956
17957 * dosfns.c: Include frame.h before termhooks.h.
17958 (dos_cleanup): Use CURTTY ()->termscript instead of a global
17959 variable termscript.
17960
17961 * s/msdos.h (USER_FULL_NAME): Define.
17962 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
17963
17964 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
17965 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
17966 pw->pw_gecos.
17967
17968 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
17969 SELECTED_FRAME as additional (1st) argument.
17970 (tty_read_avail_input): Handle output_msdos_raw in
17971 addition to output_termcap.
17972
17973 * msdos.c: Include frame.h before termhooks.h.
17974 (mouse_on, mouse_off, mouse_moveto, mouse_init)
17975 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
17976 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
17977 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
17978 (IT_set_terminal_modes, IT_reset_terminal_modes)
17979 (IT_set_frame_parameters): Use tty->termscript instead of a global
17980 variable termscript.
17981 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
17982 global variable terminal_coding. Don't refer to
17983 Vnonascii_translation_table.
17984 (internal_terminal_init): Set Vwindow_system in current_kboard.
17985 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
17986 Announce date and time of session start, if termscript is open.
17987 Don't zero out the_only_display_info (it is done in
17988 term.c:init_tty). Open termscript only of not already open.
17989 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
17990 here instead of dos_ttraw. Don't initialize display if this is an
17991 initial tty. Don't set FRAME_FONT.
17992 (Vwindow_system_version): Bump to 23.
17993 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
17994 is available, set up mouse_position_hook.
17995 (dos_ttraw, IT_set_terminal_modes): If called with initial
17996 terminal, do nothing.
17997 (IT_set_frame_parameters): Handle the Qtty_type frame
17998 parameter by calling internal_terminal_init.
17999 (dos_set_window_size, show_mouse_face)
18000 (clear_mouse_face, IT_note_mode_line_highlight)
18001 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
18002 (dos_rawgetc): Use tty_display_info instead of x_display_info.
18003 (initialize_msdos_display): New function.
18004 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
18005 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
18006 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
18007 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
18008 Accept additional argument: a pointer to a frame. Update all callers.
18009 (request_sigio, unrequest_sigio): Don't define, now defined on
18010 sysdep.c.
18011 (IT_write_glyphs): Rewrite to use encode_terminal_code.
18012
18013 * term.c [MSDOS]: Include msdos.h.
18014 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
18015 conditional to DOS_NT. Allow only one call to this function in a
18016 session. Don't allocate a new struct tty_display_info; instead,
18017 reuse the_only_display_info. Call get_tty_size to get screen
18018 dimensions. Call init_baud_rate to set bad_rate.
18019 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
18020 (Fsuspend_tty) [MSDOS]: Don't close input and output.
18021 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
18022 (get_tty_terminal, get_named_tty, Ftty_type)
18023 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
18024 output_termcap.
18025 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
18026 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
18027 only when subprocesses are supported.
18028
18029 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
18030 f->output_data.x.
18031 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
18032 terminal devices.
18033
18034 * msdos.h: Remove definition of struct x_display_info and struct
18035 x_output.
18036 (FRAME_FONT): Use output_data.tty.
18037 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
18038 (struct x_display_info): Rename from display_info. Update all users in
18039 msdos.c.
18040 (struct x_output): Remove background_pixel and foreground_pixel.
18041 (the_only_display_info): Rename from the_only_x_display.
18042 (dos_ttraw): Update prototype.
18043
18044 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
18045 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
18046
18047 2008-08-23 Jason Rumney <jasonr@gnu.org>
18048
18049 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
18050 (fn_TIFFSetDirectory): New library function used.
18051 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
18052 (tiff_load): Use :index to select among multiple images. Set count
18053 property when multiple images exist.
18054 (gif_format): Use :index, not :image.
18055
18056 2008-08-23 Chong Yidong <cyd@stupidchicken.com>
18057
18058 * xdisp.c (try_scrolling): Check INT_MAX instead of
18059 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
18060 to obtain INT_MAX.
18061
18062 2008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
18063
18064 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
18065
18066 2008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
18067
18068 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
18069 GNUstep library location.
18070
18071 2008-08-21 Chong Yidong <cyd@stupidchicken.com>
18072
18073 * xfaces.c (x_update_menu_appearance): Check validity of menu font
18074 before using it.
18075
18076 * puresize.h (BASE_PURESIZE): Increase to 1250000.
18077
18078 2008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
18079
18080 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
18081 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
18082 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
18083 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
18084 (EmacsApp-cursor_blink_handler): Remove declaration.
18085 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
18086 match 01 Feb 2008 changes in xterm.c.
18087 (ns_read_socket): Add cast to avoid warning.
18088 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
18089 GNUstep.
18090
18091 2008-08-20 Chong Yidong <cyd@stupidchicken.com>
18092
18093 * xselect.c (x_get_foreign_selection): Return nil if desired
18094 selection could not be obtained, instead of signalling an error.
18095
18096 2008-08-20 David Reitter <david.reitter@gmail.com>
18097
18098 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
18099 * nsterm.m: Remove ns-specific code for cursor blinking.
18100 (ns_draw_window_cursor): Clear cursor properly rather than
18101 redrawing the area. Respect width of bar cursors.
18102 These changes enable the use of generic blink-cursor-mode and
18103 generic cursor types in NS and support smooth cursor movements (do
18104 not blink off after command).
18105 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
18106 Nextstep, too.
18107
18108 2008-08-19 Kenichi Handa <handa@m17n.org>
18109
18110 * font.c (Vfont_log_deferred): New variable.
18111 (font_add_log): Check Vfont_log_deferred.
18112 (font_deferred_log): New function.
18113
18114 * font.h (font_deferred_log): Extern it.
18115
18116 * fontset.c (reorder_font_vector): Use encoding charset of fonts
18117 for sorting.
18118 (face_for_char): Use deferred log.
18119
18120 2008-08-18 Kenichi Handa <handa@m17n.org>
18121
18122 * fontset.c (face_for_char): Add font log.
18123
18124 * font.c (font_add_log): Add the font properties :script, :lang,
18125 and :otf in the log.
18126
18127 2008-08-17 Chong Yidong <cyd@stupidchicken.com>
18128
18129 * xdisp.c: Remove dead code.
18130 (handle_invisible_prop, next_overlay_string): Defer call to
18131 setup_for_ellipsis.
18132 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
18133
18134 2008-08-15 Chong Yidong <cyd@stupidchicken.com>
18135
18136 * xfaces.c (lookup_derived_face): Properly handle possible zero
18137 return value of get_lface_attributes.
18138 (merge_faces): Don't tell lookup_derived_face to signal an error
18139 if face is not found.
18140
18141 * dired.c (Fdirectory_files): Doc fix.
18142
18143 * process.c (make_process): Initialize kill_without_query struct
18144 member.
18145
18146 2008-08-15 Eli Zaretskii <eliz@gnu.org>
18147
18148 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
18149 Alternative calculation of totphys for Visual Studio 6.
18150
18151 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
18152
18153 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
18154 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
18155 All users changed.
18156 (stat): Only root directory passed to GetDriveType. Allow RAM
18157 disk as well as local fixed disk when w32-get-true-file-attributes
18158 is set to `local'.
18159 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
18160 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
18161 (w32_cached_id, w32_add_to_cache): New functions.
18162 (get_name_and_id): Look account names in the cache before calling
18163 lookup_account_sid.
18164 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
18165 New initialization flags.
18166 (globals_of_w32): Initialize them to zero.
18167 (w32_system_process_attributes): Use w32_cached_id and
18168 w32_add_to_cache.
18169
18170 2008-08-14 Lawrence Mitchell <wence@gmx.li>
18171
18172 * lread.c (Fread_char, Fread_char_exclusive): If no character
18173 event is read before timeout is reached, return nil, rather than
18174 converting to a number.
18175
18176 2008-08-14 Chong Yidong <cyd@stupidchicken.com>
18177
18178 * fns.c (use_dialog_box): Doc fix.
18179
18180 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
18181 on OS X.
18182
18183 2008-08-13 Chong Yidong <cyd@stupidchicken.com>
18184
18185 * frame.c (Qns_parse_geometry): New var.
18186 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
18187
18188 2008-08-11 Chong Yidong <cyd@stupidchicken.com>
18189
18190 * xdisp.c (x_produce_glyphs): Handle the case when font has no
18191 space character in calculating tabs.
18192
18193 2008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
18194
18195 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
18196
18197 2008-08-10 Glenn Morris <rgm@gnu.org>
18198
18199 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
18200 silence gcc "limited range of data type" warnings in some
18201 make_fixnum_or_float calls.
18202
18203 2008-08-09 Eli Zaretskii <eliz@gnu.org>
18204
18205 * w32.c (w32_system_process_attributes): If the process does not
18206 exist, return nil.
18207
18208 * w32.c: Include thelp32.h, psapi.h and coding.h.
18209 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
18210 declarations.
18211 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
18212 (Process32Next_Proc): New typedefs.
18213 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
18214 (g_b_init_process32_next, g_b_init_open_thread_token)
18215 (g_b_init_impersonate_self, g_b_init_revert_to_self)
18216 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
18217 (g_b_init_get_process_working_set_size)
18218 (g_b_init_global_memory_status_ex): New static variables.
18219 (globals_of_w32): Initialize them.
18220 (create_toolhelp32_snapshot, process32_first, process32_next)
18221 (open_thread_token, impersonate_self, revert_to_self)
18222 (get_process_memory_info, get_process_working_set_size)
18223 (global_memory_status, global_memory_status_ex): New wrapper
18224 functions.
18225 (w32_list_system_processes, w32_system_process_attributes)
18226 (enable_privilege, restore_privilege, ltime, process_times):
18227 New functions.
18228 (convert_time_raw): New function.
18229 (convert_time): Remove conversion of FILETIME into time in 100
18230 nsec units, call convert_time_raw instead.
18231
18232 * process.h (w32_list_system_processes, w32_system_process_attributes):
18233 Add prototypes.
18234 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
18235 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
18236 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
18237 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
18238
18239 * process.c (Fsystem_process_attributes): Doc fix.
18240
18241 2008-08-08 Chong Yidong <cyd@stupidchicken.com>
18242
18243 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
18244 a continued multi-char glyph; if so, advance to the actual glyph.
18245
18246 2008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
18247
18248 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
18249
18250 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
18251 (.m.o): Use it.
18252 * config.in: Regenerate.
18253
18254 2008-08-07 Chong Yidong <cyd@stupidchicken.com>
18255
18256 * xdisp.c (redisplay_window): Revert last change.
18257 (try_window): Check bottom scroll margin too.
18258
18259 2008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
18260
18261 * config.in: Regenerate.
18262
18263 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
18264 -list-load-path-shadows'.
18265 (nsgui.h): Reduce number of things depending on it.
18266
18267 2008-08-06 Chong Yidong <cyd@stupidchicken.com>
18268
18269 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
18270 instead of window-end which does the wrong thing at eob.
18271 (try_cursor_movement): Minor optimization.
18272 (redisplay_window): If scroll margin is defined, don't assume
18273 window doesn't need scrolling.
18274
18275 2008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
18276
18277 * config.in: Regenerate.
18278
18279 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
18280 (mostlyclean): Don't delete *.d under NS.
18281
18282 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
18283
18284 2008-08-06 Kenichi Handa <handa@m17n.org>
18285
18286 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
18287
18288 2008-08-06 Andreas Schwab <schwab@suse.de>
18289
18290 * config.in: Regenerate.
18291
18292 2008-08-05 Chong Yidong <cyd@stupidchicken.com>
18293
18294 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
18295 forcing a window start.
18296
18297 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
18298 (auto_save_1): Update modtime when auto-save-list-file-name is on.
18299
18300 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
18301
18302 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
18303 argument.
18304
18305 2008-08-05 Juanma Barranquero <lekktu@gmail.com>
18306
18307 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
18308 <scroll-down-aggressively, before-change-functions>:
18309 <after-change-functions>: Reflow docstrings.
18310
18311 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
18312 Ken Raeburn <raeburn@gnu.org>
18313
18314 Dock menu customization, based on a patch by Ken Raeburn, plus some
18315 other fixes.
18316 * nsmenu.m (dockMenu): New variable.
18317 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
18318
18319 * nsterm.h (dockMenu): Declare.
18320
18321 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
18322 (ns_term_init): Initialize dockMenu.
18323 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
18324 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
18325 left.
18326
18327 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
18328
18329 2008-08-04 Chong Yidong <cyd@stupidchicken.com>
18330
18331 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
18332
18333 * config.in: Regenerate.
18334
18335 2008-08-04 Seiji Zenitani <zenitani@mac.com>
18336
18337 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
18338
18339 2008-08-04 Chong Yidong <cyd@stupidchicken.com>
18340
18341 * nsterm.h (find_and_call_menu_selection): Fix prototype.
18342
18343 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
18344
18345 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
18346
18347 * keyboard.h: Comment an #endif.
18348
18349 * lisp.h (have_menus_p): Adjust comment.
18350
18351 * menu.c (find_and_return_menu_selection): Fix comparison with
18352 client_data.
18353
18354 * nsmenu.m (popup_activated_flag): New variable.
18355 (popup_activated): New function.
18356 (menu-or-popup-active-p): New exported lisp definition.
18357 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
18358 when popup done.
18359 (ns_popup_dialog): Set popup_activated_flag.
18360
18361 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
18362 version for GNUstep (handled by conditional typedef in nsterm.m).
18363 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
18364 in rgb.txt).
18365
18366 * process.c (init_process): Use DARWIN_OS, not DARWIN.
18367
18368 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
18369
18370 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
18371
18372 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
18373 shortcircuit if popup_activated like GTK and X toolkit.
18374
18375 * m/inter386.h: Change DARWIN to DARWIN_OS.
18376
18377 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
18378 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
18379 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood.
18380 Expand comment on NO_SOCK_SIGIO.
18381
18382 2008-08-03 Chong Yidong <cyd@stupidchicken.com>
18383
18384 * nsterm.m (windowDidResize): Remove stopModal call.
18385
18386 2008-08-03 Andreas Schwab <schwab@suse.de>
18387
18388 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
18389 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
18390
18391 2008-08-02 Chong Yidong <cyd@stupidchicken.com>
18392
18393 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
18394 Don't use uninitialized pointer variable when using getrlimit.
18395
18396 2008-08-02 Jason Rumney <jasonr@gnu.org>
18397
18398 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
18399
18400 2008-08-02 Eli Zaretskii <eliz@gnu.org>
18401
18402 * alloc.c (NSTATICS): Bump to 0x640.
18403
18404 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
18405
18406 * lisp.h: Add prototype for directory_files_internal.
18407
18408 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
18409 New functions.
18410 (syms_of_process): Defsubr them. Add initializations for various
18411 Q* symbols used in procfs_system_process_attributes.
18412 (procfs_list_system_processes, procfs_system_process_attributes)
18413 [HAVE_PROCFS]: New functions.
18414 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
18415 (procfs_get_total_memory): New functions.
18416
18417 2008-08-01 Juanma Barranquero <lekktu@gmail.com>
18418
18419 * xfaces.c (Fx_load_color_file): Fix previous change;
18420 it is #ifdef WINDOWSNT, not WINDOWS_NT.
18421
18422 2008-08-01 Michael Albinus <michael.albinus@gmx.de>
18423
18424 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
18425
18426 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
18427
18428 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
18429
18430 2008-08-01 Chong Yidong <cyd@stupidchicken.com>
18431
18432 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
18433
18434 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
18435 define NSApplicationDelegateReplySuccess.
18436 (EmacsView -converstationIdentifier): Use long instead of
18437 NSInteger for GNUstep, since it doesn't have NSInteger.
18438
18439 * xmenu.c: Revert last change.
18440
18441 * keyboard.h: Fix last change.
18442
18443 2008-08-01 Juanma Barranquero <lekktu@gmail.com>
18444
18445 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
18446 on Windows.
18447
18448 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
18449
18450 Warning clearing and clean-up in NS port.
18451 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
18452 Add prototypes.
18453 * nsgui.h (FACE_DEFAULT): Remove, unused.
18454 (XGCValues): Change colors to unsigned long.
18455 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
18456 nsterm.m.
18457 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
18458 (ns_list_fonts): Remove, unused.
18459 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
18460 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
18461 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
18462 (nsfont_draw): Compare face colors to 0, not nil.
18463 * nsmenu.m (struct widget_value): Drop unneeded declaration.
18464 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
18465 (-addSubmenuWithTitle:): Use NSMenuItem class.
18466 (ns_popup_menu): Use NO, not NULL, for enabled setting.
18467 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
18468 (ns_clip_to_row): Make gc arg a BOOL.
18469 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
18470 ns_clip_to_row() call.
18471 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
18472 used). Cast FRAME_FONT assignments.
18473 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
18474 (ns_string_to_lispmod): Change arg to const char.
18475 (ns_term_init): Use NSMenuItem class.
18476 (EmacsApp -openFile:): Move to different section of file.
18477 (EmacsApp -application:openFiles:): Don't return a value, call
18478 -replyToOpenOrPrint:.
18479 (EmacsView -keyDown:): Fix up cast.
18480 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
18481 (EmacsView -menuDown:): Cast tag in call to
18482 find_and_call_menu_selection().
18483 (ns_list_fonts): Remove, unused.
18484 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
18485 (ns_fontname_to_xlfd): Make static.
18486 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
18487 Remove prototypes (now in keyboard.h).
18488 (next_menubar_widget_id): Remove, unused.
18489 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
18490 Remove prototypes (now in keyboard.h).
18491 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
18492
18493 2008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
18494
18495 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
18496 (floatfns.o): Depend on syssignal.h.
18497 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
18498
18499 * systty.h: Fix previous change that removed BSD_TERMIOS.
18500 Add comments to #ifdefs.
18501
18502 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
18503
18504 * w32fns.c (w32-load-color-file): Remove.
18505 (x-open-connection): Use renamed Fx_load_color_file.
18506 * xfaces.c (x-load-color-file): Add.
18507 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
18508 Emacs.clr.
18509 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
18510
18511 2008-07-31 Michael Albinus <michael.albinus@gmx.de>
18512
18513 * dbusbind.c (Fdbus_call_method_asynchronously)
18514 (Fdbus_method_error_internal): New defuns.
18515 (xd_read_message): Handle also reply messages.
18516 (Vdbus_registered_functions_table): Extend docstring.
18517
18518 2008-07-31 Juanma Barranquero <lekktu@gmail.com>
18519
18520 * keyboard.c (gobble_input): Fix previous change.
18521
18522 2008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
18523
18524 * bitmaps/README:
18525 * xfns.c:
18526 * termcap.c:
18527 * term.c:
18528 * syswait.h:
18529 * systty.h:
18530 * systime.h:
18531 * syssignal.h:
18532 * sysdep.c:
18533 * process.h:
18534 * process.c:
18535 * print.c:
18536 * ndir.h:
18537 * lread.c:
18538 * keyboard.c:
18539 * getpagesize.h:
18540 * floatfns.c:
18541 * fileio.c:
18542 * emacs.c:
18543 * doc.c:
18544 * dispnew.c:
18545 * dired.c:
18546 * data.c:
18547 * callproc.c:
18548 * buffer.c:
18549 * README:
18550 * Makefile.in:
18551 * s/template.h:
18552 * s/msdos.h:
18553 * m/vax.h: Remove VMS support.
18554 * s/vms.h:
18555 * vlimit.h:
18556 * uaf.h:
18557 * temacs.opt:
18558 * param.h:
18559 * ioctl.h: Remove file.
18560
18561 2008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
18562
18563 * s/ms-w32.h (MULTI_KBOARD): Remove.
18564 * xterm.c:
18565 * xselect.c:
18566 * xfns.c:
18567 * window.c:
18568 * w32term.c:
18569 * w32fns.c:
18570 * terminal.c:
18571 * termhooks.h:
18572 * term.c:
18573 * sysdep.c:
18574 * keyboard.h:
18575 * keyboard.c:
18576 * frame.h:
18577 * frame.c:
18578 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
18579 * config.in: Regenerate.
18580
18581 2008-07-30 Jason Rumney <jasonr@gnu.org>
18582
18583 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
18584
18585 * w32font.c (w32font_encode_char): Leave as unicode if in range.
18586 (w32font_open_internal): Get unicode version of textmetrics.
18587 Don't enable or disable glyph indices here.
18588 (w32font_open): Disable use of glyph indices.
18589
18590 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
18591
18592 2008-07-30 Chong Yidong <cyd@stupidchicken.com>
18593
18594 * minibuf.c (Vread_buffer_function): Doc fix.
18595
18596 2008-07-30 John Paul Wallington <jpw@pobox.com>
18597
18598 * minibuf.c (read_buffer_completion_ignore_case): New var.
18599 (Fread_buffer): Use it.
18600
18601 2008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
18602
18603 * systty.h (sensemode): Remove empty #if. Remove reference to
18604 BSD_TERMIOS, unused.
18605
18606 * sysdep.c: Remove reference to DGUX.
18607 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
18608
18609 * config.in: Regenerate.
18610
18611 2008-07-30 Jason Rumney <jasonr@gnu.org>
18612
18613 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
18614
18615 2008-07-29 Jason Rumney <jasonr@gnu.org>
18616
18617 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
18618 is populated.
18619 (uniscribe_encode_char): Always use uniscribe.
18620 Avoid using context if cache is populated.
18621
18622 2008-07-29 Jan Djärv <jan.h.d@swipnet.se>
18623
18624 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
18625 open menu.
18626
18627 * gtkutil.c (menu_nav_ended): Remove.
18628 (create_menus): Remove signal connect for menu_nav_ended.
18629
18630 2008-07-28 Chong Yidong <cyd@stupidchicken.com>
18631
18632 * xdisp.c (redisplay_window): Check return value of
18633 compute_window_start_on_continuation_line before forcing a window
18634 start.
18635
18636 2008-07-28 Jason Rumney <jasonr@gnu.org>
18637
18638 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
18639
18640 * w32term.c (w32_enable_unicode_output, cleartype_active):
18641 Remove obsolete display options.
18642 (x_draw_glyph_string_background): Don't use old cleartype_active
18643 workaround.
18644 (w32_initialize): Remove cleartype_active initialization.
18645 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
18646
18647 2008-07-28 Andreas Schwab <schwab@suse.de>
18648
18649 * lisp.h (init_weak_hash_tables, syms_of_font)
18650 (xd_read_queued_messages, syms_of_dbusbind): Declare.
18651 (remove_hash_entry): Don't declare.
18652 * eval.c (maybe_call_debugger): Make static and move before use.
18653 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
18654 * xdisp.c: Include "gtkutil.h" if USE_GTK.
18655 * xterm.h (x_set_frame_alpha): Declare.
18656
18657 2008-07-28 Jan Djärv <jan.h.d@swipnet.se>
18658
18659 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
18660 (create_menus): Connect selection-done to menu_nav_ended.
18661
18662 2008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
18663
18664 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
18665 Set Vx_resource_name to a fallback. Replace read of 'buffered'
18666 parameter with read of 'alpha' one.
18667 (Qns_frame_parameter): Remove.
18668 * nsselect.m (selection-coding-system)
18669 (next-selection-coding-system, Vselection_coding_system)
18670 (Vnext_selection_coding_system): Drop.
18671
18672 2008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
18673
18674 * nsfns.m (do-applescript, do_applescript): Rename to
18675 ns-do-applescript, ns_do_applescript, and move within file.
18676
18677 2008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
18678
18679 Remove support for Mac Carbon.
18680 * mactoolbox.c:
18681 * macterm.h:
18682 * macterm.c:
18683 * macselect.c:
18684 * macmenu.c:
18685 * macgui.h:
18686 * macfns.c:
18687 * mac.c: Remove file.
18688 * s/darwin.h:
18689 * m/intel386.h:
18690 * xfaces.c:
18691 * xdisp.c:
18692 * window.c:
18693 * tparam.c:
18694 * termhooks.h:
18695 * termcap.c:
18696 * term.c:
18697 * syssignal.h:
18698 * sysselect.h:
18699 * sysdep.c:
18700 * process.c:
18701 * lread.c:
18702 * lisp.h:
18703 * keyboard.c:
18704 * image.c:
18705 * fringe.c:
18706 * frame.h:
18707 * frame.c:
18708 * fontset.c:
18709 * font.h:
18710 * font.c:
18711 * fns.c:
18712 * fileio.c:
18713 * emacs.c:
18714 * dispnew.c:
18715 * dispextern.h:
18716 * config.in:
18717 * atimer.c:
18718 * Makefile.in: Remove code for Carbon.
18719
18720 2008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18721
18722 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
18723
18724 2008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18725
18726 * macterm.h (kCGBitmapByteOrder32Host): New define for
18727 non-universal SDKs.
18728
18729 * image.c (mac_create_cg_image_from_image, image_load_image_io)
18730 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
18731
18732 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
18733 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
18734
18735 2008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
18736
18737 * w32inevt.c: Include dispextern.h.
18738
18739 2008-07-26 Andreas Schwab <schwab@suse.de>
18740
18741 * print.c (print_object): Fix off-by-one in last change.
18742
18743 2008-07-25 Juanma Barranquero <lekktu@gmail.com>
18744
18745 * term.c (syms_of_term): Don't initialize default_orig_pair,
18746 default_set_foreground and default_set_background on Windows.
18747
18748 2008-07-25 Jason Rumney <jasonr@gnu.org>
18749
18750 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
18751 ScriptItemize. Clean up return value checking. Remove unused
18752 variables.
18753 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
18754 shaping engine.
18755
18756 * w32font.c (w32font_has_char): Handle the case where we can't
18757 determine the script for a character.
18758
18759 2008-07-25 Chong Yidong <cyd@stupidchicken.com>
18760
18761 * term.c (syms_of_term): Initialize default_orig_pair,
18762 default_set_foreground, and default_set_background.
18763
18764 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
18765 clash (bug#86).
18766 (getloadavg): Callers changed.
18767
18768 * image.c (svg_load_image): Fix last change.
18769 (svg_load_image): Use rsvg_handle_get_dimensions to check that
18770 image size is valid. Use g_object_unref instead of deprecated
18771 rsvg_handle_free to free rsvg handle.
18772 (x_from_xcolors): Don't initialize pixmap (silence compiler).
18773
18774 2008-07-25 Jason Rumney <jasonr@gnu.org>
18775
18776 * w32font.c (w32font_encode_char): Encode characters outside BMP as
18777 surrogates before looking up glyph index.
18778 (w32font_text_extents): Encode as surrogates if falling back to
18779 functions that need UTF-16 wide chars.
18780
18781 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
18782 BMP as surrogates before looking up glyph index.
18783
18784 2008-07-25 Chong Yidong <cyd@stupidchicken.com>
18785
18786 * image.c (svg_load_image): Check for failure in return value of
18787 rsvg_handle_get_pixbuf. Free rsvg handle when done.
18788
18789 2008-07-25 Jason Rumney <jasonr@gnu.org>
18790
18791 * w32font.c (Fx_select_font): Reverse sense of second arg.
18792
18793 2008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
18794
18795 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
18796 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
18797
18798 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
18799 (PURESIZE): Use it.
18800
18801 2008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
18802
18803 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
18804 * m/alpha.h (TEXT_END):
18805 * m/ibmrs6000.h (TEXT_END):
18806 * m/macppc.h (TEXT_END):
18807 * s/darwin.h (TEXT_END):
18808 * s/msdos.h (TEXT_END): Remove, unused.
18809 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
18810 * s/cygwin.h: Remove comment.
18811
18812 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
18813 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
18814 * m/intel386.h (DOT_GLOBAL_START):
18815 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
18816 (USG): Remove, file not used on USG platforms.
18817
18818 * Makefile.in (HAVE_X11): Remove empty #else.
18819
18820 2008-07-24 Andreas Schwab <schwab@suse.de>
18821
18822 * fileio.c (Finsert_file_contents): Properly adjust undo list
18823 after format conversion.
18824
18825 2008-07-24 Jan Djärv <jan.h.d@swipnet.se>
18826
18827 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
18828 (menu_nav_ended): Remove.
18829 (create_menus): Remove signal connect for menu_nav_ended.
18830 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
18831 create_menus.
18832 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
18833
18834 2008-07-23 Jason Rumney <jasonr@gnu.org>
18835
18836 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
18837 with opened font.
18838 (w32font_open): Set font type to gdi.
18839
18840 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
18841
18842 2008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
18843
18844 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
18845 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
18846 defines it.
18847 * unexec.c (ADDR_CORRECT): Define unconditionally.
18848
18849 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
18850
18851 * unexec.c: Remove code depending on !COFF and USG, the file is
18852 not used for such systems.
18853
18854 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
18855 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
18856 (LD_SWITCH_SYSTEM_1): Remove, update users.
18857
18858 * s/darwin.h (DATA_END):
18859 * m/intel386.h (DATA_END):
18860 * m/ibmrs6000.h (DATA_END):
18861 * m/alpha.h (DATA_END): Remove, unused.
18862
18863 * config.in: Regenerate.
18864 * s/ms-w32.h (subprocesses): Define unconditionally.
18865 * s/template.h (subprocesses): Update comment.
18866 * s/vms.h (subprocesses):
18867 * s/usg5-4.h (subprocesses):
18868 * s/hpux10-20.h (subprocesses):
18869 * s/gnu-linux.h (subprocesses):
18870 * s/cygwin.h (subprocesses):
18871 * s/bsd-common.h (subprocesses):
18872 * s/aix4-2.h (subprocesses):
18873 * s/darwin.h (subprocesses): Do not define, defined by default now.
18874
18875 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
18876 Remove all references.
18877 (temacs): Add GNUstep specific ld flags.
18878
18879 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
18880 similarly to what X does.
18881
18882 2008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
18883
18884 * nsfns.m (x-list-fonts): Remove.
18885 (syms_of_nsfns): Drop the x-list-fonts declaration.
18886 * nsterm.m: Get rid of remaining "//" comments.
18887
18888 2008-07-22 Chong Yidong <cyd@stupidchicken.com>
18889
18890 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
18891
18892 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
18893 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
18894 (Fns_own_selection_internal, Fx_disown_selection_internal)
18895 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
18896
18897 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
18898 ... */' style of docstrings. Doc fixes.
18899
18900 2008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
18901
18902 * terminfo.c (UP, BC, PC): Undo previous change.
18903
18904 * nsfns.m: Rename ns prefixed functions/variables to the
18905 corresponding x versions. Update references.
18906
18907 2008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
18908
18909 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
18910
18911 2008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
18912
18913 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
18914 Remove forwarding functions.
18915 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
18916 non-static.
18917 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
18918 non-static.
18919 (ns_frame_parm_handlers): Use the new names.
18920 (syms_of_nsfns): Move to the end of file.
18921
18922 * nsterm.m (syms_of_nsterm): Move to the end of file.
18923
18924 * dispnew.c (init_display): Remove code for X10.
18925
18926 2008-07-22 Jason Rumney <jasonr@gnu.org>
18927
18928 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
18929 bare drive.
18930
18931 2008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
18932
18933 * nsterm.m (syms_of_nsterm): Remove debugging println.
18934
18935 2008-07-22 David Reitter <david.reitter@gmail.com>
18936
18937 * nsfns.m (do_applescript, F_do_applescript): NS version of the
18938 Carbon implementation of the same functionality: execute arbitrary
18939 AppleScript code.
18940
18941 2008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
18942
18943 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
18944 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
18945 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
18946 (Fx_display_mm_height, Fx_display_mm_width)
18947 (Fx_display_backing_store, Fx_display_visual_class)
18948 (Fx_display_save_under, Fx_open_connection)
18949 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
18950 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
18951 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
18952 (Fx_display_pixel_width, Fx_display_pixel_height)
18953 (Fx_display_usable_bounds, Fx_display_planes)
18954 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
18955 ... */' style of docstrings.
18956
18957 2008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
18958
18959 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
18960 on this platform.
18961 (mips):
18962 * m/iris4d.h (mips): Do not define.
18963 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
18964
18965 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
18966
18967 * image.c:
18968 * nsfns.m:
18969 * nsselect.m:
18970 * nsterm.h:
18971 * nsterm.m: Rename ns prefixed functions/variables to the
18972 corresponding x versions. Update references.
18973
18974 * m/ibms390x.h (NO_REMAP): Do not undefine.
18975
18976 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
18977
18978 2008-07-21 Chong Yidong <cyd@stupidchicken.com>
18979
18980 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
18981 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
18982 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
18983 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
18984 (Fns_display_mm_height, Fns_display_mm_width)
18985 (Fns_display_backing_store, Fns_display_visual_class)
18986 (Fns_display_save_under, Fns_open_connection)
18987 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
18988 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
18989 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
18990 (Fns_display_pixel_width, Fns_display_pixel_height)
18991 (Fns_display_usable_bounds, Fx_display_planes)
18992 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
18993
18994 2008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
18995
18996 * print.c (print_object): Check print_depth before searching for
18997 circularities.
18998
18999 2008-07-21 Michael Albinus <michael.albinus@gmx.de>
19000
19001 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
19002 only sprintf.
19003
19004 2008-07-21 Kenichi Handa <handa@m17n.org>
19005
19006 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
19007
19008 2008-07-20 Andreas Schwab <schwab@suse.de>
19009
19010 * syntax.c (find_start_pos, find_start_value)
19011 (find_start_value_byte, find_start_begv, find_defun_start)
19012 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
19013
19014 2008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
19015
19016 * s/sol2-3.h: Insert contents of s/sol2.h.
19017 (LD_SWITCH_SYSTEM): Remove redundant definition.
19018 * s/sol2.h: Remove, unused.
19019
19020 2008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
19021
19022 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
19023
19024 2008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
19025
19026 * Makefile.in (ns_appdir): Fix typo in find command.
19027
19028 2008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
19029
19030 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
19031
19032 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
19033 added not supported anymore.
19034
19035 * s/usg5-4-2.h (LIBS_SYSTEM):
19036 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
19037
19038 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
19039 * s/lynxos.h (GETPGRP_NO_ARG):
19040 * s/hpux10-20.h (NO_SIOCTL_H):
19041 * s/gnu.h (GETPGRP_NO_ARG):
19042 * s/gnu-linux.h (NO_SIOCTL_H):
19043 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
19044 * s/cygwin.h (GETPGRP_NO_ARG):
19045 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
19046 (C_DEBUG_SWITCH): Remove duplicate definition.
19047
19048 * m/ibms390.h: Remove boilerplate comments.
19049
19050 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
19051
19052 * process.c (HAVE_SERIAL): Consolidate ifdefs.
19053 (wait_reading_process_output): Remove code for SunOS, platform not
19054 supported anymore. Use SOLARIS2 instead of sun.
19055
19056 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
19057
19058 * font.c (font_open_by_name): Under NS, default lface height to zero.
19059 (font_open_for_lface): Under NS, set size based on frame fontsize.
19060 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
19061 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
19062
19063 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
19064
19065 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
19066 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
19067 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
19068 YES/NO.
19069 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
19070 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
19071 * Makefile.in (clean): Clear out build destination dir.
19072
19073 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
19074
19075 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
19076 xterm, xselect.
19077 * lisp.h: Remove declaration of hash_remove.
19078 * nsgui.h: Remove redefinitions of hash_remove.
19079 * fns.c (hash_remove): Rename to hash_remove_from_table.
19080
19081 2008-07-19 Seiji Zenitani <zenitani@mac.com>
19082
19083 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
19084 strdup() the family UTF8String before modifying it.
19085
19086 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
19087
19088 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
19089 NS_FACE_BACKGROUND with 0 instead of nil.
19090 * nsfont.m (nsfont_draw): Same.
19091
19092 2008-07-19 Chong Yidong <cyd@stupidchicken.com>
19093
19094 * nsfns.m (ns_set_background_color): Fix crash.
19095
19096 2008-07-18 Chong Yidong <cyd@stupidchicken.com>
19097
19098 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
19099
19100 2008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
19101
19102 * puresize.h (BASE_PURESIZE): Increase to 1240000.
19103
19104 2008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19105
19106 * gtkutil.c: Include <config.h> instead of "config.h".
19107
19108 * lisp.h (Foverlay_buffer): Add EXFUN.
19109
19110 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
19111 child process to complete child_setup. Undo 2005-09-21 change.
19112
19113 * s/darwin.h: Mention setsid after vfork.
19114
19115 2008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19116
19117 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
19118 Depend on macgui.h.
19119
19120 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
19121 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
19122
19123 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
19124 and f19.
19125 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
19126
19127 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
19128 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
19129 Remove enumerators.
19130
19131 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
19132 Check if FACE_FROM_ID returns NULL.
19133
19134 2008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
19135
19136 * w32inevt.c (change_frame_size): Remove extern declaration.
19137 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
19138 change_frame_size.
19139
19140 2008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
19141
19142 * getloadavg.c: Revert last change (2008-07-15).
19143
19144 2008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
19145
19146 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
19147 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
19148 from configure.
19149
19150 2008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
19151
19152 * s/sol2.h:
19153 * s/sol2-4.h: Reorganize conditionals.
19154
19155 * ecrt0.c: Remove code depending on m68000, not used anymore.
19156
19157 * fns.c (hash_remove): Make static.
19158 * lisp.h (hash_remove): Don't prototype.
19159
19160 * m/ibmrs6000.h:
19161 * m/ibms390x.h:
19162 * m/macppc.h: Remove boilerplate comments.
19163
19164 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
19165 Solaris, which does not need them.
19166
19167 * m/vax.h: Remove comments about unsupported systems.
19168
19169 * s/darwin.h: Reorganize ifdefs.
19170
19171 2008-07-17 Andreas Schwab <schwab@suse.de>
19172
19173 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
19174
19175 2008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
19176
19177 Use SDATA. Follow coding convention of placing operators at
19178 beginning of next line rather than end of previous line, and placing
19179 spaces around infix operators.
19180
19181 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
19182 in case it was defined already.
19183 USE @GNUSTEP_MAKEFILES@ rather than envvars.
19184 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
19185 ns_default.
19186 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
19187 Lisp_Objects.
19188 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
19189 (ns_defined_color, ns_color_to_lisp): Declare.
19190 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
19191 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
19192 it's accepted even with USE_LISP_UNION_TYPE.
19193 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
19194 (update_frame_tool_bar): Remove apparently obsolete tests for
19195 non-integerness of f->tool_bar_lines.
19196 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
19197 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
19198 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
19199 (nsfont_open): Don't confuse NULL for Qnil.
19200 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
19201 * menu.h (find_and_call_menu_selection):
19202 * menu.c (find_and_call_menu_selection): Use just int for vector size.
19203 (find_and_return_menu_selection): Always return something.
19204 * frame.h: Include dispextern.h for Display_Info.
19205 (display_x_get_resource): Declare.
19206
19207 2008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
19208
19209 * syntax.c: Remove stdio.h include accidentally introduced in
19210 Emacs.app commit.
19211 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
19212 NS_IMPL_COCOA.
19213 * keyboard.c (handle_async_input, input_available_signal): Remove
19214 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
19215
19216 2008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
19217
19218 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
19219 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
19220 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
19221 Use SDATA.
19222
19223 * keymap.c: Remove all NS-specific code.
19224 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
19225 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
19226 where_is_preferred_modifier, return a different value depending on how
19227 preferred is the binding.
19228 (where_is_internal): Adjust accordingly.
19229 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
19230 Adjust to new preferred_sequence_p.
19231 (syms_of_keymap): Declare `where-is-preferred-modifier'.
19232 * keyboard.c (parse_solitary_modifier): Not static any more.
19233 * keyboard.h (parse_solitary_modifier): Declare.
19234
19235 2008-07-16 Andreas Schwab <schwab@suse.de>
19236
19237 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
19238 of easymenu.
19239
19240 2008-07-16 Chong Yidong <cyd@stupidchicken.com>
19241
19242 * xdisp.c (move_it_in_display_line): Account for word wrap, so
19243 that we don't move off the line.
19244
19245 2008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
19246
19247 * keyboard.c (Qsuper): Remove.
19248 (parse_menu_item): Don't call where_is_internal specially for NS.
19249
19250 2008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
19251
19252 * s/gnu-linux.h: Remove boilerplate comments.
19253
19254 * m/alpha.h (__ELF__): Consolidate conditions.
19255
19256 * m/m68k.h (linux): Use GNU_LINUX instead.
19257 Remove boilerplate comments.
19258
19259 * m/intel386.h: Undo refactoring from previous change.
19260 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
19261 too, remove dead code.
19262 (linux): Use GNU_LINUX instead.
19263
19264 2008-07-16 Jason Rumney <jasonr@gnu.org>
19265
19266 * w32gui.h: Repeat 26 June changes lost by last change.
19267
19268 2008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
19269
19270 * systty.h: Remove code for Aix on 386, unsupported platform.
19271
19272 * s/ms-w32.h: Remove boilerplate comments.
19273 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
19274
19275 * s/gnu-linux.h (TERM): Remove support.
19276 (HAVE_SYSVIPC): Remove, unused.
19277 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
19278 for this system.
19279
19280 * process.c: Remove support for IRIS, unused.
19281 Remove support for TERM, not relevant anymore.
19282
19283 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
19284 used with the definition.
19285
19286 * s/aix4-2.h (static): Do not undef.
19287
19288 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
19289 only used on Aix.
19290 (HAVE_SYSVIPC): Remove, unused.
19291
19292 * m/hp800.h (CANNOT_DUMP): Do not undef.
19293
19294 * m/alpha.h: Fix comment.
19295
19296 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
19297 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
19298 used by this configuration.
19299 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
19300 * unexec.c: Remove code depending on HPUX and
19301 USG_SHARED_LIBRARIES, not used with this file. Remove code
19302 depending on IRIS, unused. Remove if 0-ed code.
19303
19304 * s/template.h: Remove comments about static.
19305
19306 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
19307 Remove if 0-ed code.
19308 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
19309 were the same as the default.
19310 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
19311 Remove boilerplate comments.
19312 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
19313 (HAVE_SYSVIPC): Remove, unused.
19314 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
19315
19316 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
19317 Remove boilerplate comments.
19318 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
19319 Remove boilerplate comments.
19320 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
19321 Remove boilerplate comments.
19322 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
19323
19324 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
19325 USG systems which do not use DATA_SEG_BITS.
19326 Refactor code. Remove boilerplate comments.
19327
19328 * m/ibms390.h:
19329 * m/m68k.h:
19330 * s/bsd-common.h:
19331 * s/cygwin.h:
19332 * s/darwin.h:
19333 * s/freebsd.h:
19334 * s/gnu.h:
19335 * s/msdos.h: Remove boilerplate comments.
19336
19337 * m/iris4d.h: Remove boilerplate comments and code for systems that
19338 do not use this file.
19339 (IRIS_4D): Remove, unused.
19340
19341 * m/mips.h: Remove boilerplate comments and code for systems that
19342 do not use this file.
19343 (SIGN_EXTEND_CHAR):
19344 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
19345 * unexmips.c: Remove file, unused.
19346
19347 * editfns.c (Fuser_full_name): Replace the only use of
19348 USER_FULL_NAME with its value.
19349 * config.in: Regenerate.
19350
19351 2008-07-16 David Reitter <david.reitter@gmail.com>
19352
19353 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
19354 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
19355
19356 2008-07-16 Glenn Morris <rgm@gnu.org>
19357
19358 * emacs.c (system-type): Doc fix.
19359
19360 2008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
19361
19362 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
19363 If the cache doesn't work, let's fix it, rather than work around it.
19364
19365 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
19366
19367 * Makefile.in: Correct additions for nsfont.o in last commit.
19368 * nsfont.m: New file (forgot last commit).
19369
19370 2008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
19371
19372 * callproc.c (set_initial_environment):
19373 Initialize Vprocess_environment under CANNOT_DUMP (fixes crash when
19374 batch-compiling for bootstrap).
19375
19376 2008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
19377 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19378
19379 * frame.c (make_initial_frame): Call init_frame_faces(f) in
19380 CANNOT_DUMP case -- fix crash due to different init order.
19381
19382 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
19383
19384 Changes and additions for NeXTstep windowing system (Cocoa and
19385 GNUstep) support.
19386
19387 * Makefile.in:
19388 * config.in: Support defines and build commands for NS port.
19389 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
19390 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
19391 * dispextern.h: Include nsgui.h and add needed typedefs under NS
19392 windowing.
19393 (struct face): Add synth_ital field.
19394 * dispnew.c: Include nsterm.h when compiling under NS windowing.
19395 (init_display): Initialize Vinitial_window_system to "ns" when so
19396 compiled.
19397 * emacs.c: Include GSConfig.h when compiling under GNUstep.
19398 (display_arg): Use under NS.
19399 (main): Under NS, allocate autorelease pool and handle command line
19400 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
19401 (standard_args): Add NS-specific args.
19402 (shut_down_emacs): Shut down NS terminal if compiled under NS.
19403 * font.c (DEFAULT_ENCODING): New variable.
19404 (font_find_for_lface): Use it.
19405 (syms_of_font): Load syms_of_nsfont under NS.
19406 * font.h: Declare nsfont_driver when compiled under NS.
19407 * fontset.c: When compiling under NS, include nsterm.h.
19408 (fontset_from_font): Autoconstruct fontset under NS.
19409 * frame.c (various): Under NS, include nsterm.h, add Qns window system
19410 symbol, document and use it.
19411 (do_switch_frame): When for_deletion under Cocoa, add
19412 Fraise_frame(Qnil).
19413 (x_set_frame_parameters): Ensure font attribute changes are picked up.
19414 (x_get_arg): Allow "yes" and "no" as boolean values.
19415 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
19416 Qright under Cocoa.
19417 (focus-follows-mouse): Default to 0 under NS.
19418 * frame.h (enum output_method): Add output_ns.
19419 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
19420 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
19421 (FRAME_WINDOW_P): NS-specific definition.
19422 * fringe.c (max_used_fringe_bitmap): Make public.
19423 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
19424 (getloadavg): Use NeXT code under descendant OS's.
19425 * image.c (includes and header section, x_create_bitmap_from_data)
19426 (x_create_bitmap_from_file, free_bitmap_record, image_background)
19427 (image_background_transparent, x_clear_image_1)
19428 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
19429 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
19430 (x_to_xcolors, x_from_xcolors, x_disable_image)
19431 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
19432 other GUIs, including XPM support using code originally written for
19433 Carbon GUI.
19434 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
19435 using NS API.
19436 (image_ascent): Use font metrics macros instead of direct struct field
19437 access.
19438 * keyboard.c (includes): Add nsterm.h when compiling under NS.
19439 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
19440 Also, handle NS as GTK for menu bar purposes.
19441 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
19442 toolkit where they differ.
19443 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
19444 use cachelist, still needed under NS.
19445 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
19446 (struct widget_value): Define it here for menu.c.
19447 * keymap.c (includes): Include modifier internals.
19448 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
19449 NS.
19450 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
19451 support for preferring sequences using certain modifiers, specified by
19452 the FIRSTONLY argument.
19453 * lisp.h (hash_remove): Rename to avoid name clash when compiling
19454 under NS GNUstep implementation.
19455 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
19456 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
19457 * menu.c: Include nsterm.h under NS.
19458 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
19459 (free_menubar_widget_tree_value, update_submenu_strings)
19460 (find_and_call_menu_selection): Treat NS as X and NT.
19461 (find_and_return_menu_selection): New function, used for popup menus.
19462 * nsgui.h:
19463 * nsterm.h:
19464 * nsfns.m:
19465 * nsimage.m:
19466 * nsmenu.m:
19467 * nsselect.m:
19468 * nsterm.m: New files.
19469 * process.c (wait_reading_process_output): Under NS, call ns_select()
19470 instead of plain select().
19471 * syntax.c (char_quoted): Under NS, avoid a crash when called near
19472 beginning of buffer.
19473 * sysselect.h (init_process): Rename when compiling under Cocoa to
19474 avoid name conflict.
19475 * termhooks.h (display_info): Add ns_display_info to union.
19476 * terminal.c (Fterminal_live_p): Add ns to terminal types.
19477 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
19478 COCOA environment.
19479 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
19480 unexec() signature. (Note, this will dump, but the resulting file
19481 crashes; unexosx is used instead; keeping around for reference and
19482 possible aid in getting dump working under GNUstep.)
19483 * w32gui.h (button_type, widget_value): Remove definitions (now in
19484 keyboard.h).
19485 * window.c: Include nsterm.h when compiling under NS.
19486 * xdisp.c (includes): Include nsterm.h when compiling under NS.
19487 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
19488 other GUI windowing systems.
19489 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
19490 GTK.
19491 (x_consider_frame_title): Under NS, set icon type and frame
19492 modified-state indicator; use ns_set_name_as_filename() when using
19493 formatted title.
19494 (update_window_cursor): Make public when compiling under NS.
19495 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
19496 (hourglass_atimer, Vhourglass_delay
19497 * xfaces.c (header section, init_frame_faces, clear_font_table)
19498 (defined_color, unload_color, x_face_list_fonts)
19499 (prepare_face_for_display): Add NS support parallel to other GUIs.
19500 Emulate GCs like other non-X GUIs.
19501 (split_font_name): Don't lowercase font name under NS.
19502 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
19503 under NS.
19504 * s/darwin.h: Add support for compilation under NS.
19505
19506 2008-07-15 Jason Rumney <jasonr@gnu.org>
19507
19508 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
19509 (w32_show_hourglass): Rename from show_hourglass.
19510 (w32_hide_hourglass): Rename from hide_hourglass.
19511 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
19512 (Vhourglass_delay): Declare extern.
19513 (hourglass_started): Remove.
19514
19515 * xdisp.c (Vhourglass_delay): Remove static.
19516 (hourglass_started, start_hourglass, cancel_hourglass):
19517 Don't include these versions on WINDOWSNT.
19518
19519 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
19520
19521 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
19522 variables (formerly in xfns.c).
19523 (show_hourglass, hide_hourglass): New prototypes (same).
19524 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
19525 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
19526 in xfns.c).
19527 (syms_of_xdisp): Declare/initialize display-hourglass,
19528 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
19529 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
19530 formerly in xfns.c.
19531 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
19532 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
19533 (start_hourglass, cancel_hourglass): Remove.
19534 (show_hourglass, hide_hourglass): Remove prototypes and static
19535 modifiers.
19536 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
19537 hourglass_atimer, hourglass_shown_p declaration/initialization.
19538 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
19539 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
19540 (start_hourglass, cancel_hourglass): Remove.
19541 (show_hourglass, hide_hourglass): Remove prototypes and static
19542 modifiers.
19543 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
19544 hourglass_atimer, hourglass_shown_p declaration/initialization.
19545 * w32fns.c (display_hourglass_p, Vhourglass_delay)
19546 (DEFAULT_HOURGLASS_DELAY): Remove.
19547 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
19548 hourglass_shown_p declaration/initialization.
19549
19550 2008-07-14 Jason Rumney <jasonr@gnu.org>
19551
19552 * w32fns.c (w32_get_arg): Remove wrapper function.
19553 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
19554 directly.
19555 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
19556
19557 2008-07-14 Kenichi Handa <handa@m17n.org>
19558
19559 * xfont.c (xfont_open): Add workaround for X's bug.
19560
19561 2008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
19562
19563 * fontset.c: Include <stdio.h> unconditionally.
19564
19565 2008-07-13 Michael Albinus <michael.albinus@gmx.de>
19566
19567 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
19568 for filtering.
19569
19570 2008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
19571
19572 * s/vms.h: Use __GNUC__ instead of _GNUC_.
19573
19574 * m/macppc.h:
19575 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
19576
19577 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default.
19578 (SPECIAL_EMACS_INT):
19579 * m/ia64.h (SPECIAL_EMACS_INT):
19580 * m/amdx86-64.h (SPECIAL_EMACS_INT):
19581 * s/gnu.h (NLIST_STRUCT):
19582 * s/aix4-2.h (X11R5_INHIBIT_I18N):
19583 * s/gnu-linux.h (LINUX):
19584 * s/msdos.h (HAVE_FACES):
19585 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
19586
19587 * systty.h:
19588 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
19589 anymore.
19590
19591 2008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
19592
19593 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
19594 always defined as int.
19595
19596 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
19597 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
19598 * s/gnu-linux.h (HAVE_WAIT_HEADER):
19599 * s/freebsd.h (HAVE_WAIT_HEADER):
19600 * s/bsd-common.h (HAVE_UNION_WAIT):
19601 * s/aix4-2.h (HAVE_WAIT_HEADER):
19602 * m/mips.h (HAVE_UNION_WAIT):
19603 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
19604 (COFF, static): Do not define, they are undefined later in the file.
19605
19606 * process.c (update_status): Don't use a union.
19607 (status_convert):
19608 (sigchld_handler): Use int instead of WAITTYPE.
19609
19610 2008-07-12 Chong Yidong <cyd@stupidchicken.com>
19611
19612 * indent.c (Fvertical_motion): Restore hscroll before moving to
19613 goal column.
19614
19615 2008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
19616
19617 * lisp.h: Remove left over code.
19618
19619 2008-07-11 Andreas Schwab <schwab@suse.de>
19620
19621 * lisp.h: Fix logic in last change.
19622
19623 * menu.h: New file.
19624 * menu.c: Include it.
19625 * xmenu.c: Likewise.
19626 * Makefile.in: Update dependencies.
19627
19628 2008-07-11 Kenichi Handa <handa@m17n.org>
19629
19630 * fontset.c (fontset_from_font): Cancel the previous change.
19631
19632 2008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
19633
19634 * lisp.h:
19635 * w32heap.c:
19636 * emacs.c:
19637 * alloc.c: Replace all references of NO_UNION_TYPE with
19638 USE_LISP_UNION_TYPE.
19639
19640 * m/xtensa.h (NO_UNION_TYPE):
19641 * m/vax.h (NO_UNION_TYPE):
19642 * m/template.h (NO_UNION_TYPE):
19643 * m/sparc.h (NO_UNION_TYPE):
19644 * m/mips.h (NO_UNION_TYPE):
19645 * m/macppc.h (NO_UNION_TYPE):
19646 * m/m68k.h (NO_UNION_TYPE):
19647 * m/iris4d.h (NO_UNION_TYPE):
19648 * m/intel386.h (NO_UNION_TYPE):
19649 * m/ibms390x.h (NO_UNION_TYPE):
19650 * m/ibms390.h (NO_UNION_TYPE):
19651 * m/ibmrs6000.h (NO_UNION_TYPE):
19652 * m/ia64.h (NO_UNION_TYPE):
19653 * m/hp800.h (NO_UNION_TYPE):
19654 * m/arm.h (NO_UNION_TYPE):
19655 * m/amdx86-64.h (NO_UNION_TYPE):
19656 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
19657 defining it the same.
19658
19659 2008-07-10 Chong Yidong <cyd@stupidchicken.com>
19660
19661 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
19662
19663 2008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
19664
19665 * fileio.c:
19666 * sysdep.c:
19667 * systty.h:
19668 * m/ibmrs6000.h:
19669 * m/iris4d.h:
19670 * s/aix4-2.h:
19671 * s/freebsd.h:
19672 * s/gnu-linux.h:
19673 * s/hpux10-20.h:
19674 * s/hpux11.h:
19675 * s/netbsd.h:
19676 * s/sol2-3.h:
19677 * s/sol2-4.h:
19678 * s/sol2.h:
19679 * s/usg5-4.h:
19680 * s/vms.h: Remove references to unused variables.
19681
19682 2008-07-10 Andreas Schwab <schwab@suse.de>
19683
19684 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
19685 pattern before matching the generic family.
19686
19687 2008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
19688
19689 * unexec.c:
19690 * s/vms.h:
19691 * s/usg5-4-2.h:
19692 * s/sol2-5.h:
19693 * s/freebsd.h:
19694 * s/darwin.h: Remove dead code.
19695
19696 * m/template.h:
19697 * m/sparc.h:
19698 * m/mips.h:
19699 * m/m68k.h:
19700 * m/iris4d.h:
19701 * m/intel386.h:
19702 * m/ibms390x.h:
19703 * m/ibms390.h:
19704 * m/ia64.h:
19705 * m/hp800.h:
19706 * m/arm.h:
19707 * m/amdx86-64.h: Remove dead code and references to unused
19708 and compiler defined symbols.
19709
19710 * unexmips.c:
19711 * unexelf.c: Remove references to desupported systems.
19712
19713 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
19714
19715 * m/powermac.h: Remove boilerplate comments.
19716 (NO_REMAP): Remove unused definition.
19717
19718 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
19719 define them.
19720
19721 2008-07-10 Kenichi Handa <handa@m17n.org>
19722
19723 * xfont.c (xfont_open): Log the reason of failure.
19724
19725 2008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
19726
19727 * fontset.c (fontset_get_font_group):
19728 * font.c (font_check_otf): Specify argument types.
19729
19730 2008-07-09 Kenichi Handa <handa@m17n.org>
19731
19732 * coding.c (detect_coding_utf_8): Set detect_info->found only when
19733 non-ASCII char is found.
19734
19735 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
19736 (reorder_font_vector): Change the arg preferred_family to font.
19737 Prefer the spec matching with font.
19738 (fontset_get_font_group): New function.
19739 (fontset_find_font): Change the format of an element of a realized
19740 fontset. Use fontset_get_font_group.
19741 (fontset_font): Try the current fontset, the default fontset, the
19742 fallbacks of the current fontset, and the fallbacks of the default
19743 fontset in this order.
19744 (face_for_char): Delete the shortcut to use the current font.
19745 (fontset_from_font): Don't set fonts for Latin in the fontset.
19746
19747 * font.h (font_make_object, font_match_p): Adjust prototypes.
19748
19749 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
19750
19751 * font.c (font_make_object): New arg entity and pixelsize.
19752 (font_check_otf_features, font_check_otf): New functions.
19753 (font_match_p): Check :lang, :script, and :otf properties.
19754
19755 * xfont.c (xfont_open): Adjust it for the change of
19756 font_make_object.
19757 (xfont_text_extents): Fix initial setting of metrics.
19758
19759 * ftfont.c (struct ftfont_info): New member index, delete member
19760 fc_charset_idx. Make the member order compatible with struct
19761 xftfont_info.
19762 (fc_charset_table): Change charset names to registry names.
19763 (ftfont_pattern_entity): Delete the args registry and
19764 fc_charset_idx. Change the value of :font-entity property
19765 to (FONTNAME . INDEX). Always set :registry property to
19766 `iso10646-1'.
19767 (struct ftfont_cache_data): New struct.
19768 (ftfont_lookup_cache): New arg for_face.
19769 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
19770 (ftfont_driver): Set the member otf_capability.
19771 (ftfont_get_charset): Adjust it for the change of
19772 fc_charset_table.
19773 (OTF_TAG_SYM): New macro.
19774 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
19775 for the change of fc_charset_table.
19776 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
19777 ftfont_pattern_entity. Add FC_INDEX to objset.
19778 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
19779 and ftfont_pattern_entity.
19780 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
19781 font_make_object, struct ftfont_info.
19782 (ftfont_has_char): Use ftfont_get_fc_charset.
19783 (ftfont_otf_features, ftfont_otf_capability): New functions.
19784 (ftfont_shape): Use ftfont_get_otf.
19785 (ftfont_text_extents): Fix initial setting of metrics.
19786
19787 * xftfont.c (struct xftfont_info): New member ft_size. Make the
19788 member order compatible with struct ftfont_info.
19789 (xftfont_open): Add FC_CHARSET to the pattern.
19790 Set xftfont_info->ft_size. Don't unlock the face. Check BDF
19791 properties if appropriate.
19792 (xftfont_close): Unlock the face.
19793 (xftfont_anchor_point, xftfont_shape): Delete.
19794 (syms_of_xftfont): Don't set members anchor_point and shape of
19795 xftfont_driver.
19796
19797 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
19798 font_make_object.
19799
19800 * w32font.c (w32font_open): Adjust it for the change of
19801 font_make_object.
19802 (w32font_open_internal): Don't set properties of font_object here.
19803
19804 2008-07-08 Chong Yidong <cyd@stupidchicken.com>
19805
19806 * macfns.c (x_create_tip_frame):
19807 * w32fns.c (x_create_tip_frame):
19808 * xfns.c (x_create_tip_frame): Pass parameter argument to
19809 face-set-after-frame-default.
19810
19811 * xfaces.c (Finternal_merge_in_global_face): Save merged
19812 attributes for the default face back into the face vector.
19813
19814 2008-07-08 Andreas Schwab <schwab@suse.de>
19815
19816 * fontset.h: Declare fontset_from_font. Don't declare
19817 new_fontset_from_font and fontset_from_font_name.
19818 * xterm.c: Include "fontset.h".
19819 * Makefile.in (xterm.o): Update dependencies.
19820
19821 2008-07-08 Glenn Morris <rgm@gnu.org>
19822
19823 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
19824 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
19825
19826 2008-07-07 Chong Yidong <cyd@stupidchicken.com>
19827
19828 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
19829 (x_set_frame_parameters): Don't bind it.
19830
19831 2008-07-07 Juanma Barranquero <lekktu@gmail.com>
19832
19833 * w32fns.c (map_w32_filename): Declare extern.
19834
19835 2008-07-07 Jason Rumney <jasonr@gnu.org>
19836
19837 * w32term.c (WS_EX_LAYERED): Define if not already.
19838
19839 2008-07-06 Chong Yidong <cyd@stupidchicken.com>
19840
19841 * xfaces.c (set_font_frame_param): Don't try to set the font
19842 parameter if it is still unspecified in the lface.
19843
19844 2008-07-05 Chong Yidong <cyd@stupidchicken.com>
19845
19846 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
19847 face if it didn't already exist.
19848
19849 * xdisp.c (try_window_id): Give up if word-wrapping is on.
19850
19851 2008-07-05 Andreas Schwab <schwab@suse.de>
19852
19853 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
19854
19855 2008-07-05 Chong Yidong <cyd@stupidchicken.com>
19856
19857 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
19858 word-wrapping.
19859 (IT_DISPLAYING_WHITESPACE): New macro.
19860 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
19861 when word-wrapping. Simplify word-wrapping logic. Use correct
19862 pixel positions when saving copies of the iterator.
19863 (display_line): Use proper wrap point if the last character on a
19864 line was preceded by whitespace.
19865
19866 2008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
19867
19868 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
19869
19870 2008-07-04 Kenichi Handa <handa@m17n.org>
19871
19872 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
19873
19874 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
19875
19876 2008-07-02 Jason Rumney <jasonr@gnu.org>
19877
19878 * xfns.c (syms_of_xfns): Only define x-select-font when both
19879 HAVE_FREETYPE and USE_GTK.
19880
19881 * xdisp.c (next_element_from_display_vector): Move assignment out
19882 of if statement.
19883
19884 2008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
19885
19886 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
19887
19888 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
19889 (syms_of_fileio): Initialize and export them.
19890 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
19891
19892 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
19893 (Fsystem_move_file_to_trash): New function.
19894 (syms_of_w32fns): Export it to lisp.
19895
19896 2008-07-01 Jason Rumney <jasonr@gnu.org>
19897
19898 * w32font.c (w32font_text_extents): Don't count overhang as part
19899 of width.
19900
19901 2008-06-30 Miles Bader <miles@gnu.org>
19902
19903 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
19904 Add `avoid_cursor_p' field.
19905
19906 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
19907 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
19908 (append_glyph, append_composite_glyph, produce_image_glyph)
19909 (append_stretch_glyph): Initialize avoid_cursor_p.
19910 (get_it_property): Rename from `get_line_height_property'.
19911 (x_produce_glyphs): Use get_it_property.
19912 (handle_line_prefix, push_display_prop): New functions.
19913 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
19914 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
19915 New variables.
19916 (syms_of_xdisp): Initialize them.
19917
19918 2008-06-30 Kenichi Handa <handa@m17n.org>
19919
19920 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
19921 XftDefaultSubstitute (they are called in XftFontMatch).
19922 (xftfont_open): Fix args to ftfont_font_format.
19923
19924 * ftfont.c (fc_charset_table): New member lang.
19925 (ftfont_resolve_generic_family): New arg pattern.
19926 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
19927 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
19928 (ftfont_open): Fix args to ftfont_font_format.
19929 (ftfont_font_format): New arg filename.
19930
19931 2008-06-30 Chong Yidong <cyd@stupidchicken.com>
19932
19933 * xfaces.c (Finternal_merge_in_global_face): If default face was
19934 modified, realize it again. Update the font face attribute.
19935
19936 2008-06-29 Jason Rumney <jasonr@gnu.org>
19937
19938 * w32term.c (x_set_frame_alpha): Fix logic.
19939
19940 2008-06-29 Kenichi Handa <handa@m17n.org>
19941
19942 * fontset.c (Finternal_char_font): Return font-object instead of
19943 font-name.
19944
19945 * composite.c (get_composition_id): Fix the width calculation for TAB.
19946
19947 2008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
19948
19949 * indent.c (Fvertical_motion): Properly handle float column arg.
19950
19951 2008-06-28 Jason Rumney <jasonr@gnu.org>
19952
19953 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
19954 (pfnSetLayeredWindowAttributes): New function pointer.
19955 (w32_initialize): Initialize it when supported.
19956 (x_set_frame_alpha): New function.
19957
19958 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
19959 (w32_frame_parm_handlers): Set alpha handler.
19960
19961 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
19962
19963 2008-06-27 Jason Rumney <jasonr@gnu.org>
19964
19965 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
19966 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
19967 (w32_to_x_charset, x_to_w32_charset)
19968 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
19969 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
19970 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
19971 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
19972 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
19973 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
19974 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
19975 (Qw32_charset_unicode): Remove.
19976 (syms_of_w32fns): Update for above changes.
19977
19978 * w32font.c (w32_to_x_charset, x_to_w32_charset)
19979 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
19980 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
19981 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
19982 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
19983 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
19984 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
19985 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
19986 (syms_of_w32font): Update for above changes.
19987
19988 2008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
19989
19990 * s/usg5-4.h: Fix previous change: keep the correct branch of a
19991 removed #if.
19992 (USG_SHARED_LIBRARIES): Remove duplicate definition.
19993
19994 2008-06-26 Juanma Barranquero <lekktu@gmail.com>
19995 Eli Zaretskii <eliz@gnu.org>
19996
19997 * makefile.w32-in (LOCAL_FLAGS):
19998 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
19999
20000 * sysdep.c (_spawnlp, _getpid):
20001 Declare with explicit _cdecl instead of _CRTAPI1.
20002
20003 * editfns.c (Fget_internal_run_time):
20004 Check for WINDOWSNT with #ifdef, not #if.
20005
20006 2008-06-26 Jason Rumney <jasonr@gnu.org>
20007
20008 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
20009
20010 * w32term.c (x_draw_glyph_string_foreground)
20011 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
20012 Use FONT_HANDLE macro.
20013 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
20014
20015 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
20016 (uniscribe_encode_char): Use FONT_HANDLE macro.
20017
20018 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
20019 (w32font_text_extents): Use precast w32_font.
20020 (w32font_close): Free cached metrics.
20021 (w32font_open_internal): Allocate space for name on stack.
20022
20023 2008-06-26 Chong Yidong <cyd@stupidchicken.com>
20024
20025 * xdisp.c (extend_face_to_end_of_line): Fix last change.
20026
20027 2008-06-26 Jason Rumney <jasonr@gnu.org>
20028
20029 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
20030 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
20031
20032 2008-06-26 Juanma Barranquero <lekktu@gmail.com>
20033
20034 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
20035
20036 2008-06-26 Jason Rumney <jasonr@gnu.org>
20037
20038 * w32bdf.c, w32bdf.h: Remove obsolete files.
20039
20040 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
20041
20042 * w32gui.h: Don't include w32bdf.h.
20043 (XCharStruct, enum w32_char_font_type, W32FontStruct):
20044 Remove obsolete font support.
20045
20046 * w32font.h (struct w32font_info): Remove compat_w32_font.
20047 Add hfont member.
20048 (FONT_COMPAT): Remove obsolete macro.
20049
20050 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
20051 (w32font_encode_char, w32font_text_extents): Use new hfont member.
20052 (w32font_open_internal): Remove compat code. Set new hfont member.
20053 (Fx_select_font): Use new hfont member.
20054
20055 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
20056 (uniscribe_encode_char): Use new hfont member.
20057
20058 * w32term.c (x_draw_glyph_string_foreground)
20059 (x_draw_composite_glyph_string_foreground): Use new hfont member.
20060 (x_draw_glyph_string): Use metrics in w32font_info.
20061
20062 2008-06-26 Kenichi Handa <handa@m17n.org>
20063
20064 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
20065
20066 2008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
20067
20068 * unexnext.c:
20069 * m/ews4800.h:
20070 * m/hp9000s300.h:
20071 * m/ibm370aix.h:
20072 * m/mips-siemens.h:
20073 * m/ncr386.h:
20074 * m/next.h:
20075 * m/pmax.h:
20076 * m/powerpcle.h:
20077 * m/tandem-s2.h:
20078 * s/386bsd.h:
20079 * s/bsd386.h:
20080 * s/bsd4-1.h:
20081 * s/bsd4-2.h:
20082 * s/bsdos2-1.h:
20083 * s/bsdos2.h:
20084 * s/bsdos3.h:
20085 * s/bsdos4.h:
20086 * s/nextstep.h:
20087 * s/ultrix4-3.h:
20088 * s/usg5-0.h:
20089 * s/usg5-2-2.h:
20090 * s/usg5-2.h:
20091 * s/usg5-4-3.h:
20092 * s/ux4800.h:
20093 * s/uxpds.h:
20094 * s/uxpv.h: Remove support for obsolete systems.
20095 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
20096 Remove, insert contents in s/hpux10-20.h.
20097 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
20098 Remove, insert contents in s/aix4-2.h.
20099 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
20100 * s/bsd4-3.h: Rename to ...
20101 * s/bsd-common.h: ... this.
20102 * data.c:
20103 * doc.c:
20104 * ecrt0.c:
20105 * emacs.c:
20106 * fileio.c:
20107 * floatfns.c:
20108 * keyboard.c:
20109 * mem-limits.h:
20110 * print.c:
20111 * process.c:
20112 * sysdep.c:
20113 * syssignal.h:
20114 * systty.h:
20115 * syswait.h:
20116 * term.c:
20117 * unexec.c:
20118 * unexelf.c:
20119 * unexhp9k800.c:
20120 * m/hp800.h:
20121 * m/ibmrs6000.h:
20122 * m/mips.h:
20123 * m/vax.h:
20124 * s/darwin.h:
20125 * s/freebsd.h:
20126 * s/gnu.h:
20127 * s/ms-w32.h:
20128 * s/msdos.h:
20129 * s/netbsd.h:
20130 * s/template.h: Remove references to obsolete variables.
20131
20132 * Makefile.in: Add dependencies for all unexec files.
20133 (admindir): Remove unused variable.
20134 (UNEXEC_SRC): Remove references.
20135
20136 2008-06-25 Chong Yidong <cyd@stupidchicken.com>
20137
20138 * xfns.c (x_default_font_parameter): If Xft is available, first
20139 try Monospace-12 for the default font.
20140
20141 2008-06-25 Jason Rumney <jasonr@gnu.org>
20142
20143 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
20144
20145 2008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
20146
20147 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
20148
20149 * buffer.c (syms_of_buffer): Remove default-word-wrap.
20150
20151 2008-06-25 Juanma Barranquero <lekktu@gmail.com>
20152
20153 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
20154 <scroll-conservatively>: Fix typo in docstring.
20155
20156 * xselect.c (Fx_send_client_event): Doc fix.
20157
20158 2008-06-25 Kenichi Handa <handa@m17n.org>
20159
20160 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
20161
20162 * font.c (font_parse_fcname): Remove unused variables.
20163 (font_sort_entites): Delete the arg SPEC. Caller changed.
20164 Fix for the case of ! best_only.
20165 (font_delete_unmatched): Check DPI and AVGWIDTH too.
20166
20167 * lisp.h (Fstring_to_unibyte): EXFUN it.
20168
20169 * character.h (str_to_unibyte): Extern it.
20170
20171 * character.c (str_to_unibyte): New function.
20172
20173 * fns.c (Fstring_to_unibyte): New function.
20174 (syms_of_fns): Defsubr it.
20175
20176 2008-06-24 Kenichi Handa <handa@m17n.org>
20177
20178 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
20179 DPI too.
20180 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
20181
20182 2008-06-24 Andreas Schwab <schwab@suse.de>
20183
20184 * Makefile.in (${lispsource}loaddefs.el): Rename from
20185 ../lisp/loaddefs.el.
20186 (bootstrap-clean): Do what distclean does but don't remove
20187 Makefile.
20188 (distclean): Depend on bootstrap-clean and remove Makefile.
20189
20190 2008-06-24 Chong Yidong <cyd@stupidchicken.com>
20191
20192 * buffer.h (struct buffer): New member word_wrap.
20193
20194 * buffer.c (syms_of_buffer): New variables default-word-wrap and
20195 word-wrap.
20196 (init_buffer_once): Initialize them.
20197
20198 * dispextern.h (struct it): Replace bool truncate_lines_p with a
20199 line_wrap enum possessing three possible values.
20200
20201 * termopts.h: Replace truncate_partial_width_windows with
20202 Vtruncate_partial_width_windows.
20203
20204 * dispnew.c (direct_output_for_insert): Avoid direct output when
20205 inserting a space with word wrap on.
20206
20207 * indent.c (compute_motion): Obey integer values of
20208 truncate-partial-width-windows.
20209
20210 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
20211 replacing truncate_partial_width_windows.
20212 (init_iterator): If Vtruncate_partial_width_windows is an integer,
20213 truncate only if the window width is below that integer.
20214 (start_display, resize_mini_window, produce_stretch_glyph)
20215 (display_string, move_it_in_display_line_to): Use line_wrap.
20216 (back_to_previous_visible_line_start, reseat_1):
20217 Reset string_from_display_prop_p.
20218 (display_line): Extend default face to end of line when wrapping.
20219
20220 2008-06-24 Kim F. Storm <storm@cua.dk>
20221
20222 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
20223 to wrap continued lines at word boundaries.
20224
20225 2008-06-24 Jason Rumney <jasonr@gnu.org>
20226
20227 * font.c (Ffont_face_attributes): Multiply pixel size before point
20228 conversion to avoid multiplying rounding error.
20229
20230 2008-06-23 Jason Rumney <jasonr@gnu.org>
20231
20232 * w32term.c (x_draw_glyph_string_background)
20233 (x_draw_glyph_string): Remove old bdf font code.
20234
20235 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
20236
20237 2008-06-22 Kenichi Handa <handa@m17n.org>
20238
20239 * font.c (font_find_for_lface): Try the adstyle specified in
20240 the property of LFACE_FONT of LFACE (if any).
20241
20242 2008-06-21 Seiji Zenitani <zenitani@mac.com>
20243 Ryo Yoshitake <ryo@shiftmode.net>
20244
20245 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
20246
20247 2008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
20248
20249 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
20250 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
20251 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
20252 (witness-emacs): Remove.
20253 (lisp, shortlisp): Move loaddefs.el earlier.
20254 (mostlyclean): Forget about witness-emacs.
20255
20256 2008-06-22 Glenn Morris <rgm@gnu.org>
20257
20258 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
20259 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
20260
20261 2008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
20262
20263 * Makefile.in (PRECOMP): Remove.
20264 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
20265 (witness-emacs): Run `compile-first'.
20266 (.el.elc): Use the new compile-onefile target.
20267
20268 2008-06-21 Kenichi Handa <handa@m17n.org>
20269
20270 * xftfont.c (xftfont_open): Handle QCembolden only when
20271 FC_EMBOLDEN is defined.
20272
20273 2008-06-21 Andreas Schwab <schwab@suse.de>
20274
20275 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
20276 (.el.elc): Likewise.
20277
20278 2008-06-21 Miles Bader <miles@gnu.org>
20279
20280 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
20281 build dir, not the lisp source dir.
20282
20283 2008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
20284
20285 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
20286 (bootstrapclean): Remove.
20287 (.el.elc): New rule.
20288 (PRECOMP): New var.
20289 (../lisp/subdirs.el): Remove.
20290 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
20291 (witness-emacs): New target.
20292 (mostlyclean): Remove witness-emacs as well.
20293 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
20294 Add witness-emacs dependency.
20295
20296 2008-06-20 Chong Yidong <cyd@stupidchicken.com>
20297
20298 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
20299 defined by the font.
20300
20301 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
20302
20303 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
20304 (bootstrap-clean): New target that keeps TAGS around.
20305 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
20306 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
20307
20308 2008-06-20 Jason Rumney <jasonr@gnu.org>
20309
20310 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
20311 Remove obsolete font code.
20312
20313 * w32font.c (font_matches_spec): Use csb bitfield from font signature
20314 to determine language support.
20315
20316 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
20317
20318 * sysdep.c (cfsetspeed): New fun extracted from the code.
20319 (cfmakeraw): Move before first use.
20320
20321 2008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
20322
20323 * sysdep.c (cfmakeraw): Provide fallback implementation.
20324 (serial_configure): Provide fallback implementation of cfsetspeed.
20325
20326 2008-06-20 Kenichi Handa <handa@m17n.org>
20327
20328 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
20329 the pattern.
20330
20331 * fontset.c (fontset_from_font): Copy font_spec before changing
20332 the elements.
20333
20334 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
20335
20336 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
20337
20338 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
20339 for explicit `font' parameters.
20340
20341 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
20342
20343 2008-06-19 Kenichi Handa <handa@m17n.org>
20344
20345 * frame.c: Include <ctype.h>.
20346 (x_set_font_backend): Allow spacing characters in the X resource
20347 for FontBackend.
20348
20349 2008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
20350
20351 * w32fns.c, xfns.c (Qfont_param): New var.
20352 (syms_of_w32fns): Initialize it.
20353 (x_default_font_parameter): Record explicit `font' into
20354 `font-parameter'.
20355
20356 2008-06-18 Kenichi Handa <handa@m17n.org>
20357
20358 * font.c (font_parse_xlfd): Fix previous change.
20359 (font_parse_fcname): Don't use :fc-unknown-spec.
20360 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
20361 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
20362 (font_add_log): Prepend the driver name to the resulting fonts.
20363
20364 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
20365 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
20366 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
20367
20368 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
20369 (QCembolden): New variables.
20370 (syms_of_xftfont): DEFSYM them.
20371 (xftfont_open): Call XftFontMatch. Don't trust the result of
20372 XftTextExtents8 if the pixel_size is less than 5.
20373
20374 2008-06-18 Andreas Schwab <schwab@suse.de>
20375
20376 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
20377 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
20378
20379 2008-06-18 Jason Rumney <jasonr@gnu.org>
20380
20381 * w32font.c (w32font_list, w32font_match): Add logging.
20382
20383 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
20384
20385 2008-06-17 Chong Yidong <cyd@stupidchicken.com>
20386
20387 * font.c (font_parse_fcname): Store divider characters for
20388 unknown-spec list. For known key symbols, intern using correct
20389 symbol name.
20390
20391 2008-06-17 Kenichi Handa <handa@m17n.org>
20392
20393 * xfaces.c (realize_default_face): If the frame is not on window
20394 system, set the fontset of face to nil.
20395
20396 2008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
20397
20398 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
20399
20400 2008-06-16 Juanma Barranquero <lekktu@gmail.com>
20401
20402 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
20403 (build_font_name_from_vector): Delete externs.
20404
20405 * xfaces.c (struct font_name): Don't declare.
20406
20407 2008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
20408
20409 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
20410
20411 2008-06-16 Chong Yidong <cyd@stupidchicken.com>
20412
20413 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
20414
20415 2008-06-16 Juanma Barranquero <lekktu@gmail.com>
20416
20417 * font.c (Ffont_spec): Fix usage in docstring.
20418 (Ffont_face_attributes): Doc fix.
20419
20420 2008-06-16 Andreas Schwab <schwab@suse.de>
20421
20422 * font.c (Ffont_face_attributes): Fix definition.
20423
20424 2008-06-16 Jason Rumney <jasonr@gnu.org>
20425
20426 * font.h (font_style_symbolic_from_value): Remove.
20427
20428 * font.c (font_style_symbolic_from_value): Remove.
20429 (font_style_symbolic): Revert to pre 2008-06-13 version.
20430
20431 * w32font.c (w32_to_fc_weight): New function.
20432 (w32font_full_name, logfont_to_fcname): Use it.
20433
20434 2008-06-16 Kenichi Handa <handa@m17n.org>
20435
20436 * font.c (font_check_object): Delete it.
20437 (font_clear_cache): Check if a font-object is alive.
20438 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
20439 font-object to nil.
20440 (font_close_object): Don't check FONT_CLOSE_OBJECT.
20441 (font_at): Don't call font_check_object.
20442 (Ffont_get): Return a symbol for :weight, :slant, and :width.
20443
20444 2008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
20445
20446 * puresize.h (BASE_PURESIZE): Increase to 1230000.
20447
20448 2008-06-16 Chong Yidong <cyd@stupidchicken.com>
20449
20450 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
20451
20452 2008-06-15 Chong Yidong <cyd@stupidchicken.com>
20453
20454 * font.c (font_parse_fcname): Only one decimal point.
20455 (font_unparse_fcname): Handle data in family and foundry indices
20456 as symbols, not strings.
20457 (font_unparse_gtkname, Ffont_face_attributes): New functions.
20458
20459 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
20460
20461 * font.h (font_unparse_gtkname): Add prototype.
20462
20463 2008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
20464
20465 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
20466
20467 2008-06-15 Andreas Schwab <schwab@suse.de>
20468
20469 * font.c (font_update_drivers): Fix crash when no drivers match.
20470
20471 2008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
20472
20473 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
20474 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
20475
20476 2008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
20477
20478 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
20479
20480 2008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
20481
20482 * process.c (Fserial_process_configure, Fprocess_send_eof):
20483 Use EQ to compare Lisp_Objects.
20484
20485 2008-06-13 Jason Rumney <jasonr@gnu.org>
20486
20487 * w32fns.c (Fw32_select_font): Remove old font API function.
20488
20489 * w32font.c (logfont_to_fcname): New function.
20490 (Fx_select_font): New font dialog function compatible with
20491 GTK/fontconfig version.
20492
20493 * font.c (font_style_symbolic_from_value): New function.
20494 (font_style_symbolic): Use it.
20495
20496 * font.h (font_style_symbolic_from_value): Declare new function.
20497
20498 2008-06-13 Juanma Barranquero <lekktu@gmail.com>
20499
20500 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
20501 <font-width-table>: Fix typos in docstrings.
20502
20503 2008-06-13 Daniel Engeler <engeler@gmail.com>
20504
20505 These changes add serial port access.
20506 * process.c: Add HAVE_SERIAL.
20507 (Fdelete_process, Fprocess_status, Fset_process_buffer)
20508 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
20509 (list_processes_1, select_wrapper, Fstop_process)
20510 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
20511 (status_notify): Modify to handle serial processes.
20512 [HAVE_SERIAL] (Fserial_process_configure)
20513 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
20514 New functions.
20515 * process.h (struct Lisp_Process): Add `type'.
20516 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
20517 New functions.
20518 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
20519 serial ports.
20520 (serial_open, serial_configure): New functions.
20521 * w32.h: Add FILE_SERIAL.
20522 (struct _child_process): Add ovl_read, ovl_write.
20523
20524 2008-06-13 Kenichi Handa <handa@m17n.org>
20525
20526 * dispextern.h (enum lface_attribute_index): New member
20527 LFACE_FOUNDRY_INDEX.
20528
20529 * font.c (font_score): Delete arg alternate_families. Check only
20530 weight, slant, width, and size. Ignore the difference of alias
20531 style symbols.
20532 (font_sort_entites): Adjust for the above change. Reflect the
20533 order of font-driver to scores.
20534 (font_list_entities): Don't check alternate_familes here.
20535 (font_clear_prop): Handle foundry.
20536 (font_update_lface): Don't parse "foundry-family" form here.
20537 Handle FONT_FOUNDRY_INDEX.
20538 (font_find_for_lface): Likewise. Handle alternate families here.
20539 If registry is nil, try iso8859-1 and ascii-0.
20540 (font_open_for_lface): Pay attention to size in ENTITY.
20541 (font_open_by_name): Simplify by calling font_load_for_lface.
20542 (free_font_driver_list): Delete it.
20543 (font_update_drivers): Preserve the order of backends.
20544 (syms_of_font): Setting of sort_shift_bits adjusted for the change
20545 of font_score and font_sort_entites.
20546 (font_update_sort_order): Likewise.
20547
20548 * xfaces.c (LFACE_FOUNDRY): New macro.
20549 (check_lface_attrs): Check foundry.
20550 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
20551 (merge_face_vectors): Check foundry.
20552 (merge_face_ref): Likewise.
20553 (Finternal_set_lisp_face_attribute): Likewise.
20554 (x_update_menu_appearance): Likewise.
20555 (Finternal_get_lisp_face_attribute): Likewise.
20556 (lface_hash): Likewise.
20557 (lface_same_font_attributes_p): Likewise.
20558 (x_supports_face_attributes_p): Likewise.
20559 (tty_supports_face_attributes_p): Likewise.
20560 (Finternal_set_alternative_font_family_alist): Intern strings.
20561 (Finternal_set_alternative_font_registry_alist): Downcase strings.
20562 (realize_default_face): Set LFACE_FOUNDRY (lface).
20563
20564 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
20565 font-driver at first.
20566
20567 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
20568
20569 2008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
20570
20571 * lread.c (Fload): Use xfree, not free on saved_doc_string.
20572
20573 2008-06-12 Jim Meyering <meyering@redhat.com>
20574
20575 Make unexec_free handle NULL the same way free does.
20576 * unexmacosx.c (unexec_free): Ignore a NULL argument.
20577
20578 2008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
20579
20580 * character.h (CHAR_TO_BYTE_SAFE): New macro.
20581 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
20582 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
20583 (WEAK_ALIAS): Simplify.
20584 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
20585 when searching a unibyte buffer.
20586
20587 2008-06-12 Chong Yidong <cyd@stupidchicken.com>
20588
20589 * xfns.c (Fx_select_font): Rename from x-font-dialog.
20590
20591 2008-06-12 Juanma Barranquero <lekktu@gmail.com>
20592
20593 * w32font.c: Include ctype.h.
20594
20595 2008-06-11 Jason Rumney <jasonr@gnu.org>
20596
20597 * w32font.c (w32font_encode_char): Detect missing glyphs that are
20598 misreported as space.
20599 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
20600 as aliases for registry iso10646-1.
20601
20602 2008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
20603
20604 * buffer.c (clone_per_buffer_values): Skip `name'.
20605
20606 2008-06-11 Chong Yidong <cyd@stupidchicken.com>
20607
20608 * font.c (font_parse_fcname): Fix last change; accept decimal
20609 points in font size.
20610
20611 2008-06-10 Jason Rumney <jasonr@gnu.org>
20612
20613 * w32uniscribe.c (add_opentype_font_name_to_list):
20614 Skip non unicode fonts.
20615
20616 2008-06-10 Chong Yidong <cyd@stupidchicken.com>
20617
20618 * xfns.c (Fx_font_dialog): New function.
20619
20620 * gtkutil.c (xg_dialog_response_cb): Rename from
20621 xg_file_response_callback.
20622 (pop_down_dialog): Rename from pop_down_file_dialog.
20623 (xg_get_file_name): Callers changed.
20624 (xg_get_font_name): New function.
20625
20626 * gtkutil.h (xg_get_font_name): Insert prototype.
20627
20628 2008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
20629
20630 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
20631 x_underline_minimum_display_offset.
20632 (syms_of_xdisp): Declare it here rather than in xterm.c.
20633 * dispextern.h (underline_minimum_offset): Declare it.
20634 * w32term.c (x_draw_glyph_string): Use it.
20635 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
20636 (syms_of_xterm): Don't declare it any more.
20637 (x_draw_glyph_string): Adjust to the new name.
20638
20639 2008-06-10 David De La Harpe Golden <david@harpegolden.net>
20640
20641 * xterm.c (x_underline_minimum_display_offset): New var.
20642 (x_draw_glyph_string): Use it.
20643 (syms_of_xterm): Declare it.
20644
20645 2008-06-10 Chong Yidong <cyd@stupidchicken.com>
20646
20647 * font.c (font_parse_fcname): Accept GTK-style font names too.
20648
20649 2008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
20650
20651 * dired.c (file_name_completion): Don't return t if the match is exact
20652 but with different capitalization.
20653 * minibuf.c (Ftry_completion): Simplify.
20654
20655 * window.c (Vwindow_point_insertion_type): New var.
20656 (set_window_buffer): Use it.
20657 (syms_of_window): Init and export it to Lisp.
20658
20659 2008-06-10 Kenichi Handa <handa@m17n.org>
20660
20661 * font.h (font_intern_prop): Prototype adjusted.
20662
20663 * font.c (font_intern_prop): New arg force_symbol.
20664 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
20665 Adjust for the change of font_intern_prop.
20666
20667 * ftfont.c (ftfont_pattern_entity):
20668 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
20669 (w32_registry):
20670 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
20671 the change of font_intern_prop.
20672
20673 2008-06-09 Juanma Barranquero <lekktu@gmail.com>
20674
20675 * w32menu.c (digest_single_submenu): Declare extern.
20676
20677 2008-06-09 Jason Rumney <jasonr@gnu.org>
20678
20679 * w32term.c (x_make_frame_visible): Use alternate restore flags.
20680
20681 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
20682 (parse_single_submenu): Remove.
20683 (digest_single_submenu): Remove.
20684 (syms_of_w32menu): Don't initialise variables that have moved
20685 to menu.c.
20686 (set_frame_menubar): Sync with version in xmenu.c.
20687 (w32_menu_show): Sync with xmenu_show in xmenu.c.
20688
20689 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
20690 Make static again.
20691
20692 2008-06-09 Jason Rumney <jasonr@gnu.org>
20693
20694 Changes to w32 files related to the move of common menu code
20695 to menu.c on 2008-06-08 by Chong Yidong.
20696
20697 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
20698 defs to w32gui.h.
20699 (single_keymap_panes, push_menu_item, push_menu_pane):
20700 Make globally visible.
20701
20702 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
20703 (local_free, malloc_widget_value, free_widget_value)
20704 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
20705 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
20706 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
20707 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
20708 (menu_items, menu_items_allocated, menu_items_used)
20709 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
20710 (init_menu_items, finish_menu_items, discard_menu_items)
20711 (grow_menu_items, push_submenu_start, push_submenu_end)
20712 (push_left_right_boundary, push_menu_pane, push_menu_item)
20713 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
20714 (free_menubar_widget_tree_value, parse_single_submenu)
20715 (update_submenu_strings): Remove functions.
20716 (xmalloc_widget_value): Remove and declare extern.
20717
20718 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
20719 (OBJ1): Build it.
20720
20721 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
20722 (local_heap, local_alloc, local_free, malloc_widget_value)
20723 (free_widget_value): Define here.
20724
20725 2008-06-09 Kenichi Handa <handa@m17n.org>
20726
20727 * font.h (Qascii_0): Extern it.
20728
20729 * font.c (Qascii_0): New variable.
20730 (syms_of_font): DEFSYM it.
20731 (font_open_by_name): If the registry "iso8859-1" fails, try also
20732 "ascii-0".
20733
20734 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
20735
20736 2008-06-08 Kenichi Handa <handa@m17n.org>
20737
20738 * .gdbinit (xfont): New command.
20739
20740 2008-06-08 Andreas Schwab <schwab@suse.de>
20741
20742 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
20743 * Makefile.in (menu.o): Update dependencies.
20744
20745 * Makefile.in (obj): Always add menu.o.
20746 * emacs.c (main): Always call syms_of_menu.
20747 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
20748
20749 2008-06-08 Chong Yidong <cyd@stupidchicken.com>
20750
20751 * Makefile.in: Compile menu.c.
20752
20753 * lisp.h: Declare syms_of_menu.
20754
20755 * emacs.c (main): Call syms_of_menu.
20756
20757 * keyboard.h: Relocate platform-independent menu definitions from
20758 xmenu.c.
20759
20760 * menu.c: New file. Relocate platform-independent menu
20761 definitions from xmenu.c. Suggested by Adrian Robert.
20762
20763 * xmenu.c: Remove platform-independent menu definitions.
20764 (menu_items, menu_items_inuse, menu_items_allocated)
20765 (menu_items_used, menu_items_n_panes)
20766 (menu_items_submenu_depth): Move to keyboard.h.
20767 (init_menu_items, finish_menu_items, unuse_menu_items)
20768 (discard_menu_items, restore_menu_items, save_menu_items)
20769 (grow_menu_items, push_submenu_start, push_submenu_end)
20770 (push_left_right_boundary, push_menu_pane, push_menu_item)
20771 (keymap_panes, single_keymap_panes, single_menu_item)
20772 (list_of_panes, list_of_items, find_and_call_menu_selection)
20773 (xmalloc_widget_value, free_menubar_widget_value_tree)
20774 (parse_single_submenu, digest_single_submenu)
20775 (update_submenu_strings): Move to menu.c.
20776
20777 2008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
20778
20779 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
20780
20781 2008-06-06 Miles Bader <miles@gnu.org>
20782
20783 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
20784 face, not frame default.
20785
20786 2008-06-05 Martin Rudalics <rudalics@gmx.at>
20787
20788 * window.c (pop_up_windows, pop_up_frames)
20789 (display_buffer_reuse_frames, Vpop_up_frame_function)
20790 (Vdisplay_buffer_function, Veven_window_heights)
20791 (Vspecial_display_buffer_names, Vspecial_display_regexps)
20792 (Vspecial_display_function, Vsame_window_buffer_names)
20793 (Vsame_window_regexps, split_height_threshold)
20794 (Vsplit_window_preferred_function): Move those vars to window.el.
20795 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
20796 (Fdisplay_buffer): Move those functions to window.el.
20797 (syms_of_window): Remove corresponding declarations.
20798 (display_buffer): New function.
20799 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
20800 * dispnew.c (Flast_nonminibuf_frame): New function.
20801 * buffer.c (Fpop_to_buffer): Move to window.el.
20802
20803 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
20804
20805 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
20806
20807 2008-06-05 Kenichi Handa <handa@m17n.org>
20808
20809 * coding.c (detect_coding): Fix previous change.
20810 (detect_coding_system): Likewise.
20811
20812 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
20813
20814 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
20815
20816 * keymap.c (Vminibuffer_local_filename_must_match_map):
20817 Rename from Vminibuffer_local_must_match_filename_map.
20818 (syms_of_keymap):
20819 * minibuf.c (Fcompleting_read): Adjust accordingly.
20820 * commands.h: Rename declaration as well.
20821
20822 2008-06-05 Kenichi Handa <handa@m17n.org>
20823
20824 * font.c (Ffont_spec): Don't use font_parse_family_registry for
20825 family name.
20826 (Ffont_put): Likewise.
20827
20828 * fontset.c (fontset_find_font): Call font_open_for_lface with the
20829 current font-spec.
20830
20831 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
20832 is unspecified.
20833
20834 * xfaces.c (realize_x_face): If the font-related face attributes
20835 are the same as those of default face, realize a new fontset from
20836 default->fontset.
20837 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
20838
20839 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
20840
20841 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
20842 (move_it_in_display_line): New wrapper.
20843
20844 * window.c (window_scroll_pixel_based_preserve_x)
20845 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
20846 (window_scroll_pixel_based, window_scroll_line_based):
20847 Use them to preserve column positions.
20848 (syms_of_window): Initialize them.
20849
20850 * indent.c (Fvertical_motion): Extend first arg to allow passing an
20851 (HPOS . VPOS) pair.
20852
20853 * dispextern.h (move_it_in_display_line): Declare.
20854
20855 2008-06-05 Juanma Barranquero <lekktu@gmail.com>
20856
20857 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
20858 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
20859 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
20860
20861 2008-06-04 Juanma Barranquero <lekktu@gmail.com>
20862
20863 * window.c (Fset_window_parameter): Doc fix.
20864 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
20865
20866 2008-06-04 Joakim Verona <joakim@verona.se>
20867
20868 * window.h (struct window): Add new member window_parameters.
20869
20870 * window.c (Fwindow_parameters, Fwindow_parameter)
20871 (Fset_window_parameter): New defuns.
20872 (syms_of_window): Defsubr the new defuns.
20873 (make_window): Initialize window_parameters to nil.
20874
20875 2008-06-04 John Paul Wallington <jpw@pobox.com>
20876
20877 * eval.c (Fdefmacro): Doc fix.
20878
20879 2008-06-04 Kenichi Handa <handa@m17n.org>
20880
20881 * coding.c (detect_coding): Fix handling of coding->head_ascii.
20882 Be sure to call setup_coding_system when we find a proper coding system.
20883 (detect_coding_system): Fix handling of coding->head_ascii.
20884
20885 2008-06-03 Andreas Schwab <schwab@suse.de>
20886
20887 * font.c (font_prop_validate_spacing): Fix last change.
20888
20889 2008-06-03 Kenichi Handa <handa@m17n.org>
20890
20891 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
20892 (font_parse_fcname): Fix handling of unknown key.
20893
20894 * xfont.c (xfont_list): Try an alias.
20895
20896 * charset.c (char_charset): Return NULL if the arg charset_list is
20897 specified and C doesn't belong to any of them.
20898
20899 2008-06-02 Chip Coldwell <coldwell@redhat.com>
20900
20901 * font.c (font_pixel_size): Don't take cdr of an integer.
20902
20903 2008-06-02 Jim Meyering <meyering@redhat.com>
20904
20905 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
20906 * alloc.c (xfree): Return right away for a NULL arg.
20907 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
20908 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
20909 * mac.c (create_apple_event_from_event_ref): Likewise.
20910 (create_apple_event_from_drag_ref, cfstring_create_normalized):
20911 Likewise.
20912 * doprnt.c (doprnt1): Likewise.
20913 * frame.c (frame): Likewise.
20914 * keyboard.c (wipe_kboard): Likewise.
20915 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
20916 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
20917 * term.c (tty_default_color_capabilities, maybe_fatal)
20918 (delete_tty): Likewise.
20919 * w16select.c (string): Likewise.
20920 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
20921 * w32bdf.c (w32_free_bdf_font): Likewise.
20922 * w32fns.c (w32_unload_font): Likewise.
20923 * w32font.c (w32font_close): Likewise.
20924 * window.c (size_window): Likewise.
20925 * xselect.c (receive_incremental_selection): Likewise.
20926 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
20927 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
20928 * w32.c (stat): Likewise.
20929
20930 Remove useless if-before-free tests.
20931 * editfns.c (Fset_time_zone_rule): Likewise.
20932 * lread.c (nosuffix): Likewise.
20933 * ralloc.c (get_bloc): Likewise.
20934 * regex.c (reg_free): Likewise.
20935 * xftfont.c (xftfont_open, xftfont_close): Likewise.
20936 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
20937 * xsmfns.c (smc_save_yourself_CB): Likewise.
20938
20939 2008-06-02 Kenichi Handa <handa@m17n.org>
20940
20941 * font.c (font_find_for_lface): Handle float font size.
20942 (font_open_for_lface): Likewise.
20943
20944 * xfaces.c (x_supports_face_attributes_p): Check face->font before
20945 comparing the properties.
20946
20947 2008-06-01 Jason Rumney <jasonr@gnu.org>
20948
20949 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
20950 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
20951 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
20952 Don't add empty script list.
20953 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
20954
20955 2008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
20956
20957 * Makefile.in (dot, dotdot): Remove, update users.
20958 ".." has been used elsewhere in the file for a long time.
20959 (LIBXT_STATIC): Remove conditional based on unused variable.
20960
20961 2008-06-01 Miles Bader <miles@gnu.org>
20962
20963 * xfaces.c (Vface_remapping_alist): New variable.
20964 (syms_of_xfaces): Initialize it.
20965 (enum named_merge_point_kind): New type.
20966 (struct named_merge_point): Add `named_merge_point_kind' field.
20967 (push_named_merge_point): Make cycle detection respect different
20968 named-merge-point kinds.
20969 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
20970 Remove face-name alias resolution.
20971 (lface_from_face_name): New definition using
20972 `lface_from_face_name_no_resolve'.
20973 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
20974 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
20975 (get_lface_attributes): New definition that layers face-remapping on
20976 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
20977 (lookup_basic_face): New function.
20978 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
20979 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
20980 `get_lface_attributes'.
20981 (face_at_buffer_position): Use `lookup_basic_face' to lookup
20982 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
20983 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
20984
20985 * xdisp.c (init_iterator): Pass base_face_id through
20986 `lookup_basic_face' when we actually use it as a face-id.
20987 (handle_single_display_prop): Use `lookup_basic_face' to lookup
20988 DEFAULT_FACE_ID.
20989
20990 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
20991 lookup the initial face-id.
20992
20993 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
20994
20995 2008-06-01 Juanma Barranquero <lekktu@gmail.com>
20996
20997 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
20998 (Fremove_text_properties): Fix typos in docstrings.
20999
21000 2008-05-31 Kenichi Handa <handa@m17n.org>
21001
21002 * font.c (font_list_entities): Fix the car part of data to be
21003 stored in the cache.
21004
21005 * ftfont.c (ftfont_font_format): Don't use strcasestr.
21006
21007 2008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
21008
21009 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
21010 Add a `test' argument so another predicate than `equal' can be used.
21011 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
21012 (map_char_table): Remove unused vars `c' and `i'.
21013 * lisp.h (Foptimize_char_table): Adjust declaration.
21014 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
21015
21016 2008-05-30 Kenichi Handa <handa@m17n.org>
21017
21018 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
21019 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
21020 defined.
21021
21022 2008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
21023
21024 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
21025 (Fmake_variable_frame_local): Disallow mixing buffer-local and
21026 frame-local settings for the same variable.
21027
21028 2008-05-30 Kenichi Handa <handa@m17n.org>
21029
21030 * fontset.c (Ffont_info): Move to font.c.
21031 (syms_of_fontset): Delete defsubr of Sfont_info.
21032
21033 * font.c (font_style_to_value, font_score): Delete casting of the
21034 args to xstcasecmp.
21035 (register_font_driver): Increment num_font_drivers only when
21036 registering the driver globally.
21037 (Ffont_info): Move from fontset.c. Handle a font object too.
21038 (syms_of_font): Defsubr Sfont_info.
21039
21040 2008-05-29 Kenichi Handa <handa@m17n.org>
21041
21042 * coding.h (enum define_coding_utf8_arg_index): New enum.
21043 (enum coding_attr_index): Change coding_attr_utf_16_bom to
21044 coding_attr_utf_bom.
21045 (enum utf_bom_type): Rename from utf_16_bom_type.
21046 (struct utf_16_spec): Adjust for the above change.
21047 (struct coding_system): Add utf_8_bom in `spec' union.
21048
21049 * coding.c (CODING_UTF_8_BOM): New macro.
21050 (enum coding_category): Delete coding_category_utf_8, add
21051 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
21052 coding_category_utf_8_sig.
21053 (CATEGORY_MASK_UTF_8): Delete it.
21054 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
21055 (CATEGORY_MASK_UTF_8_SIG): New macros.
21056 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
21057 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
21058 CATEGORY_MASK_UTF_8_SIG.
21059 (CATEGORY_MASK_UTF_8): New macro.
21060 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
21061 (detect_coding_utf_8): Check BOM.
21062 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
21063 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
21064 (encode_coding_utf_16): Likewise.
21065 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
21066 (detect_coding, detect_coding_system): Handle utf-8-auto.
21067 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
21068 (syms_of_coding): Fix setting up of Vcoding_category_table.
21069
21070 2008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
21071
21072 * process.c (Faccept_process_output): If `millisec' is non-nil,
21073 `seconds' default to 0.
21074 (wait_reading_process_output): Also return non-nil if we read output
21075 from a non-running process.
21076
21077 2008-05-29 Jason Rumney <jasonr@gnu.org>
21078
21079 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
21080 `raster' specified.
21081 (add_font_entity_to_list): Allow non-opentype truetype fonts back
21082 in the uniscribe backend, but disallow any font that has no
21083 unicode subrange support.
21084
21085 2008-05-29 Juanma Barranquero <lekktu@gmail.com>
21086
21087 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
21088 Fix typos in docstrings.
21089
21090 2008-05-29 Kenichi Handa <handa@m17n.org>
21091
21092 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
21093 (Fx_family_fonts): Set frame correctly.
21094
21095 2008-05-28 Jason Rumney <jasonr@gnu.org>
21096
21097 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
21098
21099 2008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
21100
21101 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
21102 calling build_annotations.
21103
21104 2008-05-28 Juanma Barranquero <lekktu@gmail.com>
21105
21106 * coding.c (Fdecode_coding_region, Fencode_coding_region)
21107 (Fencode_coding_string):
21108 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
21109 <latin-extra-code-table>: Fix typos in docstrings.
21110 (syms_of_coding) <coding-system-alist>: Doc fix.
21111 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
21112
21113 2008-05-28 Kenichi Handa <handa@m17n.org>
21114
21115 * fontset.c (Ffont_info): Don't call font_close_object.
21116
21117 * font.c (font_parse_family_registry): Use Ffont_put to validate
21118 foundry and family.
21119 (font_delete_unmatched): Don't check spacing.
21120 (font_list_entities): Add spacing to the spec to list fonts.
21121
21122 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
21123 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
21124
21125 * coding.c (encode_coding_raw_text): Fix previous change.
21126 (encode_coding_object): When the dst_object is a buffer and is
21127 different from src_object, move gap to PT.
21128
21129 2008-05-27 Chong Yidong <cyd@stupidchicken.com>
21130
21131 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
21132
21133 2008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
21134
21135 * coding.c (encode_coding_raw_text): Set coding->produced_char for
21136 all branches. Compute it differently.
21137
21138 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
21139
21140 2008-05-27 Juanma Barranquero <lekktu@gmail.com>
21141
21142 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
21143 into "else if () ... else ...".
21144
21145 2008-05-27 Jason Rumney <jasonr@gnu.org>
21146
21147 * w32font.c (w32font_open_internal): Determine if glyph indices
21148 are likely to work here.
21149
21150 2008-05-27 Chong Yidong <cyd@stupidchicken.com>
21151
21152 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
21153 draw overlap glyphs with appropriate highlighting.
21154
21155 2008-05-27 Kenichi Handa <handa@m17n.org>
21156
21157 * xfont.c (xfont_open): Fix calculation of font->average_width.
21158
21159 2008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
21160
21161 * casefiddle.c (casify_object): Try to guess better whether the
21162 argument is a byte or a char.
21163
21164 2008-05-26 Andreas Schwab <schwab@suse.de>
21165
21166 * xselect.c (x_reply_selection_request): Properly handle format == 32.
21167 Always send multiples of format size.
21168
21169 * xterm.c (x_set_frame_alpha): Fix type mismatch.
21170
21171 2008-05-26 Jason Rumney <jasonr@gnu.org>
21172
21173 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
21174 (compute_metrics): Don't set failure if we just cleared the cache.
21175 (w32_weight_table): Remove unused variable.
21176 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
21177 backwards compatibility.
21178
21179 2008-05-25 Kenichi Handa <handa@m17n.org>
21180
21181 * w32term.c (x_draw_glyph_string):
21182 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
21183
21184 * xfaces.c: Delete unused function prototypes.
21185 (xstrlwr, font_frame): Delete them.
21186 (clear_face_cache): Delete unused variable.
21187
21188 * xftfont.c (xftfont_open): Delete unused variable.
21189 If underline_thickness is not 1, adjust underline_position.
21190
21191 * ftxfont.c (ftxfont_open): Delete unused variable.
21192
21193 * fontset.c (face_for_char): Optimize for the case of no charset
21194 property.
21195
21196 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
21197 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
21198 (otf_open, font_otf_capability, generate_otf_features)
21199 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
21200 Comment out by surrounding "#if 0" and "#endif" for the moment.
21201 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
21202 (syms_of_font): Codes for accessing above commented out.
21203
21204 2008-05-24 Eli Zaretskii <eliz@gnu.org>
21205
21206 * w32proc.c: Include dispextern.h.
21207
21208 * w32.c: Include dispextern.h.
21209
21210 2008-05-23 Juanma Barranquero <lekktu@gmail.com>
21211
21212 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
21213 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
21214 Fix typos in docstrings.
21215
21216 2008-05-23 Jason Rumney <jasonr@gnu.org>
21217
21218 * xsmfns.c: Remove includes that are already included by config.h.
21219
21220 2008-05-23 Kenichi Handa <handa@m17n.org>
21221
21222 * charset.c (Qemacs, charset_emacs): New variables.
21223 (char_charset): Fix for non-Unicode characters.
21224 (syms_of_charset): Define charset_emacs.
21225
21226 * w32term.c (x_draw_glyph_string): Be sure to update
21227 s->underline_thickness and s->underline_position. Be sure to draw
21228 underline within the current line area.
21229
21230 * xterm.c (x_draw_glyph_string): Be sure to update
21231 s->underline_thickness and s->underline_position. Be sure to draw
21232 underline within the current line area.
21233
21234 * fontset.c: Delete unused variables and add casting for char *
21235 throughout the file.
21236 (fontset_font): Try the fallback fonts of the current fontset
21237 before consulting the default fontset.
21238
21239 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
21240
21241 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
21242
21243 2008-05-22 Jason Rumney <jasonr@gnu.org>
21244
21245 * font.c: Don't include strings.h.
21246
21247 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
21248
21249 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
21250 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
21251 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
21252 to call xstrcasecmp.
21253
21254 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
21255
21256 * fontset.c (fs_query_fontset): Use xstrcasecmp.
21257
21258 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
21259
21260 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
21261
21262 2008-05-22 Kenichi Handa <handa@m17n.org>
21263
21264 * puresize.h (BASE_PURESIZE): Increase to 1220000.
21265
21266 * font.c (font_prop_validate_style): Adjust for the format
21267 change of font_style_table.
21268
21269 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
21270 two args.
21271
21272 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
21273 two args.
21274
21275 2008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
21276
21277 * minibuf.c (keys_of_minibuf): Delete.
21278 * lisp.h (keys_of_minibuf): Delete.
21279 * emacs.c (main): Don't call keys_of_minibuf.
21280
21281 2008-05-22 Kenichi Handa <handa@m17n.org>
21282
21283 * ftfont.c (ftfont_resolve_generic_family): Rename from
21284 ftfont_list_generic_family. Return a single family for each
21285 generic family.
21286 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
21287 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
21288 Call font_add_log.
21289 (ftfont_match): Call font_add_log.
21290
21291 * font.h (Ffont_xlfd_name): EXFUN adjusted.
21292 (FONT_DEBUG): Define it.
21293 (font_add_log): Extern it.
21294 (font_assert): Rename from xassert.
21295
21296 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
21297 (xfont_list_family): Call font_add_log.
21298 (xfont_match): Likewise.
21299 (memq_no_quit): Delete.
21300
21301 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
21302 call of Ffont_xlfd_name.
21303
21304 * xfaces.c (struct table_entry, slant_table, weight_table)
21305 (swidth_table): Move to font.c.
21306
21307 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
21308 xassert are changed to font_assert. Delete many unused variables.
21309 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
21310 New variables.
21311 (struct table_entry): Move from xfaces.c and modified.
21312 (weight_table, slant_table, width_table): Move from xfaces.c and
21313 contents adjusted for the change of struct table_entry.
21314 (font_style_to_value, font_style_symbolic): Adjust for the
21315 format change of font_style_table.
21316 (font_parse_family_registry): Don't overwrite existing foundry and
21317 family of font_spec.
21318 (font_score): Fix calculation of diff for sizes.
21319 (font_sort_entites): Call font_add_log.
21320 (font_delete_unmatched): Return a newly created list.
21321 (font_list_entities): Fix previous change. Call font_add_log.
21322 (font_matching_entity, font_open_entity, font_close_entity):
21323 Call font_add_log.
21324 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
21325 (Finternal_set_font_style_table): Delete.
21326 (BUILD_STYLE_TABLE): New macro.
21327 (build_style_table): New function.
21328 (Vfont_log, font_log_env_checked): New variables.
21329 (font_add_log): New function.
21330 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
21331 Declare Lisp variables "font-weight-table", "font-slant-table",
21332 "font-width-table", and "font-log". Initialize font_style_table.
21333
21334 2008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
21335
21336 * xterm.c (x_set_frame_alpha): Move declarations before statements.
21337
21338 2008-05-21 Seiji Zenitani <zenitani@mac.com>
21339 Ryo Yoshitake <ryo@shiftmode.net>
21340
21341 * frame.c (Qalpha): Add a new frame parameter `alpha'.
21342 (Vframe_alpha_lower_limit): New variable.
21343 (x_set_alpha): New function.
21344
21345 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
21346
21347 * xfns.c (x-create-frame, Qalpha):
21348 Initialize the frame parameter `alpha'.
21349 * xterm.c (OPAQUE, OPACITY): New.
21350 (x_set_frame_alpha): New function.
21351 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
21352
21353 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
21354 * w32fns.c (w32_frame_parm_handlers): Likewise.
21355
21356 2008-05-20 Jason Rumney <jasonr@gnu.org>
21357
21358 * w32font.c (add_font_entity_to_list): Don't add non-opentype
21359 truetype fonts to opentype list.
21360
21361 2008-05-20 Juanma Barranquero <lekktu@gmail.com>
21362
21363 * fontset.c (Ffontset_info): Doc fix.
21364 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
21365 <ignore-relative-composition>: Fix typos in docstrings.
21366
21367 * font.c (syms-of-font) <font-encoding-alist>:
21368 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
21369 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
21370 (Ffont_otf_alternates): Doc fixes.
21371
21372 2008-05-20 Kenichi Handa <handa@m17n.org>
21373
21374 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
21375 font.h through out the file.
21376 (FONT_DRIVERS): Rename from FONTOBJ.
21377 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
21378 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
21379
21380 * emacs.c (main): Call syms_of_font unconditionally.
21381
21382 * font.h (find_font_encoding): Extern it.
21383
21384 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
21385 fontset.c.
21386 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
21387 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
21388 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
21389 only when HAVE_WINDOW_SYSTEM is defined.
21390 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
21391 when HAVE_WINDOW_SYSTEM is defined.
21392
21393 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
21394 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
21395
21396 * xfaces.c: Include font.h unconditionally.
21397 (merge_face_ref, merge_face_vectors)
21398 (Finternal_set_lisp_face_attribute): Cancel the previous change.
21399
21400 2008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
21401
21402 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
21403 indirect_variable.
21404 * eval.c (lisp_indirect_variable): New fun.
21405 (Fuser_variable_p): Use it.
21406
21407 2008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
21408
21409 * lisp.h (indirect_variable):
21410 * data.c (indirect_variable, let_shadows_buffer_binding_p):
21411 Use Lisp_Symbol pointers rather than Lisp_Object.
21412 Adjust callers.
21413 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
21414 To this end, change calling-convention.
21415
21416 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
21417 if some non-hidden buffers are selected by string&pred.
21418
21419 2008-05-19 Chong Yidong <cyd@stupidchicken.com>
21420
21421 * process.c (wait_reading_process_output): Always check status
21422 when in batch mode.
21423
21424 2008-05-19 Kenichi Handa <handa@m17n.org>
21425
21426 * font.c (font_list_entities): Fix handling of cache.
21427 (font_matching_entity): Likewise.
21428
21429 * ftfont.c (cs_iso8859_1): Delete.
21430 (ft_face_cache): New variable.
21431 (struct ftfont_info): New member fc_charset_idx.
21432 (ftfont_build_basic_charsets): Delete.
21433 (fc_charset_table): New variable.
21434 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
21435 . FC_CHARSET_IDX) as :font-entity property in the font entity.
21436 Callers changed.
21437 (ftfont_lookup_cache, ftfont_get_charset): New functions.
21438 (ftfont_spec_pattern): New argument fc_charset_idx.
21439 Check registry more rigidly. Change callers.
21440 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
21441 change of :font-entity property of the font.
21442
21443 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
21444 property of the font.
21445
21446 2008-05-18 Juanma Barranquero <lekktu@gmail.com>
21447
21448 * coding.c (Fcoding_system_p): Rename argument to match docstring.
21449 (Funencodable_char_position, Fcheck_coding_systems_region)
21450 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
21451 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
21452 (Ffind_operation_coding_system, Fset_coding_system_priority)
21453 (Fcoding_system_eol_type): Doc fixes.
21454
21455 2008-05-17 Glenn Morris <rgm@gnu.org>
21456
21457 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
21458
21459 2008-05-16 Eli Zaretskii <eliz@gnu.org>
21460
21461 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
21462 and st_gid.
21463
21464 * frame.c (Fdelete_frame): Don't call font_update_drivers if
21465 HAVE_WINDOW_SYSTEM is not defined.
21466
21467 * xfaces.c (merge_face_ref, merge_face_vectors)
21468 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
21469 HAVE_WINDOW_SYSTEM is defined.
21470 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
21471
21472 2008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
21473
21474 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
21475
21476 2008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21477
21478 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
21479
21480 2008-05-15 Kenichi Handa <handa@m17n.org>
21481
21482 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
21483 preference.
21484
21485 2008-05-15 Glenn Morris <rgm@gnu.org>
21486
21487 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
21488
21489 2008-05-15 Chong Yidong <cyd@stupidchicken.com>
21490
21491 * fns.c (init_fns): Don't initialize weak_hash_tables here.
21492 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
21493
21494 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
21495
21496 2008-05-15 Kenichi Handa <handa@m17n.org>
21497
21498 * ftfont.c (ftfont_list): Downcase family name to check generic
21499 families.
21500
21501 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
21502 font-spec for QCfont value.
21503
21504 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
21505 buffer. Check the return value of it.
21506
21507 2008-05-14 Jason Rumney <jasonr@gnu.org>
21508
21509 * w32term.c (w32_get_glyph_overhangs): Remove.
21510 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
21511
21512 2008-05-14 Kenichi Handa <handa@m17n.org>
21513
21514 * font.c (font_prop_validate): Make nil a valid value.
21515 (font_clear_cache): Check if the cached vector of entities is nil
21516 or not.
21517
21518 2008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21519
21520 * emacs.c (main_thread): Conditionalize on
21521 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
21522 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
21523
21524 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
21525 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
21526 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
21527
21528 2008-05-14 Kenichi Handa <handa@m17n.org>
21529
21530 * coding.c (detect_coding_iso_2022): Ignore a coding category that
21531 has no corresponding coding system.
21532
21533 2008-05-14 Jason Rumney <jasonr@gnu.org>
21534
21535 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
21536
21537 * w32font.h (w32font_open_internal): Update declaration.
21538
21539 * w32font.c (w32font_open_internal): Change last argument from
21540 w32font_info struct to font object. Fill in font object from
21541 font_entity. Get Outline metrics if possible. Use them to
21542 calculate underline position and thickness. Use xlfd name as name
21543 property. Don't set codepage.
21544 (w32font_open): Pass font_object to w32font_open_internal. Don't
21545 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
21546 (w32font_draw): Use s->font.
21547 (clear_cached_metrics): Don't clear non-existent blocks.
21548
21549 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
21550 font was not found.
21551 (x_draw_glyph_string): Use underline position and thickness from font.
21552
21553 * w32uniscribe.c (uniscribe_open): Pass font_object to
21554 w32font_open_internal.
21555
21556 2008-05-14 Kenichi Handa <handa@m17n.org>
21557
21558 These changes are to delete all legacy font-handling codes, and
21559 make Emacs use only font-backends.
21560
21561 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
21562 (frame.o, image.o, print.o): Depend on $(FONTSRC).
21563
21564 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
21565
21566 * charset.h (Vcharset_non_preferred_head)
21567 (Vcurrent_iso639_language): Extern them.
21568
21569 * charset.c (Vcharset_non_preferred_head): New variable.
21570 (Vcurrent_iso639_language): New variable.
21571 (syms_of_charset): Declare it as a Lisp variable.
21572 (char_charset): Don't check non preferred charsets. As a last
21573 resort, return charset_unicode.
21574 (Fset_charset_priority): Update Vcharset_non_preferred_head.
21575
21576 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
21577 conditionals. Don't check enable_font_backend. Delete all codes
21578 used only when USE_FONT_BACKEND is not defined.
21579
21580 * dispextern.h (struct glyph_string): Change type of `font' to
21581 `struct font *'.
21582 (struct glyph_string): New member underline_position and
21583 underline_thickness.
21584 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
21585 (struct face): Change type of `font' to `struct font *'.
21586 Remove members `font_name', `font_info_id'.
21587 (per_char_metric, encode_char): Delete externs.
21588 (calc_pixel_width_or_height): Adjust the prototype.
21589
21590 * emacs.c (enable_font_backend): Delete extern.
21591 (main): Don't set enable_font_backend. Don't check the command
21592 line argument "-disable-font-backend".
21593
21594 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
21595 (enum font_property_index): New members FONT_DPI_INDEX,
21596 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
21597 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
21598 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
21599 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
21600 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
21601 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
21602 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
21603 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
21604 (struct font_spec, struct font_entity): New structs.
21605 (FONT_ENCODING_NOT_DECIDED): Move from fontset.h.
21606 (struct font): Many members from old "struct font_info" moved to
21607 here. Members font and entity deleted.
21608 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
21609 the new font-related objects.
21610 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
21611 (CHECK_FONT_GET_OBJECT): Likewise.
21612 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
21613 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Move from font.h.
21614 (struct font_driver): New members case_sensitive anc check.
21615 Type of the member list and open changed.
21616 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
21617 (font_symbolic_width, font_find_object, font_get_spec)
21618 (font_set_lface_from_name): Delete extern.
21619 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
21620
21621 * font.c: Include <strings.h>.
21622 (enable_font_backend): Delete it.
21623 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
21624 (CHECK_VALIDATE_FONT_SPEC): Delete it.
21625 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Move to font.h.
21626 (null_string): Delete it.
21627 (null_vector): Make it static.
21628 (font_family_alist): Delete it.
21629 (Qnormal): Extern it.
21630 (QCextra, QClanguage): Delete it.
21631 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
21632 (font_make_spec, font_make_entity, font_make_object)
21633 (font_intern_prop): Rename from intern_downcase. Don't downcase
21634 the string. Callers changed.
21635 (font_pixel_size): Adjust for the format change of font-related
21636 objects.
21637 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
21638 (font_style_to_value, font_style_symbolic): New function.
21639 (build_font_family_alist): Delete it.
21640 (font_registry_charsets): Use Fassoc_string instead of
21641 assq_no_quit.
21642 (font_prop_validate_symbol): Don't return null_string.
21643 (font_prop_validate_style): Adjust for the change of
21644 style-related values in a font vector.
21645 (font_property_table): Delete entries for QClanguage and
21646 QCantialias, add entries for QCavgwidth.
21647 (get_font_prop_index): Delete the 2nd argument FROM.
21648 (font_prop_validate): Arguments changed.
21649 (font_put_extra): Adjust for the change of font-related objects.
21650 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
21651 (font_parse_fcname, font_unparse_fcname)
21652 (font_prepare_composition): Likewise.
21653 (font_parse_family_registry): Rename from font_merge_old_spec.
21654 (otf_open): Delete the 1st arg entity.
21655 (font_otf_capability): Adjust for the above change.
21656 (font_score): New arg alternate_families. Adjusted for the change
21657 of font-related objects.
21658 (font_sort_entites): New arg best_only.
21659 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
21660 Delete them.
21661 (font_match_p): Check alternate families.
21662 (font_find_object): Delete it.
21663 (font_check_object): New function.
21664 (font_clear_cache): Adjust for the change of font-related objects.
21665 (font_delete_unmatched): New arg.
21666 (font_list_entities): Call font_driver->list with a spec that
21667 doesn't specify style-related properties.
21668 (font_matching_entity): Arguments changed. Caller changed.
21669 (font_open_entity): Adjust for the change of font-related objects.
21670 (font_close_object, font_has_char, font_encode_char)
21671 (font_get_name, font_get_spec): Likewise.
21672 (font_spec_from_name, font_clear_prop, font_update_lface):
21673 New functions.
21674 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
21675 (font_prepare_for_face, font_done_for_face, font_open_by_name)
21676 (font_at): Adjust for the change of font-related objects.
21677 (font_range): New function.
21678 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
21679 (Ffont_xlfd_name): Adjust for the change of font-related objects.
21680 (Fcopy_font_spec, Fmerge_font_spec): New function.
21681 (Ffont_family_list): Rename from list-families.
21682 (Finternal_set_font_style_table): Arguments changed.
21683 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
21684 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjust for the
21685 change of font-related objects.
21686 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
21687
21688 * fontset.h (struct font_info): Delete it. Most members go to
21689 struct font.
21690 (FONT_ENCODING_NOT_DECIDED): Move to font.h.
21691 (enum FONT_SPEC_INDEX): Delete it.
21692 (font_info, list_fonts_func, load_font_func, query_font_func)
21693 (set_frame_fontset_func, find_ccl_program_func)
21694 (get_font_repertory_func, new_fontset_from_font_name):
21695 Delete externs.
21696 (fontset_from_font_name): Extern it.
21697 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
21698 (FONT_INFO_FROM_FACE): Delete.
21699 (face_for_font): Adjust prototype.
21700
21701 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
21702 conditionals. Don't check enable_font_backend. Delete all codes
21703 used only when USE_FONT_BACKEND is not defined.
21704 (get_font_info_func, list_font_func, load_font_func)
21705 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
21706 (get_font_repertory_func): Delete them.
21707 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
21708 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
21709 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
21710 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
21711 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
21712 (fontset_compare_rfontdef): New function.
21713 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
21714 rfont-defs by qsort. Adjusted for the change of font-group vector.
21715 (load_font_get_repertory): Delete.
21716 (fontset_find_font): Use new macros to ref/set elements of
21717 font-def and rfont-def.
21718 (fontset_font): Fix the timing of remembering that no font for C.
21719 (free_face_fontset): Do nothing if the face has no fontset.
21720 (face_suitable_for_char_p): Use new macros to ref/set elements of
21721 rfont-def.
21722 (face_for_char): Likewise. Call face_for_char with font_object.
21723 (fs_load_font): Delete. Delete #pragma surrounding it.
21724 (fs_query_fontset): Use strcasecmp instead of strcmp.
21725 (generate_ascii_font_name): Adjust for the format change of
21726 font-spec.
21727 (Fset_fontset_font): Likewise. Use new macros to set elements of
21728 font-def.
21729 (Fnew_fontset): Use font_unparse_xlfd to generate
21730 FONTSET_ASCII (fontset).
21731 (new_fontset_from_font_name): Delete.
21732 (fontset_from_font): Rename from new_fontset_from_font. Check if
21733 a fontset is already created for the font. FIx updating of
21734 Vfontset_alias_alist.
21735 (fontset_ascii_font): Delete.
21736 (Ffont_info): Adjust for the format change of font-spec.
21737 (Finternal_char_font): Likewise.
21738 (Ffontset_info): Likewise.
21739 (syms_of_fontset): Don't check load_font_func.
21740
21741 * fns.c (internal_equal): Handle PREV_FONT.
21742
21743 * frame.h: Delete USE_FONT_BACKEND conditional.
21744
21745 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
21746 conditionals. Don't check enable_font_backend. Delete all codes
21747 used only when USE_FONT_BACKEND is not defined.
21748 (x_set_font): Call x_new_font, not x_new_fontset2.
21749 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
21750 already set for the frame.
21751
21752 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed.
21753 Make a font-entity by font_make_entity. Use font_intern_prop instead
21754 of intern_downcase. Use FONT_SET_STYLE to set a style-related
21755 font property. If a font is scalable, set avgwidth property to 0.
21756 Set font-entity property by font_put_extra.
21757 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
21758 (ffont_driver): Adjust for the change of struct font_driver.
21759 (ftfont_spec_pattern): New function.
21760 (ftfont_list): Return a list, not vector.
21761 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
21762 (ftfont_list_family): Don't downcase names.
21763 (ftfont_free_entity): Delete.
21764 (ftfont_open): Return a font-object. Adjusted for the change of
21765 struct font. Get underline_thickness and underline_position from
21766 font property. Don't update dpyinfo->smallest_font_height and
21767 dpyinfo->smallest_char_width.
21768 (ftfont_close): Don't free `struct font'.
21769 (ftfont_has_char): Adjust for the format change of font-entity.
21770 (ftfont_encode_char, ftfont_text_extents): Likewise.
21771
21772 * ftxfont.c (ftxfont_list): Return a list, not vector.
21773 (ftxfont_open): Return a font-object. Adjusted for the change of
21774 struct font. Get underline_thickness and underline_position from
21775 font property. Don't update dpyinfo->smallest_font_height and
21776 dpyinfo->smallest_char_width.
21777 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
21778 (ftxfont_draw): Adjust for the change of struct font.
21779
21780 * image.c (image_ascent): Don't include "charset.h".
21781 Include "character.h" and "font.h".
21782
21783 * lisp.h (enum pvec_type): New member PREV_FONT.
21784 (Fassoc_string): EXFUN it.
21785
21786 * print.c: Include font.h.
21787 (print_object): Handle font-related objects.
21788
21789 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
21790 conditionals. Don't check enable_font_backend. Delete all codes
21791 used only when USE_FONT_BACKEND is not defined.
21792 (handle_auto_composed_prop): Do nothing if it->f is not on a
21793 window system. Check how many following characters can be
21794 displayed by the same font.
21795 (calc_pixel_width_or_height): Type of the 4th arg is changed to
21796 'struct font *'.
21797 (get_char_face_and_encoding): Assign the whole encoding task to
21798 the `encode-char' method of a font driver.
21799 (fill_composite_glyph_string): Adjust for the change of `struct
21800 face' and `struct glyph_string'.
21801 (fill_glyph_string): Likewise.
21802 (get_per_char_metric): Arguments changed.
21803 (x_get_glyph_overhangs): Adjust for the change of `struct face'
21804 and `struct glyph_string'.
21805 (produce_stretch_glyph, calc_line_height_property)
21806 (x_produce_glyphs): Likewise.
21807
21808 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
21809 conditionals. Don't check enable_font_backend. Delete all codes
21810 used only when USE_FONT_BACKEND is not defined.
21811 Use FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
21812 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
21813 (Qp): Extern them.
21814 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
21815 Delete.
21816 (struct font_name): Delete.
21817 (xlfd_numeric_value, xlfd_symbolic_value): Delete.
21818 (compare_fonts_by_sort_order): New function.
21819 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
21820 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
21821 Delete.
21822 (Fx_family_fonts): Use font_list_entities, and sort fonts by
21823 compare_fonts_by_sort_order.
21824 (Fx_font_family_list): Call Ffont_family_list.
21825 (face_numeric_value, face_numeric_weight, face_numeric_slant)
21826 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
21827 (face_symbolic_slant, face_symbolic_swidth)
21828 (split_font_name_into_vector, build_font_name_from_vector)
21829 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
21830 (font_rescale_ratio, split_font_name, build_font_name)
21831 (free_font_names, sort_fonts, x_face_list_fonts)
21832 (face_font_available_p, sorted_font_list, cmp_font_names)
21833 (font_list_1, concat_font_list, font_list, remove_duplicates):
21834 Delete.
21835 (Fx_list_fonts): Use Ffont_list.
21836 (LFACE_AVGWIDTH): Delete.
21837 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
21838 by FONTP.
21839 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
21840 (set_lface_from_font_name): Delete it.
21841 (set_lface_from_font): Rename from
21842 set_lface_from_font_and_fontset. Caller changed. Don't set
21843 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
21844 for face.
21845 (merge_face_vectors): Copy font-spec if necessary.
21846 Clear properties of the font-spec if necessary.
21847 (merge_face_ref): Clear properties of the font-spec if necessary.
21848 (Finternal_set_lisp_face_attribute): Likewise.
21849 (set_font_frame_param): Use font_load_for_lface to load a
21850 font-object, and call Fmodify_frame_parameters with it.
21851 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
21852 font name by Ffont_xlfd_name.
21853 (Finternal_lisp_face_attribute_values): Don't check QCweight,
21854 QCslant, and QCwidth.
21855 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
21856 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
21857 Compare fonts by EQ.
21858 (lookup_non_ascii_face): Delete.
21859 (face_for_font): The 2nd argument changed.
21860 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
21861 Check atomic font properties by case insensitive.
21862 (realize_non_ascii_face): Set face->overstrike correctly.
21863 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
21864 (dump_realized_face): Get font name from
21865 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
21866
21867 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
21868 conditionals. Don't check enable_font_backend. Delete all codes
21869 used only when USE_FONT_BACKEND is not defined.
21870 (xic_create_xfontset): Original code deleted and renamed from
21871 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
21872 (x_make_gc): Don't set GCFont in GCs.
21873 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
21874 opened by "fixed".
21875 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
21876 find_ccl_program_func, query_font_func, set_frame_fontset_func,
21877 get_font_repertory_func.
21878
21879 * xfont.c: Include <stdlib.h> and "ccl.h".
21880 (struct xfont_info): New structure.
21881 (xfont_query_font): Delete.
21882 (xfont_find_ccl_program): Rename from x_find_ccl_program and
21883 moved from xterm.c.
21884 (xfont_driver): Adjust for the change of struct font_driver.
21885 (compare_font_names): New function.
21886 (xfont_list_pattern): Sort font names case insensitively.
21887 Make font_entity by calling font_make_entity. Avoid auto-scaled fonts.
21888 (xfont_list): Return a list, not vector.
21889 (xfont_match): If the font doesn't have QCname property, generate
21890 a name from the other font properties.
21891 (xfont_open): Return a font-object. Adjusted for the change of
21892 struct font. Get underline_thickness and underline_position from
21893 font property. Don't update dpyinfo->smallest_font_height and
21894 dpyinfo->smallest_char_width.
21895 (xfont_close): Don't free struct font.
21896 (xfont_prepare_face): Adjust for the change of struct font.
21897 (xfont_done_face): Delete.
21898 (xfont_has_char): Adjust for the change of struct font.
21899 (xfont_encode_char, xfont_draw): Likewise.
21900 (xfont_check): New function.
21901
21902 * xftfont.c (xftfont_list): Adjust for the change of `list'
21903 callback function.
21904 (xftfont_match): Adjust for the format change of font-entity.
21905 (xftfont_open): Adjust for the format change of font-entity and
21906 font-object. Adjusted for the change of struct font. Return a
21907 font-object. Don't update dpyinfo->smallest_font_height and
21908 dpyinfo->smallest_char_width.
21909 (xftfont_close): Block input while calling XftFontClose.
21910 (xftfont_prepare_face): Don't block input while calling
21911 xftfont_get_colors. Adjusted for the change of struct font.
21912 (xftfont_shape): Return value of error case fixed.
21913
21914 * xrdb.c (x_load_resources): Don't setup a fontset resource.
21915
21916 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
21917 conditionals.
21918 (FONT_WIDTH): Return (f)->max_width.
21919 (struct x_display_info): Delete member `font'.
21920 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
21921 (x_find_ccl_program, x_get_font_repertory): Delete externs.
21922 (struct x_output): Change type of `font' to `struct font *'.
21923
21924 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
21925 conditionals. Don't check enable_font_backend. Delete all codes
21926 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
21927 (x_per_char_metric, x_encode_char): Delete.
21928 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
21929 (x_compute_glyph_string_overhangs): Adjust for the change of
21930 `struct face'.
21931 (x_draw_glyph_string_foreground)
21932 (x_draw_composite_glyph_string_foreground): Likewise.
21933 (x_draw_glyph_string): Likewise. Use font->underline_position and
21934 font->underline_thickness.
21935 (x_new_font): Rename from x_new_fontset2.
21936 (x_new_fontset, x_get_font_info, x_list_fonts): Delete.
21937 (x_check_font): Call `check' method of a font driver.
21938 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
21939 (x_query_font, x_get_font_repertory): Delete.
21940 (x_find_ccl_program): Rename and moved to xfont.c.
21941 (x_redisplay_interface): Adjust for the change of `struct
21942 redisplay_interface'.
21943
21944 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
21945 conditionals. Don't check enable_font_backend. Delete all codes
21946 used only when USE_FONT_BACKEND is not defined. Surround non-used
21947 code by "#ifdef OLD_FONT" and "endif".
21948 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
21949
21950 * w32font.h (struct w32font_info): New member.
21951 (FONT_COMPAT): New macro.
21952 (w32font_open_internal): Prototype adjusted.
21953
21954 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
21955 OLD_FONT" and "endif".
21956
21957 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
21958 conditionals. Don't check enable_font_backend. Delete all codes
21959 used only when USE_FONT_BACKEND is not defined.
21960 (w32font_open): Return a font-object. Make a font-object by
21961 font_make_object. Adjusted for the change of struct w32font_info.
21962 (w32font_close): Don't free struct font. Adjusted for the change
21963 of struct w32font_info.
21964 (w32font_encode_char, w32font_text_extents, w32font_draw):
21965 Adjust for the change of struct w32font_info.
21966 (w32font_draw): Likewise.
21967 (w32font_list_internal): Return a list, not vector.
21968 (w32font_open_internal): Change the 4th arg to font-object.
21969 Adjusted for the change of struct w32font_info and font-object format.
21970 (add_font_name_to_list): Don't downcase names.
21971 (w32_enumfont_pattern_entity): Make a font-entity by
21972 font_make_entity. Adjusted for the format change of font-entity.
21973 Use FONT_SET_STYLE to set a style-related font property. If a
21974 font is scalable, set avgwidth property to 0. Set font-entity
21975 property by font_put_extra.
21976 (font_matches_spec): Adjust for the format change of font-entity.
21977 (w32_weight_table, w32_decode_weight): New variables.
21978 (w32_encode_weight): New function.
21979 (fill_in_logfont): Adjust for the format change of font-spec.
21980 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
21981 weight value.
21982 (w32font_driver): Adjust for the change of struct font_driver.
21983
21984 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
21985 conditionals. Don't check enable_font_backend. Surround non-used
21986 code by "#ifdef OLD_FONT" and "endif".
21987 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
21988 (FONT_AVG_WIDTH): Adjust for the change of struct font.
21989
21990 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
21991 conditionals. Don't check enable_font_backend. Delete all codes
21992 used only when USE_FONT_BACKEND is not defined. Surround non-used
21993 code by "#ifdef OLD_FONT" and "endif".
21994
21995 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
21996 (uniscribe_open): Return value changed to font-object.
21997 Adjusted for the format change of font-object.
21998 (uniscribe_otf_capability): Adjust for the change of struct font.
21999 (add_opentype_font_name_to_list): Don't downcase names.
22000 (uniscribe_font_driver): Adjust for the change of struct
22001 font_driver.
22002
22003 2008-05-13 Chong Yidong <cyd@stupidchicken.com>
22004
22005 * dispnew.c (update_frame_1): Check if tty output is still valid
22006 before flushing it.
22007
22008 2008-05-13 Jan Djärv <jan.h.d@swipnet.se>
22009
22010 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
22011 to Gtk+ menus.
22012
22013 2008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
22014
22015 * dired.c (file_name_completion): Tweak the code so as to always do it
22016 in a single pass. Tighten the scope of some variables.
22017
22018 * dired.c (Qdefault_directory): New var.
22019 (file_name_completion): Use it instead of Fexpand_file_name.
22020 (syms_of_dired): Initialize it.
22021
22022 2008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
22023
22024 * fileio.c (double_dollars): Remove dead code.
22025
22026 2008-05-10 Eli Zaretskii <eliz@gnu.org>
22027
22028 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
22029 Mention w32-get-true-file-attributes in doc string.
22030
22031 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
22032
22033 2008-05-09 Glenn Morris <rgm@gnu.org>
22034
22035 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
22036 2008-04-23.
22037
22038 2008-05-09 Eli Zaretskii <eliz@gnu.org>
22039
22040 Support for reporting owner and group of each file on MS-Windows:
22041 * dired.c (stat_uname, stat_gname): New functions, with special
22042 implementation for w32.
22043 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
22044
22045 * w32.c: Rename the_passwd_* to dflt_passwd_*.
22046 (dflt_group_name): New static variable.
22047 (dflt_group): Rename from the_group.
22048 (init_user_info): Init dflt_group fields. Get user's group name
22049 from LookupAccountSid.
22050 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
22051 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
22052 New initialization states.
22053 (globals_of_w32): Initialize them to zero. Initialize the default
22054 group name to "None".
22055 (GetFileSecurity_Name): New global var, the name of the function
22056 to call for GetFileSecurity.
22057 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
22058 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
22059 (get_file_security, get_security_descriptor_owner)
22060 (get_security_descriptor_group, is_valid_sid)
22061 (get_file_security_desc, get_rid, get_name_and_id)
22062 (get_file_owner_and_group): New functions.
22063 (stat): Use get_file_security_desc and get_file_owner_and_group to
22064 report the owner and primary group of each file. Don't ignore the
22065 high 32 bits of file's size, now that st_size is 64-bit wide.
22066 Fix test when to get true file attributes.
22067 (init_user_info): Use get_rid instead of equivalent inline code.
22068 (fstat): Don't ignore the high 32 bits of file's size.
22069
22070 2008-05-09 Chong Yidong <cyd@stupidchicken.com>
22071
22072 * image.c (png_load): Use correct bit-depth for setting background
22073 color.
22074
22075 2008-05-08 Eli Zaretskii <eliz@gnu.org>
22076
22077 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
22078 epa-hook.elc.
22079
22080 2008-05-08 Juanma Barranquero <lekktu@gmail.com>
22081
22082 * font.c (Ffont_match_p): Don't use `iff' in docstring.
22083
22084 2008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
22085
22086 * macfns.c (Fx_create_frame): Make a copy of frame parameters
22087 because the original parameters are in pure storage now.
22088 (mac_window): Remove unused params. Update callers.
22089
22090 2008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
22091
22092 * lread.c (substitute_object_recurse): Use lower-level primitives.
22093 Don't signal errors when traversing sub-char-tables.
22094 Don't loop over all the possible characters when traversing char-tables.
22095
22096 * print.c (print_preprocess): Add sub-char-tables to the print-table,
22097 just like we do in print.c.
22098
22099 2008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
22100
22101 * minibuf.c (Ftry_completion): Remove code left over from when we used
22102 scmp instead of Fcompare_strings.
22103
22104 2008-05-04 Juanma Barranquero <lekktu@gmail.com>
22105
22106 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
22107
22108 2008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22109
22110 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
22111 Create bitmap context in native byte order.
22112
22113 * macterm.c (XDrawLine)
22114 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
22115 context in native byte order.
22116
22117 2008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22118
22119 * config.in: Regenerate.
22120
22121 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
22122 New definitions for Image I/O support.
22123 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
22124 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
22125 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
22126 (mac_data_provider_release_data, image_load_image_io)
22127 [USE_MAC_IMAGE_IO]: New functions.
22128 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
22129 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
22130 (init_image_func_pointer) [MAC_OSX]: Remove function.
22131 (image_load_quartz2d) [MAC_OSX]: Check availability of
22132 CGImageCreateWithPNGDataProvider at compile time.
22133 Use lowercase `false' for boolean constant.
22134 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
22135 Use image_load_image_io.
22136 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
22137 Don't check MyCGImageCreateWithPNGDataProvider.
22138 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
22139 Don't call init_image_func_pointer.
22140
22141 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
22142
22143 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
22144 Make variable non-static.
22145 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
22146 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
22147
22148 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
22149 (RED_FROM_ULONG): Mask off higher bits.
22150 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
22151
22152 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
22153 Include AvailabilityMacros.h.
22154 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
22155 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
22156
22157 2008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
22158
22159 * chartab.c (Fset_char_table_range): If range is t, really set all
22160 chars to that value.
22161
22162 2008-05-03 Eli Zaretskii <eliz@gnu.org>
22163
22164 * dired.c (Ffile_attributes): Don't allow the device number become
22165 negative.
22166
22167 2008-05-02 Daiki Ueno <ueno@unixuser.org>
22168
22169 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
22170
22171 2008-05-02 Juri Linkov <juri@jurta.org>
22172
22173 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
22174 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
22175 DEFAULT argument as a list of default values in docstrings.
22176
22177 2008-05-01 Chong Yidong <cyd@stupidchicken.com>
22178
22179 * puresize.h (BASE_PURESIZE): Increase to 1210000.
22180
22181 2008-05-01 Martin Rudalics <rudalics@gmx.at>
22182
22183 * dispnew.c (change_frame_size_1): Preserve small windows when
22184 shrinking frames by calling set_window_height|width with third
22185 arg 2.
22186
22187 * window.h (struct window): Replace field too_small_ok by field
22188 resize_proportionally.
22189
22190 * window.c (make_window): Initialize resize_proportionally.
22191 (enlarge_window): Temporarily set resize_proportionally to make
22192 sure that shrink_windows does scale the window proportionally.
22193 (shrink_windows): When window has resize_proportionally set try
22194 to shrink it proportionally by stealing from other windows.
22195 (struct saved_window, Fset_window_configuration)
22196 (compare_window_configurations): Handle resize_proportionally.
22197 (WINDOW_TOTAL_SIZE): New macro.
22198 (window_min_size, shrink_windows, size_window): Use it.
22199 (check_min_window_sizes): Remove. Invalid values of
22200 window-min-height|width are handled by window_min_size_2 now.
22201 (size_window, Fsplit_window, enlarge_window)
22202 (adjust_window_trailing_edge, grow_mini_window): Don't call
22203 check_min_window_sizes.
22204 (window_min_size_2, window_min_size_1, window_min_size):
22205 New argument safe_p for retrieving "safe" minimum sizes.
22206 (Fdisplay_buffer, Fsplit_window, enlarge_window)
22207 (adjust_window_trailing_edge, grow_mini_window):
22208 Adjust arguments of window_min_size... functions.
22209 (shrink_windows): Argument min_size removed. New argument
22210 safe_p allows shrinking windows to their safe minimum sizes.
22211 Calculate minimum size and decide whether a window shall be
22212 deleted for each window individually.
22213 (size_window): When nodelete_p equals 2, tell shrink_windows to
22214 delete windows only if their new minimum size is no more safe.
22215 (shrink_window_lowest_first): Call window_min_size_1 to make
22216 sure to preserve modeline of bottom-most window when resizing
22217 the minibuffer.
22218 (Fset_window_configuration, Fcurrent_window_configuration)
22219 (compare_window_configurations): Do not handle
22220 window-min-height|width any more.
22221 (syms_of_window): Clarify window-min-height|width doc-strings.
22222
22223 2008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
22224
22225 * dired.c (file_name_completion): Fix up the encoding/decoding issue
22226 some more. Copy some of the code from Ftry_completions.
22227 Remove special case code that dates back to initial revision when the
22228 slash was only added when necessary and that can't trigger nowadays.
22229
22230 2008-04-27 Kenichi Handa <handa@m17n.org>
22231
22232 * font.c (font_prop_validate): Signal `error' instead of `font'.
22233
22234 2008-04-29 Jason Rumney <jasonr@gnu.org>
22235
22236 * w32fns.c (Fw32_battery_status): New defun.
22237 (syms_of_w32fns): Defsubr it.
22238
22239 2008-04-28 Andreas Schwab <schwab@suse.de>
22240
22241 * dired.c (file_name_completion): Fix another mixing of encoded
22242 and decoded names.
22243
22244 2008-04-28 Juanma Barranquero <lekktu@gmail.com>
22245
22246 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
22247
22248 2008-04-27 Juanma Barranquero <lekktu@gmail.com>
22249
22250 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
22251
22252 2008-04-27 Andreas Schwab <schwab@suse.de>
22253
22254 * dired.c (file_name_completion): Fix inappropriate mixing of
22255 encoded and decoded names.
22256
22257 * xterm.c (XTread_socket): Fix use of uninitialized variable.
22258
22259 * puresize.h (BASE_PURESIZE): Increase to 1200000.
22260
22261 2008-04-26 Eli Zaretskii <eliz@gnu.org>
22262
22263 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
22264 2008-03-31, it's not needed anymore with `struct stat' definition
22265 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
22266 for the same reasons.
22267
22268 2008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
22269
22270 * m/sparc.h: Additional redefinitions for GNU/Linux.
22271
22272 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22273
22274 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
22275 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
22276 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
22277 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
22278 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
22279 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
22280 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
22281 Likewise.
22282
22283 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
22284 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
22285 (mac_ax_number_of_characters): Add externs.
22286 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
22287 [USE_MAC_TSM]: Likewise.
22288 (mac_handle_text_input_event) [MAC_OSX]:
22289 Handle kEventTextInputOffsetToPos for no active input area case.
22290 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
22291 (mac_handle_document_access_event)
22292 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
22293 (install_application_handler) [MAC_OSX]: Register handlers for
22294 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
22295 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
22296 Register mac_handle_document_access_event.
22297
22298 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
22299 Make functions non-static.
22300
22301 2008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
22302
22303 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
22304 (read_file_name_completion_ignore_case, insert_default_directory)
22305 (Qdefault_directory): Move to minibuffer.el.
22306 (Fread_file_name): Call the new `read-file-name' instead.
22307
22308 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22309
22310 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
22311 Make function non-static.
22312 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
22313 Remove function.
22314 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
22315 Move to mactoolbox.c.
22316 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
22317
22318 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
22319 (mac_rect_make): New macro.
22320
22321 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
22322 instead of float.
22323 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
22324 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
22325 (XSetBackground) [USE_CG_DRAWING]: Likewise.
22326 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
22327 CGRectMake.
22328 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
22329 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
22330 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
22331 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
22332 instead of WindowRef in argument type.
22333 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
22334 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
22335 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
22336 instead of DISPLAY. All uses changed.
22337 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
22338 (x_calc_absolute_position): Simplify so as not to use
22339 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
22340
22341 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
22342 instead of WindowRef in argument type.
22343 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
22344 [TARGET_API_MAC_CARBON]: Remove externs.
22345 (create_apple_event, mac_event_parameters_to_lisp)
22346 [TARGET_API_MAC_CARBON]: Add externs.
22347
22348 * mactoolbox.c (Vmac_ts_script_language_on_focus)
22349 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
22350 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
22351 is clicked.
22352 (x_activate_menubar): Remove extern for saved_menu_event_location.
22353 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
22354 Move from mac.c.
22355
22356 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22357
22358 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
22359 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
22360
22361 2008-04-23 Jason Rumney <jasonr@gnu.org>
22362
22363 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
22364 attributes only for local files.
22365
22366 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
22367 default to Qlocal.
22368
22369 2008-04-22 Juri Linkov <juri@jurta.org>
22370
22371 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
22372 read-buffer-to-switch instead of using the letter "B".
22373
22374 2008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
22375
22376 * fileio.c (Qdefault_directory): New variable.
22377 (Fread_file_name): Use it to pass `dir' to the completion functions.
22378
22379 2008-04-20 Chong Yidong <cyd@stupidchicken.com>
22380
22381 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
22382
22383 2008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
22384
22385 * keyboard.c (Vpre_help_message): Remove.
22386 (show_help_echo): Remove default C code.
22387
22388 * dired.c (directory_files_internal, file_name_completion):
22389 Only call ENCODE_FILE if the string is indeed decoded.
22390
22391 2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
22392
22393 * Makefile.in (TOOLKIT_DEFINES): Remove.
22394 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
22395
22396 2008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22397
22398 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
22399 (mactoolbox.o): New target.
22400
22401 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
22402 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
22403
22404 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
22405 Use mac_set_frame_window_background instead of XSetWindowBackground.
22406 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
22407 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
22408 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
22409 instead of SetWindowTitleWithCFString.
22410 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
22411 Move function to mactoolbox.c.
22412 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
22413 Use mac_set_window_modified instead of SetWindowModified.
22414 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
22415 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
22416 (Fx_focus_frame): Use mac_front_non_floating_window instead of
22417 FrontNonFloatingWindow. Use mac_activate_window instead of
22418 ActivateWindow. Use mac_active_non_floating_window instead of
22419 ActiveNonFloatingWindow.
22420 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
22421 Use mac_show_hourglass and mac_hide_hourglass.
22422 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
22423 instead of GetGlobalMouse.
22424 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
22425 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
22426 Use mac_bring_window_to_front instead of BringToFront.
22427 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
22428 mactoolbox.c.
22429 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
22430 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
22431 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
22432 mactoolbox.c.
22433
22434 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
22435 (XtPointer): Move typedef from macmenu.c.
22436 (enum button_type): Move enum from macmenu.c.
22437 (widget_value): Move typedef from macmenu.c.
22438 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
22439 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
22440 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
22441 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
22442 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
22443 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
22444 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
22445 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
22446 (Selection): Move typedef from macselect.c.
22447 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
22448 macterm.c.
22449 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
22450 (mac_is_window_collapsed, mac_bring_window_to_front)
22451 (mac_send_window_behind, mac_hide_window, mac_show_window)
22452 (mac_collapse_window, mac_front_non_floating_window)
22453 (mac_active_non_floating_window, mac_activate_window)
22454 (mac_move_window_structure, mac_move_window, mac_size_window)
22455 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
22456
22457 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
22458 (enum mac_menu_kind): Move enum to mactoolbox.c.
22459 (min_menu_id): Move variable to mactoolbox.c.
22460 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
22461 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
22462 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
22463 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
22464 [TARGET_API_MAC_CARBON]: Likewise.
22465 (XtPointer): Move typedef to macgui.h.
22466 (enum button_type): Move enum to macgui.h.
22467 (widget_value): Move typedef to macgui.h.
22468 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
22469 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
22470 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
22471 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
22472 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
22473 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
22474 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
22475 (popup_activated_flag): Make variable non-static.
22476 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
22477 (add_menu_item, fill_menu, dispose_menus):
22478 Move functions to mactoolbox.c.
22479 (restore_show_help_function, menu_target_item_handler)
22480 (install_menu_target_item_handler, mac_handle_dialog_event)
22481 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
22482 [TARGET_API_MAC_CARBON]: Likewise.
22483 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
22484 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
22485 (find_and_call_menu_selection, name_is_separator): Make function
22486 non-static.
22487 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
22488 to mactoolbox.c.
22489 (set_frame_menubar): Don't call install_menu_quit_handler.
22490 (menu_item_selection): New variable.
22491 (mac_menu_show): Use create_and_show_popup_menu.
22492 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
22493 selection but set variable menu_item_selection. All uses changed.
22494 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
22495 Call install_menu_quit_handler. Move to mactoolbox.c.
22496
22497 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
22498 (Selection): Move typedef to macgui.h.
22499 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
22500 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
22501 Make variables non-static.
22502 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
22503 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
22504 Make functions non-static.
22505 (Vmac_service_selection) [MAC_OSX]: Likewise.
22506 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
22507 (mac_valid_selection_target_p, mac_clear_selection)
22508 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
22509 (mac_put_selection_value, mac_selection_has_target_p)
22510 (mac_get_selection_value, mac_get_selection_target_list)
22511 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
22512 Move functions to mactoolbox.c.
22513 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
22514 Likewise.
22515 (copy_scrap_flavor_data, mac_handle_service_event)
22516 (install_service_handler) [MAC_OSX]: Likewise.
22517 (syms_of_macselect) <Vmac_dnd_known_types>:
22518 Use mac_dnd_default_known_types.
22519
22520 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
22521 Move to mactoolbox.c.
22522 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
22523 (Fx_selection_owner_p): Add EXFUN.
22524 (install_window_handler, remove_window_handler, XSetWindowBackground):
22525 Remove externs.
22526 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
22527 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
22528 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
22529 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
22530 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
22531 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
22532 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
22533 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
22534 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
22535 (create_and_show_popup_menu, mac_get_selection_from_symbol)
22536 (mac_valid_selection_target_p, mac_clear_selection)
22537 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
22538 (mac_put_selection_value, mac_selection_has_target_p)
22539 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
22540 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
22541 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
22542 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
22543 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
22544 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
22545 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
22546 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
22547 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
22548
22549 * mactoolbox.c: New file.
22550
22551 2008-04-18 Jason Rumney <jasonr@gnu.org>
22552
22553 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
22554
22555 2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
22556
22557 * character.c (Fmultibyte_char_to_unibyte):
22558 Return latin1 chars unchanged.
22559
22560 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
22561 relocated if it points to `name'.
22562
22563 2008-04-17 Kenichi Handa <handa@m17n.org>
22564
22565 * data.c (Faset): Allow setting a multibyte character in an
22566 ASCII-only unibyte string.
22567
22568 * lisp.h (STRING_SET_MULTIBYTE): New macro.
22569
22570 2008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
22571
22572 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
22573 done in config.h.
22574
22575 2008-04-16 Juanma Barranquero <lekktu@gmail.com>
22576
22577 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
22578 (Fchar_direction): Add usage in the docstring.
22579
22580 2008-04-15 Chong Yidong <cyd@stupidchicken.com>
22581
22582 * keyboard.c (read_key_sequence): Remove always-true checks.
22583
22584 2008-04-14 Jason Rumney <jasonr@gnu.org>
22585
22586 * w32font.c (w32font_open_internal): Set max_bounds.descent in
22587 compatibility struct, for better underline positioning.
22588
22589 2008-04-13 David Hansen <david.hansen@gmx.net>
22590
22591 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
22592 string.
22593
22594 2008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
22595
22596 * m/hp800.h (XUINT, XSET): Remove.
22597
22598 2008-04-12 Juanma Barranquero <lekktu@gmail.com>
22599
22600 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
22601 previous change.
22602
22603 2008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
22604
22605 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
22606 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
22607
22608 2008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
22609
22610 * keymap.h (map_keymap_canonical): Declare.
22611 * xmenu.c (single_keymap_panes): Use it.
22612
22613 2008-04-11 Glenn Morris <rgm@gnu.org>
22614
22615 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
22616 set the target's value to that of the alias.
22617
22618 2008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
22619
22620 * term.c (set_tty_color_mode): Left over typo.
22621
22622 2008-04-10 Michael Albinus <michael.albinus@gmx.de>
22623
22624 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
22625 only after check for file name handler functions. Signal, when
22626 native functionality is not supported.
22627 (syms_of_fileio): Declare it unconditionally.
22628
22629 2008-04-10 Jason Rumney <jasonr@gnu.org>
22630
22631 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
22632 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
22633
22634 * w32.c (logon_network_drive): Also logon to remote drives that
22635 are mapped to drive letters.
22636
22637 2008-04-10 Glenn Morris <rgm@gnu.org>
22638
22639 * xdisp.c (truncate-partial-width-windows): Doc fix.
22640
22641 2008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
22642
22643 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
22644 Move functions to minibuffer.el.
22645 (syms_of_fileio): Don't declare them.
22646
22647 2008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
22648
22649 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
22650 (syms_of_minibuf): Remove its initialization.
22651
22652 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
22653
22654 2008-04-09 Juanma Barranquero <lekktu@gmail.com>
22655
22656 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
22657
22658 2008-04-09 Jason Rumney <jasonr@gnu.org>
22659
22660 * makefile.w32-in (distclean): Delete makefile too.
22661 (maintainer-clean): New target.
22662
22663 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
22664
22665 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
22666 for new font backend and composite cases.
22667
22668 2008-04-09 Jan Djärv <jan.h.d@swipnet.se>
22669
22670 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
22671 Most of the code moved to run_timers.
22672 (do_pending_atimers): Call run_timers.
22673 (run_timers): New function.
22674
22675 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
22676 run atimers.
22677
22678 * process.c (wait_reading_process_output): The same as above.
22679
22680 2008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
22681
22682 * minibuf.c (last_exact_completion): Remove variable.
22683 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
22684 (complete_and_exit_1, complete_and_exit_2)
22685 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
22686 (Fdisplay_completion_list, display_completion_list_1)
22687 (Fminibuffer_completion_help, Fself_insert_and_exit)
22688 (Fexit_minibuffer, Fminibuffer_message): Move functions to
22689 minibuffer.el.
22690 (syms_of_minibuf): Remove corresponding initializations.
22691
22692 * keyboard.c (Qdeactivate_mark): New var.
22693 (command_loop_1): Use it to call `deactivate-mark'.
22694 (syms_of_keyboard): Initialize it.
22695
22696 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
22697 to another frame.
22698 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
22699 Don't call set_tty_color_mode.
22700 (store_frame_param): Reset previous_frame rather than call
22701 set_tty_color_mode.
22702 * term.c (set_tty_color_mode): Rewrite.
22703 * dispextern.h (set_tty_color_mode): New type.
22704 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
22705
22706 2008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
22707
22708 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
22709 for generic chars, which do not exist any more in emacs-unicode.
22710
22711 2008-04-08 Michael Albinus <michael.albinus@gmx.de>
22712
22713 * coding.c (detect_coding_emacs_mule)
22714 (Ffind_operation_coding_system): Fix typo.
22715
22716 2008-04-08 Jason Rumney <jasonr@gnu.org>
22717
22718 * w32uniscribe.c (SNAME): Extract only symbol name.
22719
22720 * w32font.h (struct w32_metric_cache): New struct.
22721 (w32font_info): Use it.
22722 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
22723 (CACHE_BLOCKSIZE): New constants.
22724
22725 * w32font.c (Qja, Qko, Qzh): New symbols.
22726 (syms_of_w32font): Initialise them.
22727 (font_matches_spec): Use them to filter by language.
22728 (recompute_cached_metrics): Remove function.
22729 (compute_metrics, clear_cached_metrics): New functions.
22730 (w32font_encode_char): Use them to manage metric cache.
22731 (w32font_text_extents): Cache metrics for all glyphs on demand.
22732 Delay converting glyph indices to WORD until needed.
22733 (w32font_open_internal): Initialize metric cache to empty.
22734 (registry_to_w32_charset): Charset should always be a symbol.
22735 (fill_in_logfont, list_all_matching_fonts): Family should
22736 always be a symbol.
22737
22738 2008-04-06 Jason Rumney <jasonr@gnu.org>
22739
22740 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
22741 Give up if glyph indices not supported. Use uniscribe obtained
22742 ABC widths for individual metrics. Map glyph clusters back to
22743 characters using fClusterStart flag. Return number of glyphs
22744 produced, not chars processed.
22745 (uniscribe_shape): Map char at FROM to current glyph.
22746
22747 2008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22748
22749 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
22750 Use SetMenuItemHierarchicalMenu.
22751
22752 2008-04-05 Jason Rumney <jasonr@gnu.org>
22753
22754 * image.c (pbm_load): Allow color values up to 65535.
22755 Throw an error if max_color_idx is outside the supported range.
22756 Report an error when image size is invalid.
22757 Read two bytes at a time when raw images have max_color_idx above 255.
22758
22759 2008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
22760
22761 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
22762 append "CCL: Quitted" when the CCL program is quitted.
22763 (setup_ccl_program): Initialize ccl->quit_silently to zero.
22764
22765 * ccl.h (struct ccl_program): New member quit_silently.
22766
22767 2008-04-05 Chong Yidong <cyd@stupidchicken.com>
22768
22769 * search.c (compile_pattern_1): Treat non-nil and non-string of
22770 search-spaces-regexp as nil.
22771
22772 * minibuf.c (Fassoc_string): Tweak docstring.
22773
22774 2008-04-05 Eli Zaretskii <eliz@gnu.org>
22775
22776 * dired.c (Ffile_attributes): Support inode numbers wider than 32
22777 bits. Remove ugly WINDOWSNT-specific kludge introduced on
22778 2008-03-14 to force inode be positive.
22779
22780 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
22781 _S_* ones, since we now use our own sys/stat.h.
22782 (stat, fstat): Don't mangle the inode number.
22783 (init_user_info): Don't restrict UID and GID to 0-60000 range.
22784
22785 2008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
22786
22787 * frame.h (struct frame): Give one more bit to `visible' since we use
22788 values larger than 1 to indicate obscured frames on ttys.
22789
22790 * keymap.c (Qkeymap_canonicalize): New var.
22791 (Fmap_keymap_internal): New fun.
22792 (describe_map): Use keymap-canonicalize.
22793
22794 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
22795 (Fundo_boundary): Set them.
22796 (syms_of_undo): Initialize them.
22797 (record_point): Use them instead of last_point_position*.
22798 (last_undo_buffer): Change type.
22799
22800 2008-04-04 Jason Rumney <jasonr@gnu.org>
22801
22802 * w32font.c (w32font_text_extents): Use font's ascent and descent.
22803 (recompute_cached_metrics): Don't set ascent and descent per char.
22804
22805 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
22806 (uniscribe_check_otf): Add GC protection before consing.
22807 Rearrange loop for counting features.
22808
22809 2008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
22810
22811 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
22812 buffer with byte-size of source buffer.
22813
22814 2008-04-03 Chong Yidong <cyd@stupidchicken.com>
22815
22816 * callint.c (Fcall_interactively): Handle temporary region even
22817 when shift-select-mode is off.
22818
22819 2008-04-03 Jason Rumney <jasonr@gnu.org>
22820
22821 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
22822
22823 2008-04-03 Kenichi Handa <handa@m17n.org>
22824
22825 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
22826 (CATEGORY_MASK_UTF_16): Likewise.
22827 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
22828 binary file.
22829 (detect_coding): Add null-byte detection for a binary file.
22830 (detect_coding_system): Likewise.
22831
22832 2008-04-03 Jason Rumney <jasonr@gnu.org>
22833
22834 * w32uniscribe.c: New file.
22835
22836 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
22837
22838 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
22839
22840 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
22841 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
22842 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
22843 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
22844 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
22845 (Qphonetic): New symbols.
22846 (syms_of_w32font): Initialize them.
22847 (font_supported_scripts): Use them.
22848 (w32font_list_family): List all charsets.
22849 (w32font_text_extents, recompute_cached_metrics): Fix metric
22850 calculations.
22851 (w32_enumfont_pattern_entity): Make full_type a DWORD.
22852 Give opentype fonts their own format.
22853 (font_matches_spec): New arguments backend and logfont.
22854 Handle :otf spec for uniscribe backend.
22855 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
22856 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
22857
22858 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
22859 font backend.
22860 (globals_of_w32fns): Initialize uniscribe font backend.
22861
22862 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
22863 dependencies.
22864 (w32uniscribe.$(O)): New file to build.
22865 (FONT_OBJ): Include w32uniscribe.$(O).
22866 (LIBS): Add uniscribe libraries.
22867
22868 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
22869
22870 2008-04-02 Chong Yidong <cyd@stupidchicken.com>
22871
22872 * callint.c (Vshift_select_mode): New var.
22873 (Finteractive): Document new ^ spec.
22874 (Fcall_interactively): Call handle-shift-selection if the ^ spec
22875 is present.
22876
22877 * keyboard.c (Vthis_command_keys_shift_translated): New var.
22878 (command_loop_1): Avoid running the direct display versions of
22879 forward-char and backward-char if shift-selection may occur.
22880 (read_key_sequence): Set Vthis_command_keys_shift_translated if
22881 shift-translation takes place.
22882
22883 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
22884 avoid clobbering by define-minor-mode.
22885
22886 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
22887 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
22888
22889 * syntax.c (Fforward_word): Add ^ interactive spec.
22890
22891 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
22892 (Fscroll_right): Add ^ interactive spec.
22893
22894 2008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
22895
22896 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
22897
22898 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
22899
22900 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
22901
22902 2008-03-31 Juri Linkov <juri@jurta.org>
22903
22904 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
22905
22906 2008-03-30 Jan Djärv <jan.h.d@swipnet.se>
22907
22908 * gtkutil.c (xg_set_geometry): Fix indentation.
22909 (xg_resize_outer_widget): Remove.
22910 (x_wm_size_hint_off): Fix indentation.
22911 (xg_frame_set_char_size): Call flush_and_sync after
22912 gtk_window_resize.
22913 (x_wm_set_size_hint): Pass NULL as geometry window to
22914 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
22915 Add menu bar and tool bar height to base height.
22916 (xg_update_frame_menubar, free_frame_menubar)
22917 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
22918 (update_frame_tool_bar, free_frame_tool_bar):
22919 Change xg_resize_outer_widget to xg_frame_set_char_size.
22920
22921 2008-03-30 Michael Albinus <michael.albinus@gmx.de>
22922
22923 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
22924 (Fdbus_call_method): New parameter TIMEOUT.
22925 (dbus-send-signal): Optimize UNGCPRO call.
22926
22927 2008-03-29 Juri Linkov <juri@jurta.org>
22928
22929 * window.c (Fdisplay_buffer): Move call to
22930 Vsplit_window_preferred_function out of conditions that check
22931 if window is eligible for vertical splitting.
22932 When Vsplit_window_preferred_function is non-nil, call it and use
22933 its non-nil return value as window. Otherwise, continue doing
22934 vertical splitting using Fsplit_window with arg horflag=nil.
22935 (syms_of_window) <Vsplit_window_preferred_function>: Change the
22936 default value from `split-window' to nil.
22937
22938 2008-03-29 Juri Linkov <juri@jurta.org>
22939
22940 * callint.c (Fcall_interactively): Revert 2008-03-16 change
22941 for interactive code letters 'b' and 'B'.
22942
22943 2008-03-29 Eli Zaretskii <eliz@gnu.org>
22944
22945 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
22946 multibyte string.
22947
22948 2008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
22949
22950 * keyboard.c (pending_funcalls): New var.
22951 (timer_check): Run it.
22952 (syms_of_keyboard): Initialize it.
22953 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
22954 (Vdelete_terminal_functions): New vars.
22955 (syms_of_terminal): Initialize them.
22956 (Fdelete_terminal): Run delete-terminal-functions.
22957 * xdisp.c (safe_eval): Rewrite.
22958 (safe_call2): New fun.
22959 * frame.c (Qdelete_frame_functions): New var.
22960 (syms_of_frame): Initialize it.
22961 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
22962 * lisp.h (safe_call2, pending_funcalls): Declare.
22963
22964 2008-03-28 Andreas Schwab <schwab@suse.de>
22965
22966 * indent.c (Fmove_to_column): Move declaration before statements.
22967
22968 2008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
22969
22970 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
22971 (struct frame): Use bit fields for boolean vars.
22972
22973 * process.c (server_accept_connection): Simplify naming.
22974 (emacs_get_tty_pgrp): Use SDATA.
22975
22976 * coding.c (decode_coding_object): Fix last change.
22977
22978 2008-03-27 Jason Rumney <jasonr@gnu.org>
22979
22980 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
22981
22982 2008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
22983
22984 * charset.c (Fdefine_charset_internal): Change the way of
22985 registering charsets in Vcharset_order_list.
22986 (syms_of_charset): Make the charset `eight-bit' supplementary.
22987
22988 2008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
22989
22990 * regex.c (EXTEND_BUFFER): Change order of pointer addition
22991 operations, to avoid having the difference between pointers
22992 overflow.
22993
22994 2008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
22995
22996 * indent.c (check_display_width): New fun.
22997 (scan_for_column): Use it.
22998
22999 * data.c (syms_of_data): Mark most-positive-fixnum and
23000 most-negative-fixnum as constants.
23001
23002 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
23003
23004 * indent.c (scan_for_column): Extract from current_column_1.
23005 Merge with the same code from Fmove_to_column.
23006 (current_column_1, Fmove_to_column): Use it.
23007
23008 2008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
23009
23010 * keymap.c (map_keymap_internal): New fun.
23011 (map_keymap): Use it.
23012 (Fmap_keymap_internal): New fun.
23013 (Fmap_keymap): Remove left-out test from before make_save_value.
23014
23015 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
23016
23017 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
23018 Use XCAR/XCDR.
23019
23020 * process.h (struct Lisp_Process): Remove filter_multibyte.
23021 * process.c (QCfilter_multibyte): Remove.
23022 (setup_process_coding_systems): Don't use filter_multibyte.
23023 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
23024 (read_process_output): Don't adjust multibyteness to filter_multibyte.
23025 (Fset_process_filter_multibyte): Change the coding-system to
23026 approximate the previous behavior.
23027 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
23028 coding-system.
23029
23030 * coding.c (decode_coding_object): When not decoding into a buffer,
23031 obey the coding system's preference of (uni|multi)byte.
23032
23033 2008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
23034
23035 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
23036 every char is changed and has a different byte-length.
23037 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
23038 Fix int -> EMACS_INT.
23039
23040 2008-03-23 David Hansen <david.hansen@gmx.net>
23041
23042 * dbusbind.c (xd_read_message): Remove extra copying of message
23043 strings. Check for NULL `interface' or `member'.
23044
23045 2008-03-22 Eli Zaretskii <eliz@gnu.org>
23046
23047 * w32.c (readdir): If FindFirstFile/FindNextFile return in
23048 cFileName a file name that includes `?' characters, use the 8+3
23049 alias in cAlternateFileName instead.
23050
23051 2008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
23052
23053 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
23054
23055 2008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
23056
23057 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
23058 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
23059 work on current_buffer only instead (that was already the case
23060 for some of the code anyway).
23061 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
23062 (temp_set_point, temp_set_point_both): Use EMACS_INT.
23063 (SET_PT, SET_PT_BOTH): Adjust.
23064 * intervals.h (set_point, temp_set_point, set_point_both)
23065 (temp_set_point_both): Remove redundant declarations.
23066
23067 2008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
23068
23069 * fileio.c (Finsert_file_contents):
23070 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
23071 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
23072 when buffer != current_buffer anyway.
23073
23074 2008-03-20 Andreas Schwab <schwab@suse.de>
23075
23076 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
23077 as default.
23078
23079 2008-03-19 Jason Rumney <jasonr@gnu.org>
23080
23081 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
23082 (syms_of_w32fns): Initialize them.
23083 (HOURGLASS_ID): New constant.
23084 (x_window_to_frame): Don't check hourglass_window.
23085 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
23086 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
23087 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
23088 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
23089 Only change the cursor if hourglass is not active.
23090 (Fx_create_frame): Initialize frame's current_cursor.
23091 (hourglass_atimer): Remove.
23092 (hourglass_started): New function.
23093 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
23094 (show_hourglass): Adapt to w32, changing argument to frame.
23095
23096 * w32term.h (struct w32_output): Remove hourglass_window.
23097 Add current_cursor.
23098
23099 * eval.c (call_debugger, Fsignal):
23100 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
23101 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
23102 (Fexecute_extended_command, cancel_hourglass_unwind):
23103 * minibuf.c (read_minibuf):
23104 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
23105
23106 2008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
23107
23108 * window.c (run_funs): New fun.
23109 (run_window_configuration_change_hook): Use it to run the buffer-local
23110 and the global part of the hook.
23111
23112 * xdisp.c (format_mode_line_unwind_data): Add window argument.
23113 (unwind_format_mode_line): Restore selected window.
23114 (x_consider_frame_title, Fformat_mode_line): Set selected window.
23115
23116 2008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
23117
23118 * editfns.c (Fchar_equal): Check they are valid characters.
23119
23120 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
23121
23122 2008-03-17 Andreas Schwab <schwab@suse.de>
23123
23124 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
23125 against a charset.
23126
23127 * lisp.h (Fbuffer_list): Declare.
23128
23129 2008-03-17 Jan Djärv <jan.h.d@swipnet.se>
23130
23131 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
23132 handlebox_widget is != 0.
23133
23134 2008-03-16 Juri Linkov <juri@jurta.org>
23135
23136 * callint.c (Fcall_interactively): For interactive code letters
23137 'b' and 'B' put the buffer list into the list of default "future"
23138 values of the minibuffer.
23139
23140 2008-03-16 Andreas Schwab <schwab@suse.de>
23141
23142 * keyboard.c (read_key_sequence): Fix downcasing of letters with
23143 modifiers.
23144
23145 * regex.c (re_match_2_internal): Correct matching of a charset
23146 against latin-1 characters.
23147
23148 2008-03-16 Kenichi Handa <handa@m17n.org>
23149
23150 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
23151 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
23152 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
23153 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
23154 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
23155 CHAR_STRING_ADVANCE.
23156 (produce_chars): Fix for the case that the source and the
23157 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
23158 instead of CHAR_STRING_ADVANCE.
23159 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
23160 STRING_CHAR_ADVANCE.
23161
23162 2008-03-15 Andreas Schwab <schwab@suse.de>
23163
23164 * regex.c (re_match_2_internal): Correct matching of eight bit
23165 characters in unibyte strings.
23166
23167 2008-03-15 Martin Rudalics <rudalics@gmx.at>
23168
23169 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
23170 at end of range when it coincides with the end of the buffer.
23171
23172 2008-03-14 Eli Zaretskii <eliz@gnu.org>
23173
23174 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
23175
23176 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
23177
23178 2008-03-14 Jason Rumney <jasonr@gnu.org>
23179
23180 * editfns.c (initial_tz): New variable.
23181 (syms_of_editfns): Initialize it.
23182 (Fset_time_zone_rule): Set it when first called.
23183 Use it when TZSTRING is nil.
23184
23185 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
23186 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
23187 (monitor_from_point_fn, get_monitor_info_fn): New globals.
23188 (globals_of_w32fns): Initialize them.
23189 (compute_tip_xy): Use them to position tooltips.
23190
23191 2008-03-14 Glenn Morris <rgm@gnu.org>
23192
23193 * emacs.c (main): Revert previous change.
23194 (standard_args): Revert -internal-script back to -scriptload,
23195 and remove the long-option form.
23196
23197 2008-03-13 Glenn Morris <rgm@gnu.org>
23198
23199 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
23200 Remove option -enable-font-backend.
23201
23202 2008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
23203
23204 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
23205
23206 2008-03-11 Jan Djärv <jan.h.d@swipnet.se>
23207
23208 * xterm.c (x_connection_closed): For GTK: If this is the last
23209 terminal just exit without closing the display.
23210
23211 2008-03-11 Jason Rumney <jasonr@gnu.org>
23212
23213 * w32font.c (w32font_full_name): Use floor to round.
23214
23215 2008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
23216
23217 * sound.c (alsa_configure): Declare vol at beginning of block.
23218
23219 * fontset.c (Ffontset_info): Remove extra semicolon.
23220
23221 2008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
23222
23223 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
23224 size of resulting string.
23225
23226 2008-03-10 Jason Rumney <jasonr@gnu.org>
23227
23228 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
23229
23230 2008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23231
23232 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
23233 Don't pretend as if characters with display property haven't been
23234 consumed for string-replacing-string case.
23235
23236 2008-03-08 Kim F. Storm <storm@cua.dk>
23237
23238 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
23239 (get_next_display_element, next_element_from_string)
23240 (next_element_from_ellipsis, next_element_from_buffer): Use it.
23241
23242 2008-03-08 Andreas Schwab <schwab@suse.de>
23243
23244 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
23245
23246 2008-03-06 Jason Rumney <jasonr@gnu.org>
23247
23248 * w32font.c (w32_registry): Take font_type argument. Use ANSI
23249 when charset not specified. Only translate ANSI to unicode when
23250 font_type is truetype.
23251 (w32font_coverage_ok): New function.
23252 (add_font_entity_to_list): Use it to filter unsuitable fonts.
23253
23254 2008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
23255
23256 * lread.c (Fread_char): Resolve modifiers.
23257 (Fread_char_exclusive): Likewise.
23258
23259 * character.c (char_resolve_modifier_mask): New function.
23260 (char_string): Use char_resolve_modifier_mask.
23261 (Fchar_resolve_modifiers): New function.
23262 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
23263 function.
23264
23265 2008-03-04 Jason Rumney <jasonr@gnu.org>
23266
23267 * makefile.w32-in: Always include w32font.c in the build.
23268 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
23269
23270 2008-03-04 Andreas Schwab <schwab@suse.de>
23271
23272 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
23273 (versionclean): Likewise.
23274
23275 2008-03-04 Juanma Barranquero <lekktu@gmail.com>
23276
23277 * .cvsignore: Add oo.
23278
23279 2008-03-03 Andreas Schwab <schwab@suse.de>
23280
23281 * coding.c (decode_coding_object): Inhibit gap shrinking while
23282 decoding in place.
23283
23284 2008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
23285
23286 * w32term.c: Remove unused include "gnu.h".
23287 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
23288
23289 * gnu.h: Rename to ...
23290 * emacs-icon.h: ... this.
23291 * xterm.c: Use emacs-icon.h instead of gnu.h.
23292 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
23293
23294 2008-03-03 Juanma Barranquero <lekktu@gmail.com>
23295
23296 * w32font.c: Include math.h.
23297
23298 2008-03-03 Jason Rumney <jasonr@gnu.org>
23299
23300 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
23301 Compute options separately.
23302 (w32font_open_internal): Set glyph_idx before caching metrics.
23303
23304 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
23305 Define if system headers don't.
23306 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
23307 (w32font_encode_char): Don't declare here.
23308
23309 * w32font.c (Quniscribe, QCformat): New symbols.
23310 (syms_of_w32font): Define them.
23311 (w32font_has_char): Indicate uncertainty.
23312 (w32font_encode_char): Encode as glyph point. Make static.
23313 (recompute_cached_metrics): New function.
23314 (w32font_open_internal): Use it. Set font to use glyph points
23315 initially. Set format based on type of font.
23316 (w32font_text_extents, w32font_draw): Optionally use glyph points.
23317 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
23318 on it. Set format based on information available here.
23319 (add_font_entity_to_list): Identify backend based on opentype_only.
23320
23321 2008-03-02 Andreas Schwab <schwab@suse.de>
23322
23323 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
23324
23325 * coding.c (decode_coding_big5, produce_chars):
23326 Fix typos in last change.
23327
23328 2008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
23329
23330 * gnu.h: New icon.
23331
23332 2008-03-02 Kenichi Handa <handa@m17n.org>
23333
23334 * coding.c (decode_coding_utf_8): When eol-type of CODING is
23335 `dos', don't decode '\r' if that is the last in the source.
23336 (decode_coding_utf_16, decode_coding_emacs_mule)
23337 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
23338 (decode_coding_raw_text, decode_coding_charset): Likewise.
23339 (produce_chars): Don't decode EOL here. Use EMACS_INT.
23340
23341 2008-03-01 Jason Rumney <jasonr@gnu.org>
23342
23343 * w32font.c (w32font_full_name): Report point size for scalable fonts.
23344
23345 2008-03-01 Kim F. Storm <storm@cua.dk>
23346
23347 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
23348
23349 2008-03-01 Jason Rumney <jasonr@gnu.org>
23350
23351 * w32font.c (w32font_full_name): New function.
23352 (w32font_open_internal): Use it.
23353
23354 2008-03-01 Kim F. Storm <storm@cua.dk>
23355
23356 * dispnew.c (line_draw_cost): Fix invalid glyph check.
23357
23358 2008-03-01 Jason Rumney <jasonr@gnu.org>
23359
23360 * font.c (font_unparse_fcname): Increase len when style is a symbol.
23361
23362 2008-03-01 Jan Djärv <jan.h.d@swipnet.se>
23363
23364 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
23365 xg_frame_resized when the event is for the edit widget.
23366
23367 * gtkutil.h (xg_frame_resized): Rename from xg_resize_widgets.
23368
23369 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
23370 set_char_size.
23371 (xg_frame_resized): Rename from xg_resize_widgets. Remove all
23372 operations on widgets here. Just set frame size if needed.
23373 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
23374 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
23375 (x_wm_set_size_hint): Set size hints on the edit widget only, not
23376 the whole frame.
23377 (xg_create_tool_bar): Move attachment of the tool bar to
23378 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
23379 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
23380
23381 2008-03-01 Jason Rumney <jasonr@gnu.org>
23382
23383 * w32fns.c (w32_msg_pump): Disable debug code.
23384
23385 2008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23386
23387 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
23388
23389 2008-02-29 Chong Yidong <cyd@stupidchicken.com>
23390
23391 * xdisp.c (next_overlay_string): Don't set
23392 overlay_strings_at_end_processed_p if we're currently reading from
23393 a display string.
23394
23395 2008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
23396
23397 * xdisp.c (get_overlay_strings_1): Fix typo.
23398
23399 2008-02-29 Chong Yidong <cyd@stupidchicken.com>
23400
23401 * xdisp.c (get_overlay_strings_1): Add missing argument type.
23402
23403 2008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
23404
23405 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
23406
23407 * xdisp.c (display_mode_element): Cancel the previous change.
23408 (decode_mode_spec): Likewise.
23409 (handle_auto_composed_prop): Don't make composition if it->string
23410 is a string.
23411
23412 2008-02-27 Kim F. Storm <storm@cua.dk>
23413
23414 * lisp.h (GLYPH): Change type from int to struct with separate char
23415 and face_id members.
23416 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
23417 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
23418 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
23419 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
23420 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
23421 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
23422 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
23423 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
23424 handle new Lisp glyph code encoding, either an integer or a cons.
23425
23426 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
23427 (GLYPH_ALIAS): Delete.
23428 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
23429 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
23430 (GLYPH_FROM_CHAR): Replace macro by ...
23431 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
23432
23433 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
23434 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
23435 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
23436 (GLYPH_INVALID_P): New macro.
23437 (spec_glyph_lookup_face): Update prototype.
23438
23439 * dispnew.c (line_draw_cost): Adapt to new glyph type.
23440 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
23441 new glyph code encoding.
23442 (spec_glyph_lookup_face): No return value; update passed glyph instead.
23443 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
23444
23445 * xdisp.c (get_next_display_element, next_element_from_display_vector):
23446 Adapt to new glyph type and new glyph code encoding.
23447
23448 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
23449
23450 * indent.c (current_column, current_column_1, Fmove_to_column)
23451 (compute_motion): Adapt to new glyph code encoding.
23452
23453 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
23454
23455 2008-02-27 Chong Yidong <cyd@stupidchicken.com>
23456
23457 * process.c (wait_reading_process_output): Check for window
23458 changes caused by timers.
23459 Suggested by Johan Bockgård.
23460
23461 2008-02-27 Glenn Morris <rgm@gnu.org>
23462
23463 * emacs.c (USAGE1): Add `--disable-font-backend'.
23464
23465 2008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
23466
23467 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
23468 is made to the buffer.
23469
23470 2008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
23471
23472 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
23473 (face_at_string_position):
23474 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
23475 (face_at_string_position):
23476 * xdisp.c (display_string, next_overlay_change):
23477 * buffer.h (overlays_at):
23478 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
23479 Update callers.
23480
23481 2008-02-26 Chong Yidong <cyd@stupidchicken.com>
23482
23483 * editfns.c (Fformat): Doc fix.
23484
23485 2008-02-26 Juanma Barranquero <lekktu@gmail.com>
23486
23487 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
23488 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
23489 (Ffont_otf_alternates, Fquery_font): Doc fixes.
23490
23491 2008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
23492
23493 * buffer.c (Fbuffer_swap_text): New function.
23494 (syms_of_buffer): Defsubr it.
23495
23496 2008-02-25 Chong Yidong <cyd@stupidchicken.com>
23497
23498 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
23499
23500 2008-02-25 Jason Rumney <jasonr@gnu.org>
23501
23502 * w32font.c (w32font_draw): Draw one character at a time when padding.
23503
23504 2008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
23505
23506 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
23507 Handle a nil arg. Use run_window_configuration_change_hook.
23508 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
23509 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
23510 Use run_window_configuration_change_hook.
23511
23512 2008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
23513
23514 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
23515 1-pixel width.
23516
23517 2008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
23518
23519 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
23520 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
23521 if the glyph in the font is zero pixel with.
23522
23523 * dispextern.h (struct glyph_string): New member padding_p.
23524
23525 * w32font.c (w32font_draw): Pay attention to s->padding_p.
23526
23527 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
23528
23529 * xfont.c (xfont_draw): Pay attention to s->padding_p.
23530
23531 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
23532
23533 * font.c: If the font driver doesn't have `shape' function, return Qnil.
23534
23535 2008-02-25 Jason Rumney <jasonr@gnu.org>
23536
23537 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
23538
23539 2008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
23540
23541 Allow fine-grained image-cache flushing.
23542 * dispextern.h (struct image): Add `dependencies' field.
23543 (clear_image_caches): Change arg to Lisp_Object.
23544 * image.c (make_image): Initialize `dependencies' field.
23545 (clear_image_cache): Change arg to allow fine-grained flushing.
23546 Perform the flush even if image-cache-eviction-delay is nil.
23547 (clear_image_caches): Change arg to Lisp_Object.
23548 (Fclear_image_cache): Expand meaning of the argument.
23549 (mark_image): Mark `dependencies' field.
23550 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
23551 (lface_hash): Use XHASH rather than XFASTINT.
23552 (face_at_buffer_position): Fix int -> EMACS_INT position.
23553 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
23554 (select_frame_for_redisplay): Remove code duplication.
23555 (redisplay_internal): Adapt arg to call to clear_image_caches.
23556
23557 2008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
23558
23559 * s/vms4-0.h:
23560 * s/vms4-2.h:
23561 * s/vms4-4.h:
23562 * s/vms5-5.h: Remove, unused.
23563
23564 * s/irix5-2.h:
23565 * s/irix6-0.h:
23566 * s/riscos5.h:
23567 * s/mach-bsd4-3.h:
23568 * m/mips4.h: Remove files for obsolete systems.
23569
23570 * Makefile.in:
23571 * filelock.c:
23572 * unexmips.c:
23573 * m/hp9000s300.h:
23574 * m/iris4d.h:
23575 * s/aix3-1.h:
23576 * s/hpux.h:
23577 * s/msdos.h:
23578 * s/usg5-0.h:
23579 * s/usg5-2-2.h:
23580 * s/usg5-2.h:
23581 * s/usg5-3.h: Remove references to obsolete variables.
23582
23583 * s/irix5-0.h: Remove, move all the contents ...
23584 * s/irix6-5.h: ... here. Simplify.
23585 * config.in: Regenerate.
23586
23587 2008-02-24 Jason Rumney <jasonr@gnu.org>
23588
23589 * w32term.c (x_draw_glyph_string_background): Clear the background
23590 manually when cleartype is in use.
23591 (x_draw_glyph_string_foreground): Draw text transparently when
23592 cleartype is in use.
23593
23594 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
23595 a font into it unless we have to.
23596
23597 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
23598
23599 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
23600 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
23601
23602 2008-02-18 Jason Rumney <jasonr@gnu.org>
23603
23604 * w32fns.c (Fw32_shell_execute): Encode parameters.
23605
23606 2008-02-09 Eli Zaretskii <eliz@gnu.org>
23607
23608 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
23609
23610 2008-02-05 Juanma Barranquero <lekktu@gmail.com>
23611
23612 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
23613
23614 2008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
23615
23616 * xterm.c (x_set_offset): Don't change the gravity if
23617 CHANGE_GRAVITY is -1.
23618
23619 2008-02-23 Chong Yidong <cyd@stupidchicken.com>
23620
23621 * fileio.c (auto_save_error_occurred): New var.
23622 (auto_save_error): Set it.
23623 (Fdo_auto_save): Don't overwrite the error message if an auto-save
23624 error occurred.
23625
23626 2008-02-23 Eli Zaretskii <eliz@gnu.org>
23627
23628 * w32.c (globals_of_w32): Add initializations for
23629 g_b_init_get_sid_sub_authority and
23630 g_b_init_get_sid_sub_authority_count.
23631
23632 2008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
23633
23634 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
23635 (font_parse_xlfd): Use them for sanity check.
23636 (Finternal_set_font_style_table): Make sure the table is bijective.
23637
23638 Consolidate the image_cache to the terminal struct.
23639 * termhooks.h (P_): Remove redundant def.
23640 (struct terminal): New field `image_cache'.
23641 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
23642 of FRAME_X_IMAGE_CACHE.
23643 * xterm.h (struct x_display_info): Remove image_cache field.
23644 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
23645 * w32term.h (struct w32_display_info): Remove image_cache field.
23646 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
23647 * macterm.h (struct mac_display_info): Remove image_cache field.
23648 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
23649 * xterm.c (x_term_init):
23650 * w32term.c (w32_term_init):
23651 * macterm.c (mac_term_init): Set the image_cache in the terminal.
23652 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
23653 Remove declarations.
23654 (clear_image_caches, mark_image_cache): New declarations.
23655 * xfaces.c (clear_face_cache):
23656 * xdisp.c (redisplay_internal): Use clear_image_caches.
23657 * image.c (clear_image_cache): Don't check that a frame is on
23658 a window-system before checking if it shares the same cache.
23659 (clear_image_caches): New function.
23660 (Fclear_image_cache): Use it.
23661 (mark_image): Move from allo.c.
23662 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
23663 * alloc.c (mark_image, mark_image_cache): Move to image.c.
23664 (mark_object): Don't call mark_image_cache for frames.
23665 (mark_terminals): Call mark_image_cache.
23666
23667 * lisp.h (Fdelete_terminal): Declare.
23668
23669 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
23670 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
23671 wrong_type_argument.
23672
23673 2008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
23674
23675 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
23676 malayalam.el, and tamil.el. Add sinhala.el.
23677
23678 2008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
23679
23680 * xterm.c (x_connection_closed): Consolidate identical tests.
23681 (x_delete_terminal): Don't crash if called via x_connection_closed.
23682
23683 2008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
23684
23685 * xdisp.c (decode_mode_spec): New arg string.
23686 (display_mode_element): Adjust for the above change.
23687
23688 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
23689
23690 * callint.c (Fcall_interactively): Use AREF.
23691
23692 2008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
23693
23694 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
23695
23696 2008-02-18 Jan Djärv <jan.h.d@swipnet.se>
23697
23698 * xfns.c (Fx_show_tip): Set string to " " if empty.
23699
23700 2008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
23701
23702 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
23703 with Qt.
23704
23705 2008-02-17 Kenichi Handa <handa@m17n.org>
23706
23707 * ftfont.c (ftfont_shape): Return Lispy number.
23708
23709 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
23710 for GCs.
23711 (Finternal_set_font_selection_order): Call font_update_sort_order
23712 only when enable_font_backend is set.
23713 (realize_x_face): Set face->font_info to that of default face only
23714 when enable_font_backend is set.
23715
23716 * xdisp.c (handle_composition_prop): Set it->c to the fist
23717 character of the composed region.
23718 (fill_composite_glyph_string): Set base_face->font_info to
23719 s->font_info. Get a face for ascii from base_face->ascii_face.
23720 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
23721 with a face already decided.
23722 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
23723 non-negative.
23724 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
23725 call font_prepare_composition unconditionally.
23726
23727 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
23728
23729 * xterm.h (struct x_display_info): New member font.
23730
23731 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
23732 (x_set_mouse_face_gc, x_new_font): Likewise.
23733 (x_term_init): Setup display_info->font.
23734 (x_delete_terminal): Free display_info->font.
23735
23736 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
23737
23738 * ftxfont.c (ftxfont_default_fid): Delete it.
23739 (ftxfont_open): Set xfont->fid to 0.
23740 (ftxfont_end_for_frame): Clear data specific to the frame and the
23741 font-driver.
23742
23743 * xftfont.c (xftfont_default_fid): Delete it.
23744 (xftfont_open): Set xfont->fid to 0.
23745
23746 * fontset.c (FONTSET_OBJLIST): New macro.
23747 (fontset_find_font): Update font-object list of the fontset.
23748 (free_realized_fontset): New function.
23749 (free_face_fontset): Call free_realized_fontset.
23750 (Ffont_info): Call font_close_object only when enable_font_backend
23751 is set.
23752
23753 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
23754 [HAVE_NTGUI]: Include w32term.h.
23755 [MAC_OS]: Include macterm.ch.
23756 (font_otf_ValueRecord): Use make_number.
23757 (font_finish_cache): Fix handling of reference count.
23758 (font_clear_cache): Update num_fonts.
23759 (font_open_entity): Update smallest_char_width and
23760 smallest_font_height of the frame.
23761 (font_close_object): Update num_fonts.
23762 (Fclear_font_cache): Fix finding the target cache data.
23763
23764 2008-02-16 Glenn Morris <rgm@gnu.org>
23765
23766 * fontset.c (Finternal_char_font): Fix compilation warning.
23767
23768 2008-02-16 Eli Zaretskii <eliz@gnu.org>
23769
23770 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
23771 instead of char arrays. Enlarge the size of array passed to
23772 get_token_information.
23773
23774 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
23775 warnings.
23776
23777 2008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
23778
23779 * .gdbinit: Don't set `args', it breaks gdb --args.
23780
23781 2008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
23782
23783 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
23784 within a narrowed buffer.
23785
23786 2008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
23787
23788 * coding.c (decode_coding_object, encode_coding_object):
23789 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
23790
23791 2008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
23792
23793 * coding.c (coding_set_destination): Use BEG_BYTE rather than
23794 hardcoding 1.
23795 (detect_coding_system):
23796 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
23797 (string_char_to_byte, string_byte_to_char, insert_from_gap):
23798 * insdel.c (insert_from_gap):
23799 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
23800 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
23801 (string_to_multibyte):
23802 * character.c (chars_in_text, multibyte_chars_in_text):
23803 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
23804
23805 * character.h (FETCH_STRING_CHAR_ADVANCE)
23806 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
23807 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
23808 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
23809
23810 * casefiddle.c (casify_region): Only call after-change and composition
23811 functions on the part of the region that was changed.
23812
23813 * keyboard.c (read_avail_input):
23814 * frame.c (Fdelete_frame): Call Fdelete_terminal.
23815
23816 2008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
23817
23818 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
23819 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
23820
23821 2008-02-11 Juanma Barranquero <lekktu@gmail.com>
23822
23823 * w32menu.c (push_submenu_start, push_submenu_end)
23824 (push_left_right_boundary, push_menu_pane, push_menu_item):
23825 * keyboard.c (read_key_sequence): Don't pass args with side effects
23826 to AREF, it fails when compiling with -DENABLE_CHECKING.
23827
23828 2008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
23829
23830 * Makefile.in (${lispsource}international/charprop.el):
23831 Delete this target.
23832
23833 * search.c (boyer_moore): Fix incorrect synching of the trunk and
23834 emacs-unicode-2.
23835
23836 2008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
23837
23838 * terminal.c (Fdelete_terminal): Clean up the `force' path.
23839
23840 2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
23841
23842 * frame.c (Qnoelisp): New symbol.
23843 (syms_of_frame): Initialize it.
23844 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
23845 harmless Elisp code, from a strong `force' from x_connection_closed.
23846 * frame.h (Qnoelisp): Declare.
23847 * xterm.c (x_connection_closed): Pass `noelisp'.
23848
23849 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
23850 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
23851 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
23852 rather than `int' for the type of `type'.
23853
23854 2008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
23855
23856 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
23857
23858 * Makefile.in (GNUC): Remove support for gcc-1.x.
23859
23860 2008-02-10 Richard Stallman <rms@gnu.org>
23861
23862 * lisp.h (ASET): Use AREF, not ASLOT.
23863
23864 2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
23865
23866 * lisp.h (ASET): Check bounds.
23867
23868 2008-02-10 Glenn Morris <rgm@gnu.org>
23869
23870 * buffer.c (mode-name): Doc fix.
23871
23872 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
23873
23874 * Makefile.in:
23875 * emacs.c:
23876 * gmalloc.c:
23877 * keyboard.c:
23878 * lisp.h:
23879 * m/ibm370aix.h:
23880 * process.c:
23881 * regex.c:
23882 * s/hpux.h:
23883 * sysdep.c:
23884 * sysselect.h:
23885 * systty.h:
23886 * unexec.c:
23887 * w32term.c:
23888 * xsmfns.c:
23889 * xterm.c: Remove code that deals with obsolete variables.
23890
23891 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
23892
23893 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
23894 nothing else needs it anymore.
23895
23896 2008-02-09 Eli Zaretskii <eliz@gnu.org>
23897
23898 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
23899 instead of unibyte_char_to_multibyte.
23900
23901 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
23902
23903 * s/gnu-linux.h: Remove commented out code.
23904
23905 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
23906
23907 * Makefile.in: Update what RMS says about using autoconf.
23908 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
23909 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
23910 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
23911 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
23912
23913 2008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
23914
23915 * keymap.c (Fkey_description): Move side effect outside of macro call.
23916
23917 * xfaces.c (Finternal_make_lisp_face):
23918 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
23919
23920 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
23921 (syms_of_fontset): Use ASET.
23922
23923 * fns.c (concat): Move side effect outside of macro call.
23924 (hash_clear): Use ASET.
23925
23926 2008-02-08 Richard Stallman <rms@gnu.org>
23927
23928 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
23929 If FORCE, and frame has a surrogate minibuffer for another frame,
23930 delete the other frame first.
23931
23932 2008-02-07 Timo Savola <timo.savola@iki.fi>
23933
23934 * xterm.c (x_detect_focus_change): Handle embed client message.
23935 (handle_one_xevent): Ditto.
23936 (handle_one_xevent): If embedded and we get a button press/release,
23937 request focus.
23938 (xembed_set_info, xembed_send_message): New functions.
23939 (x_make_frame_visible): Call xembed_set_info if embedded.
23940 (x_make_frame_invisible): Call xembed_set_info if embedded.
23941 (x_term_init): Initialize Xatom_XEMBED.
23942 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
23943 (x_iconify_frame): Ditto.
23944
23945 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
23946 (enum xembed_info, enum xembed_message, enum xembed_focus)
23947 (enum xembed_modifier, enum xembed_accelerator): New.
23948 (xembed_set_info, xembed_send_message): Declare.
23949 (FRAME_X_EMBEDDED_P): New.
23950
23951 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
23952 gtk_plug_new.
23953
23954 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
23955 window ID of a frame.
23956 (x_window): Reparent frame if embedded.
23957 (Fx_create_frame): Don't set border width if embedded.
23958
23959 * emacs.c (USAGE3): Add --parent-id.
23960 (standard_args): Ditto.
23961
23962 2008-02-07 Jan Djärv <jan.h.d@swipnet.se>
23963
23964 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
23965
23966 2008-02-07 Jim Meyering <meyering@redhat.com>
23967
23968 Use "do...while (0)", not "if (1)...else" in macro definitions.
23969 The latter provokes a warning from gcc about the empty else, when
23970 followed by ";". Also, without that trailing semicolon, it would
23971 silently swallow up any following statement.
23972 * syntax.h (SETUP_SYNTAX_TABLE)
23973 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
23974 * buffer.h (DECODE_POSITION): Likewise.
23975 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
23976 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
23977 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
23978 (FETCH_CHAR_ADVANCE): Likewise.
23979 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
23980
23981 2008-02-07 Jim Meyering <meyering@redhat.com>
23982
23983 * lread.c [lint]: Don't include <sys/inode.h>.
23984
23985 2008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
23986
23987 * xselect.c (x_handle_dnd_message):
23988 * xmenu.c (digest_single_submenu, xmenu_show):
23989 * xdisp.c (with_echo_area_buffer_unwind_data)
23990 (format_mode_line_unwind_data, unwind_format_mode_line)
23991 (display_menu_bar):
23992 * eval.c (Ffetch_bytecode):
23993 * doc.c (store_function_docstring):
23994 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
23995 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
23996 * buffer.c (add_overlay_mod_hooklist): Use ASET.
23997
23998 2008-02-07 Kenichi Handa <handa@m17n.org>
23999
24000 * ftxfont.c (ftxfont_open): Don't set
24001 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
24002
24003 * ftfont.c (ftfont_open): Fix previous change.
24004
24005 2008-02-06 Jason Rumney <jasonr@gnu.org>
24006
24007 * w32font.c (w32font_text_extents): Fill in lbearing metric.
24008 Use cached metrics for ASCII characters.
24009 (w32font_open_internal): Don't set font's owning_frame.
24010 Cache metrics for ASCII characters.
24011
24012 * w32font.h (struct w32font_info): Add ascii_metrics.
24013 Remove owning_frame.
24014
24015 2008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
24016
24017 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
24018 to negative value.
24019
24020 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
24021
24022 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
24023
24024 * charset.c (syms_of_charset): Set QCtest and Qeq.
24025
24026 2008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
24027
24028 * process.c (Fstart_process):
24029 * callproc.c (Fcall_process): Handle the case where
24030 Funhandled_file_name_directory returns nil.
24031
24032 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
24033 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
24034 * font.c (check_gstring): Use them and AREF to access the vector before
24035 we know it's really a gstring.
24036 (Ffont_shape_text): Fix typo.
24037 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
24038
24039 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
24040 Declare.
24041
24042 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
24043
24044 2008-02-05 Jason Rumney <jasonr@gnu.org>
24045
24046 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
24047 Set smallest_font_height and smallest_char_width in display info.
24048
24049 2008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
24050
24051 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
24052
24053 2008-02-05 Miles Bader <miles@gnu.org>
24054
24055 * xfaces.c (get_lface_attributes, merge_named_face)
24056 (lookup_named_face, lookup_derived_face, realize_named_face):
24057 Revert 2008-02-01 change by cyd@stupidchicken.com.
24058
24059 2008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
24060
24061 * fontset.c (Ffontset_info): Handle the case of inhibitting the
24062 fallback fonts.
24063 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
24064
24065 2008-02-04 Jason Rumney <jasonr@gnu.org>
24066
24067 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
24068 set full_name.
24069 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
24070
24071 2008-02-03 Jason Rumney <jasonr@gnu.org>
24072
24073 * makefile.w32-in (OBJ1): Include font.o here.
24074 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
24075
24076 2008-02-02 Jason Rumney <jasonr@gnu.org>
24077
24078 * makefile.w32-in (temacs): Bump EMHEAP to 21.
24079
24080 2008-02-01 Jason Rumney <jasonr@gnu.org>
24081
24082 * s/cygwin.h: Define VIRT_ADDR_VARIES.
24083
24084 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
24085
24086 2008-02-01 Andreas Schwab <schwab@suse.de>
24087
24088 * Makefile.in (shortlisp, lisp): Update for rename of
24089 ../lisp/language/myanmar.el.
24090
24091 2008-02-01 Chong Yidong <cyd@stupidchicken.com>
24092
24093 * xfaces.c (get_lface_attributes): Delete function.
24094 (merge_named_face, lookup_named_face, lookup_derived_face)
24095 (realize_named_face): Call lface_from_face_name directly, and use
24096 the fact that merge_face_vectors does not alter its FROM argument.
24097
24098 2008-02-01 Jason Rumney <jasonr@gnu.org>
24099
24100 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
24101 input in the default locale. Handle non-Unicode multibyte input.
24102
24103 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24104
24105 * fontset.c (reorder_font_vector): Exclude nil elements from the
24106 font group. Don't try multiple fonts.
24107 (fontset_font): Adjust for the above change.
24108 (Finternal_char_font): Return nil if the found font doesn't
24109 contain the character ch.
24110
24111 * Makefile.in (lisp, shortlisp): Add cham.el.
24112
24113 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24114
24115 * font.h (FONTP): Make it return 1 also for a font-object.
24116
24117 * .gdbinit (xfontset): New function.
24118
24119 * font.c (font_find_for_lface): Check if the character C is
24120 supported or not only for the first font.
24121
24122 * fontset.c (reorder_font_vector): Fix typo.
24123 (fontset_find_font): Don't add a font-spec specifying a script.
24124 Use 0 (not Qt) for the indication of empty font-group. Change the
24125 format of RFONT-DEF. Return Qt if no font in the font-group
24126 support the character.
24127 (fontset_font): Adjust for the above change. If no font was
24128 found the character, remember that.
24129 (face_for_char): Adjust for the change of RFONT-DEF.
24130 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
24131 no font for the target.
24132 (Finternal_char_font): Adjust for the change of RFONT-DEF.
24133
24134 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24135
24136 * font.c (font_load_for_face): Handle the case that the font in
24137 face->lface is a string.
24138
24139 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24140
24141 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
24142
24143 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24144
24145 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
24146 Fix previous change. If the frame is not on a window system,
24147 signal an error.
24148
24149 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24150
24151 * coding.c (decode_coding_object, encode_coding_object):
24152 Adjust marker positions after conversion.
24153
24154 * lisp.h (struct Lisp_Marker): New member need_adjustment.
24155
24156 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24157
24158 * font.c (font_find_for_lface): Fix the handling of the return
24159 value of font_has_char.
24160 (Ffont_shape_text): Fix previous change.
24161
24162 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
24163 (fontset_ref_and_range): Delete it.
24164 (fontset_find_font): Call char_table_ref_and_range instead of
24165 FONTSET_REF_AND_RANGE.
24166 (make_fontset): Don't setup font groups of Latin here.
24167 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
24168 (new_fontset_from_font): Make the specified font the default for
24169 all Latin characters.
24170
24171 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24172
24173 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
24174 is on a window system before accessing the fontset of the frame.
24175
24176 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24177
24178 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
24179
24180 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
24181 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
24182
24183 * font.c (Ffont_shape_text): If the font driver doesn't have a
24184 shaper function, make zero-width glyphs to have at least one-pixel
24185 width. Fix setting of `to' field of glyphs.
24186
24187 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24188
24189 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
24190 glyphs.
24191
24192 * font.h (struct font_driver): Improve docstring of member `shape'.
24193
24194 2008-02-01 Kenichi Handa <handa@m17n.org>
24195
24196 * composite.c (syms_of_composite): Fix docstring of
24197 auto-composition-function.
24198
24199 * font.h (LGLYPH_SIZE): New macro.
24200
24201 * font.c (Ffont_fill_gstring): Stop filling when a character not
24202 supported by the font is found.
24203 (Ffont_shape_text): When a shape callback function returns nil,
24204 try at most two more times with larger gstring.
24205 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
24206
24207 * xdisp.c (handle_auto_composed_prop): Change the argument to
24208 auto-composition-function.
24209
24210 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
24211 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
24212 Lispy glyph and store it in the lgstring.
24213
24214 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
24215
24216 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
24217
24218 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24219
24220 * font.c (Ffont_shape_text): Avoid unnecessary composition.
24221
24222 * fontset.c (Vfont_encoding_charset_alist): New variable.
24223 (syms_of_fontset): DEFVAR it.
24224 (reorder_font_vector, fontset_find_font): Optimize for the case of
24225 no need of reordering.
24226 (face_for_char): Map the charset property by
24227 Vfont_encoding_charset_alist.
24228
24229 2008-02-01 Jason Rumney <jasonr@gnu.org>
24230
24231 * w32font.c (logfonts_match): Don't check adstyle here.
24232 (font_matches_spec): Check here against physical font instead.
24233 (add_font_entity_to_list): Avoid some substitutions.
24234
24235 * font.c (font_parse_fcname): Default weight and slant to normal.
24236 (font_score): Prefer normal fonts if weight or slant unspecified.
24237 (font_score) [WINDOWSNT]: Scale weight difference down to closer
24238 match freetype scores.
24239
24240 2008-02-01 Jason Rumney <jasonr@gnu.org>
24241
24242 * w32font.c (w32font_text_extents): Don't use the frame stored in the
24243 font, as it may have been deleted.
24244 (w32_enumfont_pattern_entity): Map generic family to adstyle using
24245 most common hyphenless variation.
24246 (logfonts_match): Check generic family.
24247 (font_matches_spec): Don't check generic family here.
24248 (fill_in_logfont): Set generic family based on adstyle.
24249
24250 * w32font.h (w32font_get_cache): Update declaration.
24251
24252 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24253
24254 * ftfont.c (ftfont_get_cache): Adjust the argument type.
24255
24256 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
24257 If none of the new drivers are available, call font_update_drivers
24258 with the old drivers.
24259
24260 * w32font.c (w32font_get_cache): Adjust the argument type.
24261
24262 * xfont.c (xfont_get_cache): Adjust the argument type.
24263
24264 * font.h (struct font_driver): Change argument type of get_cache.
24265
24266 * xftfont.c (xftfont_start_for_frame): Delete prototype.
24267
24268 * font.c (Ffont_get): Fix arguments to Fassoc.
24269 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
24270 (font_clear_cache): New function.
24271 (font_list_entities, font_matching_entity): Use font_get_cache.
24272 (font_update_drivers): Call font_clear_cache when finishing a driver.
24273
24274 * fontset.c (fontset_find_font): Fix previous change.
24275
24276 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24277
24278 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
24279 dpyinfo->font_table.
24280 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
24281 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
24282
24283 * font.c (font_at): Handle the case that the arg C is negative.
24284 Handle the unibyte case.
24285 (Ffont_at): Call font_at with the arg C -1.
24286
24287 * xdisp.c (handle_auto_composed_prop): Don't get a character at
24288 the position here, and call font_at with the arg C -1.
24289 Don't check the range of the existing composition at the point.
24290
24291 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24292
24293 * fontset.c (fontset_add): New args charset_id and family.
24294 Change caller.
24295 (load_font_get_repertory, fontset_find_font): Assume that
24296 font_spec is always a font-spec object.
24297 (Fset_fontset_font): Always store a font-spec object in a fontset.
24298
24299 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
24300 instead of get_property_and_range.
24301
24302 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24303
24304 * xftfont.c (struct xftfont_info): Delete the member ft_face.
24305 (xftfont_open): Don't keep locking face.
24306 (xftfont_close): Don't unlock face.
24307 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
24308
24309 * fontset.c (fontset_find_font): Don't prefer a font of
24310 supplementary charset.
24311
24312 2008-02-01 Kenichi Handa <handa@m17n.org>
24313
24314 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
24315 script, langsys_tag to langsys, new member script.
24316 (OTF_TAG_STR): Terminate by '\0'.
24317 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
24318 listing to the script specified in that property. Fix arg to
24319 OTF_check_features.
24320
24321 2008-02-01 Jason Rumney <jasonr@gnu.org>
24322
24323 * w32font.h: New file.
24324
24325 * w32font.c: Include it.
24326 (struct w32font_info): Add owning_frame field. Move to w32font.h.
24327 (w32font_open): Set owning_frame.
24328 (w32font_text_extents): Use owning_frame.
24329 (struct font_callback_data): Add opentype_only field.
24330 (add_font_entity_to_list): Use it to filter fonts.
24331 Don't check against full name.
24332 (w32font_list_internal): New function.
24333 (w32font_list): Use it.
24334 (w32font_match_internal): New function.
24335 (w32font_match): Use it.
24336 (w32font_open_internal): New function.
24337 (w32font_open): Use it.
24338 (w32font_get_cache, w32font_close, w32font_has_char)
24339 (w32font_encode_char, w32font_text_extents, w32font_draw):
24340 Make non-static.
24341
24342 * makefile.w32-in (w32font.o): Depend on w32font.h.
24343
24344 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24345
24346 * charset.c (Fdefine_charset_internal): Record a supplementary
24347 charset at the tail of Vcharset_order_list.
24348
24349 * font.c (Ffont_shape_text): Fix the return value.
24350
24351 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
24352
24353 * xdisp.c (handle_auto_composed_prop): Fix previous change.
24354
24355 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24356
24357 * ftfont.c (struct OpenTypeSpec): New struct.
24358 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
24359 (ftfont_get_open_type_spec): New function.
24360 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
24361
24362 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
24363
24364 2008-02-01 Jason Rumney <jasonr@gnu.org>
24365
24366 * w32font.c (add_font_entity_to_list): Compare only the beginning
24367 of full name.
24368
24369 2008-02-01 Kenichi Handa <handa@m17n.org>
24370
24371 * xdisp.c (handle_auto_composed_prop): Simplify the code.
24372 Never return HANDLED_RECOMPUTE_PROPS.
24373
24374 2008-02-01 Kenichi Handa <handa@m17n.org>
24375
24376 * font.c (font_gstring_produce): Delete it.
24377
24378 * composite.h (COMPOSITION_METHOD):
24379 Handle COMPOSITION_WITH_GLYPH_STRING.
24380
24381 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24382
24383 * xfont.c (Qx): Delete.
24384 (syms_of_xfont): Don't initialize Qx.
24385
24386 * composite.h (enum composition_method):
24387 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
24388
24389 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24390
24391 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
24392 (choose_face_font): Accept new form of font-spec.
24393
24394 * frame.h (font_driver_list): Declare it unconditionally.
24395 (struct frame): Define members font_driver_list and font_data_list
24396 unconditionally.
24397
24398 * fontset.c: Include "font.h" unconditionally.
24399 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
24400 (Fset_fontset_font): Accept a font-spec object.
24401
24402 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
24403 PIXEL_SIZE part a wild card.
24404
24405 * dispextern.h (struct glyph_string): Define members clip and
24406 num_clips unconditionally.
24407 (struct face): Define members font_info and extra unconditionally.
24408
24409 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
24410 ftfont_info only when HAVE_LIBOTF is defined.
24411
24412 2008-02-01 Andreas Schwab <schwab@suse.de>
24413
24414 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
24415 and end.
24416
24417 2008-02-01 Jason Rumney <jasonr@gnu.org>
24418
24419 * w32font.c (w32font_driver): Add new fields.
24420
24421 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24422
24423 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
24424 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
24425 (LIBES): Add @M17N_FLT_CFLAGS@.
24426
24427 * composite.c (compose_text): Don't treat the new style
24428 composition specially.
24429
24430 * emacs.c (main): Call syms_of_font unconditionally.
24431
24432 * font.h (FONT_ENTITY_NOT_LOADABLE)
24433 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
24434 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
24435 (struct font_driver): New member shape.
24436 (font_registry_charsets): Extern it.
24437 (font_find_for_lface, font_prepare_composition): Adjust prototype.
24438 (font_otf_capability, font_drive_otf): Delete their externs.
24439
24440 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
24441 (font_charset_alist, font_registry_charsets): Move from xfont.c
24442 and rename.
24443 (font_prop_validate_otf): New function.
24444 (font_property_table): Register it for QCotf.
24445 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
24446 (font_drive_otf): Delete.
24447 (font_prepare_composition): New arg F. Adjust for the change of
24448 lispy gstring.
24449 (font_find_for_lface): New arg C.
24450 (font_load_for_face): Adjust for the change of font_find_for_lface.
24451 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
24452 lispy gstring.
24453 (Ffont_shape_text): New function.
24454 (Fopen_font): If the font size is not given, use 12-pixel.
24455 (Ffont_at): New arg STRING.
24456 (syms_of_font): Initialize font_charset_alist.
24457 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
24458 conditionally.
24459
24460 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
24461 fonts of the same font-spec. Change the format of RFONT-DEF.
24462 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
24463 Adjust for the change of RFONT-DEF.
24464 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
24465
24466 * ftfont.h: New file.
24467
24468 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
24469 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
24470 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
24471 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
24472 font_otf_capability and font_drive_otf, set ftfont_shape.
24473 (ftfont_list): Adjust for the change of :otf property value.
24474 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
24475 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
24476 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
24477 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
24478 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
24479 (otf_gstring, gstring, m17n_flt_initialized): New variables.
24480
24481 * w32term.c (x_draw_composite_glyph_string_foreground):
24482 Adjust for the change of lispy gstring.
24483
24484 * xdisp.c (handle_composition_prop): Adjust for the change of
24485 lispy gstring. Call a function for auto-composition with the
24486 third arg it->window.
24487 (fill_composite_glyph_string): Adjust for the change of lispy string.
24488 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
24489
24490 * xfaces.c (set_font_frame_param): Adjust for the change of
24491 font_find_for_lface.
24492
24493 * xfont.c (x_font_charset_alist): Move to font.c and rename.
24494 (xfont_registry_charsets): Likewise. Change caller.
24495 (syms_of_xfont): Don't handle x_font_charset_alist.
24496
24497 * xftfont.c: Include "ftfont.h".
24498 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
24499 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
24500 (xftfont_close) [HAVE_LIBOTF]: Close otf.
24501 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
24502 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
24503 Set xftfont_driver.shape to xftfont_shape.
24504
24505 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
24506 the change of lispy gstring.
24507
24508 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24509
24510 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
24511
24512 2008-02-01 Jason Rumney <jasonr@gnu.org>
24513
24514 * w32font.c (w32font_draw): Fill background manually.
24515
24516 2008-02-01 Jason Rumney <jasonr@gnu.org>
24517
24518 * font.c (Qfontp): Remove unused symbol.
24519 (QCantialias): New symbol.
24520 (syms_of_font): Define it.
24521 (font_property_table): Set a validator for QCantialias.
24522
24523 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
24524 Define if not already.
24525 (QCfamily): Share with xfaces.c.
24526 (Qstandard, Qsubpixel, Qnatural): New symbols.
24527 (syms_of_w32font): Define them. Don't define QCfamily here.
24528 (w32_antialias_type, lispy_antialias_type): New functions.
24529 (w32_enumfont_pattern_entity): New arg requested_font.
24530 Set antialias parameter if non-default was requested.
24531 (fill_in_logfont): Fill in lfQuality if :antialias specified.
24532
24533 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24534
24535 * lread.c (read1): Undo the previous change.
24536
24537 2008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
24538
24539 * frame.c (Fdelete_frame): Call font_update_drivers only when
24540 USE_FONT_BACKEND is defined.
24541
24542 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24543
24544 * font.h (struct font_bitmap): New member bits_per_pixel.
24545 (struct font_driver): New members start_for_frame and end_for_frame.
24546 (struct font_data_list): New struct.
24547 (font_put_frame_data, font_get_frame_data): Extern them.
24548
24549 * frame.h (struct frame): New member font_data_list.
24550
24551 * font.c (font_update_drivers): Call driver->start_for_frame and
24552 driver->end_for_frame at proper timings.
24553 (font_put_frame_data, font_get_frame_data): New functions.
24554 (Ffont_spec): Add usage in the docstring.
24555
24556 * frame.c (make_frame): Initialize f->font_data_list to NULL.
24557 (Fdelete_frame): Call font_update_drivers.
24558
24559 * xftfont.c (struct xftface_info): Delete the member xft_draw.
24560 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
24561 (xftfont_get_xft_draw): New function.
24562 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
24563 (xftfont_end_for_frame): New function.
24564 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
24565
24566 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
24567 Change argument. Cache GCs in the per-frame data.
24568 (struct ftxfont_frame_data): New struct.
24569 (ftxfont_draw_bitmap): New arg gc_fore and flush.
24570 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
24571 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
24572 (ftxfont_end_for_frame): New function.
24573 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
24574
24575 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
24576
24577 2008-02-01 Kenichi Handa <handa@m17n.org>
24578
24579 * xselect.c (Vselection_coding_system)
24580 (Vnext_selection_coding_system): Delete them.
24581 (syms_of_xselect): Don't declare selection-coding-system and
24582 next-selection-coding-system. They are declared in select.el.
24583
24584 2008-02-01 Jason Rumney <jasonr@gnu.org>
24585
24586 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
24587
24588 * w32fns.c: Include imm.h.
24589 (get_composition_string_fn, get_ime_context_fn): New optional
24590 system functions.
24591 (globals_of_w32fns): Load them from imm32.dll.
24592 (ignore_ime_char): New flag.
24593 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
24594 WM_IME_ENDCOMPOSITION messages.
24595
24596 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
24597 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
24598
24599 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24600
24601 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
24602 (READCHAR_REPORT_MULTIBYTE): New macro.
24603 (readchar): New 2nd arg MULTIBYTE.
24604 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
24605 Make symbol's name multibyte according to the multibyteness of the
24606 source.
24607
24608 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24609
24610 * xfaces.c (face_for_overlay_string): Call lookup_face with
24611 correct arguments (fix of synching with the trunk).
24612
24613 2008-02-01 Kenichi Handa <handa@m17n.org>
24614
24615 * font.c (font_prop_validate_symbol, font_prop_validate_style)
24616 (font_prop_validate_non_neg, font_prop_validate_spacing):
24617 Delete argument prop_index.
24618 (font_property_table): Change arguments to validater. Change Callers.
24619 (font_lispy_object): Delete.
24620 (font_at): Use font_find_object instead fo font_lispy_object.
24621
24622 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24623
24624 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
24625 and file names.
24626
24627 2008-02-01 Jason Rumney <jasonr@gnu.org>
24628
24629 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
24630 (font_matches_spec): Remove debug output.
24631 (add_font_entity_to_list): Avoid using substituted fonts.
24632
24633 2008-02-01 Jason Rumney <jasonr@gnu.org>
24634
24635 * doc.c (Fsnarf_documentation):
24636 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
24637
24638 2008-02-01 Miles Bader <miles@gnu.org>
24639
24640 * dispextern.h (struct glyph_row): Only define "clip" field if
24641 HAVE_WINDOW_SYSTEM is defined.
24642
24643 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
24644
24645 Fix up multi-tty merge.
24646
24647 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
24648 and indentation.
24649
24650 * xfaces.c (free_realized_face, clear_face_gcs):
24651 Include font_done_for_face in the input_blocked section, just in case.
24652
24653 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
24654 (get_char_face_and_encoding): Undo last change and remove the *other*
24655 duplicate definition (i.e. keep the one that's better scoped and that
24656 includes code for the font-backend).
24657
24658 * terminal.c (create_terminal): Default keyboard_coding to
24659 `no-conversion' and terminal_coding to `undecided'.
24660
24661 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
24662
24663 * fontset.c (free_realized_fontsets): Check that the table entry does
24664 contain a fontset before trying to compare it to `base'.
24665
24666 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
24667 syms_of_charset, and syms_of_coding earlier because init_window_once
24668 now needs Vcoding_system_hash_table to be setup.
24669
24670 * coding.h (default_buffer_file_coding): Remove.
24671
24672 * coding.c (default_buffer_file_coding): Remove.
24673 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
24674 than ->symbol, and use the terminal-local coding system.
24675 (syms_of_coding): Don't setup the coding-systems that are not
24676 terminal-local.
24677 (Fdefine_coding_system_internal): Use XCAR/XCDR.
24678
24679 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
24680 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
24681
24682 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
24683 in chartab.c and were re-added here by mistake.
24684 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
24685
24686 * doc.c (Fsnarf_documentation):
24687 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
24688 src to etc.
24689
24690 * ChangeLog.10: Add mistakenly removed entry.
24691
24692 2008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
24693
24694 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
24695
24696 2008-02-01 Miles Bader <miles@gnu.org>
24697
24698 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
24699 Add extra args to FACE_FOR_CHAR.
24700
24701 2008-02-01 Kenichi Handa <handa@m17n.org>
24702
24703 * keymap.c (where_is_internal_1): If key is a cons, store the copy
24704 in sequence.
24705
24706 * chartab.c (map_sub_char_table, map_char_table): If the range
24707 contains just one character, call the function with that character
24708 even if the depth is not 3.
24709
24710 2008-02-01 Jason Rumney <jasonr@gnu.org>
24711
24712 * w32font.c (w32font_text_extents): Calculate metrics for the
24713 whole string.
24714
24715 2008-02-01 Jason Rumney <jasonr@gnu.org>
24716
24717 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
24718
24719 2008-02-01 Jason Rumney <jasonr@gnu.org>
24720
24721 * w32term.c (x_set_glyph_string_clipping):
24722 Use get_glyph_string_clip_rects.
24723 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
24724 Adjust for the change of struct glyph_string.
24725
24726 * w32font.c (w32font_draw): Do clipping here.
24727
24728 2008-02-01 Kenichi Handa <handa@m17n.org>
24729
24730 * xftfont.c (xftfont_draw): Adjust for the change of struct
24731 glyph_string.
24732
24733 * xterm.c (x_set_glyph_string_clipping):
24734 Use get_glyph_string_clip_rects.
24735 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
24736 Adjust for the change of struct glyph_string.
24737
24738 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
24739 the resulting clip(s}.
24740 (expose_overlaps): Add arg r. Change callers. Set it to
24741 row->clip temporarily.
24742 (expose_window): Redraw rows overlapping the exposed area.
24743
24744 * dispextern.h (struct glyph_row): New member clip.
24745 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
24746 clip_height, new member clip, and num_clips.
24747
24748 2008-02-01 Kenichi Handa <handa@m17n.org>
24749
24750 * data.c (Fchar_or_string_p): Fix docstring.
24751
24752 2008-02-01 Kenichi Handa <handa@m17n.org>
24753
24754 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
24755 create a temporary XftDraw object.
24756
24757 2008-02-01 Kenichi Handa <handa@m17n.org>
24758
24759 * font.c (Ffontp): Fix docstring.
24760
24761 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
24762 strong evidence of ISO-2022.
24763
24764 2008-02-01 Kenichi Handa <handa@m17n.org>
24765
24766 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
24767 SYNTAX_ENTRY_FOLLOW_PARENT.
24768
24769 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
24770
24771 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
24772 its type.
24773 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
24774 Update to the new type of weak_hash_tables and next_weak.
24775
24776 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
24777 a plain C pointer to Lisp_Hash_Table.
24778
24779 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
24780 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
24781 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
24782 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
24783 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
24784 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
24785 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
24786 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
24787 (GC_EQ): Remove since they've been identical to their non-GC_
24788 alter-egos ever since the markbit was eradicated.
24789
24790 * alloc.c:
24791 * buffer.c:
24792 * buffer.h:
24793 * data.c:
24794 * fileio.c:
24795 * filelock.c:
24796 * fns.c:
24797 * frame.h:
24798 * lisp.h:
24799 * macterm.c:
24800 * print.c:
24801 * process.c:
24802 * w32fns.c:
24803 * w32menu.c:
24804 * w32term.c:
24805 * xfns.c:
24806 * xmenu.c:
24807 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
24808
24809 2008-02-01 Kenichi Handa <handa@m17n.org>
24810
24811 * chartab.c (map_sub_char_table): Make it work for the top-level
24812 char-table. Fix handling of parent char-table.
24813 (map_char_table): Adjust for the above change.
24814
24815 2008-02-01 Jason Rumney <jasonr@gnu.org>
24816
24817 * w32font.c (Qgdi): Rename from Qw32.
24818
24819 2008-02-01 Jason Rumney <jasonr@gnu.org>
24820
24821 * w32bdf.c (get_quoted_string): Make function static.
24822
24823 2008-02-01 Kenichi Handa <handa@m17n.org>
24824
24825 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
24826 bigger ascent and descent than those of the font, use them as
24827 font's ascent and descent.
24828
24829 2008-02-01 Kenichi Handa <handa@m17n.org>
24830
24831 * Makefile.in (${lispsource}international/charprop.el): Move this
24832 target within "#ifdef HAVE_UNIDATA" and "#endif".
24833
24834 2008-02-01 Kenichi Handa <handa@m17n.org>
24835
24836 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
24837 (shortlisp): Add ../lisp/language/tai-viet.el.
24838
24839 2008-02-01 Ulrich Mueller <ulm@gentoo.org>
24840
24841 * Makefile.in (${lispsource}international/charprop.el): Depend on
24842 temacs${EXEEXT}.
24843
24844 2008-02-01 Jason Rumney <jasonr@gnu.org>
24845
24846 * w32font.c (w32font_close): Delete the GDI font object.
24847
24848 * w32menu.c: Include character.h.
24849
24850 * w32proc.c: Likewise.
24851
24852 * w32select.c: Likewise.
24853
24854 * makefile.w32-in (w32proc.o): Depend on character.h.
24855
24856 2008-02-01 Jason Rumney <jasonr@gnu.org>
24857
24858 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
24859
24860 * w32menu.c (syms_of_w32menu): Likewise.
24861
24862 * w32proc.c (syms_of_ntproc): Likewise.
24863
24864 * w32select.c (syms_of_w32select): Likewise.
24865
24866 * w32term.c (syms_of_w32term): Likewise.
24867
24868 2008-02-01 Jason Rumney <jasonr@gnu.org>
24869
24870 * w32font.c (w32font_draw): Delete brush after using it.
24871
24872 2008-02-01 Jason Rumney <jasonr@gnu.org>
24873
24874 * w32font.c (w32font_open): Don't set font_idx.
24875 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
24876 to font settings.
24877 (w32font_draw): Fill background explicitly.
24878
24879 2008-02-01 Jason Rumney <jasonr@gnu.org>
24880
24881 * w32term.c (w32_initialize): Don't call w32font_initialize.
24882
24883 * w32font.c (w32font_info): Remove subranges.
24884 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
24885 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
24886 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
24887 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
24888 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
24889 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
24890 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
24891 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
24892 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
24893 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
24894 New symbols.
24895 (font_callback_data): New struct.
24896 (w32font_list, w32font_match): Use it.
24897 (w32font_open): Don't populate subranges.
24898 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
24899 (w32font_encode_char): Always return unicode code-point as-is.
24900 (w32font_text_extents): Supply a transformation matrix to
24901 GetGlyphOutline. Never look up by glyph index. Avoid looping
24902 twice. Use unicode version of GetTexExtentPoint32 instead of
24903 glyph index version.
24904 (set_fonts_frame): Remove.
24905 (w32_enumfont_pattern_entity): Add frame parameter, use it to
24906 set frame parameter. Use backward compatible fake foundries.
24907 Save generic family in extra slot under QCfamily. Make width slot
24908 constant. Save QCspacing value. Save list of scripts instead of
24909 binary subranges.
24910 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
24911 (add_font_entity_to_list): Use font_callback_data struct.
24912 Filter unwanted fonts.
24913 (add_one_font_entity_to_list): Use font_callback_data struct.
24914 (w32_registry): Default to iso10646_1.
24915 (fill_in_logfont): Use dpi from extra slot. Don't bother with
24916 string font registries. Don't fill in font name if it is a generic
24917 family name, fill family instead. Use spacing, family and script
24918 extra info to fill pitch, family and charset fields.
24919 (list_all_matching_fonts): Use font_callback_data struct.
24920 (unicode_range_for_char): Remove.
24921 (font_supported_scripts): New function.
24922 (w32font_initialize): Remove.
24923 (syms_of_w32font): Update which symbols are defined.
24924
24925 2008-02-01 Jason Rumney <jasonr@gnu.org>
24926
24927 * font.c (font_pixel_size): Reverse assq_no_quit args.
24928
24929 * w32term.h (FONT_WIDTH): Report max width, not average.
24930 (FONT_MAX_WIDTH): Remove.
24931 (FONT_AVG_WIDTH): New macro.
24932
24933 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
24934 redefinition of FONT_WIDTH.
24935
24936 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
24937 (w32_cache_char_metrics): Use FONT_WIDTH.
24938
24939 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
24940
24941 2008-02-01 Jason Rumney <jasonr@gnu.org>
24942
24943 * w32font.c (w32font_open): Make lfHeight negative.
24944
24945 * w32fns.c (x_default_font_parameter): Use new style font name.
24946 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
24947
24948 2008-02-01 Jason Rumney <jasonr@gnu.org>
24949
24950 * w32font.c (QCsubranges): New symbol.
24951 (w32font_open, w32font_has_char): Get subranges from subproperty
24952 of extra.
24953 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
24954 (syms_of_w32font): Define :subranges symbol.
24955
24956 * font.c (font_put_extra): Expose externally.
24957
24958 * font.h (font_put_extra): Move declaration from font.c.
24959
24960 * font.c (Ffont_get): Use font driver to determine otf capability.
24961 (adjust_anchor): Check if driver defines anchor_point before using.
24962
24963 * w32font.c (w32font_open): Handle size, height and pixel_size better.
24964 (w32font_draw): Use options.
24965 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
24966 Fix detection of truetype fonts.
24967 (registry_to_w32_charset): Handle charsets other than iso8859-1
24968 expressed as lisp symbols.
24969 (w32_registry): Express charset as lisp symbol.
24970 (fill_in_logfont): Reverse pixel and point height logic.
24971 Don't set width here. Set quality to default.
24972
24973 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
24974 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
24975
24976 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
24977 Remove redundant loop and allocation.
24978
24979 * makefile.w32-in (font.o, w32font.o): New objects.
24980 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
24981 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
24982
24983 * xdisp.c (fill_composite_glyph_string): Make the first arg to
24984 STORE_XCHARB a valid l-value.
24985
24986 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
24987 calculations for non-Truetype fonts.
24988 (x_draw_glyph_string): Sync with xterm.c.
24989 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
24990 Remove redundant code.
24991 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
24992
24993 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
24994 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
24995
24996 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
24997 (x_to_w32_charset, w32_to_x_charset): Expose externally.
24998
24999 * w32font.c: New file for w32 font backend.
25000
25001 2008-02-01 Kenichi Handa <handa@m17n.org>
25002
25003 * term.c: Don't include "buffer.h" twice.
25004
25005 2008-02-01 Kenichi Handa <handa@m17n.org>
25006
25007 * character.c (Funibyte_string): New function.
25008 (syms_of_character): Defsubr it.
25009
25010 2008-02-01 Jason Rumney <jasonr@gnu.org>
25011
25012 * w32term.c [USE_FONT_BACKEND]:
25013 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
25014 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
25015 (x_draw_glyph_string, x_draw_glyph_string_foreground)
25016 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
25017 (x_free_frame_resources): Sync with xterm.c.
25018
25019 2008-02-01 Andreas Schwab <schwab@suse.de>
25020
25021 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
25022 char-table size.
25023
25024 2008-02-01 Kenichi Handa <handa@m17n.org>
25025
25026 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
25027
25028 2008-02-01 Kenichi Handa <handa@m17n.org>
25029
25030 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
25031 font_otf_gpos, add font_drive_otf.
25032
25033 * fontset.c (fontset_find_font): Pay attention to font size
25034 specified for a font.
25035 (reorder_font_vector): Check contents of font_def.
25036
25037 * font.c (struct otf_list): Delete it.
25038 (otf_list): Make it a lisp variable.
25039 (otf_open): Use lispy otf_list.
25040 (generate_otf_features): Rename from parse_gsub_gpos_spec.
25041 (check_otf_features): New function.
25042 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
25043 New functions.
25044 (font_drive_otf): New function merging font_otf_gsub and
25045 font_otf_gpos.
25046 (font_open_for_lface): New arg spec. Change argument order.
25047 (font_load_for_face): Adjust for the change of font_open_for_lface.
25048 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
25049 Ffont_otf_gpos.
25050 (syms_of_font): Staticpro otf_list. Delete defsubr of
25051 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
25052
25053 * xfaces.c (set_font_frame_param): Adjust for the change of
25054 font_open_for_lface.
25055
25056 * font.h (font_open_for_lface): Adjust prototype.
25057 (struct font_driver): Delete members otf_gsub and otf_gpos, add
25058 member otf_drive.
25059 (font_otf_gsub, font_otf_gpos): Delete externs.
25060 (font_drive_otf): Extern it.
25061
25062 2008-02-01 Kenichi Handa <handa@m17n.org>
25063
25064 * font.c (font_at): If the window W is not on a window system,
25065 return Qnil.
25066
25067 * coding.c (produce_chars, encode_coding): Don't call
25068 insert_from_gap if no characters to produce.
25069
25070 2008-02-01 Kenichi Handa <handa@m17n.org>
25071
25072 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
25073 Fclear_face_cache.
25074
25075 * xfaces.c (face_for_font): Check also face->font==font->font.font.
25076
25077 2008-02-01 Miles Bader <miles@gnu.org>
25078
25079 * emacs.c (main): Change default value of `enable_font_backend' to 1.
25080 Parse "--disable-font-backend" option.
25081 (standard_args): Add "--disable-font-backend" option.
25082
25083 2008-02-01 Kenichi Handa <handa@m17n.org>
25084
25085 * fontset.c (fontset_find_font): New function.
25086 (fontset_font): Use fontset_find_font.
25087 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
25088 Register the specified font for all Latin characters.
25089 (new_fontset_from_font): Register the specified font for all Latin
25090 characters.
25091 (dump_fontset): For a realized fontset, include the base fontset
25092 name in the returned vector.
25093
25094 2008-02-01 Kenichi Handa <handa@m17n.org>
25095
25096 * character.h (CHAR_STRING): Cast C to unsigned on calling
25097 char_string.
25098
25099 * character.c (char_string): Type of arg C changed to unsigned.
25100 Signal an error if C is an invalid character code.
25101
25102 * editfns.c (general_insert_function, Fchar_to_string):
25103 Use CHARACTERP, not INTEGERP.
25104
25105 2008-02-01 Kenichi Handa <handa@m17n.org>
25106
25107 * character.h (MIN_MULTIBYTE_LEADING_CODE)
25108 (MAX_MULTIBYTE_LEADING_CODE): New macros.
25109
25110 * regex.c (analyse_first): Fix for multibyte characters in "case
25111 charset:" and "case categoryspec:".
25112
25113 2008-02-01 Andreas Schwab <schwab@suse.de>
25114
25115 * Makefile.in (LIBES): Move standard libraries to the end.
25116
25117 2008-02-01 Kenichi Handa <handa@m17n.org>
25118
25119 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
25120 nonzero, don't shrink the buffer nextb.
25121
25122 * buffer.h (struct buffer_text): New member inhibit_shrinking.
25123
25124 * coding.c (coding_alloc_by_making_gap): New arg offset.
25125 (alloc_destination): Call coding_alloc_by_making_gap with the arg
25126 offset.
25127 (decode_coding_iso_2022): Update coding->safe_charsets.
25128 (decode_coding_gap): Temporarily set
25129 current_buffer->text->inhibit_shrinking to 1.
25130
25131 2008-02-01 Kenichi Handa <handa@m17n.org>
25132
25133 * xterm.c (x_draw_composite_glyph_string_foreground):
25134 Fix indexing into elements of s->cmp and s->char2b.
25135
25136 2008-02-01 Juanma Barranquero <lekktu@gmail.com>
25137
25138 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
25139
25140 2008-02-01 Kenichi Handa <handa@m17n.org>
25141
25142 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
25143 target_multibyte instead of multibyte.
25144 (re_match_2_internal): Call bcmp_translate with target_multibyte.
25145 (bcmp_translate): Change the argument name from multibyte to
25146 target_multibyte.
25147
25148 2008-02-01 Kenichi Handa <handa@m17n.org>
25149
25150 These changes are to compile a regexp into a pattern that can be
25151 used both for multibyte and unibyte targets.
25152
25153 * Makefile.in (search.o): Depend on charset.h.
25154
25155 * character.c (multibyte_char_to_unibyte_safe): New function.
25156
25157 * search.c: Include "charset.h".
25158 (compile_pattern_1): Delete argument multibyte. Don't set
25159 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
25160 (compile_pattern): Don't compare cp->buf.target_multibyte.
25161 Compare cp->buf.charset_unibyte.
25162 (compile_pattern): Set cp->buf.target_multibyte.
25163
25164 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
25165
25166 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
25167
25168 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
25169 multibyte. Change callers.
25170 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
25171 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
25172 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
25173 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
25174 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
25175 (regex_compile): Make the compiled pattern usable both for
25176 multibyte and unibyte targets.
25177 (analyse_first): Make the fastmap usable both for multibyte and
25178 unibyte targets.
25179 (TRANSLATE_VIA_MULTIBYTE): Delete.
25180 (re_match_2_internal): Pay attention to the case that the
25181 multibyteness of bufp and target may be different.
25182
25183 2008-02-01 Kenichi Handa <handa@m17n.org>
25184
25185 * xdisp.c (x_produce_glyphs): When a font is not found, make the
25186 empty box occupy at least one column width.
25187
25188 2008-02-01 Miles Bader <miles@gnu.org>
25189
25190 * Makefile.in: Remove redundant HAVE_XFT clause.
25191
25192 2008-02-01 Kenichi Handa <handa@m17n.org>
25193
25194 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
25195
25196 2008-02-01 Kenichi Handa <handa@m17n.org>
25197
25198 * fontset.c (Finternal_char_font): Fix for the case of POSITION
25199 being nil.
25200
25201 2008-02-01 Kenichi Handa <handa@m17n.org>
25202
25203 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
25204
25205 2008-02-01 Kenichi Handa <handa@m17n.org>
25206
25207 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
25208
25209 2008-02-01 Kenichi Handa <handa@m17n.org>
25210
25211 * search.c (simple_search): Fix previous change.
25212
25213 2008-02-01 Kenichi Handa <handa@m17n.org>
25214
25215 * xftfont.c (ftfont_font_format): Extern declaration.
25216
25217 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
25218
25219 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
25220 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
25221
25222 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
25223 (ftfont_font_format): Fix previous change.
25224
25225 * font.h (Ffont_xlfd_name): EXFUN it.
25226
25227 * font.c (font_parse_xlfd): Fix the array size of `f'.
25228 (register_font_driver): Use EQ to compare driver->type.
25229
25230 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
25231 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
25232 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
25233
25234 2008-02-01 Kenichi Handa <handa@m17n.org>
25235
25236 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
25237 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
25238
25239 2008-02-01 Kenichi Handa <handa@m17n.org>
25240
25241 * xfont.c (xfont_open): Set font->format.
25242
25243 * xftfont.c (xftfont_open): Set font->format.
25244
25245 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
25246 (ftfont_list): Include FC_FONTFORMAT in FcObject.
25247 (ftfont_open): Set font->format.
25248 (ftfont_font_format): New function.
25249
25250 * font.h (struct font): New member format.
25251
25252 * font.c (Qopentype): New variable.
25253 (syms_of_font): Defsym it.
25254 (Fquery_font): Change the format of the last element of the return
25255 value.
25256
25257 2008-02-01 Kenichi Handa <handa@m17n.org>
25258
25259 * xfns.c (xic_create_xfontset): Try the default fontset name as a
25260 last resort.
25261
25262 2008-02-01 Kenichi Handa <handa@m17n.org>
25263
25264 * coding.c (detect_coding_charset): Fix detection of multi-byte
25265 charset.
25266
25267 2008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
25268
25269 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
25270
25271 2008-02-01 Kenichi Handa <handa@m17n.org>
25272
25273 * xdisp.c (get_next_display_element): Set it->face_id for the
25274 first component of a composition.
25275 (x_produce_glyphs): Check if the font is changed or not for composition.
25276
25277 2008-02-01 Kenichi Handa <handa@m17n.org>
25278
25279 * fontset.c (Qlatin): New variable.
25280 (syms_of_fontset): Define it as a lisp symbol.
25281 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
25282
25283 2008-02-01 Kenichi Handa <handa@m17n.org>
25284
25285 * font.c (font_unparse_fcname): Pay attention to the case that
25286 some of font property is a null string.
25287
25288 2008-02-01 Kenichi Handa <handa@m17n.org>
25289
25290 * term.c: Include "composite.h".
25291 (encode_terminal_code): Output all components of composition.
25292 Check the size of encode_terminal_src.
25293 (produce_glyphs): For composition, call produce_composite_glyph.
25294 (append_composite_glyph, produce_composite_glyph): New functions.
25295
25296 * xdisp.c (x_produce_glyphs): In handling composition, if a font
25297 is not found, get font_info from the current ascii face.
25298
25299 2008-02-01 Kenichi Handa <handa@m17n.org>
25300
25301 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
25302 buffer-file-name to Qnil before calling insert_from_buffer.
25303
25304 * font.c (font_unparse_fcname): Pay attention to the case that
25305 foundry is a null string.
25306
25307 2008-02-01 Kenichi Handa <handa@m17n.org>
25308
25309 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
25310
25311 * font.c (Qunicode_sip): New variable.
25312 (syms_of_font): Declare it as a Lisp symbol.
25313
25314 * font.h (Qunicode_sip): Extern it.
25315
25316 2008-02-01 Kenichi Handa <handa@m17n.org>
25317
25318 * composite.c (get_composition_id): Pay attention to TAB component.
25319
25320 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
25321 TAB. Adjust for the change of s->char2b which always points to
25322 the first element of allocated memory.
25323
25324 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
25325
25326 * xdisp.c (handle_composition_prop): Set it->c to the first
25327 non-TAB component.
25328 (fill_composite_glyph_string): Change argument.
25329 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
25330 (x_produce_glyphs): Fix handling of left/right padding.
25331
25332 2008-02-01 Kenichi Handa <handa@m17n.org>
25333
25334 * coding.c (detect_coding_system): Fix for handling off
25335 inhibit_iso_escape_detection. Fix for the case that no coding
25336 system is defined for a specific coding category.
25337
25338 2008-02-01 Kenichi Handa <handa@m17n.org>
25339
25340 * font.c (font_matching_entity): Delete unused local var.
25341
25342 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
25343 opening a font.
25344
25345 * fileio.c (Finsert_file_contents): On recovering a file, assume
25346 Unix-like eol.
25347 (choose_write_coding_system): On auto-saving a file, force
25348 Unix-like eol.
25349
25350 * coding.c (setup_coding_system): Fix setting of
25351 coding->common_flags based on eol_type.
25352 (coding_inherit_eol_type): If PARENT is not nil, be sure to
25353 inherit from it.
25354
25355 2008-02-01 Kenichi Handa <handa@m17n.org>
25356
25357 * alloc.c (NSTATICS): Increas to 0x600.
25358
25359 2008-02-01 Kenichi Handa <handa@m17n.org>
25360
25361 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
25362 (ftfont_list): Don't check :name property.
25363 (ftfont_match): New function.
25364 (ftfont_pattern_entity): If the pattern doesn't contain
25365 FC_SPACING, don't assume FC_MONO.
25366
25367 * font.h (struct font_driver): New member `match'.
25368 (font_update_drivers): Adjust prototype.
25369
25370 * font.c (font_parse_fcname, font_parse_name): Don't change :name
25371 property of FONT.
25372 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring):
25373 Define them unconditionally.
25374 (font_matching_entity): New function.
25375 (font_open_by_name): Try font_matching_entity if exact match is
25376 not found.
25377 (font_update_drivers): Delete the arg FONT. Return a list of
25378 actually used backends. Don't free faces, font caches here.
25379 Don't store data in frame parameters. Don't call x_set_font.
25380 (Ffont_spec): Store :name property as is.
25381 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
25382 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
25383 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
25384 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
25385 Call font->driver->otf_gsub instead of font_otf_gsub.
25386
25387 * frame.c (x_set_font_backend): Do more works that were done in
25388 font_update_drivers before.
25389
25390 * xfont.c (xfont_match): New function.
25391 (xfont_driver): Set xfont_driver.match to xfont_match.
25392 (xfont_draw): Set font in GC if necessary.
25393
25394 * ftxfont.c (ftxfont_match): New function.
25395 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
25396
25397 * xftfont.c (xftfont_match): New function.
25398 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
25399
25400 2008-02-01 Kenichi Handa <handa@m17n.org>
25401
25402 * font.h (struct font): New member scalable.
25403 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
25404 (font_otf_gsub): Adjust prototype.
25405
25406 * font.c (font_otf_capability): Fix handling of the default langsys.
25407 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
25408 Check the contents of SPEC.
25409 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
25410 (check_gstring): New function.
25411 (REPLACEMENT_CHARACTER): New macro.
25412 (font_otf_gsub): New arg alternate_subst. Be sure to set all
25413 glyph codes of GSTRING.
25414 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
25415 (font_prepare_composition): Set cmp->glyph_len.
25416 (font_open_entity): Set font->scalable.
25417 (Ffont_get): Handle :otf property.
25418 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates):
25419 New functions.
25420 (Fquery_font): Use font->font.full_name.
25421 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
25422 Sfont_otf_alternates.
25423
25424 * ftfont.c (ftfont_open): Set font->font.full_name and
25425 font->font.name properly. Fix calculation of font->font.height
25426 and font->min_width.
25427
25428 * ftxfont.c (ftxfont_create_gcs): New function.
25429 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
25430 (ftxfont_draw_backgrond): Fix filling region.
25431 (ftxfont_default_fid): New function.
25432 (ftxfont_open): Set xfont->fid to the return value of
25433 ftxfont_default_fid.
25434 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
25435 (ftxfont_done_face): Free only GCs that are created by
25436 ftxfont_create_gcs.
25437 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
25438
25439 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
25440 Clip to src->width, etc (not src->clip_XXX).
25441
25442 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
25443 FontBackend frame parameter.
25444
25445 2008-02-01 Kenichi Handa <handa@m17n.org>
25446
25447 * font.h (struct font_driver_list): New member `on'.
25448 (Fclear_font_cache): EXFUN it.
25449 (font_update_drivers): Extern it.
25450
25451 * font.c (font_unparse_fcname): Fix typo (swidth->width).
25452 (font_list_entities): Check driver_list->on.
25453 (register_font_driver): Initialize `on' member to 0.
25454 (font_update_drivers): New function.
25455 (Fclear_font_cache): Check driver_list->on.
25456
25457 * frame.h (Qfont_backend): Extern it.
25458 (x_set_font_backend): Extern it.
25459
25460 * frame.c (Qfont_backend): New variable.
25461 (frame_parms): New element for font-backend.
25462 (x_set_font_backend): New function.
25463
25464 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
25465 FontBackend frame parameter.
25466 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
25467 x_set_font_backend.
25468
25469 * xfont.c (xfont_list): Don't try listing by :name property if the
25470 name is not for XLFD.
25471
25472 2008-02-01 Kenichi Handa <handa@m17n.org>
25473
25474 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
25475 (LGLYPH_SET_TO): New macros.
25476 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
25477 element of G is vector or not.
25478 (font_at): Extern it.
25479
25480 * font.c: Include window.h.
25481 (font_lispy_object): New function.
25482 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
25483 end of valid glyph.
25484 (font_close_object): Fix getting (struct font *).
25485 (font_at): New function.
25486 (Ffont_get): If FONT is a font-object, get entity from it.
25487 (Ffont_make_gstring): Initialize elements of glyphs with nil.
25488 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX.
25489 Fix range check.
25490 (Ffont_at): New function.
25491 (syms_of_font): Defsubr Sfont_at.
25492
25493 * xdisp.c (it_props): Move the entry for Qauto_composed to just
25494 before the entry for Qcomposition.
25495 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
25496 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
25497 the font in gstring.
25498 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
25499 LGLYPH_FORM (g) to detect the end of valid glyph.
25500 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
25501 we are composing with gstring.
25502
25503 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
25504 Check if adjustment is vector or not.
25505
25506 * Makefile.in (font.o): Make it depends on window.h.
25507
25508 2008-02-01 Kenichi Handa <handa@m17n.org>
25509
25510 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
25511 adjustment is vector or not.
25512
25513 2008-02-01 Miles Bader <miles@gnu.org>
25514
25515 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
25516
25517 2008-02-01 Kenichi Handa <handa@m17n.org>
25518
25519 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
25520 (LGLYPH_SET_WIDTH): Adjust for the change of LGLYPH format.
25521 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
25522
25523 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
25524 (DEVICE_DELTA): Fix typo.
25525 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
25526 LGLYPH format.
25527
25528 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
25529 the change of LGLYPH format.
25530
25531 2008-02-01 Kenichi Handa <handa@m17n.org>
25532
25533 * ftfont.c (ftfont_list): Fix typo.
25534 (ftfont_build_basic_charsets): Don't include letters with diacritics.
25535
25536 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
25537
25538 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
25539
25540 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
25541 xftface_info is non-NULL.
25542
25543 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
25544
25545 * ftfont.c (ftfont_list): Move misplaced #endif.
25546
25547 2008-02-01 Kenichi Handa <handa@m17n.org>
25548
25549 * ftfont.c (ftfont_list): Pay attention to the case that
25550 FC_CAPABILITY is not defined.
25551
25552 2008-02-01 Kenichi Handa <handa@m17n.org>
25553
25554 * xftfont.c (xftfont_open): Set charset related members to -1.
25555
25556 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
25557 QCname.
25558 (ftfont_open): Set charset related members to -1.
25559
25560 * fontset.c (Votf_script_alist): New variable.
25561 (syms_of_fontset): Initialize it.
25562 (fontset_font): Delete unused variable.
25563
25564 * fontset.h (Votf_script_alist): Extern it.
25565
25566 * font.c (font_find_for_lface): Optimize code.
25567
25568 * font.h (font_close_object, font_merge_old_spec): Extern them.
25569
25570 2008-02-01 Kenichi Handa <handa@m17n.org>
25571
25572 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
25573 (syms_of_font): Initialize them.
25574 (font_pixel_size): Allow float value in dpi.
25575 (font_prop_validate_type): Delete.
25576 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
25577 Change caller.
25578 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
25579 (font_prop_validate_extra): Delete.
25580 (font_prop_validate_spacing): New function.
25581 (font_property_table): Add elements for all known properties.
25582 (get_font_prop_index): Rename from check_font_prop_name.
25583 New argument FROM. Change caller.
25584 (font_prop_validate): Validate all known properties.
25585 (font_put_extra): Delete argument force. Change caller.
25586 (font_expand_wildcards): Make it static. Fix the way of shrinking
25587 the possible range.
25588 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
25589 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
25590 Change caller.
25591 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
25592 (font_parse_fcname): Delete argument merge. Fix parsing of point
25593 size. Don't validate properties values here. Change caller.
25594 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
25595 (font_open_by_name): Delete unused variable.
25596 (Ffont_spec): Likewise. Validate property values.
25597 (Ffont_match_p): New function.
25598
25599 * font.h (QCscalable): Extern it.
25600 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
25601
25602 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
25603
25604 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
25605 (xfont_list_pattern): New function.
25606 (xfont_list): Use xfont_list_pattern.
25607
25608 2008-02-01 Kenichi Handa <handa@m17n.org>
25609
25610 * font.h (Flist_fonts): EXFUN it.
25611
25612 2008-02-01 Jason Rumney <jasonr@gnu.org>
25613
25614 * w32term.c (w32_initialize): Add back smoothing_type and
25615 smoothing_enabled definitions.
25616
25617 2008-02-01 Kenichi Handa <handa@m17n.org>
25618
25619 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
25620 s->face->font on determining underline position.
25621
25622 2008-02-01 Kenichi Handa <handa@m17n.org>
25623
25624 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
25625 (font_has_char): Accept font-object too.
25626 (font_find_for_lface): Try at first with a size specified in face.
25627
25628 2008-02-01 Kenichi Handa <handa@m17n.org>
25629
25630 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
25631 font_open_by_name.
25632
25633 2008-02-01 Kenichi Handa <handa@m17n.org>
25634
25635 * font.h (QCspacing, QCdpi): Extern them.
25636 (enum font_spacing): New enum.
25637 (FONT_PIXEL_SIZE_QUANTUM): New macro.
25638
25639 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
25640 (QCspacing, QCdpi): New variables.
25641 (syms_of_font): Initialize them.
25642 (font_pixel_size): New function.
25643 (font_put_extra): New function.
25644 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
25645 in FONT_EXTRA.
25646 (font_parse_fcname): Handle enumerated values (e.g. bold).
25647 Fix handling font size. Add QCname property that contains only
25648 unknown properties.
25649 (font_score): Change argument. Change caller. Pay attention to
25650 FONT_PIXEL_SIZE_QUANTUM.
25651 (font_sort_entites, font_list_entities, font_find_for_lface)
25652 (font_open_for_lface, font_open_by_name): Fix handling of font size.
25653 (Ffont_spec): Add QCname property that contains only unknown properties.
25654
25655 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq.
25656 Don't include weight in listing pattern, instead check weight of each
25657 listed font. Don't include scalable in pattern. Pay attention to
25658 FONT_PIXEL_SIZE_QUANTUM.
25659
25660 2008-02-01 Kenichi Handa <handa@m17n.org>
25661
25662 * font.c (font_parse_fcname): Fix parsing of point-size.
25663 (font_unparse_fcname): Produce symbolic names for style properties.
25664 (font_list_entities): Handle float size correctly.
25665 (font_open_by_name): Prefer `normal' property values if the name
25666 doesn't specify them.
25667
25668 * fontset.c (Finternal_char_font): Use font_get_name, not
25669 Ffont_xlfd_name.
25670
25671 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
25672 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
25673 pattern. Don't force scalable.
25674
25675 * xftfont.c (xftfont_open): For generating a name, start from
25676 96-byte buffer.
25677
25678 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
25679
25680 * frame.h (x_new_fontset2): Fix prototype.
25681
25682 2008-02-01 Kenichi Handa <handa@m17n.org>
25683
25684 * font.h (struct font_driver): Delete member parse_name.
25685 (font_match_p, font_get_spec, font_parse_fcname)
25686 (font_unparse_fcname): Extern them.
25687 (font_get_name): Adjust prototype.
25688
25689 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
25690 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
25691 (font_expand_wildcards): Fix handling ENCODING field.
25692 Avoid unnecessary checks for weight, slant, and swidth.
25693 (font_parse_fcname): New function.
25694 (font_unparse_fcname): New function.
25695 (font_parse_name): New function.
25696 (font_match_p): New function.
25697 (font_get_name): Change return value to Lisp string.
25698 (font_get_spec): New function.
25699 (Qunspecified, Qignore_defface): Don't extern them.
25700 (font_find_for_lface): Assume that LFACE is fully specified.
25701 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
25702 object, use it for FACE.
25703 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
25704 driver->parse_name.
25705 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
25706
25707 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
25708 prototype.
25709
25710 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
25711 argument F. Don't call Fnew_fontset. Instead, directly call
25712 make_fontset.
25713
25714 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
25715
25716 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
25717 of x_new_fontset2.
25718
25719 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
25720 (Qsans__serif): New variables.
25721 (ftfont_generic_family_list): New variable.
25722 (syms_of_ftfont): Initialize the above variables.
25723 (ftfont_pattern_entity): Delete argument NAME.
25724 (ftfont_list_generic_family): New function.
25725 (ftfont_parse_name): Delete this function.
25726 (ftfont_list): Try generic family only when FcFontList found no font.
25727 (ftfont_list_family): Fix args to FcObjectSetBuild.
25728
25729 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
25730 object in attrs[LFACE_FONT_INDEX].
25731 (set_lface_from_font_name): Cancel all changes for font-backend.
25732 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
25733 function.
25734 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
25735 font object in QCfont attribute.
25736 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
25737 (realize_default_face) [USE_FONT_BACKEND]: Call
25738 set_lface_from_font_and_fontset.
25739
25740 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
25741 "fixed", and signal error here if no suitable font was found.
25742
25743 * xfont.c (xfont_parse_name): Delete this function.
25744
25745 * xftfont.c (xftfont_open): Change coding style of error
25746 handling. Generate fontconfig's fontname pattern.
25747
25748 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
25749 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
25750
25751 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
25752 Both args FONTSET and FONT_OBJECT must be existing ones.
25753
25754 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25755
25756 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
25757
25758 2008-02-01 Kenichi Handa <handa@m17n.org>
25759
25760 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
25761
25762 * font.h (struct font): Fix typo.
25763
25764 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
25765 XLFD_XXX_INDEX.
25766 (enum xlfd_field_mask): New enum.
25767 (intern_font_field): Change argument. Change caller. If digits
25768 are followed by non-digits, return a symbol.
25769 (font_expand_wildcards): New function.
25770 (font_parse_xlfd): Fix wildcard handling.
25771 (Ffont_spec): If :name is specified, reflect the info in the other
25772 properties.
25773
25774 * ftfont.c (ftfont_pattern_entity): Fix typo.
25775 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
25776 locale.
25777
25778 2008-02-01 Kenichi Handa <handa@m17n.org>
25779
25780 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
25781
25782 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
25783 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
25784 registry doesn't specify encoding part.
25785 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
25786 (font_open_by_name): At first try parsing the name.
25787 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
25788 as Lisp symbols.
25789
25790 * fontset.c (reorder_font_vector): Pay attention to the case that
25791 the 3rd element of font_def is nil.
25792 (fontset_font): For the default fontset, append one more fontset
25793 elements for a script-based font specification. Don't add script
25794 attribute on finding a font.
25795 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
25796 font name.
25797 (fontset_ascii_font): If a font can't be opened, return nil.
25798
25799 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
25800 (ftfont_pattern_entity): New function.
25801 (ftfont_get_cache): Assume that freetype_font_cache is already
25802 initialized.
25803 (ftfont_list): Handle the case that a file is specified in font
25804 name. Use ftfont_pattern_entity to generate entities.
25805 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
25806 (syms_of_ftfont): Initialize freetype_font_cache.
25807
25808 * xftfont.c (xftfont_open): Make the font name fontconfig's
25809 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
25810 (xftfont_close): Free font->font.name if not NULL.
25811
25812 * xfont.c (xfont_list): If script is specified for a font, return
25813 null_vector.
25814 (xfont_list_family): Declare argument type.
25815
25816 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
25817 name, set LFACE_FONT (lface) to nil.
25818
25819 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
25820 return Qnil.
25821
25822 2008-02-01 Kenichi Handa <handa@m17n.org>
25823
25824 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
25825 (standard_args): Add "-enable-font-backend".
25826
25827 2008-02-01 Kenichi Handa <handa@m17n.org>
25828
25829 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
25830 (struct xftdraw_list, xftdraw_list): Delete them.
25831 (register_xftdraw, check_xftdraw): Delete them.
25832 (xftfont_prepare_face): Don't call register_xftdraw.
25833 (xftfont_done_face): Don't call check_xftdraw.
25834 (xftfont_draw): Get background color only when with_background is
25835 nonzero.
25836
25837 * xfont.c (xfont_encode_char): Fix calculation of char2b.
25838
25839 2008-02-01 Kenichi Handa <handa@m17n.org>
25840
25841 These changes are for the new font handling codes.
25842
25843 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
25844 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
25845 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
25846 (FONTSRC, FONTOBJ): New variables.
25847 (obj): Add $(FONTOBJ).
25848 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
25849 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
25850 @LIBOTF_LIBS@.
25851 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
25852 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
25853
25854 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
25855
25856 * character.h (Vscript_representative_chars): Extern it.
25857
25858 * character.c (Vscript_representative_chars): New variable.
25859 (syms_of_character): Declare it as a Lisp variable.
25860
25861 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
25862 enable_font_backend is nonzero, accept the composition method
25863 COMPOSITION_WITH_GLYPH_STRING.
25864
25865 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
25866 enumeration COMPOSITION_WITH_GLYPH_STRING.
25867
25868 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
25869 members clip_x, clip_y, clip_width, and clip_height.
25870 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
25871
25872 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
25873 --enable-font-backend. Call syms_of_font.
25874
25875 * fns.c (assoc_no_quit): New function.
25876
25877 * fontset.h (FONT_INFO_FROM_FACE): New macro.
25878 (face_for_font, new_fontset_from_font)
25879 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
25880
25881 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
25882 (fontset_font, fontset_ascii, face_for_char)
25883 (make_fontset_for_ascii_face, Ffont_info)
25884 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
25885 is nonzero, use font-backend mechanism.
25886 (find_font_encoding): Make it non-static.
25887 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
25888 New functions.
25889
25890 * frame.h (struct frame): New members resx and resy.
25891 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
25892 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
25893
25894 * frame.c [USE_FONT_BACKEND]: Include "font.h".
25895 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
25896
25897 * lisp.h (assoc_no_quit): Extern it.
25898
25899 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
25900 Through out the file, use FONT_INFO_FROM_FACE instead of
25901 FONT_INFO_FROM_ID, use get_per_char_metric instead of
25902 rif->per_char_metric.
25903 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
25904 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
25905 (get_glyph_face_and_encoding, fill_composite_glyph_string)
25906 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
25907 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
25908 nonzero, use font-backend mechanism.
25909 (get_per_char_metric): New function.
25910
25911 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
25912 (set_lface_from_font_name)
25913 (set_font_frame_param, free_realized_face)
25914 (prepare_face_for_display, clear_face_gcs)
25915 (Finternal_set_font_selection_order, realize_x_face)
25916 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
25917 font-backend mechanism.
25918 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
25919 (load_face_font) [USE_FONT_BACKEND]: Abort.
25920 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
25921 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
25922
25923 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
25924 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
25925 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
25926 nonzero, register all available font drivers.
25927 Call x_default_font_parameter for deciding a font.
25928 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
25929
25930 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
25931 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
25932 (x_set_glyph_string_clipping_exactly)
25933 (x_compute_glyph_string_overhangs)
25934 (x_draw_glyph_string_foreground)
25935 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
25936 (x_free_frame_resources) [USE_FONT_BACKEND]: If
25937 enable_font_backend is nonzero, use font-backend mechanism.
25938 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
25939
25940 2008-02-01 Kenichi Handa <handa@m17n.org>
25941
25942 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
25943 system_eol_type.
25944 (syms_of_coding): Initialize system_eol_type.
25945
25946 * process.c (Fset_process_coding_system): Inherit system's eol
25947 format if necessary.
25948
25949 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25950
25951 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
25952
25953 2008-02-01 Kenichi Handa <handa@m17n.org>
25954
25955 * coding.c (decode_eol): Pay attention to buffer relocation in
25956 del_range_2.
25957 (decode_coding): Call decode_eol before restoring undo_list.
25958
25959 2008-02-01 Kenichi Handa <handa@m17n.org>
25960
25961 * charset.c (Fdefine_charset_internal): Fix setting of
25962 emacs_mule_bytes.
25963
25964 2008-02-01 Kenichi Handa <handa@m17n.org>
25965
25966 * keyboard.c (read_char): Check if C is a character or not before
25967 looking up Vkeyboard_translate_table.
25968
25969 2008-02-01 Kenichi Handa <handa@m17n.org>
25970
25971 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION):
25972 Fix condition to terminate the loop.
25973
25974 2008-02-01 Kenichi Handa <handa@m17n.org>
25975
25976 * coding.c (produce_composition): Compare charbuf[i] instead of
25977 args[i] against 0.
25978 (Fterminal_coding_system): Use EQ to compare Lisp objects.
25979
25980 2008-02-01 Kenichi Handa <handa@m17n.org>
25981
25982 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
25983 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
25984 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
25985 detect_coding.
25986 (emacs_mule_char): Handle old style (Emacs 20) component character
25987 of a composition.
25988 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
25989 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
25990 composition rule.
25991 (decode_coding_emacs_mule): Handle invalid bytes correctly.
25992
25993 2008-02-01 Kenichi Handa <handa@m17n.org>
25994
25995 * coding.c (encode_coding_ccl): Allocate destination dynamically
25996 when necessary.
25997
25998 2008-02-01 Kenichi Handa <handa@m17n.org>
25999
26000 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
26001 the loop. When quitted, show a proper error message.
26002
26003 2008-02-01 Kenichi Handa <handa@m17n.org>
26004
26005 * xterm.c (x_set_glyph_string_clipping_exactly):
26006 Set src->clip_head and src->clip_tail temporarily instead of src->hl.
26007
26008 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
26009 character sequence.
26010 (Fccl_execute_on_string): Use ASET, not XSET.
26011
26012 2008-02-01 Kenichi Handa <handa@m17n.org>
26013
26014 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
26015
26016 2008-02-01 Kenichi Handa <handa@m17n.org>
26017
26018 * coding.c (decode_coding): Fix the condition of terminating the
26019 decoding loop.
26020
26021 2008-02-01 Kenichi Handa <handa@m17n.org>
26022
26023 * data.c (Faset): On setting a character bigger than 255 in a
26024 unibyte string, signal an error instead of make the string multibyte.
26025
26026 2008-02-01 Kenichi Handa <handa@m17n.org>
26027
26028 * charset.c (map_charset_chars): Fix for ascii-compatible charset
26029 made by a mapping table.
26030
26031 2008-02-01 Kenichi Handa <handa@m17n.org>
26032
26033 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
26034 not.
26035 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
26036 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
26037
26038 * xterm.c (x_draw_composite_glyph_string_foreground):
26039 Check s->face is NULL or not.
26040
26041 2008-02-01 Kenichi Handa <handa@m17n.org>
26042
26043 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
26044 (x_draw_glyph_string): Fix drawing of right_overhang and
26045 left_overhang around/on cursor.
26046
26047 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
26048
26049 2008-02-01 Kenichi Handa <handa@m17n.org>
26050
26051 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
26052
26053 2008-02-01 Kenichi Handa <handa@m17n.org>
26054
26055 * coding.c (Fdefine_coding_system_internal)
26056 (Fdefine_coding_system_alias): Avoid a duplicated element in
26057 Vcoding_system_alist.
26058
26059 2008-02-01 Kenichi Handa <handa@m17n.org>
26060
26061 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
26062
26063 * coding.c (Qcoding_system_define_form): New variable.
26064 (syms_of_coding): Intern and staticpro it.
26065 (Fcoding_system_p): Check Qcoding_system_define_form.
26066 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
26067
26068 * coding.h (CODING_SYSTEM_P): If ID is not available, call
26069 Fcoding_system_p.
26070 (CHECK_CODING_SYSTEM): If ID is not available, call
26071 Fcheck_coding_system.
26072 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
26073 Try also Fcheck_coding_system.
26074
26075 2008-02-01 Kenichi Handa <handa@m17n.org>
26076
26077 * coding.c (code_conversion_restore): GCPRO arg.
26078
26079 2008-02-01 Kenichi Handa <handa@m17n.org>
26080
26081 * character.c (lisp_string_width): Check multibyteness of STRING.
26082
26083 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26084
26085 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
26086 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
26087 (decode_mac_font_name): Use decode_coding_c_string instead of
26088 decode_coding.
26089 (x_load_font): Initialize fontp->fontset to -1.
26090 Set fontp->encoding_type.
26091
26092 2008-02-01 Kenichi Handa <handa@m17n.org>
26093
26094 * search.c (search_buffer): Give up BM search on case-fold-search
26095 if one of a target character has a case-equivalence of different
26096 byte length even if that target character is an ASCII.
26097 (simple_search): Fix calculation of byte length of matched text.
26098 (boyer_moore): Fix handling of case-equivalent multibyte characters.
26099
26100 2008-02-01 Kenichi Handa <handa@m17n.org>
26101
26102 * coding.c (decode_coding): Fix handling of invalid bytes.
26103
26104 2008-02-01 Kenichi Handa <handa@m17n.org>
26105
26106 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
26107 Unicode characters.
26108
26109 2008-02-01 Kenichi Handa <handa@m17n.org>
26110
26111 * coding.c (encode_coding_object): If a pre-write-conversion
26112 function makes a new buffer, kill it.
26113
26114 2008-02-01 Kenichi Handa <handa@m17n.org>
26115
26116 * coding.c (QCascii_compatible_p): New variable.
26117 (syms_of_coding): Initialize it.
26118 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
26119 calling string_char.
26120 (record_conversion_result): Add `default:' case.
26121 (coding_charset_list): Delete unused variable `coding_type'.
26122 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
26123 property in the plist of the coding system.
26124 (Fcoding_system_put): Check QCascii_compatible_p.
26125
26126 2008-02-01 Miles Bader <miles@gnu.org>
26127
26128 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
26129 removed calculation of frame `f', as it's now used.
26130
26131 2008-02-01 Kenichi Handa <handa@m17n.org>
26132
26133 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
26134 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
26135 (UNIDATA): New variable.
26136 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
26137 (bootstrap-emacs${EXEEXT}): Depends on charprop.el.
26138 Run $(RUN_TEMACS) unconditionally.
26139
26140 2008-02-01 Kenichi Handa <handa@m17n.org>
26141
26142 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
26143 (admindir): New variable.
26144 ($(lispsource)international/charprop.el): New target.
26145
26146 2008-02-01 Miles Bader <miles@gnu.org>
26147
26148 * character.c (chars-in-region): Remove obsolete function.
26149 (syms_of_character): Remove its initialization.
26150
26151 2008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
26152
26153 * w32select.c (validate_coding_system)
26154 (setup_windows_coding_system): New functions.
26155 (convert_to_handle_as_coded, Fw32_get_clipboard_data):
26156 Use setup_windows_coding_system.
26157 (setup_config, Fw32_get_clipboard_data):
26158 Use validate_coding_system.
26159 (Fx_selection_exists): Move call to setup_config to a place
26160 where signals are allowed.
26161
26162 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
26163 (Fcheck_coding_system): Add declarations.
26164
26165 2008-02-01 Kenichi Handa <handa@m17n.org>
26166
26167 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
26168
26169 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26170
26171 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
26172 string as the second argument for x_new_fontset.
26173
26174 2008-02-01 Kenichi Handa <handa@m17n.org>
26175
26176 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
26177 (encode_coding_object): Use safe_call instead of call2.
26178
26179 2008-02-01 Kenichi Handa <handa@m17n.org>
26180
26181 * fontset.c (Fset_fontset_font): Check family element of a given vector.
26182
26183 * Makefile.in (lisp): Include charprop.el.
26184
26185 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26186
26187 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
26188 Not sure if it's unnecessary.
26189
26190 2008-02-01 Steven Tamm <steventamm@mac.com>
26191
26192 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
26193 some possibly unnecessary fontset checking code that crashed
26194 when creating a new frame.
26195
26196 2008-02-01 Kenichi Handa <handa@m17n.org>
26197
26198 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
26199 lookup_face.
26200
26201 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
26202
26203 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
26204
26205 2008-02-01 Kenichi Handa <handa@m17n.org>
26206
26207 * coding.c: Cancel the change done in HEAD on 2008-02-01.
26208 (coding_charset_list): New function.
26209
26210 * coding.h (coding_charset_list): Extern it.
26211
26212 2008-02-01 Kenichi Handa <handa@m17n.org>
26213
26214 * fontset.c (Fset_fontset_font): Call find_font_encoding with
26215 concatenation of family and registry.
26216
26217 2008-02-01 Kenichi Handa <handa@m17n.org>
26218
26219 * character.h (BYTE8_STRING): Fix typo.
26220
26221 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
26222 string to multibyte (sync to HEAD).
26223
26224 * casefiddle.c (casify_region): Handle changes in byte-length
26225 using replace_range_2 (sync to HEAD).
26226
26227 2008-02-01 Andreas Schwab <schwab@suse.de>
26228
26229 * chartab.c (map_char_table): GCPRO table and arg.
26230
26231 2008-02-01 Kenichi Handa <handa@m17n.org>
26232
26233 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
26234 already at limit.
26235
26236 2008-02-01 Kenichi Handa <handa@m17n.org>
26237
26238 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
26239 instead of fast_c_string_match_ignore_case.
26240 (find_font_encoding): Change argument to Lisp_Object.
26241 Use fast_string_match_ignore_case instead of
26242 fast_c_string_match_ignore_case. Change caller.
26243
26244 2008-02-01 Kenichi Handa <handa@m17n.org>
26245
26246 * xdisp.c (get_next_display_element): In unibyte case, decide to
26247 display in octal form by checking a character by
26248 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
26249
26250 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
26251
26252 * character.c (unibyte_has_multibyte_table): New variable.
26253
26254 * character.h (unibyte_has_multibyte_table): Extern it.
26255 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
26256
26257 2008-02-01 Kenichi Handa <handa@m17n.org>
26258
26259 * coding.c (encode_coding_iso_2022): Fix handling of charset
26260 annotation.
26261
26262 2008-02-01 Kenichi Handa <handa@m17n.org>
26263
26264 * coding.c (setup_coding_system): If coding_system is nil, use
26265 Qundecided.
26266 (Fterminal_coding_system): Return nil if terminal coding system is
26267 `undecided'.
26268 (syms_of_coding): Define coding-system `undecided' here.
26269 Setup terminal_coding as `undecided'.
26270
26271 2008-02-01 Kenichi Handa <handa@m17n.org>
26272
26273 * xdisp.c (message_dolog, set_message_1):
26274 Call unibyte_char_to_multibyte with arg type int.
26275
26276 * lread.c (read1): Fix reading of a char-table.
26277
26278 * print.c (print_object): Include sub char-table in circularities
26279 detection.
26280
26281 2008-02-01 Kenichi Handa <handa@m17n.org>
26282
26283 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
26284 Append the found sequences in car of ARGS instead of prepending.
26285
26286 2008-02-01 Kenichi Handa <handa@m17n.org>
26287
26288 * fileio.c (report_file_error): Make a unibyte string from
26289 strerror (errorno).
26290 (Fsubstitute_in_file_name): Fix the arg to
26291 unibyte_char_to_multibyte. It is evaluated twice.
26292
26293 2008-02-01 Kenichi Handa <handa@m17n.org>
26294
26295 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
26296
26297 2008-02-01 Kenichi Handa <handa@m17n.org>
26298
26299 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
26300 BOM is not found.
26301 (detect_coding, detect_coding_system): Optimization for ISO-2022
26302 when no 8-bit data is found.
26303
26304 2008-02-01 Jason Rumney <jasonr@gnu.org>
26305
26306 * w32fns.c (x_to_w32_font): Update to use new coding struct.
26307
26308 2008-02-01 Kenichi Handa <handa@m17n.org>
26309
26310 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
26311 CHARS.
26312
26313 2008-02-01 Steven Tamm <steventamm@mac.com>
26314
26315 * macterm.c (mac_encode_char): Add charset argument and update
26316 to use encoding_type.
26317 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
26318 switch to pure fontset.
26319 (decode_mac_font_name): Temporarily remove decoding.
26320 (x_font_name_to_mac_font_name): Temporarily remove encoding.
26321 (x_load_font): Temporarily remove encoding.
26322
26323 2008-02-01 Kenichi Handa <handa@m17n.org>
26324
26325 * xfaces.c (Fface_font): If frame is not on a window system,
26326 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
26327 refer to face->font.
26328 (split_font_name_into_vector, build_font_name_from_vector)
26329 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
26330 when HAVE_WINDOW_SYSTEM is defined.
26331
26332 2008-02-01 Kenichi Handa <handa@m17n.org>
26333
26334 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
26335 (x_produce_glyphs): Fix setting of members of cmp in case
26336 cmp->glyph_len is zero.
26337
26338 * fontset.c (Fset_fontset_font): Fix docstring.
26339 (Ffontset_info): Make it backward compatible. New arg ALL.
26340
26341 2008-02-01 Kim F. Storm <storm@cua.dk>
26342
26343 * process.c (read_process_output): Grow decoding_buf when needed;
26344 this could cause a crash in allocate_string and compact_small_strings.
26345
26346 2008-02-01 Kenichi Handa <handa@m17n.org>
26347
26348 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
26349
26350 2008-02-01 Kenichi Handa <handa@m17n.org>
26351
26352 * coding.c (setup_coding_system): Set coding->common_flags
26353 correctly for raw-text.
26354 (consume_chars): On encoding unibyte text by raw-text, don't check
26355 multibyte form.
26356 (encode_coding): On encoding by raw-text, never use translation tables.
26357
26358 * fileio.c (e_write): Short cut for the case of no encoding.
26359
26360 2008-02-01 Kenichi Handa <handa@m17n.org>
26361
26362 * coding.c (detect_coding, detect_coding_system): Delete unused
26363 variables.
26364
26365 2008-02-01 Kenichi Handa <handa@m17n.org>
26366
26367 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
26368 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
26369
26370 2008-02-01 Kenichi Handa <handa@m17n.org>
26371
26372 * coding.c (Ffind_coding_systems_region_internal):
26373 Include raw-text and no-conversion in the result.
26374
26375 2008-02-01 Kenichi Handa <handa@m17n.org>
26376
26377 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
26378 (load_font_get_repertory): Delete unnecessary check of ENCODING of
26379 FONT_DEF.
26380 (font_def_arg, add_arg, from_arg, to_arg): New args.
26381 (set_fontset_font): Change argument.
26382 (Fset_fontset_font): Fix for the case that TARGET is a script
26383 name and charset name.
26384 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
26385
26386 2008-02-01 Kenichi Handa <handa@m17n.org>
26387
26388 * fontset.c (fontset_font): Rename from fontset_face. Change return
26389 value.
26390 (face_suitable_for_char_p, face_for_char): Adjust for the change
26391 of fontset_font.
26392 (make_fontset_for_ascii_face): Fix setting of the fontset element
26393 for ASCII.
26394 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
26395 to get a font name.
26396 (Ffontset_info): Adjust for the change of fontset_font.
26397
26398 * coding.c (emacs_mule_char): Check invalid code more rigidly.
26399
26400 * character.h (LEADING_CODE_LATIN_1_MIN)
26401 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
26402
26403 2008-02-01 Kenichi Handa <handa@m17n.org>
26404
26405 * editfns.c (check_translation): New function.
26406 (Ftranslate_region_internal): Handle M:N mapping.
26407
26408 2008-02-01 Kenichi Handa <handa@m17n.org>
26409
26410 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
26411
26412 2008-02-01 Kenichi Handa <handa@m17n.org>
26413
26414 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
26415 goto invalid_code.
26416 (decode_coding_iso_2022): Fix handling of invalid designation.
26417
26418 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
26419 after calling code_conversion_save.
26420
26421 2008-02-01 Kenichi Handa <handa@m17n.org>
26422
26423 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
26424
26425 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
26426
26427 * fontset.c: Include "intervals.h".
26428 (fontset_face): Fix comparing of Lisp_Objects.
26429 (free_face_fontset, new_fontset_from_font_name):
26430 Fix Lisp_Object/int mixup.
26431
26432 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
26433
26434 * coding.c: Add many prototypes for static functions.
26435 (get_translation_table): Allow max_lookup to be NULL.
26436 (decode_coding, Ffind_coding_systems_region_internal)
26437 (Funencodable_char_position, Fcheck_coding_systems_region):
26438 Call get_translation_table with max_lookup NULL.
26439
26440 2008-02-01 Kenichi Handa <handa@m17n.org>
26441
26442 * coding.c (get_translation_table): Declare it as Lisp_Object.
26443 (LOOKUP_TRANSLATION_TABLE): New macro.
26444 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
26445 instead of CHAR_TABLE_REF.
26446
26447 2008-02-01 Kenichi Handa <handa@m17n.org>
26448
26449 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
26450 annotation data format.
26451 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
26452 Change arguments FROM and TO to single argument NCHARS. Change caller.
26453 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
26454 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
26455 (decode_coding_ccl, decode_coding_charset): Pay attention to
26456 coding->charbuf_used.
26457 (get_translation): New function.
26458 (produce_chars): New arguments translation_table and last_block.
26459 Translate characters here. Return number of carryover chars.
26460 Change caller.
26461 (produce_composition): New argument pos. Change caller.
26462 Adjust for the change of annotation data format.
26463 (produce_charset, produce_annotation): Likewise.
26464 (decode_coding, encode_coding): Don't call translate_chars.
26465 (consume_chars): New arg translation_table. Change caller.
26466 (translate_chars): Delete.
26467 (syms_of_coding): Make translation-table's number of extra slots 2.
26468
26469 2008-02-01 Kenichi Handa <handa@m17n.org>
26470
26471 * search.c (simple_search): Fix setting this_pos_byte in backward
26472 search.
26473
26474 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
26475 byte sequence.
26476 (detect_coding_ccl): Fix setting of the variable valids.
26477
26478 2008-02-01 Kenichi Handa <handa@m17n.org>
26479
26480 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
26481
26482 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
26483
26484 * editfns.c (Ftranslate_region_internal): Rename from
26485 Ftranslate_region. Accept a char-table in TABLE.
26486 (syms_of_editfns): Defsubr Stranslate_region_internal.
26487
26488 * xfaces.c (set_lface_from_font_name): If a font is specified for
26489 a frame, generate a fontset from the font.
26490 (build_scalable_font_name): If the scalable font is requested for
26491 a specific size, don't change that size.
26492 (try_font_list): Try a scalable font also in the case that a
26493 pattern string is specified.
26494
26495 2008-02-01 Kenichi Handa <handa@m17n.org>
26496
26497 * xfaces.c (Fface_font): New optional arg CHARACTER.
26498
26499 2008-02-01 Kenichi Handa <handa@m17n.org>
26500
26501 * charset.h (CHARSET_OFFSET): New macro.
26502
26503 2008-02-01 Kenichi Handa <handa@m17n.org>
26504
26505 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
26506
26507 * fontset.c (fontset_face): Handle the case that repertory is a
26508 char-table.
26509 (find_font_encoding): Return nil for unknown encoding.
26510 (Fset_fontset_font): Ignore a font of unknown encoding.
26511
26512 2008-02-01 Kenichi Handa <handa@m17n.org>
26513
26514 * keymap.c (describe_vector): Handle default value of a char table.
26515
26516 * fontset.c (fontset_face): Handle fallback fonts correctly.
26517 (Ffontset_info): Return infomation about fallback fonts.
26518
26519 2008-02-01 Kenichi Handa <handa@m17n.org>
26520
26521 * fontset.c (FONTSET_DEFAULT): New macro.
26522 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
26523 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
26524 the case that it is nil.
26525 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
26526 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
26527
26528 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
26529 subset or superset.
26530
26531 2008-02-01 Kenichi Handa <handa@m17n.org>
26532
26533 * emacs.c (main): Call init_charset after syms_of_XXX.
26534
26535 * charset.c (Vcharset_map_directory): Delete.
26536 (Vcharset_map_path): New variable.
26537 (load_charset_map_from_file): Use Vcharset_map_path instead.
26538 (init_charset): Initialize Vcharset_map_path.
26539 (syms_of_charset): Delete declaration of "charset-map-directory",
26540 add declaration of "charset-map-path".
26541
26542 2008-02-01 Kenichi Handa <handa@m17n.org>
26543
26544 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
26545 ASCII only string.
26546
26547 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
26548
26549 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
26550 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
26551
26552 2008-02-01 Kenichi Handa <handa@m17n.org>
26553
26554 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
26555
26556 * coding.c (QCmnemonic, QCdefalut_char)
26557 (QCdecode_translation_table, QCencode_translation_table)
26558 (QCpost_read_conversion, QCpre_write_conversion): New variables.
26559 (get_translation_table): Return a list of translation tables if
26560 necessary.
26561 (decode_coding): Call get_translation_table with ENCODEP 0.
26562 (char_encodable_p): If translation_table is non-nil, always call
26563 translate_char.
26564 (Fdefine_coding_system_internal): Accept list of translation
26565 tables as :encode-translation-table and :decode-translation-table.
26566 (Fcoding_system_put): New function.
26567 (syms_of_coding): Declare new symbols.
26568 Defsubr Scoding_system_put.
26569 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
26570 typically JISX0212.
26571
26572 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
26573 when the charset is superset type.
26574
26575 * character.c (translate_char): Accept list of translation tables.
26576
26577 2008-02-01 Kenichi Handa <handa@m17n.org>
26578
26579 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
26580 (CODING_ATTR_TRANS_TBL): New macro.
26581
26582 * coding.c (get_translation_table): New function.
26583 (translate_chars): Fix the bug of skipping annotation data.
26584 (decode_coding, encode_coding): Utilize get_translation_table.
26585 (char_encodable_p, Funencodable_char_position): Translate char if
26586 necessary.
26587 (Ffind_coding_systems_region_internal)
26588 (Fcheck_coding_systems_region): Setup translation table for encode
26589 in a coding system attribute vector in advance.
26590 (Fdefine_coding_system_internal): Allow a symbol as translation
26591 table. For shift-jis type coding system, allow 4th charset.
26592
26593 2008-02-01 Kenichi Handa <handa@m17n.org>
26594
26595 * coding.c (decode_coding_sjis): Check the first byte rigidly.
26596
26597 * xdisp.c (get_next_display_element): Pass -1 as POS to
26598 FACE_FOR_CHAR if displaying a C-string.
26599
26600 2008-02-01 Kenichi Handa <handa@m17n.org>
26601
26602 * composite.c (get_composition_id): Handle xoff and yoff in a
26603 composition rule.
26604
26605 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
26606 (struct composition): New member lbearing and rbearing.
26607
26608 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
26609 (x_get_glyph_overhangs): Handle a composition glyph.
26610 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
26611
26612 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
26613 composition glyph.
26614
26615 2008-02-01 Kenichi Handa <handa@m17n.org>
26616
26617 * print.c: Include charset.h.
26618 (Vprint_charset_text_property): New variable.
26619 (Qdefault): Extern it.
26620 (PRINT_STRING_NON_CHARSET_FOUND)
26621 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
26622 (print_check_string_result): New variable.
26623 (print_check_string_charset_prop): New function.
26624 (print_prune_charset_plist): New variable.
26625 (print_prune_string_charset): New function.
26626 (print_object): Call print_prune_string_charset if
26627 Vprint_charset_text_property is not t.
26628 (print_interval): Print nothing if interval->plist is nil.
26629 (syms_of_print): Declare Vprint_charset_text_property as a lisp
26630 variable. Init and staticpro print_prune_charset_plist.
26631
26632 2008-02-01 Kenichi Handa <handa@m17n.org>
26633
26634 * fontset.c (new_fontset_from_font_name): Use the specified font
26635 for all characters in the new fontset.
26636
26637 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
26638 OBJECT args.
26639
26640 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
26641 OBJECT args for composition too.
26642
26643 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
26644 OBJECT args.
26645
26646 2008-02-01 Kenichi Handa <handa@m17n.org>
26647
26648 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
26649
26650 * fontset.c (reorder_font_vector): Adjust for the change of
26651 FONT_DEF format.
26652 (fontset_face): New arg id. Change caller.
26653 (face_for_char): New args pos and object.
26654 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
26655 (fs_query_fontset): Check NAME by Fassoc too.
26656 (Fset_fontset_font): Allow non-XLFD font name.
26657 (Ffontset_info): Adjust for the change of FONT_DEF format.
26658
26659 * fontset.h (face_for_char): Adjust prototype.
26660
26661 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
26662 (append_space, extend_face_to_end_of_line)
26663 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
26664 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
26665
26666 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
26667 POS and OBJECT args.
26668
26669 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
26670 POS and OBJECT args.
26671
26672 2008-02-01 Jason Rumney <jasonr@gnu.org>
26673
26674 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
26675 of GlobalAlloc'ed memory.
26676
26677 2008-02-01 Kenichi Handa <handa@m17n.org>
26678
26679 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
26680
26681 * charset.h (charset_table_used): Delete extern.
26682
26683 * charset.c (charset_table_used): Make it static.
26684 (map_charset_chars): Fix args to c_function with.
26685
26686 * chartab.c (map_sub_char_table_for_charset): Fix args to
26687 c_function with.
26688
26689 * coding.h (enum coding_result_code):
26690 Delete CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
26691
26692 * coding.c (Qinsufficient_source, Qinconsistent_eol)
26693 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
26694 (Vlast_code_conversion_error): New variables.
26695 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
26696 (ONE_MORE_BYTE): Record error if any instead of signaling an
26697 error. If non-ASCII multibyte char is found, return the negative
26698 value of the code. All callers changed to check it.
26699 (ONE_MORE_BYTE_NO_CHECK): Likewise.
26700 (record_conversion_result): New function. Change all codes setting
26701 coding->result to call this function.
26702 (detect_coding_utf_8, decode_coding_utf_8)
26703 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
26704 Don't use the local variable incomplete.
26705 (emacs_mule_char): Change the second arg to `const'.
26706 (decode_coding): Fix of flushing out unprocessed data.
26707 (make_conversion_work_buffer): Fix making of a work buffer.
26708 (decode_coding_object): Return coding->dst_object.
26709
26710 * fontset.c (set_fontset_font): Fix args.
26711
26712 * lisp.h (CHARACTERBITS): Define as 22.
26713
26714 * process.c (send_process): Be sure to set coding->src_multibyte.
26715
26716 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
26717
26718 2008-02-01 Kenichi Handa <handa@m17n.org>
26719
26720 * xdisp.c (handle_auto_composed_prop): Give limit to
26721 Fnext_single_char_property_change.
26722
26723 2008-02-01 Kenichi Handa <handa@m17n.org>
26724
26725 * composite.c (syms_of_composite): Don't make the composition hash
26726 table weak.
26727
26728 * fontset.c (Fset_fontset_font): Fix docstring.
26729
26730 * lisp.h (detect_coding_system): Adjust prototype.
26731
26732 * fileio.c (kill_workbuf_unwind): Delete this function.
26733 (Finsert_file_contents): Adjust the call of detect_coding_system.
26734 Get conversion_buffer by code_conversion_save. Use the macro
26735 CODING_MAY_REQUIRE_DECODING. After decoding, update
26736 coding_system.
26737
26738 * coding.h (make_conversion_work_buffer): Delete extern.
26739 (code_conversion_save): Extern it.
26740
26741 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
26742 (CODING_GET_INFO): Delete argument eol_type. Change callers.
26743 (decode_coding_utf_8): Don't do eol converion.
26744 (detect_coding_utf_16): Check coding->src_chars, not
26745 coding->src_bytes. Add heuristics for those that have no signature.
26746 (decode_coding_emacs_mule, decode_coding_iso_2022)
26747 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
26748 Don't do eol converion.
26749 (adjust_coding_eol_type): Return a new coding system.
26750 (detect_coding): Don't detect eol. Fix for utf-16 detection.
26751 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
26752 each change.
26753 (decode_coding): Pay attention to undo_list. Do eol conversion for
26754 all types of coding-systems (if necessary).
26755 (Vcode_conversion_work_buf_list): Delete it.
26756 (Vcode_conversion_reused_workbuf): Rename from
26757 Vcode_conversion_reused_work_buf.
26758 (Vcode_conversion_workbuf_name): New variable.
26759 (reused_workbuf_in_use): New variable.
26760 (make_conversion_work_buffer): Delete the arg DEPTH.
26761 (code_conversion_restore): Change argument to cons.
26762 (code_conversion_save): Delete the argument BUFFER. Change callers.
26763 (detect_coding_system): New argument src_chars. Change callers.
26764 Fix for utf-16 detection.
26765 (init_coding_once): Don't use ISO_carriage_return.
26766 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
26767 reused_workbuf_in_use.
26768
26769 2008-02-01 Kenichi Handa <handa@m17n.org>
26770
26771 * keymap.c (store_in_keymap): Pay attention to the case that idx
26772 is a cons specifying a character range.
26773
26774 2008-02-01 Kenichi Handa <handa@m17n.org>
26775
26776 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
26777 HANDLED_RECOMPUTE_PROPS.
26778
26779 * coding.c (Fdefine_coding_system_internal): Fix checking of
26780 ascii compatibility.
26781
26782 2008-02-01 Kenichi Handa <handa@m17n.org>
26783
26784 * charset.c (find_charsets_in_text): Delete unused locale variable.
26785 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
26786
26787 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
26788 Resync charset_list to Vemacs_mule_charset_list.
26789
26790 * keymap.c (store_in_keymap): Pay attention to the case that idx
26791 is a cons specifying a character range.
26792
26793 2008-02-01 Kenichi Handa <handa@m17n.org>
26794
26795 * composite.c (update_compositions): Bind inhibit-read-only, etc
26796 to t before calling remove-list-of-text-properties.
26797
26798 * print.c (print_object): Always print ASCII chars as is.
26799
26800 2008-02-01 Kenichi Handa <handa@m17n.org>
26801
26802 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
26803
26804 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
26805 is a char table.
26806
26807 2008-02-01 Kenichi Handa <handa@m17n.org>
26808
26809 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
26810
26811 2008-02-01 Kenichi Handa <handa@m17n.org>
26812
26813 * xfaces.c (set_lface_from_font_name): Fix for the case that
26814 FONTNAME is not fontset name.
26815
26816 2008-02-01 Kenichi Handa <handa@m17n.org>
26817
26818 * fns.c (base64_encode_1): Fix previous change.
26819
26820 2008-02-01 Kenichi Handa <handa@m17n.org>
26821
26822 * fontset.c (set_fontset_font): New function.
26823 (Fset_fontset_font): If a font is specified for a charset, use
26824 map_charset_chars to store the font spec in a fontset.
26825
26826 2008-02-01 Kenichi Handa <handa@m17n.org>
26827
26828 * fontset.c (fontset_face): Create a fallback fontset on demand.
26829 (make_fontset): Don't create a fallback fontset here.
26830 (free_face_fontset): Free a fallback fontset (if any) too.
26831 (n_auto_fontsets): Delete this variable.
26832 (auto_fontset_alist): New variable.
26833 (new_fontset_from_font_name): Check auto_fontset_alist.
26834 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
26835 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
26836 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
26837 Defsubr Sfontset_list_all.
26838
26839 2008-02-01 Kenichi Handa <handa@m17n.org>
26840
26841 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
26842
26843 2008-02-01 Kenichi Handa <handa@m17n.org>
26844
26845 * fontset.c (Fnew_fontset): Check NAME more rigidly.
26846
26847 2008-02-01 Kenichi Handa <handa@m17n.org>
26848
26849 * editfns.c (Fgoto_char): Fix docstring.
26850
26851 2008-02-01 Kenichi Handa <handa@m17n.org>
26852
26853 * insdel.c (insert_from_gap): Adjust intervals correctly.
26854
26855 2008-02-01 Jason Rumney <jasonr@gnu.org>
26856
26857 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
26858 (pfnGetFontUnicodeRanges): New dynamically loaded function.
26859 (w32_initialize): Try to load it.
26860 (x_get_font_repertory): Use it if available.
26861 (w32_encode_char): Add shortcut for unicode output.
26862
26863 * w32fns.c (w32_load_system_font): Default charset to -1.
26864 (x_to_w32_charset): Match all fonts for unicode.
26865 (w32_to_x_charset): New parameter matching. Don't return partial
26866 or wildcard charsets.
26867 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
26868 (w32_codepage_for_font): Return CP_UNICODE for unicode.
26869 (w32_to_x_font): Match charset to real charset.
26870 (enum_font_cb2): Always list unicode versions.
26871
26872 * makefile.w32-in (temacs): Increase EMHEAP.
26873
26874 2008-02-01 Jason Rumney <jasonr@gnu.org>
26875
26876 * w32term.c (w32_encode_char): New charset parameter.
26877 font_info.encoding becomes encoding_type.
26878 (x_get_font_repertory): New function. Warning: stub only!
26879 (x_new_font): Return quickly if font already set.
26880 (x_new_fontset): fontsetname parameter is Lisp_Object.
26881 Use new fs_query_fontset. Try new_fontset_from_font_name.
26882 Use fontset_name for return value.
26883
26884 * w32term.h: Declare x_get_font_repertory.
26885
26886 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
26887 place of find_charset_in_text. Use encode_coding_object in place
26888 of encode_coding.
26889 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
26890 decode_coding.
26891
26892 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
26893 of x_new_fontset.
26894 (w32_load_system_font): Initialize charset as unicode.
26895 font_info.encoding becomes encoding_type.
26896 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
26897 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
26898 (syms_of_w32fns): Set get_font_repertory_func.
26899
26900 * w32console.c: Include character.h. Use terminal_encode_buffer
26901 from term.c.
26902 (write_glyphs): Use new version of encode_terminal_code.
26903 Use encode_coding_object in place of encode_coding.
26904
26905 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
26906 encoding becomes encoding_type.
26907
26908 * term.c (terminal_encode_buffer): Make externally visible.
26909
26910 * makefile.w32-in: Add character.h dependancies.
26911 (character.o, chartab.o): New targets.
26912
26913 2008-02-01 Kenichi Handa <handa@m17n.org>
26914
26915 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
26916 CODING_ID_EOL_TYPE.
26917
26918 2008-02-01 Andreas Schwab <schwab@suse.de>
26919
26920 * coding.c (produce_chars): Revert last change.
26921
26922 2008-02-01 Kenichi Handa <handa@m17n.org>
26923
26924 * charset.h (charset_unicode): Extern it.
26925
26926 * charset.c (string_xstring_p): Check by (C >= 0x100).
26927 (find_charsets_in_text): Change format of the arc CHARSETS.
26928 New arg MULTIBYTE.
26929 (Ffind_charset_region, Ffind_charset_string): Adjust for the
26930 change of find_charsets_in_text.
26931 (Fsplit_char): Fix doc. Never return unknown.
26932
26933 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
26934
26935 * coding.c (Fdefine_coding_system_alias):
26936 Update Vcoding_system_list.
26937
26938 * fontset.c (load_font_get_repertory): Pay attention to the case
26939 that ENCODING of a font is specified by a char-table.
26940
26941 * xterm.c (x_get_font_repertory): Handle the case that the
26942 encoding of font is other than Unicode.
26943
26944 2008-02-01 Kenichi Handa <handa@m17n.org>
26945
26946 * term.c (encode_terminal_code): Don't handle glyph-table.
26947 Check if a character is encodable by the terminal coding system.
26948 If not, produces proper number of `?'s. Update
26949 terminal_encode_buffer and terminal_encode_buf_size if necessary.
26950 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
26951
26952 2008-02-01 Kenichi Handa <handa@m17n.org>
26953
26954 * term.c (terminal_encode_buffer, terminal_encode_buf_size):
26955 New variables.
26956 (encode_terminal_code): Change argument. Encode multiple
26957 characters at once. Store the result of encoding in
26958 terminal_encode_buffer.
26959 (write_glyphs, insert_glyphs): Adjust for the change of
26960 encode_terminal_code.
26961 (term_init): Initialize terminal_encode_buffer and
26962 terminal_encode_buf_size.
26963
26964 * coding.c (consume_chars): If coding->src_object is nil, don't
26965 check annotation.
26966
26967 2008-02-01 Kenichi Handa <handa@m17n.org>
26968
26969 * character.c (char_string): Use ASCII_CHAR_P instead of
26970 SINGLE_BYTE_CHAR_P.
26971
26972 2008-02-01 Kenichi Handa <handa@m17n.org>
26973
26974 * xdisp.c (handle_auto_composed_prop): Check if the last
26975 characters of auto-composed region is newly composed with the
26976 following characters.
26977 (handle_composition_prop): Fix checking of point being inside
26978 composition.
26979
26980 2008-02-01 Kenichi Handa <handa@m17n.org>
26981
26982 * fns.c (concat): Don't change multibyteness of the result by
26983 concatenating an 8-bit character.
26984
26985 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
26986 multibyteness of the result when newelt is an 8-bit character.
26987
26988 2008-02-01 Dave Love <fx@gnu.org>
26989
26990 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
26991 EMACS_INT.
26992
26993 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
26994
26995 * xfaces.c (face_numeric_value): Declare dim size_t.
26996 (Finternal_lisp_face_equal_p): Remove unused f.
26997
26998 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
26999 (MATRIX_ROW): Remove unused vars.
27000 (draw_glyphs, x_insert_glyphs, fast_find_position)
27001 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
27002 byte/char counts.
27003
27004 * regex.c (regex_compile): Remove unused var.
27005
27006 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
27007
27008 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
27009 (Faccessible_keymaps, where_is_internal): Remove unused vars.
27010
27011 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
27012
27013 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
27014
27015 * fileio.c (Fwrite_region): Remove unused var.
27016
27017 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
27018 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
27019
27020 * composite.c (Fremove_list_of_text_properties): Declare.
27021
27022 * coding.c (inhibit_pre_post_conversion): Remove (unused).
27023 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
27024 (coding_inherit_eol_type): Remove unused attrs.
27025 (detect_coding): Cast arg of detect_eol.
27026
27027 * charset.c (syms_of_charset): Remove unused var p.
27028 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
27029 byte/char counts.
27030
27031 * casetab.c (set_case_table): Remove unused var.
27032
27033 * window.c (Fdisplay_buffer, Fframe_selected_window):
27034 Remove unused vars.
27035
27036 2008-02-01 Dave Love <fx@gnu.org>
27037
27038 * xterm.c (x_bitmap_mask): Declare.
27039
27040 2008-02-01 Dave Love <fx@gnu.org>
27041
27042 * xterm.c (x_term_init): Fix type error.
27043
27044 * lisp.h: Add Funibyte_char_to_multibyte.
27045
27046 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
27047 (Fset_coding_system_priority): Doc fix.
27048
27049 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
27050
27051 * indent.c (check_composition): Make start and end EMACS_INT.
27052
27053 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
27054
27055 * xdisp.c (handle_composition_prop, check_point_in_composition):
27056 Make buffer positions EMACS_INT.
27057
27058 * composite.c (find_composition, run_composition_function)
27059 (update_compositions, Ffind_composition_internal): Make buffer
27060 positions EMACS_INT.
27061
27062 * composite.h (find_composition, update_compositions):
27063 Make position args EMACS_INT.
27064
27065 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
27066
27067 * intervals.c (get_property_and_range):
27068 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
27069
27070 * unexalpha.c: Don't include varargs.h.
27071
27072 2008-02-01 Dave Love <fx@gnu.org>
27073
27074 * coding.h (ENCODE_UTF_8): New.
27075
27076 * Makefile.in (gtkutil.o): Depend on coding.h.
27077
27078 * coding.c (Fset_coding_system_priority): Doc fix.
27079
27080 2008-02-01 Kenichi Handa <handa@m17n.org>
27081
27082 * fileio.c (Finsert_file_contents): Call setup_coding_system in
27083 the case of auto saving.
27084
27085 2008-02-01 Andreas Schwab <schwab@suse.de>
27086
27087 * chartab.c (map_char_table, map_char_table_for_charset):
27088 Protect `range' from GC.
27089
27090 2008-02-01 Kenichi Handa <handa@m17n.org>
27091
27092 * coding.c (decode_coding_sjis): Check bytes more rigidly.
27093
27094 2008-02-01 Kenichi Handa <handa@m17n.org>
27095
27096 * fileio.c (choose_write_coding_system): Return a decided coding system.
27097 (Fwrite_region): Set Vlast_coding_system_used to the return value
27098 of choose_write_coding_system.
27099
27100 2008-02-01 Kenichi Handa <handa@m17n.org>
27101
27102 * charset.c (Fset_charset_priority): Pay attention to duplicated
27103 arguments.
27104
27105 * coding.c (QCcategory): New variable.
27106 (syms_of_coding): Defsym it. Set all elements of
27107 Vcoding_category_table and their symbol values.
27108 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
27109 coding-category-XXX, and coding-category-list.
27110 (Fdefine_coding_system_internal): Add category in the plist.
27111
27112 2008-02-01 Kenichi Handa <handa@m17n.org>
27113
27114 * callproc.c (Fcall_process): Handle carryover correctly.
27115
27116 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
27117 (raw_text_coding_system): Check NILP (coding_system).
27118 (coding_inherit_eol_type): Check NILP (coding_system) and
27119 NILP (parent).
27120 (consume_chars): Fix for the case of raw-text.
27121
27122 * process.c (read_process_output): Handle carryover correctly.
27123
27124 2008-02-01 Dave Love <fx@gnu.org>
27125
27126 * regex.c (re_search_2): Fix last change.
27127
27128 2008-02-01 Kenichi Handa <handa@m17n.org>
27129
27130 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
27131 target_multibyte. Even in a unibyte case, return a converted
27132 multibyte char.
27133 (GET_CHAR_AFTER): New macro.
27134 (PATFETCH): Translate via multibyte char.
27135 (HANDLE_UNIBYTE_RANGE): Delete this macro.
27136 (SETUP_MULTIBYTE_RANGE): New macro.
27137 (regex_compile): Setup compiled code so that its multibyteness
27138 matches that of a target. Fix the handling of "[X-YZ]" using
27139 SETUP_MULTIBYTE_RANGE.
27140 (analyse_first) <charset>: For filling fastmap for all multibyte
27141 characters, don't check by BASE_LEADING_CODE_P.
27142 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
27143 the same as RE_MULTIBYTE_P (bufp) now.
27144 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
27145 (TARGET_CHAR_AND_LENGTH): Delete this macro.
27146 (TRANSLATE_VIA_MULTIBYTE): New macro.
27147 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
27148 It is the same as RE_MULTIBYTE_P (bufp) now.
27149 <exactn>: Translate via multibyte.
27150 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH.
27151 Don't translate it.
27152 <charset, charset_not>: Fetch a character by
27153 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
27154 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
27155 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
27156 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
27157 by GET_CHAR_AFTER.
27158 (bcmp_translate): Likewise.
27159
27160 * search.c (compile_pattern): Check the member target_multibyte,
27161 not the member multibyte of buf.
27162
27163 * lread.c (read1): While reading a string, set force_singlebyte
27164 and force_multibyte correctly.
27165
27166 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
27167 up of unibyte_to_multibyte_table.
27168
27169 2008-02-01 Kenichi Handa <handa@m17n.org>
27170
27171 * coding.c (setup_coding_system): If coding has
27172 post-read-conversion or pre-write-conversion, set
27173 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
27174 respectively.
27175 (decode_coding_gap): Run post-read-conversion if any.
27176
27177 * fileio.c (Finsert_file_contents): Even if we read into a
27178 unibyte buffer, check if we must decode the result or not.
27179
27180 2008-02-01 Kenichi Handa <handa@m17n.org>
27181
27182 * coding.c (make_conversion_work_buffer): Change the work buffer
27183 name to the same one as that of Emacs 21.
27184
27185 2008-02-01 Kenichi Handa <handa@m17n.org>
27186
27187 * coding.h (make_conversion_work_buffer): Adjust prototype.
27188 (code_conversion_restore): Don't extern it.
27189
27190 * coding.c (detected_mask): Delete unused variable.
27191 (decode_coding_iso_2022): Pay attention to the byte sequence of
27192 CTEXT extended segment, and retain those bytes as is.
27193 (decode_coding_ccl): Delete unused variable `valids'.
27194 (setup_coding_system): Delete unused variable `category'.
27195 (consume_chars): Delete unused variable `category'. Make it work
27196 for non-multibyte case.
27197 (make_conversion_work_buffer): Change argument.
27198 (saved_coding): Delete unused variable.
27199 (code_conversion_restore): Don't check saved_coding->destination.
27200 (code_conversion_save): New function.
27201 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
27202 instead of record_unwind_protect.
27203 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
27204 (detect_coding_system): Delete unused variable `mask'.
27205 (Fdefine_coding_system_internal): Delete unused variable id.
27206
27207 * fileio.c (kill_workbuf_unwind): New function.
27208 (Finsert_file_contents): On replacing, call
27209 make_conversion_work_buffer with correct args, and call
27210 record_unwind_protect with the first arg kill_workbuf_unwind.
27211
27212 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
27213
27214 2008-02-01 Kenichi Handa <handa@m17n.org>
27215
27216 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
27217 (fontset_add): Fix for the case that TO is less than TO1.
27218 (Ffontset_info): Don't use fallback fontset on checking the
27219 default fontset.
27220 (dump_fontset): New function for debugging.
27221
27222 * coding.c (Fdefine_coding_system_internal): Fix for the case that
27223 coding_type is Qcharset.
27224
27225 2008-02-01 Kenichi Handa <handa@m17n.org>
27226
27227 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
27228 (map_char_table): Don't inherit the value from the parent on
27229 initializing VAL. Adjust for the above change.
27230
27231 2008-02-01 Kenichi Handa <handa@m17n.org>
27232
27233 * coding.c (Qsignature, Qendian): Delete these variables.
27234 (syms_of_coding): Don't initialize them.
27235 (CATEGORY_MASK_UTF_16_AUTO): New macro.
27236 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
27237 detect_info->found.
27238 (decode_coding_utf_16): Don't detect BOM here.
27239 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
27240 is NOT utf_16_without_bom.
27241 (setup_coding_system): For a coding system of type utf-16, check
27242 if the attribute :endian is Qbig or not (not nil or not), and set
27243 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
27244 (detect_coding): If coding type is utf-16 and BOM detection is
27245 required, detect it.
27246 (Fdefine_coding_system_internal): For a coding system of type
27247 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
27248
27249 2008-02-01 Kenichi Handa <handa@m17n.org>
27250
27251 * coding.c (coding_set_source): Fix for the case that the current
27252 buffer is different from coding->src_object.
27253 (decode_coding_object): Don't use the conversion work buffer if
27254 DST_OBJECT is a buffer.
27255
27256 2008-02-01 Dave Love <fx@gnu.org>
27257
27258 * lread.c (read_emacs_mule_char) [len==2]: Index
27259 emacs_mule_charset correctly.
27260
27261 2008-02-01 Dave Love <fx@gnu.org>
27262
27263 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
27264 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
27265 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
27266 treated specially.)
27267 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
27268 (detected_mask): Remove Big5 bits.
27269
27270 2008-02-01 Kenichi Handa <handa@m17n.org>
27271
27272 The following changes are to make the font rescaling facility
27273 compatible with Emacs 21.
27274
27275 * xfaces.c (Vface_font_rescale_alist): Rename from
27276 Vface_resizing_fonts.
27277 (struct font_name): Rename member resizing_ratio to rescale_ratio.
27278 (font_rescale_ratio): Rename from font_resizing_ratio.
27279 (split_font_name): Set font->rescale_ratio.
27280 (better_font_p): Pay attention to font->rescale_ratio.
27281 (build_scalable_font_name): Likewise. Change RESX, and RESY
27282 fields.
27283 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
27284
27285 2008-02-01 Kenichi Handa <handa@m17n.org>
27286
27287 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
27288 (Qutf_16_le): Remove these variables.
27289 (syms_of_coding): Don't DEFSYM them.
27290 (decode_coding_utf_16): Fix handling of BOM.
27291 (encode_coding_utf_16): Fix handling of BOM.
27292
27293 2008-02-01 Kenichi Handa <handa@m17n.org>
27294
27295 * fileio.c (Finsert_file_contents): On replacing, before decoding
27296 the file into the work buffer, set point of the work buffer to the end.
27297
27298 2008-02-01 Dave Love <fx@gnu.org>
27299
27300 * coding.c (Fcheck_coding_systems_region): Fix type errors.
27301
27302 2008-02-01 Dave Love <fx@gnu.org>
27303
27304 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
27305 and fix C types.
27306
27307 2008-02-01 Kenichi Handa <handa@m17n.org>
27308
27309 * xdisp.c (SKIP_GLYPHS): New macro.
27310 (set_cursor_from_row): Pay attention to string display properties.
27311
27312 * category.c (copy_category_entry): Fix for the case that RANGE
27313 is an integer.
27314
27315 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
27316
27317 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
27318
27319 2008-02-01 Kenichi Handa <handa@m17n.org>
27320
27321 * charset.c (Fcharset_id_internal): New function.
27322 (syms_of_charset): Defsubr it.
27323
27324 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
27325 with the last arg charset_list acquired from coding.
27326 (Fdefine_coding_system_internal): For ccl-based coding system, fix
27327 the attribute coding_attr_ccl_valids.
27328
27329 * coding.h (enum define_coding_ccl_arg_index): Set the first
27330 member coding_arg_ccl_decoder to coding_arg_max.
27331
27332 * ccl.h (ccl_driver): Adjust prototype.
27333
27334 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
27335 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
27336 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
27337 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
27338 last arg Qnil.
27339
27340 2008-02-01 Kenichi Handa <handa@m17n.org>
27341
27342 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
27343 call encode_char.
27344
27345 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
27346
27347 2008-02-01 Dave Love <fx@gnu.org>
27348
27349 * composite.c (syms_of_composite): Make composition_hash_table weak.
27350
27351 2008-02-01 Kenichi Handa <handa@m17n.org>
27352
27353 * dispextern.h (check_face_attributes, generate_ascii_font_name)
27354 (font_name_registry): Don't extern them.
27355 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
27356
27357 * fontset.h (Qfontset): Don't extern it.
27358 (new_fontset_from_font_name): Extern it.
27359
27360 * fontset.c: Give 8 extra slots to fontset objects.
27361 (Qfontset_info): New variable.
27362 (syms_of_fontset): Defsym it.
27363 (FONTSET_FALLBACK): New macro.
27364 (fontset_face): Try also the default fontset.
27365 (make_fontset): Realize a fallback fontset from the default fontset.
27366 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
27367 using split_font_name_into_vector and build_font_name_from_vector.
27368 (Fset_fontset_font): Access the elements of font_spec by enum
27369 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
27370 name by using split_font_name_into_vector.
27371 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
27372 generate a proper font name from the fontset name.
27373 Update Vfontset_alias_alist.
27374 (n_auto_fontsets): New variable.
27375 (new_fontset_from_font_name): New function.
27376 (Ffont_info): Store the information about fonts generated from the
27377 default fontset in the first extra slot of the returned char-table.
27378
27379 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
27380 (font_name_registry): Delete function.
27381 (split_font_name_into_vector): New function.
27382 (build_font_name_from_vector): New function.
27383 (font_list): The argument REGISTRY is now a list of registry names.
27384 (choose_face_font): If we are choosing an ASCII font, and ATTRS
27385 specifies an explicit font name, return the name as is. Make a
27386 list of registy names.
27387
27388 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
27389 of x_new_fontset.
27390 (Fx_create_frame): Don't call x_new_fontset here. Just use
27391 x_list_fonts to check the existence of fonts.
27392
27393 * xterm.h (x_new_fontset): Adjust prototype.
27394
27395 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
27396 string. Use new_fontset_from_font_name to create a fontset from a
27397 font name.
27398
27399 2008-02-01 Kenichi Handa <handa@m17n.org>
27400
27401 * syntax.c (Vfind_word_boundary_function_table): New name for
27402 Vnext_word_boundary_function_table.
27403 (find-word-boundary-function-table): New name for
27404 next-word-boundary-function-table.
27405
27406 2008-02-01 Dave Love <fx@gnu.org>
27407
27408 * Makefile.in: Fix some dependencies.
27409
27410 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
27411 set it to nil before returning.
27412
27413 * composite.c (update_compositions): Fix type error.
27414
27415 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
27416
27417 2008-02-01 Kenichi Handa <handa@m17n.org>
27418
27419 * xterm.c (x_new_font): Optimize for the case that the font is
27420 already set for the frame.
27421
27422 2008-02-01 Kenichi Handa <handa@m17n.org>
27423
27424 * chartab.c (char_table_ascii): Check if the char table contents
27425 is sub-char-table or not.
27426 (char_table_set, char_table_set_range): Fix argument to
27427 char_table_ascii.
27428
27429 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
27430 (detect_coding_utf_8, detect_coding_utf_16)
27431 (detect_coding_emacs_mule, detect_coding_iso_2022)
27432 (detect_coding_sjis, detect_coding_big5)
27433 (detect_coding_ccl, detect_coding_charset): Change argument MASK
27434 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
27435 sequence is valid in this coding system. Change callers.
27436 (MAX_ANNOTATION_LENGTH): New macro.
27437 (ADD_ANNOTATION_DATA): New macro.
27438 (ADD_COMPOSITION_DATA): Change argument. Change callers.
27439 Call ADD_ANNOTATION_DATA. Change the format of annotation data.
27440 (ADD_CHARSET_DATA): New macro.
27441 (emacs_mule_char): New argument ID. Change callers.
27442 (decode_coding_emacs_mule, decode_coding_iso_2022)
27443 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
27444 Produce charset annotation data in coding->charbuf.
27445 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
27446 to charset annotation data in coding->charbuf.
27447 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
27448 coding->common_flags if the coding system is iso-2022 based and
27449 uses designation.
27450 (produce_composition): Adjust for the new annotation data format.
27451 (produce_charset): New function.
27452 (produce_annotation): Handle charset annotation.
27453 (handle_composition_annotation, handle_charset_annotation):
27454 New functions.
27455 (consume_chars): Handle charset annotation. Utilize the above two
27456 functions.
27457 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
27458 buffer, get the deleted text as a string and set
27459 coding->src_object to that string.
27460 (detect_coding, detect_coding_system): Use the new struct
27461 coding_detection_info.
27462
27463 * coding.h (struct coding_detection_info): New structure.
27464 (struct coding_system): Adjust prototype of the member `detector'.
27465 (CODING_ANNOTATE_CHARSET_MASK): New macro.
27466
27467 2008-02-01 Kenichi Handa <handa@m17n.org>
27468
27469 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
27470
27471 2008-02-01 Dave Love <fx@gnu.org>
27472
27473 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
27474 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
27475 to new local and nullify apropos_accumulate before returning.
27476 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
27477
27478 2008-02-01 Kenichi Handa <handa@m17n.org>
27479
27480 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
27481 correctly.
27482
27483 2008-02-01 Dave Love <fx@gnu.org>
27484
27485 * fns.c (Flanginfo): Call synchronize_system_time_locale.
27486
27487 2008-02-01 Kenichi Handa <handa@m17n.org>
27488
27489 The following changes are to make character composition happen
27490 automatically on displaying.
27491
27492 * Makefile.in (lisp, shortlisp): Add composite.elc.
27493
27494 * composite.h (Qauto_composed, Vauto_composition_function)
27495 (Qauto_composition_function): Extern them.
27496
27497 * composite.c (Vcomposition_function_table)
27498 (Qcomposition_function_table): Delete variables.
27499 (Qauto_composed, Vauto_composition_function)
27500 (Qauto_composition_function): New variables.
27501 (run_composition_function): Don't call
27502 compose-chars-after-function.
27503 (update_compositions): Clear `auto-composed' text property.
27504 (compose_chars_in_text): Delete this function.
27505 (syms_of_composite): Staticpro Qauto_composed and
27506 Qauto_composition_function. Declare Vauto_composition_function as
27507 a Lisp variable.
27508
27509 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
27510
27511 * xdisp.c (it_props): Add an entry for Qauto_composed.
27512 (handle_auto_composed_prop): New function.
27513
27514 * xselect.c (selection_data_to_lisp_data): Don't call
27515 compose_chars_in_text.
27516
27517 2008-02-01 Dave Love <fx@gnu.org>
27518
27519 * keyboard.c (read_char): Modify checking around use of
27520 Vkeyboard_translate_table.
27521
27522 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
27523 and fix C types.
27524
27525 2008-02-01 Kenichi Handa <handa@m17n.org>
27526
27527 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
27528 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
27529 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
27530 the case that the last byte is '\r' correctly.
27531 (decode_coding): Flush out the unprocessed data correctly.
27532 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
27533
27534 2008-02-01 Dave Love <fx@gnu.org>
27535
27536 * xterm.c (XTread_socket): Fix changes for defined keysyms.
27537 Add XK_ISO... case.
27538 (xaw_scroll_callback): Revert last change.
27539
27540 2008-02-01 Kenichi Handa <handa@m17n.org>
27541
27542 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
27543
27544 2008-02-01 Kenichi Handa <handa@m17n.org>
27545
27546 * xfaces.c (Vface_resizing_fonts): New variable.
27547 (struct font_name): New member `resizing_ratio'.
27548 (font_resizing_ratio): New function.
27549 (split_font_name): Set font->resizing_ratio.
27550 (better_font_p): Pay attention to font->resizing_ratio.
27551 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
27552 RESX, and RESY fields.
27553 (try_alternative_families): Try scalable fonts if
27554 Vscalable_fonts_allowed is not Qt.
27555 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
27556
27557 2008-02-01 Dave Love <fx@gnu.org>
27558
27559 * xterm.c (xaw_scroll_callback): Cast correctly.
27560
27561 2008-02-01 Dave Love <fx@gnu.org>
27562
27563 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
27564 (lispy_kana_keys): Comment out.
27565 (make_lispy_event) [XK_kana_A]: Comment out.
27566
27567 * xterm.c (xaw_scroll_callback): Cast call_data.
27568 (XTread_socket): Deal with ASCII keysyms.
27569 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
27570
27571 2008-02-01 Dave Love <fx@gnu.org>
27572
27573 * xterm.c (Vx_keysym_table): New.
27574 (syms_of_xterm): Initialize it.
27575 (XTread_socket): Use it.
27576 From head: Eliminate incorrect optimization that tried to avoid
27577 decoding the output of X*LookupString.
27578 (x_get_font_repertory): Delete charset declaration.
27579
27580 2008-02-01 Kenichi Handa <handa@m17n.org>
27581
27582 * coding.c (detect_coding_charset): If only ASCII bytes are found,
27583 return 0.
27584 (Fdefine_coding_system_internal):
27585 Setup CODING_ATTR_ASCII_COMPAT (attrs) correctly.
27586
27587 2008-02-01 Dave Love <fx@gnu.org>
27588
27589 * coding.c (Fcheck_coding_system): Doc fix.
27590
27591 * editfns.c (Finsert_byte): Return a proper value.
27592
27593 2008-02-01 Kenichi Handa <handa@m17n.org>
27594
27595 * coding.c (decode_coding): Fix args to translate_chars.
27596 Pay attention to Vstandard_translation_table_for_decode.
27597 (encode_coding): Fix args to translate_chars. Pay attention to
27598 Vstandard_translation_table_for_encode.
27599
27600 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
27601 SINGLE_BYTE_CHAR_P.
27602
27603 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
27604 not by SINGLE_BYTE_CHAR_P.
27605
27606 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
27607 SINGLE_BYTE_CHAR_P.
27608
27609 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
27610 SINGLE_BYTE_CHAR_P.
27611
27612 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
27613 by SINGLE_BYTE_CHAR_P.
27614
27615 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
27616 SINGLE_BYTE_CHAR_P.
27617
27618 2008-02-01 Dave Love <fx@gnu.org>
27619
27620 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
27621
27622 2008-02-01 Dave Love <fx@gnu.org>
27623
27624 * fns.c (Flanginfo): Fix typo.
27625
27626 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
27627
27628 2008-02-01 Kenichi Handa <handa@m17n.org>
27629
27630 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
27631 (detect_coding_emacs_mule, detect_coding_iso_2022)
27632 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
27633 incomplete byte sequence. Don't update *mask when correctly detected.
27634 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
27635 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
27636 (detect_coding, detect_coding_system): Adjust for the changes above.
27637
27638 2008-02-01 Kenichi Handa <handa@m17n.org>
27639
27640 * character.c (char_string): Rename from
27641 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
27642 (string_char): Rename from string_char.
27643
27644 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
27645 if C is greater than MAX_3_BYTE_CHAR.
27646 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE):
27647 Call string_char instead of string_char_with_unification.
27648
27649 2008-02-01 Dave Love <fx@gnu.org>
27650
27651 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
27652
27653 2008-02-01 Kenichi Handa <handa@m17n.org>
27654
27655 * keymap.c (push_key_description): Pay attention to force_multibyte.
27656
27657 * regex.c (re_search_2): Fix for the case of unibyte buffer.
27658
27659 2008-02-01 Dave Love <fx@gnu.org>
27660
27661 * charset.c (define_charset_internal): Rename `supprementary'.
27662
27663 * Makefile.in (lisp, shortlisp): Remove latin-N.
27664
27665 2008-02-01 Dave Love <fx@gnu.org>
27666
27667 * xfns.c (x_window, x_window): Use use_xim.
27668
27669 * xterm.c (use_xim): Initialize.
27670 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
27671 (x_term_init): Maybe set use_xim.
27672
27673 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
27674
27675 2008-02-01 Kenichi Handa <handa@m17n.org>
27676
27677 * search.c (search_buffer): Fix case-fold-search of multibyte
27678 characters.
27679 (boyer_moore): Rename the last argument to char_high_bits.
27680
27681 2008-02-01 Kenichi Handa <handa@m17n.org>
27682
27683 * xdisp.c (display_string): Fix for the case of zero width glyph.
27684
27685 * xfns.c (x_set_font): Change the error message of the case that
27686 x_new_fontset returns Qt.
27687
27688 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
27689 (Finternal_set_lisp_face_attribute): Use signal_error for the
27690 error of invalid fontset.
27691
27692 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
27693 fontset, return Qt.
27694
27695 2008-02-01 Dave Love <fx@gnu.org>
27696
27697 * unexelf.c (unexec): Make .got handling not SGI-specific.
27698
27699 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
27700
27701 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
27702
27703 * keyboard.c (read_key_sequence): Fix type error.
27704
27705 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte):
27706 Fix type error.
27707
27708 * fontset.c (fontset_add): Return Lisp_Object.
27709
27710 2008-02-01 Dave Love <fx@gnu.org>
27711
27712 * charset.h (charset_ordered_list_tick): Declare extern.
27713
27714 2008-02-01 Kenichi Handa <handa@m17n.org>
27715
27716 The following changes (and some of 2008-02-01 changes of mine) are
27717 for handling syntax, category, and case conversion for unibyte
27718 characters by converting them to multibyte on the fly. With these
27719 changes, we don't have to setup syntax and case tables for unibyte
27720 characters in each language environment.
27721
27722 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
27723 multibyte if necessary.
27724
27725 * bytecode.c (Fbyte_code): Likewise.
27726
27727 * character.h (LEADING_CODE_LATIN_1_MIN)
27728 (LEADING_CODE_LATIN_1_MAX): New macros.
27729 (unibyte_to_multibyte_table): Extern it.
27730 (unibyte_char_to_multibyte): New macro.
27731 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
27732 (CHAR_LEADING_CODE): New macro.
27733 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
27734
27735 * character.c (unibyte_to_multibyte_table): New variable.
27736 (unibyte_char_to_multibyte): Move to character.h and define as macro.
27737 (multibyte_char_to_unibyte): If C is an eight-bit character,
27738 convert it to the corresponding byte value.
27739
27740 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
27741 not 1, signals an error. Update the elements of
27742 unibyte_to_multibyte_table.
27743 (init_charset_once): Initialize unibyte_to_multibyte_table.
27744 (syms_of_charset): Define the charset `iso-8859-1'.
27745
27746 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
27747 as is without converting it to unibyte. In a unibyte buffer,
27748 convert C to multibyte before checking the syntax.
27749
27750 * lisp.h (unibyte_char_to_multibyte): Delete extern.
27751
27752 * minibuf.c (Fminibuffer_complete_word): Use the macro
27753 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
27754
27755 * regex.h (struct re_pattern_buffer): New member target_multibyte.
27756
27757 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
27758 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte.
27759 If that is zero, convert an eight-bit char to multibyte.
27760 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
27761 non-emacs case.
27762 (PATFETCH): Convert an eight-bit char to multibyte.
27763 (HANDLE_UNIBYTE_RANGE): New macro.
27764 (regex_compile): Setup the compiled pattern for multibyte chars
27765 even if the given regex string is unibyte. Use PATFETCH_RAW
27766 instead of PATFETCH in many places. To handle `charset'
27767 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
27768 only for ASCII chars.
27769 (analyse_first) <exactn>: Simplify because the compiled pattern
27770 is multibyte.
27771 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
27772 <charset>: Use CHAR_LEADING_CODE to get leading codes.
27773 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
27774 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
27775 multibyte always 1.
27776 (re_search_2): In emacs, set the locale variable multibyte to 1,
27777 otherwise to 0. New local variable target_multibyte. Check it
27778 to decide the multibyteness of STR1 and STR2.
27779 If target_multibyte is zero, convert unibyte chars to multibyte
27780 before translating and checking fastmap.
27781 (TARGET_CHAR_AND_LENGTH): New macro.
27782 (re_match_2_internal): In emacs, set the locale variable multibyte
27783 to 1, otherwise to 0. New local variable target_multibyte.
27784 Check it to decide the multibyteness of STR1 and STR2.
27785 Use TARGET_CHAR_AND_LENGTH to fetch a character from D.
27786 <charset, charset_not>: If multibyte is nonzero, check fastmap
27787 only for ASCII chars. Call bcmp_translate with
27788 target_multibyte, not with multibyte.
27789 <begline>: Declare the local variable C as `unsigned'.
27790 (bcmp_translate): Change the last arg name to target_multibyte.
27791
27792 * search.c (compile_pattern_1): Don't adjust the multibyteness of
27793 the regexp pattern and the matching target. Set cp->buf.multibyte
27794 to the multibyteness of the regexp pattern. Set
27795 cp->but.target_multibyte to the multibyteness of the matching target.
27796 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
27797 FETCH_STRING_CHAR_ADVANCE.
27798 (Freplace_match): Convert unibyte chars to multibyte.
27799
27800 * syntax.c (char_quoted, back_comment, scan_words)
27801 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
27802 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
27803 unibyte chars to multibyte.
27804 (skip_chars): Delete the arg syntaxp, and move the code for
27805 handling syntaxes to skip_syntaxes. Change callers.
27806 Fix the case that the multibyteness of STRING and the current
27807 buffer doesn't match.
27808 (skip_syntaxes): New function.
27809 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
27810 SINGLE_BYTE_CHAR_P.
27811
27812 2008-02-01 Kenichi Handa <handa@m17n.org>
27813
27814 * xfaces.c (QCfontset): New variable.
27815 (LFACE_FONTSET): New macro.
27816 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
27817 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
27818 (Finternal_set_lisp_face_attribute)
27819 (Finternal_get_lisp_face_attribute): Handle QCfontset.
27820 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
27821 check also LFACE_FONTSET_INDEX.
27822 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
27823 attrs[LFACE_FONT_INDEX].
27824 (syms_of_xfaces): Intern and staticpro QCfontset.
27825
27826 * dispextern.h (enum lface_attribute_index): New member
27827 LFACE_FONTSET_INDEX.
27828
27829 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
27830
27831 2008-02-01 Kenichi Handa <handa@m17n.org>
27832
27833 * coding.c (coding_set_destination): Fix coding->destination for
27834 the case converting a region.
27835 (encode_coding_utf_8): Encode eight-bit chars as single byte.
27836 (encode_coding_object): Fix coding->dst_pos and
27837 coding->dst_pos_byte for the case converting a region.
27838
27839 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
27840
27841 * character.h (BYTE8_STRING): New macro.
27842
27843 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
27844
27845 2008-02-01 Kenichi Handa <handa@m17n.org>
27846
27847 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
27848 characters by octal form.
27849
27850 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
27851
27852 * buffer.h (_fetch_multibyte_char_len): Delete extern.
27853 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
27854 _fetch_multibyte_char_len.
27855 (FETCH_CHAR_AS_MULTIBYTE): New macro.
27856
27857 * casetab.c (set_canon, set_identity, shuffle): Simplify.
27858
27859 * casefiddle.c (casify_object): Simplify. Handle the case that
27860 the case conversion change the byte length.
27861 (casify_region): Likewise.
27862
27863 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
27864
27865 * character.c (_fetch_multibyte_char_len): Delete this variable.
27866 (syms_of_character): Setup Vprintable_chars.
27867
27868 * editfns.c (Fchar_equal): Fix for the unibyte case.
27869 (Finsert_byte): New function.
27870 (syms_of_editfns): Defsubr it.
27871
27872 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
27873 of direct code 0x3ffff.
27874
27875 * search.c (Freplace_match): Fix for the unibyte case.
27876
27877 2008-02-01 Kenichi Handa <handa@m17n.org>
27878
27879 * lread.c (safe_to_load_p): Fix the logic.
27880
27881 * syntax.c (scan_words): Don't treat characters belonging to
27882 different scripts as constituting a word.
27883
27884 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
27885
27886 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
27887
27888 * emacs.c (main): In the case of --unibyte, instead of aborting on
27889 finding non-empty buffer, make it unibyte.
27890
27891 2008-02-01 Kenichi Handa <handa@m17n.org>
27892
27893 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
27894 to create a fontset.
27895
27896 2008-02-01 Dave Love <fx@gnu.org>
27897
27898 * character.c (Funibyte_char_to_multibyte): Doc fix.
27899
27900 * xfns.c [HAVE_STDLIB_H]: Fix last change.
27901
27902 2008-02-01 Kenichi Handa <handa@m17n.org>
27903
27904 * fontset.c (fontset_add): Make the type `int'.
27905 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
27906
27907 * character.c (unibyte_char_to_multibyte)
27908 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
27909 charset_unibyte, not charset_primary.
27910
27911 * charset.h (charset_unibyte): Extern it instead of charset_primary.
27912
27913 * charset.c (charset_unibyte): Rename from charset_primary.
27914 (Funibyte_charset): Rename from Fprimary_charset.
27915 (Fset_unibyte_charset): Rename from Fset_primary_charset.
27916 (syms_of_charset): Adjust for the above changes.
27917
27918 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
27919 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
27920 it->multibyte_p is zero.
27921
27922 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
27923 Delete extern.
27924
27925 2008-02-01 Kenichi Handa <handa@m17n.org>
27926
27927 * coding.c (Fdefine_coding_system_internal): Fix category setting
27928 for a coding system of type iso-2022.
27929
27930 2008-02-01 Kenichi Handa <handa@m17n.org>
27931
27932 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
27933
27934 2008-02-01 Kenichi Handa <handa@m17n.org>
27935
27936 * syntax.c (Vnext_word_boundary_function_table): New variable.
27937 (next-word-boundary-function-table): Declare it as a Lisp variable
27938 in syms_of_syntax.
27939 (scan_words): Call functions in Vnext_word_boundary_function_table
27940 if any.
27941
27942 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
27943
27944 * fontset.c (fs_load_font): If fontp->charset is not negative,
27945 return fontp without setting its members.
27946
27947 2008-02-01 Dave Love <fx@gnu.org>
27948
27949 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
27950
27951 * m/sparc.h (HAVE_ALLOCA): Delete.
27952
27953 * s/irix6-5.h: Don't include strings.h.
27954 (bcopy, bzero, bcmp): Don't undef.
27955
27956 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
27957
27958 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
27959 (TIOCSIGSEND): Don't test IRIX6.
27960 (bcopy, bzero, bcmp): Define conditionally.
27961
27962 2008-02-01 Kenichi Handa <handa@m17n.org>
27963
27964 * buffer.c (Qas, Qmake, Qto): New variables.
27965 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
27966 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
27967
27968 * callproc.c (Fcall_process): Don't call insert_1_both directly if
27969 we are inserting a process output into a multibyte buffer.
27970
27971 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
27972 multibyte_char_to_unibyte.
27973
27974 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
27975 by the primary charset, make it eight-bit char.
27976 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
27977
27978 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
27979 (charset_8_bit__control, charset_8_bit_graphic)
27980 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
27981 (define_charset_internal): New function.
27982 (syms_of_charset): Call define_charset_internal for pre-defined
27983 charsets.
27984
27985 * charset.h (charset_8_bit): Extern it.
27986
27987 * coding.c (make_conversion_work_buffer): Adjust for the change
27988 of Fset_buffer_multibyte.
27989 (encode_coding_raw_text): Increment p0 in the loop.
27990
27991 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
27992
27993 * xdisp.c (setup_echo_area_for_printing, set_message_1):
27994 Adjust for the change of Fset_buffer_multibyte.
27995
27996 * fns.c (Fstring_to_multibyte): New function.
27997 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
27998
27999 2008-02-01 Dave Love <fx@gnu.org>
28000
28001 * xfns.c (x_put_x_image): Declare args.
28002
28003 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
28004 (try_font_list): Declare an arg.
28005
28006 * xdisp.c (message2_nolog, set_message): Declare an arg.
28007
28008 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
28009
28010 * syntax.c (scan_sexps_forward): Declare an arg.
28011
28012 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
28013 Declare an arg.
28014
28015 * lisp.h (Fnew_fontset): Declare.
28016
28017 * keymap.c (push_key_description): Call CHARACTERP correctly.
28018
28019 * fontset.c (fontset_add): Declare args. Call make_number correctly.
28020 (face_for_char): Delete unused vars.
28021 (Fset_fontset_font): Doc fix. Delete unused vars.
28022
28023 * doc.c (Fsubstitute_command_keys): Delete unused vars.
28024
28025 * composite.c (update_compositions): Declare arg.
28026
28027 * cm.c (calccost, cmgoto): Declare args.
28028
28029 * charset.c: Remove `emacs' conditional. Doc fixes.
28030 (map_char_table_for_charset): Declare.
28031
28032 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
28033
28034 * ccl.c: Remove `emacs' conditional.
28035
28036 2008-02-01 Kenichi Handa <handa@m17n.org>
28037
28038 The following changes are to allow specifying multiple font
28039 patterns for a character range (specified by script or charset).
28040
28041 * Makefile.in (abbrev.o): Depend on syntax.h.
28042 (xfaces.o): Depend on charset.h.
28043
28044 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
28045 SINGLE_BYTE_CHAR_P.
28046
28047 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
28048
28049 * character.h (Vchar_script_table): Extern it.
28050
28051 * character.c (Vscript_alist): Delete.
28052 (Vchar_script_table, Qchar_script_table): New variable.
28053 (syms_of_character): Declare Vchar_script_table as a lisp variable
28054 and initialize it.
28055
28056 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
28057 have property char-table-extra-slots, make no extra slot.
28058
28059 * dispextern.h (struct face): Delete member `charset'.
28060 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
28061 SINGLE_BYTE_CHAR_P.
28062 (choose_face_font, lookup_non_ascii_face, font_name_registry):
28063 Add prototypes.
28064 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
28065 (generate_ascii_font_name): Rename from generate_ascii_font.
28066
28067 * fontset.h (get_font_repertory_func): New prototype.
28068 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
28069 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
28070
28071 * fontset.c (Qprepend, Qappend): New variables.
28072 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
28073 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
28074 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
28075 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
28076 (fontset_ref_and_range, fontset_add, reorder_font_vector)
28077 (load_font_get_repertory): New functions.
28078 (fontset_set): Delete.
28079 (fontset_face): New arg FACE. Return face ID, not face.
28080 Complete re-write to handle new fontset structure. Change caller.
28081 (free_face_fontset): Use ASET istead of AREF (X) = Y.
28082 (face_for_char): Don't call lookup_face.
28083 (make_fontset_for_ascii_face): New arg FACE.
28084 (fs_load_font): New arg CHARSET_ID. Don't check
28085 Vfont_encoding_alist here.
28086 (find_font_encoding): New function.
28087 (list_fontsets): Use STRINGP, not ! NILP.
28088 (accumulate_script_ranges): New function.
28089 (Fset_fontset_font, Fnew_fontset, Ffontset_info):
28090 Completely re-written to handle new fontset structure.
28091 (Ffontset_font): Return a copy of element.
28092 (syms_of_fontset): Define symbols Qprepend and Qappend.
28093 Fix docstring of font-encoding-alist.
28094
28095 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
28096 (Fset_fotset_font): Fix arguments to 5.
28097
28098 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
28099
28100 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
28101 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
28102 (highlight_trailing_whitespace): Adjust for the change of
28103 lookup_named_face.
28104
28105 * xfaces.c: Include charset.h.
28106 (load_face_font): Delete argument C. Change caller.
28107 (generate_ascii_font_name): Rename from generate_ascii_font.
28108 (font_name_registry): New function.
28109 (cache_face): Store ascii faces before non-ascii faces in buckets.
28110 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
28111 Lookup only ascii faces.
28112 (lookup_non_ascii_face): New function.
28113 (lookup_named_face): Delete argument C. Change caller.
28114 (lookup_derived_face): Delete argument C. Change caller.
28115 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
28116 a string, just call font_list with it.
28117 (choose_face_font): Delete arguments FACE and C. New arg
28118 FONT_SPEC. Change caller.
28119 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
28120 Change caller.
28121 (realize_non_ascii_face): New function.
28122 (realize_x_face): Call load_face_font here.
28123 (realize_tty_face): Delete argument C. Change caller.
28124 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
28125 get a face ID.
28126 (dump_realized_face): Don't print charset of FACE.
28127
28128 * xfns.c (x_set_font): Always call x_new_fontset and
28129 store_frame_parameter.
28130 (Fx_create_frame): Call x_new_fontset, not x_new_font.
28131 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
28132
28133 * xterm.h (x_get_font_repertory): Extern it.
28134
28135 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
28136 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
28137 it->multibyte_p is zero.
28138 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
28139 (x_new_fontset): If FONTSETNAME doesn't match any existing
28140 fontsets, create a new one.
28141 (x_get_font_repertory): New function.
28142
28143 2008-02-01 Kenichi Handa <handa@m17n.org>
28144
28145 * coding.c (Ffind_coding_systems_region_internal): Detect an
28146 ASCII only string correctly.
28147
28148 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
28149 version is 0.
28150
28151 2008-02-01 Kenichi Handa <handa@m17n.org>
28152
28153 * lread.c: Include "coding.h".
28154 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
28155 (load_each_byte, unread_char): New variables.
28156 (readchar_backlog): Delete.
28157 (readchar): Return a character unless load_each_byte is nonzero.
28158 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
28159 cons. If unread_char is not -1, simply return it.
28160 (unreadchar): Handle the case that readcharfun is
28161 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
28162 (read_multibyte): Delete.
28163 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
28164 (read_emacs_mule_char): New functions.
28165 (Fload): Even if the file doesn't have the extension ".elc", if
28166 safe_to_load_p returns a positive version number, assume that the
28167 file contains bytecompiled code. If the version is less than 22,
28168 load the file while decoding multibyte sequences by emacs-mule.
28169 (readevalloop): Don't use readchar_backlog.
28170 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
28171 (Fread_from_string): Pay attention to the case that STREAM is a cons.
28172 (read_escape): Delete the arg BYTEREP.
28173 (read1): Set load_each_byte to 1 temporarily while handling
28174 #@NUMBER. Don't call read_multibyte.
28175 (read_vector): Call Fread with a cons. If readcharfun is
28176 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
28177 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
28178 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
28179 and Qload_force_doc_strings.
28180
28181 2008-02-01 Kenichi Handa <handa@m17n.org>
28182
28183 * xdisp.c (face_before_or_after_it_pos):
28184 Call FETCH_MULTIBYTE_CHAR with byte postion, not char position.
28185
28186 2008-02-01 Kenichi Handa <handa@m17n.org>
28187
28188 * character.h (TRAILING_CODE_P): New macro.
28189 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
28190 (string_char_with_unification): Fix prototype.
28191 (Vscript_alist): Extern it.
28192
28193 * character.c (Vscript_alist): New variable.
28194 (string_char_with_unification, str_as_unibyte)
28195 (string_escape_byte8): Add `const' to local variables.
28196 (syms_of_character): Declare script-alist as a Lisp variable.
28197
28198 * charset.h (Vcharset_ordered_list): Extern it.
28199 (charset_ordered_list_tick): Extern it.
28200 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
28201 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
28202 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
28203 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
28204 (Funify_charset): Adjust for the change of Funify_charset.
28205
28206 * charset.c (charset_ordered_list_tick): New variable.
28207 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
28208 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
28209 deunify instead of unify a charset.
28210 (string_xstring_p): Add `const' to local variables.
28211 (find_charsets_in_text): Add `const' to arguments and local variables.
28212 (encode_char): Adjust for the change of Funify_charset.
28213 Fix detecting of invalid code.
28214 (Fset_charset_priority): Increment charset_ordered_list_tick.
28215 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
28216 and TO_CODE.
28217
28218 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
28219 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
28220 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
28221 (decode_coding_ccl, consume_chars)
28222 (Ffind_coding_systems_region_internal)
28223 (Fcheck_coding_systems_region): Add `const' to local variables.
28224
28225 * print.c (print_object): Use octal form for printing the
28226 contents of a bool vector.
28227
28228 2008-02-01 Dave Love <fx@gnu.org>
28229
28230 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
28231 <version == 20>: Refuse to load.
28232
28233 2008-02-01 Dave Love <fx@gnu.org>
28234
28235 * fns.c: Move coding.h.
28236 (Qcodeset, Qdays, Qmonths): New.
28237 (concat): Use CHARACTERP instead of INTEGERP.
28238 (Flocale_codeset): Delete.
28239 (Flanginfo): New function.
28240 (syms_of_fns): Change accordingly.
28241
28242 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
28243
28244 2008-02-01 Dave Love <fx@gnu.org>
28245
28246 * casetab.c (init_casetab_once, init_casetab_once):
28247 Fix CHAR_TABLE_SET call.
28248
28249 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
28250
28251 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
28252
28253 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
28254 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
28255 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
28256
28257 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
28258
28259 * coding.c (ENCODE_DESIGNATION, decode_eol)
28260 (make_conversion_work_buffer, code_conversion_restore)
28261 (Fdefine_coding_system_internal): Convert Lisp types.
28262 (code_conversion_restore): Use EQ, not ==.
28263 (Fencode_coding_string): Fix code_convert_string call.
28264
28265 * coding.h (code_convert_region): Fix prototype.
28266
28267 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
28268
28269 * fontset.c (fontset_ref, fontset_set, fs_load_font)
28270 (Ffontset_info): Convert Lisp types.
28271
28272 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
28273
28274 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
28275
28276 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
28277
28278 * chartab.c: Include "...h", not <...h> in some cases.
28279
28280 * callproc.c (Fcall_process): Remove unused variables.
28281
28282 2008-02-01 Dave Love <fx@gnu.org>
28283
28284 * coding.c (Fset_coding_system_priority): Allow null arg list.
28285
28286 2008-02-01 Dave Love <fx@gnu.org>
28287
28288 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
28289 (Fself_insert_and_exit): Use CHARACTERP.
28290
28291 * callproc.c (Fcall_process): Remove unused vars.
28292
28293 * xterm.c (XTread_socket): Add extra dead keysyms.
28294
28295 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
28296
28297 * dispextern.h: Remove prototypes for redraw_frame,
28298 redraw_garbaged_frames.
28299
28300 * cmds.c (Fself_insert_command): Use CHARACTERP.
28301
28302 * chartab.c (make_sub_char_table): Remove unused var.
28303 (Fset_char_table_default, Fmap_char_table): Doc fix.
28304
28305 * keymap.c (access_keymap): Remove generic char code.
28306 (push_key_description): Use CHARACTERP.
28307
28308 2008-02-01 Dave Love <fx@gnu.org>
28309
28310 * charset.c: Doc fixes.
28311 (Funify_charset): Extra checking.
28312
28313 2008-02-01 Dave Love <fx@gnu.org>
28314
28315 * lread.c: Remove some unused variables.
28316 (safe_to_load_p): If safe, return the magic number version byte.
28317 (Fload): Maybe use load-with-code-conversion.
28318
28319 2008-02-01 Kenichi Handa <handa@m17n.org>
28320
28321 * category.c (Fmodify_category_entry): Don't modify the contents
28322 of category_set for characters out of the range.
28323 Avoid unnecessary modification.
28324
28325 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
28326 Vchar_unify_table. The default value of the table is now nil.
28327
28328 * character.c (syms_of_character): Setup Vchar_width_table for
28329 eight-bit-control and raw-byte chars.
28330
28331 * charset.h (enum define_charset_arg_index):
28332 Delete charset_arg_parents and add charset_arg_subset and
28333 charset_arg_superset.
28334 (enum charset_attr_index): Delete charset_parents and add
28335 charset_subset and charset_superset.
28336 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
28337 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
28338 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
28339 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
28340 (CHARSET_SUPERSET): New macros.
28341 (charset_work): Extern it.
28342 (ENCODE_CHAR): Use charset_work.
28343 (CHAR_CHARSET_P): Adjust for the change of encoder format.
28344 (map_charset_chars): Extern it.
28345
28346 * charset.c (load_charset_map): Set the default value of encoder
28347 and deunifier char-tables to nil.
28348 (map_charset_chars): Change argument. Change callers.
28349 Use map_char_table_for_charset instead of map_char_table.
28350 (Fmap_charset_chars): New optional args from_code and to_code.
28351 (Fdefine_charset_internal): Adjust for the change of
28352 `define-charset' (:parents -> :subset or :superset).
28353 (charset_work): New variable.
28354 (encode_char, syms_of_charset): Adjust for the change of
28355 Fdefine_charset_internal.
28356 (Ffind_charset_string): Setup the vector `charsets' correctly.
28357
28358 * chartab.c (sub_char_table_ref_and_range): New arg default.
28359 Fix the previous change.
28360 (char_table_ref_and_range): Adjust for the above change.
28361 (map_sub_char_table_for_charset): New function.
28362 (map_char_table_for_charset): New function.
28363
28364 * keymap.c (describe_vector): Handle a char-table directly here.
28365 (describe_char_table): Delete.
28366
28367 * lisp.h (map_charset_chars): Delete.
28368
28369 2008-02-01 Dave Love <fx@gnu.org>
28370
28371 * fns.c (count_combining): Comment out (unused).
28372 (Flocale_codeset): New.
28373 (syms_of_fns): Defsubr it.
28374
28375 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
28376 (size_t): Remove.
28377
28378 2008-02-01 Dave Love <fx@gnu.org>
28379
28380 * Makefile.in (chartab.o): Depend on charset.h.
28381
28382 2008-02-01 Kenichi Handa <handa@m17n.org>
28383
28384 * character.c (syms_of_character): Set the default value of
28385 Vprintable_chars to Qnil.
28386
28387 2008-02-01 Dave Love <fx@gnu.org>
28388
28389 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
28390
28391 2008-02-01 Kenichi Handa <handa@m17n.org>
28392
28393 * charset.c (load_charset_map): Handle the case that from < to
28394 correctly.
28395
28396 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
28397 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
28398 Pay attention to raw-8-bit chars.
28399
28400 2008-02-01 Kenichi Handa <handa@m17n.org>
28401
28402 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
28403 It is not bytecompiled now.
28404
28405 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
28406 (charset_jisx0208): New variables.
28407 (Fdefine_charset_internal): Setup them if appropriate.
28408 (init_charset_once): Initialize them to -1.
28409
28410 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
28411 (charset_jisx0208): Extern them.
28412
28413 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
28414 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
28415 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
28416 (setup_iso_safe_charsets): Fix arguments to Fassq.
28417 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
28418 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
28419 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
28420 (encode_coding_iso_2022): Change the 1st arg to
28421 ENCODE_ISO_CHARACTER to a variable.
28422
28423 2008-02-01 Kenichi Handa <handa@m17n.org>
28424
28425 * charset.h (enum define_charset_arg_index): New enums
28426 charset_arg_min_code and charset_arg_max_code.
28427 (struct charset): New member char_index_offset.
28428
28429 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
28430 Take charset->char_index_offset into account.
28431 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
28432 args[charset_arg_max_code]. Setup charset.char_index_offset.
28433 (syms_of_charset): Fix args to Fdefine_charset_internal.
28434
28435 2008-02-01 Dave Love <fx@gnu.org>
28436
28437 * coding.c (decode_coding_utf_8): Reject overlong sequences.
28438
28439 2008-02-01 Dave Love <fx@gnu.org>
28440
28441 * coding.c: Doc fixes.
28442 (Fcoding_system_aliases): Fix return value.
28443 (Qmac): Remove (duplicated) definition.
28444
28445 2008-02-01 Dave Love <fx@gnu.org>
28446
28447 * charset.c (Fcharset_priority_list, Fset_charset_priority):
28448 New functions.
28449
28450 * character.c (Fstring): Doc fix.
28451
28452 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
28453
28454 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
28455 (font-encoding-alist): Doc fix.
28456
28457 2008-02-01 Dave Love <fx@gnu.org>
28458
28459 * term.c (costs_set): Declare static, non-initialized for pcc.
28460 (encode_terminal_code): Remove unused var.
28461
28462 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
28463 for K&R.
28464
28465 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
28466
28467 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
28468 (suffixes): Move out of make_subsidiaries for K&R.
28469
28470 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
28471
28472 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
28473
28474 2008-02-01 Dave Love <fx@gnu.org>
28475
28476 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
28477
28478 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
28479
28480 2008-02-01 Yong Lu <lyongu@asia-infonet.com>
28481
28482 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
28483
28484 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
28485
28486 2008-02-01 Kenichi Handa <handa@m17n.org>
28487
28488 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
28489 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
28490
28491 2008-02-01 Kenichi Handa <handa@m17n.org>
28492
28493 * coding.c (decode_coding_charset): Adjust for the change of
28494 Fdefine_coding_system_internal.
28495 (Fdefine_coding_system_internal): For a coding system of
28496 `charset' type, store a list of charset IDs in
28497 `charset_attr_charset_valids' element of coding attributes.
28498
28499 2008-02-01 Kenichi Handa <handa@m17n.org>
28500
28501 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
28502 (emacs_mule_char): New arg src. Delete arg `composition'.
28503 Change caller. Handle 2-byte and 3-byte charsets correctly.
28504 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
28505 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
28506 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
28507 (DECODE_EMACS_MULE_21_COMPOSITION):
28508 Call DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
28509 sequence.
28510 (decode_coding_emacs_mule): Handle composition correctly. Rewind
28511 `src' and `consumed_chars' correctly before calling emacs_mule_char.
28512 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
28513 and alt&rule composition.
28514 (decode_coding_iso_2022): Handle composition correctly.
28515 (init_coding_once): Setup emacs_mule_bytes for private charsets.
28516
28517 * charset.c (Fdefine_charset_internal): Fix bug for the case of
28518 re-defining a charset. If the charset has :emacs-mule-id, setup
28519 emacs_mule_bytes.
28520 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
28521
28522 2008-02-01 Kenichi Handa <handa@m17n.org>
28523
28524 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
28525 (encode_coding_big5, encode_coding_charset): If coding requires safe
28526 encoding, produce a character specified by
28527 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
28528
28529 2008-02-01 Dave Love <fx@gnu.org>
28530
28531 * xterm.c (XSetIMValues): Declare.
28532
28533 * process.c: Conditionally include sys/wait.h, pty.h.
28534
28535 * print.c (print_object): Fix print format for 64-bit systems.
28536
28537 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
28538
28539 * buffer.c (emacs_strerror): Declare.
28540
28541 * fontset.c (Fclear_face_cache): Declare.
28542 (accumulate_font_info): Comment-out (unused).
28543 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
28544 variables.
28545
28546 * character.h (string_escape_byte8): Declare.
28547
28548 * charset.c (load_charset_map, load_charset_map_from_file):
28549 Remove unused vars.
28550 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
28551 (Fmap_charset_chars): Doc fix.
28552
28553 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
28554 (Fset_coding_system_priority, Fset_coding_system_priority)
28555 (Fdefine_coding_system_internal): Doc fix.
28556
28557 2008-02-01 Dave Love <fx@gnu.org>
28558
28559 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
28560
28561 2008-02-01 Kenichi Handa <handa@m17n.org>
28562
28563 * character.c (string_escape_byte8): Make multibyte string with
28564 correct size.
28565
28566 * charset.c (Fmake_char): Delete unnecessary code.
28567
28568 2008-02-01 Kenichi Handa <handa@m17n.org>
28569
28570 * xfns.c (x_encode_text): Allocate coding.destination here, and
28571 call encode_coding_object with dst_object Qnil.
28572
28573 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
28574 multibyte form correctly.
28575
28576 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
28577 against Vfont_encoding_alist.
28578
28579 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
28580 handling of charset list.
28581 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
28582 (decode_coding_object): Move point to coding->dst_pos before
28583 calling post-read-conversion function.
28584 (encode_coding_object): Give correct arguments to
28585 pre-write-conversion. Ignore the return value of
28586 pre-write-conversion function. Pay attention to the case that
28587 pre-write-conversion changes the current buffer. If dst_object is
28588 Qt, even if coding->src_bytes is zero, allocate at least one byte
28589 to coding->destination.
28590
28591 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
28592
28593 * charset.c (Fmake_char): Make it more backward compatible.
28594 (Fmap_charset_chars): Fix docstring.
28595
28596 2008-02-01 Dave Love <fx@gnu.org>
28597
28598 * coding.c: Doc fixes.
28599 (Fdefine_coding_system_alias): Use names, not symbols, in
28600 coding-system-alist.
28601
28602 2008-02-01 Kenichi Handa <handa@m17n.org>
28603
28604 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
28605 of calling free_realized_face.
28606
28607 2008-02-01 Yong Lu <lyongu@asia-infonet.com>
28608
28609 * charset.c (read_hex): Don't treat SPC as a comment starter.
28610 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
28611 (Fdecode_char): Fix typo.
28612
28613 2008-02-01 Kenichi Handa <handa@m17n.org>
28614
28615 * charset.h (struct charset): New member `code_space_mask'.
28616
28617 * coding.c (coding_set_source): Delete the local variable beg_byte.
28618 (encode_coding_charset, Fdefine_coding_system_internal):
28619 Delete the local variable charset.
28620 (Fdefine_coding_system_internal):
28621 Setup attrs[coding_attr_charset_valids] correctly.
28622
28623 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
28624 member to check if CODE is valid or not.
28625 (Fdefine_charset_internal): Initialize `code_space_mask' member.
28626 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
28627 is within the range of charset->min_code and carset->max_code.
28628
28629 2008-02-01 Dave Love <fx@gnu.org>
28630
28631 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
28632
28633 * dispextern.h (generate_ascii_font): Fix return type.
28634
28635 * xfaces.c (generate_ascii_font): Fix arg declaration.
28636
28637 * coding.c (coding_inherit_eol_type)
28638 (Fset_terminal_coding_system_internal)
28639 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
28640
28641 2008-02-01 Kenichi Handa <handa@m17n.org>
28642
28643 * coding.c (decode_coding_charset, encode_coding_charset):
28644 Handle multiple charsets correctly.
28645
28646 2008-02-01 Kenichi Handa <handa@m17n.org>
28647
28648 * search.c (boyer_moore): Fix handling of multibyte character
28649 translation.
28650
28651 * xdisp.c (display_mode_element): When the variable `elt' is
28652 changed, update `this' and `lisp_string'.
28653
28654 2008-02-01 Kenichi Handa <handa@m17n.org>
28655
28656 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
28657
28658 * callproc.c (Fcall_process): Be sure to give the current buffer
28659 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
28660
28661 * charset.c (struct charset_map_entries): New struct.
28662 (load_charset_map): Rename from parse_charset_map. New args
28663 entries and n_entries. Change caller.
28664 (load_charset_map_from_file): Rename from load_charset_map.
28665 Change caller. New arg control_flag. Call load_charset_map at
28666 the tail.
28667 (load_charset_map_from_vector): New function.
28668 (Fdefine_charset_internal): Setup charset.compact_codes_p.
28669 (encode_char): If the charset is compact, change a character index
28670 to a code point.
28671
28672 * coding.c (coding_alloc_by_making_gap): Check the case that the
28673 source and destination are the same correctly.
28674 (decode_coding_raw_text): Set coding->consumed_char and
28675 coding->consumed to 0.
28676 (produce_chars): If coding->chars_at_source is nonzero, update
28677 coding->consumed_char and coding->consumed before calling
28678 alloc_destination.
28679 (Fdefine_coding_system_alias): Register ALIAS in
28680 Vcoding_system_alist.
28681 (syms_of_coding): Define `no-conversion' coding system at the tail.
28682
28683 * fileio.c (Finsert_file_contents): Set coding_system instead of
28684 val. If the current buffer is multibyte, always call
28685 decode_coding_gap.
28686
28687 * xfaces.c (try_font_list): Give higher priority to fontset's
28688 family than face's family.
28689
28690 2008-02-01 Kenichi Handa <handa@m17n.org>
28691
28692 * callproc.c (Fcall_process): Be sure to give the current buffer
28693 to decode_coding_c_string.
28694
28695 * xfaces.c (try_font_list): Give a family specified in a fontset
28696 higher priority than a family specified in a face.
28697
28698 2008-02-01 Kenichi Handa <handa@m17n.org>
28699
28700 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
28701 Fix arguments to insert_from_buffer.
28702
28703 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
28704
28705 2008-02-01 Kenichi Handa <handa@m17n.org>
28706
28707 * coding.c (produce_chars): Set the variable `multibytep' correctly.
28708 (decode_coding_gap): Set coding->dst_multibyte correctly.
28709
28710 2008-02-01 Kenichi Handa <handa@m17n.org>
28711
28712 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
28713 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
28714 (encode_coding_utf_16): Substitute coding->default_char for
28715 non-Unicode characters.
28716 (decode_coding): Don't call record_insert here.
28717 (setup_coding_system): Initialize `surrogate' of
28718 coding->spec.utf_16 to 0.
28719 (EMIT_ONE_BYTE): Fix for multibyte case.
28720
28721 * insdel.c (insert_from_gap): Call record_insert.
28722
28723 2008-02-01 Kenichi Handa <handa@m17n.org>
28724
28725 * casefiddle.c (casify_region): Fix multibyte case.
28726
28727 * character.c (c_string_width): Add return type `int'.
28728 (char_string_with_unification): Delete arg ADVANCED.
28729
28730 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
28731 (CHAR_STRING): Adjust for the change of char_string_with_unification.
28732 (CHAR_STRING_ADVANCE): Make it do-while statement.
28733
28734 * chartab.c (sub_char_table_set_range): Optimize for the case
28735 DEPTH == 3. Add workaround code for a GCC optimization bug.
28736
28737 * charset.c (parse_charset_map): Remove an unused variable.
28738
28739 * coding.c: Delete unused variables.
28740
28741 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
28742 earlier. If inserted is zero and the coding system doesn't
28743 require flushing, don't call decode_coding_gap.
28744
28745 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
28746
28747 2008-02-01 Kenichi Handa <handa@m17n.org>
28748
28749 The following changes are for using Unicode as an internal
28750 character model, and use UTF-8 format for buffer/string
28751 representation.
28752
28753 * .gdbinit (xchartable): Adjust for the change of char table structure.
28754 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
28755
28756 * Makefile.in (obj): Add character.o and chartab.o.
28757 (lisp, shortlisp): Remove utf-8.elc.
28758 (*.o): For many files, change dependency on charset.h to
28759 character.h, and add dependency on character.h.
28760 (character.o, chartab.o): New targets.
28761
28762 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
28763 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
28764 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
28765 of "charset.h".
28766
28767 * dired.c, filelock.c: Include "character.h".
28768
28769 * alloc.c: Include "character.h" instead of "charset.h".
28770 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
28771 (syms_of_alloc): Remove defsubr for Smake_char_table.
28772
28773 * buffer.c: Include "character.h" instead of "charset.h", don't
28774 include "coding.h".
28775 (Fset_buffer_multibyte): Adjust for UTF-8.
28776
28777 * buffer.h: EXFUN Fbuffer_live_p.
28778
28779 * callproc.c: Include "character.h" instead of "charset.h".
28780 (Fcall_process): Big change for the new code-conversion APIs.
28781
28782 * casetab.c: Include "character.h" instead of "charset.h".
28783 (set_canon, set_identity, shuffle): Adjust for the new
28784 map_char_table spec.
28785 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
28786 accessing the char table structure.
28787
28788 * chartab.c: New file that implements char table.
28789
28790 * category.c: Include "character.h".
28791 (copy_category_entry): New function.
28792 (copy_category_table): Call map_char_table and copy_category_entry.
28793 (Fmake_category_table): Initialize all top-level slots.
28794 (char_category_set): New function.
28795 (modify_lower_category_set): Delete.
28796 (Fmodify_category_entry): Call char_table_ref_and_range.
28797
28798 * category.h (CATEGORY_SET): Just call char_category_set.
28799
28800 * ccl.c: Include "character.h".
28801 (Qccl, Qcclp): New variables.
28802 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
28803 it's less than 256.
28804 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
28805 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
28806 and DST type.
28807 (ccl_driver): Change types of argument, adjust code accordingly.
28808 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
28809 ccl_driver.
28810 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
28811
28812 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
28813 New members src_multibyte, dst_multibyte, consumed, and produced.
28814 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
28815 (CODING_SPEC_CCL_PROGRAM): New macro.
28816 (ccl_driver): Update prototype.
28817 (Qccl, Qcclp, Fccl_program_p): Extern them.
28818 (CHECK_CCL_PROGRAM): New macro.
28819
28820 * character.c, character.h, chartab.c: New files.
28821
28822 * charset.c: Mostly re-written. Move character and multibyte sequence
28823 handling codes to character.c.
28824
28825 * charset.h: Mostly re-written. Move character and multibyte sequence
28826 handling codes to character.h.
28827
28828 * coding.c, coding.h: Mostly re-written.
28829
28830 * composite.c: Include "character.h" instead of "charset.h".
28831 (CHAR_WIDTH): Move to character.h.
28832 (HASH_KEY, HASH_VALUE): Delete.
28833
28834 * composite.h (enum composition_method): Change order of enumeration
28835 symbols.
28836
28837 * data.c: Include "character.h" instead of "charset.h".
28838 (Faref): Call CHAR_TABLE_REF for a char table.
28839 (Faset): Call CHAR_TABLE_SET for a char table.
28840
28841 * dispextern.h (free_realized_face, check_face_attribytes)
28842 (generate_ascii_font): Extern them.
28843 (free_realized_multibyte_face): Delete extern.
28844
28845 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
28846 table structure.
28847
28848 * editfns.c: Include "character.h" instead of "charset.h".
28849 (Fchar_to_string): Always call CHAR_STRING.
28850
28851 * emacs.c (main): Call init_charset_once, init_charset,
28852 syms_of_chartab, and syms_of_character.
28853
28854 * fileio.c: Include "character.h" instead of "charset.h".
28855 (Finsert_file_contents): Big change for the new code-conversion API.
28856 (choose_write_coding_system, Fwrite_region): Likewise.
28857 (build_annotations_2): Delete.
28858 (e_write): Big change for the new code-conversion API.
28859
28860 * fns.c: Include "character.h" instead of "charset.h".
28861 (copy_sub_char_table): Move to chartab.c.
28862 (Fcopy_sequence): Call copy_char_table for a char table.
28863 (concat): Delete codes calling count_multibyte.
28864 (string_char_to_byte, string_byte_to_char): Adjust for the new
28865 multibyte form.
28866 (internal_equal): Adjust for the change of char table structure.
28867 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
28868 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
28869 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
28870 (char_table_translate, optimize_sub_char_table)
28871 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
28872 chartab.c.
28873 (char_table_ref_and_index): Delete.
28874 (HASH_KEY, HASH_VALUE): Move to lisp.h.
28875 (Fmd5): Call preferred_coding_system instead of accessing
28876 Vcoding_category_list. Adjust for the new code-conversion API.
28877 (syms_of_fns): Move defsubr for char table related functions to
28878 chartab.c.
28879
28880 * fontset.c: Mostly re-written.
28881
28882 * fontset.h (struct font_info): Change type of the member encoding_type.
28883 (enum FONT_SPEC_INDEX): New enum.
28884 (fontset_font_pattern, fs_load_font): Update prototype.
28885 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
28886
28887 * indent.c: Include "character.h" instead of "charset.h".
28888 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
28889
28890 * insdel.c: Include "character.h" instead of "charset.h".
28891 (copy_text): Don't refer to Vnonascii_translation_table.
28892 (insert_from_gap): New function.
28893
28894 * keyboard.c: Include "character.h" instead of "charset.h".
28895 (command_loop_1): Never call direct_output_forward_char before
28896 a non-ASCII character.
28897 (read_char): If Vkeyboard_translate_table is a char table, always
28898 translate a character.
28899
28900 * keymap.c: Include "character.h".
28901 (store_in_keymap): Handle the case that IDX is a cons.
28902 (Fdefine_key): Handle the case that KEY is a cons and the car part
28903 is also a cons (range).
28904 (push_key_description): Adjust for the new character code.
28905 (describe_vector): Call describe_char_table for a char table.
28906 (describe_char_table): New function.
28907
28908 * keymap.h (describe_char_table): Extern it.
28909
28910 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
28911 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
28912 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
28913 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
28914 Delete.
28915 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
28916 structure.
28917 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
28918 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
28919 (CHARTAB_SIZE_BITS_3): New macros.
28920 (chartab_size): Extern it.
28921 (struct Lisp_Char_Table): Re-design.
28922 (struct Lisp_Sub_Char_Table): New structure.
28923 (HASH_KEY, HASH_VALUE): Move from fns.c.
28924 (CHARACTERBITS): Define as 22.
28925 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
28926 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
28927 (GC_SUB_CHAR_TABLE_P): New macro.
28928 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
28929 (code_convert_string_norecord): Delete extern.
28930 (init_character_once, syms_of_character, init_charset)
28931 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
28932
28933 * lread.c: Include "character.h".
28934 (read_multibyte): New arg NBYTES.
28935 (read_escape): Change the meaning of returned *BYTEREP.
28936 (to_multibyte): Delete.
28937 (read1): Adjust the handling of char table and string.
28938
28939 * print.c: Include "character.h" instead of "charset.h".
28940 (print_string): Convert 8-bit raw bytes to octal form by
28941 string_escape_byte8.
28942 (print_object): Adjust for the new multibyte form. Print 8-bit
28943 raw bytes always in octal form. Handle sub char table correctly.
28944
28945 * process.c: Include "character.h" instead of "charset.h".
28946 (read_process_output, send_process): Adjust for the new
28947 code-conversion API.
28948
28949 * puresize.h (BASE_PURESIZE): Increase.
28950
28951 * regex.c: Include "character.h" instead of "charset.h".
28952 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
28953 (regex_compile): Accept a range whose starting and ending
28954 character have different leading bytes.
28955 (analyse_first): Adjust for the above change.
28956
28957 * search.c: Include "character.h" instead of "charset.h".
28958 (search_buffer, boyer_moore): Adjust for the new multibyte form.
28959 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
28960
28961 * syntax.c: Include "character.h" instead of "charset.h".
28962 (syntax_parent_lookup): Delete.
28963 (Fmodify_syntax_entry): Accept a cons as CHAR.
28964 (skip_chars): Adjust for the new multibyte form.
28965 (init_syntax_once): Call char_table_set_range instead of directly
28966 accessing the structure of a char table.
28967
28968 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
28969 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
28970 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
28971 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
28972
28973 * term.c: Include "buffer.h" and "character.h".
28974 (encode_terminal_code, write_glyphs): Adjust for the new
28975 code-conversion API.
28976 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
28977
28978 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
28979
28980 * xdisp.c: Include "character.h".
28981 (get_next_display_element): Adjust for the new multibyte form.
28982 (disp_char_vector): Adjust for the new char table structure.
28983 (decode_mode_spec_coding): Adjust for the new structure of
28984 coding system.
28985 (decode_mode_spec): Adjust for the new code-conversion API.
28986
28987 * xfaces.c: Include "character.h" instead of "charset.h".
28988 (load_face_font): Adjust for the change of choose_face_font and
28989 FS_LOAD_FONT.
28990 (generate_ascii_font): New function.
28991 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
28992 (set_font_frame_param): Adjust for the change of choose_face_font.
28993 (free_realized_face): Make it public.
28994 (free_realized_faces_for_fontset): Rename from
28995 free_realized_multibyte_face. Free also faces realized for ASCII.
28996 (choose_face_font): Change arguments. Adjust for the change of
28997 fontset_font_pattern and FS_LOAD_FONT.
28998
28999 * xfns.c: Include "character.h".
29000 (x_encode_text): Adjust for the new code-conversion API.
29001
29002 * xselect.c: Don't include "charset.h".
29003 (selection_data_to_lisp_data): Adjust for the new code conversion API.
29004
29005 * xterm.c: Include "character.h".
29006 (x_encode_char): New argument CHARSET. Change caller.
29007 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
29008 Call ENCODE_CHAR instead of SPLIT_CHAR.
29009 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
29010 CHAR_WIDTH instead of CHARSET_WIDTH.
29011 (XTread_socket): Adjust for the new code-conversion API.
29012 (x_new_font): Adjust for the change of FS_LOAD_FONT.
29013 (x_load_font): Adjust for the change of struct font.
29014
29015 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
29016
29017 * xfaces.c (face_at_buffer_position): Remove unused vars.
29018
29019 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
29020
29021 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
29022 Fix overflow checking.
29023
29024 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
29025
29026 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
29027 Cancel previous change.
29028
29029 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
29030
29031 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
29032 ccl->eight_bit_control. Fix check for buffer overflow.
29033 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
29034 (ccl_driver): Initialize extra_bytes to 0.
29035
29036 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
29037
29038 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
29039 return it ORed with ctrl_modifier.
29040
29041 2008-01-29 Miles Bader <miles@gnu.org>
29042
29043 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
29044
29045 2008-01-28 Jason Rumney <jasonr@gnu.org>
29046
29047 * w32.c (stat): Don't double check for networked drive.
29048
29049 2008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
29050
29051 * window.c (run_window_configuration_change_hook): New function.
29052 Code extracted from set_window_buffer. Set the selected frame.
29053 (set_window_buffer): Use it.
29054 * window.h (run_window_configuration_change_hook): Declare.
29055 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
29056
29057 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
29058
29059 2008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
29060
29061 * Makefile.in: Remove references to unused macros.
29062
29063 2008-01-26 Eli Zaretskii <eliz@gnu.org>
29064
29065 * w32.c (g_b_init_get_sid_sub_authority)
29066 (g_b_init_get_sid_sub_authority_count): New static variables.
29067 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
29068 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
29069 (init_user_info): Use them to retrieve uid and gid.
29070 Use 500/513, the Windows defaults, as Administrator's uid/gid.
29071 (fstat): Use pw_uid and pw_gid from the_passwd structure for
29072 st_uid and st_gid of the file.
29073
29074 2008-01-26 Jason Rumney <jasonr@gnu.org>
29075
29076 * w32.c (logon_network_drive): New function.
29077 (stat): Use it.
29078
29079 2008-01-26 Chong Yidong <cyd@stupidchicken.com>
29080
29081 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
29082 invisible text covered with an ellipsis.
29083
29084 2008-01-25 Richard Stallman <rms@gnu.org>
29085
29086 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
29087 jump back to beginning. Move some other initializations after that.
29088 (Qwindow_text_change_functions, Vwindow_text_change_functions):
29089 New variables.
29090 (syms_of_xdisp): Init them.
29091
29092 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
29093
29094 * buffer.c (reset_buffer_local_variables):
29095 Implement `permanent-local-hook'.
29096 (Qpermanent_local_hook): New variable.
29097 (syms_of_buffer): Init and staticpro it.
29098
29099 2008-01-25 Michael Albinus <michael.albinus@gmx.de>
29100
29101 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
29102
29103 2008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
29104
29105 * fns.c (Fclrhash): Return TABLE.
29106
29107 2008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29108
29109 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
29110 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
29111 is set even without positional changes.
29112 (x_scroll_bar_clear): Set bar->redraw_needed_p.
29113
29114 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
29115
29116 2008-01-23 Jason Rumney <jasonr@gnu.org>
29117
29118 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
29119
29120 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
29121 the unicode range available in MULE by locale-coding-system.
29122 Improve dbcs lead byte detection. Set event timestamp and modifiers
29123 earlier.
29124
29125 2008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29126
29127 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
29128 [MAC_OSX] (init_mac_osx_environment): Initialize it.
29129 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
29130 when used on child processes.
29131
29132 2008-01-21 Michael Albinus <michael.albinus@gmx.de>
29133
29134 * dbusbind.c (Fdbus_method_return_internal): Rename from
29135 Fdbus_method_return.
29136 (Fdbus_unregister_object): Move to dbus.el.
29137 (Fdbus_call_method, Fdbus_method_return_internal)
29138 (Fdbus_send_signal): Improve debug messages.
29139
29140 2008-01-20 Martin Rudalics <rudalics@gmx.at>
29141
29142 * undo.c (undo_inhibit_record_point): New variable.
29143 (syms_of_undo): Initialize it.
29144 (record_point): Don't record point when undo_inhibit_record_point
29145 is set.
29146
29147 2008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
29148
29149 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
29150
29151 * xdisp.c (Qauto_hscroll_mode): New var.
29152 (syms_of_xdisp): Initialize it.
29153 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
29154 window's buffer.
29155 (hscroll_windows): Don't check automatic_hscrolling_p here.
29156
29157 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
29158 vscroll if we're setting window-buffer to the value it already has.
29159
29160 2008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
29161
29162 * m/intel386.h: Remove references to XENIX.
29163
29164 2008-01-17 Andreas Schwab <schwab@suse.de>
29165
29166 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
29167 instead of HAVE_X86_64_LIB64_DIR.
29168 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
29169
29170 2008-01-17 Glenn Morris <rgm@gnu.org>
29171
29172 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
29173 to HAVE_X86_64_LIB64_DIR.
29174
29175 2008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
29176
29177 * s/irix3-3.h:
29178 * s/irix4-0.h:
29179 * s/386-ix.h:
29180 * s/domain.h:
29181 * s/hpux9-x11r4.h:
29182 * s/hpux9shxr4.h: Remove files for systems no longer supported.
29183
29184 * sysdep.c: Remove code containing references to symbols defined
29185 by unsupported systems.
29186
29187 2008-01-16 Glenn Morris <rgm@gnu.org>
29188
29189 * coding.c (select-safe-coding-system-function): Doc fix.
29190
29191 2008-01-15 Glenn Morris <rgm@gnu.org>
29192
29193 * config.in: Revert 2008-01-13 change: this is a generated file.
29194
29195 2008-01-13 Tom Tromey <tromey@redhat.com>
29196
29197 * lisp.h: Fix typo.
29198
29199 2008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
29200
29201 * m/sequent-ptx.h:
29202 * m/sequent.h:
29203 * s/ptx.h:
29204 * s/ptx4-2.h:
29205 * s/ptx4.h: Remove files for systems no longer supported.
29206
29207 * callproc.c (Fcall_process): Fix previous change.
29208
29209 2008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
29210
29211 * unexsunos4.c: Remove file, system not supported anymore.
29212
29213 * m/mips.h:
29214 * m/intel386.h:
29215 * callproc.c:
29216 * config.in:
29217 * ecrt0.c:
29218 * emacs.c:
29219 * fileio.c:
29220 * frame.c:
29221 * getpagesize.h:
29222 * keyboard.c:
29223 * lread.c:
29224 * process.c:
29225 * puresize.h:
29226 * sysdep.c:
29227 * systty.h:
29228 * syswait.h:
29229 * unexec.c:
29230 * xdisp.c:
29231 * alloc.c: Remove code containing references to symbols defined by
29232 unsupported systems.
29233
29234 2008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
29235
29236 * coding.c (detect_coding_mask): Fix previous change.
29237
29238 2008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
29239
29240 * coding.c (detect_coding_iso2022): New arg
29241 latin_extra_code_state. Allow Latin extra codes only
29242 when *latin_extra_code_state is nonzero.
29243 (detect_coding_mask): If there is a NULL byte, detect the encoding
29244 as UTF-16 or binary. If Latin extra codes exist, detect the
29245 encoding as ISO-2022 only when there's no other proper encoding is
29246 found.
29247
29248 2008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29249
29250 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
29251 #ifdef MAC_OS.
29252
29253 2008-01-08 Richard Stallman <rms@gnu.org>
29254
29255 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
29256
29257 2008-01-06 Nick Roberts <nickrob@snap.net.nz>
29258
29259 * keyboard.c (parse_menu_item): Don't enclose key bindings on
29260 menu bar in parentheses.
29261
29262 2008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
29263
29264 * m/7300.h:
29265 * m/acorn.h:
29266 * m/alliant-2800.h:
29267 * m/alliant.h:
29268 * m/alliant1.h:
29269 * m/alliant4.h:
29270 * m/altos.h:
29271 * m/amdahl.h:
29272 * m/apollo.h:
29273 * m/att3b.h:
29274 * m/aviion-intel.h:
29275 * m/aviion.h:
29276 * m/celerity.h:
29277 * m/clipper.h:
29278 * m/cnvrgnt.h:
29279 * m/convex.h:
29280 * m/cydra5.h:
29281 * m/delta88k.h:
29282 * m/dpx2.h:
29283 * m/dual.h:
29284 * m/elxsi.h:
29285 * m/f301.h:
29286 * m/gould-np1.h:
29287 * m/gould.h:
29288 * m/i860.h:
29289 * m/ibmps2-aix.h:
29290 * m/ibmrt-aix.h:
29291 * m/ibmrt.h:
29292 * m/irist.h:
29293 * m/is386.h:
29294 * m/isi-ov.h:
29295 * m/mega68.h:
29296 * m/mg1.h:
29297 * m/news-r6.h:
29298 * m/news-risc.h:
29299 * m/news.h:
29300 * m/nh3000.h:
29301 * m/nh4000.h:
29302 * m/ns16000.h:
29303 * m/ns32000.h:
29304 * m/nu.h:
29305 * m/orion.h:
29306 * m/orion105.h:
29307 * m/paragon.h:
29308 * m/pfa50.h:
29309 * m/plexus.h:
29310 * m/pyramid.h:
29311 * m/pyrmips.h:
29312 * m/sh3el.h:
29313 * m/sps7.h:
29314 * m/sr2k.h:
29315 * m/stride.h:
29316 * m/sun1.h:
29317 * m/sun2.h:
29318 * m/sun3-68881.h:
29319 * m/sun3-fpa.h:
29320 * m/sun3-soft.h:
29321 * m/sun3.h:
29322 * m/sun386.h:
29323 * m/symmetry.h:
29324 * m/tad68k.h:
29325 * m/tahoe.h:
29326 * m/targon31.h:
29327 * m/tek4300.h:
29328 * m/tekxd88.h:
29329 * m/tower32.h:
29330 * m/tower32v3.h:
29331 * m/ustation.h:
29332 * m/wicat.h:
29333 * m/xps100.h:
29334 * s/cxux.h:
29335 * s/cxux7.h:
29336 * s/dgux.h:
29337 * s/dgux4.h:
29338 * s/dgux5-4-3.h:
29339 * s/dgux5-4r2.h:
29340 * s/esix.h:
29341 * s/esix5r4.h:
29342 * s/hiuxmpp.h:
29343 * s/hiuxwe2.h:
29344 * s/iris3-5.h:
29345 * s/iris3-6.h:
29346 * s/isc2-2.h:
29347 * s/isc3-0.h:
29348 * s/isc4-0.h:
29349 * s/isc4-1.h:
29350 * s/newsos5.h:
29351 * s/newsos6.h:
29352 * s/osf1.h:
29353 * s/osf5-0.h:
29354 * s/riscix1-1.h:
29355 * s/riscix12.h:
29356 * s/sco4.h:
29357 * s/sco5.h:
29358 * s/sunos4-0.h:
29359 * s/sunos4-1.h:
29360 * s/sunos413.h:
29361 * s/sunos4shr.h:
29362 * s/umax.h:
29363 * s/unipl5-2.h:
29364 * s/xenix.h:
29365 * cxux-crt0.s:
29366 * unexapollo.c:
29367 * unexconvex.c:
29368 * unexenix.c:
29369 * unexsni.c: Remove files for systems no longer supported.
29370
29371 * m/intel386.h: Remove references to unsupported systems.
29372
29373 * w32.c (get_emacs_configuration): Remove reference to i860.
29374
29375 * sysdep.c: Remove dead code.
29376
29377 2008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
29378
29379 * s/rtu.h:
29380 * m/masscomp.h: Remove files. Platform is obsolete.
29381
29382 2008-01-04 Michael Albinus <michael.albinus@gmx.de>
29383
29384 * dbusbind.c (Fdbus_method_return): New function.
29385 (xd_read_message): Add the serial number to the event.
29386 (Fdbus_register_method): Activate the function.
29387
29388 2008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
29389
29390 * keyboard.c (read_key_sequence): Fix typo.
29391
29392 2008-01-03 Michael Albinus <michael.albinus@gmx.de>
29393
29394 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
29395 (xd_signature, xd_append_arg): Handle element type detection for
29396 empty arrays.
29397 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
29398 SDATA () calls; this must be solved more general.
29399 (Fdbus_register_signal): Use SBYTES instead of strlen.
29400
29401 2008-01-03 Magnus Henoch <magnus@zemdatav>
29402
29403 * dbusbind.c (xd_append_arg): Use unsigned char instead of
29404 unsigned int for byte values (necessary for big-endian platform).
29405 (Fdbus_call_method): Handle the case of no returned arguments.
29406
29407 2007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
29408
29409 * dbusbind.c (xd_read_message): Use non-static input_event struct.
29410
29411 2007-12-31 Magnus Henoch <mange@freemail.hu>
29412
29413 * dbusbind.c (xd_signature): Signature of variant is just "v".
29414
29415 2007-12-30 Michael Albinus <michael.albinus@gmx.de>
29416
29417 * dbusbind.c: Fix several errors and compiler warnings.
29418 Reported by Tom Tromey <tromey@redhat.com>.
29419 (XD_ERROR, XD_DEBUG_MESSAGE)
29420 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
29421 (xd_append_arg): Part for basic D-Bus types rewritten.
29422 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
29423 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
29424 appropriate.
29425 (xd_read_message): Return Qnil. Don't signal an error; it is not
29426 useful during event reading.
29427 (Fdbus_register_signal): Signal an error if the check for
29428 FUNCTIONP fails.
29429 (Fdbus_register_method): New function. The implementation is not
29430 complete, the call of the function signals an error therefore.
29431 (Fdbus_unregister_object): New function, renamed from
29432 Fdbus_unregister_signal. The initial check signals an error, if
29433 the object is not well formed.
29434
29435 2007-12-30 Richard Stallman <rms@gnu.org>
29436
29437 * textprop.c (get_char_property_and_overlay):
29438 Signal error if POSITION is out of range in a buffer.
29439
29440 2007-12-29 Martin Rudalics <rudalics@gmx.at>
29441
29442 * w32fns.c (Fx_create_frame): Make copy of frame parameters
29443 because the original parameters are in pure storage now.
29444
29445 2007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29446
29447 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
29448
29449 2007-12-22 Eli Zaretskii <eliz@gnu.org>
29450
29451 * callint.c (syms_of_callint) <command-history>: Add reference to
29452 history-length in the doc string.
29453
29454 2007-12-17 Jason Rumney <jasonr@gnu.org>
29455
29456 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
29457 before passing as wParam.
29458
29459 2007-12-22 Michael Albinus <michael.albinus@gmx.de>
29460
29461 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
29462 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
29463 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
29464 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
29465 as number.
29466 (Fdbus_call_method): Fix docstring.
29467
29468 2007-12-21 Michael Albinus <michael.albinus@gmx.de>
29469
29470 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
29471 New macros.
29472 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
29473 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
29474 Simplify.
29475 (xd_signature): New function.
29476 (xd_append_arg): Compute also signatures. Major rewrite.
29477 (xd_retrieve_arg): Make debug messages friendly.
29478 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
29479 Check for signatures of arguments.
29480
29481 2007-12-19 Michael Albinus <michael.albinus@gmx.de>
29482
29483 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
29484 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
29485 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
29486 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
29487 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
29488 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
29489 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
29490 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
29491 (xd_retrieve_value): Remove. Functionality included in ...
29492 (xd_append_arg): New function.
29493 (Fdbus_call_method, Fdbus_send_signal): Apply it.
29494
29495 2007-12-16 Michael Albinus <michael.albinus@gmx.de>
29496
29497 * dbusbind.c (top): Include <stdio.h>.
29498 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
29499 dbus_message_new_method_call and dbus_message_new_signal.
29500 (Fdbus_register_signal): Rename unique_name to uname.
29501 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
29502 non-existing unique name. Fix typos in matching rule. Return an
29503 object which is useful in Fdbus_unregister_signal.
29504 (Fdbus_unregister_signal): Reimplementation, in order to remove
29505 only the corresponding entry.
29506 (Vdbus_registered_functions_table): Change the order of entries.
29507 Apply these changes in xd_read_message and Fdbus_register_signal.
29508
29509 2007-12-16 Andreas Schwab <schwab@suse.de>
29510
29511 * fileio.c (Finsert_file_contents): Fix overflow check to not
29512 depend on undefined integer overflow.
29513
29514 2007-12-14 Jason Rumney <jasonr@gnu.org>
29515
29516 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
29517 for characters above 127.
29518
29519 2007-12-13 Jason Rumney <jasonr@gnu.org>
29520
29521 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
29522 before dereferencing array.
29523 (lookup_vk_code): Remove zero comparison.
29524
29525 2007-12-14 Michael Albinus <michael.albinus@gmx.de>
29526
29527 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
29528 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
29529 Use `unsigned int' instead of `uint'.
29530 (xd_read_message, Fdbus_register_signal): Split expressions into
29531 multiple lines before operators "&&" and "||", according to the
29532 GNU Coding Standards.
29533
29534 2007-12-14 Eli Zaretskii <eliz@gnu.org>
29535
29536 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
29537
29538 2007-12-12 Juri Linkov <juri@jurta.org>
29539
29540 * buffer.c (Frename_buffer): In interactive spec replace
29541 `read-buffer' with `read-string' that uses `buffer-name-history'
29542 as history, and the current buffer's name as default.
29543
29544 2007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
29545
29546 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
29547 manipulating the backtrace manually.
29548 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
29549 (struct backtrace, backtrace_list): Remove.
29550 (command_loop_1): Remove dead var `no_direct'.
29551
29552 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
29553 preserve non-built-in buffer-local variables.
29554 (Fkill_all_local_variables): Don't re-create&re-set permanent
29555 buffer-local variables.
29556
29557 2007-12-09 Juri Linkov <juri@jurta.org>
29558
29559 * buffer.c (Frename_buffer): Change interactive spec from "s" to
29560 Lisp code that uses `read-buffer' with current buffer as default.
29561
29562 2007-12-08 Michael Albinus <michael.albinus@gmx.de>
29563
29564 * dbusbind.c (xd_read_message): Generate an event for every
29565 registered handler. There might be several handlers registered
29566 for the same signal.
29567 (Fdbus_register_signal): Don't overwrite a registration for the
29568 same signal. Add a new registration if handlers are different.
29569 (Vdbus_registered_functions_table): Rework doc string.
29570
29571 2007-12-07 Michael Albinus <michael.albinus@gmx.de>
29572
29573 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
29574 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
29575 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
29576 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
29577 Unify argument lists.
29578 (xd_read_message, Fdbus_register_signal): Reorder and extend event
29579 arguments and hash table keys. Use unique name for service.
29580 (Fdbus_unregister_signal): Remove checks.
29581 (Vdbus_registered_functions_table): Fix doc string.
29582
29583 2007-12-05 Magnus Henoch <mange@freemail.hu>
29584
29585 * process.c (make_process): Initialize pty_flag to 0.
29586
29587 2007-12-05 Jason Rumney <jasonr@gnu.org>
29588
29589 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
29590 specified XBMs.
29591
29592 2007-12-05 Richard Stallman <rms@gnu.org>
29593
29594 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
29595
29596 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29597
29598 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
29599 New variable.
29600 (mac_try_close_socket) [MAC_OSX]: New function.
29601 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
29602 Update cfsockets_for_select. Replace invalid CFRunLoop source.
29603
29604 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
29605 Use mac_try_close_socket.
29606
29607 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29608
29609 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
29610 reloc_base.
29611 (copy_dysymtab): Compute relocation base here.
29612 (rebase_reloc_address) [__ppc64__]: New function.
29613 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
29614 changed.
29615
29616 2007-12-05 Jason Rumney <jasonr@gnu.org>
29617
29618 * w32proc.c (sys_spawnve): Quote args with wildcards.
29619
29620 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29621
29622 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
29623 __objc_* sections.
29624 (unrelocate) [_LP64]: Set relocation base to address of data segment.
29625
29626 2007-12-05 Michael Albinus <michael.albinus@gmx.de>
29627
29628 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
29629 Move check for Vdbus_registered_functions_table to
29630 xd_read_queued_messages.
29631 (xd_read_queued_messages): Protect xd_read_message calls by
29632 internal_condition_case_1.
29633
29634 2007-12-04 Michael Albinus <michael.albinus@gmx.de>
29635
29636 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
29637 Qdbus_system_bus and Qdbus_session_bus, respectively.
29638 (Vdbus_intern_symbols): Remove.
29639 (Vdbus_registered_functions_table): New hash table.
29640 (XD_SYMBOL_INTERN_SYMBOL): Remove.
29641 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
29642 Rewrite in order to manage registered functions by hash table
29643 Vdbus_registered_functions_table.
29644
29645 2007-12-03 Jan Djärv <jan.h.d@swipnet.se>
29646
29647 * xterm.c: Update URL to Window Manager Specification in comment.
29648
29649 2007-12-02 Michael Albinus <michael.albinus@gmx.de>
29650
29651 * config.in (HAVE_DBUS): Add.
29652
29653 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
29654 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
29655 (obj): Add $(DBUS_OBJ).
29656 (LIBES): Add $(DBUS_LIBS).
29657 (dbusbind.o): New target.
29658
29659 * dbusbind.c: New file.
29660
29661 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
29662
29663 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
29664 (Qdbus_event): New Lisp symbol.
29665 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
29666 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
29667 (keys_of_keyboard): Define dbus-event.
29668
29669 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
29670
29671 2007-12-01 Richard Stallman <rms@gnu.org>
29672
29673 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
29674
29675 2007-11-30 Jason Rumney <jasonr@gnu.org>
29676
29677 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
29678 (w32con_reset_terminal_modes): Clear screen buffer.
29679 (w32_face_attributes): Don't use color indexes that are out of range.
29680 Only reverse the default colors.
29681
29682 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
29683 WINDOWSNT.
29684
29685 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
29686
29687 2007-11-29 Jason Rumney <jasonr@gnu.org>
29688
29689 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
29690 (w32_face_attributes): Use Vtty_defined_color_alist to determine
29691 if the terminal colors are initialized.
29692 (unspecified_fg, unspecified_bg): Remove unused declarations.
29693
29694 2007-11-29 Andreas Schwab <schwab@suse.de>
29695
29696 * keyboard.c (apply_modifiers): Fix typo.
29697
29698 2007-11-29 Richard Stallman <rms@gnu.org>
29699
29700 * keymap.c (Fcurrent_local_map): Doc fix.
29701
29702 2007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
29703
29704 * s/gnu-kfreebsd.h: New file.
29705
29706 2007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
29707
29708 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
29709 Don't cast redundantly.
29710
29711 * keyboard.c (KEY_TO_CHAR): New macro.
29712 (parse_modifiers, apply_modifiers): Accept integer arguments.
29713 (read_key_sequence): Use them to unify the "shift->unshift" mapping
29714 for chars and symbol keys.
29715 After doing such remapping, apply function-key-map again.
29716
29717 2007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
29718
29719 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
29720 compiled anymore.
29721
29722 2007-11-26 Andreas Schwab <schwab@suse.de>
29723
29724 * process.c (list_processes_1): Fix indentation level of the
29725 command column.
29726
29727 2007-11-23 Andreas Schwab <schwab@suse.de>
29728
29729 * editfns.c (Fformat): Handle %c specially since it requires the
29730 argument to be of type int.
29731
29732 2007-11-23 Markus Triska <markus.triska@gmx.at>
29733
29734 * emacs.c (main): Call init_editfns before init_process, since
29735 init_process sets Vprocess_connection_type depending on OS release.
29736
29737 2007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
29738
29739 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
29740 (find_symbol_value): Use do_symval_forwarding.
29741
29742 * data.c (set_internal): Set the value in the `cons-cell' (for
29743 Buffer_Local_values) not only for frame-local variables.
29744
29745 2007-11-22 Andreas Schwab <schwab@suse.de>
29746
29747 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
29748 values to sprintf.
29749 * keymap.c (Fsingle_key_description): Likewise.
29750 * print.c (print_object): Likewise.
29751
29752 2007-11-22 Jan Djärv <jan.h.d@swipnet.se>
29753
29754 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
29755 file for image is nil.
29756
29757 2007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
29758
29759 * term.c: Include stdarg.h.
29760 (fatal): Implement using varargs.
29761 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
29762
29763 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
29764
29765 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
29766 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
29767 Update call to buffer_slot_type_mismatch.
29768 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
29769 (buffer_slot_type_mismatch): Update.
29770 * buffer.c (buffer_local_types): Remove.
29771 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
29772 (defvar_per_buffer): Set the type in the buffer_objfwd.
29773
29774 2007-11-21 Jason Rumney <jasonr@gnu.org>
29775
29776 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
29777 CreateFileMapping returns NULL on failure.
29778
29779 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
29780
29781 * search.c (Fset_match_data): Remove the `evaporate' feature.
29782 (unwind_set_match_data): Don't use the `evaporate' feature.
29783
29784 2007-11-21 Jason Rumney <jasonr@gnu.org>
29785
29786 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
29787
29788 * w32console.c (w32con_write_glyphs): Remove unused variables.
29789
29790 2007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
29791
29792 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
29793
29794 * s/darwin.h (MULTI_KBOARD): Remove.
29795
29796 * macfns.c (x_create_tip_frame, Fx_create_frame)
29797 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
29798
29799 2007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
29800
29801 * buffer.c (Fbuffer_local_value): Remove redundant test.
29802 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
29803 than in `current-buffer' to match the comment.
29804 Do the swap using swap_in_global_binding.
29805
29806 * data.c (store_symval_forwarding, set_internal):
29807 * eval.c (specbind): Remove dead code.
29808
29809 * coding.c (detect_coding, Fupdate_coding_systems_internal):
29810 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
29811 Since we do not want to see internal Lisp_*fwd objects here.
29812
29813 2007-11-18 Jan Djärv <jan.h.d@swipnet.se>
29814
29815 * sysdep.c (init_system_name): Use getaddrinfo if available.
29816
29817 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
29818 (x_scroll_bar_note_movement): start, end, with, height in struct
29819 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
29820
29821 2007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
29822
29823 * puresize.h (BASE_PURESIZE): Increase to 1190000.
29824
29825 2007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
29826
29827 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
29828 This undoes Richard's change of 14-Oct-2002.
29829
29830 * alloc.c (allocate_other_vector):
29831 * lisp.h (allocate_other_vector): Remove.
29832
29833 * window.c (struct save_window_data): Move non-lisp data to the end
29834 and make it `int' rather than Lisp_Object.
29835 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
29836 Done wrap/unwrap integer values.
29837 (Fset_window_configuration, compare_window_configurations):
29838 Update use of fields to their new types.
29839
29840 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
29841 Turn integer fields into `int'. Merge x_window_low and x_window_high.
29842 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
29843 (SET_SCROLL_BAR_X_WINDOW): Remove.
29844 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
29845 Access the new x_window field directly.
29846 * xterm.c (x_scroll_bar_create): Use a pseudovector.
29847 Don't wrap/unwrap integers into Lisp_Objects.
29848 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
29849 (x_scroll_bar_report_motion):
29850 Don't wrap/unwrap integers into Lisp_Objects.
29851 (x_term_init): Use SDATA.
29852 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
29853 (x_scroll_bar_set_handle, x_scroll_bar_remove)
29854 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
29855 (x_scroll_bar_report_motion, x_scroll_bar_clear):
29856 * xfns.c (x_set_background_color):
29857 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
29858 Access the new x_window field directly.
29859
29860 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
29861 (allocate_pseudovector): Make non-static.
29862
29863 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
29864 (allocate_pseudovector): Declare.
29865 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
29866
29867 2007-11-15 Andreas Schwab <schwab@suse.de>
29868
29869 * editfns.c (Fformat): Correctly format EMACS_INT values.
29870 Also take precision into account when formatting an integer.
29871
29872 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
29873
29874 2007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
29875
29876 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
29877 (syms_of_keyboard): Defsubr it.
29878
29879 * data.c (swap_in_global_binding): Fix longstanding bug where
29880 store_symval_forwarding was not called with the right second argument,
29881 thus causing objfwd-ing from being dropped.
29882
29883 2007-11-14 Juanma Barranquero <lekktu@gmail.com>
29884
29885 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
29886 (Fx_display_pixel_height, Fx_display_planes)
29887 (Fx_display_color_cells, Fx_server_max_request_size)
29888 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
29889 (Fx_display_visual_class, Fx_display_save_under):
29890 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
29891 (Fx_display_pixel_height, Fx_display_planes)
29892 (Fx_display_color_cells, Fx_server_max_request_size)
29893 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
29894 (Fx_display_mm_height, Fx_display_mm_width)
29895 (Fx_display_backing_store, Fx_display_visual_class)
29896 (Fw32_select_font, Fx_display_save_under):
29897 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
29898 (Fx_display_pixel_height, Fx_display_planes)
29899 (Fx_display_color_cells, Fx_server_max_request_size)
29900 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
29901 (Fx_display_save_under): Fix typos in docstrings.
29902
29903 2007-11-14 Juanma Barranquero <lekktu@gmail.com>
29904
29905 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
29906 corresponding to deleted entries; they are an implementation detail.
29907 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
29908 Remove variables.
29909 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
29910 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
29911 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
29912 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
29913 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
29914 (Fw32_define_rgb_color, Fw32_load_color_file)
29915 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
29916 Fix typos in docstrings.
29917 (Fx_server_version): Reflow docstring.
29918 (Fw32_shell_execute): Doc fixes.
29919
29920 2007-11-13 Juanma Barranquero <lekktu@gmail.com>
29921
29922 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
29923 if w32_parse_hot_key returned nil.
29924
29925 2007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
29926
29927 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
29928
29929 2007-11-09 Jason Rumney <jasonr@gnu.org>
29930
29931 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
29932
29933 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
29934
29935 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
29936 Remove W32_SCROLL_BAR_CLICK_EVENT.
29937
29938 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
29939 Add MULTIMEDIA_KEY_EVENT.
29940
29941 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
29942 (lispy_multimedia_keys) [WINDOWSNT]: New array.
29943 (make_lispy_event) [WINDOWSNT]: Use it to translate
29944 MULTIMEDIA_KEY_EVENT.
29945
29946 * w32term.h (WM_APPCOMMAND): Define if not already.
29947 (GET_APPCOMMAND_LPARAM): Likewise.
29948
29949 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
29950 WM_APPCOMMAND.
29951
29952 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
29953 (syms_of_w32fns): Export and initialize it.
29954 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
29955
29956 2007-11-09 Chong Yidong <cyd@stupidchicken.com>
29957
29958 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
29959 twice.
29960
29961 * xdisp.c (handle_face_prop): Fix last change.
29962
29963 2007-11-09 Richard Stallman <rms@gnu.org>
29964
29965 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
29966 not just for after-strings and before-strings.
29967 Call face_for_overlay_string and pass the overlay to it.
29968 (handle_display_prop): Determine whether property came from an overlay.
29969 Pass OVERLAY arg to handle_single_display_spec.
29970 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
29971 (load_overlay_strings): Fill in it->string_overlays.
29972 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
29973
29974 * xfaces.c (face_for_overlay_string): Function renamed from
29975 face_at_buffer_position_no_overlays, and add arg OVERLAY.
29976
29977 * dispextern.h (struct it): New elt string_overlays.
29978 New elt from_overlay, also in stack.
29979 Rearrange a few elements.
29980 (face_for_overlay_string): Decl renamed from
29981 face_at_buffer_position_no_overlays, and add argument.
29982
29983 2007-11-09 Richard Stallman <rms@gnu.org>
29984
29985 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
29986 to get the base face for an overlay string.
29987
29988 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
29989
29990 * xfaces.c (face_at_buffer_position_no_overlays): New function.
29991
29992 * xdisp.c (handle_stop): Move some code out of loop.
29993
29994 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29995
29996 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
29997 Fix conversion from Lisp object to ATSUFontID.
29998
29999 2007-11-09 Jason Rumney <jasonr@gnu.org>
30000
30001 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
30002
30003 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30004
30005 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
30006 Don't assume regions are aligned to page boundary.
30007 (print_load_command_name): Add LC_UUID if defined.
30008
30009 2007-11-09 Richard Stallman <rms@gnu.org>
30010
30011 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
30012
30013 2007-11-07 Jason Rumney <jasonr@gnu.org>
30014
30015 * s/windows95.h: Remove.
30016
30017 2007-11-06 Jan Djärv <jan.h.d@swipnet.se>
30018
30019 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
30020 abort with a message on unhandled store_type values.
30021
30022 2007-11-01 Jan Djärv <jan.h.d@swipnet.se>
30023
30024 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
30025 Remove HAVE_X11R5 and HAVE_X11R4.
30026
30027 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
30028
30029 * Makefile.in: Remove references to sunfns.c and sunfns.o.
30030
30031 2007-11-01 Johan Bockgård <bojohan@gnu.org>
30032
30033 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
30034 Don't set s->stippled_p here, since it has already been set by
30035 x_set_glyph_string_gc from x_draw_glyph_string.
30036
30037 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
30038
30039 * sunfns.c: Remove file.
30040
30041 * m/sun386.h:
30042 * m/sun2.h:
30043 * m/sparc.h: Remove Sun windows code.
30044
30045 2007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
30046
30047 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
30048 (init_keyboard): Set current_kboard's window-system to nil.
30049 (tty_read_avail_input): Typo.
30050 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
30051
30052 2007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
30053
30054 * s/usg5-4.h:
30055 * s/usg5-3.h:
30056 * s/ptx.h:
30057 * m/is386.h:
30058 * m/ibmps2-aix.h:
30059 * Makefile.in: Remove all mentions of X10.
30060
30061 * dispnew.c (syms_of_display): Don't mention version 10.
30062
30063 2007-10-28 Juanma Barranquero <lekktu@gmail.com>
30064
30065 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
30066 ($(BLD)/abbrev.$(O)): Remove.
30067
30068 2007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
30069
30070 Rewrite abbrev.c in Elisp.
30071 * image.c (Qcount): Don't declare as extern.
30072 (syms_of_image): Initialize and staticpro `Qcount'.
30073 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
30074 * emacs.c (main): Don't call syms_of_abbrev.
30075 * Makefile.in (obj): Remove abbrev.o.
30076 (abbrev.o): Remove.
30077 * abbrev.c: Remove.
30078
30079 2007-10-26 Martin Rudalics <rudalics@gmx.at>
30080
30081 * window.c (window_min_size_2): Don't count header-line.
30082
30083 2007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
30084
30085 * frame.h (struct frame): Move all bit fields after the first bit
30086 field to take advantage of the available space. Group all the
30087 chars together to reduce wasted space due to padding.
30088
30089 2007-10-26 Juanma Barranquero <lekktu@gmail.com>
30090
30091 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
30092
30093 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
30094 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
30095 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
30096 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
30097 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
30098 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
30099 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
30100 (last_marked, mark_object_loop_halt): Make static.
30101
30102 * frame.c (syms_of_frame) <delete-frame-functions>:
30103 Fix typo in docstring.
30104
30105 2007-10-25 Juanma Barranquero <lekktu@gmail.com>
30106
30107 * w32.c (init_environment): Fix tiny memory leak.
30108 (w32_get_resource): Remove unused variable `ok'.
30109
30110 2007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
30111
30112 Make `window-system' into a keyboard-local variable (rather than
30113 frame-local as done originally by multi-tty).
30114
30115 * keyboard.h (struct kboard): Add Vwindow_system.
30116 * keyboard.c (init_kboard): Set a default for Vwindow_system.
30117 (mark_kboards): Mark Vwindow_system.
30118
30119 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
30120 (init_display): Don't set the obsolete `window-system' frame-param.
30121
30122 * xterm.c (x_term_init):
30123 * w32term.c (w32_create_terminal):
30124 * term.c (init_tty): Set Vwindow_system.
30125 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
30126 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
30127
30128 * xfns.c (Fx_create_frame, x_create_tip_frame):
30129 * w32fns.c (Fx_create_frame, x_create_tip_frame):
30130 * macfns.c (Fx_create_frame):
30131 Don't set the obsolete `window-system' frame-param.
30132
30133 * frame.h (Qwindow_system): Remove.
30134 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
30135 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
30136
30137 2007-10-24 Richard Stallman <rms@gnu.org>
30138
30139 * frame.c (x_figure_window_size): For fullscreen case,
30140 set USPosition | PPosition without clobbering rest of window_prompting.
30141
30142 * keyboard.c (Fcurrent_idle_time): Doc fix.
30143
30144 * print.c (Fwith_output_to_temp_buffer): Doc fix.
30145
30146 2007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
30147
30148 * process.c (unwind_request_sigio): Only define if __ultrix__.
30149
30150 * callproc.c (child_setup): Remove spurious *.
30151
30152 * lisp.h (Fget_text_property): Declare.
30153 (have_menus_p): Declare it here rather than in sys-dep header files.
30154 * macterm.h (have_menus_p):
30155 * msdos.h (have_menus_p):
30156 * xterm.h (have_menus_p): Remove.
30157
30158 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
30159 (Fmake_variable_frame_local): Just check the variable's const-ness
30160 rather than checking nil or t.
30161
30162 2007-10-22 Jason Rumney <jasonr@gnu.org>
30163
30164 * w32fns.c: Include math.h.
30165 (w32_abort): Declaration moved to nt/config.nt.
30166
30167 * s/ms-w32.h (HAVE_STDLIB_H): Define.
30168 (abort): Redefinition moved to nt/config.nt.
30169
30170 * m/windowsnt.h: Remove.
30171
30172 2007-10-22 Juanma Barranquero <lekktu@gmail.com>
30173
30174 * emacs.c (Fdump_emacs): Fix typo in message.
30175 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
30176 <installation-directory>: Reflow docstring.
30177
30178 2007-10-22 Juri Linkov <juri@jurta.org>
30179
30180 * minibuf.c: Allow minibuffer default to be a list of default values.
30181 With empty input use the first element of this list as returned default.
30182 (string_to_object)
30183 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
30184 (read_minibuf): If defalt is cons, set histstring to its car.
30185 (Fread_string): If default_value is cons, set val to its car.
30186 (Fread_buffer): If def is cons, use its car.
30187 (Fcompleting_read): If defalt is cons, set val to its car.
30188
30189 2007-10-21 Michael Albinus <michael.albinus@gmx.de>
30190
30191 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
30192
30193 2007-10-20 Juanma Barranquero <lekktu@gmail.com>
30194
30195 * doc.c (Fdocumentation): Check for advice in all cases.
30196
30197 2007-10-19 Chong Yidong <cyd@stupidchicken.com>
30198
30199 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
30200
30201 2007-10-19 Richard Stallman <rms@gnu.org>
30202
30203 * doc.c (Fdocumentation): Check for and handle an advised function.
30204
30205 2007-10-19 Juanma Barranquero <lekktu@gmail.com>
30206
30207 * process.c (Fset_process_filter): Doc fix.
30208
30209 2007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
30210
30211 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
30212 which caused key-translation-map to applied repeatedly (thus breaking
30213 double-mode).
30214
30215 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
30216
30217 * xselect.c (x_own_selection, x_handle_selection_clear)
30218 (x_clear_frame_selections):
30219 * w32menu.c (list_of_panes, list_of_items):
30220 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
30221 * textprop.c (validate_plist, interval_has_all_properties)
30222 (interval_has_some_properties, interval_has_some_properties_list)
30223 (add_properties, text_property_list):
30224 * process.c (Fget_buffer_process, list_processes_1, status_notify):
30225 * minibuf.c (Fassoc_string):
30226 * macselect.c (x_own_selection, x_clear_frame_selections)
30227 (Fx_disown_selection_internal):
30228 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
30229 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
30230
30231 2007-10-17 Chong Yidong <cyd@stupidchicken.com>
30232
30233 * process.c: Link to libs for calling res_init() if available.
30234 (Fmake_network_process): Call res_init() before getaddrinfo or
30235 gethostbyname, if possible.
30236
30237 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
30238
30239 * lread.c (read1): Set pvectype for char_tables.
30240
30241 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
30242 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
30243 Add type checks.
30244 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
30245
30246 * alloc.c (free_misc): Use XMISCTYPE.
30247 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
30248
30249 2007-10-17 Glenn Morris <rgm@gnu.org>
30250
30251 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
30252 (syms_of_minibuf): Add Qcompletion_ignore_case.
30253 * dired.c (Qcompletion_ignore_case): Change to external.
30254 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
30255 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
30256 (Fread_file_name): Use it rather than intern'ing.
30257
30258 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
30259 (Fread_coding_system): Ignore case of user input.
30260
30261 2007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30262
30263 * xdisp.c (handle_display_prop): Ignore display specs after
30264 replacing one when string text is being replaced.
30265 (handle_single_display_spec): Pretend as if characters with display
30266 property haven't been consumed only when buffer text is being replaced.
30267
30268 2007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
30269
30270 * xfns.c (Fx_create_frame, Fx_display_list):
30271 * window.c (window_fixed_size_p, enlarge_window)
30272 (shrink_window_lowest_first):
30273 * macterm.c (init_font_name_table):
30274 * macfns.c (Fx_create_frame, Fx_display_list):
30275 * lread.c (close_load_descs):
30276 * keyboard.c (read_char_x_menu_prompt):
30277 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
30278 * coding.c (code_convert_region_unwind): Test the type of an object
30279 rather than just !NILP before extracting data from it.
30280
30281 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
30282
30283 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
30284 (XMISCANY): New macro.
30285 (XMISCTYPE): Use it.
30286 (struct Lisp_Misc_Any): New type.
30287 (union Lisp_Misc): Use it.
30288 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
30289 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
30290 (find_symbol_value, set_internal, default_value, Fset_default)
30291 (Fmake_variable_buffer_local, Fmake_local_variable)
30292 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
30293 (Flocal_variable_if_set_p, Fvariable_binding_locus):
30294 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
30295 * alloc.c (allocate_buffer): Set the size and tag.
30296 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
30297 Use XMISCANY.
30298 (die): Follow the GNU convention for error messages.
30299 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
30300 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
30301 tag any more.
30302 (set_buffer_internal_1):
30303 * frame.c (store_frame_param):
30304 * eval.c (specbind):
30305 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
30306
30307 * doc.c (Fsnarf_documentation): Simplify.
30308
30309 2007-10-14 Juanma Barranquero <lekktu@gmail.com>
30310
30311 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
30312 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
30313
30314 2007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
30315
30316 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
30317
30318 2007-10-14 Juanma Barranquero <lekktu@gmail.com>
30319
30320 * eval.c (do_autoload): Don't save autoloads.
30321
30322 * data.c (Ffset): Save autoload of the function being set.
30323
30324 2007-10-07 John Paul Wallington <jpw@pobox.com>
30325
30326 * xfns.c (x_create_tip_frame): Set the `display-type' frame
30327 parameter before setting up faces.
30328
30329 2007-10-13 Eli Zaretskii <eliz@gnu.org>
30330
30331 * ccl.c (Fregister_code_conversion_map):
30332 * keyboard.c (append_tool_bar_item): Reformat last change.
30333
30334 * lisp.h (eabs): Rename from `abs'. All callers changed.
30335
30336 2007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
30337
30338 * buffer.c (add_overlay_mod_hooklist):
30339 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
30340 * fontset.c (make_fontset):
30341 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
30342 (append_tool_bar_item):
30343 * macmenu.c (grow_menu_items):
30344 * w32menu.c (grow_menu_items):
30345 * xmenu.c (grow_menu_items): Use larger_vector.
30346
30347 2007-10-13 Eli Zaretskii <eliz@gnu.org>
30348
30349 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
30350 selected frame'' on MSDOS).
30351
30352 2007-10-12 Martin Rudalics <rudalics@gmx.at>
30353
30354 * frame.c (Qexplicit_name): New variable.
30355 (x_report_frame_params): Report it in parameter alist.
30356 (syms_of_frame): Intern and staticpro it.
30357
30358 2007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
30359
30360 * macfns.c (x_create_tip_frame): Set terminal for frame.
30361
30362 2007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
30363
30364 * frame.c (Qenvironment): Remove.
30365 (syms_of_frame) <Qenvironment>: Don't initialize.
30366 (Fdelete_frame): Don't treat the `environment' param specially.
30367 * frame.h (Qenvironment): Don't declare.
30368 * callproc.c (set_initial_environment): Don't set unused frame param.
30369
30370 * frame.c (Fframe_with_environment): Remove.
30371 (syms_of_frame) <Sframe_with_environment>: Don't declare.
30372
30373 * lisp.h (Fframe_with_environment): Don't declare.
30374
30375 2007-10-10 Juanma Barranquero <lekktu@gmail.com>
30376
30377 * indent.c (indent_tabs_mode, last_known_column)
30378 (last_known_column_modified): Make static.
30379 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
30380
30381 2007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
30382
30383 * puresize.h (BASE_PURESIZE): Increase to 1170000.
30384
30385 2007-10-09 Jason Rumney <jasonr@gnu.org>
30386
30387 * w32term.c (x_set_window_size): Disable code that attempts to tell
30388 Lisp code about a size change before it actually happens.
30389
30390 2007-10-09 Richard Stallman <rms@gnu.org>
30391
30392 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
30393 return HANDLED_RETURN.
30394
30395 2007-10-08 Martin Rudalics <rudalics@gmx.at>
30396
30397 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
30398 when there's an unread command event.
30399
30400 * frame.c (focus_follows_mouse): Move here from frame.el to allow
30401 window autoselection act appropriately when leaving selected frame.
30402 (syms_of_frame): Initialize focus_follows_mouse.
30403 * frame.h (focus_follows_mouse): Extern it.
30404 * macterm.c (XTread_socket): When focus_follows_mouse is nil
30405 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
30406 * msdos.c (dos_rawgetc): Likewise.
30407 * w32term.c (w32_read_socket): Likewise.
30408 * xterm.c (handle_one_xevent): Likewise.
30409 * xdisp.c (syms_of_xdisp): In doc-string of
30410 mouse-autoselect-window mention focus-follows-mouse.
30411
30412 2007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30413
30414 * macterm.c (mac_load_query_font): Fix missing return value.
30415 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
30416 Add BLOCK_INPUT.
30417
30418 2007-10-08 Richard Stallman <rms@gnu.org>
30419
30420 * xdisp.c (get_window_cursor_type): Implement documented behavior
30421 for cursor-in-non-selected-windows = t.
30422
30423 2007-10-08 Jason Rumney <jasonr@gnu.org>
30424
30425 * w32.c (w32_get_resource): Always close registry keys.
30426
30427 2007-10-08 Jason Rumney <jasonr@gnu.org>
30428
30429 * makefile.w32-in (LIBS): Add COMCTL32.
30430
30431 * w32fns.c (globals_of_w32fns): Init common controls.
30432
30433 2007-10-08 Richard Stallman <rms@gnu.org>
30434
30435 * image.c (our_memory_buffer): Rename from omfib_buffer.
30436
30437 2007-10-08 Richard Stallman <rms@gnu.org>
30438
30439 * buffer.c (Foverlays_at): Doc fix.
30440
30441 2007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
30442
30443 * fns.c (Fplist_put): Preserve uneven tail data.
30444
30445 2007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
30446
30447 * termhooks.h (enum event_kind): Remove trailing comma.
30448
30449 * frame.h (enum): Remove trailing comma.
30450
30451 2007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
30452
30453 * w32proc.c (delete_child): Don't terminate threads of zombies.
30454
30455 2007-10-08 Martin Rudalics <rudalics@gmx.at>
30456
30457 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
30458
30459 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
30460 last-repeatable-command.
30461 (init_kboard): Initialize Vlast_repeatable_command.
30462 (command_loop_1): Set it to real_this_command unless that was
30463 bound to an input event.
30464 (mark_kboards): Mark it.
30465
30466 2007-10-08 Richard Stallman <rms@gnu.org>
30467
30468 * eval.c (condition-case): Doc fix.
30469
30470 2007-10-08 Masatake YAMATO <jet@gyve.org>
30471
30472 * xfaces.c (tty_supports_face_attributes_p): Fix code
30473 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
30474 was copied and not edited.
30475
30476 2007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
30477
30478 Add new `input-decode-map' keymap and use it for terminal
30479 escape sequences.
30480 * keyboard.h (struct kboard): Add Vinput_decode_map.
30481 Remove Vlocal_key_translation_map.
30482 * keyboard.c (read_key_sequence): Add support for input-decode-map.
30483 (init_kboard): Init input-decode-map.
30484 Replace local-key-translation-map back with key-translation-map.
30485 (syms_of_keyboard): Declare input-decode-map.
30486 Remove local-key-translation-map. Update docstrings.
30487 (mark_kboards): Mark Vinput_decode_map.
30488 Don't mark Vlocal_key_translation_map.
30489 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
30490 Replace local-key-translation-map back with key-translation-map.
30491 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
30492 Bind in input-decode-map rather than function-key-map.
30493
30494 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
30495 This was made redundant by the previous introduction of XSETPVECTYPE.
30496
30497 2007-10-09 Richard Stallman <rms@gnu.org>
30498
30499 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
30500
30501 2007-09-29 Richard Stallman <rms@gnu.org>
30502
30503 * eval.c (internal_condition_case_2, internal_condition_case_1)
30504 (internal_condition_case): Reenable abort if x_catching_errors ()
30505 to see if that really happens and why.
30506
30507 2007-10-06 Andreas Schwab <schwab@suse.de>
30508
30509 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
30510
30511 2007-10-04 Juanma Barranquero <lekktu@gmail.com>
30512
30513 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
30514
30515 2007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
30516
30517 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
30518
30519 2007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
30520
30521 * window.h (struct window):
30522 * window.c (struct save_window_data, struct saved_window):
30523 * termhooks.h (struct terminal):
30524 * process.h (struct Lisp_Process):
30525 * frame.h (struct frame):
30526 * buffer.h (struct buffer):
30527 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
30528 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
30529 The size field of (pseudo)vectors is now unsigned.
30530 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
30531
30532 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
30533 Turn `count' into an integer.
30534
30535 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
30536 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
30537 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
30538 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
30539 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
30540
30541 * alloc.c (allocate_pseudovector): New fun.
30542 (ALLOCATE_PSEUDOVECTOR): New macro.
30543 (allocate_window, allocate_terminal, allocate_frame)
30544 (allocate_process): Use it.
30545 (mark_vectorlike): New function.
30546 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
30547 (mark_terminals): Use it.
30548 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
30549 (Fmake_byte_code): Use XSETPVECTYPE.
30550
30551 * frame.c (Fframe_parameters): Minor simplification.
30552
30553 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
30554
30555 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
30556
30557 * buffer.c (Fget_buffer_create, init_buffer_once):
30558 * lread.c (defsubr):
30559 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
30560
30561 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
30562 defined differently in the m/*.h files.
30563 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
30564 (XSETPVECTYPE): New macro.
30565 (XSETPSEUDOVECTOR): Use it.
30566
30567 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
30568 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
30569
30570 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
30571 * lread.c (defvar_per_buffer):
30572 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
30573
30574 * window.c (candidate_window_p): Only consider as visible frames that
30575 are on the same terminal.
30576
30577 * m/ibms390x.h (MARKBIT): Remove unused macro.
30578
30579 2007-10-01 Juanma Barranquero <lekktu@gmail.com>
30580
30581 * lread.c (Fload): Fix typo in docstring.
30582
30583 2007-10-01 Michaël Cadilhac <michael@cadilhac.name>
30584
30585 * floatfns.c (Fexpt): Manually check for overflows, so that a power
30586 of a non-zero value can't yield zero.
30587
30588 2007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
30589
30590 * term.c (term_clear_mouse_face, term_mouse_highlight)
30591 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
30592
30593 * print.c (safe_debug_print): Use XHASH.
30594
30595 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
30596 Lisp elements such as tags.
30597 (XHASH): New macro.
30598 (EQ): Use it.
30599 (SREF, SSET, STRING_COPYIN): Use SDATA.
30600 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
30601
30602 * alloc.c (mark_terminal): Remove left-over declaration.
30603 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
30604 (allocate_vectorlike): Remove type argument. Adjust callers.
30605 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
30606 Only handle the one remaining MEM_TYPE_VECTORLIKE.
30607
30608 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
30609 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
30610 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
30611 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
30612 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
30613 Use them.
30614
30615 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
30616 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
30617 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
30618
30619 2007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
30620
30621 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
30622 loaded by default.
30623
30624 2007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
30625
30626 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
30627 on this tty.
30628 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
30629
30630 * term.c (mouse_face_window): Rename from Qmouse_face_window.
30631 Update all users.
30632 (handle_one_term_event): Use Gpm_DrawPointer.
30633 (Fgpm_mouse_start): Rename from Fterm_open_connection.
30634 Signal errors instead of returning nil. Always return nil.
30635 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
30636 Make it a noop if gpm-mouse was not activated.
30637 (syms_of_term): Update names.
30638
30639 2007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
30640
30641 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
30642 (init_sys_modes): Check that gpm_tty is the current tty.
30643
30644 * alloc.c (allocate_terminal): Set the vector size to only count the
30645 lisp fields. Initialize those to nil.
30646 (mark_object): Don't treat terminals specially.
30647 (mark_terminal): Remove.
30648 (mark_terminals): Use mark_object instead.
30649
30650 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
30651 the GC to the beginning.
30652
30653 * indent.h:
30654 * indent.c: Use EMACS_INT for ints coming from Elisp data.
30655
30656 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
30657
30658 2007-09-25 Jason Rumney <jasonr@gnu.org>
30659
30660 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
30661
30662 * w32console.c (create_w32cons_output): Remove.
30663
30664 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
30665
30666 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
30667 (reset_sys_modes): Use reset_terminal_modes_hook.
30668
30669 2007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
30670
30671 * eval.c (do_autoload): Don't output any message.
30672
30673 2007-09-24 Juri Linkov <juri@jurta.org>
30674
30675 * emacs.c (standard_args): Change priority of "--no-splash"
30676 from 40 to 3. Add "--no-desktop" with the same priority.
30677
30678 2007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
30679
30680 * alloc.c (gc_sweep): Check cons cell mark bits word by word
30681 and optimize the case where they are all 1.
30682
30683 2007-09-23 Johannes Weiner <hannes@saeurebad.de>
30684
30685 * lisp.h (abs): Define if not defined.
30686 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
30687 Don't define `abs', since it's defined in lisp.h.
30688
30689 2007-09-22 Eli Zaretskii <eliz@gnu.org>
30690
30691 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
30692 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
30693 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
30694 (init_tty): Use DEV_TTY instead of "/dev/tty".
30695 [WINDOWSNT]: No need to protect from NAME arg being null.
30696
30697 2007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
30698
30699 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
30700 up the tty state.
30701
30702 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
30703
30704 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
30705 (gpm_tty): Change its type.
30706 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
30707 (gpm_tty): Change its type and initialize it.
30708 (Fterm_open_connection): Check the frame is indeed a tty.
30709 Use the new gpm_tty.
30710 (Fterm_close_connection): Use the new gpm_tty.
30711 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
30712 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
30713
30714 2007-09-21 Juanma Barranquero <lekktu@gmail.com>
30715
30716 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
30717 underline_color, to draw strike-through.
30718
30719 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
30720
30721 * lisp.h (allocate_terminal): Declare.
30722
30723 * window.c (candidate_window_p): Consider frames that are being placed
30724 by the user as somewhere between visible and iconified.
30725 (window_loop): Prefer windows on the current frame.
30726 (Fselect_window): Move the use of select-frame to the beginning so we
30727 can just delegate all the work (it'll call us back anyway).
30728
30729 * frame.c (Qdisplay_environment_variable):
30730 * frame.h (Qdisplay_environment_variable): Delete.
30731
30732 * .gdbinit (xbacktrace): Print the arg's address rather than the value
30733 of the first arg, since that value may be a union.
30734
30735 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
30736 parameter rather than Qdisplay_environment_variable. If all else
30737 fails, look for DISPLAY in initial-environment.
30738
30739 2007-09-21 Glenn Morris <rgm@gnu.org>
30740
30741 * Makefile.in (emacstool): Remove target.
30742 (lisp, shortlisp): Remove termdev.elc.
30743
30744 2007-09-21 Markus Triska <markus.triska@gmx.at>
30745
30746 * xterm.c (x_delete_display): Compile session management conditionally.
30747
30748 2007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
30749
30750 * callproc.c (getenv_internal_1): New function.
30751 (getenv_internal): Use it.
30752 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
30753
30754 * terminal.c (get_terminal): Don't accept ints to represent terminals.
30755 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
30756 (Fset_terminal_parameter): Work with dead terminals as well.
30757 (Fmodify_terminal_parameters): Remove.
30758
30759 * terminal.c (get_terminal): Handle terminals.
30760 Make sure the terminal returned is live.
30761 (create_terminal): Use allocate_terminal.
30762 (mark_terminals): Move to alloc.c.
30763 (delete_terminal): Use terminal->name as liveness status.
30764 NULL out fields after freeing their contents.
30765 Don't deallocate the object.
30766 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
30767 rather than an int.
30768 (Fterminal_live_p): Accept non-integer arguments.
30769 (Fterminal_list): Return terminal objects rather than an ints.
30770
30771 * alloc.c (enum mem_type): New member for `terminal' objects.
30772 (allocate_terminal): New function.
30773 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
30774 Handle terminals.
30775 (mark_terminal): New fun.
30776 (mark_terminals): Move from terminal.c.
30777
30778 * term.c (get_tty_terminal): Don't treat output_initial specially.
30779 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
30780 (delete_tty): Use terminal->name as liveness status.
30781
30782 * termhooks.h (struct terminal): Make it into a pseudovector.
30783 Remove `deleted' replaced by checking `name's nullness.
30784
30785 * print.c (print_object): Handle terminals.
30786
30787 * lisp.h (enum pvec_type): New `terminal' pseudovector.
30788 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
30789
30790 * frame.c (make_terminal_frame):
30791 * keyboard.c (tty_read_avail_input):
30792 * w32term.c (x_delete_terminal):
30793 * xfns.c (Fx_create_frame, x_create_tip_frame):
30794 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
30795
30796 2007-09-20 Glenn Morris <rgm@gnu.org>
30797
30798 * process.c (Fmake_network_process): Doc fix.
30799
30800 2007-09-19 Jason Rumney <jasonr@gnu.org>
30801
30802 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
30803
30804 2007-09-19 Michaël Cadilhac <michael@cadilhac.name>
30805
30806 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
30807 Fix a C warning regarding variable constness.
30808
30809 * xterm.c (handle_one_xevent): Fix a C warning.
30810
30811 2007-09-18 Jason Rumney <jasonr@gnu.org>
30812
30813 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
30814
30815 2007-09-17 Jan Djärv <jan.h.d@swipnet.se>
30816
30817 * gtkutil.c (gdpy_def): New variable.
30818 (xg_initialize): Initialize gdpy_def.
30819 (xg_display_close): If no other display exists, set gdpy_def to a
30820 new connection.
30821
30822 2007-09-16 Jan Djärv <jan.h.d@swipnet.se>
30823
30824 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
30825 when we have no file name for the icon.
30826 (xg_tool_bar_expose_callback): Remove.
30827 (xg_create_tool_bar): Don't connect expose signal to
30828 xg_tool_bar_expose_callback.
30829 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
30830
30831 2007-09-16 Andreas Schwab <schwab@suse.de>
30832
30833 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
30834 values instead of zapping them.
30835
30836 2007-09-14 Glenn Morris <rgm@gnu.org>
30837
30838 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
30839 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
30840 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
30841 scope and rename to omfib_buffer for clarity.
30842 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
30843
30844 2007-09-14 Kenichi Handa <handa@m17n.org>
30845
30846 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
30847
30848 2007-09-13 Jason Rumney <jasonr@gnu.org>
30849
30850 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
30851
30852 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
30853
30854 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
30855 (mac_term_init): Call here instead, passing rif.
30856
30857 2007-09-13 Glenn Morris <rgm@gnu.org>
30858
30859 * s/hpux.h: No longer define `static' as nothing.
30860
30861 2007-09-13 Johan Bockgård <bojohan@gnu.org>
30862
30863 * callint.c (Fcall_interactively): Remove unused var `fun'.
30864
30865 2007-09-12 Romain Francoise <romain@orebokech.com>
30866
30867 * window.c (prefer_window_split_horizontally, display_buffer):
30868 Revert 2007-09-08 change.
30869
30870 2007-09-12 Glenn Morris <rgm@gnu.org>
30871
30872 * alloca.c: Remove file.
30873 * Makefile.in (alloca): Do not undef.
30874 (allocaobj, alloca.o): Remove.
30875 (otherobj): Remove allocaobj.
30876 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
30877 * regex.c (C_ALLOCA): Remove all references and code that was only
30878 used when this was defined.
30879 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
30880 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
30881 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
30882
30883 * Makefile.in (SOURCES, unlock, relock): Delete.
30884
30885 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
30886 (menu_grab_callback): All uses changed.
30887
30888 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
30889 (x_reply_selection_request): All uses changed.
30890
30891 2007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
30892
30893 * lread.c (load_warn_old_style_backquotes): Change message to look
30894 better when it appears in the middle of byte-compiler messages.
30895
30896 2007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
30897
30898 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
30899
30900 * xterm.c (x_create_terminal): Add comment.
30901
30902 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
30903
30904 2007-09-10 Richard Stallman <rms@gnu.org>
30905
30906 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
30907
30908 2007-09-10 Michaël Cadilhac <michael@cadilhac.name>
30909
30910 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
30911 (DEFUN): Document `intspec', use it instead of `prompt'.
30912
30913 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
30914
30915 * data.c (Finteractive_form): If the interactive specification starts
30916 with a `(', use it as a Lisp form.
30917
30918 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
30919 name and file modes.
30920
30921 * callint.c (Fcall_interactively): Comment fixes.
30922
30923 2007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
30924
30925 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
30926 and compiled functions.
30927
30928 2007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
30929
30930 * window.c (prefer_window_split_horizontally): New variable.
30931 (display_buffer): Consider splitting window horizontally depending
30932 on prefer_window_split_horizontally.
30933
30934 2007-09-08 Eli Zaretskii <eliz@gnu.org>
30935
30936 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
30937
30938 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
30939
30940 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
30941
30942 * frame.c (x_set_frame_parameters): Check number is positive before
30943 using XFASTINT.
30944
30945 * window.c (freeze_window_start): Don't presume selected_window holds
30946 a window object.
30947 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
30948
30949 2007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
30950
30951 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
30952
30953 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
30954
30955 * window.c (Vsplit_window_preferred_function): New var.
30956 (Fdisplay_buffer): Use it.
30957 (syms_of_window): Export, and initialize it.
30958
30959 2007-09-06 Pixel <pixel@mandriva.com> (tiny change)
30960
30961 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
30962
30963 2007-09-06 Glenn Morris <rgm@gnu.org>
30964
30965 * gtkutil.c (menu_grab_callback) <cnt>:
30966 * xselect.c (x_reply_selection_request) <cnt>: Move static
30967 variable to file scope.
30968
30969 2007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
30970
30971 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
30972 consistent values of selected_frame and selected_window.
30973
30974 2007-09-04 Jason Rumney <jasonr@gnu.org>
30975
30976 * w32console.c (initialize_w32_display): Zero unused hooks.
30977
30978 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
30979
30980 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
30981 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
30982
30983 2007-09-04 Jason Rumney <jasonr@gnu.org>
30984
30985 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
30986 in w32console.c. Set up input. Remove XXX comments that have been
30987 confirmed as correct.
30988
30989 * s/ms-w32.h (MULTI_KBOARD): Define.
30990
30991 * w32console.c (one_and_only_w32cons): Remove.
30992 (initialize_w32_display): Take terminal argument.
30993
30994 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
30995 initialize_w32_display.
30996 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
30997
30998 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
30999
31000 * keyboard.c (discard_mouse_events): Discard it.
31001 (make_lispy_event): Translate it to a lisp event.
31002 (lispy_wheel_names): Add wheel-left and right events.
31003 (syms_of_keyboard): Enlarge wheel_syms.
31004
31005 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
31006 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
31007
31008 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
31009
31010 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
31011 from WM_MOUSEHWHEEL.
31012 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
31013
31014 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
31015 terminal.
31016
31017 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
31018 keyboard for the terminal.
31019
31020 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
31021
31022 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
31023 (Vresume_tty_hook): Rename from Vresume_tty_functions.
31024 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
31025 and resume-tty-function to resume-tty-hook.
31026 (Fsuspend_tty, Fresume_tty): Use new names.
31027
31028 2007-09-02 Jan Djärv <jan.h.d@swipnet.se>
31029
31030 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
31031 if it starts with "n:".
31032
31033 2007-08-31 Jan Djärv <jan.h.d@swipnet.se>
31034
31035 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
31036
31037 2007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
31038
31039 * frame.h:
31040 * frame.c (Qterm_environment_variable): Remove.
31041 (syms_of_frame): Don't init and staticpro it.
31042
31043 * callproc.c (getenv_internal): Remove special case for $TERM.
31044
31045 * callproc.c (Vinitial_environment): New variable.
31046 (set_initial_environment): Initialize it.
31047 (syms_of_callproc): Declare it.
31048 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
31049 TERM under which a process runs is never related to the TERM in which
31050 Emacs is running.
31051
31052 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
31053
31054 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
31055 * s/darwin.h: ... do it here.
31056
31057 2007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
31058
31059 * lisp.h (set_initial_environment): Rename from set_global_environment.
31060
31061 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
31062 removed by mistake on the multi-tty branch.
31063
31064 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
31065 (Fmodify_frame_parameters): Return a value.
31066
31067 * image.c (png_load): Comment-out var only used in commented-out code.
31068
31069 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
31070 before passing it to mark_object.
31071
31072 * xfaces.c (internal_resolve_face_name): Return a value.
31073 (internal_resolve_face_name, resolve_face_name_error): Comment out.
31074
31075 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
31076 (x_icon): Comment-out var only used in commented-out code.
31077
31078 2007-08-29 Romain Francoise <romain@orebokech.com>
31079
31080 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
31081 QUIT hasn't been provided.
31082
31083 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
31084
31085 * callproc.c (child_setup, getenv_internal): Use the
31086 display-environment-variable and term-environment-variable frame params.
31087 (set_initial_environment): Initialise Vprocess_environment.
31088
31089 * config.in: Disable multi-keyboard support on a mac.
31090
31091 * frame.c (Qterm_environment_variable)
31092 (Qdisplay_environment_variable): New variables.
31093 (syms_of_frame): Intern and staticpro them.
31094 (Fmake_terminal_frame): Disable output method test.
31095
31096 * frame.h: Declare them here.
31097
31098 * macfns.c (x_set_mouse_color): Get rif from the frame.
31099 (x_set_tool_bar_lines): Don't use updating_frame.
31100 (mac_window): Add 2 new parameters for consistency with other systems.
31101 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
31102 frame parameters following what is done in X11 and w32. Don't use
31103 FRAME_MAC_DISPLAY_INFO.
31104 (Fx_open_connection, start_hourglass): Remove window-system check.
31105 (x_create_tip_frame): Get the keyboard from the terminal.
31106
31107 * macmenu.c: Reorder includes.
31108 (Fx_popup_menu): Use terminal specific mouse_position_hook.
31109
31110 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
31111 terminal parameter.
31112 (x_clear_frame): Add a frame parameter.
31113 (note_mouse_movement): Get rif from the frame.
31114 (mac_term_init): Initialize the terminal.
31115 (mac_initialize): Make static and move terminal initialization ...
31116 (mac_create_terminal): ... to this new function.
31117
31118 * macterm.h (struct mac_display_info): Add terminal.
31119 (mac_initialize): Delete declaration.
31120
31121 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
31122
31123 * sysdep.c: Comment out text after #endif.
31124
31125 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
31126 is defined. Better initialize ttys in windows. Use terminal
31127 specific mouse_position_hook.
31128
31129 * termhooks.h (union display_info): Add mac_display_info.
31130
31131 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
31132 Set the default minibuffer frame, window_system and the rest of the
31133 frame parameters following what is done in X11.
31134
31135 * w32term.c (w32_initialize): Make static.
31136
31137 * xselect.c (x_handle_selection_clear): Only access
31138 terminal->kboard when MULTI_KBOARD is defined.
31139
31140 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
31141 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
31142
31143 2007-08-29 Jason Rumney <jasonr@gnu.org>
31144
31145 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
31146 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
31147
31148 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
31149 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
31150
31151 * keyboard.c (restore_kboard_configuration): Only define when
31152 MULTI_KBOARD defined.
31153
31154 * makefile.w32-in: Update dependancies from Makefile.in.
31155 (OBJ1): Add terminal.$(O)
31156
31157 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
31158 Don't define function body.
31159 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
31160
31161 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
31162
31163 * w32.c (request_sigio, unrequest_sigio): Remove.
31164
31165 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
31166 (w32con_clear_frame, w32con_clear_end_of_line)
31167 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
31168 (w32con_delete_glyphs, w32con_set_terminal_window)
31169 (scroll_line, w32_sys_ring_bell): Add frame arg.
31170 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
31171 Add terminal arg.
31172 (PICK_FRAME): Remove.
31173 (w32con_write_glyphs): Use frame specific terminal coding.
31174 (one_and_only_w32cons): New global variable.
31175 (initialize_w32_display): Use it for storing hooks.
31176 (create_w32cons_output): New function.
31177
31178 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
31179 arg a frame.
31180
31181 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
31182 Set window_system.
31183 (x_set_tool_bar_lines): Don't use updating_frame.
31184 (Fx_create_frame): Set terminal and ref count.
31185 (Fx_open_connection): Remove window-system check.
31186
31187 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
31188
31189 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
31190 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
31191 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
31192 Add frame arg.
31193 (x_delete_terminal, w32_create_terminal): New functions.
31194 (w32_term_init): Create a terminal.
31195 (w32_initialize): Move terminal specific initialization to
31196 w32_create_terminal.
31197
31198 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
31199 (w32_clear_rect, w32_clear_area): Use background from frame.
31200 (w32_display_info): Add terminal.
31201 (w32_sys_ring_bell, x_delete_display): Declare here.
31202
31203 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
31204
31205 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
31206
31207 2007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
31208
31209 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
31210 Fix get_named_tty calls for the controlling tty.
31211
31212 2007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
31213
31214 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
31215
31216 2007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
31217
31218 * term.c (tty_insert_glyphs): Add missing first parameter.
31219
31220 2007-08-29 Károly Lőrentey <karoly@lorentey.hu>
31221
31222 * buffer.c (Fbuffer_list, Fbury_buffer):
31223 Take frame->buried_buffer_list into account.
31224
31225 * cm.c (current_tty): New variable, for cmputc().
31226 (cmputc): Use it.
31227 (cmcheckmagic): Add tty parameter, look up terminal streams there.
31228 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
31229 (cmgoto): Add tty parameter. Pass it on to calccost().
31230 Use emacs_tputs() instead of tputs().
31231
31232 * cm.h (emacs_tputs): New macro to set current_tty, and then call
31233 tputs().
31234 (current_tty): New variable, for cmputc().
31235 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
31236
31237 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
31238 (internal_condition_case, internal_condition_case_1)
31239 (internal_condition_case_2): Don't abort when x_catching_errors.
31240
31241 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
31242 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
31243 prevent crashes caused by bogus longjmps in read_char.
31244
31245 * keymap.h (Fset_keymap_parent): Add EXFUN.
31246
31247 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
31248 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
31249 Remove redundant definition.
31250
31251 * macfns.c (x_set_mouse_color, x_make_gc):
31252 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
31253
31254 * w32term.c (x_free_frame_resources):
31255 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
31256 (w32_initialize): Use the accessor macros for terminal characteristics.
31257
31258 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
31259 Use the accessor macros for terminal characteristics.
31260 * msdos.c (internal_terminal_init): Use the accessor macros for
31261 terminal characteristics.
31262 (ScreenVisualBell, internal_terminal_init):
31263 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
31264
31265 * termopts.h (no_redraw_on_reenter): Declare.
31266
31267 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
31268 (mark_terminals, mark_ttys): Declare.
31269 (Fgarbage_collect): Call them.
31270 (mark_object): Mark buried_buffer_list.
31271
31272 * prefix-args.c: Include stdlib.h for exit.
31273
31274 * syssignal.h: Add comment.
31275
31276 * indent.c: Include stdio.h.
31277
31278 * window.h (Vinitial_window_system): Declare.
31279 (Vwindow_system): Delete declaration.
31280
31281 * fontset.c (Finternal_char_font): Use FRAME_RIF.
31282
31283 * image.c (lookup_image): Don't initialize `c' until the xasserts
31284 have been run.
31285
31286 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
31287 FRAME_FOREGROUND_PIXEL.
31288
31289 * print.c (print_preprocess): Don't lose print_depth levels while
31290 iterating.
31291
31292 * widget.c (update_from_various_frame_slots):
31293 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
31294
31295 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
31296 frames.
31297 (window_internal_height): Remove bogus make_number call.
31298 (init_window_once): Call make_terminal_frame with two zero parameters.
31299
31300 * fileio.c (Fread_file_name): Update comment.
31301
31302 * callint.c (Fcall_interactively):
31303 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
31304 Make sure it is correctly unwound.
31305
31306 * xsmfns.c (x_session_close): New function.
31307
31308 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
31309 Delete declarations.
31310
31311 * xterm.h: Remove declaration for x_fully_uncatch_errors.
31312 (x_output): Remove background_pixel and foreground_pixel fields.
31313 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
31314 (x_delete_device, x_session_close): Declare.
31315
31316 * lread.c: Include setjmp.h. Update declaration of `read_char'.
31317 (read_filtered_event): Call `read_char' with a local
31318 `wrong_kboard_jmpbuf'.
31319
31320 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
31321 Don't call single_kboard_state. Use FRAME_RIF.
31322
31323 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
31324 systems.
31325
31326 * lisp.h (set_process_environment): Rename to `set_global_environment'.
31327 (Fframe_with_environment, Fset_input_meta_mode)
31328 (Fset_quit_char): EXFUN.
31329 (x_create_device, tty_output, terminal, tty_display_info): Declare.
31330 (init_sys_modes, reset_sys_modes): Update prototypes.
31331 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
31332
31333 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
31334 Vlocal_key_translation_map, and Vkeyboard_translate_table.
31335 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
31336 Delete declarations.
31337 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
31338 (temporarily_switch_to_single_kboard, tty_read_avail_input):
31339 New declarations.
31340
31341 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
31342 already does that during init_display(). Call syms_of_keymap
31343 before syms_of_keyboard. Call `syms_of_terminal'.
31344 Call set_initial_environment, not set_process_environment.
31345 (shut_down_emacs): Call reset_all_sys_modes() instead of
31346 reset_sys_modes().
31347
31348 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
31349 (internal_resolve_face_name, resolve_face_name_error): New functions.
31350 (resolve_face_name): Protect against loops and errors thrown by Fget.
31351 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
31352 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
31353
31354 * scroll.c: Replace CURTTY() with local variables throughout the
31355 file (where applicable).
31356 (calculate_scrolling, calculate_direct_scrolling)
31357 (scrolling_1, scroll_cost): Use the accessor macros for terminal
31358 characteristics.
31359
31360 * keymap.c (Vfunction_key_map): Remove.
31361 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
31362 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
31363 (Vkey_translation_map): Remove.
31364 (syms_of_keymap): Remove DEFVAR for key-translation-map.
31365 (Fdescribe_buffer_bindings)
31366 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
31367 Update for terminal-local key-translation-map.
31368
31369 * Makefile.in (callproc.o): Update dependencies.
31370 (lisp, shortlisp): Add termdev.elc.
31371 (obj): Add terminal.o.
31372 (terminal.o): Add dependencies.
31373 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
31374 (data.o, fns.o): Add termhooks.h dependency.
31375 (SOME_MACHINE_LISP): Add dnd.elc.
31376 (minibuf.o): Fix typo.
31377 Update dependencies.
31378
31379 * data.c (do_symval_forwarding, store_symval_forwarding)
31380 (find_symbol_value): Use the selected frame's keyboard, not
31381 current_kboard.
31382
31383 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
31384 Vwindow_system.
31385
31386 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
31387 Fmenu_bar_open.
31388 (syms_of_xmenu): Update defsubr.
31389 (mouse_position_for_popup, Fx_popup_menu)
31390 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
31391 (set_frame_menubar, free_frame_menubar)
31392 (create_and_show_popup_menu, xmenu_show)
31393 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
31394 an X frame.
31395
31396 * xselect.c (x_own_selection): Abort if not an X frame.
31397 (some_frame_on_display): Check if it is an X frame.
31398 (x_handle_selection_clear): Deal with MULTI_KBOARD.
31399
31400 * coding.c: Include frame.h and termhooks.h.
31401 (terminal_coding, keyboard_coding): Delete.
31402 (Fset_terminal_coding_system_internal)
31403 (Fset_keyboard_coding_system_internal)
31404 (Fkeyboard_coding_system)
31405 (Fterminal_coding_system): Add a terminal parameter.
31406 Get terminal_coding from the terminal.
31407 (init_coding_once): Don't call setup_coding_system here.
31408
31409 * dispextern.h (set_scroll_region, turn_off_insert)
31410 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
31411 (tty_clear_end_of_line, tty_setup_colors)
31412 (delete_tty, updating_frame)
31413 (produce_special_glyphs, produce_glyphs, write_glyphs)
31414 (insert_glyphs): Remove.
31415 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
31416 (tty_turn_off_highlight, get_tty_size): Add declaration.
31417 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
31418
31419 * frame.h (enum output_method): Add output_initial.
31420 (struct x_output): Delete.
31421 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
31422 Access foreground_pixel and background_pixel directly from the frame.
31423 (tty_display): Delete.
31424 (struct frame): Add buried_buffer_list, foreground_pixel,
31425 background_pixel and terminal. Delete kboard.
31426 (union output_data): Add tty.
31427 (FRAME_KBOARD): Get the kboard from the terminal.
31428 (FRAME_INITIAL_P): New macro.
31429 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
31430 (Qterm_environment_variable, Qdisplay_environment_variable)
31431 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
31432 New declarations.
31433
31434 * termchar.h (tty_output, tty_display_info): New structures.
31435 (tty_list): Declare.
31436 (FRAME_TTY, CURTTY): New macros.
31437 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
31438 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
31439 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
31440 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
31441
31442 * callproc.c: Include frame.h and termhooks.h, for terminal
31443 parameters.
31444 (add_env): New function.
31445 (child_setup): Use it.
31446 (child_setup, getenv_internal): Handle the new Vprocess_environment.
31447 (getenv_internal): Fix get_terminal_param call.
31448 (Fgetenv_internal, egetenv): Update doc.
31449 (syms_of_callproc): Initialize Vprocess_environment to nil.
31450 Register and initialize them. Remove obsolete defvars. Update doc
31451 strings.
31452 (child_setup): Handle Vlocal_environment_variables.
31453 (getenv_internal): Add terminal parameter.
31454 Handle Vlocal_environment_variables.
31455 (Fgetenv_internal): Add terminal parameter.
31456 (child_setup, getenv_internal, Fgetenv_internal): Store the local
31457 environment in a frame (not terminal) parameter. Update doc strings.
31458 (set_initial_environment): Rename from set_global_environment.
31459 Store Emacs environment in initial frame parameter.
31460
31461 * xdisp.c (redisplay_internal): Update references to
31462 `previous_terminal_frame'.
31463 (display_mode_line, Fformat_mode_line): Replace calls to
31464 `push_frame_kboard' with `push_kboard'.
31465 (get_glyph_string_clip_rects): Add extra parentheses and
31466 braces to prevent compiler warnings.
31467 (calc_pixel_width_or_height): Add xassert to check that the
31468 frame is alive. Don't call `lookup_image' on a termcap frame.
31469 (message2_nolog, message3_nolog, redisplay_internal)
31470 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
31471 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
31472 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
31473 (Fx_display_pixel_width, Fx_display_pixel_height)
31474 (Fx_display_planes, Fx_display_color_cells)
31475 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
31476 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
31477 (Fx_display_backing_store, Fx_display_visual_class)
31478 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
31479 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
31480
31481 * xfns.c (x_set_foreground_color x_set_background_color)
31482 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
31483 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
31484 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
31485 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
31486 terminal that is being deleted.
31487 (Fx_create_frame): Use `store_frame_param' to set `window-system'
31488 frame parameter, and make sure it overrides any user-supplied setting.
31489 (Fx_close_connection, Fx_synchronize): Unify argument names with
31490 the rest of the DEFUNs.
31491
31492 * dispnew.c (Fsend_string_to_terminal): Update call to
31493 `get_tty_terminal'.
31494 (Fredraw_frame, Fsend_string_to_terminal)
31495 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
31496 FRAME_TERMCAP_P and FRAME_TTY.
31497 (window_change_signal): Don't believe width/height values that are
31498 impossibly small.
31499 (Vinitial_window_system): Rename from Vwindow_system.
31500 (termscript, Wcm, rif): Delete.
31501
31502 * termhooks.h (struct terminal): New struct containing the
31503 previously global text display hooks and new members NAME,
31504 DELETED and PARAM_ALIST.
31505 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
31506 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
31507 (FRAME_RIF): New macros.
31508 (get_terminal_param, get_device): New declarations.
31509 (termscript): Delete declaration.
31510
31511 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
31512 (XTflash, x_free_frame_resources, x_scroll_bar_create)
31513 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
31514 FRAME_FOREGROUND_PIXEL.
31515 (x_fully_uncatch_errors): Disable definition.
31516 (x_scroll_bar_expose): Fix reference to foreground pixel.
31517 (XTread_socket): Disable loop on all X displays.
31518 (x_delete_terminal): Don't set terminal->deleted and let
31519 delete_terminal delete the frames on the terminal.
31520 (x_delete_display): Doc update to reflect changes in
31521 delete_terminal.
31522 (x_display_info) <terminal>: Move member earlier in the struct.
31523 (deleting_tty): Remove old variable.
31524 (Fsuspend_tty): Call clear_tty_hooks.
31525 (Fresume_tty, init_tty): Call set_tty_hooks.
31526 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
31527 errors on X frames.
31528 (x_catch_errors_unwind): Abort if x_error_message is NULL.
31529 (handle_one_xevent): Initialize `f' to NULL.
31530 (x_delete_terminal, x_create_terminal): New functions.
31531 (XTset_terminal_modes, XTreset_terminal_modes)
31532 (XTread_socket, x_connection_closed, x_term_init)
31533 (x_term_init, x_delete_display): Add terminal parameter.
31534 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
31535 X connections.
31536
31537 * frame.c: Include termchar.h.
31538 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
31539 (Qwindow_system, Qenvironment, Qterm_environment_variable)
31540 (Qdisplay_environment_variable): New vars.
31541 (Fframep): Deal with output_initial.
31542 (Fframe-live-p): Doc fix.
31543 (Fwindow-system): New function.
31544 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
31545 (make_terminal_frame): Don't create frames on a terminal that is
31546 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
31547 (store_frame_param): Check for found_for_frame before calling XFRAME.
31548 (Fmake_terminal_frame): Handle NULL tty names correctly.
31549 (syms_of_frame): Enhance doc string of `default-frame-alist'.
31550 (Fdelete_frame): Remove unused variable `count'. Don't allow other
31551 frames to refer to a deleted frame in their 'environment parameter.
31552 (Fframe_with_environment): New function.
31553 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
31554 (get_future_frame_param): New function.
31555 (Fmake_terminal_frame): Use it.
31556 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
31557
31558 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
31559 * sysdep.c (reset_sys_modes): Update for renames.
31560
31561 * keyboard.c (tty_read_avail_input): New function.
31562 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
31563 (syms_of_keyboard): Defsubr them.
31564 (Fset_input_meta_mode, Fset_quit_char): New functions.
31565 (Fset_input_mode): Split to above functions.
31566 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
31567 parameter. Use it in call to `read_char'.
31568 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
31569 Set wrong_kboard_jmpbuf correctly in recursive calls.
31570 Use current_kboard to access Vkeyboard_translate_table.
31571 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
31572 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
31573 Update longjmp invocations. Remember the original current_kboard,
31574 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
31575 changes it. Comment out unnecessary calls to
31576 `record_single_kboard_state' and `any_kboard_state'.
31577 Update recursive calls.
31578 (wrong_kboard_jmpbuf): Remove global variable.
31579 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
31580 Handle deleted interrupted_kboards correctly; that is a legal
31581 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
31582 and read_char calls. Abort if interrupted_kboard died in read_char.
31583 (any_kboard_state, single_kboard_state)
31584 (push_frame_kboard): Remove function.
31585 (pop_kboard): Switch out of single_kboard mode if the kboard has
31586 been deleted. Remove unused variable. Help debugging by not
31587 changing current_kboard unnecessarily. Set current_kboard to the
31588 kboard of the selected frame when the stored kboard object has
31589 been deleted before pop_kboard.
31590 (temporarily_switch_to_single_kboard): Change first parameter to a
31591 frame pointer. Throw an error when caller wants to change kboards
31592 while in single_kboard mode. Don't push_kboard if we weren't in
31593 single kboard state. Don't pop_kboard if we popped into any
31594 kboard state.
31595 (restore_kboard_configuration): Abort if pop_kboard changed the
31596 kboard in single_kboard mode. Call pop_kboard only after setting
31597 up single_kboard mode.
31598 (Frecursive_edit): Switch to single_kboard mode only in nested
31599 command loops.
31600 (cmd_error, command_loop, command_loop_1, timer_check):
31601 Comment out unnecessary call to `any_kboard_state' and
31602 `record_single_kboard_state'.
31603 (delete_kboard): Exit single_kboard mode if we have just deleted
31604 that kboard. Use FRAME_KBOARD.
31605 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
31606 `fatal_error_signal'.
31607 (record_single_kboard_state): Don't push_kboard if we weren't in
31608 single kboard state. Don't pop_kboard if we popped into any
31609 kboard state.
31610 (push_frame_kboard): Rename to push_kboard.
31611 (kbd_buffer_get_event): Use FRAME_TERMINAL.
31612 (read_avail_input): Read input from all terminals.
31613 (mark_kboards): Also mark Vkeyboard_translate_table.
31614 (kbd_buffer_store_event_hold): Simplify condition.
31615 (read_key_sequence): Reinitialize fkey and keytran at each replay.
31616 (Vkeyboard_translate_table): Move to struct kboard.
31617 (init_kboard): Initialize Vkeyboard_translate_table.
31618 (syms_of_keyboard): Use DEFVAR_KBOARD to define
31619 Vkeyboard_translate_table. Update doc strings. Update docs of
31620 local-function-key-map and function-key-map.
31621
31622 * terminal.c: New file.
31623
31624 * term.c: Include errno.h.
31625 (Vring_bell_function, device_list, initial_device)
31626 (next_device_id, ring_bell, update_begin, update_end)
31627 (set_terminal_window, cursor_to, raw_cursor_to)
31628 (clear_to_end, clear_frame, clear_end_of_line)
31629 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
31630 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
31631 (syms_of_term): Move their initialization to terminal.c.
31632 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
31633 (Ftty_display_color_cells)
31634 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
31635 (clear_tty_hooks, set_tty_hooks)
31636 (init_tty, maybe_fatal): New functions.
31637 (Ftty_type): Return nil if terminal is not on a tty instead of
31638 throwing an error. Doc update.
31639 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
31640 Doc update. Initialize new subrs and variables.
31641 (delete_tty): Use terminal->deleted.
31642 (tty_set_terminal_modes): Rename from set_terminal_modes.
31643 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
31644 (set_scroll_region): Rename to `tty_set_scroll_region'.
31645 (turn_on_insert): Rename to `tty_turn_on_insert'.
31646 (turn_off_insert): Rename to `tty_turn_off_insert'.
31647 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
31648 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
31649 (toggle_highligh): Rename to `tty_toggle_highlight'.
31650 (background_highlight): Rename to `tty_background_highlight'.
31651 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
31652 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
31653 (tty_set_scroll_region, tty_background_highlight)
31654 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
31655 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
31656 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
31657 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
31658 Add static modifier.
31659 (tty_reset_terminal_modes, tty_set_terminal_window)
31660 (tty_set_scroll_region, tty_background_highlight)
31661 (tty_highlight_if_desired, tty_cursor_to)
31662 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
31663 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
31664 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
31665 renames.
31666
31667 2007-08-28 Jan Djärv <jan.h.d@swipnet.se>
31668
31669 * keyboard.c: Qrtl is new.
31670 (parse_tool_bar_item): Handle :rtl keyword.
31671 (syms_of_keyboard): Intern :rtl keyword.
31672
31673 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
31674
31675 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
31676 so no Lisp code is executed.
31677 (file_for_image, find_rtl_image): New functions.
31678 (xg_get_image_for_pixmap): Use file_for_image.
31679 (update_frame_tool_bar): If direction is RTL, use RTL image if
31680 defined. Use Gtk stock images if defined.
31681
31682 2007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31683
31684 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
31685 for nonexistent or zero-width glyph in composition glyph.
31686
31687 2007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
31688
31689 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
31690
31691 * xdisp.c (Finvisible_p): New function.
31692 (syms_of_xdisp): defsubr it.
31693
31694 2007-08-24 Juanma Barranquero <lekktu@gmail.com>
31695
31696 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
31697 Doc fixes.
31698
31699 2007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31700
31701 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
31702
31703 2007-08-24 Martin Rudalics <rudalics@gmx.at>
31704
31705 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
31706 whether decoding has modified buffer contents.
31707
31708 2007-08-24 Jason Rumney <jasonr@gnu.org>
31709
31710 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
31711 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
31712 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
31713 (init_svg_functions) [HAVE_NTGUI]: New function.
31714 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
31715 (svg_load_image): Use them.
31716 (svg_load_image) [HAVE_NTGUI]: Implement background.
31717
31718 2007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31719
31720 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
31721 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
31722 (LIBX): Remove @RSVG_LIBS@.
31723 (LIBES): Add $(RSVG_LIBS).
31724
31725 * image.c (svg_load_image): Blend with specified background if exists.
31726 Use IMAGE_BACKGROUND. Add Mac OS Support.
31727
31728 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
31729 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
31730 Remove macros.
31731 [MAC_OSX] (socket_callback): Do nothing.
31732 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
31733 ReceiveNextEvent.
31734 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
31735 socket_callback.
31736 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
31737
31738 2007-08-22 Glenn Morris <rgm@gnu.org>
31739
31740 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
31741
31742 2007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
31743
31744 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
31745
31746 * image.c: Add support for SVG images. Some additional comments
31747 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
31748 (svg_image_p): New function to test for SVG image.
31749 (svg_load): New function to load SVG image.
31750 (svg_load_image): New function, helper for svg_load.
31751 (Qsvg): New Lisp_object.
31752 (svg_keyword_index): New enum.
31753 (svg_format): New static `image_keyword' struct.
31754 (svg_type): New static `image_type' struct.
31755 (librsvg/rsvg.h): Include it.
31756
31757 2007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
31758
31759 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
31760
31761 2007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
31762
31763 * lread.c (Qold_style_backquotes): New var.
31764 (syms_of_lread): Init and staticpro it.
31765 (load_warn_old_style_backquotes): New fun.
31766 (Fload): Use them to warn about old style backquotes.
31767 (end_of_file_error, Fload): Remove unused vars.
31768
31769 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
31770
31771 * lread.c (Vold_style_backquotes): New var.
31772 (syms_of_lread): Init and export it to Elisp.
31773 (read1): Set it when we find an old-style (back)quote.
31774
31775 2007-08-22 Jason Rumney <jasonr@gnu.org>
31776
31777 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
31778
31779 2007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
31780
31781 * puresize.h (BASE_PURESIZE): Increase to 1140000.
31782
31783 2007-08-19 Richard Stallman <rms@gnu.org>
31784
31785 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
31786
31787 2007-08-19 Andreas Schwab <schwab@suse.de>
31788
31789 * alloc.c (pure): Round PURESIZE up.
31790
31791 2007-08-17 Jan Djärv <jan.h.d@swipnet.se>
31792
31793 * xterm.c (handle_one_xevent): Remove check that mouse click is in
31794 active frame.
31795
31796 2007-08-16 Richard Stallman <rms@gnu.org>
31797
31798 * eval.c (Fcommandp): Add parens to clarify.
31799
31800 * minibuf.c (Fall_completions): Use enum for type of table.
31801
31802 * emacs.c (USAGE2): Improve text.
31803
31804 2007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
31805
31806 * term.c (tty_default_color_capabilities): Declare static
31807 variables in file scope, to avoid HPUX compiler problem.
31808
31809 2007-08-13 Jan Djärv <jan.h.d@swipnet.se>
31810
31811 * gtkutil.c (update_frame_tool_bar): Use -1 as index
31812 to gtk_toolbar_insert.
31813
31814 2007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
31815
31816 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
31817
31818 * insdel.c (reset_var_on_error): New fun.
31819 (signal_before_change, signal_after_change):
31820 Use it to reset (after|before)-change-functions to nil in case of error.
31821 Bind inhibit-modification-hooks to t.
31822 Don't bind (after|before)-change-functions to nil while they run.
31823
31824 2007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31825
31826 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
31827 filling pixmap with stippled background.
31828
31829 2007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31830
31831 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
31832 Don't use invisible frame as parent window for repositioning.
31833
31834 2007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
31835
31836 * print.c (new_backquote_output): Rename from old_backquote_output.
31837 (print): Inverse its logic (according to its name) so as to match the
31838 behavior of new_backquote_flag in lread.c.
31839
31840 2007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31841
31842 * gmalloc.c (posix_memalign): New function.
31843
31844 * macterm.c (frame_highlight, frame_unhighlight): Don't call
31845 ActivateControl/DeactivateControl here.
31846 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
31847 frame-notice-user-settings is non-nil.
31848 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
31849 for kEventParamFMFontStyle.
31850 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
31851 mac_pass_command_to_system and mac_pass_control_to_system here.
31852 (XTread_socket): Call ActivateControl/DeactivateControl here.
31853 (XTread_socket) [TARGET_API_MAC_CARBON]:
31854 Check mac_pass_command_to_system and mac_pass_control_to_system here.
31855 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
31856 for window repositioning.
31857
31858 2007-08-08 Glenn Morris <rgm@gnu.org>
31859
31860 * Replace `iff' in doc-strings and comments.
31861
31862 2007-08-07 Chong Yidong <cyd@stupidchicken.com>
31863
31864 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
31865
31866 2007-08-07 Martin Rudalics <rudalics@gmx.at>
31867
31868 * fileio.c (Finsert_file_contents): Run format-decode and
31869 after_insert_file_functions on entire buffer when REPLACE is
31870 non-nil and inhibit modification_hooks and point_motion_hooks.
31871 For consistency, run after_insert_file_functions iff something
31872 got inserted. Move signal_after_change and update_compositions
31873 after code running after_insert_file_functions. Make sure that
31874 undo_list doesn't record intermediate steps of the decoding process.
31875
31876 2007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31877
31878 * emacs.c (main)
31879 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
31880 Call malloc_enable_thread on interactive startup.
31881
31882 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
31883 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
31884 [USE_PTHREAD]: Conditionalize with it.
31885 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
31886 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
31887 New functions.
31888
31889 2007-08-06 Chong Yidong <cyd@stupidchicken.com>
31890
31891 * xdisp.c (redisplay_window): When restoring original buffer
31892 position, make sure it is still valid.
31893
31894 * image.c (png_load): Ignore png-supplied background color.
31895
31896 2007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31897
31898 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
31899 Use kCFAbsoluteTimeIntervalSince1970.
31900
31901 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
31902 New variable.
31903 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
31904 event loop should be quit.
31905 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
31906 Quit dialog event loop if quit_dialog_event_loop is set.
31907
31908 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
31909 (Selection): New typedef. Use instead of ScrapRef.
31910 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
31911 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
31912 (mac_clear_selection): Rename from clear_scrap.
31913 (get_flavor_type_from_symbol): New argument SEL and subsume function of
31914 scrap_has_target_type. All uses changed.
31915 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
31916 (mac_selection_has_target_p): New functions.
31917 (mac_put_selection_value): Rename from put_scrap_string.
31918 (mac_get_selection_value): Rename from get_scrap_string.
31919 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
31920 (put_scrap_private_timestamp, scrap_has_target_type)
31921 (get_scrap_private_timestamp): Remove functions.
31922 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
31923 (x_own_selection, x_get_local_selection):
31924 Use mac_valid_selection_value_p.
31925 (x_own_selection): Don't use put_scrap_private_timestamp.
31926 Record OWNERSHIP-INFO into Vselection_alist instead.
31927 (x_get_local_selection): Don't check type if request is local.
31928 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
31929 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
31930
31931 2007-08-04 Jan Djärv <jan.h.d@swipnet.se>
31932
31933 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
31934 add comment explaining why.
31935
31936 2007-08-03 Richard Stallman <rms@gnu.org>
31937
31938 * fileio.c (Fvisited_file_modtime): Use make_time.
31939
31940 2007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
31941
31942 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
31943 build.
31944
31945 2007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
31946
31947 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
31948
31949 2007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
31950
31951 * puresize.h (BASE_PURESIZE): Increase to 1130000.
31952
31953 2007-07-30 Richard Stallman <rms@gnu.org>
31954
31955 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
31956
31957 2007-07-29 Jan Djärv <jan.h.d@swipnet.se>
31958
31959 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
31960
31961 2007-07-28 Nick Roberts <nickrob@snap.net.nz>
31962
31963 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
31964 remote default-directory.
31965
31966 * buffer.c (mode-line-format): Update doc string.
31967
31968 2007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31969
31970 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
31971 scroll bar gap.
31972 (x_scroll_bar_create): Set bar->fringe_extended_p.
31973 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
31974 on frame edge. Check fringe background extension. Don't clear
31975 extended fringe background area.
31976
31977 * w32term.h (struct scroll_bar): New member fringe_extended_p.
31978 (w32_fill_area): Enclose multiple statements with do ... while (0).
31979
31980 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
31981 Extend fringe background to scroll bar gap.
31982 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
31983 Set bar->fringe_extended_p.
31984 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
31985 Put leftmost/rightmost scroll bars on frame edge. Check fringe
31986 background extension. Don't clear extended fringe background area.
31987
31988 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
31989 New member fringe_extended_p.
31990
31991 2007-07-25 Glenn Morris <rgm@gnu.org>
31992
31993 * Relicense all FSF files to GPLv3 or later.
31994
31995 * COPYING: Switch to GPLv3.
31996
31997 2007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
31998
31999 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
32000
32001 * data.c (Finteractive_form): Check for the presence of an
32002 `interactive-form' symbol property more thoroughly.
32003
32004 * data.c (Finteractive_form): Use an `interactive-form' property if
32005 present, analogous to the function-documentation property.
32006
32007 2007-07-24 Jason Rumney <jasonr@gnu.org>
32008
32009 * w32fns.c (x_real_positions): Get real position from OS instead of
32010 calculating it.
32011
32012 2007-07-23 Jason Rumney <jasonr@gnu.org>
32013
32014 * filelock.c (current_lock_owner): Allow for @ sign in username.
32015
32016 2007-07-22 Nick Roberts <nickrob@snap.net.nz>
32017
32018 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
32019 remote default-directory.
32020
32021 * buffer.c (mode-line-format): Describe above case in doc string.
32022
32023 2007-07-20 Eli Zaretskii <eliz@gnu.org>
32024
32025 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
32026 Define if not defined.
32027
32028 2007-07-18 Jason Rumney <jasonr@gnu.org>
32029
32030 * w32proc.c (w32_executable_type): Handle 64 bit executables.
32031
32032 2007-07-18 Richard Stallman <rms@gnu.org>
32033
32034 * data.c (Fsetq_default): Doc fix.
32035
32036 * eval.c (Fsetq): Doc fix.
32037
32038 2007-07-18 Juanma Barranquero <lekktu@gmail.com>
32039
32040 * coding.c (Ffind_operation_coding_system):
32041 * eval.c (For, Fand): Doc fixes.
32042 Reported by Johan Bockgård.
32043
32044 2007-07-18 Jan Djärv <jan.h.d@swipnet.se>
32045
32046 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
32047
32048 * xterm.h: Declare x_ewmh_activate_frame.
32049
32050 * xterm.c (x_ewmh_activate_frame): New function.
32051 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
32052
32053 2007-07-17 Martin Rudalics <rudalics@gmx.at>
32054
32055 * window.c (Fdisplay_buffer): If largest or LRU window is the
32056 only window, split it even if it is not eligible for splitting.
32057 This restores the original behavior broken by the 2007-07-15
32058 change.
32059
32060 2007-07-17 Glenn Morris <rgm@gnu.org>
32061
32062 * abbrev.c (abbrev_check_chars): New function.
32063 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
32064 Call abbrev_check_chars to check abbrev characters are word
32065 constituents. Doc fix.
32066
32067 2007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
32068
32069 * process.c (Fstart_process, Fmake_network_process)
32070 (read_process_output): Fix up last changes.
32071
32072 2007-07-16 Eli Zaretskii <eliz@gnu.org>
32073
32074 * makefile.w32-in (clean): Don't delete *~.
32075
32076 2007-07-16 Andreas Schwab <schwab@suse.de>
32077
32078 * window.c (Fdisplay_buffer): Use NILP.
32079 (Fset_window_scroll_bars): Likewise.
32080
32081 2007-07-15 Martin Rudalics <rudalics@gmx.at>
32082
32083 * window.c (window_min_size_2): New function.
32084 (window_min_size_1, size_window, Fdisplay_buffer)
32085 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
32086 windows without mode- or header-lines when window-min-height is
32087 too small.
32088 (size_window): Reset nodelete_p after testing it, following an
32089 earlier note by Kim F. Storm.
32090 (display_buffer): Do not set split_height_threshold to twice the
32091 value of window_min_height to avoid changing the value of a
32092 customizable variable. Rather explicitly check whether the
32093 height of the window that shall be splitted is at least as large
32094 as split_height_threshold.
32095 (Fwindow_full_width_p): New defun.
32096 (syms_of_window): Defsubr it.
32097
32098 * window.h: Add EXFUN for Fwindow_full_width_p.
32099
32100 2007-07-14 Jason Rumney <jasonr@gnu.org>
32101
32102 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
32103
32104 2007-07-14 Richard Stallman <rms@gnu.org>
32105
32106 * eval.c (maybe_call_debugger): New function.
32107 (find_handler_clause): Use maybe_call_debugger.
32108 Call it when the handler says `debug'.
32109 Eliminate DEBUGGER_VALUE_PTR.
32110 (Fsignal): Eliminate debugger_value.
32111 (Qdebug): New variable.
32112 (syms_of_eval): Initialize it.
32113
32114 2007-07-14 Juanma Barranquero <lekktu@gmail.com>
32115
32116 * eval.c (Fprogn):
32117 * keyboard.c (Ftrack_mouse):
32118 * print.c (Fwith_output_to_temp_buffer):
32119 * window.c (Fsave_window_excursion): Doc fix.
32120
32121 2007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
32122
32123 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
32124
32125 2007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
32126
32127 * process.h (struct Lisp_Process): Turn slots infd, outfd,
32128 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
32129 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
32130 read_output_delay, and read_output_skip from Lisp_Objects to ints.
32131 Remove unused encoding_carryover.
32132 * process.c: Adjust all functions accordingly.
32133
32134 2007-07-12 Richard Stallman <rms@gnu.org>
32135
32136 * term.c: Include unistd.h only if HAVE_UNISTD_H.
32137
32138 2007-07-11 Jason Rumney <jasonr@gnu.org>
32139
32140 * makefile.w32-in (LIBS): Include OLE32.
32141
32142 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
32143 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
32144
32145 2007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
32146
32147 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
32148 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
32149 from a Lisp_Object into a bare pointer.
32150 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
32151 Adjust the code correspondingly.
32152
32153 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
32154
32155 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
32156 (term_show_mouse_face): Remove unused var `j'.
32157 (handle_one_term_event): Remove unused vars `i' and `j'.
32158 Don't cast return value of ttyname since it's not necessary.
32159
32160 2007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
32161
32162 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
32163 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
32164
32165 * fns.c (map_char_table): Use an array of int for `indices' rather than
32166 an array of Lisp_Objects (which are only ever integers anyway).
32167 (Fmap_char_table): Update caller.
32168 * lisp.h: Update prototype.
32169 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
32170 * fontset.c (Ffontset_info):
32171 * casetab.c (set_case_table): Update callers.
32172
32173 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
32174
32175 * keymap.c (struct accessible_keymaps_data)
32176 (struct where_is_internal_data): New structures.
32177 (accessible_keymaps_1, where_is_internal_1): Use them to change
32178 interface to adhere to the one used by map_keymap.
32179 (Faccessible_keymaps, where_is_internal): Use map_keymap.
32180 (accessible_keymaps_char_table, where_is_internal_2): Remove.
32181
32182 * keymap.h (map_keymap_function_t): More informative prototype.
32183
32184 2007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
32185
32186 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
32187 (looking_at_1): Don't change search_regs and last_thing_searched
32188 if `inhibit-changing-match-data' is non-nil.
32189 (string_match_1, search_buffer, set_search_regs): Likewise.
32190 (syms_of_search): Add Lisp level definition for
32191 `inhibit-changing-match-data' and set it to nil.
32192 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
32193 start and end of the match, instead of using values in search_regs.
32194
32195 2007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
32196
32197 * minibuf.c (Fcompleting_read): New value `confirm-only'
32198 for `require-match'.
32199
32200 2007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
32201
32202 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
32203 part of the 2007-06-27 change to syms_of_fileio.
32204
32205 2007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
32206
32207 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
32208 Check WINDOWP before using XWINDOW. Consolidate return statements.
32209
32210 2007-06-27 Richard Stallman <rms@gnu.org>
32211
32212 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
32213
32214 2007-06-27 Juanma Barranquero <lekktu@gmail.com>
32215
32216 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
32217
32218 2007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
32219
32220 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
32221 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
32222 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
32223 (_free_internal, memalign): Use them.
32224 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
32225 Initialize to PTHREAD_MUTEX_INITIALIZER.
32226 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
32227 (morecore_nolock): Rename from morecore. All uses changed.
32228 Use only nolock versions of internal allocation functions.
32229 (_malloc_internal_nolock, _realloc_internal_nolock)
32230 (_free_internal_nolock): New functions created from
32231 _malloc_internal, _realloc_internal, and _free_internal.
32232 (_malloc_internal, _realloc_internal, _free_internal): Use them.
32233 Copy hook value to automatic variable before its use.
32234 (memalign): Copy hook value to automatic variable before its use.
32235
32236 2007-06-26 Kenichi Handa <handa@m17n.org>
32237
32238 * coding.c (Ffind_operation_coding_system): Docstring improved.
32239 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
32240
32241 2007-06-25 David Kastrup <dak@gnu.org>
32242
32243 * keymap.c (Fcurrent_active_maps): Add `position' argument.
32244 (Fwhere_is_internal): Adjust call to `current-active-maps' to
32245 cater for additional parameter.
32246
32247 * keymap.h: Adjust number of parameters to `current-active-maps'.
32248
32249 * doc.c (Fsubstitute_command_keys): Adjust call of
32250 `current-active-maps'.
32251
32252 2007-06-25 David Kastrup <dak@gnu.org>
32253
32254 * callint.c (Fcall_interactively): Make the parsing of interactive
32255 specs somewhat more readable.
32256
32257 2007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
32258
32259 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
32260 to scroll bar gap also when bitmap fills fringe. Draw only foreground
32261 if extended background has already been filled.
32262
32263 2007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
32264
32265 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
32266 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
32267
32268 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
32269 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
32270 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
32271 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
32272 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
32273 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
32274 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
32275 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
32276 Run timers during dialog popup.
32277 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
32278
32279 2007-06-21 Jason Rumney <jasonr@gnu.org>
32280
32281 * image.c (convert_mono_to_color_image): Swap fore and background.
32282
32283 2007-06-20 Jason Rumney <jasonr@gnu.org>
32284
32285 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
32286 (w32_free_bdf_font): Unmap memory not handle.
32287
32288 2007-06-20 Sam Steingold <sds@gnu.org>
32289
32290 * gmalloc.c (__morecore): Fix the declaration to comply with the
32291 definition.
32292
32293 2007-06-20 Juanma Barranquero <lekktu@gmail.com>
32294
32295 * w32term.c (w32_delete_display): Remove leftover declaration.
32296 (w32_define_cursor, w32_initialize): Make static.
32297
32298 * w32.c (_wsa_errlist): Fix typo in error message.
32299 (init_environment): Ignore any environment variable from the
32300 registry having a null value.
32301
32302 2007-06-20 Glenn Morris <rgm@gnu.org>
32303
32304 * Makefile.in (LIBGIF): Default to -lgif.
32305
32306 2007-06-17 Jason Rumney <jasonr@gnu.org>
32307
32308 * w32menu.c (add_menu_item): Don't use multibyte string functions on
32309 unicode strings.
32310
32311 2007-06-16 Juanma Barranquero <lekktu@gmail.com>
32312
32313 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
32314 Fix typo in docstring.
32315
32316 2007-06-16 Eli Zaretskii <eliz@gnu.org>
32317
32318 * w32menu.c (add_menu_item): Escape `&' characters in menu items
32319 and their keybindings.
32320
32321 2007-06-15 Chong Yidong <cyd@stupidchicken.com>
32322
32323 * composite.c (update_compositions): Fix last fix.
32324
32325 2007-06-14 Jason Rumney <jasonr@gnu.org>
32326
32327 * w32.c (get_process_times_fn): New function pointer.
32328 (globals_of_w32): Intialize it if present in kernel32.dll.
32329 (w32_get_internal_run_time): New function.
32330
32331 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
32332
32333 2007-06-14 Kenichi Handa <handa@etlken.m17n.org>
32334
32335 * composite.c (update_compositions): Check the validness of
32336 compositions.
32337
32338 2007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
32339
32340 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
32341 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
32342
32343 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
32344 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
32345
32346 * macgui.h (USE_MAC_TOOLBAR): New define.
32347
32348 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
32349 Return immediately unless popup is activated.
32350
32351 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
32352 background to scroll bar gap.
32353 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
32354 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
32355 scroll bars on frame edge. Check fringe background extension.
32356 Don't clear extended fringe background area.
32357 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
32358 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
32359 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
32360 [USE_MAC_TOOLBAR]: New macros.
32361 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
32362 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
32363 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
32364 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
32365 [USE_MAC_TOOLBAR]: New functions.
32366 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
32367 manually if previous repositioning has failed.
32368 (mac_handle_keyboard_event): Use precomputed event kind.
32369 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
32370 as tool bar item click. Handle mouse movement over tool bar items.
32371
32372 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
32373 toolbar_win_gravity.
32374 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
32375 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
32376 Add externs.
32377
32378 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
32379 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
32380
32381 2007-06-14 Chong Yidong <cyd@stupidchicken.com>
32382
32383 * image.c (search_image_cache): Remove unused variable.
32384
32385 2007-06-13 Chong Yidong <cyd@stupidchicken.com>
32386
32387 * xfns.c, xmenu.c: Link to xaw3d if available.
32388
32389 2007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
32390
32391 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
32392 frame_foreground and frame_background.
32393
32394 * image.c (lookup_image): Save frame foreground and background colors.
32395 (search_image_cache): Check if saved and current frame colors match.
32396
32397 2007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
32398
32399 * regex.c (regex_compile): Remove the `regnum' counter.
32400 Use bufp->re_nsub instead. Add support for \(?N:RE\).
32401
32402 2007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
32403
32404 * term.c: Include intervals.h to declare Fget_text_property.
32405
32406 2007-06-10 Jason Rumney <jasonr@gnu.org>
32407
32408 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
32409
32410 2007-06-08 Juanma Barranquero <lekktu@gmail.com>
32411
32412 * callint.c (Fcall_interactively):
32413 * editfns.c (Fdelete_and_extract_region):
32414 * fileio.c (Fread_file_name):
32415 * fns.c (Fmapconcat):
32416 * keyboard.c (cmd_error_internal):
32417 * keymap.c (Fkey_description):
32418 * lread.c (openp):
32419 * minibuf.c (read_minibuf):
32420 * search.c (wordify):
32421 * sunfns.c (sel_read):
32422 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
32423 * xfns.c (x_default_scroll_bar_color_parameter):
32424 * xmenu.c (menu_help_callback):
32425 * xselect.c (Fx_get_atom_name):
32426 * xterm.c (x_term_init): Use empty_unibyte_string.
32427
32428 2007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
32429
32430 * alloc.c (init_strings): Initialize canonical empty strings.
32431 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
32432 canonical empty string when the requested size is 0.
32433
32434 * emacs.c (empty_unibyte_string): Rename from empty_string.
32435 (empty_multibyte_string): New canonical empty string.
32436 (syms_of_emacs): Don't initialize empty_string.
32437
32438 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
32439 string, if appropriate.
32440 (empty_unibyte_string, empty_multibyte_string): New externs.
32441 (empty_string): Remove extern.
32442
32443 * lread.c (syms_of_lread): Use empty_unibyte_string.
32444
32445 2007-06-07 Jason Rumney <jasonr@gnu.org>
32446
32447 * s/ms-w32.h: Don't define HAVE_TZNAME.
32448
32449 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
32450
32451 2007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
32452
32453 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
32454
32455 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
32456 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
32457
32458 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
32459 Don't call next handler.
32460 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
32461 Remove argument. Install handler to application.
32462 (set_frame_menubar): Don't change deep_p.
32463 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
32464 FRAME_OUTER_TO_INNER_DIFF_Y.
32465 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
32466 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
32467 [HAVE_DIALOGS]: New macros.
32468 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
32469 Use them.
32470 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
32471
32472 * macselect.c [MAC_OSX] (install_service_handler): Rename from
32473 init_service_handler. All callers changed. Return OSStatus value.
32474
32475 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
32476 All callers changed so as not to call SetPortWindowPort.
32477 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
32478 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
32479 mac_draw_string_common.
32480 (mac_draw_image_string_qd): Likewise.
32481 (mac_draw_string_common): Use them. Add INLINE.
32482 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
32483 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
32484 GetGlobalMouse.
32485 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
32486 and FRAME_OUTER_TO_INNER_DIFF_Y.
32487 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
32488 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
32489 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
32490 repositioning window to mac_handle_window_event.
32491 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
32492 saving window location to mac_handle_window_event
32493 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
32494 (install_menu_target_item_handler): Remove argument in extern.
32495 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
32496 Also accept command events.
32497 (do_keystroke): New function created from XTread_socket.
32498 (init_command_handler): Remove functions.
32499 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
32500 and save window location by kEventWindowShowing and kEventWindowHiding
32501 handlers here. Don't call next handler for window state change and
32502 focus events.
32503 (mac_handle_application_event, mac_handle_keyboard_event)
32504 [TARGET_API_MAC_CARBON]: New functions.
32505 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
32506 kEventWindowShowing and kEventWindowHiding events. Move installation
32507 of mouse, font, text input and menu target item handlers to
32508 install_application_handler.
32509 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
32510 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
32511 New function.
32512 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
32513 Register it.
32514 (XTread_socket) [TARGET_API_MAC_CARBON]:
32515 Consolidate SendEventToEventTarget calls.
32516 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
32517 Move application activation handler to mac_handle_application_event.
32518 Move keyboard handler to mac_handle_keyboard_event.
32519 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
32520 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
32521 init_command_handler. Call install_application_handler.
32522
32523 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
32524 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
32525
32526 2007-06-07 Glenn Morris <rgm@gnu.org>
32527
32528 * emacs.c (main): Use `emacs-copyright' in --version output.
32529
32530 2007-06-06 Chong Yidong <cyd@stupidchicken.com>
32531
32532 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
32533
32534 2007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
32535
32536 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
32537
32538 * macgui.h: Replace WindowPtr with WindowRef.
32539
32540 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
32541 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
32542 Replace ControlHandle with ControlRef.
32543 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
32544
32545 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
32546 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
32547 Replace ControlHandle with ControlRef.
32548 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
32549 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
32550
32551 * macterm.h (struct scroll_bar): Rename member control_handle_low
32552 and control_handle_high to control_ref_low and control_ref_high.
32553 All uses changed.
32554 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
32555 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
32556 respectively. All uses changed.
32557 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
32558 (install_window_handler, remove_window_handler): Replace WindowPtr
32559 with WindowRef in externs.
32560
32561 2007-06-05 Juanma Barranquero <lekktu@gmail.com>
32562
32563 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
32564
32565 2007-06-03 Nick Roberts <nickrob@snap.net.nz>
32566
32567 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
32568
32569 * frame.c (Fmouse_position, Fmouse_pixel_position):
32570 Condition on HAVE_GPM too.
32571
32572 * term.c (term_mouse_highlight): Remove unused variables.
32573 (Fterm_open_connection): Set gpm_zerobased to 1.
32574 (term_mouse_movement, term_mouse_click, handle_one_term_event):
32575 Use zero based co-ordinates.
32576 (handle_one_term_event): Report a drag as mouse movement too.
32577
32578 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
32579
32580 2007-06-03 Chong Yidong <cyd@stupidchicken.com>
32581
32582 * image.c (search_image_cache): New function. Require background
32583 color match if background color is unspecified in the image spec.
32584 (uncache_image, lookup_image): Use it.
32585
32586 2007-06-01 Juanma Barranquero <lekktu@gmail.com>
32587
32588 * window.c (Fshrink_window): Reflow docstring.
32589
32590 2007-06-02 Chong Yidong <cyd@stupidchicken.com>
32591
32592 * Version 22.1 released.
32593
32594 2007-06-01 Richard Stallman <rms@gnu.org>
32595
32596 * xfns.c (x_encode_text): Add GCPRO.
32597
32598 2007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
32599
32600 * xfns.c (x_set_name_internal): Save encoded name before
32601 x_encode_text in case string data is relocated.
32602
32603 2007-05-31 Richard Stallman <rms@gnu.org>
32604
32605 * buffer.c (syms_of_buffer): Doc fix.
32606
32607 2007-05-30 Nick Roberts <nickrob@snap.net.nz>
32608
32609 * sysdep.c (init_sys_modes): Add rather than replace with
32610 O_NONBLOCK.
32611
32612 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
32613 term_mouse_moveto.
32614
32615 * termhooks.h (term_mouse_moveto): New extern.
32616
32617 * term.c (mouse_face_window): Rename...
32618 (Qmouse_face_window): ...to this.
32619 (term_show_mouse_face, term_clear_mouse_face)
32620 (term_mouse_highlight): Use Qmouse_face_window.
32621 (term_mouse_moveto): New function.
32622 (term_mouse_position): Make it work.
32623 (syms_of_term): Uncomment assignment to mouse_position_hook.
32624 Staticpro Qmouse_face_window.
32625
32626 2007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
32627
32628 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
32629 around current_column call.
32630
32631 2007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
32632
32633 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
32634 * xdisp.c (next_element_from_buffer):
32635 * window.c (delete_window):
32636 * term.c (term_mouse_highlight):
32637 * msdos.c (getdefdir):
32638 * macterm.c (mac_create_bitmap_from_bitmap_data)
32639 (init_font_name_table):
32640 * fns.c (Fsxhash):
32641 * data.c (Fmake_local_variable):
32642 * ccl.c (ccl_driver): Likewise.
32643
32644 2007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
32645
32646 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
32647 Call mac_wakeup_from_rne on window size change.
32648
32649 2007-05-25 Chong Yidong <cyd@stupidchicken.com>
32650
32651 * image.c (uncache_image): Fix typo.
32652
32653 2007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
32654
32655 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
32656
32657 2007-05-22 Richard Stallman <rms@gnu.org>
32658
32659 * xterm.c (x_connection_closed): Remove NO_RETURN.
32660
32661 2007-05-22 Martin Rudalics <rudalics@gmx.at>
32662
32663 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
32664
32665 2007-05-21 Chong Yidong <cyd@stupidchicken.com>
32666
32667 * image.c (uncache_image): New function.
32668 (Fimage_refresh): New function.
32669
32670 2007-05-20 Jan Djärv <jan.h.d@swipnet.se>
32671
32672 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
32673
32674 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
32675
32676 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
32677 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
32678
32679 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
32680
32681 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
32682 conditional on [HAVE_GPM_H].
32683
32684 2007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
32685
32686 * syntax.c (skip_chars): Update syntax-table only after we checked that
32687 the new location is valid.
32688
32689 2007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
32690
32691 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
32692 mac_get_window_bounds.
32693
32694 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
32695
32696 * Makefile.in (LIBGPM): Allow it to be set from configure.
32697 If set then link Emacs with it.
32698
32699 * config.in: Regenerate.
32700
32701 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
32702 New externs.
32703
32704 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
32705 Include gpm.h.
32706 (handle_one_term_event, term_gpm): New externs.
32707
32708 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
32709 and allow it to be interrupted by SIGIO.
32710
32711 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
32712 (wait_reading_process_output): Wait on gpm_fd too.
32713 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
32714 (add_gpm_wait_descriptor_called_flag): New variable.
32715 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
32716
32717 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
32718 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
32719 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
32720 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
32721 (make_lispy_event): Add case GPM_CLICK_EVENT.
32722 (read_avail_input): Handle mouse input.
32723
32724 * term.c (write_glyphs_with_face): New function.
32725 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
32726 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
32727 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
32728 (mouse_face_face_id, term_gpm, pos_x, pos_y)
32729 (last_mouse_x, last_mouse_y): New variables.
32730 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
32731 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
32732 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
32733 (Fterm_close_connection): New functions.
32734 (term_init): Initialise mouse_face_window.
32735
32736 2007-05-19 Chong Yidong <cyd@stupidchicken.com>
32737
32738 * xdisp.c (redisplay_window): If first window line is a
32739 continuation line, recompute the new window start instead of
32740 recentering.
32741
32742 2007-05-18 Glenn Morris <rgm@gnu.org>
32743
32744 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
32745 Suggested by Alfred M. Szmidt <ams@gnu.org>.
32746
32747 2007-05-17 Glenn Morris <rgm@gnu.org>
32748
32749 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
32750
32751 2007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
32752
32753 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
32754 dead key repeat and up events.
32755
32756 2007-05-14 Chong Yidong <cyd@stupidchicken.com>
32757
32758 * image.c (pbm_load): Check image size for monochrome pbm.
32759
32760 2007-05-13 Chong Yidong <cyd@stupidchicken.com>
32761
32762 * xterm.c (XTread_socket): Revert last change.
32763
32764 2007-05-12 Chong Yidong <cyd@stupidchicken.com>
32765
32766 * image.c (pbm_load): Correctly check image size for greyscale pbm.
32767
32768 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
32769
32770 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
32771
32772 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
32773 mixup (YAILOM).
32774
32775 2007-05-07 Andreas Schwab <schwab@suse.de>
32776
32777 * keymap.c (Flookup_key): Fix typo in last change.
32778
32779 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
32780
32781 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
32782 mapping for unibyte strings.
32783
32784 2007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
32785
32786 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
32787 (Fx_popup_dialog) [MAC_OSX]: Likewise.
32788
32789 2007-04-29 Richard Stallman <rms@gnu.org>
32790
32791 * insdel.c (replace_range): For undo, record insertion first.
32792
32793 2007-04-29 Andreas Schwab <schwab@suse.de>
32794
32795 * lisp.h (VECSIZE): Use OFFSETOF.
32796
32797 2007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
32798
32799 * xdisp.c (try_window_reusing_current_matrix): Fix number of
32800 disabled lines.
32801
32802 2007-04-28 Richard Stallman <rms@gnu.org>
32803
32804 * lread.c (read_escape): In a string, \s is always space.
32805
32806 2007-04-27 Jan Djärv <jan.h.d@swipnet.se>
32807
32808 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
32809
32810 * gtkutil.c (xg_update_menubar, create_menus): Create empty
32811 submenu for menu bar items.
32812
32813 See ChangeLog.10 for earlier changes.
32814
32815 ;; Local Variables:
32816 ;; coding: utf-8
32817 ;; End:
32818
32819 Copyright (C) 2007-2011 Free Software Foundation, Inc.
32820
32821 This file is part of GNU Emacs.
32822
32823 GNU Emacs is free software: you can redistribute it and/or modify
32824 it under the terms of the GNU General Public License as published by
32825 the Free Software Foundation, either version 3 of the License, or
32826 (at your option) any later version.
32827
32828 GNU Emacs is distributed in the hope that it will be useful,
32829 but WITHOUT ANY WARRANTY; without even the implied warranty of
32830 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
32831 GNU General Public License for more details.
32832
32833 You should have received a copy of the GNU General Public License
32834 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.